n_blownapart has quit [Remote host closed the connection]
n_blownapart has joined #ruby
edwinvdgraaf has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
n_blownapart has quit [Ping timeout: 244 seconds]
certainty has joined #ruby
Rodya_ has joined #ruby
Ropeney has quit [Quit: Leaving]
Rodya_ has quit [Remote host closed the connection]
RobertBirnie has quit [Ping timeout: 260 seconds]
arescorpio has joined #ruby
Vingador_ has joined #ruby
djbkd has quit [Quit: My people need me...]
Vingador_ has quit [Remote host closed the connection]
Vingador has quit [Remote host closed the connection]
Vingador has joined #ruby
certainty has quit [Ping timeout: 244 seconds]
flyinprogrammer has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<flyinprogrammer>
yaml parser? why are keys special at 128 characters? https://repl.it/CZAI
mikecmpbll has joined #ruby
<flyinprogrammer>
oh keyboards, did i find a bug with the built in yaml parser ?
<Arcaire>
I have a question and possibly a follow up question
<Arcaire>
what the hemorrhaging fuck are you doing with that yaml?
<baweaver>
Arcaire be nice
<Arcaire>
That was being nice.
<Arcaire>
Look at that repl.
<baweaver>
let's try that again
Wolland has joined #ruby
<flyinprogrammer>
lol
<Arcaire>
My follow up question is what are you using yaml for in general?
<Arcaire>
Most people use it for things like configs.
<flyinprogrammer>
it's part of a bigger puzzle i'm working on - i was just trying to isolate the issue to show that at 128 characters behavior of the parser appears to change
jancel has joined #ruby
frem_ has quit [Quit: Connection closed for inactivity]
blackmesa has quit [Quit: WeeChat 1.5]
<flyinprogrammer>
lets pretend i have JSON that i'm converting to YAML for a legacy piece of code
Rodya_ has joined #ruby
<Arcaire>
I feel you may have slightly larger issues than the restrictions of the YAML 1.1 spec if your JSON looks like this.
<flyinprogrammer>
i don't disagree -- but is this a documented 'feature' of the spec?
<Arcaire>
Yes.
<flyinprogrammer>
really - i tried searching for something related to this behavior and could not find anything related to 128 or 256 limits
CloCkWeRX has joined #ruby
<Arcaire>
Try searching for 1024 and then dividing by 8.
<Arcaire>
The limit isn't 128, it's 1024 stream characters
Rodya_ has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 250 seconds]
n_blownapart has joined #ruby
<flyinprogrammer>
"must not span more than 1024 stream characters" got it :)
<Arcaire>
By coincidence, that limit is divided by eight when you're using the ascii set. I'd imagine it's even lower if you try and use, say, Mandarin characters or something.
<flyinprogrammer>
thanks man - i'm sorry for causing you any pain -- i appreciate the help!
<Arcaire>
That yaml will haunt me for weeks.
<flyinprogrammer>
lol
whathappens has quit [Remote host closed the connection]
eljimmy has joined #ruby
centrx has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
marr has quit [Ping timeout: 252 seconds]
n_blownapart has quit [Ping timeout: 252 seconds]
tildes_ has quit [Read error: Connection timed out]
Rodya_ has joined #ruby
mleung has quit [Quit: mleung]
tildes_ has joined #ruby
bhaak has quit [Ping timeout: 276 seconds]
Rodya_ has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
aupadhye has joined #ruby
Rodya_ has joined #ruby
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
sumobob has joined #ruby
benlieb has joined #ruby
rcvalle has quit [Quit: rcvalle]
aupadhye has quit [Ping timeout: 260 seconds]
bhaak has joined #ruby
hxegon is now known as hxegon_afk
hutch34 has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
truenito has joined #ruby
yfeldblum has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24 has joined #ruby
<shevy>
lol
<shevy>
I have not looked at it yet - now I am too scared to look at it
truenito has quit [Remote host closed the connection]
truenito has joined #ruby
Yiota has joined #ruby
mikecmpbll has joined #ruby
davedev2_ has joined #ruby
bhaak has quit [Ping timeout: 260 seconds]
bhaak has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
madgen has quit [Ping timeout: 250 seconds]
aupadhye has joined #ruby
ElFerna has joined #ruby
gtsai has quit [Remote host closed the connection]
<kraken_>
What are your guys' thought on 30 line methods :( ?
certainty has quit [Ping timeout: 240 seconds]
ramfjord_ has joined #ruby
CloCkWeRX has quit [Ping timeout: 250 seconds]
<shevy>
30 lines
<shevy>
must be 42
<shevy>
problem is that longer methods are harder to change
moeabdol2 has joined #ruby
sumobob has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
gnufied has quit [Quit: Leaving]
moeabdol2 has quit [Ping timeout: 250 seconds]
Wolland has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
jancel has joined #ruby
symm- has quit [Quit: Leaving...]
ensyde__ has quit [Ping timeout: 246 seconds]
flashpoint9 has joined #ruby
tildes_ has quit [Ping timeout: 276 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
ramfjord_ has quit [Ping timeout: 260 seconds]
centrx has quit [Quit: centrx]
CloCkWeRX has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ekinmur has joined #ruby
n_blownapart has joined #ruby
nando293921 has joined #ruby
ramfjord has joined #ruby
freerobby has joined #ruby
ecksit has joined #ruby
wilbert has quit [Quit: quit]
wilbert has joined #ruby
Dimik has quit [Ping timeout: 244 seconds]
<havenwood>
>> 'We cross our bridges as we come to them and burn them behind us, with nothing to show for our progress except a memory of the smell of smoke, and the presumption that once our eyes watered.'.count ' '
jackjackdripper1 has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
<havenwood>
kraken_: One might also say to limit sentences to fewer than 30 words. Break rules sometimes.
nando293921 has quit [Quit: Lost terminal]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nando293921 has joined #ruby
weemsledeux has joined #ruby
<havenwood>
kraken_: Maybe try limiting yourself to 10 or 5 lines per method for a while. If you need more consider why or ask for feedback here on how.
meinside has quit [Quit: Connection closed for inactivity]
nadir has joined #ruby
nadir has quit [Changing host]
nadir has joined #ruby
nadir has quit [Changing host]
nadir has joined #ruby
David_H__ has joined #ruby
<shevy>
a kraken has lots of arms!
ramfjord has quit [Ping timeout: 250 seconds]
devbug has joined #ruby
yqt has quit [Ping timeout: 252 seconds]
David_H_Smith has quit [Ping timeout: 240 seconds]
zacts has quit [Ping timeout: 258 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blockchan has joined #ruby
gooooodroot has quit [Ping timeout: 260 seconds]
blockchan has quit [Ping timeout: 250 seconds]
longfeet has joined #ruby
ElFerna has quit [Read error: Connection reset by peer]
weaksauce has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jancel has quit [Remote host closed the connection]
certainty has joined #ruby
m_antis has joined #ruby
SilverKey has quit [Quit: Halted.]
tmtwd has joined #ruby
certainty has quit [Ping timeout: 250 seconds]
sphex_ has joined #ruby
Wolland has joined #ruby
sphex has quit [Read error: Connection reset by peer]
jphase has quit [Remote host closed the connection]
Vingador has quit [Remote host closed the connection]
t1mxg0d has quit [Ping timeout: 246 seconds]
arooni_______ has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
nando293921 has quit [Quit: Lost terminal]
arooni_______ has left #ruby [#ruby]
nando293921 has joined #ruby
ur5us has quit [Remote host closed the connection]
c_nick has joined #ruby
<c_nick>
i want to copy all contents of A to B .. FileUtils.cp_r(A/.,B) should be fine right?
ur5us has joined #ruby
nando293921 has quit [Read error: Connection reset by peer]
nando293921 has joined #ruby
cdg has joined #ruby
nando293921 has quit [Client Quit]
<shevy>
yeah
<shevy>
don't forget that it wants strings as input arguments
SilverKey has joined #ruby
<c_nick>
shevy: yep. many thanks
<c_nick>
FileUtils.cp_r("A/.","B")
David_H__ has quit [Remote host closed the connection]
<c_nick>
Off topic but incase anyone can help - In excel i want to check if A1 has 'Sat' or 'Sun' fill A2 with Grey color , is macro the only choice or we can do it via Conditional Formatting or some other means ?
<shevy>
you can do so with some formula I think
<shevy>
I know that I googled for libreoffice sum even rows and found some discussion forum in sat... stackoverflow style where the code was shown
<shevy>
I hate the formulas though, I want to be able to use ruby!
nando293921 has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
pilne has quit [Quit: Quitting!]
<c_nick>
shevy: lol .. yeah to think of it we can use the excel sheet in Ruby using Win Module parse it and then make another one :D but ......
flashpoint9 has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
astrobun_ has joined #ruby
astrobunny has quit [Read error: No route to host]
mleung has joined #ruby
jackjackdripper has quit [Client Quit]
<baweaver>
!troll ih8niggrz
<roa>
.
chouhoulis has joined #ruby
aries_liuxueyang has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
lightt has quit [Remote host closed the connection]
aries_liuxueyang has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n_blownapart has joined #ruby
wolffles has joined #ruby
braincrash has quit [Quit: bye bye]
freerobby has quit [Quit: Leaving.]
gtsai has joined #ruby
coffeecupp has joined #ruby
coffeecupp has quit [Client Quit]
mleung has quit [Quit: mleung]
n_blownapart has quit [Ping timeout: 258 seconds]
coffeecupp has joined #ruby
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
moeabdol2 has joined #ruby
gtsai has quit [Ping timeout: 250 seconds]
skweek has quit [Ping timeout: 264 seconds]
<jnoob22>
If you don't use $LOAD_PATH << "." ... where does Ruby normally look for packages/modules?
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lightt has joined #ruby
pontiki has joined #ruby
braincras has joined #ruby
moeabdol2 has quit [Ping timeout: 240 seconds]
Coldblackice has quit [Ping timeout: 250 seconds]
c_nick has left #ruby [#ruby]
certainty has joined #ruby
Rodya_ has joined #ruby
SilverKey has quit [Quit: Halted.]
SilverKey has joined #ruby
edwardly has quit [Max SendQ exceeded]
SilverKey has quit [Client Quit]
Madplatypus has quit [Quit: Connection closed for inactivity]
gtsai has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
SilverKey has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
crdpink has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
crdpink2 has quit [Ping timeout: 272 seconds]
Madplatypus has joined #ruby
Wolland has joined #ruby
arlek has quit [Ping timeout: 250 seconds]
<akkad>
standard ruby
giz|work has quit [Ping timeout: 240 seconds]
Wolland has quit [Ping timeout: 250 seconds]
rehat has joined #ruby
nischay has quit [Quit: Lost terminal]
tmtwd has quit [Ping timeout: 252 seconds]
nankyokusei has joined #ruby
<rehat>
trying to find the implementation of a method but I can't seem to find it. If there is a method called 'available?' shouldn't there be method with that name?
guardian has quit [Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number]
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tgeeky>
anyone here understand StringIO? I would ask if you understand encodings, but apparently nobody does.
truenito has quit [Read error: Connection reset by peer]
mdw has joined #ruby
lightt has quit [Remote host closed the connection]
k3rn31 has joined #ruby
gamov has joined #ruby
fenre has joined #ruby
meatchicken has joined #ruby
mikecmpbll has joined #ruby
ryann has joined #ruby
ryann has quit [Client Quit]
antgel has joined #ruby
flughafen_ has joined #ruby
nankyokusei has joined #ruby
phatypus has joined #ruby
rehat has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
n1x-nz has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
pepee has quit [Quit: bye $IRC]
saneax_AFK is now known as saneax
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
j416 has quit [Quit: o/]
mikecmpbll has joined #ruby
skolman has quit [Remote host closed the connection]
biberu\ has joined #ruby
biberu\ has quit [Client Quit]
Oog has quit []
jas02 has quit [Quit: jas02]
<apeiros>
jhass: right
mwlang has quit [Ping timeout: 252 seconds]
blackgoat has quit [Quit: WeeChat 1.5]
biberu has quit [Ping timeout: 244 seconds]
biberu has joined #ruby
kknight has joined #ruby
certainty has joined #ruby
scepticulous has joined #ruby
<flughafen_>
adaedra: bonjour
moeabdol2 has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
emilkarl has joined #ruby
nadir has joined #ruby
certainty has quit [Ping timeout: 250 seconds]
n1x-nz has joined #ruby
certainty has joined #ruby
madgen has joined #ruby
<adaedra>
hallo flughafen_
<adaedra>
hello everyone else
moeabdol2 has quit [Ping timeout: 244 seconds]
solocshaw has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
<flughafen_>
hej adaedra
jas02 has joined #ruby
<adaedra>
hur mår du?
harfangk has quit [Quit: harfangk]
<flughafen_>
jur mar so gut
ishe_ua has joined #ruby
mikecmpbll has joined #ruby
TheHodge has joined #ruby
chussenot has joined #ruby
Snowy has joined #ruby
skade has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
harfangk has joined #ruby
moeabdol2 has joined #ruby
chussenot has quit [Quit: chussenot]
Bish has joined #ruby
<Bish>
are there any good databse connectors that doesn't require c extensions?
Snowy has quit [Remote host closed the connection]
<hanmac>
Bish how else should it connect to the database?
moeabdol2 has quit [Ping timeout: 240 seconds]
<Bish>
? sockets
<hanmac>
hm that might be possible but 10x more complicated and far more slower
skade has quit [Quit: Computer has gone to sleep.]
<Bish>
i know all that
<Bish>
but are there any
<Bish>
or a good key value store for ruby, which can act like a database
<Bish>
it doesn't have to be fast or store much data
raeoks has joined #ruby
<jhass>
Bish: https://github.com/will/crystal-pg here's a postgres driver for crystal implementing the wire protocol in crystal, no libpq dependency or any C at all!
<jhass>
scnr
mdw has quit [Ping timeout: 250 seconds]
<Bish>
:D im looking forward to crystal but having it to compile is imho like a c extension :D
<Bish>
why are so many postgres fans in ruby-ish environment
<Bish>
jhass: regarding crystal: will you notify me when it has proper threading & win32 support :p
harai has quit [Ping timeout: 250 seconds]
<alfiemax>
it say usr/bin/rails
<jhass>
Bish: no! but I inform you that we have variadic generics now!
n_blownapart has joined #ruby
<Bish>
did you just tell me to f myself :D
<jhass>
alfiemax: so you sudo gem install rails at some point, or installed rails via apt-get
<jhass>
alfiemax: I'd suggest to start be removing that one
<alfiemax>
yeah
<jhass>
Bish: variadic generics are awesome!
<alfiemax>
ok, i'll try
<Bish>
i will surely look into it, as soon as it finds its way into my distribution
chrissonar has joined #ruby
<Bish>
crystal looks really promising to release me from c++
<chrissonar>
is it valid to claim "classes are constants" from the Ruby perspective?
<jhass>
Bish: what's your distro?
<jhass>
chrissonar: classes are objects which typically are assigned to constants
<jhass>
chrissonar: class Foo is roughly the same as Foo = Class.new
<Bish>
jhass: gentoo
<chrissonar>
jhass, well. classes are objects of the class Class.
<jhass>
Bish: ah well, why don't you write a package? Guess where arch has theirs from ;)
<jhass>
chrissonar: yes
n_blownapart has quit [Ping timeout: 240 seconds]
<Bish>
no, no gentoo has packages, but they're only at 0.15 ( which is pretty good for such a young project )
moeabdol has joined #ruby
<jhass>
Bish: huh, no packaging changes towards 0.17 there, just gotta bump it
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n_blownapart has joined #ruby
guardian has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
<Bish>
jhass: what's the deal with win32 support?
DTZUBDUB has quit [Ping timeout: 276 seconds]
<jhass>
shit ton of work, non of the core devs uses windows
<Bish>
yeah windows sucks, still would love to be able to write for it
<jhass>
and more pressing issues, like making generics more stable and well, parallelism
evidex has joined #ruby
<Bish>
yeah parallelism would automaticially make me user crystal
<Bish>
s/user/use
tildes has quit [Remote host closed the connection]
<Bish>
like having a fast ruby-like language processing data rather quickly, a dream
joonty has joined #ruby
dionysus69 has quit [Quit: dionysus69]
tildes has joined #ruby
Shashikant86 has joined #ruby
n_blownapart has quit [Ping timeout: 244 seconds]
tjbiddle has joined #ruby
UKn0Me has left #ruby [#ruby]
duderonomy has quit [Ping timeout: 276 seconds]
mark_66 has joined #ruby
pawnbox has quit [Remote host closed the connection]
GarethAdams has quit [Quit: Leaving...]
<lalalaaa>
Hi! TweetStream::Client.new.locations(-80.29,32.57,-79.56,33.09) do |tweet| -- what sort of location format is that? It doesn't seem like regular (latitude,longitude).
<apeiros>
lalalaaa: did you consult TweetStream::Client's docs?
<apeiros>
and after that, twitter's own API docs?
skade has quit [Ping timeout: 272 seconds]
certainty has joined #ruby
ocbtec has joined #ruby
pawnbox has joined #ruby
<jhass>
Bish: note there's already concurrency on blocking IO
n_blownapart has joined #ruby
skade has joined #ruby
<jhass>
kinda node style, I think Go wasn't parallel from the start either
GarethAdams has joined #ruby
fenre has quit [Remote host closed the connection]
<apeiros>
hard to find good devs who truly grasp parallelism and its inherent problems.
fenre has joined #ruby
<apeiros>
jhass: if you've got any influence on it, please make the scheduler pluggable. that'd be a major step to allow concurrent code to be tested.
<apeiros>
I guess the "modern" and "buzzy" word would be "injectable" :)
<Bish>
jhass: but only on one core , yeah
<flughafen_>
apeiros: increases sz
<flughafen_>
synergz
marr has joined #ruby
<flughafen_>
ugh, keyboard, increases synergy by 30%
n_blownapart has quit [Ping timeout: 252 seconds]
<apeiros>
flughafen_: modulates the amplitude of the productivity geometrically!
skade has quit [Quit: Computer has gone to sleep.]
<ruby[bot]>
kknight: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<hanmac>
kknight: i didnt mean you ;P
<jhass>
hanmac: you did, they're the same (same hostmask)
Tempesta has quit [Quit: AdiIRC is updating to v2.4 Beta Build (2016/06/07) 32 Bit]
Tempesta has joined #ruby
senayar has joined #ruby
biberu\ has joined #ruby
<kknight>
i was unable to post on rails forum so posted here , sorry for that
duderonomy has joined #ruby
<jhass>
it came though just fine
<kknight>
btw whats the solution?
<hanmac>
ah good to know ... about the problem with date only in the future, i dont know if its possible but you should try an input tag with type=date
biberu has quit [Ping timeout: 240 seconds]
phredus has joined #ruby
biberu\ has quit [Client Quit]
biberu has joined #ruby
toretore has joined #ruby
GarethAdams has joined #ruby
phatypus has quit [Quit: .>]
zhangss has joined #ruby
mistermocha has joined #ruby
agent_white has quit [Remote host closed the connection]
nankyokusei has joined #ruby
alfiemax has joined #ruby
aupadhye has quit [Ping timeout: 276 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
n_blownapart has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
`derpy has quit [Ping timeout: 260 seconds]
weckl has joined #ruby
adaedra has quit [Ping timeout: 276 seconds]
edwinvdgraaf has quit [Ping timeout: 240 seconds]
Helheim has quit [Quit: Bah, stupid error messages.]
Helheim has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n_blownapart has quit [Ping timeout: 252 seconds]
madgen has quit [Ping timeout: 260 seconds]
lxsameer has quit [Ping timeout: 250 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
kknight has left #ruby ["Leaving"]
Coldblackice has quit [Ping timeout: 252 seconds]
arlek has quit [Ping timeout: 250 seconds]
Macaveli has joined #ruby
certainty has quit [Ping timeout: 258 seconds]
`derpy has joined #ruby
adaedra has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
madgen has joined #ruby
joonty has joined #ruby
Xentil has joined #ruby
madgen has quit [Ping timeout: 244 seconds]
giz|work has joined #ruby
evidex has quit [Remote host closed the connection]
evidex has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
skade has quit [Quit: Computer has gone to sleep.]
norc has joined #ruby
n_blownapart has joined #ruby
johnmilton has quit [Remote host closed the connection]
flughafen_ has quit [Ping timeout: 246 seconds]
DTZUBDUB has quit [Ping timeout: 272 seconds]
lightt has joined #ruby
n_blownapart has quit [Ping timeout: 252 seconds]
benlieb has joined #ruby
the_drow has quit [Quit: Leaving]
flughafen_ has joined #ruby
n1x-nz has quit [Ping timeout: 246 seconds]
yqt has joined #ruby
davedev24 has joined #ruby
d0lph1n98 has quit [Ping timeout: 272 seconds]
gamov has quit [Ping timeout: 260 seconds]
edwinvdgraaf has joined #ruby
Amnez777 has quit [Ping timeout: 260 seconds]
sdothum has joined #ruby
n_blownapart has joined #ruby
diegoaguilar has joined #ruby
troulouliou_div2 has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Amnez777 has joined #ruby
d0lph1n98 has joined #ruby
edwinvdgraaf has quit [Ping timeout: 260 seconds]
lightt has quit [Remote host closed the connection]
kedare has joined #ruby
daveaway has joined #ruby
charliesome has joined #ruby
<daveaway>
Has anyone got any experience with debugging a ruby 1.8.7 rails 2.3.8 app using rubymine set up on a vagrant box?
lessless has joined #ruby
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
2010 that was a legit question
n_blownapart has quit [Ping timeout: 252 seconds]
c355e3b has joined #ruby
maucar has joined #ruby
edwinvdgraaf has joined #ruby
agit0 has joined #ruby
jancel has joined #ruby
guardianJ has joined #ruby
<daveaway>
i know jhass, it's a joke
blackgoat has joined #ruby
<jhass>
you'd wonder how many come with that kind of question here seriously
<daveaway>
is it asked regularly?
<norc>
daveaway: From time to time, yes.
<daveaway>
it's because people dont update their websites for years
jancel has quit [Ping timeout: 250 seconds]
<norc>
I've seen at least 2 rails 2 related questions this year, and quite a few Ruby 1.9.x problems in the past few weeks.
<daveaway>
;/ and now it's so far gone passed when they should have updated
minimalism has quit [Quit: minimalism]
<daveaway>
it would probably be less effort to just rebuild it from scratch
<daveaway>
do people not use rails anymore?
<daveaway>
oh rails 2
johnmilton has joined #ruby
<daveaway>
:D
<norc>
daveaway: For old Ruby partially debian/ubuntu is to blame.
<jhass>
and largely Cent and RHEL
lightt has joined #ruby
<jhass>
and puppet
<shevy>
:D
d0lph1n98 has quit [Ping timeout: 258 seconds]
guardianJ has quit [Remote host closed the connection]
<flughafen_>
hey shevy
<shevy>
yo flughafen
<shevy>
oh I see you twice
<flughafen_>
yeah, i'm on my laptop, we have a fancy workshop week this week so i'm on my laptop
<flughafen_>
shevy: so now it's twice the airports not taking off
edwinvdg_ has joined #ruby
johnmilton has quit [Ping timeout: 276 seconds]
certainty has joined #ruby
bweston92 has joined #ruby
n_blownapart has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
<shevy>
lol
edwinvdgraaf has quit [Ping timeout: 258 seconds]
<shevy>
flughafen_ I think this is why big cities like london etc.. all have multiple flughafens - they could not rely on their older ones!
edwinvdgraaf has joined #ruby
<flughafen_>
shevy: if i move to london i will be much more successful
<shevy>
I may do so too one day
certainty has quit [Ping timeout: 244 seconds]
<shevy>
UK or USA ... UK is much closer
<flughafen_>
shevy: do you want to relocate?
<daveaway>
why would you be more successful in london?
<daveaway>
it's ridiculously expensive to live there
skade has joined #ruby
<shevy>
flughafen_ not really but I think doing a PhD outside the country would be better in the long term
rodfersou has joined #ruby
n_blownapart has quit [Ping timeout: 252 seconds]
<flughafen_>
daveaway: it's a joke. my name is german for airport, and i've been associated with BER the berlin airport that is 201 years behind schedule and 78 trillion euros over budget. But london has 4 working airports.
<daveaway>
ah
lightt has quit [Remote host closed the connection]
<shevy>
lol 78 trillion
neanderslob has quit [Remote host closed the connection]
harfangk has quit [Quit: harfangk]
<flughafen_>
daveaway: shevy asks me if im taking off on a regular basis.
edwinvdgraaf has quit [Ping timeout: 240 seconds]
<shevy>
one day they will finish the flughafen
<shevy>
one day
<flughafen_>
then i will be referred to as the best flughafen that ever flugged
MrBusiness3 has joined #ruby
yqt has quit [Ping timeout: 240 seconds]
johnmilton has joined #ruby
<flughafen_>
shevy: im destined for greatness
MrBusiness2 has quit [Ping timeout: 258 seconds]
<hanmac>
shevy BER will be finished when everyone else has personal teleporters ;P
harfangk has joined #ruby
dangerousdave has joined #ruby
<shevy>
everyone needs some way to generate some extra income!
evidex has quit [Ping timeout: 240 seconds]
<flughafen_>
hanmac: so next week?
evidex has joined #ruby
devbug has quit [Ping timeout: 258 seconds]
k3rn31 has joined #ruby
allcentu1 has joined #ruby
Shashikant86 has joined #ruby
lxsameer has joined #ruby
axxyhtrx has joined #ruby
Shashikant86 has quit [Max SendQ exceeded]
zhangss has quit []
daveaway has quit [Quit: Page closed]
evidex has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
DEac- has quit [Quit: leaving]
certainty has joined #ruby
DEac- has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n_blownapart has joined #ruby
lightt has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
yatish27_ has quit [Ping timeout: 250 seconds]
digneety has joined #ruby
digneety has quit [Changing host]
digneety has joined #ruby
yatish27 has joined #ruby
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby
kgrz has quit [Ping timeout: 250 seconds]
n_blownapart has quit [Ping timeout: 252 seconds]
evidex has joined #ruby
edwinvdgraaf has joined #ruby
lessless has joined #ruby
bkxd has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
joonty has quit [Quit: This computer has gone to sleep]
edwinvdgraaf has joined #ruby
fenre has quit [Remote host closed the connection]
DTZUBDUB has joined #ruby
duncannz has quit [Remote host closed the connection]
ishe_ua has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 244 seconds]
tlaxkit has joined #ruby
inukshuk_ has joined #ruby
inukshuk_ has quit [Client Quit]
lightt has quit [Remote host closed the connection]
yqt has joined #ruby
n_blownapart has joined #ruby
nankyokusei has joined #ruby
chihhsin has quit [Quit: leaving]
eljimador has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
ldnunes has joined #ruby
n_blownapart has quit [Ping timeout: 276 seconds]
certainty has quit [Ping timeout: 264 seconds]
hanmac has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
gnufied has joined #ruby
d0lph1n98 has joined #ruby
<Bish>
oh okay, now i understand what u meant when saying compile_file cannot be used for obscurification
centrx has joined #ruby
<Bish>
src <=> binary are bijective
<Bish>
daufq
<apeiros>
Bish: you can buy zenspiders' obfuscator. costs only 3000$ iirc.
<Bish>
link ?
fenre has joined #ruby
<Bish>
why on earth does the formatting still work
<apeiros>
can't find any site to buy it. might be that he doesn't maintain it anymore.
phredus has quit [Read error: Connection reset by peer]
<apeiros>
"code written in C" != "superfast"
<apeiros>
even more true for "another language compiled to C"
<Bish>
yah right
<Bish>
weird stuff
<apeiros>
but yes, zenspiders has (had?) a version of rubyinline which could convert a subset of ruby to C and was very fast
<apeiros>
especially math stuff which fits into CPUs limitations
<norc>
[13:47] <Bish> src <=> binary are bijective
<norc>
Not quite.
<Bish>
btw i was wrong.. pry just loads the sourcefile for mapping
<Bish>
yeah
<Bish>
i just found out
<Bish>
that's enough obscur for me :D
certainty has joined #ruby
<Bish>
scrambling methodnames & such would be cool, maybe will write something like that
edwinvdgraaf has quit [Ping timeout: 276 seconds]
lxsameer has quit [Ping timeout: 276 seconds]
<Bish>
>Explicit returns are required in all methods.
<Bish>
hrhr, what a great compiler they just map code
fenre has quit [Remote host closed the connection]
<Bish>
well back to wrok
<Bish>
i guess
hanmac has joined #ruby
nerium has joined #ruby
rodferso1 has joined #ruby
arlek has joined #ruby
lightt has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
edwinvdg_ has quit [Remote host closed the connection]
rodfersou has quit [Ping timeout: 258 seconds]
edwinvdgraaf has joined #ruby
rodferso1 is now known as rodfersou
tvw has joined #ruby
yatish27 has quit [Remote host closed the connection]
evidex has quit [Ping timeout: 240 seconds]
<TheBrayn>
what was the name of the option parser lib that rails uses again?
<shevy>
hmm not sure... slop?
<shevy>
we must have like 50 different option parsers by now
Yiota has joined #ruby
allcentu1 has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
despai has joined #ruby
shadeslayer has quit [Ping timeout: 258 seconds]
arlek has quit [Ping timeout: 250 seconds]
shadeslayer has joined #ruby
skade has joined #ruby
aswen has joined #ruby
DTZUBDUB has quit [Ping timeout: 240 seconds]
DTZUBDUB has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
kgrz has joined #ruby
<TheBrayn>
Slop seems nice, thanks
lxsameer has joined #ruby
<TheBrayn>
I was using trollop in the past but I think it's no longer being actively developed
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackgoat has quit [Quit: WeeChat 1.5]
Madplatypus has quit [Quit: Connection closed for inactivity]
eljimmy has joined #ruby
harai has joined #ruby
n_blownapart has joined #ruby
cdg has joined #ruby
jancel has joined #ruby
moeabdol has quit [Quit: WeeChat 1.4]
saneax is now known as saneax_AFK
harai has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
<jhass>
iirc rails uses thor
<jhass>
but rather use slop too
skade has quit [Quit: Computer has gone to sleep.]
n_blownapart has quit [Ping timeout: 252 seconds]
d0lph1n98 has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 252 seconds]
jancel has quit [Ping timeout: 250 seconds]
<shevy>
thor wauki slops on the path towards victory, parsing all availalbe options as he gets longer and longer, in order to slay all the remaining trollops!
<shevy>
cool I even managed to typo :P
flashpoint9 has joined #ruby
DTZUBDUB has quit [Ping timeout: 244 seconds]
fmcgeough has joined #ruby
lxsameer has joined #ruby
saneax_AFK is now known as saneax
hutch34 has joined #ruby
sepp2k has joined #ruby
digneety has quit [Quit: digneety]
spyder55 has quit []
pawnbox has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
ftj has joined #ruby
skade has joined #ruby
bkxd has joined #ruby
zack6849 has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Ping timeout: 276 seconds]
d0lph1n98 has joined #ruby
norc has quit [Ping timeout: 250 seconds]
digneety has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
chouhoulis has joined #ruby
syath has joined #ruby
aganov has quit [Remote host closed the connection]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Asher has joined #ruby
ekinmur has joined #ruby
mdw has joined #ruby
mdw has quit [Max SendQ exceeded]
<jhass>
oh, when became <<~HEREDOC a thing?
<adaedra>
2.3 iirc
<jhass>
cool
<adaedra>
it's really cool
wilsonc91 has joined #ruby
mdw has joined #ruby
SilverKey has joined #ruby
evidex has joined #ruby
Gasher has joined #ruby
nankyokusei has joined #ruby
Snowy has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
<ccooke>
Finally catching up with the shell ;-)
chouhoul_ has joined #ruby
jaguarma_ has quit [Ping timeout: 264 seconds]
nankyokusei has quit [Ping timeout: 276 seconds]
grassass has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
JesseH has quit [Quit: Leaving]
yqt has quit [Ping timeout: 260 seconds]
hxegon_afk is now known as hxegon
TomyWork has joined #ruby
<TomyWork>
hi
certainty has quit [Ping timeout: 246 seconds]
<TomyWork>
is there any ruby gem i can use to make 1.8.7 not suck (as much)?
theunraveler has joined #ruby
Macaveli has joined #ruby
<hxegon>
TomyWork: That's a bit vague, are there specific pain points?
<TomyWork>
i havent started yet. i'm sure there are many
<TomyWork>
i was hoping for a generic modernization thingy
<TomyWork>
if there's no such thing, i'd look into updating it
duckpuppy has joined #ruby
<hxegon>
TomyWork: You should really look into updating it. IIRC 1.8.7 isn't supported, so there are no security updates
<TomyWork>
security updates arent relevant to what i'm going to do
<hxegon>
plus there is a lot of stuff that's been changed between then and now, so gems might not work with that version either
k3rn31 has quit [Quit: Computer has gone to sleep.]
<TomyWork>
you're probably right
last_staff has quit [Quit: last_staff]
<TomyWork>
btw, is there any ruby version management thingy that integrates with bundler?
edwinvdgraaf has quit [Ping timeout: 250 seconds]
<hxegon>
I don't know if I would call it 'integrated', but in my experience rbenv and bundler work pretty well together
<hxegon>
Although I imagine chruby or rvm would work just as well
Snowy has joined #ruby
certainty has joined #ruby
<TomyWork>
hxegon well ideally i'd put the ruby version into my Gemfile and instead of just bailing out when it encounters the wrong version, bundler would fetch the correct version instead
<TomyWork>
so either that is a stupid idea or an obvious idea :)
allcentu1 has quit [Ping timeout: 250 seconds]
<hxegon>
bundler doesn't install ruby though. At least with rbenv, you can put "ruby '2.2.4'" in your Gemfile, and it will let you know if you're using the wrong version
<hxegon>
at which point you can switch to or install the right version, run bundler again, and it will get the right versions of gems for you
grill has joined #ruby
ruby-lang044 has quit [Quit: Page closed]
norc has joined #ruby
araujo has quit [Ping timeout: 260 seconds]
<norc>
Hah. I just found a use case to thaw a frozen object!
<TomyWork>
object transplantation?
edwinvdgraaf has joined #ruby
grill has quit [Client Quit]
ChiefAlexander has joined #ruby
<norc>
TomyWork: No. Developer apparently figured that modifying this could be a bad thing, I say I know better.
jhack has joined #ruby
<TomyWork>
i.e. you're breaking the contract :)
<norc>
It was a shitty contract to begin with.
<norc>
;-)
<TomyWork>
that's the equivalent of a const_cast, right?
dfinninger has joined #ruby
dfinninger has quit [Remote host closed the connection]
<norc>
TomyWork: no
<TomyWork>
how is it not?
dfinninger has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cdg has joined #ruby
grill has joined #ruby
grill has quit [Client Quit]
jhack_ has joined #ruby
<norc>
TomyWork: Ruby provides no real interface to do this.
anisha has quit [Quit: Leaving]
ncthom91 has joined #ruby
lightt has quit [Remote host closed the connection]
dfinning_ has joined #ruby
<TomyWork>
oh
<TomyWork>
well you could make your own, right? :)
dfinning_ has quit [Remote host closed the connection]
dfinninger has quit [Read error: Connection reset by peer]
morfeen has joined #ruby
axxyhtrx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<TomyWork>
either native code or detour the freeze
<norc>
TomyWork: I just did. You can just use Fiddle to manipulate the flag in your RObject to make it play nice.
diegoaguilar has quit [Remote host closed the connection]
<TomyWork>
oh, that's kinda what i did in minecraft :)
dfinninger has joined #ruby
edwinvdgraaf has quit [Read error: No route to host]
<norc>
pontiki: Come to think of it.. I could just dup the damn thing. :(
<norc>
There goes my wishful thinking to use Fiddle in production code.
<morfeen>
How can I quickly get upto speed on Ruby and Rails? I have a JS/Node background as of now.
<norc>
?rails morfeen
<ruby[bot]>
morfeen: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
GarethAdams has quit [Read error: Connection reset by peer]
GarethAdams_ has joined #ruby
frem_ has joined #ruby
evidex has quit [Ping timeout: 240 seconds]
<norc>
TomyWork: Just out of random curiosity (note I really do not know much about Java), what is this Class<? super T>
<norc>
It looks funky.
<norc>
Is that generics related?
<TomyWork>
it is
Yiota has joined #ruby
allcentu1 has joined #ruby
giz|work has quit [Ping timeout: 250 seconds]
n_blownapart has joined #ruby
tsherman has joined #ruby
Yiota has quit [Client Quit]
<TomyWork>
basically instance is of type T, the class denoted by instanceclass is of class T or any direct or indirect superclass or implemented interface of T
tmtwd has joined #ruby
<TomyWork>
(or the called did some unsafe casts and that thing will likely explode in their face)
<TomyWork>
caller*
diegoviola has joined #ruby
kareeoleez has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
joonty has joined #ruby
scepticulous has quit [Quit: Konversation terminated!]
skade has joined #ruby
aphprentice has quit [Ping timeout: 258 seconds]
moufl has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ketherah has quit [Ping timeout: 258 seconds]
vikid has quit [Ping timeout: 258 seconds]
hutch34_ has quit [Ping timeout: 258 seconds]
binaryplease has quit [Ping timeout: 244 seconds]
aphprentice has joined #ruby
freerobby has quit [Quit: Leaving.]
ketherah has joined #ruby
edwinvdgraaf has quit [Ping timeout: 264 seconds]
vikid has joined #ruby
skade has quit [Client Quit]
n_blownapart has joined #ruby
skade has joined #ruby
hutch34_ has joined #ruby
zacts has quit [Ping timeout: 264 seconds]
Gasher has quit [Quit: Leaving]
jaguarma_ has joined #ruby
M-shine has joined #ruby
jaguarma_ has quit [Remote host closed the connection]
n_blownapart has quit [Ping timeout: 252 seconds]
LMity has joined #ruby
Gasher has joined #ruby
jaguarmagenta has quit [Ping timeout: 250 seconds]
swills has joined #ruby
tsherman has quit [Ping timeout: 244 seconds]
aberen has joined #ruby
binaryplease has joined #ruby
flughafen_ has quit [Ping timeout: 250 seconds]
binaryplease has quit [Client Quit]
binaryplease1 has joined #ruby
Wolland has joined #ruby
panchiz has quit [Ping timeout: 246 seconds]
KillerFox has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
M-Kodo has joined #ruby
truenito has quit [Read error: Connection reset by peer]
certainty has joined #ruby
kgrz has quit [Ping timeout: 244 seconds]
zacts has joined #ruby
yatish27 has joined #ruby
Yiota has joined #ruby
mustmodify has joined #ruby
certainty has quit [Ping timeout: 252 seconds]
yqt has joined #ruby
mtkd has quit [Ping timeout: 250 seconds]
<mustmodify>
ok! I am totally confused. So maybe talking it through will help. I have a ruby microservice that received UDP messages, parses, journals and acknowledges them. The acknowledgments are wrong in production but right in development, both in the logfiles and in irb. The command is simply TrackAir.parse(message).sack ... I just deployed (again) and verified that the current revision in dev is the revision number in production.
certainty has joined #ruby
polishdub has joined #ruby
mtkd has joined #ruby
binaryplease1 is now known as binaryplease
ytti has joined #ruby
blandflakes has joined #ruby
<mustmodify>
So that sort of suggests a configuration issue.
cschneid has joined #ruby
evidex has joined #ruby
swills_ has joined #ruby
Yiota has quit [Ping timeout: 246 seconds]
kareeoleez has joined #ruby
saneax is now known as saneax_AFK
swills has quit [Ping timeout: 240 seconds]
craigp has quit [Quit: WeeChat 1.5]
xlegoman has joined #ruby
<mustmodify>
Ah ha! Follow the warnings.
certainty has quit [Ping timeout: 246 seconds]
prestorium has joined #ruby
Rush__ is now known as Rush
Ropeney has joined #ruby
LMity has quit [Ping timeout: 250 seconds]
slackbotgz has joined #ruby
NewbieRubyInPhil has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alnewkirk has joined #ruby
blaxter has quit [Quit: foo]
despai has quit [Quit: Leaving]
freerobby has joined #ruby
TomyWork has quit [Ping timeout: 244 seconds]
Yiota has joined #ruby
tildes_ has joined #ruby
<mustmodify>
nope
<mustmodify>
blah.
craigp has joined #ruby
<jhass>
sorry but not sure anybody can help you like this
<mustmodify>
I know.
<jhass>
you only showed some very very high level code and didn't even elaborate on "wrong"
<mustmodify>
I just thought talking it out might help. I often solve my own problems.
<mustmodify>
which is probably inappropriate.
<mustmodify>
ugh.
<jhass>
ah, happy rubber ducking then, you haven't seen me
d0lph1n98 has quit [Ping timeout: 250 seconds]
<al2o3-cr>
what benchmarking should i use to test factorials between ruby and rust?
boozler has joined #ruby
<jhass>
let's use the jhass benchmark, results coming in...:
<jhass>
rust is faster
HayderCtee has joined #ruby
isxek has quit [Quit: Leaving]
<al2o3-cr>
:p
kies has quit [Ping timeout: 258 seconds]
edwinvdgraaf has joined #ruby
<al2o3-cr>
but seriously, should i use bmbm or measure or something else?
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
<jhass>
I usually find ips benchmarks easiest to read
synthroid has quit [Remote host closed the connection]
nankyokusei has joined #ruby
klekot has joined #ruby
skolman has joined #ruby
n_blownapart has joined #ruby
araujo has joined #ruby
<cschneid>
What is the semantic difference between #count, #size, and #length? I have a new object that is sorta collection-y and need a method like that. Is there any good reason to pick one over another?
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Remote host closed the connection]
skolman has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
<boozler>
SQL Question: I have a table that has columns like so (id, customer_id, value, void). void is a boolean. I would like to query and present 2 columns like so (sum_values_not_void, sum_values_void), grouped by customer_id. What's the best way to do this? Seperate queries, then query those queries together? Can I do it in one go?
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 264 seconds]
<jhass>
cschneid: #size and #length are aliases, they usually return precomputed/stored values, #count iterates over a collection and tracks a counter
mark_66 has quit [Quit: Leaving.]
M-mistake has joined #ruby
n_blownapart has quit [Ping timeout: 252 seconds]
<jhass>
boozler: yes, you'll need two subselects
jrafanie has joined #ruby
blockchan has quit [Ping timeout: 264 seconds]
<boozler>
jhass: can subselects be executed in a single query?
<cschneid>
jhass: cool, so I have a Set that tracks how many items were put in (even if they were then combined) - so #size and #length are probably right
<apeiros>
boozler: yes
<jhass>
boozler: or googleing a minute one workaround is to SUM(CASE WHEN void THEN value ELSE 0 END)
bkxd has quit [Ping timeout: 240 seconds]
<apeiros>
boozler: though depends on your db, some are incapable, and some have horrible perf
<boozler>
apeiros: msaccess
<boozler>
playing with it through win32ole
<apeiros>
don't know that one.
<boozler>
apeiros: microsoft access
<apeiros>
mssql can do subselects, but is one of those with horrible performance in certain cases
<apeiros>
yes, I know the name. but I don't know the engine ;-)
<apeiros>
re mssql - not sure whether msaccess uses the same engine as mssql…
<boozler>
no
craigp has quit [Ping timeout: 260 seconds]
slackbotgz has quit [Remote host closed the connection]
<boozler>
this particular db is an ACE db
<apeiros>
you mean they're crazy enough to write a new engine for basically the same purpose?
<apeiros>
I mean, I'd not be entirely surprised. but it'd still be stupid :)
edwinvdg_ has quit [Read error: Connection reset by peer]
johnmilton has quit [Remote host closed the connection]
SilverKey has quit [Read error: Connection reset by peer]
SilverKe_ has joined #ruby
johnmilton has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
dcluna has joined #ruby
HayderCtee has left #ruby [#ruby]
edwinvdgraaf has quit [Ping timeout: 250 seconds]
<boozler>
jhass: thank you. It does not like the taste of CASE WHEN. Looks like I need to try IIF
ergobfmv_ has joined #ruby
nando293921 has joined #ruby
markfletcher has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ergobfmv_ has quit [Client Quit]
myntcake has joined #ruby
whathappens has joined #ruby
freerobby has quit [Quit: Leaving.]
ergobfmv has joined #ruby
swills has joined #ruby
johnmilton has quit [Ping timeout: 272 seconds]
ergobfmv has quit [Client Quit]
<boozler>
jhass, apeiros: that'll do it. Thanks for the help
swills_ has quit [Ping timeout: 260 seconds]
fenre has joined #ruby
Cohedrin has joined #ruby
rippa has joined #ruby
markfletcher has joined #ruby
d10n-work has joined #ruby
jancel has joined #ruby
rodfersou is now known as rodfersou|lunch
markfletcher has quit [Client Quit]
joonty has quit [Quit: This computer has gone to sleep]
einarj has quit [Remote host closed the connection]
alfiemax has joined #ruby
markfletcher has joined #ruby
codecop has joined #ruby
boozler has quit [Ping timeout: 250 seconds]
aegis3121 has quit [Ping timeout: 244 seconds]
andikr has quit [Remote host closed the connection]
kedare has quit [Quit: Leaving]
tlaxkit has quit [Quit: ¡Adiós!]
jancel has quit [Ping timeout: 240 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
einarj has joined #ruby
norc has joined #ruby
danostrowski has joined #ruby
einarj has quit [Remote host closed the connection]
johnmilton has joined #ruby
yatish27 has quit [Remote host closed the connection]
soLucien has joined #ruby
valkyrka has joined #ruby
<soLucien>
hello guys ! anyone here using VSCode for development ?
centrx has quit [Quit: centrx]
RobertBirnie has joined #ruby
centrx has joined #ruby
synthroid has joined #ruby
markfletcher has quit [Ping timeout: 276 seconds]
swills has quit [Ping timeout: 276 seconds]
amclain has joined #ruby
mistermocha has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
Couch has quit [Ping timeout: 276 seconds]
n_blownapart has joined #ruby
griffindy has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
synthroid has quit [Ping timeout: 244 seconds]
Yiota has joined #ruby
synthroid has joined #ruby
senayar has quit []
Coldblackice has joined #ruby
n_blownapart has quit [Ping timeout: 252 seconds]
David_H__ has joined #ruby
Guest70615 has quit [Changing host]
Guest70615 has joined #ruby
Guest70615 has joined #ruby
Guest70615 is now known as rc0r
markfletcher has joined #ruby
mistermocha has quit [Remote host closed the connection]
rc0r has left #ruby ["..."]
mistermocha has joined #ruby
David_H_Smith has quit [Ping timeout: 244 seconds]
mistermocha has quit [Read error: No route to host]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
TomyLobo has joined #ruby
David_H__ has quit [Remote host closed the connection]
David_H_Smith has joined #ruby
nirix has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
LaT0rtue has joined #ruby
[Butch] has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jancel has joined #ruby
last_staff has joined #ruby
chouhoul_ has joined #ruby
ekinmur has joined #ruby
nando293921 has joined #ruby
digneety has joined #ruby
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whathapp_ has joined #ruby
whathap__ has joined #ruby
whathap__ has quit [Read error: Connection reset by peer]
whathapp_ has quit [Read error: Connection reset by peer]
mleung has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whathapp_ has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
<whathapp_>
good morning!
nando293921 has quit [Client Quit]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
digneety has quit [Client Quit]
whathappens has quit [Ping timeout: 250 seconds]
<al2o3-cr>
morning
freerobby has joined #ruby
nando293921 has joined #ruby
<havenwood>
whathapp_: g'morning!
<soLucien>
hi guys ! I want to develop a small Ruby application
<soLucien>
and i want to do it in an isolated way
<soLucien>
don't want it to affect my environment
<soLucien>
on a windows machine
<soLucien>
what should i do ?
<soLucien>
does anyone have an example of a Ruby development environment ?
<soLucien>
or even better yet, Vagrant dev env
weckl has quit [Quit: Leaving]
<soLucien>
that i could see at work ?
diegoaguilar has joined #ruby
<soLucien>
i read something about rvm
pilne has joined #ruby
skolman_ has joined #ruby
n_blownapart has joined #ruby
sumobob has joined #ruby
Yiota has joined #ruby
weemsledeux has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
mistermocha has quit [Remote host closed the connection]
danostrowski has joined #ruby
<nickjj>
soLucien, you could look into using docker
t1mxg0d has joined #ruby
<nickjj>
you wouldn't even need ruby installed your windows box and once you have it installed (~5min), it takes about 2 seconds to spin up/down your dev stack from nothing
<nickjj>
*on your
whathappens has joined #ruby
n_blownapart has quit [Ping timeout: 252 seconds]
kies has joined #ruby
ramfjord has joined #ruby
sneakers has joined #ruby
morfeen has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
whathapp_ has quit [Ping timeout: 258 seconds]
<soLucien>
I see. i'll look into that option then
<soLucien>
never used Docker
<soLucien>
so there might be a learnign curve to it
<nickjj>
no more than learning about using vagrant
<soLucien>
i am quite good with Vagrant, yes
darkxploit has quit [Read error: Connection reset by peer]
<nickjj>
is your ruby app a rails app?
<soLucien>
Vagrant and Puppet are the 2 things
<soLucien>
no, its a Vagrant plugin
<soLucien>
that will be able to manage windows HyperV networks
<soLucien>
so that you can create a custom topology in Vagrant multi-machine environments
gamov has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
kies has quit [Ping timeout: 244 seconds]
<soLucien>
currently i've created the PowerShell driver that interfaces with Windows, and set up a nice API to it
<nickjj>
oh, so in your case do you need to install vagrant in an isolated environment to run it along with your custom plugin?
<soLucien>
i want to write the Vagrant plugin that "ties it up" with a Vagrantfile configuration
<soLucien>
yes exactly
<soLucien>
or somehow be able to debug Vagrantfile execution
<soLucien>
atm i'm using a lot of print-line to see what is happening
<soLucien>
but if i would be able to set a breakpoint, my life would be so much better
<nickjj>
i don't know what the work flow is like for developing a vagrant plugin
<soLucien>
seems like not too many people do .. i've asked around a lot
duckpuppy has quit [Read error: Connection reset by peer]
qasaur has joined #ruby
<nickjj>
it also seems extremely outdated
cdg has quit [Remote host closed the connection]
<nickjj>
you wouldn't gem install vagrant
aegis3121 has joined #ruby
jhack has quit [Quit: jhack]
<nickjj>
if i were you, i'd just start with the least mentally complicated solution and improve it from there
whathappens has quit [Quit: Leaving...]
<nickjj>
which would be to create a VM using whatever tools you're comfy with, install vbox/vagrant in there, mount in your plugin code and run it against vagrant
JJM_ has quit [Ping timeout: 264 seconds]
skade has quit [Quit: Computer has gone to sleep.]
jhack has joined #ruby
duckpuppy has joined #ruby
<nickjj>
that would give you a repeatable testbed for testing your plugin against a set version of vagrant, without worrying about it conflicting with your own regular version of vagrant on your windows box
<soLucien>
nickjj i don't think hyperV can run in a VM
Xiti has joined #ruby
vikaton has joined #ruby
<nickjj>
you could create your vm with the free version of vmware
djbkd has joined #ruby
<nickjj>
vmware lets you run virtualbox instead of it
qasaur has quit [Read error: Connection reset by peer]
<soLucien>
but i am building a plugin that only works with hyperv
<soLucien>
vmware/virtualbox are competing solutions
chipotle has quit [Ping timeout: 252 seconds]
<nickjj>
yeah but inside of that vmware based VM you would install whatever you need, such as hyperv
<soLucien>
:D
giz|work has joined #ruby
<nickjj>
i know, i'm just saying vmware lets you run whatever the heck you want inside of it, where as virtualbox is really picky
<norc>
nickjj, see, that is how Inception was created. People playing around with virtual machines for far too long, and rendering whatever the graphics card then produced,
duckpupp1 has quit [Ping timeout: 272 seconds]
<soLucien>
hyper-v only runs on a bare-metal machine as far as i remember
mustmodify has left #ruby [#ruby]
SilverKe_ has quit [Quit: Halted.]
aegis3121 has quit [Ping timeout: 260 seconds]
<nickjj>
norc, yeah it's a shame too
<norc>
soLucien, and no, you actually can run hyper-v in some virtual machines.
agit0 has quit [Quit: zzzZZZ….]
sumobob has quit [Quit: WeeChat 1.5]
SCHAAP137 has joined #ruby
qasaur has joined #ruby
kies has joined #ruby
kareeoleez has quit [Remote host closed the connection]
<nickjj>
i am forced to use a graphical VM for 99% of my dev, in which i run docker apps and some old legacy vagrant based apps
<nickjj>
only way to use all the software i need without dual booting :D
djbkd has quit [Remote host closed the connection]
<soLucien>
hmm is there any debugger for Ruby that can hook into a running application ?
<norc>
nickjj, so a brilliant consultant had this idea of how we should replace our macbooks for windows notebooks. When I told him, that Ruby and Rails development necessitates a Linux or OSX environment, he actually dared to recommend that I could then set up a bare MS notebook running an Ubuntu VM all the time...
certainty has joined #ruby
<norc>
soLucien, nope
<norc>
Sadly not.
<soLucien>
so even though ruby is an interpreted language
<soLucien>
i cannot somehow stop the interpreter
<soLucien>
at an arbitrary point ?
Snowy has quit [Remote host closed the connection]
<norc>
soLucien, not from outside afaik.
<nickjj>
norc, that problem is what docker is trying to solve atm
darkxploit has joined #ruby
<norc>
soLucien, from inside the code you can use binding.pry / byebug
<soLucien>
that is cool. I believe i can install that
<soLucien>
into Vagrant as a plugin
antgel has quit [Read error: No route to host]
<soLucien>
vagrant can install gems .. i've installed puppet as a gem and it works cool
brendan- has quit [Remote host closed the connection]
<norc>
nickjj, docker is not a solution to a problem where none exists.
<nickjj>
but there is still other non-dev issues that prevent these solutions for working in the real world
<soLucien>
basically Vagrant is a ruby interpreter + minGW + gem dependencies
<norc>
nickjj, to first take away an operating system to say "it does not fit into our infrastructure" and then suddenly admit that you actually need your old operating system back - neither virtualization nor docker is the solution.
<norc>
Not replacing it is.
Es0teric has joined #ruby
<soLucien>
and it also has a vagrant plugin install command, which will install any gem from bundler (i believe that is the name)
kgrz has joined #ruby
wilsonc91 has joined #ruby
duckpuppy has quit [Read error: Connection reset by peer]
kareeoleez has joined #ruby
urbanmonk has joined #ruby
<nickjj>
norc, i wouldn't feel comfortable developing a large app on osx without some type of virtualization
duckpuppy has joined #ruby
certainty has quit [Ping timeout: 264 seconds]
Xiti has quit [Quit: Xiti]
<soLucien>
i agree with nickjj
<nickjj>
the idea of having to install things like postgres, redis, elasticsearch and a million other services on your bare OS is madness to me, especially since none of them are the same versions you'd be using in production
<soLucien>
unless it's an iAPP
<nickjj>
and then if you want someone else to use your project, they are expected to follow a 50 page doc setting it all up, or writing brittle scripts that only work against 1 OS
<norc>
nickjj, well luckily since we use oracle that bit is no longer an issue.
dcluna has quit [Ping timeout: 250 seconds]
<norc>
We dont feel like paying 5 figures just for having a local development database.
<norc>
;-)
cajone has quit [Remote host closed the connection]
<nickjj>
at least with a docker based solution, i can just run 1 command and it's all running, and it doesn't matter if i'm running windows, osx or linux
<nickjj>
and then i can move this solution i'm using in development straight to a staging server and then to production, without changing anything
<nickjj>
and it wouldn't even matter if i'm using debian, centos or other supported major distros in production
<soLucien>
you need to build the docker container
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
<soLucien>
for every environment
truenito has joined #ruby
cajone has joined #ruby
Dimik has joined #ruby
<nickjj>
no you don't
n_blownapart has joined #ruby
Yiota has quit [Read error: Connection reset by peer]
Yiota has joined #ruby
<nickjj>
if i build an image on my xubuntu dev box and push it somewhere, you could pull it down and run it as is on your windows box
kareeoleez has quit [Ping timeout: 260 seconds]
<soLucien>
how ?
Xiti has joined #ruby
<soLucien>
it does not make sense
<nickjj>
because inside the image, it's running whatever OS i defined as a base
kgrz has quit [Ping timeout: 276 seconds]
<nickjj>
lately the most popular base OS is alpine because it only has a 5mb footprint
jphase has joined #ruby
urbanmonk has quit [Read error: Connection reset by peer]
giz|work has quit [Ping timeout: 252 seconds]
nankyokusei has joined #ruby
troulouliou_div2 has quit [Quit: Leaving]
choke has joined #ruby
<toretore>
docker runs in a vm on windows soLucien, it's not actually "running on windows"
n_blownapart has quit [Ping timeout: 252 seconds]
AndroidLoverInSF has joined #ruby
dcluna has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
Yiota has quit [Ping timeout: 264 seconds]
rcvalle has joined #ruby
mikecmpbll has joined #ruby
craigp has joined #ruby
Yiota has joined #ruby
AndroidLoverInSF has quit [Client Quit]
shinnya has joined #ruby
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mtkd has quit [Ping timeout: 258 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
mtkd has joined #ruby
Gasher has quit [Quit: Leaving]
kareeoleez has joined #ruby
lxsameer has joined #ruby
<soLucien>
norc so if i want breakpoints to be triggered, i can install one of these 2 gems
flashpoint9 has quit [Remote host closed the connection]
<soLucien>
pry-byebug
<norc>
soLucien, or even a combination of them pry-byebug
<norc>
soLucien, when binding.pry is executed execution is automatically interrupted and you get an interactive shell.
<norc>
(or byebug=
<soLucien>
ok .. so there is no UI version of it
<norc>
soLucien, correct.
pepee has joined #ruby
<soLucien>
damn .. ruby seems very oldschool as a programming language
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<soLucien>
why do you like it so much? Seems like a pain to develop
Yiota_ has joined #ruby
<norc>
soLucien, just take a ruby file, but some basic code inside it and place a "binding.pry" or "byebug" (depending on what you want to try out) to get a feel for it.
SilverKey has quit [Client Quit]
eserror_ has joined #ruby
aegis3121 has joined #ruby
<norc>
soLucien, honestly it comes with the territory. Most languages that are prevalent in the unixoid world have a lot of text interfaces.
kareeoleez has quit [Ping timeout: 244 seconds]
<soLucien>
python has a ui when debugging
<soLucien>
any .net application can connect a debugger to it
sepp2k has quit [Quit: Leaving.]
<soLucien>
which shows all local vars
sepp2k has joined #ruby
Yiota has quit [Ping timeout: 250 seconds]
<norc>
soLucien, there is RubyMine if you insist on a graphical debugging tool, but I cannot tell you anything about it.
lxsameer has quit [Ping timeout: 258 seconds]
SilverKey has joined #ruby
<norc>
soLucien, and seeing how the entire linux world has been surviving just fine on gdb for the most part, it seems like debugging in a shell can't be that bad.
agit0 has joined #ruby
skade has joined #ruby
<soLucien>
norc well my issue with Vagrant
<soLucien>
is that it has no documentation
kareeole_ has quit [Ping timeout: 252 seconds]
David_H_Smith has quit [Ping timeout: 240 seconds]
<soLucien>
and most of the stuff it uses
<soLucien>
are key-value pairs
<soLucien>
most configurations
duoi has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
<soLucien>
i don't know the keys, so i can't get the values
agit0 has quit [Client Quit]
<norc>
Honestly if your Ruby application comes with no documentation, then that is not a good example to point out why Ruby debugging facilities might not be superb.
<soLucien>
which is why i want a visual debug tool. It shows the keys (variable names) so i can poke around
<soLucien>
and see what to use
giz|work has joined #ruby
aeterne has joined #ruby
aberen has quit [Ping timeout: 250 seconds]
<soLucien>
i will use it and i thank you for the advice
<norc>
soLucien, what do you mean by "keys" ?
<soLucien>
variable names
<soLucien>
for example
<soLucien>
sec
dtoast has joined #ruby
<soLucien>
env[:machine].provider_config.vmname
<soLucien>
env[:ui]
<soLucien>
this is how stuff is stored
<norc>
So what is the variable here?
<soLucien>
and i have no idea what env[:machine].* is
<norc>
soLucien, the problem you will have is also how ruby works.
<soLucien>
it's like a multi-layered hash map
<soLucien>
env[:machine].*.*.*.*
<soLucien>
that's a variable
<norc>
Well, luckily pry will let you interactively inspect it.
<norc>
no it is not.
<norc>
The only part in that expression that _could_ be a variable is env.
jrafanie has joined #ruby
<soLucien>
yes, env is a variable
<norc>
Everything else is just objects.
duoi has joined #ruby
<soLucien>
that contains multiple [] keys
antgel has joined #ruby
<soLucien>
then each of these key contains more objects that have a name
<soLucien>
which i don't know
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc>
*that respond to methods.
Silthias has joined #ruby
<soLucien>
yes methods
<soLucien>
also that
<norc>
soLucien, not also that.
<norc>
exactly that.
<soLucien>
ok, the method i copie
<soLucien>
copied is a get method
<soLucien>
which returns the vmname
David_H_Smith has joined #ruby
<norc>
soLucien, just pry into it.
yqt has quit [Ping timeout: 240 seconds]
Silthias2 has quit [Ping timeout: 240 seconds]
<soLucien>
yes, it will be more useful
<soLucien>
thanks a lot for this advice
harai has quit [Quit: WeeChat 1.5]
<soLucien>
got me going in the wrong direction
<soLucien>
right ******
harfangk has quit [Quit: harfangk]
<soLucien>
what i was doing was printing out them until i found something that made sense to use
<norc>
soLucien, but if you do this you will probably have to learn about how methods work in Ruby.
<soLucien>
i understood how they work ..
<norc>
soLucien, and if the underlying implementation relies on method_missing you have 100% absolutely lost
<norc>
(means you have to look at the source code then)
<soLucien>
i believe it does
<soLucien>
wait let me see
harai has joined #ruby
<soLucien>
it returns dummy_command
<soLucien>
i looked at the source code few months ago
<soLucien>
the rest was reading source code and trial-and-error
kareeoleez has quit [Ping timeout: 260 seconds]
<soLucien>
i've read the guy's book
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc>
soLucien, is this a work thing?
nando293921 has joined #ruby
chipotle has quit [Max SendQ exceeded]
<soLucien>
not helpful. the plugin he makes is extremely easy, then goes on saying "there are a lot of plugins around, look at them and see how stuff is done"
<soLucien>
norc not necessarily
<soLucien>
i do need it for work
<soLucien>
but once it is done, it's going to be OSS
<norc>
Evidently it cannot be important.
freerobby has quit [Quit: Leaving.]
<norc>
Otherwise the company would have dished out some money for professional support if you have been wasting months on this.
ekinmur has joined #ruby
<soLucien>
<-- student dev
<soLucien>
it was also my bachelor project
chipotle has joined #ruby
<norc>
soLucien, look. Do you have a specific question or problem?
<soLucien>
no , i will start using pry and ask then
<soLucien>
not here to annoy you
<soLucien>
thanks a lot !
<soLucien>
this was extremely helpful
Wolland has quit [Remote host closed the connection]
wilsonc91 has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
rkoller has joined #ruby
kareeoleez has joined #ruby
truenito has quit [Remote host closed the connection]
cajone has quit [Remote host closed the connection]
rodfersou|lunch is now known as rodfersou
dorje__ has joined #ruby
cajone has joined #ruby
Silthias1 has joined #ruby
grill_ has joined #ruby
grill_ has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jackjackdripper has joined #ruby
Silthias has quit [Ping timeout: 276 seconds]
madgen has quit [Ping timeout: 276 seconds]
arlek has quit [Ping timeout: 250 seconds]
dorje__ has quit [Quit: dorje__]
dorje_ has joined #ruby
multi_io has quit [Ping timeout: 250 seconds]
diegoaguilar has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
multi_io has joined #ruby
AndroidLoverInSF has joined #ruby
markfletcher has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
soLucien you and norc... I think the output that you two produced, that normally happens within a *full* day on #ruby :)
aberen has joined #ruby
saneax_AFK is now known as saneax
kareeole_ has joined #ruby
lxsameer has joined #ruby
freerobby has joined #ruby
n_blownapart has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
aberen has quit [Ping timeout: 250 seconds]
codecop has quit [Remote host closed the connection]
dionysus69 has joined #ruby
jglover has joined #ruby
kareeoleez has quit [Ping timeout: 258 seconds]
<jglover>
hey guys, I'm wondering what the fastest (complexity wise) way is to do a deep copy of a hash where a key is a string and a value is an array
<shevy>
since Dir['*'] or something similar should also work
<jglover>
eam: rats. nothing i can do in a coding interview
<eam>
jglover: you can write your own, of course
<Papierkorb>
jglover: fastest? I don't know, ask the benchmark library. But it's understandable and short I guess.
Elvin has joined #ruby
<eam>
similar to what Papierkorb just suggested, but I'd recurse through the entire object tree
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jglover>
Papierkorb: ah, this is a good solution
n_blownapart has quit [Ping timeout: 252 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
<eam>
h.dup copies the hash itself. h { v.dup } copies the immediate value, but you'd want to recurse to catch any deeper nesting
<apeiros>
complexity wise all should be the same
<whatelse>
hello, I'm trying to parse a very large log file that has very little structure. I need something that when I find a keyword on a line, I can traverse up the log or down the log looking for the next line containing a different keyword. I think the files will be too big to load every line into memory. I attempted to use each_with_index but haven't succeeded yet. Can someone suggest a better way to do this?
<apeiros>
since deep copy is necessarily a tree traversal one way or the other
<apeiros>
can't short-cut that
<eam>
such as if you have h[v] = [[[]]]
DTZUBDUB has joined #ruby
<apeiros>
whatelse: take a look at StringScanner
<eam>
jglover: if it's for an interview probably just implementing a deep-copy for Hash and Array ought to suffice
<jglover>
do you guys know the complexity of Marshal.load(Marshal.dump(obj)) ?
kirun has joined #ruby
<jglover>
can I make some smart argument about that
<jglover>
?
<Papierkorb>
jglover: If that's the question, I'd probably ask if only the inner array should be copied. If not, then I'd give something like I wrote.
lxsameer has quit [Ping timeout: 272 seconds]
kgrz has joined #ruby
stu314 has joined #ruby
<apeiros>
jglover: again, tree traversal
<eam>
jglover: Marshal should have the same big-O complexity, just slower constant time
<whatelse>
apeiros: okay, thanks.
<jglover>
the question is actually a really easy graph traversal question. I happen to need to update the hash every time I visit a node.
<jglover>
this is just an issue I was having, which I solved via the link I posted
aries_liuxueyang has quit [Quit: No Ping reply in 180 seconds.]
<whatelse>
apeiros: if I do a file.open(), f.each_with_index, when I hit a line of interest, should I be able to say, and also give me the line 2 after this line, or 1 line before?
<apeiros>
whatelse: no. but you can use seek, which is byte based. and then manually adjust for lines
<whatelse>
apeiros: thanks, ill check it out
tjohnson has quit [Quit: Connection closed for inactivity]
<apeiros>
i.e. don't use each_with_index, just use .gets or similar, and either cache the offset (File#pos or similar iirc)
aries_liuxueyang has joined #ruby
<apeiros>
or manually seek until you went back a full line
<apeiros>
another option: each_cons
<apeiros>
that'll need some manual adjustment for either the first or last lines
<ivanskie>
lets say i scan a barcode with "31P" prefix.. and i use case/when..
bitemyap1 is now known as bitemyapp
hobodave has joined #ruby
<shevy>
get rid of the ' there
<shevy>
and change the regex to match
<ivanskie>
omfg
<shevy>
\A to ^ probably should work
edwinvdg_ has joined #ruby
<ivanskie>
yah it works now.... lol
<shevy>
\o/
<ivanskie>
saved my hair sherry. thank you
<ivanskie>
shevy*
g3funk has joined #ruby
<ivanskie>
:)
<shevy>
it was a simple regex but for complicated ones, I can really recommend http://rubular.com/ - I hit on "permalink", link in to the permalink, and if I have to check a complex regex again at a later time, I can visit that permalink location and change it to match new criteria
jenrzzz has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
<ivanskie>
oh thats cool
<ivanskie>
i was testing it in rubular. and it worked, in rubular..
whathappens has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
skolman has joined #ruby
whathappens has joined #ruby
ekinmur has joined #ruby
aberen has joined #ruby
freerobby has quit [Ping timeout: 276 seconds]
certainty has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
shinnya has quit [Ping timeout: 244 seconds]
skolman has quit [Ping timeout: 240 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
freerobby has joined #ruby
A124 has quit [Read error: Connection reset by peer]
dorje_ has quit [Quit: dorje_]
whathappens has quit [Ping timeout: 264 seconds]
A124 has joined #ruby
aberen has quit [Ping timeout: 258 seconds]
kareeole_ is now known as kareeoleez
smathy has joined #ruby
ta__ has quit [Ping timeout: 264 seconds]
platzhirsch has quit [Ping timeout: 250 seconds]
araujo_ has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
NewbieRubyInPhil has quit [Quit: Page closed]
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
n_blownapart has joined #ruby
ayee has left #ruby [#ruby]
araujo has quit [Ping timeout: 276 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta__ has joined #ruby
dorje_ has joined #ruby
aberen has joined #ruby
blockchan has quit [Ping timeout: 240 seconds]
stu314 has left #ruby [#ruby]
Es0teric has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 264 seconds]
ta__ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
jrafanie has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 260 seconds]
urbanmonk has quit [Read error: Connection reset by peer]
nando293921 has quit [Read error: Connection reset by peer]
tvw has quit [Remote host closed the connection]
nando294021 has joined #ruby
lxsameer has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
akahn has joined #ruby
rvchangue has quit [Ping timeout: 246 seconds]
snockerton has joined #ruby
ocbtec has quit [Quit: leaving]
urbanmonk has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Sammichmaker has quit [Read error: Connection reset by peer]
ekinmur has joined #ruby
rvchangue has joined #ruby
allcentu1 has quit [Ping timeout: 276 seconds]
choke has joined #ruby
alfiemax has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
David_H_Smith has quit [Ping timeout: 252 seconds]
lxsameer has quit [Ping timeout: 260 seconds]
mdw_ has joined #ruby
Elvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Elvin has joined #ruby
mdw has quit [Ping timeout: 276 seconds]
David_H_Smith has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j0n3 has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
sandstrom has joined #ruby
mistermocha has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
centrx has quit [Quit: centrx]
mdw_ has quit [Quit: Sleeping Zzzzz]
rvchangue has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
Snowy has joined #ruby
kgrz has joined #ruby
centrx has joined #ruby
allcentu1 has joined #ruby
centrx has quit [Client Quit]
rvchangue has joined #ruby
m_antis has quit [Remote host closed the connection]
In3rti4 has joined #ruby
truenito has quit [Remote host closed the connection]
blackmesa has joined #ruby
truenito has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
mdw has joined #ruby
eljimmy has joined #ruby
kgrz has quit [Ping timeout: 258 seconds]
user2356 has joined #ruby
sp4rrow has joined #ruby
truenito has quit [Ping timeout: 252 seconds]
jancel has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snath has joined #ruby
skolman_ has joined #ruby
mikecmpbll has joined #ruby
blackgoat has joined #ruby
<snath>
I'm running into an issue with Net::SSH::Telnet. If the password doesn't work it then asks for a password from stdin. I would prefer that it just fail.
<snath>
suggestions?
duckpuppy has quit [Ping timeout: 276 seconds]
postmodern has joined #ruby
rodfersou has quit [Quit: leaving]
<norc>
snath, do the login manually?
alfiemax has joined #ruby
Vingador has quit [Ping timeout: 244 seconds]
<snath>
no, if the password doesn't work, I want the connection to fail, not ask for a password
symm- has joined #ruby
jancel has joined #ruby
<snath>
this script is going to try to log in to 251 servers
<jhass>
can't spot any reference to stdin in the code on a quick look
<jhass>
sure it's net-ssh-telnet's doing?
snockerton has left #ruby [#ruby]
Gasher has joined #ruby
<snath>
it's somewhere in that stack.
darkxploit has quit [Ping timeout: 276 seconds]
jphase has quit [Ping timeout: 276 seconds]
ur5us has joined #ruby
certainty has joined #ruby
freerobby has joined #ruby
allcentu1 has quit [Ping timeout: 272 seconds]
firstdayonthejob has joined #ruby
madgen has quit [Read error: Connection reset by peer]
maucar has quit [Quit: Leaving]
certainty has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
<snath>
it is happening in net-ssh
<jhass>
get a backtrace on ctrl-c?
<snath>
has to do with PromptMethods
n_blownapart has quit [Remote host closed the connection]
<jhass>
or ctrl-\
danostrowski has joined #ruby
synthroid has quit []
n_blownapart has joined #ruby
madgen has joined #ruby
blockchan has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
platzhirsch has joined #ruby
rodfersou has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
weemsledeux has joined #ruby
diegoaguilar has joined #ruby
blockchan has quit [Ping timeout: 258 seconds]
flashpoint9 has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 260 seconds]
<snath>
maybe I need to create the session with Net::SSH instead
Fredrich010 has joined #ruby
arooni has joined #ruby
norc has quit [Read error: Connection reset by peer]
jhack has joined #ruby
Madplatypus has joined #ruby
blockchan has joined #ruby
mistermocha has joined #ruby
jhack_ has joined #ruby
skweek has joined #ruby
dhollinger has joined #ruby
aberen has quit [Ping timeout: 276 seconds]
yqt has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
mdw: then have one where you too require the worker file and then do the clockwork stuff
jwhite_909 has joined #ruby
<jhass>
run both files
<mdw>
jhass thanks :-)
kirun has quit [Quit: Client exiting]
ChiefAlexander has joined #ruby
moei has quit [Quit: Leaving...]
sami has joined #ruby
workmad3 has joined #ruby
jhack has quit [Quit: jhack]
davedev24 has quit []
austinprog has joined #ruby
alfiemax has joined #ruby
certainty has joined #ruby
<austinprog>
Hello! I'm having a problem with RVM. So, I set RVM to 2.3.0 from JRUBY. This works fine until I close the terminal. When I open a new terminal, JRUBY is still default. Even though I set Ruby 2.3.0 to be default and current in RVM.
Snowy has quit [Quit: ragequit]
sami has quit [Remote host closed the connection]
bruce_lee has quit [Remote host closed the connection]
sami has joined #ruby
platzhirsch has quit [Ping timeout: 276 seconds]
yardenbar has joined #ruby
workmad3 has quit [Quit: Lost terminal]
certainty has quit [Ping timeout: 276 seconds]
davedev24 has joined #ruby
KINGSABRI has quit [Remote host closed the connection]
diasp has joined #ruby
yabbes has quit [Quit: iofwejios]
ramfjord has quit [Ping timeout: 260 seconds]
SCHAAP137 has quit [Quit: Leaving]
ledestin has joined #ruby
SCHAAP137 has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
skolman has joined #ruby
ldnunes has quit [Quit: Leaving]
bobbycvi has joined #ruby
user2356 has quit [Ping timeout: 250 seconds]
<havenwood>
austinprog: What do you get for `rvm current` after restarting your terminal?
skolman has quit [Ping timeout: 244 seconds]
<austinprog>
After restarting the terminal I get jruby-9.0.5.0
<austinprog>
havenwood ^
aberen has joined #ruby
ramortegui has quit [Remote host closed the connection]
jhack has joined #ruby
binaryplease has quit [Read error: Connection reset by peer]
Elvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nando294021 has quit [Ping timeout: 260 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
binaryplease has joined #ruby
nando293921 has joined #ruby
<havenwood>
austinprog: But `rvm list` shows another Ruby as default?
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
aberen has quit [Ping timeout: 244 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
hahuang61 has quit [Ping timeout: 240 seconds]
skolman has joined #ruby
jrafanie has quit [Client Quit]
neanderslob has joined #ruby
neanderslob_ has joined #ruby
neanderslob has quit [Disconnected by services]
<austinprog>
Havenwood This is what it says when I do RVM List I just set it as default a couple hours ago => jruby-9.0.5.0 [ x86_64 ] * ruby-2.3.0 [ x86_64 ]
<austinprog>
I could try restarting and seeing
swills has joined #ruby
sneakers has quit [Quit: back later]
dhollinger has quit [Quit: WeeChat 1.4]
neanderslob has joined #ruby
theunraveler has quit []
SilverKey has quit [Quit: Halted.]
<havenwood>
austinprog: Yeah, I'd turn it off and back on again first. Then see if it's still broken!
<austinprog>
Will try that. I mean its not a huge deal just annoying. Let me try that
austinprog has quit [Quit: Leaving]
whathappens has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whathapp_ has quit [Ping timeout: 246 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
whathappens has quit [Client Quit]
nando293921 has quit [Quit: Lost terminal]
choke has joined #ruby
blaxter has quit [Quit: KTHXBYE]
einarj has joined #ruby
danostrowski has joined #ruby
devbug has joined #ruby
einarj has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whathappens has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
diegoviola has joined #ruby
chouhoulis has quit [Remote host closed the connection]
Xentil has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
lockdown has joined #ruby
<whathappens>
I have a Time object (updated_at) and i just want a method that returns the time only, does anybody know what that is?
mdw has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
skweek has quit [Ping timeout: 276 seconds]
<havenwood>
whathappens: A String representation of the time of day only? Like `"1:30 PM"` or similar?