baweaver has quit [Remote host closed the connection]
willardg has joined #ruby
`tim` has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
EllisTAA has joined #ruby
<uberjar>
I'm trying to parse log files and I'm noticing a variation in the format that my ruby app is outputting because in some places I use DateTime.now.utc.iso8601 and other times I use Time.now.utc.iso8601. I had naievly assumed they would be exactly the same
<uberjar>
so i can't just use string manipulation to parse these logs the way I thought I could
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<uberjar>
but it's no big eal
_blizzy_ has quit [Read error: Connection reset by peer]
<drbrain>
you could Time.parse your log results
<uberjar>
never the less my vote is to make them the exact same if that counts for anything..
<uberjar>
maybe I'll submit a pull request to ruby
<drbrain>
yeah, it seems better to output Z instead of the 0 offset
noethics has joined #ruby
<uberjar>
yea.. Time.parse is what I'm going to have to do now, but that's extra CPU cycles for my usecase
kies has joined #ruby
CVTJNII has joined #ruby
<uberjar>
cool beans, well thanks a bunch
<uberjar>
I vote for Z too although consistancy would be fine if it were +
rushed has joined #ruby
bricker_ has joined #ruby
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
willardg has quit [Ping timeout: 255 seconds]
Mojo_Nixon has joined #ruby
cassioscabral has quit [Quit: cassioscabral]
_blizzy_ has joined #ruby
baweaver has joined #ruby
freerobby has quit [Quit: Leaving.]
p0wn3d_ has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leafybasil has quit [Remote host closed the connection]
<eam>
uberjar: I hope everyone says the second one
<uberjar>
8 lines vs 1 though…
sekrit has joined #ruby
<eam>
so?
ericjphillips has quit [Quit: Leaving.]
<uberjar>
I mean.. if it were 16 lines vs 2 lines.. or 32 lines vs 4 lines..
bashrw has quit [Ping timeout: 264 seconds]
<uberjar>
at some point it's better to have less code
<eam>
if you had 32 lines of code on 4 lines it'd be just as hard to read as 8 lines of code on one line
<uberjar>
yeah but its' not like it's a huge long line
<uberjar>
it's actually pretty compact.. and if you're used to that operator I don't see why it's any harder to read per say
<uberjar>
I dunno.. I think most people agree with you
TheWhip has quit [Ping timeout: 256 seconds]
swgillespie has joined #ruby
<eam>
the precedence and multiple uses of : and ? are difficult to parse, I think
<uberjar>
but I suspect it's a bias having to do with lots of people being influences by C based languages before they came to ruby
<eam>
thing = a || b || c || d || e # is better than a conditional I think
<uberjar>
hrmmm
<eam>
uberjar: I've done a lot more C than ruby and I'd write it on 8 lines in C
wookiehangover has quit [Ping timeout: 246 seconds]
<eam>
or at least I'd break the ternary out into multiple lines
diegobiavati has quit [Read error: No route to host]
AdolfHitlr has left #ruby [#ruby]
diegobiavati has joined #ruby
<eam>
the trouble with ruby I suppose is that the crappy whitespace parsing means I can't use my favorite C style forthis
<uberjar>
I suspect though that if you had spent more time in a language such as scheme (which also influenced Ruby's design) then you'd prefer the 1 liner
faces has quit [Read error: Connection reset by peer]
johnzorn has quit [Ping timeout: 256 seconds]
<uberjar>
bnaggy your if statement is missing the conditon for what's supposed to happen when offset == 0
<bnagy>
uberjar: it's not missing anything
<eam>
>> ?|*$$
<ruboto>
eam # => "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ...check link for more (https://eval.in/445348)
<uberjar>
if offset is zero it's supposed to return (0..23)
<bnagy>
you just have redundant logic in your original, so I took it out
amystephen has quit [Quit: amystephen]
<uberjar>
oh damn you're right! because if offset is 0 I can just use a reference to offset instead of the literal 0
<uberjar>
nice that's a better chice
<uberjar>
choice.. bravo
pwnd_nsfw has quit [Remote host closed the connection]
<bnagy>
if you really want short I don't totally hate eam's ternary based on that
<bnagy>
09:48 < eam> range = offset < 0 ? 0..(23 - offset) : (offset..23) # is pretty ok though
<bnagy>
I just don't use them as a matter of principle
<eam>
mostly me either, unless it's a very simple expression like x ? y : z
jobewan has quit [Ping timeout: 246 seconds]
lkba has quit [Ping timeout: 246 seconds]
s00pcan has quit [Ping timeout: 264 seconds]
symbol has quit [Ping timeout: 268 seconds]
<eam>
almost any other non-alphanumerics and I'd break it up
pwnd_nsfw has joined #ruby
bigmac has quit [Ping timeout: 246 seconds]
PhantomS_ has joined #ruby
adh_ has joined #ruby
<adh_>
how the fuck is israel jewish land? that's like me going to your house and telling you that you're on my property because my indian ancestors lived where you're living
tkuchiki has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
inanepenguin has quit [Quit: inanepenguin]
PhantomSpank has quit [Ping timeout: 240 seconds]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
workmad3 has joined #ruby
Rickmasta has joined #ruby
renderfu_ has joined #ruby
jaequery has joined #ruby
jgt has joined #ruby
RegulationD has joined #ruby
eminencehc has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
jobewan has joined #ruby
renderfu_ has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
sdothum has quit [Ping timeout: 264 seconds]
amystephen has joined #ruby
bigmac has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
sdothum has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
EmeraldExplorer has joined #ruby
favadi has joined #ruby
uberjar has quit [Quit: uberjar]
iwaffles has joined #ruby
hephaestus_rg has quit [Ping timeout: 250 seconds]
shmilan has quit [Remote host closed the connection]
paulcsmith_ has quit [Quit: Be back later ...]
jellyjellyrobot has joined #ruby
jellyjellyrobot has quit [Max SendQ exceeded]
jellyjellyrobot has joined #ruby
Guest28550 has joined #ruby
jellyjellyrobot has quit [Max SendQ exceeded]
<adh_>
i didn't break any rules
<havenwood>
?ot adh_
<ruboto>
adh_, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<adh_>
sorry i meant to pm that
PhantomS_ has quit [Remote host closed the connection]
baweaver has joined #ruby
rushed has quit [Quit: rushed]
Azure has quit [Remote host closed the connection]
_aeris_ has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
_aeris_ has joined #ruby
elperdut_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
solocshaw has quit [Ping timeout: 240 seconds]
mrtomme has quit [Ping timeout: 264 seconds]
amoeba has joined #ruby
mrtomme has joined #ruby
banjara has quit [Quit: Leaving.]
gener1c has quit [Ping timeout: 246 seconds]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
zenguy_pc has quit [Read error: Connection reset by peer]
InternetFriend has joined #ruby
elperdut_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
braincrash has quit [Quit: bye bye]
gener1c has joined #ruby
wallerdev has joined #ruby
wallerdev has quit [Client Quit]
InternetFriend has quit [Client Quit]
comm64x has quit [Ping timeout: 246 seconds]
TheWhip has joined #ruby
TheWhip has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
TheWhip has joined #ruby
sleepee has quit [Ping timeout: 264 seconds]
catbusters has joined #ruby
hephaestus_rg has joined #ruby
braincrash has joined #ruby
Eiam_ has joined #ruby
casadei has joined #ruby
rushed has joined #ruby
tkuchiki has joined #ruby
deuxclique has joined #ruby
agent_white has joined #ruby
<agent_white>
Evenin'
<CooloutAC>
agent_white: evening
<deuxclique>
hey all
<havenwood>
deuxclique: hi
tubbo has quit [Ping timeout: 255 seconds]
<deuxclique>
I guess this is my official 'hello world'. hope to contribute soon enough.
<havenwood>
deuxclique: :D
gix has quit [Ping timeout: 244 seconds]
<agent_white>
Hello planet!
casadei has quit [Ping timeout: 244 seconds]
bigmac has quit [Ping timeout: 268 seconds]
rgtk has joined #ruby
nwhirschfeld has quit [Ping timeout: 264 seconds]
zenguy_pc has joined #ruby
uri_ has joined #ruby
gix has joined #ruby
tmtwd has quit [Ping timeout: 246 seconds]
sundhell has joined #ruby
lethjakman has joined #ruby
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krz has joined #ruby
leafybasil has joined #ruby
tubbo has joined #ruby
uri_ has joined #ruby
nwhirschfeld has joined #ruby
abel has joined #ruby
uri_ has quit [Client Quit]
sundhell has quit [Ping timeout: 250 seconds]
<Eiam_>
hrm, how the heck do you pass parameters into this damn DSL =(
abel has quit [Read error: Connection reset by peer]
tmtwd has joined #ruby
<Eiam_>
Anyone ever used https://github.com/thbar/kiba and know how to pass paramters into your source ? it looks lke they string your whole file and pass it to instance_eval
aquiles has joined #ruby
TheWhip has quit [Remote host closed the connection]
uri_ has joined #ruby
<Eiam_>
okay, weird. just reloaded it and it worked fine..
aquiles has quit [Client Quit]
uri_ has quit [Client Quit]
freerobby1 has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
tmtwd has quit [Ping timeout: 255 seconds]
Coldblackice_ has quit [Ping timeout: 272 seconds]
NeverDie_ has joined #ruby
NeverDie has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
whippythellama has quit [Quit: WeeChat 1.3]
lethjakman has quit [Ping timeout: 246 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eminencehc has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
eminencehc has quit [Remote host closed the connection]
Oog has joined #ruby
darkf has joined #ruby
User458764 has joined #ruby
pawnbox_ has joined #ruby
tmtwd has joined #ruby
eminencehc has joined #ruby
User458764 has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
TheRinger has quit [Quit: Konversation terminated!]
bigmac has joined #ruby
sundhell has joined #ruby
TheWhip has joined #ruby
bb010g has joined #ruby
cassioscabral has quit [Ping timeout: 264 seconds]
rakm has joined #ruby
sundhell has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
techsethi has quit [Quit: techsethi]
johnzorn has joined #ruby
saramic has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
wookiehangover has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 272 seconds]
zhkirill has quit [Ping timeout: 250 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
rakm has quit [Ping timeout: 265 seconds]
maletor has joined #ruby
eminencehc has quit [Remote host closed the connection]
eminencehc has joined #ruby
wookiehangover has joined #ruby
rakm has joined #ruby
zhkirill has joined #ruby
bitri has joined #ruby
devoldmx has joined #ruby
finisherr has joined #ruby
jgt has joined #ruby
TheWhip has quit [Remote host closed the connection]
TheWhip has joined #ruby
TheWhip has quit [Remote host closed the connection]
RegulationD has joined #ruby
joufflu has joined #ruby
keen___________3 has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sundhell has joined #ruby
amystephen has quit [Ping timeout: 264 seconds]
Me_Engine has joined #ruby
arescorpio has quit [Ping timeout: 240 seconds]
sundhell has quit [Ping timeout: 252 seconds]
unshadow has joined #ruby
PhantomSpank has joined #ruby
auzty has joined #ruby
unshadow has quit [Client Quit]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
sdwrage has quit [Quit: This computer has gone to sleep]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jobewan has joined #ruby
PhantomSpank has quit [Ping timeout: 246 seconds]
MakMan has joined #ruby
charliesome has joined #ruby
deuxclique has quit [Remote host closed the connection]
techsethi has quit [Ping timeout: 265 seconds]
TheWhip has joined #ruby
jun has joined #ruby
sundhell has joined #ruby
swgillespie has joined #ruby
TheWhip_ has joined #ruby
hays has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_blizzy_ has joined #ruby
casadei has joined #ruby
TheWhip has quit [Ping timeout: 240 seconds]
sundhell has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
pawnbox has joined #ruby
subscope has joined #ruby
pepperbreath1 has joined #ruby
KervyN has quit [Ping timeout: 255 seconds]
Affix has quit [Ping timeout: 265 seconds]
j2k_ has quit [Ping timeout: 265 seconds]
pepperbreath1 has left #ruby [#ruby]
_blizzy_ has quit [Ping timeout: 246 seconds]
cyphactor has quit [Ping timeout: 246 seconds]
Lildirt has quit [Ping timeout: 268 seconds]
helpa has quit [Ping timeout: 246 seconds]
sumark_ has quit [Ping timeout: 255 seconds]
Coraline has quit [Ping timeout: 255 seconds]
wnd has quit [Ping timeout: 255 seconds]
scpike_ has quit [Ping timeout: 255 seconds]
sethetter has quit [Ping timeout: 246 seconds]
oz has quit [Ping timeout: 265 seconds]
theRoUS has quit [Ping timeout: 265 seconds]
sumark has joined #ruby
wnd has joined #ruby
rideh has quit [Ping timeout: 256 seconds]
chridal_ has quit [Ping timeout: 255 seconds]
konopka has quit [Ping timeout: 255 seconds]
nw has quit [Ping timeout: 255 seconds]
TTilus has quit [Ping timeout: 255 seconds]
tuor has quit [Ping timeout: 265 seconds]
fluchtreflex has quit [Ping timeout: 265 seconds]
shortdudey123 has quit [Ping timeout: 246 seconds]
EmeraldExplorer has quit [Quit: Connection closed for inactivity]
ghormoon has quit [Ping timeout: 255 seconds]
ironcamel has quit [Ping timeout: 255 seconds]
gagrio has quit [Ping timeout: 265 seconds]
jbw has quit [Ping timeout: 255 seconds]
dogeuira has quit [Ping timeout: 255 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nomadic_ has quit [Ping timeout: 265 seconds]
Skelz0r has quit [Ping timeout: 265 seconds]
scpike has joined #ruby
Drakevr has quit [Ping timeout: 265 seconds]
sethetter has joined #ruby
TTilus has joined #ruby
Skelz0r has joined #ruby
dogeuira has joined #ruby
Drakevr has joined #ruby
ironcamel has joined #ruby
swgillespie has joined #ruby
casadei has quit [Ping timeout: 240 seconds]
oz has joined #ruby
JDiPierro has joined #ruby
rideh has joined #ruby
adeponte has joined #ruby
Lildirt has joined #ruby
theRoUS has joined #ruby
nopc0de has joined #ruby
Affix has joined #ruby
nomadic has joined #ruby
ghormoon has joined #ruby
fluchtreflex has joined #ruby
fluchtreflex has joined #ruby
dEPy has joined #ruby
chridal has joined #ruby
shortdudey123 has joined #ruby
Affix is now known as Guest12818
konopka has joined #ruby
KervyN has joined #ruby
jbw has joined #ruby
nw has joined #ruby
tuor has joined #ruby
gagrio has joined #ruby
grenierm has joined #ruby
nw is now known as Guest37417
Cyther_ has quit [Read error: Connection reset by peer]
Coraline has joined #ruby
sundhell has joined #ruby
jessemcgilallen has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
JDiPierro has quit [Ping timeout: 264 seconds]
bigmac has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
swgillespie has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sundhell has quit [Ping timeout: 246 seconds]
jun has quit [Read error: Connection reset by peer]
jun has joined #ruby
davedev24 has quit [Remote host closed the connection]
pepperbreath has joined #ruby
techsethi has joined #ruby
zhkirill has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
varunwachaspati has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jatb has quit [Ping timeout: 244 seconds]
sdwrage has joined #ruby
swgillespie has joined #ruby
lagweezl1 has quit [Changing host]
lagweezl1 has joined #ruby
lagweezl1 is now known as lagweezle
jgt has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
LMity has quit [Ping timeout: 256 seconds]
dhjondoh has joined #ruby
otherj has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
sundhell has joined #ruby
jgt has quit [Ping timeout: 255 seconds]
jatb has joined #ruby
eminencehc has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 246 seconds]
ksteck has quit [Ping timeout: 264 seconds]
sundhell has quit [Ping timeout: 244 seconds]
rgtk has quit [Remote host closed the connection]
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
_blizzy_ has joined #ruby
kp666 has joined #ruby
eminencehc has joined #ruby
giuseppesolinas has joined #ruby
neanderslob_ has joined #ruby
sanjayu has joined #ruby
neanderslob_ has quit [Remote host closed the connection]
neanderslob has quit [Read error: Connection reset by peer]
balazs_ has quit [Ping timeout: 265 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
claw has quit [Ping timeout: 252 seconds]
aganov has joined #ruby
jenrzzz has joined #ruby
krz has quit [Quit: WeeChat 1.2]
rikai has quit [Quit: No Ping reply in 180 seconds.]
Lucky__ has quit [Ping timeout: 250 seconds]
rikai has joined #ruby
_blizzy_ has joined #ruby
yardenbar has joined #ruby
Soda has joined #ruby
tagrudev has joined #ruby
neanderslob has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
last_staff has joined #ruby
claw has joined #ruby
rgtk has joined #ruby
jun has quit [Read error: Connection reset by peer]
nickjj has quit [Ping timeout: 246 seconds]
User458764 has joined #ruby
zhkirill has joined #ruby
jun has joined #ruby
workmad3 has joined #ruby
User4587_ has joined #ruby
jobewan has quit [Quit: Leaving]
skade has joined #ruby
Torrieri has quit [Quit: Be back later ...]
sundhell has joined #ruby
otacon- has joined #ruby
Torrieri has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
User458764 has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
workmad3 has quit [Ping timeout: 246 seconds]
andersoldahl has quit [Quit: My Mac has gone to sleep.]
AlexRussia has quit [Ping timeout: 250 seconds]
sundhell has quit [Ping timeout: 255 seconds]
Gnomethrower has joined #ruby
Torrieri has quit [Ping timeout: 240 seconds]
lalalaaa has joined #ruby
niemcu has joined #ruby
JDiPierro has joined #ruby
zhkirill has quit [Ping timeout: 252 seconds]
Me_Engine has quit [Quit: Leaving]
Pathfinder_ has joined #ruby
eminencehc has quit [Remote host closed the connection]
JDiPierro has quit [Ping timeout: 265 seconds]
zhkirill has joined #ruby
astrobun_ has quit [Remote host closed the connection]
faraway has joined #ruby
agent_white has quit [Quit: nightBeauties]
tmtwd has joined #ruby
<certainty>
moin
eminencehc has joined #ruby
ndrei has joined #ruby
astrobun_ has joined #ruby
BrazenBraden has joined #ruby
zhkirill has quit [Ping timeout: 244 seconds]
amclain has quit [Quit: Leaving]
Coldblackice_ has joined #ruby
eminencehc has quit [Ping timeout: 244 seconds]
otherj has quit [Quit: .]
<faraway>
Hi, how can I tell „bundle“ to use a differnt ruby version?
pharaoh2 has joined #ruby
<faraway>
ruby -v reports 2.2.3 but bundle uses 2.0
jenrzzz has quit [Ping timeout: 272 seconds]
EllisTAA has quit [Ping timeout: 268 seconds]
jgt has joined #ruby
EllisTAA has joined #ruby
<maletor>
faraway: edit ruby bersion in the gemfile
saramic has quit [Remote host closed the connection]
saramic has joined #ruby
<BrazenBraden>
I have a ruby project consisting of scripts which run business logic and perform functions like emailing people under certain conditions. lots of emails can be shot off at once so I am trying to implement Resque as a worker to send the emails asynchronously. all the examples i find on configuring rescue are rails related. for instance, i dont have a Rakefile, there are no application initializers, etc.. not sure where to start with getting resque wo
<BrazenBraden>
rking for a simple ruby script project. anyone got any resources that could help?
renderfu_ has joined #ruby
jgt has quit [Ping timeout: 265 seconds]
tlaminator has joined #ruby
tlaminator has left #ruby [#ruby]
astrobun_ has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
keen___________4 has joined #ruby
shadoi has quit [Quit: Leaving.]
<faraway>
maletor: if i tun „bundle install“ it reports „/usr/local/bin/bundle: /usr/bin/ruby2.0: bad interpreter“ or is this also related to the gemfile?
astrobun_ has joined #ruby
jud has joined #ruby
keen___________3 has quit [Ping timeout: 255 seconds]
<faraway>
Or do I need ruby2.0 and ruby2.2 to run bundle
<faraway>
and to use 2.2
saramic has quit [Ping timeout: 244 seconds]
renderfu_ has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
havenwood has quit [Ping timeout: 255 seconds]
hephaestus_rg has quit [Ping timeout: 264 seconds]
Pathfinder_ has quit [Ping timeout: 240 seconds]
tmillc has quit [Ping timeout: 256 seconds]
adh_ has quit [K-Lined]
ta_ has quit [Remote host closed the connection]
cantaberry has quit [Ping timeout: 240 seconds]
cantaberry has joined #ruby
swgillespie has joined #ruby
zhkirill has joined #ruby
pawnbox has quit [Remote host closed the connection]
zhkirill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
face has quit [Ping timeout: 260 seconds]
tomphp has quit [Read error: Connection reset by peer]
<shevy>
what would you recommend to inter-communicate between two .rb scripts that are running? drb? sorta like, one is a REPL and it should send instructions to the other running file
<Takumo>
adaedra: basically the client has a SOAP API but they're not sure of its robustness/quality and want me to provide a test suite they can run and get reports from on a regular basic.
iml has joined #ruby
tomphp has joined #ruby
favadi has joined #ruby
ledestin has joined #ruby
<adaedra>
Why are you highlighting me
<certainty>
because he/she thought that your last "interesting" was related to his/her question
giuseppesolinas has quit [Quit: This computer has gone to sleep]
RegulationD has joined #ruby
giuseppesolinas has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
UtkarshRay has joined #ruby
faces has quit [Ping timeout: 240 seconds]
wpp has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
zenguy_pc has joined #ruby
roshanavand has joined #ruby
darkf_ is now known as darkf
face has joined #ruby
rushed has quit [Quit: rushed]
solocshaw has quit [Ping timeout: 240 seconds]
Soda has joined #ruby
stardiviner has quit [Ping timeout: 246 seconds]
rikkipitt has joined #ruby
suresh has joined #ruby
giuseppesolinas has joined #ruby
suresh is now known as Guest80679
giuseppesolinas has quit [Client Quit]
drbrain has joined #ruby
ndrei has joined #ruby
dikaio has quit [Quit: ........]
Guest80679 has quit [Quit: Page closed]
tenderlove has quit [Ping timeout: 255 seconds]
haraoka has quit [Ping timeout: 255 seconds]
htmldrum has joined #ruby
elperdut_ has joined #ruby
elperdut_ has quit [Client Quit]
big|bad|wolf has joined #ruby
rikkipit_ has joined #ruby
big|bad|wolf has quit [Max SendQ exceeded]
Pathfinder_ has quit [Ping timeout: 240 seconds]
lubarch has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
rikkipitt has quit [Ping timeout: 260 seconds]
tenderlove has joined #ruby
lipoqil has joined #ruby
rikkipit_ has quit [Client Quit]
rikkipitt has joined #ruby
beast has joined #ruby
stardiviner has joined #ruby
joonty has quit [Quit: joonty]
shoutsid has joined #ruby
Rollabunna has joined #ruby
Silex has quit [Quit: WeeChat 0.4.3]
pandaant has joined #ruby
Silex has joined #ruby
joonty has joined #ruby
jenrzzz has joined #ruby
roshanavand has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
elperdut has joined #ruby
tenderlove has quit [Ping timeout: 268 seconds]
blackmesa has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
Balzrael has joined #ruby
jgt has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
elperdut has quit [Ping timeout: 240 seconds]
lubarch has quit [Quit: leaving]
platzhirsch has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
tenderlove has joined #ruby
jgt has quit [Ping timeout: 264 seconds]
platzhirsch has joined #ruby
tenderlove has quit [Ping timeout: 260 seconds]
suchness has joined #ruby
<suchness>
Anyone know of a standard practice in validating an object in regard to many other objects? I have a lot of objects that are valid as a whole, but not individually. I have a few ways of going about it, but am curious if anyone has dealt with a problem like this before.
elton has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<workmad3>
I'm not quite sure I *like* it still, but I tend to write it mostly from spending too much time with JSON :)
<lalalaaa>
i loves it
<adaedra>
it's shorter!
<adaedra>
what's not to love!
postmodern has quit [Quit: Leaving]
<lalalaaa>
from ruby with love
<workmad3>
I'm more in favour of it since `{ "key": value }` support was added
<workmad3>
lalalaaa: originally, what I disliked was the closeness to JSON without actually supporting JSON syntax
Macaveli has joined #ruby
karapetyan has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
<lalalaaa>
ah, yeah i can understand that
<workmad3>
Dwarf: it's worth noting that if you want to create a hash literal with something other than symbols as keys, you *have* to go back to hash-rocket syntax
roshanavand has joined #ruby
<workmad3>
even `{ "foo": "bar" }` will convert "foo": to a symbol, not a string key
Azure has quit [Remote host closed the connection]
<Dwarf>
Noted
ndrei has quit [Ping timeout: 244 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
psy_ has quit [Ping timeout: 268 seconds]
ndrei has joined #ruby
rikkipit_ has joined #ruby
shredding has quit [Ping timeout: 240 seconds]
rikkipitt has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 244 seconds]
jalnt has joined #ruby
allomov has joined #ruby
sross07 has joined #ruby
sross_work|2 has quit [Read error: Connection reset by peer]
maikowblue has joined #ruby
PhantomSpank has quit [Remote host closed the connection]
Napear has joined #ruby
freezevee has joined #ruby
Rollabunna has quit [Remote host closed the connection]
mark3 has joined #ruby
jgt has quit [Ping timeout: 250 seconds]
rushed has joined #ruby
ajafo has quit [Ping timeout: 246 seconds]
mark3 has quit [Remote host closed the connection]
mark3 has joined #ruby
ajafo has joined #ruby
kkthxbye has joined #ruby
roshanavand has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
LMity has joined #ruby
krz has quit [Quit: WeeChat 1.2]
poguez_ has quit [Quit: Connection closed for inactivity]
Soda has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
jalnt has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
d10n-work has joined #ruby
IceyEC has joined #ruby
IceyEC has quit [Remote host closed the connection]
Icey has joined #ruby
rikkipitt has joined #ruby
pwnd_nsfw has quit [Quit: Leaving]
wpp has quit [Quit: ZZZzzz…]
rikkipit_ has quit [Ping timeout: 244 seconds]
wpp has joined #ruby
aswen has joined #ruby
herbst has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
rikkipitt has quit [Client Quit]
pwnd_nsfw has joined #ruby
karapetyan has joined #ruby
SylarRuby has quit [Remote host closed the connection]
karapetyan has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
karapetyan has joined #ruby
Guest28550 has quit [Quit: This computer has gone to sleep]
karapetyan has quit [Read error: Connection reset by peer]
banister has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
wpp has quit [Quit: ZZZzzz…]
karapetyan has quit [Read error: Connection reset by peer]
rhllor has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
TheWhip has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
TheWhip has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
skade has joined #ruby
tkuchiki has quit [Remote host closed the connection]
karapetyan has joined #ruby
wpp has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
bkulbida has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheWhip has quit [Ping timeout: 244 seconds]
herbst has joined #ruby
devoldmx has joined #ruby
User4587_ has quit [Ping timeout: 256 seconds]
<shevy>
wat... who wants to elbow guys here!
<[k->
?guys shevy
<ruboto>
shevy, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
arup_r has quit [Remote host closed the connection]
<[k->
immunity is granted to non regulars
Guest53 has joined #ruby
Synthead has joined #ruby
krisquigley has joined #ruby
Pathfinder_ has quit [Ping timeout: 256 seconds]
mbeasley has joined #ruby
<shevy>
[k- did you test the new frozen literal string already?
mclee_ has joined #ruby
mbeasley has left #ruby [#ruby]
<[k->
i have not touched 2.3
zenguy_pc has quit [Ping timeout: 250 seconds]
<CustosLimen>
I'm having problems with passenger and gollum - if I just run `bundle exec gollum --port 4141` I get gollum working fine, but if I run via passenger it does not work at all - config.ru and passengerfile and everything else is here: https://gitlab.com/aucampia/gollum-wiki/tree/master
<[k->
but i use frozen strings once in libobf!
marr has quit [Ping timeout: 260 seconds]
johnhamelink has quit [Ping timeout: 246 seconds]
Klumben has quit [Ping timeout: 240 seconds]
Pathfinder_ has joined #ruby
SylarRuby has joined #ruby
andersoldahl has joined #ruby
chipotle has quit [Quit: cheerio]
sdwrage has joined #ruby
arup_r has joined #ruby
rhllor has quit [Quit: rhllor]
elcontrastador has joined #ruby
JDiPierro has joined #ruby
UtkarshRay has quit [Ping timeout: 246 seconds]
UtkarshRay has joined #ruby
User458764 has joined #ruby
alienaut has joined #ruby
lkba_ has quit [Read error: Connection reset by peer]
jmignault has joined #ruby
sankaber has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
sankaber has quit [Client Quit]
jmignault has quit [Remote host closed the connection]
sanguisdex has quit [Quit: Leaving.]
jmignault has joined #ruby
sanjayu has quit [Ping timeout: 240 seconds]
chthon has joined #ruby
jmignault has quit [Client Quit]
<shevy>
when using git checkout... I see two different commands for the ruby source
jmignault has joined #ruby
<shevy>
"git clone --depth 1 git://github.com/ruby/ruby.git" and "git clone git://github.com/ruby/ruby.git", which one should be preferred? I don't know from where I got the --depth 1 thing
Mojo_Nixon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tobiasvl>
shevy: --depth makes a shallow clone, preferable if you don't need the entire (large) history of the entire ruby repo
jmignault has quit [Remote host closed the connection]
`tim` has joined #ruby
alienaut has quit [Ping timeout: 250 seconds]
chthon has quit [Client Quit]
jmignault has joined #ruby
sanguisdex has joined #ruby
PhantomSpank has joined #ruby
lenwood has joined #ruby
shoutsid has quit [Read error: Connection reset by peer]
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
<shevy>
ah
Me_Engine has quit [Quit: Leaving]
<shevy>
I can see now... started the non-depth variant at the time I wrote the above, and I am only at 20% checkout :(
dvxam has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
sanguisdex has left #ruby [#ruby]
chthon has joined #ruby
Voker57 has joined #ruby
balazs_ has joined #ruby
<[k->
ha! i use the github web interface
makufiru has quit [Quit: Connection closed for inactivity]
<[k->
no need to checkout!
jenrzzz has joined #ruby
<shevy>
hmm
Rollabunna has joined #ruby
<shevy>
too many options... svn ... git ... github interface...
<dvxam>
hello folks
<shevy>
hi guy
steeljav has joined #ruby
<dvxam>
I've facing a weird issue using 2.2.1 with ruby method parameters default value order (i know this s not very clear)
<maloik>
honestly, I didn't even consciously know it worked that way, probably that styleguide (or a variation of it) is so engrained in the way I work
<dvxam>
@shevy thx. I think ruby is doing the right thing here but i was supprised it does not raise an execption at compile time
<maloik>
probably because that*
codecop has quit [Remote host closed the connection]
<shevy>
dvxam yeah it surprised me too BUT, I actually do it like the style guide suggests
<shevy>
def foo(i, bla = 'default value')
<shevy>
I don't think I ever used
<shevy>
def foo(bla = 'default value', i)
RegulationD has joined #ruby
<shevy>
I wonder if official ruby documents that behaviour
<dvxam>
shevy me too! I would never do this in production code.
<dvxam>
shevy yes exactly.
BrazenBraden has joined #ruby
tjohnson has joined #ruby
<dvxam>
And i'm not sure this is working with 1.9.xx versions of ruby
<dvxam>
I'm gonna try
<shevy>
yeah
<shevy>
I think you can try with ruboto here
<shevy>
1.9>> or so... I can't remember
metalic has joined #ruby
SylarRuby has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
zenguy_pc has joined #ruby
funkenstrahlen has joined #ruby
<dvxam>
1.9>> puts 'hello'
tomphp has joined #ruby
<funkenstrahlen>
hey, I just try to create my first gem. How can I define gem dependencies in .gemspec? I have a Gemfile and would like to define those dependencies in the .gemspec. Or does gem build already use my Gemfile to track the dependencies?
varunwachaspati has quit [Quit: Connection closed for inactivity]
johnhamelink has joined #ruby
Peg-leg has quit [Client Quit]
Peg-leg has joined #ruby
Klumben has joined #ruby
dstarh has joined #ruby
freerobby has joined #ruby
<BrazenBraden>
anyone have some good resources about setting up and configuring Resque for a ruby scripting "app"? All I find is rails integration.
balazs_ has joined #ruby
User4587_ has joined #ruby
symbol has joined #ruby
User458764 has quit [Ping timeout: 255 seconds]
newdan has joined #ruby
kobain has joined #ruby
antgel has joined #ruby
Soda has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
TheWhip has joined #ruby
<dvxam>
shevy : just so you know, it's valid 1.9.3 syntax too
niemcu has joined #ruby
<[k->
opt args have always been like that
<[k->
there's also more magic
<funkenstrahlen>
Hey, I just got "You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory." error on 'gem install somegem' on my mac. Did I setup something wrong? This should normally not require sudo right?
<[k->
def *args, **args2, a = 3, b, c
roshanavand has joined #ruby
blackmesa has joined #ruby
lkba has joined #ruby
Mojo_Nixon has joined #ruby
InternetFriend has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dvxam>
[k- Haha this is even more fun to read. Ruby, what a magic world. Thx
andyrs has joined #ruby
Mojo_Nixon has quit [Client Quit]
dravine_ has joined #ruby
loc22 has joined #ruby
<funkenstrahlen>
ah I think I found the right thread on stackoverflow for my problem
chrisja has joined #ruby
grn has joined #ruby
spcmastertim has joined #ruby
dravine has quit [Ping timeout: 260 seconds]
dravine_ is now known as dravine
<loc22>
Hi guys! Im trying to extract some info from urls and trying to use some gem for open graph protocol. I have tried opengraph_parser, opengraph, open_graph_reader... and any of those work
<loc22>
Which one do you normally use?
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
A124 has quit [Quit: '']
MakMan has quit [Quit: Leaving]
ndrei has quit [Ping timeout: 240 seconds]
<funkenstrahlen>
So it looks like I messed up my Mac ruby version as I installed some gems to the system instead of using rbenv. How can I clean that up?
casadei has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
karapetyan has joined #ruby
<funkenstrahlen>
Am I safe to remove all gems?
<funkenstrahlen>
or will this affect my mac system?
DrCode has quit [Remote host closed the connection]
<loc22>
funkenstrahlen: It is safe
tesuji has quit [Ping timeout: 255 seconds]
<shevy>
funkenstrahlen I always keep a local copy of all .gem files
DEA7TH has quit [Quit: DEA7TH]
<shevy>
you can batch-install very quickly from a local directory with all your .gem files
SenpaiSilver has joined #ruby
mary5030 has joined #ruby
platzhirsch has quit [Quit: Leaving.]
mary5030 has quit [Remote host closed the connection]
<shevy>
in the cache/ subdirectory, every installed .gem is also kept
arup_r has quit []
bigmac has joined #ruby
<shevy>
so I usually end up cd-ing to that subdir, and copy whatever gem I installed there
platzhirsch has joined #ruby
aganov has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
mary5030 has joined #ruby
dopie has joined #ruby
nettoweb has quit [Ping timeout: 264 seconds]
pandaant has quit [Remote host closed the connection]
<funkenstrahlen>
ok thanks. will now setup rbenv
InternetFriend has joined #ruby
karapetyan has quit [Ping timeout: 264 seconds]
whippythellama has joined #ruby
loc22 has quit [Quit: Be back later ...]
karapetyan has joined #ruby
InternetFriend has quit [Client Quit]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
decoponio has joined #ruby
freezevee has quit [Remote host closed the connection]
rushed has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
pecpec has quit [Quit: Leaving...]
senayar has quit [Read error: Connection reset by peer]
suchness has quit [Remote host closed the connection]
<adac>
Does someon have a clue on how to store a ruby array in redis?
<adaedra>
Use a redis gem
<lxsameer>
apeiros: #method return the reference to the method instead of duplicating it right ?
DmitryBochkarev has joined #ruby
Tsion has left #ruby [#ruby]
Tsion has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
<adaedra>
It returns a Method object representing the method on the object
<apeiros>
it creates an object which wraps all necessary information.
<apeiros>
it's internally probably quite similar to having a reference to the instance and the method name (just that it won't be the name)
renancarvalho has left #ruby [#ruby]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
johnhamelink has joined #ruby
metalic has quit [Ping timeout: 246 seconds]
riotjones has quit [Remote host closed the connection]
Klumben has joined #ruby
AndrewF has joined #ruby
AndrewF is now known as Guest40532
treehug88 has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
AFam has joined #ruby
ndrst has quit [Ping timeout: 252 seconds]
rushed has joined #ruby
diegoviola has quit [Ping timeout: 272 seconds]
Guest40532 has quit [Ping timeout: 246 seconds]
<yorickpeterse>
I just spent a whole day optimizing a single DB query
<yorickpeterse>
I regret nothing
<maloik>
gitlab users worldwide thank you
<yorickpeterse>
and this saves me a whopping 500ms, and a bunch of sequence scans
A124 has quit [Quit: '']
<yorickpeterse>
maloik: heh
rushed has quit [Client Quit]
rushed has joined #ruby
A124 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<yorickpeterse>
hopefully somewhere at the end of this month I can get my hands on the issue listing page
SylarRuby has quit [Remote host closed the connection]
<yorickpeterse>
god those pages take forever to load
giuseppesolinas has joined #ruby
wharr has joined #ruby
<wharr>
What does "There was an error processing your request, a binding error occurred." mean when using HTTParty
Pathfinder_ has quit [Ping timeout: 268 seconds]
andikr has quit [Remote host closed the connection]
pandaant has joined #ruby
giuseppesolinas has quit [Client Quit]
andersoldahl has quit [Quit: My Mac has gone to sleep.]
Macaveli has joined #ruby
htmldrum has quit [Ping timeout: 255 seconds]
johnny56 has joined #ruby
yardenbar has joined #ruby
patchedmonkey has joined #ruby
patchedmonkey has quit [Max SendQ exceeded]
<johnny56>
why is this so difficult to install? =/ I ran yum install rubygems, gem update. now it just errors out with "ERROR: while executing gem ... (socketerror) getaddrinfo: name or service not known
Rollabunna has joined #ruby
<darix>
johnny56: that is a dns error
patchedmonkey has joined #ruby
<darix>
nothing to do with ruby per se
A124 has quit [Quit: '']
<johnny56>
there's nothing wrong tihs my dns
<johnny56>
i can ping all hosts and my other applications work fine.
<havenwood>
johnny56: What version of RubyGems is yum giving you?
ndrei has joined #ruby
<havenwood>
johnny56: gem -v
andikr has joined #ruby
SylarRuby has joined #ruby
<johnny56>
2.4.8
Guest53 has joined #ruby
dravine has quit [Ping timeout: 268 seconds]
suchness has joined #ruby
<havenwood>
johnny56: Usually RubyGems ships with Ruby these days (it was a separate package in 1.8) though it's been a while since I've used a yum package for Ruby. On Fedora then?
diegoviola has joined #ruby
Cyther has joined #ruby
<johnny56>
centos
<johnny56>
they are both installed
buharin has joined #ruby
<buharin>
hello
<buharin>
:)
<havenwood>
johnny56: I didn't know CentOS even did modern Ruby packages! That's good to hear.
gambl0re has quit [Ping timeout: 256 seconds]
<havenwood>
buharin: hi
darkf has quit [Quit: Leaving]
gambl0re has joined #ruby
andikr has quit [Remote host closed the connection]
<buharin>
what do you think about python?
Rollabunna has quit [Ping timeout: 256 seconds]
yardenbar has quit [Ping timeout: 264 seconds]
<beast>
Guido van Rossum likes it
The_Phoenix has joined #ruby
<havenwood>
buharin: Most folk in #ruby (myself included) probably prefer Ruby.
<johnny56>
so is there a reason why this thing keeps erroring getaddrinfo...
dravine has joined #ruby
d5sx43 has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
<havenwood>
johnny56: Running a `gem install` command?
<johnny56>
running any gem cmd..
<johnny56>
nothing works
<johnny56>
I mean lol... yum install rubygems then do a update and the whole thing breaks?
<havenwood>
johnny56: gem install hola --debug
skade has quit [Quit: Computer has gone to sleep.]
d5sx43 has quit [Client Quit]
Guest51410 has quit [Remote host closed the connection]
BLuEGoD has quit [Remote host closed the connection]
sphex has quit [Ping timeout: 268 seconds]
Tsion has quit [Ping timeout: 246 seconds]
SylarRuby has quit [Remote host closed the connection]
<havenwood>
johnny56: DNS lookup failing as already mentioned. Maybe checking with --debug will tell you more about why.
<johnny56>
it's not telling me anything
<johnny56>
socketerror at /usr/share/ruby/resolv.rb:777 - get addrinfo name or serice not known
skydiver has joined #ruby
yardenbar has joined #ruby
<skydiver>
q
skydiver has quit [Client Quit]
jpfuentes2 has joined #ruby
<havenwood>
johnny56: This is Fedora or CentOS?
<johnny56>
centos..
ta has quit [Remote host closed the connection]
skydiver has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
johnny56: What version of CentOS?
skydiver has quit [Client Quit]
<johnny56>
7
Torrieri has joined #ruby
hectortrope has quit [Remote host closed the connection]
<havenwood>
johnny56: How about?: which gem
<johnny56>
usr/bin
SCHAAP137 has quit [Remote host closed the connection]
<havenwood>
johnny56: I just ask because the version of gem you reported isn't shipped as a CentOS package so I'm confused how that happeend.
bffff_ has joined #ruby
<johnny56>
as I said i ran gem update then after that everything stopped working
<r0x0rZ>
i want to use 3rd party code that's not a rubygem but it is available on Github. I want to include it in my own gem. what's the best way to do this? I thought about cloning the repo to lib directory but I'd like to do this more neatly.
<herbst>
depends on the size and license of the code i probably would create the gem myself
jxpx777 has joined #ruby
<herbst>
if its just a file or two just work it into my current code base
<r0x0rZ>
herbst: it has MIT license
<r0x0rZ>
it's actually several files
<herbst>
shouts gem for me, except you really know that you will use this only once and nobody else could ever use it
gagrio_ has joined #ruby
vondruch_ has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
jzigmund has joined #ruby
lsmola_ has joined #ruby
jzigmund_ has quit [Read error: Connection reset by peer]
krz has quit [Ping timeout: 244 seconds]
lxsameer has quit [Quit: Leaving]
gagrio has quit [Write error: Connection reset by peer]
failshell has quit []
simplyianm has quit [Remote host closed the connection]
AFam has quit [Ping timeout: 246 seconds]
lsmola has quit [Ping timeout: 255 seconds]
vondruch has quit [Ping timeout: 250 seconds]
Peg-leg has quit [Quit: Leaving.]
lsmola_ has quit [Ping timeout: 240 seconds]
Peg-leg has joined #ruby
vondruch_ has quit [Ping timeout: 260 seconds]
DmitryBochkarev has quit [Ping timeout: 252 seconds]
inanepenguin has joined #ruby
gagrio_ has quit [Ping timeout: 264 seconds]
skade has joined #ruby
Peg-leg has quit [Client Quit]
jzigmund has quit [Ping timeout: 265 seconds]
joonty has quit [Quit: joonty]
Peg-leg has joined #ruby
jzigmund has joined #ruby
inanepenguin has quit [Client Quit]
Peg-leg has quit [Client Quit]
Peg-leg has joined #ruby
joonty has joined #ruby
aswen has quit [Quit: WeeChat 1.3]
`tim` has joined #ruby
pawnbox has joined #ruby
Alayde has joined #ruby
DmitryBochkarev has joined #ruby
iwaffles has quit [Quit: iwaffles]
herbst has quit [Remote host closed the connection]
psy_ has joined #ruby
andikr has joined #ruby
rhllor has joined #ruby
krz has joined #ruby
adac has quit [Ping timeout: 244 seconds]
riotjones has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
joonty has quit [Quit: joonty]
tomphp has quit [Ping timeout: 264 seconds]
vondruch_ has joined #ruby
lsmola_ has joined #ruby
gagrio_ has joined #ruby
towski_ has joined #ruby
SCHAAP137 has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
gregf has quit [Quit: WeeChat 1.3]
r00t_ has joined #ruby
metalic has joined #ruby
rodfersou is now known as rodfersou|lunch
htmldrum has joined #ruby
the_drow has quit [Ping timeout: 246 seconds]
inanepenguin has joined #ruby
htmldrum has quit [Ping timeout: 260 seconds]
User4587_ has quit [Ping timeout: 255 seconds]
metalic has quit [Ping timeout: 252 seconds]
SaKi_KnIn has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
[Butch] has joined #ruby
<SaKi_KnIn>
hello, I need rails chanel
Rollabunna has joined #ruby
<SaKi_KnIn>
problem with connect to database
<mozzarella>
/join #rubyonrails
prestorium_ has joined #ruby
symbol has joined #ruby
zhkirill has joined #ruby
seaned__ has joined #ruby
Peg-leg has quit [Quit: Leaving.]
dmolina has quit [Quit: Leaving.]
seaned has quit [Ping timeout: 250 seconds]
seaned__ is now known as seaned
krisquigley has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
patrick_star has joined #ruby
RobertBirnie has joined #ruby
ericjphillips has joined #ruby
krisquigley has joined #ruby
prestorium has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
prestorium_ is now known as prestorium
shoutsid has quit [Remote host closed the connection]
wallerdev has joined #ruby
cantaberry has joined #ruby
gregf has joined #ruby
cschneid_ has joined #ruby
<SaKi_KnIn>
mozzarella: thx
lkba has quit [Ping timeout: 272 seconds]
AndroUser2 has joined #ruby
eminencehc has joined #ruby
krisquigley has quit [Ping timeout: 240 seconds]
ericjphillips has quit [Client Quit]
ericjphillips has joined #ruby
arup_r has joined #ruby
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor has joined #ruby
Kendos-Kenlen has joined #ruby
dfockler has joined #ruby
User458764 has joined #ruby
ngscheurich has joined #ruby
DmitryBochkarev has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
EllisTAA has joined #ruby
Pumukel has joined #ruby
p0wn3d_ has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
lkba has joined #ruby
nettoweb has joined #ruby
inanepenguin has quit [Quit: inanepenguin]
<balazs_>
do Thread-s have some I/O limitations ? Why doesn't this print anything (ruby 2.1.2): Thread.new do puts 'x' end
dvxam has quit [Ping timeout: 256 seconds]
matp has joined #ruby
A124 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
zhkirill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
senayar has quit []
niemcu has quit [Ping timeout: 268 seconds]
andikr has quit [Ping timeout: 240 seconds]
<canton7>
balazs_, likely your program terminated before that thread could start?
<adaedra>
Try `Thread.new do puts 'x' end.join'
Seinnd has quit [Remote host closed the connection]
TheRinger has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
<balazs_>
canton7: ding ding; thanks !
andikr has joined #ruby
patchedmonkey has joined #ruby
The_Phoenix1 has joined #ruby
dvarrui has quit [Ping timeout: 250 seconds]
Napear has quit [Quit: leaving]
camilasan has quit [Remote host closed the connection]
zhkirill has joined #ruby
The_Phoenix has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
rakm has quit [Client Quit]
Tsion has left #ruby [#ruby]
<suchness>
A quarter raised in a month, and looking for 3/4 in 2 days? Somehow I am doubtful...
hephaestus_rg has joined #ruby
ericjphillips has quit [Quit: Leaving.]
firstdayonthejob has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
The_Phoenix1 has quit [Ping timeout: 240 seconds]
hanmac has quit [Ping timeout: 240 seconds]
dmolina1 has joined #ruby
<suchness>
hal_9000_: Is the book supposed to be geared towards teaching a proficient ruby programmer elixer?
tmillc has joined #ruby
riotjones has joined #ruby
<hal_9000_>
suchness: yes, that is the basic premise
ericjphillips has joined #ruby
dsaf has joined #ruby
<hal_9000_>
suchness: the goal will not be met of course, but flex-funding is in place, so it will not be wasted
<suchness>
hal_9000_: I just noticed that!
dsaf has quit [Client Quit]
<hal_9000_>
and with only one author now, the goal is twice as high as it needs to be
petricore has joined #ruby
lenwood has joined #ruby
riotjones has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
sanjayu has joined #ruby
roshanavand has quit [Remote host closed the connection]
arooni has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
taylorwu has quit [Quit: Leaving]
Guest53 has joined #ruby
AustinMatherne has joined #ruby
Eiam_ has joined #ruby
Stancez has joined #ruby
rushed has quit [Quit: rushed]
nolic has quit [Ping timeout: 250 seconds]
symbol has quit [Ping timeout: 268 seconds]
roshanavand has joined #ruby
apt-get has quit [Ping timeout: 268 seconds]
gigetoo has quit [Ping timeout: 250 seconds]
C0L0R has joined #ruby
diego4 has joined #ruby
moeabdol has joined #ruby
moeabdol has quit [Client Quit]
diegoviola has quit [Read error: Connection reset by peer]
roshanavand has quit [Ping timeout: 240 seconds]
nayena has joined #ruby
hanmac has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
diego4 has quit [Client Quit]
krisquigley has joined #ruby
dmolina1 has quit [Quit: Leaving.]
diego4 has joined #ruby
casadei has quit [Remote host closed the connection]
andyrs has joined #ruby
diego4 has quit [Changing host]
diego4 has joined #ruby
arooni has quit [Ping timeout: 272 seconds]
andikr has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
Eiam_ has quit [Ping timeout: 272 seconds]
sanjayu has quit [Ping timeout: 252 seconds]
* A124
notes its flexible funding.
* A124
missed that.
jamesaxl has joined #ruby
moeabdol has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
DEA7TH has joined #ruby
symbol has joined #ruby
sharkman has joined #ruby
firstdayonthejob has joined #ruby
AndroUser2 has joined #ruby
jhn has joined #ruby
codecop has joined #ruby
phutchins has joined #ruby
blackmesa has joined #ruby
TheNet has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
apt-get has joined #ruby
TheNet has quit [Client Quit]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
n008f4g_ has joined #ruby
UtkarshRay has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
last_staff has joined #ruby
lenwood has quit [Ping timeout: 256 seconds]
sdothum has joined #ruby
minimalism has joined #ruby
AndroUser2 has quit [Read error: Connection reset by peer]
suchness has quit [Ping timeout: 260 seconds]
otherj has joined #ruby
Pumukel has quit [Remote host closed the connection]
inanepenguin has quit [Ping timeout: 246 seconds]
eminencehc has quit [Remote host closed the connection]
pharaoh2 has joined #ruby
htmldrum has joined #ruby
eminencehc has joined #ruby
rodfersou|lunch is now known as rodfersou
andersoldahl has joined #ruby
nhhagen has joined #ruby
andersoldahl has quit [Client Quit]
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
mark3 has quit [Remote host closed the connection]
havenwood has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
htmldrum has quit [Ping timeout: 246 seconds]
dorei has joined #ruby
InternetFriend has joined #ruby
nhhagen has quit [Read error: Connection reset by peer]
Renich has joined #ruby
iateadonut has quit [Quit: Leaving.]
troulouliou_div2 has quit [Ping timeout: 240 seconds]
isxek has joined #ruby
shebang has joined #ruby
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shebang>
Hey I have a unique sort of problem...
andersoldahl has joined #ruby
<eam>
probably uniq after sort, it's faster
<shebang>
I'm collecting data into a nested hash container, I know only that the first and intermediate keys are all hashes except for the last, which is an array. Also every array element will be a string.
<shebang>
Hoping maybe someone here might have an idea or two I can try
<shebang>
hi
simpson has left #ruby ["WeeChat 0.3.8"]
shoutsid has quit [Ping timeout: 255 seconds]
<N3sh108>
I want to iterate from today's date until today + 2 months. Something like: DateTime.now.upto(DateTime.now + 2.month) do |date| /// end
User458764 has quit [Ping timeout: 272 seconds]
krisquigley has quit [Remote host closed the connection]
<N3sh108>
how do I properly do it?
<InternetFriend>
Hey I don't suppose someone would mind helping me resolve a git issue... this is by far the weirdest one I've ever seen
ndrei has joined #ruby
<N3sh108>
InternetFriend: what is the problem?
<InternetFriend>
Well I went to do a commit just like usual
<InternetFriend>
And I get "you are currently rebasing"
<N3sh108>
git commit -m"lol easy"
<InternetFriend>
And I didnt initiate a rebase
<InternetFriend>
so i run git rebase --abort
<InternetFriend>
and it says "No rebase in progress?"
<InternetFriend>
bizarre
<N3sh108>
try git rebase --continue
simplyianm has joined #ruby
<N3sh108>
or git --status
havenwood has joined #ruby
<N3sh108>
to see what's up
<InternetFriend>
both return "No rebase in progress"
chouhoul_ has joined #ruby
<InternetFriend>
err
<InternetFriend>
"You are currently rebasing"
<N3sh108>
did you try with --skip, --continue and --abort?
<N3sh108>
no luck?
prefixed has joined #ruby
troulouliou_div2 has joined #ruby
<InternetFriend>
i did
<InternetFriend>
no luck at all
<prefixed>
why are singleton classes useful
troulouliou_div2 has quit [Remote host closed the connection]
<yxhuvud>
could there be a lock file somewhere?
jenrzzz has quit [Ping timeout: 264 seconds]
<InternetFriend>
great question
<N3sh108>
yeah, check privileges
<apeiros>
InternetFriend: #git was usually pretty helpful with my git issues
<shebang>
@N3sh108, I'm not sure with ruby but bash makes your date problem simple: `date -d "+$x days" +%F`, then increment x up to 60
<yxhuvud>
prefixed: for one thing, it allows you to do clas methods.
symbol has quit [Ping timeout: 256 seconds]
<N3sh108>
shebang: in ruby though :(
<InternetFriend>
thanks i'll check it out
<shebang>
sorry, I'm a bash guy, ruby is new
<apeiros>
N3sh108: are you in rails or plain ruby? I assume you want to step 1 day each iteration?
<InternetFriend>
found it. there was a "rebase-merge" file that was orphaned at some point causing the discrepancy. really weird stuff man.
patchedmonkey has joined #ruby
<prefixed>
yxhuvud that seems like an obscure way to do it. why did matz make this terrible design decision?
<N3sh108>
apeiros: I just fixed it by just using 60 instead of 2.month
<balazs_>
Is it possible that curl and backticks are the fastest way to download content from the web ? It's faster than net/http or open-uri for me.
yqt has quit [Ping timeout: 240 seconds]
<N3sh108>
basically DateTime.now + {days} already does the dirty job for you
<yxhuvud>
prefixed: why do you find it horrible?
chouhoul_ has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
chouhoulis has joined #ruby
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
<prefixed>
yxhuvud it is very unclear when written: class << a... blah blah
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
andersoldahl has quit [Quit: My Mac has gone to sleep.]
<shevy>
because prefixed is trollolling
baweaver has joined #ruby
<prefixed>
no. i dislike ruby and sometimes i come in here to ask why the language does terrible things
allomov has quit [Remote host closed the connection]
<prefixed>
this is much clearer: def String.value_of obj
<shevy>
"why did matz scratch his nose, why was matz born in japan, why did matz call the language ruby and not phuby"
lubarch has joined #ruby
<yxhuvud>
Then use the second form. I won't stop you (though I'd prefer self)
inanepenguin has joined #ruby
<prefixed>
shevy why would you ask those questions? those seem totally useles
<apeiros>
prefixed: you'll have to find a way to ask in a less inciting form though. otherwise I'll remove you from this channel.
simplyianm has quit [Remote host closed the connection]
rcvalle has quit [Quit: rcvalle]
trav408 has joined #ruby
<shevy>
I don't even understand that part about the syntax since you can use "def self.foo"
<eam>
shevy: def-initely
<prefixed>
ok. well, i am out of hatred for ruby right now. i'll be back when i find something else to hate.
prefixed has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
<shevy>
you can also use one of the *eval* like instance_eval or class_eval
jpfuentes2 has quit [Ping timeout: 256 seconds]
<eam>
get it
hephaestus_rg has quit [Ping timeout: 255 seconds]
<shevy>
we can define - !
umgrosscol has quit [Ping timeout: 240 seconds]
SylarRuby has joined #ruby
rcvalle has joined #ruby
<shevy>
def -(initely) # or something
jpfuentes2 has joined #ruby
umgrosscol has joined #ruby
pocketprotector2 has quit [Remote host closed the connection]
pocketprotector2 has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
symbol has joined #ruby
agit0 has joined #ruby
kirun has joined #ruby
<shebang>
So, real quick anyone think of anything for https://gist.github.com/anonymous/314cf192b884ff26ee01 ? I've tried using merge methods but the fact that the keys are automatically generated makes it impossible past the first layer..
pocketprotector2 has quit [Remote host closed the connection]
havenn has joined #ruby
riotjones has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
lubarch has quit [Quit: leaving]
ndrei has joined #ruby
<apeiros>
shebang: are your trees arbitrarily deep?
mondayrain has joined #ruby
wmoxam has left #ruby ["I hate this channel"]
<shebang>
apeiros: yes, but I know they're all hashes except the last one, which is an array with string elements
rippa has joined #ruby
<apeiros>
shebang: and you only care about identical subtrees if they start at the same level?
andersoldahl has joined #ruby
<shebang>
apeiros: that's correct, sorry I should have commented that in the gist
<eam>
shebang: I missed the problem you're solving for?
<apeiros>
shebang: I'd probably search for identical subtrees first
<apeiros>
not sure
<shebang>
I'm trying to consolidate key values if their contents are identical
baweaver has joined #ruby
<shebang>
apeiros: meaning you'd start at the tree root?
<apeiros>
anyway, in 1.9+, you can use the subtree as a key and the keys as value
<apeiros>
yes, and merge subtrees. then recurse. i.e. breadth first
mondayrain has quit [Client Quit]
User458764 has joined #ruby
<shebang>
cool, I'm only supporting this for Ruby 2+ so good there
riotjones has quit [Ping timeout: 252 seconds]
<shebang>
apeiros: How do you check equality for the last value without iterating down the tree first though? The keys themselves are always different as in the example, it's the array values that overlap
matugm has joined #ruby
andikr has joined #ruby
goldfish6744 has joined #ruby
<apeiros>
shebang: I'd compare the whole subtree. unless I understood your problem wrong.
<apeiros>
i.e. on a single level: inverted = Hash.new { |h, k| h[k] = [] }; tree.each do |key, subtree| inverted[subtree] << key end
BrazenBraden has quit [Quit: Leaving]
<apeiros>
then you have all keys which share the same subtree in inverted
<shebang>
and then continue that for each level, if I'm understanding right? Won't that error out if your comparing the values that have hashes as values themselves? for instance the Names in my gist?
<shebang>
*you're
chouhoulis has quit [Remote host closed the connection]
symbol has quit [Quit: WeeChat 1.1]
<shebang>
hash_formatted = $hash_audit_out.sort.group_by{ |k,v| v }.each_with_object({}) { |(k,v), h| h[v.map(&:first).join(', ')] = k }
<shebang>
^ I used that, and yes it does consolidate array values,
<shebang>
however it fails to consolidate the keys beneath, if their arrays have equal values.
<balazs_>
can somebody explain why the thread that uses a Mutex runs about 100000 times more frequently than the one that does not ? http://pastebin.com/kDDtSUvQ
<prefixed>
found something new. why hasn't the ruby community adopted a single documentation standard? rdoc seemed like a fantastic standard, yet matz & friends torpedoed it
krz has quit [Ping timeout: 252 seconds]
<apeiros>
they did?
nayena has quit [Quit: bye]
based_pdev_ has quit [Ping timeout: 246 seconds]
SylarRuby has quit [Remote host closed the connection]
simplyianm has joined #ruby
lubarch has joined #ruby
<prefixed>
sec. i am looking for ht elink
Miron has quit [Ping timeout: 240 seconds]
imperator has joined #ruby
<eam>
are we celebrating festivus?
simplyianm has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
* slash_nick
<3 festivus
<prefixed>
ok. i take that back for now. I was loking for a documentation standard the other day, and i could have sworn it was rdoc that got deprecated because the main ruby devs didn't like it
chouhoulis has quit [Remote host closed the connection]
Guest53 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
N3sh108 has quit [Quit: Page closed]
imperator has left #ruby ["Leaving"]
<cantaberry>
I'm using a fail as the else in a case statement. I don't really have an if condision for the fail. How do I call? rubocop keeps dying on the lack of the fail if test.
simplyianm has quit [Ping timeout: 255 seconds]
<havenn>
Cantaberry: Gist the code and the error when rubocop fails?
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenn>
prefixed: RubySpec decided to move the project into Rubinius proper and Ruby core forked it for MRI use.
eminencehc has joined #ruby
sulky has joined #ruby
prefixed has left #ruby [#ruby]
zapata has joined #ruby
<shevy>
Cantaberry actually, can you try on a simple test-case when menu? perhaps rubocop always fails when fail() is used in case/when, then it's a bug in rubocop clearly
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
Cantaberry: it complains about your if, not about your case/when
despai has joined #ruby
<apeiros>
the `if (true)` is pointless. you can just leave it away.
<cantaberry>
Right. It's the fail. If I 'don't put an if, it complains, but it won't let me put an always true like 1 or ture.
<apeiros>
what does it complain about without the `if`?
whippythellama has quit [Ping timeout: 256 seconds]
C0L0R has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
Cantaberry: btw., you can add multiple files to a single gist. no need to make multiple gists.
kadoppe has quit [Ping timeout: 246 seconds]
<cantaberry>
It's making a liar out of me.
<cantaberry>
Looks like it worked that time.
Pupeno has quit [Remote host closed the connection]
<cantaberry>
Prior it was. Oh. Failing on trailing whitespace.
<cantaberry>
Sorry.
<cantaberry>
Oye.
<cantaberry>
Rubocop is killing me today.
EmeraldExplorer has joined #ruby
allomov has quit [Remote host closed the connection]
rushed has joined #ruby
baweaver has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 265 seconds]
based_pdev has joined #ruby
yqt has quit [Ping timeout: 264 seconds]
m8 has joined #ruby
kadoppe has joined #ruby
<shevy>
the fail was on whitespace, not on the fail() fail?
<shevy>
trailing whitespace warnings is one of the most useful warnings for me with rubocop :)
havenwood has joined #ruby
<shevy>
very uncontroversial compared to other warnings
<yxhuvud>
shevy: I've told my emacs to remove them on save, as well as display them in a very obvious red color
ngscheur1 has joined #ruby
troulouliou_div2 has joined #ruby
<shevy>
cool, I should use a better editor than notepad one day!
devoldmx has joined #ruby
EmeraldExplorer has quit []
Coldblackice_ has joined #ruby
EmeraldExplorer has joined #ruby
N3sh108 has joined #ruby
cornerma1 has joined #ruby
<N3sh108>
I am going crazy with this stuff!
ngscheurich has quit [Ping timeout: 240 seconds]
jobewan has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<N3sh108>
So, I am fetching some data with Mechanize and that works great. I 'puts' it and everything looks fine. When I add it to a SQL query, it gets all messed up
<N3sh108>
For some reason, it doesn't do the shit properly
andersoldahl has quit [Quit: My Mac has gone to sleep.]
elcontrastador has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SylarRuby has joined #ruby
patchedmonkey has joined #ruby
cornerman has quit [Ping timeout: 268 seconds]
devoldmx has quit [Ping timeout: 264 seconds]
cornerma1 is now known as cornerman
troulouliou_div2 has quit [Quit: Leaving]
<BraddPitt>
N3sh108 please post some example code with input, actual output and expected output
Rollabunna has quit [Remote host closed the connection]
skade has joined #ruby
pjaspers_ has quit [Remote host closed the connection]
dikaio has joined #ruby
<N3sh108>
ok BraddPitt
Musashi007 has joined #ruby
<shevy>
So here is a regex http://rubular.com/r/zsUM7NpCYx - I do not entirely understand the real meaning of (.*?), does the ? make only the * before it optional, or both the .* part?
ta has joined #ruby
<hal_9000_>
? doesn’t mean optional in that context
<hal_9000_>
it means non-greedy, i think
allomov has joined #ruby
banister has joined #ruby
<shevy>
ah ok
krisquigley has joined #ruby
eminencehc has quit [Remote host closed the connection]
<ruboto>
N3sh108, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
eminencehc has joined #ruby
shebang has quit [Ping timeout: 246 seconds]
<hal_9000_>
lol @ r u b o t o
apt-get_ has joined #ruby
apt-get has quit [Ping timeout: 264 seconds]
<N3sh108>
hal_9000!
<N3sh108>
I think I remember you from somewhere long long ago
sdwrage has quit [Quit: This computer has gone to sleep]
<hal_9000_>
N3sh108: in real life or what?
<N3sh108>
you were cool as fuck, I don't know why I remember that
dionysus69 has joined #ruby
<N3sh108>
from some other IRC channel
<N3sh108>
[no stalker, don't worry]
<ged>
Because he is!
<hal_9000_>
lolz
<ged>
<3 hal9k
<ged>
:P
<N3sh108>
have you been around long?
ruby-lang000 has joined #ruby
<hal_9000_>
trying to remember what other channels i’ve been in
<N3sh108>
if so, did you have any channels you hung around often?
xblade has quit [Remote host closed the connection]
<hal_9000_>
started maybe 8 yrs ago but with long hiatuses (hiati?)
<N3sh108>
[hiatuses is probably fine]
<hal_9000_>
N3sh108: my main interests are ruby and space-related (on IRC anyway)
<hal_9000_>
and lojban i guess
<N3sh108>
mmm, I spent a lot of time in here for erlang
<N3sh108>
and mmm
eminencehc has quit [Remote host closed the connection]
<hal_9000_>
i can barely read erlang :)
riotjones has joined #ruby
krisquigley has quit [Ping timeout: 265 seconds]
<N3sh108>
dunno then, hi anyway! :D
<shevy>
poor hal gets stalked
lubarch has quit [Quit: leaving]
<hal_9000_>
it’s possible it was someone else - there is a hal9000 with no unerscore after the L :)
<ged>
Hahaha
<N3sh108>
Anyway, as extension to my question: does puts do anything special to whatever it outputs?
<hal_9000_>
hey I’d 10x rather be stalked than ignored
<N3sh108>
maybe! :D
<shevy>
N3sh108 yes - it ignores one trailing newline
freezevee has joined #ruby
casadei has quit [Remote host closed the connection]
<N3sh108>
oh ok
<hal_9000_>
it also adds one if needed
<N3sh108>
so maybe I should remove it
riotjones has quit [Read error: Connection reset by peer]
<shevy>
print is the raw hero of every untold story
riotjones has joined #ruby
<hal_9000_>
if you *want* multple newlnes, just make sure there is a non-newline at the end: puts “like this\n\n\n “
ruby-lang000 has quit [Ping timeout: 246 seconds]
<hal_9000_>
that would print 5 lines if i cont correctly
inanepenguin has quit [Quit: inanepenguin]
<hal_9000_>
*count
<shevy>
hmmmm
yqt has joined #ruby
<hal_9000_>
our 4 i guess
<hal_9000_>
*or
<hal_9000_>
me type pretty one day
andersoldahl has joined #ruby
roshanavand has quit []
<shevy>
well the world won't collapse either way, be it 5, 4 or 3 lines
<hal_9000_>
N3sh108: are you ever in #elixir-lang btw?
xblade has joined #ruby
<hal_9000_>
shevy: i suppose eventually the world *will* collapse ;)
allomov has quit [Remote host closed the connection]
<N3sh108>
no never :P
<N3sh108>
hal_9000
<N3sh108>
arggg, what's wrong with this shtttt
based_pdev_ has joined #ruby
<hal_9000_>
I recommend you look into elixir if you like ruby and erlang
<N3sh108>
ok :D
<N3sh108>
anyway, I tried the unsung raw hero
BackEndCoder has quit [Ping timeout: 264 seconds]
<N3sh108>
and prints doesn't print anything
<N3sh108>
but puts does
riotjones has quit [Ping timeout: 246 seconds]
phutchins has quit [Ping timeout: 240 seconds]
<N3sh108>
wtf
<N3sh108>
print}
<hal_9000_>
are you printing to STDOUT?
<N3sh108>
just 'print time'
<N3sh108>
and 'puts time'
<hal_9000_>
two ways to fix
<hal_9000_>
either do STDOUT.flush after a print
allomov has joined #ruby
<hal_9000_>
or else do STDOUT.sync = true just once at beginning
nolic has joined #ruby
<hal_9000_>
terminal output is buffered until there is a newline or a flush operation
<N3sh108>
ok
patchedmonkey has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<N3sh108>
I don't get why this doesn't work though
BackEndCoder has joined #ruby
<N3sh108>
the query works
based_pdev has quit [Ping timeout: 240 seconds]
<N3sh108>
puts writes the right stuff
blaxter has quit [Quit: foo]
<N3sh108>
it should be simple!
rhllor has quit [Ping timeout: 246 seconds]
ngscheur1 has quit [Quit: WeeChat 1.2]
<hal_9000_>
you could also use a puts after your print
simplyianm has joined #ruby
<N3sh108>
is there something that a print cannot print and puts can?
<N3sh108>
maybe that's what is screwing up my query
neonalpine has joined #ruby
<N3sh108>
some invisible char maybe
pocketprotector2 has joined #ruby
<hal_9000_>
can you show your code in a gist or something?
<adaedra>
Sorry, didn't catch that, it seems it has been lost in a callback.
<havenn>
adaedra: undefined
<adaedra>
But is it a function ?
hal_9000_ has quit [Quit: hal_9000_]
<havenn>
adaedra: hah ;)
EllisTAA has quit [Quit: EllisTAA]
johnzorn has quit [Ping timeout: 246 seconds]
firstdayonthejob has quit [Ping timeout: 252 seconds]
FernandoBasso has quit [Quit: WeeChat 1.3]
Rollabunna has quit [Ping timeout: 246 seconds]
Channel6 has joined #ruby
inanepenguin has quit [Ping timeout: 240 seconds]
EllisTAA has joined #ruby
tkuchiki has joined #ruby
johnzorn has joined #ruby
<shevy>
will it blend?
andersoldahl has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
inanepenguin has joined #ruby
Musashi007 has quit [Quit: Musashi007]
ericjphillips has joined #ruby
Channel6 has quit [Quit: Leaving]
platzhirsch has joined #ruby
blaxter has quit [Quit: foo]
Meow-J has joined #ruby
Musashi007 has joined #ruby
banister has quit [Ping timeout: 272 seconds]
iamdevnul has joined #ruby
riotjones has joined #ruby
riotjones has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
riotjones has joined #ruby
Renich has joined #ruby
<slash_nick>
is it an animal?
Lloyd has joined #ruby
shoutsid has joined #ruby
<pipework>
Is it a mineral?
EmeraldExplorer has joined #ruby
bigmac has quit [Ping timeout: 264 seconds]
<slash_nick>
does it quack like a duck?
sanjayu has quit [Ping timeout: 246 seconds]
eminencehc has quit [Remote host closed the connection]
<cantaberry>
I'm trying to set up scp from one machine to another. I have an idea for how to move the public key for scp, but how do I get the new machine's machine key into the know_hosts on the source (from which the user's public key came from)?
dukedave has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]