RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lucyinthesky has joined #ruby
craysiii has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
Asher has joined #ruby
<Porfa>
i'll try to explain this the best way i can… i was learning mechanize fill some forms, but i guess some of them are in .js and mecha can't handle that.. so someone was nice enough to redirect me to watir because it can run in console pretty lightly (i just have access to a linux terminal no X windows system) so i went on to install watir gems and the headless gem, the same way i installed every other gem in my life
tester__ has quit [Remote host closed the connection]
<Porfa>
and when i got to require the headless gem, it spits out errors, so I'm really clueless on what you are saying about showing the code.. there is no code at all at this point i guess, just trying to install a gem then process to learn how to use it
<Aeyrix>
Obfuscate:
<Aeyrix>
Ox
<Aeyrix>
fuck
<Aeyrix>
where's Ox
baweaver has quit [Remote host closed the connection]
<zenspider>
as I've already shown you... I can install and require headless just fine. I need you to show me how it doesn't. exactly.
Cache_Money has quit [Quit: Cache_Money]
n_blownapart has quit []
<Porfa>
explain me how i can do that, and i most certainly will!!
<BraddPitt>
Porfa paste the error/stack trace you're getting
<BraddPitt>
we need to see the error in order to help
Asher has quit [Client Quit]
jgt has quit [Ping timeout: 246 seconds]
bricker has quit [Ping timeout: 246 seconds]
_djbkd has joined #ruby
<zenspider>
we ALSO need the actual reproduction
<Porfa>
i give up
<BraddPitt>
?example
<ruboto>
Please provide us with an example of valid input for your problem, the output that you're getting, and the output that you were expecting.
<Porfa>
the output I'm expecting is 'True'
lucyinthesky has quit [Quit: Leaving]
stardiviner has joined #ruby
helpa has quit [Remote host closed the connection]
<Porfa>
but all i get is an error about not being able to load the gem, like i posted earlier on the gist
bricker has joined #ruby
<zenspider>
Porfa: well then it is easy. because you misspelled it.
<zenspider>
THIS is why I want to see the ACTUAL reproduction... and not some typo as you type it into IRC
<Porfa>
show me a place where i can post a screenshot and i will print screen this so you can see actually what i a seeing
<Porfa>
every gem i require that are on that folder i get a "true" as output, but when i require headless, it errors out
<Porfa>
why me
Juanchito has quit [Quit: Connection closed for inactivity]
Cache_Money has quit [Quit: Cache_Money]
<Porfa>
is it because of my wife shevy ?
linuxboy_ has quit [Remote host closed the connection]
safety_cut has quit [Remote host closed the connection]
northfurr has joined #ruby
linuxboytoo has joined #ruby
dopamean1 has quit [Ping timeout: 240 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
Xaitec has joined #ruby
_djbkd has quit [Remote host closed the connection]
oo_ has joined #ruby
siemprefresco has joined #ruby
pyon has quit [Quit: fix config]
Asher has quit [Quit: Leaving.]
pyon has joined #ruby
linuxboytoo has quit [Read error: No route to host]
ttttttrev has joined #ruby
<shevy>
she called you away from IRC the other day
mordocai has joined #ruby
<Porfa>
to eat dinner…!
maletor has joined #ruby
<Porfa>
i just want to rm -rf everything
dgutierrez1287 has quit [Remote host closed the connection]
graydot has joined #ruby
<Porfa>
it's like a drug you know
<Porfa>
when things stop making sense
<Porfa>
i just wanna rm -rf *
<jhass>
better get safe, dd if=/dev/zero of=/dev/sda
<Porfa>
haha
<Porfa>
or maybe i could just uninstall ruby and start learning python
<Porfa>
but the name python is so lame
<Porfa>
i could never learn something with that name
<Porfa>
maybe if we were in the 80's i could
_djbkd has joined #ruby
<Aeyrix>
dd if=/dev/urandom of=/dev/sda
<Aeyrix>
Developer do put a random cd key onto your hard drive.
<Porfa>
srslry, why couldn't mechanize just handle JS
yfeldblum has quit [Remote host closed the connection]
<Porfa>
now i need to learn a new gem, watir and i can't even do it because I'm stuck over ssh to a remote box where i do my work.
<Porfa>
so headless would be perfect.. BUT no.
<Porfa>
stupid gem doesnt load
<Porfa>
d
yfeldblum has joined #ruby
<Porfa>
fuck this I'm going back to being a plumber
lucyinthesky has quit [Quit: Leaving]
sevenseacat has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yqt has quit [Ping timeout: 240 seconds]
tomdalling has joined #ruby
bsdbofh has quit [Quit: bsdbofh]
<shevy>
lol
<shevy>
all because of javascript?
<baweaver>
it does have that effect
devoldmx has joined #ruby
jaycee has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor has quit [Quit: Computer has gone to sleep.]
<jhass>
not too dumb, people will always produce enough shit
<shevy>
beavers do know their things about that dam plumbing
<pipework>
shevy: If I had a choice between following in the footsteps of the kind of people who like javascript (me) and sharing a profession with a certain Italian guy by the name of Luigi, I'd go for the latter.
<pipework>
If my name ain't pipework
<pipework>
(it is)
<shevy>
now you are whaling on javascript again
<shevy>
I like things like jquery but I still can't stand javascript
<Porfa>
i love javascript, i couldn't live without that snowfall.js on geocities 1999
<shevy>
that was oldschool javascript
<shevy>
nowadays we have serious asm.js
<Porfa>
hahaha
<shevy>
things have become more complicated :(
tkuchiki has joined #ruby
<pipework>
shevy: Every time I whale I whale.
bsdbofh has joined #ruby
cmckee has joined #ruby
<pipework>
Porfa: That was literally the first thing I ever did for a client back in the day with JS.
<Porfa>
haahahahah
<shevy>
damn... almost 20 years ago
<Porfa>
see? told ya
<pipework>
Back then it wasn't snowfall.js it was copypaste this bullshit into your bullshit and ftp that bullshit on up.
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
I was so excited back when someone else used <font size=36> in a forum
RegulationD has joined #ruby
<nofxx>
shevy, the thing next to yr keyboard? how do you call
SuMo_D has quit [Remote host closed the connection]
<shevy>
oh god I already hate this mouse
dgutierrez1287 has joined #ruby
<shevy>
nofxx AK-47
mordocai has joined #ruby
<zenspider>
hrm... I'm trying to write a memsize function for a TypedData thingy... but the library I'm wrapping has actually made this _entirely_ opaque. The struct decl is in a C file and the header only typedefs a forward decl.
<debajit>
Simple question: When I'm defining a constant inside a class, I want to call a method (which returns the constant's value). How can I call this method when assigning the constant? See the code here https://gist.github.com/debajit/0aed54eea159714558dc
zenguy_pc has quit [Read error: Connection reset by peer]
Asara has joined #ruby
Asara has left #ruby [#ruby]
bruno- has joined #ruby
zenguy_pc has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
saddad has quit [Ping timeout: 272 seconds]
sdwrage has joined #ruby
bootstrappm has joined #ruby
clarkenciel has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
bootstrappm has left #ruby [#ruby]
dgutierrez1287 has quit [Remote host closed the connection]
northfurr has joined #ruby
arescorpio has joined #ruby
unreal has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cache_Money has joined #ruby
unreal_ has quit [Ping timeout: 244 seconds]
QKO has quit [Remote host closed the connection]
ghr has joined #ruby
Cache_Money has quit [Client Quit]
ebbflowgo has joined #ruby
Eiam has joined #ruby
<shevy>
replace self.class.file_path with Updater.file_path
<shevy>
and move "def self.file_path" on top of the file
QKO has joined #ruby
SimpleBIT has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mordocai has quit [Remote host closed the connection]
<shevy>
you'll get the value when you use: puts Updater.file_path at the end
<shevy>
don't think you can get the return value from within def initialize as you do there right now
ghr has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
TheNet has quit [Remote host closed the connection]
petricore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roolo has joined #ruby
mordocai has joined #ruby
SimpleBIT has quit []
ebbflowgo has left #ruby [#ruby]
michael_mbp has joined #ruby
mordocai has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 252 seconds]
Asher has joined #ruby
Asher has quit [Ping timeout: 256 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
mordocai has joined #ruby
sdwrage has joined #ruby
g3funk has joined #ruby
devoldmx has joined #ruby
bronson has quit [Remote host closed the connection]
Asher has joined #ruby
sdwrage has quit [Client Quit]
tmtwd has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
rbowlby has joined #ruby
ruby546 has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
bigredboots has joined #ruby
Asher has quit [Client Quit]
towski__ has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
cmckee has quit [Quit: cmckee]
rubie has joined #ruby
CpuID has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
cmckee has joined #ruby
Asher has joined #ruby
jenrzzz has joined #ruby
SuMo_D has joined #ruby
SuMo_D has quit [Remote host closed the connection]
SuMo_D has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
Mendenhall has quit [Ping timeout: 256 seconds]
jcoe has joined #ruby
allcentury has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
amystephen has quit [Quit: amystephen]
amystephen has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hinbody has quit [Quit: leaving]
ruby546 has quit [Ping timeout: 246 seconds]
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
iamninja has joined #ruby
centrx has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
amystephen has quit [Client Quit]
northfurr has joined #ruby
christiandsg has joined #ruby
saddad has joined #ruby
iamninja has quit [Ping timeout: 244 seconds]
j_mcnally has joined #ruby
diegoviola has joined #ruby
denisemccoy has joined #ruby
auzty has joined #ruby
petricore has joined #ruby
cmckee has quit [Quit: cmckee]
dopamean_ has joined #ruby
Asher has quit [Quit: Leaving.]
yatish27 has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
s2013 has joined #ruby
northfurr has quit [Quit: northfurr]
Feyn has joined #ruby
shinnya has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
bruno- is now known as Guest95478
TheNet has joined #ruby
Asher has joined #ruby
Asher is now known as Guest28672
Guest28672 has quit [Read error: Connection reset by peer]
cmckee has joined #ruby
d2dchat has joined #ruby
Guest95478 has quit [Ping timeout: 260 seconds]
rubie has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pauly_oc has joined #ruby
dorei has quit []
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j_mcnally has joined #ruby
agent_white has joined #ruby
pyon has quit [Read error: Connection reset by peer]
pyon has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
johnflux has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
Asher- has joined #ruby
linuxboytoo has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
joneshf-laptop has quit [Ping timeout: 256 seconds]
eiGHttt has joined #ruby
yeticry has joined #ruby
Asher- has quit [Client Quit]
ghr has joined #ruby
northfurr has joined #ruby
choke has joined #ruby
denisemccoy has quit []
_blizzy_ has joined #ruby
banjara has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
jyulliano has joined #ruby
molawson has joined #ruby
abara has joined #ruby
abara has left #ruby [#ruby]
sdwrage has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rushed has joined #ruby
_blizzy_ has joined #ruby
joneshf-laptop has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
graydot has quit [Quit: graydot]
mamercad has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
bigredboots has quit [Remote host closed the connection]
jenrzzz has joined #ruby
sdfgsdfg has joined #ruby
Xoro has quit [Quit: Leaving]
diegoviola has quit [Quit: WeeChat 1.3]
dr3w has quit [Ping timeout: 244 seconds]
bigredboots has joined #ruby
ecnalyr has joined #ruby
jonee has quit [Ping timeout: 246 seconds]
cmckee has quit [Quit: cmckee]
dr3w has joined #ruby
johnflux has joined #ruby
johnflux has joined #ruby
jesterfraud has joined #ruby
devoldmx has joined #ruby
ecnalyr has quit [Ping timeout: 245 seconds]
bronson has joined #ruby
EllisTAA has joined #ruby
Asher has joined #ruby
Torrieri has joined #ruby
baweaver has left #ruby [#ruby]
baweaver has joined #ruby
rubie has quit [Remote host closed the connection]
EllisTAA has quit [Client Quit]
<baweaver>
shevy: y u no in offtopic?
devoldmx has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 250 seconds]
<shevy>
baweaver they start to play unicode hangman upon my arrival :(
irctc144 has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
irctc144 has left #ruby [#ruby]
RegulationD has joined #ruby
jesterfraud has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<mozzarella>
damn
<mozzarella>
that's rough
irctc602 has joined #ruby
jhack has quit [Ping timeout: 264 seconds]
<irctc602>
hello im having trouble with cocoapods but i feel like its a ruby installation problem, this is what i get when i try to do any 'pod' command: -bash: /usr/local/bin/pod: /usr/local/opt/ruby/bin/ruby: bad interpreter: No such file or directory
bweston92 has quit [Read error: Connection reset by peer]
bweston92 has joined #ruby
<irctc602>
ive tried uninstalling cocoapods multiple times and reinstalling it and this same issue is occurring.
Seich has quit [Ping timeout: 246 seconds]
iateadonut has joined #ruby
Seich has joined #ruby
clarkenciel has quit [Remote host closed the connection]
jonee has joined #ruby
<baweaver>
try brew install ruby
christiandsg has joined #ruby
braincrash has joined #ruby
dr3w has quit [Ping timeout: 256 seconds]
linuxboytoo has joined #ruby
<irctc602>
thanks it works
arup_r has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has quit [Remote host closed the connection]
BTRE has quit [Ping timeout: 244 seconds]
dr3w has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
_djbkd has quit [Quit: My people need me...]
christiandsg has quit [Ping timeout: 265 seconds]
armyriad has joined #ruby
msnyon has quit [Ping timeout: 245 seconds]
irctc602 has quit [Ping timeout: 246 seconds]
Rinzlit1 has joined #ruby
Xiti has quit [Quit: Xiti]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
BTRE has joined #ruby
roolo has joined #ruby
j_mcnally has quit [Ping timeout: 256 seconds]
Authenticator has joined #ruby
j_mcnally has joined #ruby
mordocai has quit [Remote host closed the connection]
ghr has joined #ruby
roolo has quit [Ping timeout: 240 seconds]
Axy has joined #ruby
Mia has quit [Ping timeout: 255 seconds]
Limix has joined #ruby
RobertBirnie has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
stardiviner has quit [Ping timeout: 256 seconds]
dgutierrez1287 has joined #ruby
northfurr has quit [Quit: northfurr]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
oo_ has quit [Remote host closed the connection]
msnyon has joined #ruby
dgutierrez1287 has quit [Ping timeout: 244 seconds]
bestbrents__ has joined #ruby
dr3w has quit [Ping timeout: 240 seconds]
nickmink has joined #ruby
wookiehangover has quit [Ping timeout: 246 seconds]
El3ktra has quit [Ping timeout: 244 seconds]
jesterfraud has joined #ruby
emma_ has quit [Ping timeout: 246 seconds]
hahuang61 has joined #ruby
above has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 246 seconds]
bestbrents_ has quit [Ping timeout: 246 seconds]
crdpink has joined #ruby
segmond has quit [Ping timeout: 246 seconds]
crdpink2 has quit [Ping timeout: 246 seconds]
jordanm has quit [Ping timeout: 246 seconds]
ttttttrev has quit [Ping timeout: 246 seconds]
msnyon has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
linuxboytoo has quit [Remote host closed the connection]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
northfurr has joined #ruby
linuxboytoo has joined #ruby
wookiehangover has joined #ruby
catoblepa has joined #ruby
d2dchat has quit [Remote host closed the connection]
Rinzlit1 has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
amystephen has joined #ruby
psy_ has quit [Read error: No route to host]
linuxboytoo has quit [Ping timeout: 240 seconds]
tlolczyk has joined #ruby
psy_ has joined #ruby
rubie has joined #ruby
TheNet has quit [Remote host closed the connection]
segmond has joined #ruby
amystephen has quit [Ping timeout: 250 seconds]
<tlolczyk>
I've got a URI uri, and a link relative to that URI as a string call it s. How can I convert s to a URI. I find sites which tell you how to merge a base url as string with a relative string to get an absolute path. But not a URI to a string to gveet a URI.
El3ktra has joined #ruby
El3ktra has quit [Changing host]
El3ktra has joined #ruby
n_blownapart has joined #ruby
jcoe has quit [Quit: Quitting...]
_djbkd has joined #ruby
hyy1 has joined #ruby
sdfgsdfg has quit [Ping timeout: 246 seconds]
cjbottaro has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamninja has joined #ruby
zelan has joined #ruby
rubie has quit [Remote host closed the connection]
johnflux has quit [Ping timeout: 255 seconds]
iamninja has quit [Ping timeout: 244 seconds]
zelan has quit [Client Quit]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
TheNet has joined #ruby
bruno- has joined #ruby
jonee has quit [Ping timeout: 256 seconds]
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
<zenspider>
rawr
pawnbox has quit [Remote host closed the connection]
minmax has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
minmax has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
molawson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nux443 has joined #ruby
wprice is now known as wprice_zzz
TheNet has quit [Remote host closed the connection]
jaredrhine_ has quit [Quit: No Ping reply in 180 seconds.]
<nofxx>
tlolczyk, URI.parse ? provide an example please
ERIK_ has joined #ruby
astrobun_ has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roxtrongo has joined #ruby
jesterfraud has joined #ruby
<zenspider>
>> require "uri"; u = URI.parse "http://example.com/"; u + "/blah"
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darkf has quit [Ping timeout: 244 seconds]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
nux443 has joined #ruby
dhjondoh has joined #ruby
rbowlby has joined #ruby
tubuliferous_ has joined #ruby
davedev2_ has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Excess Flood]
banjara has quit [Quit: Leaving.]
roolo has joined #ruby
KensoDev has joined #ruby
_djbkd has quit [Quit: My people need me...]
davedev24 has joined #ruby
n_blownapart has quit [Quit: Leaving]
solocshaw has joined #ruby
michael_mbp has joined #ruby
yardenbar has joined #ruby
roolo has quit [Ping timeout: 246 seconds]
leat has quit [Remote host closed the connection]
saddad has quit [Ping timeout: 244 seconds]
leat has joined #ruby
bsdbofh has quit [Quit: bsdbofh]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdfgsdfg has joined #ruby
SCHAAP137 has joined #ruby
Torrieri has quit [Quit: Be back later ...]
jaycee has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TvL2386 has joined #ruby
jenrzzz has joined #ruby
jaycee has quit [Client Quit]
riotjones has joined #ruby
keen___________5 has joined #ruby
n_blownapart has joined #ruby
keen___________4 has quit [Ping timeout: 265 seconds]
<zenspider>
lines and rectangles and beziers, oh my
<zenspider>
just need fonts, which are proving a bit segfaulty
rushed has quit [Quit: rushed]
pawnbox has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
rushed has joined #ruby
symm- has joined #ruby
<baweaver>
zenspider: Tincup Whisky makes a decent Old Fashioned with some good Orange Bitters
yatish27 has joined #ruby
wookiehangover has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
nux443 has quit [Ping timeout: 260 seconds]
yatish27 has quit [Ping timeout: 240 seconds]
<zenspider>
that was truly random...
<sevenseacat>
but tasty by the sounds of it.
<zenspider>
good to know? I guess? not that I can drink those
eightfold has joined #ruby
RobertBirnie has joined #ruby
<baweaver>
thoughtline: zenspider mentioned drinking scotch, scotch is whisky, I'm drinking whisky now, it's tasty, I think to share musing.
pawnbox_ has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
SuMo_D has quit [Quit: Off into this... Real world place...]
<zenspider>
not sure when I mentioned drinking scotch (not that I doubt that I did)... it's the old fashioned part I can't have
<zenspider>
and if I didn't eat all of my calories in one meal, I'd probably be having bourbon right now :)
<baweaver>
you were also more than slightly tipsy.
maletor has joined #ruby
pietr0 has quit [Quit: pietr0]
<zenspider>
don't doubt that either. on my diet I'm an extreme lightweight
wookiehangover has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
eGGsha has joined #ruby
tmtwd has joined #ruby
Limix has quit [Quit: Limix]
lkba has joined #ruby
<sevenseacat>
oh yes
TheNet has quit [Quit: Leaving...]
SCHAAP137 has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 244 seconds]
mamercad has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
eiGHttt has quit [Remote host closed the connection]
howdoi has joined #ruby
eiGHttt has joined #ruby
eiGHttt has quit [Remote host closed the connection]
ocx has joined #ruby
HANJIN has joined #ruby
banjara has joined #ruby
DenSchub has left #ruby ["Leaving."]
catoblepa has quit [Ping timeout: 255 seconds]
ta has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
z1haze has joined #ruby
cynosures has joined #ruby
<cynosures>
what's the difference between `name: to_value` and `:name => to_vlaue` ?
<zenspider>
your spelling for one
<zenspider>
syntax, normally
<z1haze>
I am trying to use mysql 2 to connect to my mysql server and copy mysql database from xenforo into postgres databae for discourse but i keep getting access denied for user .. this is all inside a docker containeir
<z1haze>
Ive installed the mysql cli and remotely connected to the server with the same credentials so its not the credentials or ip restrcitions..
<z1haze>
there's something wrong with the lib or similar.
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider>
don't blame your tools
<z1haze>
I dont know what else to blame, we've been troubleshooting this for hours
<z1haze>
we can connect with the cli just fine.. cant connect with ruby mysql2, what else should i blame
<ocx>
paste.ubuntu.com/12203807 i am not able to install this gem, using rvm 2.2.3 ruby
<z1haze>
this migration script possibly
<zenspider>
thousands of ppl using that lib every day... just sayin'
<z1haze>
i get it
<z1haze>
care to help then
<zenspider>
ocx: try urling again
ranchodev has joined #ruby
darkf_ is now known as darkf
<zenspider>
z1haze: well... nobody in here is psychic (yet). can't help you without seeing some data
<z1haze>
what is it youd need?
radgeRayden has quit [Ping timeout: 246 seconds]
<z1haze>
the error messages give zero information as to what fails
<z1haze>
Acesss denied for user blah blah @ blah blah (using password: YES) (Mysql2::Error)
<z1haze>
such abig help
<sevenseacat>
thats an error directly from MySQL - nothing to do with the library
iamninja has joined #ruby
<z1haze>
so how can i login with the regular mysql cli
<z1haze>
but not this
<z1haze>
i suppose it could be this script
ghr has joined #ruby
<sevenseacat>
wrong password? wrong settings? we dont know
<sevenseacat>
we havent seen how youre trying to connect
<z1haze>
its not he wrong credentials
<zenspider>
backtrace would be a start. reproducing code would help
<z1haze>
thats been checked over and over
<zenspider>
you're connecting via cli locally or remotely? etc. again, we aren't psychic
<z1haze>
remotely
bzb has joined #ruby
<z1haze>
over tcp
<z1haze>
the mysql server is on the parent machine anyways
bzb has quit [Remote host closed the connection]
<z1haze>
but i couldnt connect locally because the stpuid thing miss matches the mysql.sock files .. cause the container is debian and the server is rhel
<z1haze>
but connecting out tcp solves that part
<z1haze>
here's a piece of it
<z1haze>
this file is larger so i dont want to give u a bunch of bs
<Ox0dea>
?gist z1haze
<ruboto>
z1haze, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<Ox0dea>
z1haze: Perhaps you're being pranked with a zero-width space or some such.
<zenspider>
that error message is coming from the server, not the client.
<z1haze>
im showing you im connecting in the same container
<z1haze>
perfectly fine
<z1haze>
right after the erro from the script
<z1haze>
its not the damn credentials.
baweaver has quit [Remote host closed the connection]
<zenspider>
for someone who needs help, you're awfully snippy and unappreciative. rude even.
<sevenseacat>
except in one place you're connecting via IP, and in another via a hostname
<z1haze>
Ox0dea, what is this command you sent?
HANJIN has quit [Quit: HANJIN]
<z1haze>
dude ive been at this for like 10 hours
<z1haze>
im sorry
oo_ has quit [Remote host closed the connection]
<zenspider>
here I am pouring over C code for a database I don't even use
<TvL2386>
nonamepvp.com has address 192.99.23.109
<z1haze>
i said im sorry
<TvL2386>
167.114.145.107 != 192.99.23.109
<z1haze>
im just ... very irritable
<zenspider>
TvL2386: there's a billion of them. god, maybe?
<z1haze>
yes it is
<z1haze>
its the same box
<z1haze>
they are just failovers
<sevenseacat>
so?
<TvL2386>
zenspider, exactly
<TvL2386>
zenguy_pc, tyvm!
<sevenseacat>
configure your things both the same way
<sevenseacat>
given permissions in mysql are very dependent on host
<z1haze>
i have it granted on wild card for this.
<z1haze>
just to be sure
<z1haze>
i just showed you that i logged in fine
<sevenseacat>
configure your things both the same way.
<sevenseacat>
yes, with a hostname, not an IP
<zenspider>
z1haze: please go look at the server logs to see what it says about connection attempts
<z1haze>
where woudl those be? on centos?
<z1haze>
ill find , hang on
<zenspider>
and do what Ox0dea said
<Aeyrix>
/var/log/mysql/mysql.log
<Aeyrix>
or, for your app, it'll be in the logs folder you set up
<zenspider>
(which, to answer your question, will show the actual call to the connection)
<TvL2386>
z1haze, you didn't prove it works. The hostname resolves to a different IP then the ip shown in the connection error...
<z1haze>
lol
<z1haze>
ok TvL2386 i will in a second after i pull these logs
<z1haze>
which ip did you want me to use?
<sevenseacat>
the one you're trying to connect with
<TvL2386>
I assume both work, so try both in your ruby and both with `mysql`
norayr has joined #ruby
<TvL2386>
*assuming both _should_ work
norayr is now known as noch
banjara has quit [Quit: Leaving.]
<noch>
hey people. i have upgraded mariadb, and now i need to recompile ruby module. how do i do that?
sdwrage has joined #ruby
<noch>
ruby mysql module.
stan has joined #ruby
<zenspider>
noch: no clue what you're talking about. that's rather vague
<zenspider>
maybe ask in #mariadb ?
<z1haze>
also there's no crap in the log
<Aeyrix>
noch: wtf why
<z1haze>
nothing relating to the failed connection
<zenspider>
z1haze: that could be a log level thing
<z1haze>
no there is stuff in there..
<z1haze>
just not for that
dgutierrez1287 has joined #ruby
<zenspider>
still could be a log level thing
<z1haze>
maybe so, but i dont know how to set
<zenspider>
doesn't matter. try the cmdline w/ the 2 ips
<z1haze>
i will do it now
<noch>
ok i have upgraded my mariadb from versian 5.5 to version 10. I have a ruby software running from user, which does not start because it says 'dependencies.rb:274:in `require': Incorrect MySQL client library version! This gem was compiled for 5.5.37-MariaDB but the client library is 6.1.6. (RuntimeError)'
oo_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
doublemalt_ has quit [Quit: Leaving]
<zenspider>
noch: sounds like you need to reinstall the mysql client gem you're using?
<noch>
yep! how?
<noch>
(:
<noch>
it's not a system installation. it's not installed via package manager.
<Aeyrix>
!bingo
<Aeyrix>
wait
<Aeyrix>
wrong channel
<sevenseacat>
:D
<Aeyrix>
:^(
<noch>
i don't know how to list existing ruby modules and how to install/reinstall one.
<z1haze>
worked with both
dgutierrez1287 has quit [Ping timeout: 246 seconds]
<noch>
shell i run gem install mysql? or gem install mysql2 ? how do i know which module i already have?
<TvL2386>
noch: gem list ^mysql
leat has quit [Remote host closed the connection]
<z1haze>
i gotta get to bed though i can barely stay up
<noch>
ok it says mysql2.
<noch>
shell i do gem install mysql2 ?
leat has joined #ruby
<TvL2386>
noch, yes
<noch>
fetching, building. thank you.
<TvL2386>
yw
<Ox0dea>
TvL2386: Could you say a little more about the gem you're looking for?
<tlolczyk>
I have a bunch of strings which end in numbers. I would like to replace the numbers with fixed width versions.
<TvL2386>
Ox0dea, "god" was what I meant, but I'm not sure it is what I seek
<Ox0dea>
Ha! That would've been my guess.
<noch>
again Incorrect MySQL client library version! This gem was compiled for 5.5.37-MariaDB but the client library is 6.1.6. (RuntimeError)
n_blownapart has quit [Quit: Leaving]
workmad3 has joined #ruby
<noch>
may it be i have to enter some specific directory and only then run it?
<tlolczyk>
The hard part is doing it in place.
<Ox0dea>
tlolczyk: sub!(/\d+/) { |n| '%05d' % n }
<Ox0dea>
/\d+\z/, of course.
yfeldblum has quit [Ping timeout: 246 seconds]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
skade has quit [Quit: Computer has gone to sleep.]
towski_ has joined #ruby
<TvL2386>
Ox0dea, I'm looking for some thing that can manage process start-up and tear-down order... Also, one of the processes can be master/slave affecting the other programs...
tkuchiki has joined #ruby
<Ox0dea>
TvL2386: And you're sure this was a gem?
<Ox0dea>
I suppose there are probably thin wrappers around Raft and/or Kubernetes out there.
<TvL2386>
Ox0dea, no no... I was just looking for `god`, to check if it would fit my needs
<Ox0dea>
Oh, right.
stardiviner has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
<Ox0dea>
TvL2386: Are you using systemd?
<TvL2386>
Ox0dea, yeah I do
<TvL2386>
Ox0dea, Centos 7
* tlolczyk
shudders
<TvL2386>
Ox0dea, and yes, I got it to work there, but:
<TvL2386>
Ox0dea, process K goes from Master to Slave and it interacts then with the other 2 processes to enable/disable something there on failover
<noch>
shell i run bin/bundle in my software directory?
<TvL2386>
Ox0dea, if the 2 other processes restart for whatever reason, they have lost their state that process K triggered there....
<TvL2386>
Ox0dea, I know it's pretty abstract and I'm trying to find a robust solution to this case and I thought that `god` might help me out here
<Ox0dea>
TvL2386: So... Paxos for processes instead of processors?
<zenspider>
should count how many iterations it takes
<Ox0dea>
4.
<Ox0dea>
It's random.
<zenspider>
always 4?
<Ox0dea>
!xkcd 221
<zenspider>
if only all random things finished in 4
joonty has joined #ruby
yatish27 has quit [Ping timeout: 245 seconds]
roolo has quit [Remote host closed the connection]
pentanol has quit [Quit: leaving]
jyulliano has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
oo_ has joined #ruby
stnly has joined #ruby
neanderslob has quit [Ping timeout: 265 seconds]
neanderslob_ has joined #ruby
bluOxigen has joined #ruby
postmodern has quit [Quit: Leaving]
xhosae has joined #ruby
Hounddog has joined #ruby
Pumukel has joined #ruby
symm- has joined #ruby
duncannz has joined #ruby
petricore has joined #ruby
leat has quit [Remote host closed the connection]
petricore has quit [Client Quit]
leat has joined #ruby
mamercad has joined #ruby
marr has joined #ruby
anisha has joined #ruby
Eiam has joined #ruby
JaRe_Ax has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fedexo has joined #ruby
ReK2 has joined #ruby
UtkarshRay has joined #ruby
chussenot has joined #ruby
leat has quit [Remote host closed the connection]
Mendenhall has quit [Ping timeout: 250 seconds]
leat has joined #ruby
renderfu_ has quit [Remote host closed the connection]
AlexAltea has joined #ruby
djbkd_ has joined #ruby
r0x0rZ has joined #ruby
mikecmpbll has joined #ruby
ferhaty has quit []
krisquigley has joined #ruby
Guest32 has joined #ruby
blackmesa has joined #ruby
mutuma has joined #ruby
mutuma has left #ruby [#ruby]
Guest32 has left #ruby [#ruby]
Guest32 has joined #ruby
jgt has joined #ruby
charliesome has joined #ruby
leat has quit [Remote host closed the connection]
esposito has joined #ruby
charliesome has quit [Client Quit]
leat has joined #ruby
fedexo has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
rdark has joined #ruby
esposito has quit [Client Quit]
ohaibbq has quit [Quit: Leaving...]
Pumukel has quit [Ping timeout: 245 seconds]
<awk>
hi, i'm a really ruby noob.. i've tried all possible syntax to send mail to multple recipients .. I keep getting illegal address from the SMTP server, i'm using sendmail="address@blah.com; address2@blah.com"
agent_white has quit [Read error: Connection reset by peer]
michael_mbp has quit [Excess Flood]
<adaedra>
?context awk
<ruboto>
awk, Please add more context to your question, what are you doing, why are you doing it, which libraries are involved. Post some code to gist if it clarifies your question.
sdfgsdfg has quit [Remote host closed the connection]
joonty has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
leat has quit [Remote host closed the connection]
michael_mbp has joined #ruby
roolo has joined #ruby
leat has joined #ruby
codecop has joined #ruby
joonty has joined #ruby
Zort0n has joined #ruby
Pumukel has joined #ruby
christiandsg has joined #ruby
roolo has quit [Ping timeout: 260 seconds]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
tubuliferous_ has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
<atmosx>
adaedra: what does awk stand for?
<atmosx>
ah
<atmosx>
it's the nickname
<adaedra>
good morning atmosx
<atmosx>
awk: what gem do you use, is that rails mailer or something else?
Azure has quit [Remote host closed the connection]
<awk>
All i'm trying to do is send to two recipients, nothing else.. each way I try the SMTP tells me its illegal, as it's "grouping them" together..
oo_ has joined #ruby
techsethi has joined #ruby
senayar has joined #ruby
djbkd_ has quit []
eGGsha is now known as eGGshke
workmad3 has joined #ruby
leafybas_ has quit [Remote host closed the connection]
arup_r has quit []
arup_r has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
platzhirsch has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
rbowlby has quit [Remote host closed the connection]
sdfgsdfg has joined #ruby
dumdedum has joined #ruby
subshad has joined #ruby
Zai00 has joined #ruby
<yorickpeterse>
morning
subshad has left #ruby [#ruby]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx>
awk: try passing an array
<awk>
to the variable supportMail ?
<awk>
or the To:
<atmosx>
anywhere, the way this method is... give me 2 minutes.
Zai00 has quit [Client Quit]
charliesome has joined #ruby
platzhirsch has quit [Ping timeout: 260 seconds]
sonOfRa has quit [Remote host closed the connection]
eGGshke is now known as eGGsha
Zai00 has joined #ruby
<awk>
atmosx: I have tried to parse and array I get this warning: Illegal address syntax from localhost[127.0.0.1] in RCPT command: <address1, address2> from the mail log
sonOfRa has joined #ruby
astrobun_ has quit [Remote host closed the connection]
<atmosx>
awk: so if you use ["mail@address1", "mail@address2"] you get an error?
<Ox0dea>
"Pahole" apparently means "fern", but the pun is still lost on me.
Phoop has quit []
<zenspider>
my god. ##c is a total shit show. I thought #perl was arrogantly distasteful. I was wrong.
bb010g has quit [Quit: Connection closed for inactivity]
<zenspider>
for as much shit as we get for having and upholding rules in order to be inclusive... it makes a world of difference
ndrei has quit [Ping timeout: 256 seconds]
<zenspider>
#emacs is kinda unhelpful, but mostly because it's a cyclone of chaos in there w/ a bunch of people just chatting. periodically you get help
<zenspider>
but ##c is simply abusive
<zenspider>
I think I need a shower
ndrei has joined #ruby
astrobun_ has quit [Remote host closed the connection]
<Ox0dea>
You must've met Zhivago.
<zenspider>
that's the one
<zenspider>
and associated clique
yfeldblum has joined #ruby
mamercad has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
devoldmx has joined #ruby
eGGshke is now known as eGGsha
renderful has joined #ruby
ghr has quit [Read error: Connection reset by peer]
symm- has quit [Quit: Leaving...]
garethrees has joined #ruby
sevenseacat has quit [Quit: .]
leat has quit [Remote host closed the connection]
araujo has joined #ruby
leat has joined #ruby
GriffinHeart has joined #ruby
khebbie has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
devoldmx has quit [Ping timeout: 264 seconds]
renderful has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 244 seconds]
roolo has joined #ruby
pandaant has joined #ruby
ferhaty has joined #ruby
bruno- has joined #ruby
jeadre has quit [Remote host closed the connection]
leat has quit [Remote host closed the connection]
leat has joined #ruby
stamina has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
jeadre has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
decoponio has quit [Read error: Connection reset by peer]
c0m0 has joined #ruby
decoponio has joined #ruby
rmrrn has quit [Ping timeout: 240 seconds]
borkdude has quit [Ping timeout: 240 seconds]
benlovell has joined #ruby
varesa has quit [Ping timeout: 260 seconds]
ChoiKyuSang has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
ChoiKyuSang is now known as Tempesta
borkdude has joined #ruby
varesa has joined #ruby
rmrrn has joined #ruby
Macaveli has joined #ruby
Feyn has joined #ruby
leat has quit [Remote host closed the connection]
Rickmasta has joined #ruby
leat has joined #ruby
pyon has quit [Quit: Stupid Emacs.]
chipotle has joined #ruby
Motoservo has quit [Remote host closed the connection]
khebbie has joined #ruby
pyon has joined #ruby
workmad3 has joined #ruby
Helheim has quit [Ping timeout: 246 seconds]
mandarinkin has joined #ruby
Rickmasta has quit [Ping timeout: 260 seconds]
christiandsg has joined #ruby
mhib has joined #ruby
glen has joined #ruby
jimms has quit []
<glen>
hi, does ruby have shell's equivalent of stripping leading spaces: <<-EOF. i.e this script does not strip: http://sprunge.us/JYgY
<zenspider>
glen: you mean does the heredoc itself strip? no.
<zenspider>
but you can call strip on it or do whatever manipulation you'd like
<zenspider>
eg: s = <<-EOF.strip
leat has quit [Remote host closed the connection]
GnuYawk has quit [Ping timeout: 255 seconds]
skade has quit [Quit: Computer has gone to sleep.]
leat has joined #ruby
<jhass>
I think the term to google was "ruby unindenting heredoc" for some nice snippets
<apeiros>
I mean, IF you use tabs, you do it because people can set it to any width they enjoy
<apeiros>
but like that? *grah*
<zenspider>
any project crazy enough that they have to ship with their own emacs cc-mode style... not good
<zenspider>
I gave up trying to change that one
<zenspider>
pick your battles
<apeiros>
yeah
<apeiros>
I have enough insanity sources in my life already :D
leat has quit [Remote host closed the connection]
eGGshke is now known as eGGsha
leat has joined #ruby
acke has joined #ruby
northfurr has joined #ruby
Zai00 has joined #ruby
r4sp has left #ruby [#ruby]
GriffinHeart has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
revoohc has joined #ruby
janno has quit [Quit: Lost terminal]
Zai00 has quit [Ping timeout: 245 seconds]
benlovell has quit [Ping timeout: 244 seconds]
GnuYawk has joined #ruby
Eiam has joined #ruby
jgt has quit [Ping timeout: 272 seconds]
molawson has joined #ruby
leat has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
molawson has quit [Ping timeout: 256 seconds]
manila90 has joined #ruby
dhjondoh has quit [Ping timeout: 244 seconds]
Feyn has quit [Ping timeout: 272 seconds]
yatish27 has joined #ruby
chipotle has quit [Quit: cheerio]
GriffinHeart has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
krz has joined #ruby
Ropeney has joined #ruby
leat has joined #ruby
lkba has joined #ruby
yatish27 has quit [Ping timeout: 246 seconds]
anandubajith has quit [Quit: Connection closed for inactivity]
vali has joined #ruby
<glen>
zenspider: eof.strip would strip only leading trailing, not on each line afaik
chipotle has joined #ruby
<jhass>
glen: good, now also read all the other answers
leat has quit [Remote host closed the connection]
<glen>
jes :)
<zenspider>
glen: have you paid attention to anything that was said in the last 50 minutes?
<jhass>
obviously not
<glen>
just returned from (lunch)
<glen>
i can still comment in order what was said...
leat has joined #ruby
* zenspider
sighs
<jhass>
yeah, after reading
<glen>
but really i wanted to know if there's in-core syntax for that
<zenspider>
read more. type less.
johnflux has quit [Quit: Konversation terminated!]
banister has joined #ruby
<glen>
seems not. everybody suggests some subst solution
bronson has joined #ruby
<zenspider>
seems not... also made obvious by the very first response you got.
<glen>
i wonder why, because <<-FOO looks like one that should, in shell script <<EOF means no indent strip, <<'EOF' same but no variable interpolation, so <<-EOF strips, and <<EOF not
<glen>
acutally don't know if <<EOF and <<"EOF" have difference in shell. afaik not
<glen>
or did that in purpose, to make ruby different :P
<glen>
ok, -EOF allows closing EOF being indented. so there's difference in ruby with <<EOF and <<-EOF
northfurr has quit [Quit: northfurr]
bronson has quit [Ping timeout: 244 seconds]
<glen>
so. i'll go with this: puts <<-EOF.gsub(/^\s+/, '')
dhjondoh has joined #ruby
auzty has quit [Quit: Leaving]
vali has left #ruby [#ruby]
vali has joined #ruby
<vali>
hi
blackmesa has joined #ruby
dhjondoh has quit [Ping timeout: 246 seconds]
skade has joined #ruby
<vali>
I have a problem regarding an output (cassandra) that I'm using in logstash. The problem is related to a timestamp that I'm trying to insert into cassandra. More exactly stuff like 2015-08-27T13:03:50.400Z fails to be parsed as a timestamp and gets set to "1970-01-01 00:00:00"
<vali>
if I look at the code, the timestamp is parsed with Cassandra::Types::Timestamp.new(Time::parse("1970-01-01 00:00:00"))
<vali>
and ideas on what I could do to make it work as expected ?
chipotle has quit [Quit: cheerio]
<vali>
if I do a manual insert into cassandra, it works as expected
tkuchiki has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 240 seconds]
riotjones has quit [Read error: No route to host]
riotjones has joined #ruby
<zenspider>
iso8604 should parse great. more importantly, don't use Time.parse if you know the format as it is terribly terribly slow
<jhass>
my point is trying your first best guess is what we programmers do all the time because it usually saves time for everybody involved to just quickly try out something ;)
glenn_ has quit [Quit: Konversation terminated!]
leat has quit [Remote host closed the connection]
dimasg has joined #ruby
jeadre has quit [Remote host closed the connection]
<vali>
jhass: hmmm, ok I have compiled the gem and the code is running but everything gets set to the default value ...I'll make a gist...maybe you can point out what am I doing wrong..
<apeiros>
codecodecode123: in `foo bar do …` the do/end block belongs to foo, not bar
<apeiros>
so `puts str.gsub() do` the block belongs to puts, not gsub.
<codecodecode123>
ohhh
<jhass>
?gist_usage vali
<ruboto>
vali, To properly use gist, please enable syntax highlighting, either by choosing the language manually or by entering a proper filename. If you post multiple things, separate them into multiple files. If you have a Github account, please update your gist with new information instead of posting a new one.
<vali>
ok
<codecodecode123>
let me try that
<codecodecode123>
thanks apeiros, it worked
<codecodecode123>
can you help me with a few othe bugs too?
<codecodecode123>
*other
<jhass>
vali: now so I don't have to second guess 300loc of maybe subtle mistakes calling klocs of library code I'm unfamiliar with abstracting systems I'm unfamiliar with, please describe the behavior you expect, you see, how you produce it and your best guess as to where the bug is
krz has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<vali>
I'll explain the issue and expected behavior in a min
<jhass>
" rescue Exception => e" though I can say already that is a really bad idea
<codecodecode123>
apeiros: can you help me with other bugs too?
leat has quit [Remote host closed the connection]
<vali>
The issue is that the timestamp that I'm sending is not working for some reason and logstash/ruby defaults to the default value that I've set.
<jhass>
too vague
stardiviner has joined #ruby
leat has joined #ruby
<jhass>
we need to determine your assumptions about your code and how to verify them
<vali>
The exact error thrown from ruby is the following -> Cannot convert `timestamps` value (`2015-08-27 13:40:09 UTC`) to `timestamp` type, set to `2015-01-01 01:01:01 UTC`", :exception=>#<TypeError: can't convert Time into String>
<jhass>
now that's more interesting isn't it? we already have a Time
codecodecode123 has quit [Quit: Page closed]
<jhass>
so some String -> Time transformation already happened
<jhass>
where's the backtrace pointing at?
<vali>
seems like it
<vali>
jhass: I have updated the gist
roolo has joined #ruby
benlovell has joined #ruby
<vali>
206:in `convert2cassandra_format!'"
<vali>
I think thats the line
<vali>
or line=>"267", :method=>"convert2cassandra_format!"}
<vali>
not sure..
<jhass>
looks like Cassandra::Types::Timestamp.new expects a string, not a Time?
<jhass>
looks like that's supposed to turn a String into a Time in the first place?
<jhass>
that is do the right conversion for us?
yatish27 has joined #ruby
benlovell has quit [Ping timeout: 272 seconds]
<vali>
hmmm, so it should be transformed to string but nevertheless it's complaining that it cannot be converted?
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
codecop has quit [Remote host closed the connection]
krz has quit [Read error: Connection reset by peer]
eGGsha is now known as eGGshke
blackmesa has quit [Ping timeout: 250 seconds]
<jhass>
vali: mmh, actually since the backtrace points to a commented line inside your gist, I have some doubts the code you've shown is identical to the code producing that error
<vali>
jhass: it's the same
<jhass>
it can't be, backtraces don't mention commented lines
<vali>
hmm, let me uninstall the gem
<vali>
and reinstall
leat has quit [Remote host closed the connection]
dimasg has quit [Ping timeout: 260 seconds]
<jhass>
vali: you shouldn't need to, with plain ruby just add -I/path/to/your/gems/lib to the invocation or with bundler use the path: option
devoldmx has quit [Ping timeout: 246 seconds]
leat has joined #ruby
Porfa has joined #ruby
yatish27 has quit [Ping timeout: 252 seconds]
<Porfa>
so how's that snow.js ?
<jhass>
sounds offtopic?
senayar has quit []
eGGshke is now known as eGGsha
<Porfa>
hahaha it's that just yesterday i was cursing java and that it was so awesome to make lil snow fall in your browser and all of the sudden everyone was going down memory lane, that's just it jhass
freerobby has joined #ruby
garethrees has quit [Ping timeout: 244 seconds]
<Porfa>
i need some advice.. i have ruby 2.2.3 and no rvm.. i want to try RVM because I'm having some problems installing a particular gem, so.. do i keep my system ruby, or can i remove it completely and just use RVM ?
<jhass>
keep the system ruby
<vali>
jhass: recompiled, reinstall, the code is the one that I added/modified. I have updated the gist
<jhass>
just make sure to make a user install of RVM
yfeldblum has quit [Ping timeout: 246 seconds]
<Porfa>
ok
<atmosx>
Porfa: out of curiosity what system is that?
<Porfa>
ubuntu.. please don't throw rocks at me
<jhass>
vali: uh, since when do backtraces go through when's?
<jhass>
213 can't really be either with that code
<Porfa>
atmosx: but i have a virtual host i can get any distro i want, actually that would be f*** nice to have a virtual machine just for my ruby and sinatra's
roolo has joined #ruby
<Porfa>
any recommendations? i just need terminal, don't want any graphic server
<vali>
jhass: made an update again with more log. Probably there is also stuff from logstash in there.
<jhass>
vali: anyway, did you try passing the plain string yet, not doing any conversion yourself?
shadeslayer has quit [Ping timeout: 250 seconds]
<vali>
jhass: no, haven't tried anything other than using that iso8601 on that value
<arup_r>
jhass: No I just Googled.. and none worked till now.. So thinking to manage this current one..
<arup_r>
let me do man
roolo has quit [Ping timeout: 246 seconds]
stardiviner has quit [Ping timeout: 255 seconds]
cynosures has quit [Remote host closed the connection]
rideh has quit [Changing host]
rideh has joined #ruby
bigredboots has joined #ruby
sdwrage has joined #ruby
<vali>
jhass: after removing the iso, and just inserting it plain, the timestamp gets inserted as it should 2015-08-27 15:43:41+0200
<vali>
it's dirty and no parsing/verification is being done but it will suffice until I know more on how to fix it the right way
<jhass>
vali: see, just reading the error message is great, isn't it!
solocshaw has quit [Ping timeout: 246 seconds]
<jhass>
vali: and please really really reconsider rescuing Exception
<jhass>
vali: at least lower it to the default (specifying none, RuntimeError)
<jhass>
vali: but yet better list the exceptions you expect specifically
<jhass>
you only hide errors that way
senayar has joined #ruby
<vali>
jhass: I will open an issue with the guy that did the output and see if he can help me also with this.
shadeslayer has quit [Ping timeout: 260 seconds]
<vali>
I will also suggest him the stuff that you mentioned
sankaber has joined #ruby
<vali>
thank you for the help!
shadeslayer has joined #ruby
<vali>
greatly appreciate it.
yatish27 has joined #ruby
<arup_r>
jhass: figured out
<arup_r>
thanks -X PUT
<jhass>
reading docs is great isn't it
<jhass>
doesn't need to bother people with offtopic questions
zerolith has joined #ruby
blackmesa has joined #ruby
zerolith has left #ruby [#ruby]
krz has joined #ruby
araujo_ has joined #ruby
leat has quit [Remote host closed the connection]
araujo has quit [Ping timeout: 260 seconds]
scroff has joined #ruby
leat has joined #ruby
rfmind_ has joined #ruby
rbennacer has joined #ruby
<Porfa>
(should i see the teamthreehouse ruby tutorial videos? because the bald guy that appears in the beginning scared the hell out of me with that kanye west smile)
dimasg has joined #ruby
Zai00 has joined #ruby
fmcgeough has joined #ruby
christiandsg has joined #ruby
ecnalyr has joined #ruby
<Porfa>
8sorry about that, i though that was free… damn)
dimasg has quit [Ping timeout: 256 seconds]
mamercad has quit [Ping timeout: 256 seconds]
Eiam has joined #ruby
leat has quit [Remote host closed the connection]
ecnalyr has quit [Ping timeout: 240 seconds]
leat has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
Vile` has quit [Ping timeout: 255 seconds]
mutuma has joined #ruby
codenapper has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
<Porfa>
anyone?
Gribo has joined #ruby
<Porfa>
i've been doing some simple ruby scripts, but i want to get on and learn this for real, i want to dedicate my whole time to this because I'm really enjoying the possibilities and what i just read now about rails. I'm wondering if Beginning Ruby by Peter Cooper is a good book to start from zero
krz has quit [Quit: WeeChat 1.2]
<[k->
read many books
<Porfa>
yeah, but i need to start with one, i have no previous programing skills at all
<Porfa>
i can't read several books at the same time
dhjondoh has joined #ruby
<[k->
who says you cant
jgt has quit [Ping timeout: 240 seconds]
<[k->
they usually start the same and all that
<Porfa>
I, because i know myself better than you :)
<Porfa>
haha
dhjondoh has quit [Client Quit]
<Porfa>
but i i can't buy several books at the same time..
<jhass>
Porfa: Chris Pine's Learn to program is generally recommended as entry level
leat has joined #ruby
System42 has left #ruby [#ruby]
codenapper has quit []
chinmay_dd has quit [Quit: See ya!]
jiada has joined #ruby
victortyau has joined #ruby
jiada has quit [Remote host closed the connection]
<maloik>
Did we have anyone here on the rubygems team? Or someone who's aware of the rubygems-mirror project?
<maloik>
I have a quick question
_blizzy_ has quit [Ping timeout: 255 seconds]
<maloik>
We're doing a rubycamp and it turns out we won't have an internet connection, so I was thinking of getting a VM with a rubygems mirror... but I have no idea what kind of size I'll need to expect that to be
pawnbox has quit [Remote host closed the connection]
esparta90 has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
<maloik>
The rubycamp is tomorrow already, so we'd have to get on it fast :-)
freerobby has quit [Read error: No route to host]
codenapper has joined #ruby
esparta90 has quit [Quit: Konversation terminated!]
freerobby has joined #ruby
<maloik>
A rough idea on the feasibility would be fine, I have no clue about if I should be even looking into this or not with only a day to go
zerolith has joined #ruby
pawnbox has joined #ruby
dstarh has joined #ruby
bigredboots has quit [Remote host closed the connection]
leat has quit [Remote host closed the connection]
pyon has quit [Quit: Whoa, Emacs sucks.]
d10n-work has joined #ruby
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
chipotle has quit [Quit: cheerio]
benlovell has joined #ruby
eGGsha is now known as eGGshke
dhjondoh has joined #ruby
poli has joined #ruby
terlar has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
eGGshke is now known as eGGsha
ddubs has joined #ruby
<ddubs>
hey peoples
jgt has joined #ruby
<ddubs>
having an issue where im trying to spawn and execute a command
rideh is now known as rideh^
rideh^ is now known as rideh
rbennacer has quit [Remote host closed the connection]
pyon has joined #ruby
meph has joined #ruby
<ddubs>
and the command i'm executing also tries to do some subprocess stuff (example: Process.spawn(`echo $(facter some_fact_here)`)
devoldmx has quit [Ping timeout: 250 seconds]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<[k->
use Process.spawn("echo...") instead if `
<ddubs>
o whoops i actually am passing just a string - the string im passing actually goes through a little ERB before being passed to spawn
stevednd has quit [Remote host closed the connection]
rbennacer has joined #ruby
<jhass>
then it fails because of the \, not because of the combination of \n
ta has quit [Remote host closed the connection]
<jhass>
ah and actually I read the regex backwards, \n is explicitly allowed even
ferhaty has joined #ruby
<jhass>
so, question remains, who sends you that param? it contains a literal \ followed by a literal n, it probably meant to include a properly encoded \n
<kinduff>
is there a convention to do type checking, within a function for example?
freerobby1 has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
<jhass>
kinduff: avoid it as long as you can, assume you got the right thing and call the corresponding method
freerobby has quit [Read error: Connection reset by peer]
<jhass>
if you can convert the type you get raise TypeError, if you can't handle the type you get raise ArgumentError
jgpawletko has joined #ruby
roolo has quit [Ping timeout: 244 seconds]
<kinduff>
makes sense, I just read about an apporach using rescue block with type verification based on function arguments, so I wondered if there was a convention for it
<jhass>
link?
<kinduff>
been doing ruby for 3 years now, never had to do type checking tho
leat1 has quit [Remote host closed the connection]
thbar has quit [Ping timeout: 246 seconds]
leat1 has joined #ruby
dumdedum has joined #ruby
<jhass>
hmnhf: I bet if I'd get that code and stuff the result of that method into parse it'll work, so that doesn't show where you improperly pass stuff along
Eiam has joined #ruby
dionysus69 has joined #ruby
pauly_oc has quit [Ping timeout: 264 seconds]
willharrison has joined #ruby
pawnbox has quit [Remote host closed the connection]
mutuma has quit [Quit: mutuma]
_blizzy_ has quit [Read error: Connection reset by peer]
<hmnhf>
jhass: So if I'm posting parameters the wrong way, I think there won't be a problem when braintree sends the real notifications, thanks for the help :)
kinduff has joined #ruby
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
_blizzy_ has joined #ruby
<IceDragon>
wassssssssup, brothers and sisters :D
pawnbox has joined #ruby
<jhass>
hmnhf: for all I can tell so far it might as well be them fucking it up, but IME in 98% of the process where a literal \ followed by a literal n appears and causes troubles, somebody did something wrong
<IceDragon>
I hope I don't get shot for saying that...
<jhass>
skin is admittedly a bit thin after yesterday, so maybe don't stress it ;)
<IceDragon>
:) whats the latest and greatest jhass
kinduff has quit [Client Quit]
<jhass>
crystal is now in the archlinux community repository <3
<IceDragon>
I haven't spoken, or looked at the channel for weeks, the summer has been stressing me to no ends
<[k->
2.2.3!
UtkarshRay has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<IceDragon>
jhass: You mean I can try it now without manually compiling it!?
khebbie has quit [Remote host closed the connection]
<IceDragon>
YES
leat1 has quit [Remote host closed the connection]
<IceDragon>
[k-: Yeah, I noticed, what's the highlight for 2.2.3?
leat1 has joined #ruby
iamninja has quit [Ping timeout: 246 seconds]
<[k->
bug fixes
Pupeno has joined #ruby
<havenwood>
IceDragon: The 3 is the big change.
<IceDragon>
Booooo
<[k->
only a minor release
christiandsg has joined #ruby
<havenwood>
IceDragon: gem update --system
* IceDragon
throws tomatoes
elepedus has quit [Quit: elepedus]
bmn has quit [Quit: obai]
<[k->
tomato throwing day was in fact yesterday
<[k->
too bad you missed it
jeadre has quit [Remote host closed the connection]
<IceDragon>
darn, I missed it then
pawnbox has quit [Remote host closed the connection]
<[k->
google had a doodle for the special occasion
<IceDragon>
ping me next time there is a tomato throwing day, I'll arm my tomtato launcher :P
riotjones has quit [Ping timeout: 250 seconds]
<adaedra>
pawnbox has joined #ruby
<IceDragon>
havenwood: You know, I've never ran `gem update --system`
<IceDragon>
like never
tagrudev has quit [Read error: Connection reset by peer]
<sevenseacat>
you probably should.
<[k->
^
noobQ has quit [Quit: bash]
tagrudev has joined #ruby
<IceDragon>
archlinux just re-installs ruby with the latest stuff normally
<IceDragon>
┐( ̄ヮ ̄)┌
<[k->
there were some critical updates
jeadre has joined #ruby
<IceDragon>
[k-: Well, now that I know, I'll do it on a regular basis alongside system updates
voltalio has joined #ruby
<shevy>
IceDragon!
<shevy>
you are alive
<IceDragon>
:D
<IceDragon>
SHEVY MA MAN
lele is now known as Guest24
<jhass>
IceDragon: actually not, I tried to get anatolik to patch in a newer rubygems, but no dice
* IceDragon
brohugs
<shevy>
not killed by a party of dragonfighters
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<IceDragon>
barely survived, they ambushed me on a rainy day!
<[k->
shevy didn't even respond to my poke :(
<IceDragon>
;-; you know how rain is on an icedragon don't ya
<IceDragon>
[k-: You gotta reach bro status :P
<[k->
?shevy
<ruboto>
shevy is the hound of baskerville
<adaedra>
Water on Ice is x1 though
<IceDragon>
adaedra: you did not... D:
pawnbox has quit [Ping timeout: 244 seconds]
<adaedra>
What did I not?
qweb_ has left #ruby [#ruby]
<IceDragon>
&pokemon
<adaedra>
I totally did #noshame
<IceDragon>
#unbelievable
christiandsg has quit [Ping timeout: 265 seconds]
<adaedra>
It's super effective.
pawnbox has joined #ruby
<IceDragon>
speaking of pokemon, I need to pick up my alpha sapphire at some point in the future..
bmn has joined #ruby
kinduff has joined #ruby
<hmnhf>
jhass: It's not just one sudden "\n", braintree's gem actually is generating these newlines, but when rails gets the request, it somewhere escapes the parameter's newlines
<hmnhf>
jhass: I'll try testing it with a real braintree notification, thanks again :)
<jhass>
hmnhf: it even includes the "s ?!
giuseppesolinas has joined #ruby
<hmnhf>
jhass: Which "s? where? didn't find anything :D
<jhass>
"\"I
fumk has joined #ruby
davedev2_ has joined #ruby
<jhass>
is postman taking your input literal, not interpreting escape sequences but rencoding it?
<jhass>
do puts sample_notification[:bt_payload] and copy paste that output
rbennacer has quit [Read error: Connection reset by peer]
sphex_ has joined #ruby
rbennacer has joined #ruby
davedev__ has joined #ruby
rippa has joined #ruby
livathinos has quit []
davedev24 has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 264 seconds]
molawson has joined #ruby
<hmnhf>
jhass: Yes, postman was messing it up, tried the CGI#escape's output with curl and it works.
<hmnhf>
jhass: Thanks :D
chouhoulis has joined #ruby
davedev2_ has quit [Ping timeout: 246 seconds]
sphex has quit [Ping timeout: 265 seconds]
molawson has quit [Client Quit]
molawson has joined #ruby
chouhoul_ has quit [Ping timeout: 244 seconds]
startupality has joined #ruby
livathinos has joined #ruby
acke has quit [Remote host closed the connection]
livathinos has quit [Client Quit]
cjbottaro has joined #ruby
bigredbo_ has joined #ruby
davedev24 has joined #ruby
Vile` has quit [Ping timeout: 260 seconds]
dr3w has joined #ruby
bigredboots has quit [Ping timeout: 244 seconds]
gamename has joined #ruby
cschneid_ has joined #ruby
bulibuta has joined #ruby
elepedus has joined #ruby
<bulibuta>
hi, if I add a method to an opened class how can I make sure it gets passed down to its subclasses?
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev__ has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
janno has joined #ruby
s2013 has joined #ruby
<bulibuta>
say I have class Song defined and included with a require 'Song' and I add a record method to it in my script. Now Song has ClassicalSong subclass that was defined *before* I added the record method, will ClassicalSong get it after adding it to Song class?
<Ox0dea>
?try bulibuta
<ruboto>
bulibuta, Why don't you try it and see for yourself?
roxtrongo has quit [Read error: Connection reset by peer]
<[k->
:/
<Ox0dea>
[k-: Do you actually use T9, then?
<[k->
no
roxtrongo has joined #ruby
dionysus69 has quit [Quit: dionysus69]
Travis-42 has joined #ruby
stan has quit [Ping timeout: 246 seconds]
rehat_ has joined #ruby
nitenq has joined #ruby
<Travis-42>
I’m trying to understand the changes ruby 2.2 made to hash keys that are string. prior to 2.2, env[“PATH_INFO”.freeze] would be faster and reduce memory allocations compared to env[“PATH_INFO”] multiple times across a project. Am I understanding correctly that in 2.2, ruby does this automatically now?
tkuchiki has quit [Remote host closed the connection]
khebbie has quit [Remote host closed the connection]
<jhass>
yes, but I thought that's done for some time before
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
platzhirsch has joined #ruby
<Guest75145>
So essentially it should look like: Type Here: 1 + 1 = 2
<[k->
Guest75145, that's what entering does
<[k->
a new line
<Guest75145>
but it jumps lines
nitenq has joined #ruby
<Guest75145>
*misread
<Guest75145>
yes can i backspace upon entering?
atomical has joined #ruby
<[k->
no
<jhass>
Guest75145: the easiest workaround is to use ANSI escape codes (google it) to jump a line up and to its end
<Guest75145>
^^ tyvm
<[k->
or get a library to do it for you
nofxx has quit [Remote host closed the connection]
iamninja has joined #ruby
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Travis-42 has left #ruby [#ruby]
nofxx has joined #ruby
CorySimmons has quit [Quit: Bye!]
<Ox0dea>
jhass: There are codes for saving and restoring the cursor.
<jhass>
Ox0dea: don't think that applies here though
<jhass>
at least you'll still have to jump to the end of line
<Ox0dea>
Hm? I think he wants the user to be able to enter an expression at the end of the line, and then replace that expression with the answer when they press Enter.
<jhass>
so not much gained by jump back vs jump a line up
<jhass>
I think they just want to append the answer
ylg has joined #ruby
<[k->
Ox0dea he wants to insert a = answer
<Ox0dea>
Oh, right.
<Guest75145>
0x0dea: accurate
<[k->
yes append, thanks jhass
<jhass>
Enter: [1 + 1] = 2 # user input in []
<Porfa>
just got the "learn to program" e-book printed and .. erm, put on a hardcover and the circle thingies to hold on the pages, yeah..!
<Guest75145>
I have found some escape codes but I'm doing it wrong? hah
<Porfa>
thanks for the book name jhass !
dopamean_ has quit [Ping timeout: 246 seconds]
<Porfa>
his english is easy and good to read!
bsdbofh has joined #ruby
choke has joined #ruby
<nofxx>
Porfa, you're the guy from Portugal, no?
kinduff has quit []
<Porfa>
Yeah
<nofxx>
there's the chris pine and why's book translated to pt Porfa
A124 has joined #ruby
<Porfa>
I'm reading the chris pine one in english and i love it, i rather do it in engish, when i said it was easy english, it just the way he writes, and the examples / metaphors :)
sdwrage_ has joined #ruby
sdwrage has quit [Ping timeout: 244 seconds]
Pumukel has joined #ruby
dotplus has left #ruby [#ruby]
<shevy>
ok
<shevy>
but it's really for the simple stuff
devoldmx has joined #ruby
saddad has quit [Ping timeout: 252 seconds]
tjohnson has joined #ruby
bb010g has joined #ruby
sdwrage_ has quit [Ping timeout: 244 seconds]
<Guest75145>
Still lost guys :( cannot figure out how to append the end of my line after giving input 0.o.. I looked into carriage returning and that looks promising but I'm not sure how to go about that to keep it on the same line.
sdwrage has joined #ruby
<[k->
You have to go back up a line
tenderlove has quit [Quit: Leaving...]
devoldmx has quit [Ping timeout: 260 seconds]
robh71 has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
mleung has joined #ruby
craysiii has joined #ruby
jpfuentes2 has joined #ruby
rubie has quit [Remote host closed the connection]
Limix has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wldcordeiro has joined #ruby
hololeap has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Remote host closed the connection]
RobertBirnie has joined #ruby
<jhass>
Guest75145: mmh, I can find move to end of line either, could swear it existed. Looks like you have rewrite the line, puts "\e[1F#{prompt}#{user_input}#{result}"
Timba-as has quit [Ping timeout: 264 seconds]
banjara has joined #ruby
but3k4 has joined #ruby
jgt has quit [Ping timeout: 272 seconds]
<Porfa>
yeah, but i never programmed before and i've been doing these "blind" ruby scripts, so i think it's a really nice book for me to start
<shevy>
foo.rb:1:in `<main>': undefined local variable or method `input' for main:Object (NameError)
ddubs has quit [Ping timeout: 246 seconds]
t0rc has joined #ruby
michael_mbp has quit [Excess Flood]
acke has joined #ruby
<Guest75145>
This is working but it ends up with a trailing enter due to my entering input. Im thinking it may add multiple blank lines doing it like this
<shevy>
havenwood lol what is that dancing ascii thing there?
<havenwood>
shevy: Install curses gem and try it! :P
<Inoperable>
that one works
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<havenwood>
shevy: That is my motion painting.
araujo has quit [Max SendQ exceeded]
<Inoperable>
on that particular hash
<Inoperable>
but on another one
<Inoperable>
it doesnt
<Inoperable>
wrrr
<shevy>
hehe
<apeiros>
a.keys.include? # can't start to tell you how wrong this is
<havenwood>
Inoperable: You still haven't shown the return value you're looking for.
rubie has joined #ruby
minimuffins has quit [Ping timeout: 255 seconds]
<Inoperable>
apeiros: start ot tell me
<Inoperable>
like i said, newb
<apeiros>
you create an Array from a structure to perform a linear (O(n)) search in it when the original structure *already has O(1) lookup*
kidoz has joined #ruby
<apeiros>
in other words: you turn something fast with a lot of effort into something slow
<polpak>
Inoperable: keys will include every k because k comes from keys
<Inoperable>
i basically try to make a .uniq on a hash but in reverse
<apeiros>
a.include?(k) # there. fast again. and less effort as a topping.
<Inoperable>
i want to grab the duplicates out of a hash
<Inoperable>
duplicates meaning keys having the same values
<havenwood>
Inoperable: You'll find you'll get much quicker answers if you're able to show the result you want rather than describe it.
kinduff has joined #ruby
<polpak>
Inoperable: why not construct a new hash where the key is the value and the value is the list of keys which had it
molawson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
platzhirsch has quit [Ping timeout: 256 seconds]
<Inoperable>
polpak: good point
<Inoperable>
noted
molawson has joined #ruby
<shevy>
is hash.include? an alias to hash.has_key? ?
fantazo has joined #ruby
<havenwood>
Inoperable: Like, I have `{:aim => true}` and I want `{true => :aim}`.
graydot has quit [Quit: graydot]
kedibasi has joined #ruby
blueOxigen has joined #ruby
anandubajith has quit [Quit: Connection closed for inactivity]
bluOxigen has quit [Ping timeout: 244 seconds]
platzhirsch has joined #ruby
unver has quit [Ping timeout: 250 seconds]
<havenwood>
Inoperable: Is this the return value you want or something else?: {:a=>1, :b=>23, :c=>23423, :h=>243, :l=>12, :m=>354, :n=>43, :o=>53, :q=>35}
<polpak>
>>> a = {a:1, b:1, c:2}; b = Hash.new { |h, k| h[k] = [] }; a.each { |k,v| b[v] << k }; # Inoperable
<ruboto>
polpak # => /tmp/execpad-1a304f8a0189/source-1a304f8a0189:2: syntax error, unexpected '>' ...check link for more (https://eval.in/423722)
<polpak>
oh
<polpak>
>> a = {a:1, b:1, c:2}; b = Hash.new { |h, k| h[k] = [] }; a.each { |k,v| b[v] << k }; # Inoperable
<shevy>
I had a moment of confusion because apeiros used .include? and I have been using .has_key? mostly
but3k4 has quit [Ping timeout: 260 seconds]
<Porfa>
anyone using watir gem? :) how do get a list of all the elements like i do in mechanize?
<shevy>
now that has shocked my world... perhaps I should transition into .include? as well
krisquigley has joined #ruby
juanpaucar has quit [Remote host closed the connection]
roolo has joined #ruby
graydot has joined #ruby
ramfjord has quit [Ping timeout: 250 seconds]
darkf has quit [Quit: Leaving]
platzhirsch has quit [Ping timeout: 250 seconds]
<Inoperable>
polpak: yeah, that's it :)
rdark has quit [Quit: leaving]
<Ox0dea>
shevy: Style guide recommends #key?.
amclain has joined #ruby
jgt has joined #ruby
<Inoperable>
i need to wrap my head around it first, but many thanks mate!
araujo has joined #ruby
araujo has joined #ruby
<arcanez>
Ox0dea: 'style guide'?
<shevy>
Ox0dea I think there also was an old discussion between has_key? and key? where matz favoured key? ... if in doubt I'll go with the apeiros style guide :>
araujo_ has joined #ruby
jeadre has quit [Remote host closed the connection]
hmnhf_ has quit [Read error: Connection reset by peer]
webopsx has quit [Max SendQ exceeded]
hmnhf_ has joined #ruby
chouhoulis has joined #ruby
RobertBirnie has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
podman has joined #ruby
tsvenson has joined #ruby
rbowlby has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
<Inoperable>
unver but its soooooo fast!
jackjackdripper has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
<Ox0dea>
The difference is occasionally staggering.
pawnbox has quit [Remote host closed the connection]
araujo has joined #ruby
sphex_ has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
<Guest75145>
"Well, yeah, and the Java community is stubborn, the .NET community is closed-minded, the Perl community is quirky and the C++ community is a bunch of middle-aged, pipe-smoking elves." http://www.zohararad.com/2012/11/16/10-reasons-not-to-use-ruby
<Travis-42>
I'm trying to better understand ruby memory allocation: When "5.times { foo = 6 }" is run, ruby will use up 5 object slots (a new one on each iteration), unless GC runs during the iteration, right (in which case it'll reuse the "freed" slots)? E.g. for something like rails’ find_each do be more efficient than all.each, it relies on GC running at some point? Or am I not understanding?
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
startupality has quit [Quit: startupality]
<Mon_Ouie>
In MRI, Fixnums don't need to be allocated or GC'd because the memory used by the reference holds the value of the fixnum as well
dgutierrez1287 has joined #ruby
devoldmx has joined #ruby
JoshL has joined #ruby
t0rc has quit [Quit: WeeChat 1.3]
revoohc has quit [Quit: revoohc]
j_mcnally has joined #ruby
ruby-lang813 has joined #ruby
<Travis-42>
well, I’m trying to better understand why find_each in rails (which creates 1000 item arrays) is much better for memory than all.each — so suppose something like 100_000_000.times { foo = “a string” }. memory stays stable (even though GC.stat shows 100,000,000 freed objects), but if I disable GC just before, memory balloons
sinaef has joined #ruby
<ruby-lang813>
Hm
<Travis-42>
is the reason because GC is running before the heap size increases, freeing and reusing old slots?
ruby-lang813 has quit [Client Quit]
benlovell has quit [Ping timeout: 244 seconds]
psy_ has joined #ruby
dgutierrez1287 has quit [Ping timeout: 252 seconds]
<apeiros>
Travis-42: a) #rubyonrails and b) I think you're talking about old rails versions where .all was what .to_a is today, i.e. reads all into memory upfront.
devoldmx has quit [Ping timeout: 256 seconds]
<Travis-42>
apeiros: I’m really not trying to ask about rails, I’m trying to understand ruby memory allocation
<Travis-42>
it was just an example
<apeiros>
Travis-42: then you should use an example you fully understand
ddarkpassenger has joined #ruby
<apeiros>
also "better" does not exist. "in context X better" exists.
<Travis-42>
User.all.each still works in rails 4.2.3, but I’m sorry if my example was a little outdated, I’m just trying to understand why allocating 1000 item arrays 100 times doesn’t balloon memory the same way that a single 100,000 item array would
<apeiros>
and wrt ruby gc, one aspect of the context is the specific ruby version, since GC has changed quite a bit from 1.9 to 2.0 to 2.1 to 2.2
<Travis-42>
Ruby 2.2 Is really where I’m looking at
catoblepa has joined #ruby
<apeiros>
Travis-42: that's what I mean by "fully understand". yes, it still works. but no, it doesn't work the same anymore.
<apeiros>
rails 3.x .all returns an array. rails 4.x .all returns a relation.
<Travis-42>
100_000_000.times { foo = “a string” } doesn’t balloon memory (unless GC.disable is called), even though it allocates 100,000,000 objects
<apeiros>
*massively* different beast.
timonv has quit [Ping timeout: 250 seconds]
leat1 has joined #ruby
<apeiros>
that'd most likely be because `foo` goes out of scope on every iteration and can be GC'd
giuseppesolinas has quit [Quit: This computer has gone to sleep]
benlovell has joined #ruby
hectortrope has joined #ruby
leat1 has quit [Remote host closed the connection]
leat1 has joined #ruby
jenrzzz has joined #ruby
<apeiros>
and ruby 2.2 has a generational gc too, and foo almost certainly remains in the young generation which gets GC'd more aggressively.
pdoherty has quit [Quit: Leaving]
<Travis-42>
right, so the reason the creating 1000 item arrays 100 times doesn’t balloon memory is because GC is running during the process — the slots in the ruby heap can’t be reused until GC in some form runs
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Travis-42>
that makes a lot of sense, thank you apeiros. I wasn’t sure that I understood the basic idea
<apeiros>
hu?
<apeiros>
100_000_000.times { foo = “a string” } does *not* create *any* array at all
<Travis-42>
I understand, I was just comparing
skade has quit [Quit: Computer has gone to sleep.]
nickjj_ is now known as nickjj
<apeiros>
ok
dionysus69 has quit [Ping timeout: 244 seconds]
<Travis-42>
thank you for your help
<BraddPitt>
w4
<jhass>
x5
<apeiros>
y6
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke has joined #ruby
dorei has joined #ruby
molawson has joined #ruby
Guest24 has quit [Ping timeout: 240 seconds]
<Inoperable>
Guest75145 I like to 5th point especially
<Inoperable>
5. The Ruby community is condescending and snobbish
<apeiros>
how can we say that in a snobbish and condescending way?
cantaberry has joined #ruby
<jhass>
mmh
<jhass>
?guys Inoperable
<ruboto>
Inoperable, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<flughafen_>
I have a question, I was unable to find it, but I i have a capybara/phantom js test suite, and I want to "live stream" the results to a browser...
<BraddPitt>
flughafen_ you could open a websocket and publish results as tests finish
<flughafen_>
slash_nick: sorry, but in this case, i only want the test results, not the screen shot. although that is neat
<Mon_Ouie>
Inoperable: Do you realize that 1..5 is not an Array?
polysics has quit [Remote host closed the connection]
ferhaty has quit []
<Inoperable>
it's a range
<Inoperable>
but is_a?Array says it's an array
<Inoperable>
at least it says true
<Mon_Ouie>
[1..5] and 1..5 are not the same thing
<Mon_Ouie>
1..5 is a Range, [1..5] is an Array that contains one element which happens to be a Range
<slash_nick>
flughafen_: sorry, i completely misunderstood..
<Inoperable>
Mon_Ouie .. syntax fail...
ozzloy has joined #ruby
ozzloy has joined #ruby
<flughafen_>
it's ok
jenrzzz has joined #ruby
opensource_ninja has joined #ruby
Billias has joined #ruby
<Mon_Ouie>
And flatten is to flatten nested arrays. Since you don't have any nested arrays in your code (only arrays of integers or ranges), it doesn't do anything in your examples.
<shevy>
you just put instructions into tiny things
<prefixed>
YO
<Ketzel>
?guys
<ruboto>
Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<shevy>
our old friend is back
<PDI>
if i have a case, and inside of the case i have a when, i have to use 'end' to end the when, and another 'end', to end the case, right?
<shevy>
Ketzel you should find a job man
<shevy>
PDI that would be one "end" too many
<Ketzel>
i have a job
northfurr has quit [Quit: northfurr]
<Ketzel>
and that job
<Ketzel>
is to serve justice
<PDI>
no end for the case then shevy
<PDI>
?
<shevy>
Ketzel come on, do something productive with your life
<Mon_Ouie>
No 'end' for the 'when'
<PDI>
got it
<PDI>
thanks
<PDI>
!
<Mon_Ouie>
case object; when pattern; do stuff; when other_pattern; do other stuff; end
<shevy>
PDI only for the case but not for the when, remember you can have lots of when but only one case associated with these many when's
Cust0sLim3n has quit [Ping timeout: 245 seconds]
ta has quit [Remote host closed the connection]
<Inoperable>
Ketzel how much calories that justice of your's have?
<PDI>
I was looking at someone else's code, and his indentation is off. he has an if else at the end of each when, but the when was indented to the when
<PDI>
so i though the end was for the when, but it is for the if / else
<Ketzel>
Inoperable: Like, all of them
<prefixed>
let's say I want to iterate over some instance vars, but I want to ignore a specific field. how do I do this?
<shevy>
PDI yeah, people often indent strangely with case/when
syath has quit [Quit: WeeChat 1.2]
jeadre has quit [Remote host closed the connection]
MasterPiece has joined #ruby
<Mon_Ouie>
!mute Ketzel
nitenq has quit [Quit: nitenq]
<shevy>
the less "end" you can get away with, the better. once you have 8 ends in a row something is usually ... not so good
<shevy>
I had that once too :)
kadoppe has quit [Ping timeout: 264 seconds]
<flughafen_>
should i use poltergeist websocket? i think it's already got websocket things going on.
<flughafen_>
sup shevy
<PDI>
ruby is pretty sweet.
<baweaver>
Mon_Ouie: ban kiwiirc for a bit.
<shevy>
flughafen_ nothing flying in berlin?
<Mon_Ouie>
Yeah, probably
<flughafen_>
shevy: only my dreams, and they're going far far away
<shevy>
Ketzel will be back :)
<baweaver>
otherwise
jeadre has joined #ruby
<baweaver>
yeah
<shevy>
lol flughafen_
yfeldblum has joined #ruby
<shevy>
flughafen_ that's actually beautiful... berlin ruby hackers have dreams
<prefixed>
let's say I want to iterate over some instance vars, but I want to ignore a specific field. how do I do this?
EllisTAA has joined #ruby
kadoppe has joined #ruby
Ketzel was banned on #ruby by Mon_Ouie [*!*@*kiwiirc.com*]
Motoservo has quit [Read error: Connection reset by peer]
<flughafen_>
shevy: i'm programming, neat huh!
jeffreylevesque has quit [Ping timeout: 245 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Inoperable>
flughafen_ an airport?
choke has joined #ruby
<shevy>
yeah, german
<adaedra>
program me an airport.
<shevy>
we do! in cobol
<flughafen_>
Inoperable: yes, indeed
ecnalyr has quit [Read error: Connection reset by peer]
mjuszczak has quit []
Jean_Luc has joined #ruby
<Jean_Luc>
No being is so important it can usurp the rights of another.
<Jean_Luc>
this would include the right to the proper use of the english language
<Jean_Luc>
?guys
<ruboto>
Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
pyon has quit [Remote host closed the connection]
<craysiii>
staatsangehoerigkeit
ecnalyr has joined #ruby
jeadre has quit [Remote host closed the connection]
<baweaver>
Mon_Ouie:
<shevy>
he is back!
<Jean_Luc>
yay!
<Jean_Luc>
welcome me!
polysics has joined #ruby
<shevy>
and challenging Mon_Ouie to a duel to the death
pyon has joined #ruby
<Mon_Ouie>
!mute Jean_Luc
<Inoperable>
stadtsunterhaltungseinheiten
<baweaver>
Just ping one of the ops if they come back, ignore anything they say.
Jean_Luc has quit [Client Quit]
jeadre has joined #ruby
<adaedra>
I hope they will get tired quickly today.
Ketzel was banned on #ruby by jhass [jhass]
<craysiii>
?girls
<ruboto>
I don't know anything about girls
Ketzel has left #ruby [requested by jhass (Your behavior is not conductive to the desired environment.)]
<baweaver>
ohai jhass
Motoservo has joined #ruby
<shevy>
craysiii are you starting it now :D
Porfa has joined #ruby
<craysiii>
i was just seeing if there was one :P
<flughafen_>
hey baweaver the hackathon master in ze haus!
blackmes1 has quit [Ping timeout: 272 seconds]
<baweaver>
Hm?
<craysiii>
i wonder how everyone would feel if people just started addressing people as girls instead of guys.
Guest50 has joined #ruby
elepedus has quit [Quit: elepedus]
workmad3 has quit [Ping timeout: 250 seconds]
<shevy>
craysiii nope you are right... ruboto favours ?guys but not ?girls
<shevy>
damn macho bot
blackmes1 has joined #ruby
<Porfa>
any watir experts around here? :D
<craysiii>
ruboto needs to check it's privilege or something
<jhass>
?ot
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
_djbkd has joined #ruby
Cust0sLim3n has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
last_staff has quit [Quit: last_staff]
<Porfa>
any watir ruby-gem experts here? :D
<prefixed>
hello?
<BraddPitt>
I would like to know why the ?guys trigger still exists
<baweaver>
?ot
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<BraddPitt>
still have the same problem as yesterday, Porfa?
_djbkd has joined #ruby
<prefixed>
how can I iterate over an object's fields to perform some operation, but ignore one specific one?
<apeiros>
?ot BraddPitt
<ruboto>
BraddPitt, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
einarj_ has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
<shevy>
what are "fields" in this context?
<Porfa>
BraddPitt: neon! i submitted to RVM, everythin's working perfectly now! :)
<craysiii>
prefixed cant you use next in your loop?
<Porfa>
now i just need to learn how to navigate my forms and pages like i learned with mechanize, but somehow i find more info online with mechanize, besides, when i enter a link/click something and i go to another page, mechanize automatically spits everything it can do on that page, watir doesn't.. just wondering how i inspect elements using watir
<toretore>
prefixed: ?code
decoponio has quit [Quit: Leaving...]
mjuszczak has joined #ruby
<toretore>
damit
<baweaver>
other way around toretore
<prefixed>
toretore this isn't a question that requries code
<toretore>
yes it is
<prefixed>
it's literally a syntax question
<toretore>
no it is not
<shevy>
ok but what is a "field" then
<craysiii>
are you iterating over a hash? then you would just place a conditional on the key or value, depending on your requirements
<shevy>
in general, you can apply .select or .reject
krisquigley has joined #ruby
<shevy>
so whatever the "fields" are, select only those you want to, and not the other ones (or reject those you don't want to - same difference really)
<prefixed>
i feel liek i am speaking a different language here
<Mon_Ouie>
Well, just the same as when you iterate over any array
<shevy>
once you have them as Array, you can apply .select or .reject
hoggy_ has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
<toretore>
prefixed: you are. you're not making any sense because you speak in terms and concepts that are not applicable to ruby. explain the purpose, the goal instead
<prefixed>
i have an object with some fields. i want to ignore one when iterating over the fields
<prefixed>
this is not a hard concept
<toretore>
ruby objects don't have fields
<Mon_Ouie>
Show us how you're iterating over "fields".
<prefixed>
jesus christ
prefixed has left #ruby [#ruby]
<roolo>
Hey guys
<BraddPitt>
this channel has gone so far down hill
litn has joined #ruby
<shevy>
not yet someone has to do ?guys :>
<workmad3>
BraddPitt: we hit rock bottom... and kept on digging! ;)
<roolo>
Is there way in Jekyll to define dependencies?
<roolo>
Example: I change one post and I want also tags page to be regenerated
<havenwood>
BraddPitt: Happy to discuss in #ruby-offtopic or #ruby-community.
<litn>
hi guys, is there a better or more barebones framework than ruby on rails?
<shevy>
lol
<baweaver>
litn: Sinatra
DCameronMauch has joined #ruby
<BraddPitt>
well havenwood I would like to but it seems people just avoid discussion there
<shevy>
litn sinatra and padrino perhaps
christiandsg has quit [Ping timeout: 265 seconds]
<BraddPitt>
litn try python and flask
<havenwood>
litn: Roda
<baweaver>
Padrino is Sinatra with some extra features
<shevy>
and cute little beavers as icons \o/
<havenwood>
litn: Roda is lovely! By the maintainer of Sequel.
<baweaver>
just saying, being design-challenged does not equate to a bad framework.
krz has quit [Quit: WeeChat 1.2]
<havenwood>
^
ferhaty has joined #ruby
<sstangl>
hi BraddPitt, do you know what memory model the ruby VM requires? asking for WebAssembly reasons.
<havenwood>
It's aesthetically lovely.
<shevy>
though, cgi with some modifications like cgi-exception and such
<havenwood>
Minimalist. I enjoy the code.
<baweaver>
See: OpenBSD
<havenwood>
:D
<litn>
shevy: really?
<baweaver>
shevy lies
<baweaver>
frequently
oatzhakok has joined #ruby
<shevy>
litn yep but mostly because I switched from php to ruby in like 2003 or so
roolo_ has joined #ruby
<litn>
do you guys really use cgi
<shevy>
I really do!
<litn>
that's bad
<sstangl>
cgi is fine
<litn>
it's fine for small projects that are sub 100 users
<sstangl>
it scales up to a few ten thousand users no problem
<litn>
maybe
<BraddPitt>
lmao don't you use cgi too litn
<havenwood>
litn: Very black and white? Bad and good?
<litn>
no
<sstangl>
no cgi is good these days
<BraddPitt>
I remember us talking about it a while ago
<litn>
cgi is good for small projects
<havenwood>
litn: cgi isn't commonly used with Ruby but you see it
<shevy>
well, when you have a class in ruby, then you just serve it or the string, so you could do so via a .cgi file or rack or anything else really
<BraddPitt>
or FCGI
<baweaver>
I like CGI too. Easier to hack.
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<litn>
havenwood: maybe when you let idiots like shevy try writing web apps with ruby
<litn>
baweaver: fcgi usually
<litn>
but I will use cgi if lazy for something only I or a doezn people will be using
<havenwood>
litn: don't insult folk here
<litn>
sorry guys
<havenwood>
litn: please be nice
k3asd` has quit [Ping timeout: 260 seconds]
<havenwood>
!mute litn
<shevy>
and I don't have any high traffic, in fact, I only ever had two people ever contact me about anything I wrote in like the last 6 years; one complained about lack of documentation (he was right), the other reported a bug
<BraddPitt>
ahahaha
<BraddPitt>
?folk
<ruboto>
I don't know anything about folk
jordanm has joined #ruby
<shevy>
ah unmute him, he wrote sorry :D
<havenwood>
!unmute litn
<BraddPitt>
hi litn
<havenwood>
Oh, apparently a troll.
<litn>
hi BraddPitt
<havenwood>
!mute litn
<shevy>
hehehe
<BraddPitt>
welp
<BraddPitt>
good to see we believe in second chances here
<sstangl>
just a rollercoaster of emotions here lately
<havenwood>
BraddPitt: When folk announce via PM they're trolling...
<havenwood>
BraddPitt: That tends to give it away.
* baweaver
sighs at lack of maturity, goes back to work
rubie has quit [Remote host closed the connection]
<shevy>
some IRC nicks are dead give-aways
zendrix has joined #ruby
<oatzhakok>
shevy: excuse me
<oatzhakok>
my nick is my 4chan tripcode
<oatzhakok>
so
<shevy>
come on...
lipoqil has quit [Quit: Leaving...]
<craysiii>
16^0.5chan is lame.
<BraddPitt>
nice meme craysiii
<oatzhakok>
:g 16^0.5
roolo has joined #ruby
<BraddPitt>
not how this botto works oatzhakok
<oatzhakok>
which one does google
roolo has quit [Client Quit]
<craysiii>
>> 16^0.5
<ruboto>
craysiii # => Float can't be coerced into Float (TypeError) ...check link for more (https://eval.in/423856)
<BraddPitt>
your browser
baweaver has quit [Remote host closed the connection]
<craysiii>
oh
<shevy>
lol
<craysiii>
oh
<craysiii>
brain hurt
<oatzhakok>
kek
lipoqil has joined #ruby
ta has joined #ruby
<oatzhakok>
?guys
<ruboto>
Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
hoggy_ has quit [Quit: hoggy_]
<oatzhakok>
folks is a bullshit term
<oatzhakok>
just say "people"
yardenbar has quit [Quit: Leaving]
<oatzhakok>
man
<havenwood>
oatzhakok: Don't spam the bot.
<oatzhakok>
i hate politicians who say "folks"
<BraddPitt>
ahahahahaha
<oatzhakok>
havenwood: hey man
<BraddPitt>
yeah havenwood tell him to stop spaming
<oatzhakok>
i did it the one time
<oatzhakok>
>:(
<craysiii>
people is bullshit term
<craysiii>
should just use biological lifeform
<oatzhakok>
no
<oatzhakok>
that's stupid
<havenwood>
?ot
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<craysiii>
youre being exclusionary
<woodruffw>
i'm non-biological
<shevy>
it's the nick, he was destined to getting knocked out :)
<ruboto>
workmad3, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<adaedra>
wat
<woodruffw>
BraddPitt: excuse you
<shevy>
workmad3 hmm let me digest that ...
<oatzhakok>
?ot oatzhakok
<ruboto>
oatzhakok, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<oatzhakok>
um
<oatzhakok>
why so verbose
<BraddPitt>
I do not need to be excused but thank you woodruffw
einarj has joined #ruby
<oatzhakok>
it's like you want people to abuse the bots
<havenwood>
!ban oatzhakok !T 1h you were warned not to spam the bot
oatzhakok was banned on #ruby by ChanServ [oatzhakok!*@*]
oatzhakok was kicked from #ruby by ChanServ [Banned: you were warned not to spam the bot]
einarj_ has quit [Ping timeout: 260 seconds]
bsdbofh has quit [Quit: bsdbofh]
Jackneill has quit [Remote host closed the connection]
<workmad3>
shevy: if you really want a fun one = `0^0 = 1` ;)
lipoqil_ has quit [Remote host closed the connection]
<adaedra>
that's math
<shevy>
my old weakness
litn has left #ruby [#ruby]
einarj_ has joined #ruby
minimuffins has quit [Ping timeout: 255 seconds]
<workmad3>
adaedra: I'm wondering if anyone is going to raise the point that my statement is only true in certain contexts where x^y has been made continuous at the origin...
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cantaberry has quit [Ping timeout: 265 seconds]
<craysiii>
i dont know whats real anymore
zenguy_pc has quit [Read error: Connection reset by peer]
<workmad3>
Mon_Ouie: hehe
codecop has quit [Quit: Išeinu]
<adaedra>
The flaw is at 1 = sqrt(1)
zenguy_pc has joined #ruby
cantaberry has joined #ruby
elepedus has joined #ruby
devoldmx has joined #ruby
JDiPierro has quit [Remote host closed the connection]
Azure has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
unver has quit [Remote host closed the connection]
banjara1 has joined #ruby
Mendenhall has joined #ruby
<workmad3>
adaedra: the flaw is that the step `sqrt(x * x) = sqrt(x) * sqrt(x)` isn't properly defined for x < 0
unver has joined #ruby
unver has quit [Client Quit]
zenguy_pc has joined #ruby
banjara has quit [Ping timeout: 244 seconds]
dopie has quit [Quit: This computer has gone to sleep]
<Mon_Ouie>
^ Especially confusing because usually you're taught about sqrt(a*b) = sqrt(a)*sqrt(b) before knowing about complex numbers, and people tend to assume properties like this generalize to negative numbers if they have square roots as well
sargas has joined #ruby
<workmad3>
^ also means that when most people are taught it, they either aren't shown or skip right over 'sqrt(a*b) = sqrt(a)sqrt(b) for a,b > 0`
zenguy_pc has quit [Read error: Connection reset by peer]
<heftig>
workmad3: where does it break?
Musashi007 has joined #ruby
platzhirsch has quit [Ping timeout: 260 seconds]
zenguy_pc has joined #ruby
unreal_ has joined #ruby
<workmad3>
Mon_Ouie: thanks btw, I feel I have learned something about maths recently now... a year or two ago, I'd have completely stumbled over that one
<heftig>
ah, that thing there
joe2 has quit [Ping timeout: 245 seconds]
arooni-mobile has quit [Ping timeout: 244 seconds]
JoshL_ has quit []
unreal has quit [Ping timeout: 256 seconds]
cornerma1 has joined #ruby
r_baron has quit [Quit: Page closed]
jeadre has quit [Remote host closed the connection]
<PaulVern>
I thought I was accessing the hosted_zone_id key
<Mon_Ouie>
PaulVern: ^ notice how this is written as :key => "value"? The key is not a String, but a Symbol
<PaulVern>
Mon_Ouie: Ah
dopamean_ has quit [Ping timeout: 272 seconds]
jesterfraud has joined #ruby
Inoperable has quit [Quit: Leaving]
busterarm has joined #ruby
einarj has quit [Remote host closed the connection]
yashinbasement has joined #ruby
acke has quit [Remote host closed the connection]
<yashinbasement>
what does srand(1) does in ruby
zendrix has quit [Remote host closed the connection]
Kallis has joined #ruby
giuseppesolinas has joined #ruby
zendrix has joined #ruby
PaulVern has quit [Quit: Leaving]
zendrix has quit [Remote host closed the connection]
<Mon_Ouie>
It sets the seed of the Random number generator. After a call to srand(1), subsequent calls to rand will consistently produce the same results.
rubie has quit [Remote host closed the connection]
devoldmx has joined #ruby
JEG2 has quit [Quit: Connection closed for inactivity]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
araujo has quit [Ping timeout: 246 seconds]
Yzguy has joined #ruby
Yzguy has quit [Max SendQ exceeded]
<baweaver>
yashinbasement: ^
Yzguy has joined #ruby
araujo has joined #ruby
<yashinbasement>
yes now I can see
<baweaver>
It happens on occasion.
bigredbo_ has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 255 seconds]
araujo has quit [Max SendQ exceeded]
<yashinbasement>
yeah maybe it's because of autojoin
WillAmes has quit [Remote host closed the connection]
<yashinbasement>
but I always get open on ror
Inoperable has joined #ruby
* baweaver
shrugs
<yashinbasement>
so my question what does srand 1 do
<baweaver>
who knows, strange things happen.
WillAmes has joined #ruby
<baweaver>
Mon_Ouie: It sets the seed of the Random number generator. After a call to srand(1), subsequent calls to rand will consistently produce the same results.
<baweaver>
(reposting)
araujo has joined #ruby
<yashinbasement>
ohhh
<yashinbasement>
right
Mendenhall has quit [Ping timeout: 245 seconds]
araujo has quit [Max SendQ exceeded]
<yashinbasement>
yeah there was a question that you need to guess what is next ruby random number
araujo has joined #ruby
rbennacer has joined #ruby
gamename has quit [Remote host closed the connection]
gamename has joined #ruby
giuseppesolinas has quit [Quit: Leaving]
sankaber has joined #ruby
yashinbasement has quit [Quit: Leaving]
<baweaver>
I'd just be cheeky: def random; 1 end # chosen by a fair random dice roll
AlphaAtom has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]