Pumukel has quit [Read error: Connection reset by peer]
arnonhon_ has quit [Ping timeout: 255 seconds]
Pumukel has joined #ruby
elenatanasoiu has joined #ruby
GinoManWorks has quit [Read error: Connection reset by peer]
Pumukel has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
leea has joined #ruby
loincloth has joined #ruby
conta has joined #ruby
craigp has joined #ruby
sonikspin has joined #ruby
loincloth has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
tr1g has joined #ruby
pandaant has joined #ruby
arnonhongklay has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
conta has quit [Client Quit]
loincloth has joined #ruby
elaptics has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
karmatr0n has joined #ruby
pandaant has quit [Ping timeout: 244 seconds]
theOneWho has quit []
pandaant has joined #ruby
arnonhon_ has joined #ruby
loincloth has quit [Ping timeout: 264 seconds]
arnonhongklay has quit [Read error: Connection reset by peer]
marr has joined #ruby
Guest95205 is now known as BLuEGoD
<tr1g>
Yes hello! Im having a maddening issue wiht net-ssh that seems like it should be very easy to fix, but Im not super familiar iwth ruby. Error is '=~': invalid byte sequence in UTF-8 (ArgumentError) - I would think I could declare something like ISO 8859 but is there maybe an env variable that can take care of this?
tomphp has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
aufi has joined #ruby
conta has joined #ruby
pawnbox has quit [Remote host closed the connection]
tlaxkit has joined #ruby
wethu has joined #ruby
pawnbox has joined #ruby
f4cl3y has joined #ruby
<dminuoso>
tr1g: Can you gist the offending code?
Dimik has quit [Ping timeout: 265 seconds]
<tr1g>
meaning the tool i'm compiling? no
Madplatypus has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
<dminuoso>
tr1g: You have Ruby code that throws an exception. We cannot help you without seeing the code.
<tr1g>
its net-ssh
<tr1g>
throwing the exception because of it's own ~
<tr1g>
ll
RedNifre_ is now known as RedNifre
<dminuoso>
tr1g: Do you want me to repeat my last statement?
<tr1g>
thats the crazy part
<dminuoso>
tr1g: net-ssh is a gem. Gems don't throw exceptions by just existing on your harddrive. They throw exceptions because you call code.
pawnbox has quit [Remote host closed the connection]
<dminuoso>
tr1g: If you call code, it means you have Ruby code of your own.
<dminuoso>
Or C code perhaps.
pawnbox has joined #ruby
<dminuoso>
tr1g: So if you cannot share the code that uses net-ssh because you are under an NDA, then hire a consultant.
sameerynho has quit [Quit: WeeChat 1.5]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
arnonhongklay has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
jhooker has joined #ruby
arnonhon_ has quit [Ping timeout: 260 seconds]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
AndrewIsHere has quit [Ping timeout: 255 seconds]
Couch has joined #ruby
<dminuoso>
tr1g: Im guessing that your ssh config file ( ~/ssh/config ) has invalid US-ASCII characters
<tr1g>
No, but the keys likely do.
vuoto has quit [Remote host closed the connection]
<dminuoso>
tr1g: That is also a possibility.
vuoto has joined #ruby
<tr1g>
alrighty
<dminuoso>
tr1g: Give me a moment.
<tr1g>
so how do we handle rouwdy letters in this code?
<tr1g>
rowdy*
nadir has quit [Quit: Connection closed for inactivity]
<dminuoso>
You mean these smelly piyo characters?
vuoto has quit [Remote host closed the connection]
<tr1g>
i tried forcing ISO188blah i forget offhand
vuoto has joined #ruby
<tr1g>
heh
<dminuoso>
tr1g: Well, the solution is transliteration obviously. I regularly have comments in my code such as: Watashi no hobākurafuto wa unagi de ippai desu.
Ipe_ has joined #ruby
Snowy has joined #ruby
<dminuoso>
tr1g: Im thinking its your ssh config actually, I dug into the version of net-ssh that you are using.
<dminuoso>
tr1g: %w(~/.ssh/config /etc/ssh_config /etc/ssh/ssh_config) these three files get loaded by default.
<tr1g>
its not the config
<dminuoso>
tr1g: Did you check all three I just mentioned?
<tr1g>
yes
LoneHermit has joined #ruby
<dminuoso>
tr1g: The stack trace strongly suggests its your config files.
Jamo has quit [Ping timeout: 240 seconds]
<tr1g>
its starting the configuration for USERKEY
<tr1g>
(bottom up)
mikecmpbll has joined #ruby
<dminuoso>
tr1g: Mmm?
<tr1g>
it really doesnt matter though, the data needs to be passed flawlessly instead of getting caught up on a charset issue
<manveru>
tr1g: can you run `file ~/.ssh/config`?
<tr1g>
im assuming theres no way to do this raw
Snowy has quit [Quit: ragequit]
<manveru>
not exactly
<dminuoso>
tr1g: Is there a reason you are running an unsupported version of Ruby? Or is this a Japenese thing?
<tr1g>
Why am I doing things on files that do not even exist?
<dminuoso>
Heh..
Snowy has joined #ruby
<manveru>
:)
<tr1g>
i already said i've migrated to a newer system
<tr1g>
and tried there as well.
<manveru>
ok, then your locale is wrong
astrobunny has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 260 seconds]
arnonhon_ has joined #ruby
Ishido has joined #ruby
<tr1g>
LANG?
<manveru>
if the locale is C, ruby expects external files to be in US-ASCII
<dminuoso>
tr1g: Can you provide an correct stack trace for the issue with ruby 2.3?
<tr1g>
set to en_US.UTF-8
<dminuoso>
tr1g: (Because the exception I see there is different from the one you described)
<manveru>
tr1g: LC_ALL
<tr1g>
not sure if net-ssh is pulling from that env tho
<tr1g>
ah ok thanks manveru lemme check
<manveru>
LC_ALL=ja_JP.UTF-8 should work too
arnonhongklay has quit [Read error: Connection reset by peer]
<manveru>
as long as it's utf8 :)
<tr1g>
guys lol
<tr1g>
they are ssh keys.
<tr1g>
not language based
<tr1g>
:)
cdown has quit [Ping timeout: 250 seconds]
<manveru>
sorry, but this error is not from reading ssh keys, no way :P
<dminuoso>
10:14 < tr1g> Yes hello! Im having a maddening issue wiht net-ssh that seems like it should be very easy to fix, but Im not super familiar iwth ruby. Error is '=~': invalid byte sequence in UTF-8 (ArgumentError) [...]
<dminuoso>
/Users/vkgtaro/.rvm/gems/ruby-1.9.3-p374/gems/net-ssh-2.6.5/lib/net/ssh/config.rb:68:in `block in load': invalid byte sequence in US-ASCII (ArgumentError)
<dminuoso>
I think we are not getting the full picture here.
dhollinger has quit [Ping timeout: 250 seconds]
<tr1g>
yeah, i will try to get the new box output up
<manveru>
otherwise i can only recommend using a supported version of ruby and a net-ssh version from this year
<tr1g>
similar but not the same problems all over
kedare has joined #ruby
* dminuoso
is waiting on a stack trace
pwnd_nsfw has quit [Read error: Connection reset by peer]
<tr1g>
it'll be a little bit
<dminuoso>
kk :)
<dminuoso>
Ill check out the new vending machine
<dminuoso>
supposedly there is cookies in there :o
pwnd_nsfw has joined #ruby
<manveru>
oO
<tr1g>
08:35 < tr1g> also now on debian 4.3 / bundle 1.13.1 / ruby 2.3.1p112 / gem 2.5.1 / net-ssh 4.0.0.beta3n
<tr1g>
btw
<tr1g>
that is the current box
<tr1g>
im working with
<manveru>
ok
matp has quit [Quit: ZZzzzZz...]
<manveru>
i only looked at the blog post ^^;
Pumukel has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has quit [Quit: Leaving]
miqlas-H has joined #ruby
serard has joined #ruby
<serard>
Hello
<serard>
How can I load a .rb in current execution scope (like include in php) ?
<serard>
(and get variables set in the included .rb file be defined in current scope -the one that includes the .rb file) ?
JeanCarl1Machado has joined #ruby
<manveru>
eval(File.read('some.rb'))
<manveru>
not that i recommend doing so
<serard>
I guess so :)
<manveru>
but it's natural you'd want to do what's familiar to you :)
<serard>
not recommended way, ok, I guess I have to make my file a kind of module
<dminuoso>
serard: That is the common way, yes.
karmatr0n has joined #ruby
pawnbox has joined #ruby
JeanCarloMachado has quit [Ping timeout: 248 seconds]
the_drow has joined #ruby
karmatr0n has quit [Ping timeout: 260 seconds]
<serard>
so I created my file module, starting with "Module MyModule" for example. In my main (Vagrantfile) I "require File.join(..., "mymodule")"
<serard>
now how do I call my def method within my module ?
<serard>
I tried config_data = MyModule.my_method(vagrantfile_dir) but it says MyModule constant not defined
<ljarvis>
serard: what did you try?
<ljarvis>
hmm, then it can't be loaded
<manveru>
serard: your file is in the same directory?
olspookishmagus has quit [Ping timeout: 265 seconds]
olspookishmagus has joined #ruby
<manveru>
let's say you called it mymodule.rb, it's in the same directory as your Vagrantfile, you'd put `require_relative 'mymodule'` on the first line in your Vagrantfile
pawnbox has quit [Remote host closed the connection]
<manveru>
ichkv: can you show _your_ configuration? not the one you copied from
<ichkv>
1:1 config nginx and unicorn.rb
<manveru>
it seems like it's using sockets for communication with unicorn, so you need to make sure you have the right permissions
<ichkv>
that instruction from configuries nginx and unicorn.
<ichkv>
hmmm
pawnbox has joined #ruby
<manveru>
do you have any errors in /var/log/nginx* ?
<ichkv>
funny, its moment and stupid me. NOTHING!)
<manveru>
FINbit: check #rvm maybe?
<ichkv>
no erroe like 11: about permission socket
<ichkv>
me change location socket to /tmp/unicorn.sock
<ichkv>
and nothing
<manveru>
well, i'd recommend not using a unix socket for starting out
<ichkv>
everyone, me cursive problem. but me using oldies and goodies apache) problem solved, me only show its
<manveru>
but without error, it's hard to say what is going on
<ichkv>
no error in logs unicorn and apache
<manveru>
and nginx?
<ichkv>
also root to run me not that. its no right way
<manveru>
true that, they want to run unicorn with sudo... yuck
<ichkv>
standart versions in repositaries debian stable , e.q. 8.5 jessie
<ichkv>
core... me to russian and hard way junior that studies on RoR in this
<manveru>
just use apache then?
claudiuinberlin has joined #ruby
<ichkv>
more communityies python/Django and PHP
<manveru>
or don't use unix sockets
<ichkv>
apache/proxypass + localhost
<manveru>
if you use sockets, you need to worry about permissions, and run unicorn as root, which is bad
<ichkv>
socket easy and perfomance
<manveru>
did you benchmark them? :)
<manveru>
also, it's not working, so it's not easy
<ichkv>
mind, me not working deploy in and 127.0.0.1 + nginx
<ichkv>
socket architect easy and its so preconfig perfomance
poikon has quit [Ping timeout: 248 seconds]
<manveru>
anw, gotta get back to work, if you cannot provide even a single error message then i can't help you
<ichkv>
thanks. and its possible me help you :)
bruce_lee has joined #ruby
zacstewart has joined #ruby
f4cl3y has joined #ruby
poikon has joined #ruby
arnonhon_ has quit [Ping timeout: 272 seconds]
claudiuinberlin has quit [Remote host closed the connection]
Wolland has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
CloCkWeRX has quit [Ping timeout: 265 seconds]
JeanCarl1Machado has quit [Ping timeout: 250 seconds]
JeanCarloMachado has joined #ruby
M-shine has quit [Remote host closed the connection]
M-manveru has quit [Remote host closed the connection]
M-mistake has quit [Remote host closed the connection]
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 244 seconds]
JeanCarl1Machado has joined #ruby
compro has joined #ruby
Silthias has joined #ruby
JeanCarloMachado has quit [Ping timeout: 276 seconds]
petercooper has joined #ruby
Silthias1 has quit [Ping timeout: 248 seconds]
CloCkWeRX has joined #ruby
<tr1g>
wooo
<tr1g>
this is like
<tr1g>
i dunno how you guys do this all day every day
<tr1g>
mad respect :)
<ichkv>
sorry, what is it "dunno"?
nankyokusei has joined #ruby
<elomatreb>
ichkv: "dunno" is how some people pronounce "don't know" ;)
<ichkv>
ohh, me think too.
<ichkv>
elomatreb: thanks
loincloth has joined #ruby
claudiuinberlin has joined #ruby
M-shine has joined #ruby
workmad3 has joined #ruby
CloCkWeRX has quit [Ping timeout: 244 seconds]
toretore has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
nankyokusei has quit [Ping timeout: 244 seconds]
loincloth has quit [Ping timeout: 240 seconds]
compro has left #ruby ["Leaving"]
claudiuinberlin has quit [Ping timeout: 240 seconds]
karmatr0n has joined #ruby
claudiuinberlin has joined #ruby
leea has joined #ruby
<tr1g>
man
<tr1g>
so if you wondered, there was more data getting piped from another stager that was causing issues
<tr1g>
fun!
karmatr0n has quit [Ping timeout: 264 seconds]
CloCkWeRX has joined #ruby
stamina has joined #ruby
lifeai has quit [Quit: WeeChat 1.5]
wisn has joined #ruby
kies has quit [Ping timeout: 265 seconds]
blackgoat has quit [Ping timeout: 244 seconds]
f4cl3y has quit [Ping timeout: 272 seconds]
CloCkWeRX has quit [Ping timeout: 265 seconds]
shortCircuit__ has joined #ruby
<shortCircuit__>
hi
blackmesa has quit [Ping timeout: 244 seconds]
<shortCircuit__>
I have an array of dates from database like ["2016-09-21", "2016-09-20", "2016-09-18"] .. now can I generate the dates between the non-consecutive dates like the last two there will be a 2016-09-19
<shortCircuit__>
I can do it in a verbose way
<shortCircuit__>
with reduce probably
Monpt has joined #ruby
tlaxkit has quit [Read error: Connection reset by peer]
<serard>
canton7, like so, yes. Was looking popen3 doc
<canton7>
popen3 will do it as well - popen doesn't separate stdout and stderr, but popen3 does
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<serard>
how can I test if I can "require 'popen3'" before actually doing it ?
<canton7>
why do you want to do that?
<serard>
well, I do "require 'popen3'" and I get an error :)
<serard>
it is core lib I guess
huggy has quit [Ping timeout: 272 seconds]
<canton7>
what error?
sujith__ has joined #ruby
jmignault has joined #ruby
<serard>
Declared popen3 in Gemfile, ran bundler install : "Could not find gem 'open3' in any of the gem sources listed in your Gemfile or available on this machine."
hanmac has quit [Ping timeout: 250 seconds]
<serard>
same with open3
<canton7>
uh, they're not gems
<canton7>
popen's in core, popen3's in stdlib
loincloth has joined #ruby
<serard>
when I require 'popen3' I get this : /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- popen3 (LoadError)
<serard>
require 'stdlib' ?
<canton7>
require 'open3'
gispka has quit [Read error: Connection reset by peer]
<canton7>
and you don't need to require anything to use IO.open3
tyang_ has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
arnonhongklay has joined #ruby
Vile` has joined #ruby
b3atr has joined #ruby
claudiuinberlin has joined #ruby
<b3atr>
what's the best way to convert an array of values to a hash with a same key for each value?
alfiemax has quit [Ping timeout: 250 seconds]
<b3atr>
Hash['documentable'.zip documentables]
karmatr0n has quit [Read error: No route to host]
Alina-malina has joined #ruby
johnmilton has quit [Remote host closed the connection]
<canton7>
how would the hash have the same key multiple times?
nadir has joined #ruby
<dminuoso>
canton7: You misunderstand. He means something like [1,2,3] => {1=>1, 2=>2, 3=>3}
redpants has joined #ruby
<canton7>
if you say so - from his example, it looks like he wants the key 'documentable' (that exact raw string) for each item
<dminuoso>
b3atr: But yeah, that would be the way.
<b3atr>
canton7: no that's correct.
<dminuoso>
Ah.
<canton7>
b3atr, which is correct?
<dminuoso>
b3atr: That's not how a hash works. Each key is unique.
<b3atr>
canton7: i want a an array to be converted to an array of hash with same keys
<dminuoso>
canton7: Think of it like a dictionary. Each word has only one entry.
<dminuoso>
Err b3atr.
<canton7>
wrong person :P
<dminuoso>
:)
<b3atr>
[{'1': 'a'}, {
<shortCircuit__>
why do I need https://www.android.com/filetransfer/ to transfer from mac to android .. why can't I create a hotspot , connect to the hotspot from mac and ftp ?
<dminuoso>
b3atr: What are you trying to do?
<b3atr>
[{'1': 'a'}, {'1': b'}]
<b3atr>
^
<dminuoso>
b3atr: Ah. Simple
arnonhongklay has quit [Ping timeout: 265 seconds]
<canton7>
ah, so an array of hashes
<canton7>
not a single hash
arnonhongklay has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
<dminuoso>
b3atr: ary.map { |e| {'1' => e } }
<shortCircuit__>
|e| looks like lol with an e
<shortCircuit__>
:D
<dminuoso>
b3atr: Don't try to be smart using zip or anything. This is way more expressive about your intend.
<dminuoso>
shortCircuit__: e as in element.
fmcgeough has joined #ruby
<shortCircuit__>
I know .. :P
sadhu89 has quit [Ping timeout: 265 seconds]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
csk has quit [Quit: Bye]
<shortCircuit__>
yay marvels agent of shield is out ..
tectonic has joined #ruby
banisterfiend has joined #ruby
tectonic has quit [Client Quit]
<hanmac>
shortCircuit__: i like the first episodes of it *g with Sky in a hot dress *hihi
<shortCircuit__>
haha
<shortCircuit__>
do you watch mr robot?
Snowy has quit [Remote host closed the connection]
<hanmac>
hm not yet, but i will take a look later ... i recently watch "Legends of Tomorrow"
CloCkWeRX has quit [Ping timeout: 264 seconds]
toretore has quit [Ping timeout: 240 seconds]
csk has joined #ruby
GodFather has quit [Ping timeout: 244 seconds]
brendan- has joined #ruby
<shortCircuit__>
legends of tomorrow was kindof boring in the begining .. but they do the crossovers .. so have to watch sometimes
chouhoulis has quit [Remote host closed the connection]
karmatr0n has joined #ruby
hogetaro has quit [Quit: Leaving...]
chouhoulis has joined #ruby
sdothum has joined #ruby
Snowy has joined #ruby
AndrewIsHere has joined #ruby
AndrewIsHere has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
shinnya has joined #ruby
Vile` has quit [Ping timeout: 260 seconds]
rodfersou has joined #ruby
johnmilton has joined #ruby
CloCkWeRX has joined #ruby
csk has quit [Ping timeout: 265 seconds]
pawnbox has quit [Remote host closed the connection]
hogetaro has joined #ruby
pawnbox has joined #ruby
csk has joined #ruby
last_staff has quit [Quit: last_staff]
johnmilton has quit [Ping timeout: 265 seconds]
jmignault has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 265 seconds]
johnmilton has joined #ruby
face has joined #ruby
arnonhon_ has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DroidBurgundy has joined #ruby
arnonhongklay has quit [Read error: Connection reset by peer]
griffindy has joined #ruby
DroidBur_ has joined #ruby
RavinduL has joined #ruby
shortCircuit__ has quit [Remote host closed the connection]
stamina has quit [Ping timeout: 244 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ChiefAlexander has joined #ruby
sai_ has quit [Remote host closed the connection]
coolboy has joined #ruby
DroidBurgundy has quit [Ping timeout: 255 seconds]
gingray has quit [Ping timeout: 264 seconds]
cdg has joined #ruby
<petercooper>
just started mr robot a cpl days ago, was impressed :)
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmes1 has joined #ruby
CloCkWeRX has joined #ruby
coolboy has joined #ruby
hutch34 has quit [Ping timeout: 244 seconds]
tyang has quit [Ping timeout: 255 seconds]
hutch34 has joined #ruby
rodfersou is now known as rodfersou|lunch
blackwind_123 has quit [Ping timeout: 272 seconds]
nando293921 has quit [Ping timeout: 264 seconds]
blackmes1 has quit [Ping timeout: 272 seconds]
last_staff has joined #ruby
malcolmva has joined #ruby
blackwind_123 has joined #ruby
SeepingN has joined #ruby
gingray has joined #ruby
sdothum has joined #ruby
Zamyatin has joined #ruby
AlexRussia has joined #ruby
nando293921 has joined #ruby
webopsx has joined #ruby
pawnbox has quit [Remote host closed the connection]
jblack has quit [Ping timeout: 244 seconds]
brent__ has joined #ruby
inukshuk_ has joined #ruby
blackmes1 has joined #ruby
inukshuk_ has quit [Client Quit]
pkerchner has joined #ruby
chouhoulis has joined #ruby
<pkerchner>
hi, anybody from Germany/Rhein-Main/e.g Darmstadt here ?
mikecmpbll has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
flying has quit []
ropeney has joined #ruby
dn5 has joined #ruby
imperator has joined #ruby
claudiuinberlin has quit []
RedNifre_ is now known as RedNifre
aesthetikx has joined #ruby
skweek has joined #ruby
kerframil has joined #ruby
synthroid has joined #ruby
platzhirsch has quit [Quit: WeeChat 1.4]
failshell has quit [Remote host closed the connection]
hopsoft has joined #ruby
Danishman has joined #ruby
tomphp has quit [Ping timeout: 265 seconds]
rismoney1 has quit [Ping timeout: 265 seconds]
SteenJobs has quit [Quit: SteenJobs]
serard_ has joined #ruby
<serard_>
Hello
<ropeney>
holla
blaxter has quit [Quit: foo]
synthroid has quit [Ping timeout: 244 seconds]
<serard_>
I'm coding a script to be run via systemd (raspbian, multi-user.target). It plays omxplayer to play videos over hdmi. I used Signal.trap("INT") but it cannot catch ctrl+c ... What can I do if I want to end it ?
<ropeney>
you'd use systemd to end it?
zipace has joined #ruby
synthroid has joined #ruby
SteenJobs has joined #ruby
Cohedrin has joined #ruby
ichkv has quit [Remote host closed the connection]
moneylotion has quit [Read error: Connection reset by peer]
Azure has quit [Ping timeout: 265 seconds]
duderonomy has joined #ruby
gp has joined #ruby
<gp>
is anyone aware of any simple ruby http/https proxies that support proxy connect for https and ipv6 support? looking for something that could be wrapped in a vagrant plugin to autostart on vagrant up
jerematic has joined #ruby
jerematic has quit [Client Quit]
ramfjord has joined #ruby
elastix has joined #ruby
<serard_>
havenwood, solution is adding KillSignal=SIGINT to unit service definition of my service
zipace has quit [Disconnected by services]
ziprar has joined #ruby
<dn5>
for some reason, I get Invalid argument (Errno:EINVAL) when .write on a RAW socket
jmignault has quit [Remote host closed the connection]
tonini has quit [Quit: Connection closed for inactivity]
tyang has joined #ruby
symm- has quit [Quit: Leaving...]
chouhoul_ has joined #ruby
rcvalle has joined #ruby
sandelius has joined #ruby
replay has joined #ruby
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam>
dn5: what state is the socket in? what have you done to it leading up to the write?
marxarelli has joined #ruby
anisha has joined #ruby
coolboy has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
ropeney has quit [Quit: Leaving]
craigp has joined #ruby
<eam>
(what do you expect a raw socket to do with a write request? There are so many things, depending on its state)
zeroDi has joined #ruby
claudiuinberlin has joined #ruby
ajsharma has joined #ruby
Vingador_ has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
redpants has joined #ruby
pragmaticus has quit [Ping timeout: 244 seconds]
jmignault has joined #ruby
nankyokusei has joined #ruby
postmodern has joined #ruby
conta has quit [Ping timeout: 265 seconds]
craigp has quit [Ping timeout: 264 seconds]
nankyokusei has quit [Ping timeout: 265 seconds]
ruby-lang871 has joined #ruby
f4cl3y has quit [Ping timeout: 272 seconds]
cdg has joined #ruby
<ruby-lang871>
hello everyone, i did the update to macOS sierra, and ruby 1.9.3 stopped working with a 'malloc: *** malloc_zone_unregister() failed for 0xaddress' error
<ruby-lang871>
any guesses?
<eam>
ruby-lang871: how did you install that ruby
<eam>
in general, rebuild/reinstall all software you compiled under an older version of osx
<dn5>
manpage for write: fd is attached to an object which is unsuitable for writing; or the file was opened with the O_DIRECT flag, and either the address specified in buf, the value specified in count, or the current file offset is not suitably aligned.
<dn5>
wohoo, passing data reference actually sends the frame! cool.
mikecmpbll has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
Authenticator has quit [Quit: leaving]
sai_ has quit [Read error: Connection reset by peer]
sai_ has joined #ruby
blackmes1 has quit [Ping timeout: 272 seconds]
brendan- has joined #ruby
<eam>
dn5: :)
xemehc has quit [Remote host closed the connection]
xemehc has joined #ruby
stamina has joined #ruby
cdg has quit [Remote host closed the connection]
conta has joined #ruby
skweek has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 244 seconds]
skweek has joined #ruby
skweek has quit [Max SendQ exceeded]
sai_ has quit [Read error: Connection reset by peer]
skweek has joined #ruby
sai_ has joined #ruby
Uranio has joined #ruby
pawnbox has quit [Remote host closed the connection]
nando293921 has quit [Remote host closed the connection]
chouhoul_ has quit [Remote host closed the connection]
connor_goodwolf has quit [Ping timeout: 264 seconds]
connor_goodwolf has joined #ruby
chouhoulis has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
moos3 has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
naftilos76 has joined #ruby
connor_goodwolf has quit [Ping timeout: 240 seconds]
Uranio has quit [Quit: while you read this, a kitty dies]
moos3 has quit [Client Quit]
moos3 has joined #ruby
sai_ has quit [Read error: Connection reset by peer]
naftilos76 has quit [Read error: Connection reset by peer]
connor_goodwolf has joined #ruby
sai_ has joined #ruby
bjh13 has quit [Remote host closed the connection]
naftilos76 has joined #ruby
sai_ has quit [Read error: Connection reset by peer]
sai_ has joined #ruby
sai_ has quit [Read error: Connection reset by peer]
sai_ has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
TinkerTyper has quit [Ping timeout: 240 seconds]
A124 has quit [Quit: '']
loinclot_ has joined #ruby
tyang_ has joined #ruby
connor_goodwolf has quit [Ping timeout: 240 seconds]
loincloth has quit [Ping timeout: 265 seconds]
connor_goodwolf has joined #ruby
serard_ has quit [Read error: Connection reset by peer]
TinkerTyper has joined #ruby
tyang has quit [Ping timeout: 255 seconds]
conta has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
moos3 has quit [Quit: WeeChat 1.5]
connor_goodwolf has quit [Ping timeout: 265 seconds]
moos3 has joined #ruby
<ramfjord>
Does anyone here run their own gemserver?
elenatanasoiu has joined #ruby
hopsoft has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
connor_goodwolf has joined #ruby
sai_ has quit [Read error: Connection reset by peer]
<ramfjord>
I've got one set up with geminabox, which was pretty straightforward, but I'd love to host documentation on the same server that hosts the gems
sai_ has joined #ruby
jmignault has quit [Ping timeout: 248 seconds]
<ramfjord>
Ideally without having to install all the gems on that server
snguyen has joined #ruby
connor_goodwolf has quit [Ping timeout: 265 seconds]
connor_goodwolf has joined #ruby
banisterfiend has joined #ruby
naftilos76 has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
chwbacca` has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
redpants has quit [Ping timeout: 244 seconds]
patrick99e99 has quit [Ping timeout: 244 seconds]
naftilos76 has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naftilos76 has quit [Read error: Connection reset by peer]
skweek has quit [Ping timeout: 255 seconds]
naftilos76 has joined #ruby
Devalo has quit [Remote host closed the connection]
A124 has joined #ruby
Devalo has joined #ruby
johnmilton has quit [Remote host closed the connection]
stamina has quit [Ping timeout: 272 seconds]
gfvcastro has joined #ruby
NTrash has quit [Quit: Konversation terminated!]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
naftilos76 has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
pkerchner has joined #ruby
Devalo has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Ping timeout: 244 seconds]
kitikonti has joined #ruby
patarr has quit [Quit: patarr]
jmignault has joined #ruby
AnarchyAo has joined #ruby
RegulationD has quit [Remote host closed the connection]
patarr has joined #ruby
machinewar has joined #ruby
ajsharma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sai_ has quit [Read error: Connection reset by peer]
LuckyABA has joined #ruby
sai_ has joined #ruby
johnmilton has joined #ruby
jmignault has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
jaequery has joined #ruby
bmurt has quit [Read error: Connection reset by peer]
allcentu1 has quit [Ping timeout: 244 seconds]
patarr has quit [Quit: patarr]
leea has joined #ruby
machinewar has quit []
CloCkWeRX has quit [Ping timeout: 276 seconds]
wrkrcoop has joined #ruby
elenatanasoiu has quit [Ping timeout: 244 seconds]
ahri has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit []
Oatssoulbro has joined #ruby
<Oatssoulbro>
Hello!
Cohedrin has quit [Ping timeout: 265 seconds]
<Oatssoulbro>
How are you all doing today?
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stamina has joined #ruby
<ramfjord>
Doing well, how about you Oatssoulbro
<ramfjord>
?
<Oatssoulbro>
I'm doing good.
_djbkd has quit [Remote host closed the connection]
<Oatssoulbro>
I've come here because I have a ruby question that's stumped me.
<Oatssoulbro>
I'll do my best to explain it.
_djbkd has joined #ruby
patarr has joined #ruby
<Oatssoulbro>
I have a yaml file that has an array in it. I want to select a value based on the index of the item, instead of using .sample.
<Oatssoulbro>
I've tried .at(n), and .fetch(n), but they both give me this error
<Oatssoulbro>
Now the values for the array are strings.
patarr has quit [Client Quit]
<Oatssoulbro>
H:/SolarSystem/Code/solar_system.rb:154:in `[]': no implicit conversion of String into Integer (TypeError)
<miah>
paste the code you've got?
<miah>
gist it i mean
<Oatssoulbro>
The entire code?
<miah>
well, the array handling bit
<havenwood>
Oatssoulbro: Seems you're using a String for the index when an Integer is expected.
<miah>
ya, wanted to check that ^
patarr has joined #ruby
<Oatssoulbro>
Hmn.
<Oatssoulbro>
I don't even know how I did that. A string is the value, but is the value also the index :V
<strongcode>
I like the key checking and possibility of adding other class types for `opts` arg like Hash, File, etc. but idk if this is stupid and against convention
<Nilium>
Why not just do one thing and not add ambiguity?
<Nilium>
Could even define a class that just has all your stuff laid out so that there's attrs for everything
<baweaver>
whitelisting and opts all in one
<Nilium>
No question about what the keys are
<strongcode>
what if i have a lot of keys?
<baweaver>
Then you have too big of a class
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<Nilium>
Consider undoing the damage you've done
<baweaver>
hiding them in a hash doesn't solve the actual problem.
<strongcode>
and what if i want to config from a file - add a helper method?
<Nilium>
That's beyond the scope of this.
<strongcode>
irrelevant, im asking a question
<Nilium>
And if you want to load a configuration from a file, write code to do it.
<Nilium>
Work?
<Nilium>
I don't know what you're asking there.
blackgoat has joined #ruby
gfvcastro has joined #ruby
<strongcode>
ok i think this is enough to go on for now. Reading config from file is not a strict requirement at this point
<strongcode>
thank you both
<baweaver>
It's more that you're describing your problem oddly.
<baweaver>
?xy
<ruby[bot]>
it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
fmcgeough has quit [Quit: fmcgeough]
flopsec has quit [Remote host closed the connection]
alxgsv has quit [Remote host closed the connection]
Satyajit has quit [Remote host closed the connection]
Guest23033 has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
loinclot_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
replay has joined #ruby
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
loincloth has joined #ruby
hopsoft has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_djbkd has joined #ruby
synthroid has quit []
blackmes1 has quit [Ping timeout: 276 seconds]
nikivi has quit [Quit: zzz]
tomphp has joined #ruby
allcentu1 has quit [Ping timeout: 265 seconds]
nikivi has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
hopsoft has joined #ruby
leea has joined #ruby
Coldblackice has joined #ruby
blackmes1 has joined #ruby
xemehc has quit [Quit: ZZZzzz…]
hopsoft has quit [Client Quit]
Gasher^ has quit [Quit: Leaving]
elastix has quit [Quit: elastix]
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nikivi has quit [Quit: zzz]
aegis3121 has joined #ruby
xemehc has joined #ruby
Tempesta_ has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
gfvcastro has joined #ruby
nb_bez___ has joined #ruby
Tempesta has quit [Ping timeout: 244 seconds]
despai has joined #ruby
hopsoft has joined #ruby
pkerchner has quit [Ping timeout: 240 seconds]
stamina has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
cdg has joined #ruby
marxarelli is now known as marxarelli|afk
ocbtec has quit [Quit: leaving]
flopsec has joined #ruby
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mozzarella has quit [Remote host closed the connection]
mozzarella has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
ldnunes has quit [Quit: Leaving]
workmad3 has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
pabs has quit [Quit: irssi upgrade]
lifted has quit [Remote host closed the connection]
pabs has joined #ruby
gfvcastro has joined #ruby
ur5us has quit []
gfvcastro has quit [Client Quit]
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
srgupta has joined #ruby
s2013 has joined #ruby
SteenJobs has joined #ruby
<s2013>
okay so im iterating over a record and trying to do count on multiple attributes.. so for example book_count["book a"] = { count: 1, reviews: 3, purchases: 4 } but this willl increase as more of book a is found, hope that makes sense
<s2013>
trying to figure out best way to do that
_djbkd has quit [Read error: Connection reset by peer]
<baweaver>
what would happen if the default value were to be a hash with 0 values?
<s2013>
yes i know hash.new(0) etc but can i do book_count["book a"] = Hash.new (0)..
<baweaver>
read it closer
<s2013>
thing is i dont know if book a exists in the db..
<s2013>
k
<baweaver>
it takes a block
srgupta has quit [Client Quit]
<baweaver>
wait, are you trying to do this on a database?
<s2013>
im iterating over records from a db
hutch34_ has quit [Quit: WeeChat 1.5]
aswen has quit [Quit: WeeChat 1.5]
<baweaver>
Is this Rails?
<s2013>
yea
<baweaver>
Hop over to #RubyOnRails, let's take it there.
<s2013>
but this part is ruby since i already have the record
<s2013>
k
blackmes1 has quit [Quit: WeeChat 1.5]
hobodave has quit [Ping timeout: 244 seconds]
ramortegui has quit [Quit: Ex-Chat]
blackmesa has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
ujjain has quit [Ping timeout: 276 seconds]
<zenspider>
I'd like to PM with someone about _unit_ testing out rails helper methods that wrap devise. Since `sign_in` is mixed into ControllerTest, is there a way to do this via a helper or something, instead of mocking out our `current_user`? Anyone familiar with this area? I'd rather not go to #rails and wade through that mess
leea has joined #ruby
gfvcastro has joined #ruby
dminuoso has quit [Ping timeout: 244 seconds]
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
gfvcastro has quit [Client Quit]
Seventoes has joined #ruby
Seventoes has left #ruby [#ruby]
last_staff has quit [Quit: last_staff]
mtkd has quit [Ping timeout: 240 seconds]
grh has quit [Ping timeout: 248 seconds]
skweek has joined #ruby
ramfjord_ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dunj3 has quit [Ping timeout: 240 seconds]
JoshS has quit [Ping timeout: 244 seconds]
Wolland has quit []
jenrzzz has quit [Ping timeout: 265 seconds]
mtkd has joined #ruby
dunj3 has joined #ruby
griffindy has joined #ruby
jaequery has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
rodfersou has quit [Quit: leaving]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackgoat has quit [Quit: WeeChat 1.5]
jrafanie has joined #ruby
marxarelli|afk is now known as marxarelli
jrafanie has quit [Client Quit]
SteenJobs has quit [Quit: SteenJobs]
JoshS has joined #ruby
xemehc has quit [Quit: ZZZzzz…]
agent_white has quit [Quit: backlater]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
xemehc has joined #ruby
tyang has joined #ruby
solocshaw has joined #ruby
finisherr has joined #ruby
amclain has quit [Read error: Connection reset by peer]
amclain has joined #ruby
ratatine has quit [Read error: Connection reset by peer]
ratatine has joined #ruby
jphase has quit [Read error: Connection reset by peer]
wrkrcoop has quit [Quit: wrkrcoop]
CuriousMind has joined #ruby
<CuriousMind>
Hello
CuriousMind has quit [Client Quit]
elifoster has quit [Read error: Connection reset by peer]
jphase has joined #ruby
<zenspider>
baweaver: Ruby Architects ($60k) ?!?!?!? what the fuck?
jenrzzz has quit [Ping timeout: 240 seconds]
mwlang has joined #ruby
elifoster has joined #ruby
allcentu1 has joined #ruby
CuriousMind has joined #ruby
<CuriousMind>
Hello
<lupine>
zenspider: that's about normal
<havenwood>
CuriousMind: hi
<zenspider>
lupine: no, no it's not. not in the US
<lupine>
too low? too high?
jackjackdripper has quit [Read error: Connection reset by peer]
<havenwood>
lupine: low
<lupine>
greedy
<lupine>
mind you, I'm on £66K these days
jackjackdripper has joined #ruby
<CuriousMind>
I am on codecademy learning about ruby and it says "Ruby is an object-oriented programming language, which means it manipulates programming constructs called objects. " What is a "programming construct"?
herbmillerjr has quit [Remote host closed the connection]
<CuriousMind>
Google definition: "an idea or theory containing various conceptual elements, typically one considered to be subjective and not based on empirical evidence.", I don't understand this
herbmillerjr has joined #ruby
__main__ has quit [Ping timeout: 272 seconds]
<zenspider>
"programming construct" is fairly self-defining. you can replace "construct" with "thingy" or "concept" or "artifact"
<zenspider>
lupine: is that salary at an architect level in the UK?
loincloth has quit [Remote host closed the connection]
<CuriousMind>
zenspider: Thank you
__main__ has joined #ruby
<CuriousMind>
Ok so objects are things that contain other things
<mikecmpbll>
heh, wages discussion always amuses me. it depends highly on where you are
<mikecmpbll>
and what sort of place you want to work i guess.
ramfjord_ has quit [Ping timeout: 265 seconds]
<zenspider>
working for a US contracting company asking for architect level work at $30/hour? Seattle just standardized on $15/hour minimum wage.
loincloth has joined #ruby
toretore has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider>
The first line of the job desc is "Are you one of top Software Architects in the world?"
JeanCarloMachado has quit [Ping timeout: 265 seconds]
<zenspider>
if you are, you expect more than $30/hr
<mikecmpbll>
that's a very high minimum wage compared to here.
<baweaver>
Top SAs around here tend to earn 200k base
<baweaver>
then again that's the Bay Area, where the Juniors make 90-100k starting
flying has joined #ruby
nofxx has joined #ruby
mlehrer has quit [Ping timeout: 244 seconds]
<mikecmpbll>
for context, i'm a lead dev in a smallish team but with a successful product and i make $50k atm :p
<baweaver>
what area?
<mikecmpbll>
north england
solocshaw has quit [Ping timeout: 250 seconds]
<baweaver>
Is that USD or GBP?
<mikecmpbll>
usd
loinclot_ has joined #ruby
<mikecmpbll>
£38k
workmad3 has quit [Ping timeout: 240 seconds]
<baweaver>
"The average salary for a Senior Software Engineer is £49,224"
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
biberu has quit []
<lupine>
heh, yes, don't work work in london or san francisco
<lupine>
mikecmpbll: northern england? I'm in york
skweek has quit [Ping timeout: 260 seconds]
<mikecmpbll>
oh cool, north yorkshire also, but down in skipton ..
sonikspin has quit [Ping timeout: 260 seconds]
xemehc has quit [Quit: ZZZzzz…]
nando293921 has quit [Ping timeout: 255 seconds]
solocshaw has joined #ruby
xemehc has joined #ruby
wethu has joined #ruby
allcentu1 has quit [Quit: WeeChat 1.2]
dminuoso has joined #ruby
nettoweb has joined #ruby
<lupine>
awesome. working on anything I'd recognise?
ajsharma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
* lupine
only recently moved to gitlab but likes to keep an eye on local prospects ;)
vqrs has quit [Ping timeout: 264 seconds]
jaequery has joined #ruby
ziprar is now known as zipace
ramfjord has joined #ruby
nando293921 has joined #ruby
<mikecmpbll>
oh cool, you work remotely i assume?
patarr has quit [Quit: patarr]
vqrs has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
dminuoso has quit [Ping timeout: 240 seconds]
<mikecmpbll>
we do a safeguarding product for schools/other institutions that work with vulnerable people.
RegulationD has quit [Remote host closed the connection]
<lupine>
ah, worthy stuff
xemehc has quit [Quit: ZZZzzz…]
<lupine>
yeah, gitlab's 100% remote. don't even have core hours
<lupine>
they pay below market rate as a result, but it's well worth it
<lupine>
(and market rate is insane anyway
polishdub has quit [Quit: Leaving]
<mikecmpbll>
sounds cool. we use gitlab ce atm, only recently started with it :)
<lupine>
ooh, awesome :D
<lupine>
8.12 is out tomorrow, full of my code. bit scary!
gfvcastro has joined #ruby
solocshaw has quit [Ping timeout: 272 seconds]
crabbb has joined #ruby
<crabbb>
hi
blackgoat has joined #ruby
<baweaver>
crabbb hi
<crabbb>
hy
<crabbb>
finally got someone alive !
<crabbb>
huh
<mikecmpbll>
woot!
<baweaver>
there are several of us online at most odd hours.
<crabbb>
yeah i can c status !
<crabbb>
but i think others server do more better atleast active users !
<baweaver>
have a ruby question?
<crabbb>
no i found it somehow Active ! lol
claw has quit [Ping timeout: 272 seconds]
<mikecmpbll>
intriguing.
Danishman has quit [Read error: Connection reset by peer]
Qommand0r has quit [Quit: Exiting...]
claw has joined #ruby
Danishman has joined #ruby
Zamyatin has quit [Quit: Knocking out. Peace y'all...]
[k- has quit [Quit: -a- IRC for Android 2.1.32]
tmtwd has joined #ruby
flying has quit []
jenrzzz has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
hopsoft has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nettoweb has quit [Ping timeout: 264 seconds]
serard has quit [Remote host closed the connection]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
sneakers has joined #ruby
polysics has quit [Remote host closed the connection]
jshjsh has joined #ruby
Qommand0r has joined #ruby
darix has quit [Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number]
darix has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darix has quit [Client Quit]
JoshS has quit [Ping timeout: 255 seconds]
gfvcastro has quit [Ping timeout: 265 seconds]
iamb has quit [Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number]
elenatanasoiu has joined #ruby
jphase has joined #ruby
firstdayonthejob has quit [Ping timeout: 255 seconds]
darix has joined #ruby
alxgsv has joined #ruby
hopsoft has joined #ruby
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diofeher has joined #ruby
<diofeher>
is there any way to do that without syntax error in Ruby/Rails: raise "Test" && count += 1 if a.nil?
<lupine>
if a.nil? ; count +=1 ; raise "test"; end
symm- has joined #ruby
Mintyl has joined #ruby
<baweaver>
count +=1 and raise "test" unless a
<lupine>
I hate that operator so much
gingray has quit [Ping timeout: 265 seconds]
<diofeher>
unless? :)
<diofeher>
when I started I got confused every time with it too
<diofeher>
baweaver, lupine thanks a lot
<zenspider>
strongcode: I usually design my code so that something will take an arg and default to ARGV, that way I can supply my own for test: def process_args args=ARGV
<zenspider>
I heart `unless`. incredibly expressive
<strongcode>
hmmm, ok. I'll work on that. Thanks
<strongcode>
I think right now im doing something very, very silly
<zenspider>
strongcode: what?
AnarchyAo has quit [Quit: ircN 8.00 for mIRC (20100904) - www.ircN.org]
<strongcode>
you might hate me for this, let me paste some code
<lupine>
no
<lupine>
use a pastebin
<diofeher>
thanks baweaver it worked with "and" but not with && :)
<baweaver>
?gist
<ruby[bot]>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<baweaver>
precedence of operators
<baweaver>
that being said a lot of people hate `and` and `or` for that reason