<jhass>
that HTML is crazy, random divs in the middle of the <tr>
idefine has joined #ruby
<acovrig>
jhass: yea… I was looking at it in Chrome’s inspector, and was wondering why I was getting the pagination given it was clearly not in that table; then I looked at the SC and it was in the table :/
<jhass>
yeah inspectors show the parsed DOM tree, often misleading as to the actual source
Uptime has quit [Killed (christel (Bring a plate, it will be sweet as ...))]
solocshaw has joined #ruby
skcin7 has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 256 seconds]
firstdayonthejob has quit [Ping timeout: 255 seconds]
Ropeney has joined #ruby
colleenmcguckin has quit [Read error: Connection reset by peer]
B1n4r10 has joined #ruby
colleenmcguckin has joined #ruby
jbrhbr has quit [Quit: Leaving.]
Uptime has joined #ruby
charliesome has joined #ruby
nateberkopec has joined #ruby
drys has joined #ruby
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
colleenmcguckin has quit [Read error: Connection reset by peer]
colleenmcguckin has joined #ruby
f00bar-32 has joined #ruby
houhoulis has quit [Remote host closed the connection]
baweaver has joined #ruby
jjwright has quit [Quit: leaving]
houhoulis has joined #ruby
jbrhbr has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
f00bar-32 has quit [Ping timeout: 240 seconds]
Regulati_ has quit [Remote host closed the connection]
astrobunny has joined #ruby
bigmac has quit [Ping timeout: 250 seconds]
bithon has quit [Quit: WeeChat 1.3]
bithon has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
bithon has quit [Changing host]
bithon has joined #ruby
jun_ has joined #ruby
Drakevr has quit [Ping timeout: 245 seconds]
bigmac has joined #ruby
<hxegon>
TFW you have no choice but to dive into somebody's gross repo
<hxegon>
"why is the gemfile in the spec folder?" "Is this copy-pasted?"
SCHAAP137 has joined #ruby
ascarter has joined #ruby
<hxegon>
"Why does every other line have a long comment?" The answers, I may never know.
<hxegon>
"how did this get 86 stars"
jbrhbr has quit [Quit: Leaving.]
pika_pika has joined #ruby
jbrhbr has joined #ruby
rehat has quit [Ping timeout: 246 seconds]
<shevy>
lol
<blub>
hi shevy
jbrhbr has quit [Client Quit]
hizenger has quit [Ping timeout: 252 seconds]
Drakevr has joined #ruby
tulak has quit [Remote host closed the connection]
acovrig has quit [Quit: acovrig]
B1n4r10 has quit [Ping timeout: 255 seconds]
kies has quit [Ping timeout: 272 seconds]
<hxegon>
"why wont this mofo merge any of the clearly necessary PRs?"
CloCkWeRX has joined #ruby
moeabdol1 has quit [Quit: WeeChat 1.3]
whippythellama has quit [Quit: WeeChat 1.3]
<hxegon>
"is that why there are 71 forks?"
<shevy>
hey blub
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramortegui has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stannard has joined #ruby
postmodern has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
pawnbox has joined #ruby
jbrhbr has joined #ruby
howdoicomputer has joined #ruby
stannard has quit [Ping timeout: 265 seconds]
mary5030 has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
ascarter has joined #ruby
charliesome has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
dmolina has quit [Quit: Leaving.]
howdoicomputer has quit [Ping timeout: 240 seconds]
TomPeed has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
mary5030 has quit [Ping timeout: 272 seconds]
ruid has joined #ruby
ruid has joined #ruby
Axy has quit [Ping timeout: 250 seconds]
bbert has joined #ruby
bbert has joined #ruby
DLSteve has joined #ruby
beast has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
howdoicomputer has joined #ruby
atomical has joined #ruby
toretore has quit [Ping timeout: 250 seconds]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvon has joined #ruby
Mia has quit [Ping timeout: 256 seconds]
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Ping timeout: 240 seconds]
<lessless>
something like arguments in JS, or clever use of the splat operator?
beast has joined #ruby
gix has quit [Ping timeout: 250 seconds]
Bloomer has joined #ruby
atomical has joined #ruby
shiru has quit [Ping timeout: 246 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Bloomer has quit [Remote host closed the connection]
gix has joined #ruby
boshhead has quit [Quit: No Ping reply in 180 seconds.]
pawnbox_ has joined #ruby
Guest25637 is now known as saneax_AFK
bronson has joined #ruby
Mark-6ma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TotenSieDieJuden has joined #ruby
boshhead has joined #ruby
<TotenSieDieJuden>
hallo
yeticry has joined #ruby
yeticry_ has quit [Read error: Connection reset by peer]
blackgoat has quit [Ping timeout: 240 seconds]
juddey has quit [Ping timeout: 240 seconds]
Mr_Psmith has joined #ruby
beast has quit [Quit: Leaving]
pawnbox has quit [Ping timeout: 265 seconds]
<Mr_Psmith>
Hi friends; I am a python and Go programmer. A graduate student asked me to help with her ruby script. To do this I need to figure out how to drop back into the REPL (Irb) after running the script AND be able to inspect values. So far I can do irb -r ./script.rb or from the irb> load ‘./script.rb’ but in neither case can I inspect variables in scope fo the script. Help!
yqt has quit [Ping timeout: 240 seconds]
<jhass>
?pry Mr_Psmith
<ruboto>
Mr_Psmith, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
<Mr_Psmith>
Thank you!
<jhass>
!ban TotenSieDieJuden !T 1w bad nick
TotenSieDieJuden was banned on #ruby by ChanServ [TotenSieDieJuden!*@*]
TotenSieDieJuden was kicked from #ruby by ChanServ [Banned: bad nick]
<mozzarella>
what does it mean?
<Mr_Psmith>
mozzarella: Something like Kill the Jews
Yzguy has quit [Quit: Cya]
EllisTAA has joined #ruby
astrobun_ has joined #ruby
<EllisTAA>
what is the most efficient way to extract the 56% from this string ‘Up to 56% Off Fitness Classes at Yubalance’
<jhass>
lessless: you could do **kwargs on both, that would add a level of stacktrace on invalid args
<jhass>
ellistaa: extracted = "56%"
<EllisTAA>
jhass: but i wont always know what the percent is
<jhass>
ellistaa: I'm only working from the sample input you've given
<EllisTAA>
i thought maybe i could somehow use regex but that didn’t seem to work
<mozzarella>
>> 'Up to 56% Off Fitness Classes at Yubalance'[/\d+%/]
<EllisTAA>
mozzarella: what is that? looks like a regex but i haven’t seen that syntax
<jhass>
&ri String#[]
<`derpy>
method `String#[]`: Element Reference --- If passed a single +index+, returns a substring of one cha… • http://rubydoc.info/stdlib/core/String#%5B%5D-instance_method
<EllisTAA>
cool thanks
chouhoulis has joined #ruby
kies has quit [Ping timeout: 265 seconds]
Contigi has joined #ruby
<lessless>
jhass, thanks!
chouhoulis has quit [Ping timeout: 255 seconds]
astrobun_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
Bloomer has joined #ruby
mallu has joined #ruby
astrobun_ has quit [Remote host closed the connection]
<mallu>
what is that method for repeating whatever you pass n times?
<wolffles>
(two_sum([1, 3, 5, -3]) I need to make a method where a pairs sum is = 0 … i made a method but its 17 lines long just wondering if, there is a built in method for arrays
ur5us has joined #ruby
<wolffles>
(two_sum([1, 3, 5, -3]) == [1,3] is the answer
<jhass>
you mean [1, -3]?
<wolffles>
[1,3] is array position so 3,-3
<jhass>
right
astrobu__ has joined #ruby
<floatingpoint>
yo
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stannard has quit [Remote host closed the connection]
<EllisTAA>
thanks
jdm has quit [Quit: Leaving]
yfeldblum has joined #ruby
<floatingpoint>
yo, does the initialize method work with default value (e.g. def initialize(somevar=20) ... )
ur5us has joined #ruby
<jhass>
?try
<ruboto>
Why don't you try it and see for yourself?
yfeldblum has quit [Remote host closed the connection]
dfinninger has joined #ruby
yfeldblum has joined #ruby
idefine has quit [Remote host closed the connection]
colegatron has quit [Ping timeout: 246 seconds]
dfinninger has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 240 seconds]
<hagabaka>
yay I made the leaderboard
cassioscabral has quit [Quit: cassioscabral]
<wolffles>
jhass: thanks for the help, had to tweak to include Nil but its much, much cleaner than my original.
celly has quit [Remote host closed the connection]
AnoHito has joined #ruby
cassioscabral has joined #ruby
cassioscabral has quit [Client Quit]
<floatingpoint>
i love it when people say TIAS. IT IS LITERALLY MY FAVORITE THING IN THE WORLD BECAUSE I LOVE TO WASTE MY TIME ASKING A QUESTION ONLY TO BE TOLD TO TRY IT MYSELF. I CLEARLY WOULDN'T HAVE DECIDED TO ASK IN THIS CHANNEL BECAUSE IT WOULD BE SIGNIFICANTLY QUICKER THAN WRITING A BUNCH OF THROWAWAY CODE TO TEST A CONCEPT THAT COULD BE ADDRESSED IN MERE SECONDS BY ASKING SOMEONE. I ALSO LOVE HOW SOME PEOPLE GO OUT OF THEIR WAY TO TELL ME TO TRY
<floatingpoint>
IT MYSELF BECAUSE THEY ARE SO CLEARLY IRKED THAT SOMEONE IS ASKING A QUESTION ABOUT A FACENT OF A LANGUAGE IN THAT LANGUAGE'S COMMUNITY CHANNEL. CLEARLY, THE POINT OF THE CHANNEL IS NOT TO DISCUSS RUBY AND ASSIST THOSE IN LEARNING ABOUT THE LANGUAGE IN THE MOST EFFICIENT MANNER POSSIBLE. RATHER, AS WE ALL KNOW, SOFTWARE ENGINEERS DO ENJOY BEING AS INEFFICIENT AS POSSIBLE, SO THE MOST LOGICAL ANSWER TO A QUERY ABOUT RUBY WOULD BE TO TAKE
<floatingpoint>
ONE'S OWN TIME TO TELL SOMEONE TO WRITE A BUNCH OF THROWAWAY CODE INSTEAD OF TAKING TWO SECONDS TO ANSWER SAID QUESTION. OH WAIT, THAT'S A BUNCH OF BULLSHIT, AND SO IS IT WHEN SOMEONE SAYS TIAS BECAUSE THEY DO NOT HAVE THE MATURITY AND/OR SOCIAL MANNERISMS TO ANSWER A QUESTION PLAINLY OR IGNORE IT ENTIRELY.
<bithon>
wow calm down there cowboy
<bithon>
put that gun away, nobody has to get hurt
cassioscabral has joined #ruby
crdpink2 has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
crdpink has quit [Ping timeout: 250 seconds]
nkwsy has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
techsethi has joined #ruby
saneax_AFK is now known as saneax
saneax is now known as Guest46104
go|dfish has quit [Remote host closed the connection]
smactive has quit [Remote host closed the connection]
seitensei has quit [Remote host closed the connection]
howdoicomputer has joined #ruby
sigurding has joined #ruby
wolffles has quit [Quit: wolffles]
ur5us has joined #ruby
mahk has joined #ruby
jun_ has quit [Read error: Connection reset by peer]
jun_ has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
mahk has quit [Client Quit]
claw has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby
mahk has joined #ruby
ur5us has quit [Remote host closed the connection]
solars has quit [Ping timeout: 240 seconds]
arooni has quit [Ping timeout: 260 seconds]
devoldmx has quit [Remote host closed the connection]
anisha has joined #ruby
jbrhbr has quit [Quit: Leaving.]
go|dfish has joined #ruby
aufi has joined #ruby
claw has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
ekem is now known as mekekem
Madhur_ has quit [Ping timeout: 240 seconds]
gizmore has joined #ruby
djbkd has quit [Remote host closed the connection]
skcin7 has joined #ruby
gizmore|2 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
skcin7 has quit [Client Quit]
msankhala has quit [Quit: This computer has gone to sleep]
gizless has quit [Ping timeout: 240 seconds]
steffkes has quit [Ping timeout: 265 seconds]
ss_much has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
techsethi has quit [Quit: techsethi]
firstdayonthejob has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
ohaibbq has quit [Quit: Leaving...]
techsethi has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
lyoshajapan has quit [Remote host closed the connection]
chouhoulis has joined #ruby
lyoshajapan has joined #ruby
bMalum has joined #ruby
rakm has joined #ruby
troulouliou_div2 has joined #ruby
nerium has quit [Quit: nerium]
<rakm>
hi, i've gotten a sqlite3 database of icons, and presumably images are stored in this db as a blob field. i'm trying to read this with the ruby client and the file is coming out as corrupted. on the insert side, i see some code that does `s/1/12/g` and `s/\0/11/g`. anyone know why that would be?
howdoicomputer has quit [Ping timeout: 256 seconds]
<rakm>
also possible that i'm trying to read the data wrong, or that the blob doesn't have what i think it has. using this method to read: http://zetcode.com/db/sqliteruby/images/
cpup has quit [Ping timeout: 256 seconds]
ur5us has quit [Remote host closed the connection]
juddey has joined #ruby
cpup has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
bMalum has quit [Ping timeout: 256 seconds]
janelleb has joined #ruby
mary5030 has quit [Remote host closed the connection]
jas02 has joined #ruby
tomaz_b has joined #ruby
davedev2_ has joined #ruby
andikr has joined #ruby
jbrhbr has joined #ruby
davedev24 has quit [Ping timeout: 260 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackgoat has joined #ruby
phantummm has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
rsc___ has joined #ruby
Andy01012016 has joined #ruby
gizmore has joined #ruby
gizmore has quit [Changing host]
gizmore has joined #ruby
certainty-web has joined #ruby
<certainty-web>
moin
gizmore|2 has quit [Ping timeout: 255 seconds]
techsethi has quit [Quit: techsethi]
yfeldblum has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
minimalism has quit [Quit: leaving]
EllisTAA has quit [Quit: ellistaa]
B1n4r10 has joined #ruby
mahk has quit [Quit: quit]
mahk has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
dimik has quit [Ping timeout: 240 seconds]
kmckelvi1 has quit [Quit: WeeChat 1.3]
djbkd has joined #ruby
TomyWork has joined #ruby
solars has joined #ruby
B1n4r10 has quit [Ping timeout: 255 seconds]
vondruch has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
devbug_ has joined #ruby
kies has quit [Ping timeout: 265 seconds]
agent_white has quit [Quit: Lost terminal]
<Veejay>
Hello everyone, generally speaking, is Net::HTTP the most memory efficient way to make HTTP requests in Ruby?
Contigi has quit [Ping timeout: 272 seconds]
devbug_ has quit [Ping timeout: 260 seconds]
zast has quit [Remote host closed the connection]
<j416>
Net::HTTP is in standard library and is a common thing to use; I would be surprised if that is implemented in a memory-clumsy way, but this is ruby and if performance is of great concern you may want to consider a different language
juddey has quit [Ping timeout: 255 seconds]
<Veejay>
I'm using a queue and a bunch of threads for parallel file copy operations from a Rackspace container to another Rackspace container (currently using Fog to do so). I'm thinking of ditching Fog altogether and executing the HTTP Copy operations myself and I was looking for the barest solution
troulouliou_div2 has quit [Quit: Leaving]
agent_white has joined #ruby
<Veejay>
j416: Thanks
baweaver has quit [Remote host closed the connection]
hagabaka has quit [Ping timeout: 255 seconds]
<j416>
I have not used Fog, I don't know if it has performance issues
psy_ has quit [Remote host closed the connection]
<Veejay>
j416: Not it does per se, but it has a tendency to be an all-encompassing solution for all things cloud ™
Balzrael has joined #ruby
<Veejay>
+that
<Veejay>
Handling all different cloud providers, etc.
msankhala has joined #ruby
blackms has quit [Quit: Leaving]
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
rgtk has joined #ruby
<Veejay>
It doesn't exactly qualify as "lean"
devoldmx has joined #ruby
baweaver has joined #ruby
<j416>
Veejay: I'm not sure what you're doing, but if performance is a problem and the only thing you're doing is copying stuff from one place to the other in a parallel manner, it sounds to me like Go could be a nice fit.
Hounddog has joined #ruby
kp666 has joined #ruby
juddey has joined #ruby
<Veejay>
Alright, thanks a lot
<j416>
Go handles concurrency nicely (and can do threads, which ruby can't), and it has good support for HTTP
<j416>
just a thought.
<ljarvis>
wat? ruby can't do threads?
<j416>
surprise surprise! :D
rgtk has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 265 seconds]
madcodes has joined #ruby
djbkd has quit [Remote host closed the connection]
polysics has joined #ruby
<j416>
MRI runs on a single core, and even as though some implementations support real threading, gems that you may be using may not be built with concurrency in mind, since ruby is not a language generally seen as something you would do multi-threaded multi-core development in
solars has quit [Ping timeout: 256 seconds]
<j416>
so I suppose if you're very careful, it might work™.
huyderman has joined #ruby
<Veejay>
j416: Threads actually have an extremely positive impact on performance in our use case
edwinvdgraaf has joined #ruby
<j416>
(and, I didn't come here to bash on ruby, ruby is a great language in many ways, and _shouldn't_ be good at everything, or it wouldn't be a great language anymore)
<Veejay>
Because the Rackspace Cloud Files API handles concurrent requests nicely
<ljarvis>
so "ruby can't do threads" is actually absolutely incorrect
<Veejay>
But it's memory that is killing us
<j416>
Veejay: if the CPU usage is your bottleneck, then MRI ruby threads won't help, but if disk IO is the problem, maybe it will
<j416>
I'm speculating.
<Veejay>
j416: It's memory
firstdayonthejob has quit [Ping timeout: 260 seconds]
<ljarvis>
don't get me wrong, I'm all about the right tool for the job and Ruby doesn't always fit, but lets not throw around buzz statements
<j416>
ljarvis: buzz?
<Veejay>
ljarvis: I agree, Ruby does threads fine
<ljarvis>
yes, it's like saying ruby doesn't scale
<j416>
Veejay: in that case, maybe threads are not your solution to performance, but a tool to get a nicer implementation?
<j416>
:)
davedev2_ has quit []
<j416>
ljarvis: I didn't come here to start a flame war, so please don't interpret it that wya.
<j416>
way*
<j416>
if you think ruby threads are awesome, use them
<Veejay>
j416: Threads give us a x15 speedup VS serial operations in this case
<ljarvis>
I didnt' say they were awesome (I generally think they're not) so I probably agree, I just didn't like "can do threads, which ruby can't" is all
<j416>
Veejay: nice! so CPU is not the issue, but rather HTTP request handling
<j416>
Veejay: I suppose.
ascarter has joined #ruby
<j416>
Veejay: back to the original question -- I don't know if bare Net::HTTP will give you a lot of performance boost, maybe it will, but a wild guess is that you won't see another 15x increase
certainty-web has quit [Ping timeout: 252 seconds]
<ljarvis>
I concur with ^ and would say the library you use is very unlikely to be the bottleneck to http performance
<j416>
Veejay: I would do any or all of: 1) look at the implementation of fog and see if it looks good for your use-case; 2) build your own maybe-faster version; 3) build the thing in a language built for what you are doing
<ljarvis>
fog is a monster, but it uses excon underneath for http connections
vasilakisfil has joined #ruby
<vasilakisfil>
hey.. would that make sense somewhere? h = {lambda { puts 'hey' } => lambda { puts "hello world"}}
<j416>
Veejay: or 4) accept what you have :)
rsc___ has quit [Quit: rsc___]
<vasilakisfil>
how can I access the key ?
<ljarvis>
Veejay: no
<j416>
vasilakisfil: what is your use-case for it?
<Veejay>
ljarvis: Regarding Excon, not sure I understand... Do you mean it's a good thing it uses Excon, or like "it's a behemoth, but oh well what're you gonna do, it uses Excon..."
<ljarvis>
Veejay: good question. I don't really think excon is any better/worse than net/http. The API is a bit nicer probably, and for picking a http library that + features you require should be important things because performance shouldn't be
<Veejay>
Hilarity ensues
nunchuck has quit [Ping timeout: 272 seconds]
akahn has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
curses has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
vondruch has quit [Ping timeout: 256 seconds]
baweaver has quit [Remote host closed the connection]
rattatmatt has quit [Quit: Leaving]
agent_white has joined #ruby
jackjackdripper1 has joined #ruby
Snowy has joined #ruby
wmdrossard has joined #ruby
jackjackdripper has quit [Ping timeout: 240 seconds]
jbrhbr has quit [Quit: Leaving.]
skade has joined #ruby
krz has joined #ruby
skade has quit [Client Quit]
madcodes has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
rsc___ has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rsc___ has quit [Client Quit]
Guest46104 is now known as saneax_AFK
elaptics`away is now known as elaptics
coderhut has joined #ruby
skade has joined #ruby
mikecmpbll has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
psy_ has joined #ruby
djbkd has joined #ruby
monthy has joined #ruby
chthon has joined #ruby
seitensei has joined #ruby
seitensei has joined #ruby
KnownSyntax has quit [Read error: Connection reset by peer]
HowardwLo has joined #ruby
HowardwLo has left #ruby [#ruby]
madcodes has joined #ruby
rsc___ has joined #ruby
kies^ has quit [Ping timeout: 246 seconds]
cazzoduro has joined #ruby
coderhut has quit [Ping timeout: 252 seconds]
vondruch has joined #ruby
seitensei has quit [Ping timeout: 246 seconds]
djbkd has quit [Remote host closed the connection]
_main_ has joined #ruby
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
lightstalker has joined #ruby
pawnbox has quit [Remote host closed the connection]
devbug has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
__main__ has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
webus has joined #ruby
_main_ is now known as __main__
jun_ has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
trwyth has joined #ruby
webus has quit [Client Quit]
devoldmx has joined #ruby
webus has joined #ruby
tulak has joined #ruby
Anderson69s has joined #ruby
trwyth has quit [Read error: Connection reset by peer]
skade has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
jun_ has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
polysics has quit []
jun_ has quit [Remote host closed the connection]
lyoshajapan has quit []
kies has joined #ruby
tomaz_b has quit [Quit: Leaving]
dmolina has joined #ruby
calderonroberto has quit [Ping timeout: 260 seconds]
juddey has quit [Ping timeout: 240 seconds]
howdoicomputer has joined #ruby
yes`r has joined #ruby
marr has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
spacemud has joined #ruby
<elifoster>
Veejay: If we're still talking about http libraries, I would heavily suggest HTTPClient. I haven't really read that conversation too much, but it's been perfect for all of my web api accessing/http needs.
<elifoster>
I found performance boosts when using it, but I can't really say why as I haven't read the code for it or Net/HTTP.
howdoicomputer has quit [Ping timeout: 272 seconds]
haraoka has quit [Ping timeout: 256 seconds]
Mon_Ouie has quit [Ping timeout: 256 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
chouhoulis has quit [Ping timeout: 246 seconds]
__main__ has quit [Read error: Connection reset by peer]
__main__ has joined #ruby
baweaver has joined #ruby
mloy has quit [Quit: Leaving]
blaxter has joined #ruby
_main_ has joined #ruby
roshanavand has joined #ruby
rodfersou has joined #ruby
__main__ has quit [Ping timeout: 240 seconds]
baweaver has quit [Ping timeout: 240 seconds]
_main_ is now known as __main__
SCHAAP137 has joined #ruby
B1n4r10 has joined #ruby
mark3 has joined #ruby
djbkd has joined #ruby
Juanchito has joined #ruby
<Veejay>
elifoster: I'm currently using RestClient
<Veejay>
I tried reducing the number of threads and ditching Fog, the impact on memory use is huge (at the expense of some speed, but that's OK)
<elifoster>
I have no experience with RestClient.
<elifoster>
There are a number of gems I use that use it, but I've never personally used it.
benhuda has joined #ruby
B1n4r10 has quit [Ping timeout: 265 seconds]
siddharth has joined #ruby
roshanavand has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 265 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phantummm has joined #ruby
Hounddog has quit [Remote host closed the connection]
azgil has joined #ruby
kp666 has quit [Ping timeout: 246 seconds]
howdoi has joined #ruby
tulak has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
phantummm has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
blaxter has quit [Ping timeout: 240 seconds]
nettoweb has quit [Client Quit]
FooMunki has joined #ruby
rsc___ has quit [Quit: rsc___]
rsc___ has joined #ruby
Hounddog has joined #ruby
djbkd has joined #ruby
sgambino has joined #ruby
Peg-leg has joined #ruby
Hounddog has quit [Client Quit]
Anderson69s has quit [Quit: Time to EAT, SLEEP OR WHATEVER BYE!!!!!]
frem has quit [Quit: Connection closed for inactivity]
Hounddog has joined #ruby
SHyx0rmZ has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
rgtk has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
jschmid has quit [Quit: Leaving]
symm- has joined #ruby
jschmid has joined #ruby
roshanavand has joined #ruby
tvw has joined #ruby
platzhirsch has joined #ruby
Arnvald has quit [Remote host closed the connection]
rdark has joined #ruby
rgtk has quit [Ping timeout: 246 seconds]
agent_white has joined #ruby
nfk|laptop has joined #ruby
lessless has quit [Ping timeout: 240 seconds]
SHyx0rmZ has joined #ruby
roshanavand has quit [Ping timeout: 272 seconds]
astrobu__ has joined #ruby
psy_ has quit [Remote host closed the connection]
blaxter has joined #ruby
astrobun_ has quit [Ping timeout: 265 seconds]
yos7ph has joined #ruby
solars has joined #ruby
Paradox has quit [Remote host closed the connection]
brixen has quit [Ping timeout: 250 seconds]
jackjackdripper1 has quit [Quit: Leaving.]
cdnsteve has joined #ruby
DaniG2k has joined #ruby
chouhoulis has joined #ruby
f4cl3y has quit [Ping timeout: 272 seconds]
yos7ph has quit [Quit: Leaving]
ruby-lang510 has joined #ruby
krz has quit [Ping timeout: 256 seconds]
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruby-lang510>
Hi all. Learning some ruby. I'm loading a file irb -r ./filename.rb so I can poke around ruby methods on my class instance. But it keeps throwing back NameError: undefined local variable or method `sample_instance' for main:Object
chouhoulis has quit [Ping timeout: 246 seconds]
<DaniG2k>
ruby-lang510: you have a variable sample_instance somewhere in filename.rb that is undefined
<DaniG2k>
check that file for "sample_instance"
<ruby-lang510>
It needs me to create an instance again new_instance = Class.new
smactive has joined #ruby
<shevy>
ruby-lang510 you need to use other ways to make it persistent
<ruby-lang510>
DaniG2k: Its defined. sample_instance = Class.new works
<ruby-lang510>
just doesn't persist in irb
sameerynho has joined #ruby
duncannz has quit [Remote host closed the connection]
<jhass>
ruby-lang510: that's expected, top level local variables are private to the file
<ruby-lang510>
So just create an instance again in rib?
<ruby-lang510>
irb*
startupality has joined #ruby
<jhass>
better yet just assign the variable inside irb, not your file
f4cl3y has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
symm- has quit [Ping timeout: 265 seconds]
smactive has quit [Ping timeout: 260 seconds]
roshanavand has joined #ruby
cassioscabral has joined #ruby
cassioscabral has quit [Client Quit]
blaxter has quit [Ping timeout: 256 seconds]
Averna has joined #ruby
phantummm has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
__main__ has joined #ruby
<ruby-lang510>
jhass: Thanks. Another thing. Within irb, why does Custom_Class.methods(false) with one custom method, return an empty array?
ta has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
ta has joined #ruby
<jhass>
you want MyClass.instance_methods(false) or MyClass.new.methods(false)
devbug has joined #ruby
coderhut has joined #ruby
mblagden has quit [Ping timeout: 250 seconds]
<ruby-lang510>
Interesting. Student.instance_methods(false) returns the right array. Student.new.methods(false) returns empty array
phantummm has quit [Ping timeout: 255 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
oddmunds has joined #ruby
brixen has joined #ruby
<jhass>
uh right, my bad
<jhass>
.methods(false) only returns an objects singleton methods
jas02 has quit [Remote host closed the connection]
<ruby-lang510>
Thank you!
<ruby-lang510>
why can't i can instance_methods on the instance variable though?
devbug has quit [Ping timeout: 260 seconds]
<ruby-lang510>
call*
Anderson69s has joined #ruby
Paradox has joined #ruby
<jhass>
because your instance variable does not point to a class or module object but most likely an instance of it
<jhass>
?pry
<ruboto>
Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
Anderson69s has quit [Client Quit]
Averna has quit [Ping timeout: 272 seconds]
blaxter has joined #ruby
dionysus69 has joined #ruby
<DaniG2k>
i wonder why the Rails guys decided to use byebug by default instead of pry
livcd has quit [Changing host]
livcd has joined #ruby
idefine has joined #ruby
<ruby-lang510>
Nice!
<ruby-lang510>
Thanks
<ruby-lang510>
Taking a look
brixen has quit [Ping timeout: 255 seconds]
Averna has joined #ruby
roshanavand has quit [Remote host closed the connection]
plsk has joined #ruby
Averna has quit [Max SendQ exceeded]
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
<platzhirsch>
DaniG2k: byebug is different to pry I believe
CloCkWeRX has joined #ruby
<platzhirsch>
While byebug is a debugger, pry is more a runtime/evaluation console
<jhass>
they do different things, yeah
<jhass>
hence there's a pry-byebug
<platzhirsch>
can be combined though
trwyth has joined #ruby
<DaniG2k>
didn't know that
trwyth has quit [Client Quit]
<DaniG2k>
i always used pry as a debugger
Averna has joined #ruby
brixen has joined #ruby
seitensei has quit [Ping timeout: 256 seconds]
Mark-6ma has joined #ruby
ruby-lang510 has quit [Quit: Page closed]
xlogic has joined #ruby
Rickmasta has joined #ruby
jud has quit [Quit: Leaving]
idefine has quit [Ping timeout: 256 seconds]
The_Phoenix has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
<jhass>
DaniG2k: so just install pry-byebug and you get break point and stuff
<jhass>
pry-stack_explorer is worth a look too
toretore has joined #ruby
Mark-6ma has quit [Client Quit]
startupality has quit [Quit: startupality]
vasilakisfil_ has joined #ruby
vasilakisfil has quit [Quit: Konversation terminated!]
devoldmx has joined #ruby
<yorickpeterse>
Does the MRI C API provide a way to get the class name of an object without allocating any new objects?
prestorium has joined #ruby
kobain has joined #ruby
zotherstupidguy has joined #ruby
<yorickpeterse>
rb_class2name and the likes allocate new VALUEs, which fucks up things during a GC run
diegoviola has quit [Read error: Connection reset by peer]
<zotherstupidguy>
is there a simpler api gem than grape?
sameerynho has quit [Quit: Leaving]
heftig has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 265 seconds]
heftig has joined #ruby
nfk|laptop has quit [Ping timeout: 240 seconds]
sigurding has quit [Quit: sigurding]
bigkevmcd has quit [Quit: bbiab]
lxsameer has joined #ruby
roshanavand has joined #ruby
elifoster has quit [Quit: sleep]
FastJack has quit [Ping timeout: 250 seconds]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
moeabdol has quit [Ping timeout: 255 seconds]
nfk|laptop has joined #ruby
Mon_Ouie has joined #ruby
roshanavand has quit [Remote host closed the connection]
NET||abu- is now known as NET||abuse
astrobun_ has joined #ruby
skade has joined #ruby
dlitvak has joined #ruby
Averna has quit [Ping timeout: 265 seconds]
astrobu__ has quit [Ping timeout: 240 seconds]
howdoicomputer has joined #ruby
diegoviola has joined #ruby
astrobu__ has joined #ruby
FooMunki has quit [Quit: FooMunki]
chouhoulis has joined #ruby
FooMunki has joined #ruby
jas02 has joined #ruby
B1n4r10 has joined #ruby
astrobun_ has quit [Ping timeout: 256 seconds]
howdoicomputer has quit [Ping timeout: 272 seconds]
Vitor has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 260 seconds]
wmdrossard has quit [Ping timeout: 240 seconds]
B1n4r10 has quit [Ping timeout: 272 seconds]
nettoweb has joined #ruby
curses has quit []
toomus has joined #ruby
<toomus>
Hi all
DaniG2k has quit [Quit: leaving]
tulak has joined #ruby
dlitvak_ has joined #ruby
<shevy>
8 days to go until the new ruby
coderhut has quit [Quit: Page closed]
msankhala has quit [Quit: This computer has gone to sleep]
dlitvak has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
msankhala has joined #ruby
Snowy has quit []
solars has quit [Ping timeout: 265 seconds]
roshanavand has quit [Remote host closed the connection]
roshanav_ has joined #ruby
arup_r has joined #ruby
toomus has quit [Quit: Page closed]
skade has quit [Quit: Computer has gone to sleep.]
roshanav_ has quit [Remote host closed the connection]
ruby-lang557 has joined #ruby
jdm has joined #ruby
govg has quit [Ping timeout: 240 seconds]
blaxter has quit [Quit: foo]
wmdrossard has joined #ruby
ruby-lang557 has quit [Client Quit]
ruby-lang655 has joined #ruby
skade has joined #ruby
blaxter has joined #ruby
<ruby-lang655>
am using "data=system 'mycommand'" to run a system command and store the result in the 'data' variable. Problem is "puts data" is returning false and not the output of mycommand - any help / pointers?
skade has quit [Client Quit]
<jhass>
ruby-lang655: that's what system does. Use backticks to capture the output or yet better tell us what the command is and there's a chance you won't have to run it like that at all
<ruby-lang655>
hey jhass command is openssl ciphers \'LOW:aNull:eNULL\' | sed -e \'s/,/ /g\', getting a list of weak ciphers etc that I want to loop through in an array
<ruby-lang655>
(cheers for response)
skade has joined #ruby
<jhass>
mh, let's dig a bit
<jhass>
OpenSSL::Cipher.ciphers gives the full list for starters
kobain has quit [Read error: No route to host]
<ruby-lang655>
cool didn't know that, now looking to see if it can identify null / weak ciphers
chipotle has quit [Ping timeout: 255 seconds]
cazzoduro has quit [Ping timeout: 252 seconds]
llakjy has joined #ruby
monthy has quit [Ping timeout: 260 seconds]
spt0 has joined #ruby
krz has joined #ruby
c355e3b has joined #ruby
bigkevmcd has joined #ruby
moeabdol has joined #ruby
quazimodo has joined #ruby
xlogic has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cassioscabral has joined #ruby
Peg-leg has left #ruby [#ruby]
<jhass>
I can't even find the C API for this :/
cornerma1 has joined #ruby
tulak has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
cornerman has quit [Ping timeout: 272 seconds]
cornerma1 is now known as cornerman
chipotle has joined #ruby
roshanavand has joined #ruby
vasilakisfil_ has quit [Remote host closed the connection]
<astrobu__>
i can see why some people dont like ruby
<astrobu__>
its not for any good reason. i use ruby a lot
<jhass>
you didn't try to deploy Go or python or complex perl yet :P
<astrobu__>
but this time i actually have to guarantee that it will deploy into a few distros
<astrobu__>
heh
<astrobu__>
well, i will be dockering those
<ruby-lang547>
hey everyone I have a strange problem. I have three rails api app running in passenger behind an LB... They all should have the same settings.
<jhass>
?passenger
<ruboto>
I don't know anything about passenger
<astrobu__>
i just need to ruby here because my base scripts require
<jhass>
mh
dlitvak has quit [Ping timeout: 265 seconds]
<ruby-lang547>
on one node each rails instance uses 2gb of memory
<jhass>
!fact mk passenger Please join #passenger for help with it.
<ruboto>
jhass, I will remember that passenger is Please join #passenger for help with it.
<ruby-lang547>
its like garbage collection does not kick in until the app runs out of memory
<ruby-lang547>
I did what I could but I don't have any experience with ruby garbage collection
sdothum has joined #ruby
cassioscabral has quit [Client Quit]
Mon_Ouie has quit [Ping timeout: 272 seconds]
colegatron has quit [Ping timeout: 255 seconds]
<jhass>
see above
<jhass>
iirc they're europe based so might be lunch time for them, stick around in #passenger for an hour or two
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
roshanavand has joined #ruby
krz has joined #ruby
<Bish>
hi, kinda stupid question: what would be an easy way to "sign" small amounts of data, which is not cracked as easily?
<jmonreal>
jhass: bundle init? that would create the template file?
<Bish>
jmonreal: exactly
<jhass>
ruby-lang655: ever saw my follow up?
B1n4r10 has quit [Ping timeout: 246 seconds]
<jhass>
jmonreal: indeed
<agent_white>
Bish: Funny you mention that, I've been learning Sequel the past few days :)
<jmonreal>
jhass Bish how do I install bundle?
<jhass>
gem install bundler
<Bish>
agent_white: the guy who wrote it is a genius imho, it's great, keep using it
<vasilakisfil>
do lamdas return objects or something else ?
<jmonreal>
jhass: thanks
Dreamer3 has quit [Quit: Leaving...]
<yorickpeterse>
hm, TIL ObjectSpace.each_object can sorta run in the background on MRI
<jhass>
vasilakisfil: they return instances of the class Proc
<Bish>
agent_white: at first i was like "no this is crazy, why would you do that", but its great
dlitvak has quit [Ping timeout: 272 seconds]
<yorickpeterse>
I figured it would simply pause all threads, doesn't appear to be the case
techsethi has quit [Quit: techsethi]
FilipeChagas has quit [Quit: WeeChat 1.3]
anisha has quit [Quit: Leaving]
<agent_white>
Bish: Only issue I've had with it was setting up an "inherited" callback in the model class. I'm not experience enough to fix the issue, but it was getting called twice (I think Sequel::Model was being called along-side my main-child model)
<Bish>
jhass: super interesting that the $ prefix outputs the line where theses methods get added dynamcially, isn't it?
steffkes has quit [Ping timeout: 240 seconds]
solars has quit [Ping timeout: 265 seconds]
<jhass>
Bish: the magic is in Method#source_location
howdoicomputer has joined #ruby
blackgoat has quit [Quit: ..]
techsethi has joined #ruby
<Bish>
agent_white: well i never did such special stuff to it, never used models, even though i should've
<Bish>
but using strings as ruby code feels dirty
<agent_white>
Bish: Well worth it, even just empty ones like class Foo << Sequel::Model; end; ... just for having the accessors already setup.
<Bish>
at some point, i will have to use them, yes
<agent_white>
Though, the thing that bugs me is that you can set validators in the model... as well as primary keys, etc... so... do I set them up when I create the table? Or just in the model? etc.
<Bish>
when started the probject i naviely tried to do it generic, but it f* me in the *, and now im writing classes for each special case
<agent_white>
Not too much a fan of that (or rather the documentation not addressing it)
<Bish>
yeah that really feels weird, i think those get only evaluated when u insert/update data
Jackneill has joined #ruby
chouhoulis has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<jmonreal>
jhass Bish, after intalling the gem I still can't run bundle, is there a path that I need to add to PATH env?
kp666 has joined #ruby
<jhass>
jmonreal: if so gem install should have you informed so
<jhass>
jmonreal: post your gem env output to gist, the gem install bundler output too if you still have it
<jmonreal>
jhass: I had to export my .gem/ruby/......./bin
shredding has quit [Ping timeout: 240 seconds]
techsethi has quit [Client Quit]
howdoicomputer has quit [Ping timeout: 256 seconds]
aspire has joined #ruby
agent_wh1te has joined #ruby
<agent_wh1te>
Bish: So far though, I've really just used the model for helpers... like "last_name = f_name + l_name", etc. :P
<jmonreal>
and then to install the gems listed on the Gemfile? bundle install ?
agent_white has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
faisal_ has quit [Quit: Connection closed for inactivity]
chouhoulis has quit [Ping timeout: 265 seconds]
agent_wh1te is now known as agent_white
<jmonreal>
great
<jmonreal>
that worked
agent_white has quit [Changing host]
agent_white has joined #ruby
roshanav_ has joined #ruby
_stu_ has joined #ruby
kalopsian has joined #ruby
baweaver has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
TomPeed has joined #ruby
ramortegui has joined #ruby
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
AugustoC has joined #ruby
startupality has quit [Quit: startupality]
platzhirsch has left #ruby [#ruby]
<Bish>
agent_white: have you ever tried using .where with a block? that shit is magic
baweaver has quit [Ping timeout: 255 seconds]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
<agent_white>
Bish: Not yet! I've been using Sequel for... a little over a couple days ;)
xlogic has joined #ruby
<agent_white>
I'll need to try it though!
skade has joined #ruby
<Bish>
agent_white: you can "call" mysql "functions" in ruby, like they were ruby, i was like wuuaaat is happening
Bloomer has joined #ruby
<Bish>
but only to find out, there are better ways to do it
CloCkWeRX has quit [Ping timeout: 256 seconds]
<Bish>
still pretty impressive use of blocks / missing_method
Encapsulation has joined #ruby
benhuda has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brendan- has joined #ruby
scripore has quit [Quit: Leaving]
kalopsian has quit [Ping timeout: 265 seconds]
arup_r has quit [Remote host closed the connection]
lightstalker has quit [Ping timeout: 272 seconds]
stannard has joined #ruby
nettoweb has joined #ruby
rsc___ has quit [Quit: rsc___]
roshanavand has joined #ruby
rsc___ has joined #ruby
roshanav_ has quit [Read error: Connection reset by peer]
cassioscabral has quit [Quit: cassioscabral]
cassioscabral has joined #ruby
krz has quit [Read error: Connection reset by peer]
<hxegon>
ChameleonSix, I suggest trying irb and google before asking questions here
akem2 has quit [Read error: No route to host]
<ChameleonSix>
google is shit
BSaboia has joined #ruby
akem has joined #ruby
<hxegon>
ChameleonSix, no. It's how I learned programming, so for sure you're doing something wrong
<ljarvis>
google is better than any other web search engine for finding stuff, so I don't think that's accurate
c0m0 has quit [Ping timeout: 260 seconds]
<wolffles>
so this is my code (i = 0
<wolffles>
array = []
<wolffles>
while i < 100; array[i] << 2**i; i += 1 end) im getting undefined method << for nil:NIlClass
<apeiros>
if google is shit, then use whichever search engine you consider not shit
<ChameleonSix>
.push and unshift are used to add
<hxegon>
wolffles, try eval.in or gist for multiline code
<eam>
"they're all shit" is a reasonable and consistent opinion
<apeiros>
wolffles: because array[i] is nil
<ChameleonSix>
I didnt say all
<apeiros>
wolffles: think about it - why should array[i] be anything but nil? you initialize array as an empty array…
<wolffles>
just to define a variable i thought you could do that
<hxegon>
ChameleonSix, there is a reason the word 'google' means 'use a search engine', but if you have a problem with it just use bing.
<apeiros>
wolffles: sure. but all it does is create an empty array.
mrbignum has joined #ruby
<apeiros>
so again, what value did you expect to be at array[i]?
<ChameleonSix>
I cant complete a tutorial
<ChameleonSix>
can someone help me?
<wolffles>
i just needed a place holder so that array[i] << 2**i can push into
idefine has quit [Ping timeout: 246 seconds]
<hxegon>
ChameleonSix, don't ask to be helped, ask the questions directly.
<ChameleonSix>
Using the loop construct, add the current value of number to the numbers array. Inside of the loop, add 1 to the number variable. Use the break keyword to exit the loop once the numbers array has 3 items.
<ChameleonSix>
i should use the while loop
<ChameleonSix>
?
<eam>
wolffles: do you mean array << 2**i ?
<ChameleonSix>
I mean it is the best for this
<ChameleonSix>
while array.lenght <= 3
<eam>
wolffles: why are you trying to shovel it into array[i] ?
crankharder has quit [Ping timeout: 250 seconds]
<toretore>
ChameleonSix, that won't make use of the break keyword
<toretore>
you need an infinite loop
<ChameleonSix>
hmmm
<ChameleonSix>
if ?
<ChameleonSix>
or for
<hxegon>
ChameleonSix, while true I think
<toretore>
there are two main ways to do that: loop{} and while(true){}
<ljarvis>
loop { }
<wolffles>
its so i can just have an array for the powers of 2
dotix has joined #ruby
<eam>
wolffles: you want to shovel onto just "array"
<hxegon>
ChameleonSix, ljarvis has it
akem has quit [Read error: No route to host]
<ChameleonSix>
alright
<ChameleonSix>
sec
idefine has joined #ruby
akem has joined #ruby
<ljarvis>
wolffles: "apeiros> so again, what value did you expect to be at array[i]?" -- it is important that you answer this imo
<wolffles>
ohh
<eam>
wolffles: what you're doing is dereferencing the array index at array[i], which is nil, and shoveling onto nil -- which is why you get that error
<toretore>
wolffles, you have to understand what `array[i] <<` means
<ChameleonSix>
can i paste my code somewhere
<toretore>
and why it's not `array[i] =`
<hxegon>
ChameleonSix, gist
<wolffles>
i see push changes the spot it pushes into an array cuz it just adds on to it
<ChameleonSix>
it isnt working
<ChameleonSix>
sec
<eam>
wolffles: array[i] << val would be used in a two-dimensional array situation
<wolffles>
i was confused thanks all
<hxegon>
ChameleonSix, or eval.in
<ljarvis>
ChameleonSix: you dont have to write sec all the time, people will wait
<toretore>
?spacenotenter
<ruboto>
I don't know anything about spacenotenter
<wolffles>
ive never used eval.in no idea what it does
<ljarvis>
ChameleonSix: you have a loop inside a loop. I don't think you need that do you?
<ChameleonSix>
I dont
dionysus69 has joined #ruby
<ljarvis>
ok so you can remove the inside while loop
<toretore>
ChameleonSix, in general, programming is a lot about thinking. thinking first, then writing
<toretore>
you write first and then think
<ChameleonSix>
hmm
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kristianpaul has left #ruby [#ruby]
<ChameleonSix>
sec
rakm has joined #ruby
<ChameleonSix>
i get the error
<ChameleonSix>
The length of the `numbers` array was not 3.
akem2 has joined #ruby
SolarSailor has joined #ruby
<soahccc>
toretore: Hehe true. My family doesn't understand when I'm sitting somewhere looking holes into the air and they ask me what I'm doing and my response is just: "working" :)
akem has quit [Read error: Connection reset by peer]
mrbignum has quit [Remote host closed the connection]
chthon has quit [Ping timeout: 255 seconds]
<toretore>
lol
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has quit [Ping timeout: 272 seconds]
akem2 has quit [Read error: Connection reset by peer]
akem has joined #ruby
howdoicomputer has joined #ruby
<hxegon>
wolffles, you write your code in the box, hit submit and you are at a page which evaluates that code. so it's like a gist, but you can see what stack traces or output it has
<ljarvis>
ChameleonSix: "isn't working" isn't a very conclusive error
<ChameleonSix>
i mean it prints the error
<ChameleonSix>
in the tutorial
<ChameleonSix>
idk why
<ljarvis>
ChameleonSix: please wait more than 3 seconds for someone to answer before starting with "anyone?"
<ChameleonSix>
hmm ok
akem has quit [Ping timeout: 260 seconds]
<ljarvis>
I don't know what the question is, so can't really help
akem has joined #ruby
<hxegon>
ChameleonSix, your expecting an error? what error are you expecting?
ruby-lang968 has joined #ruby
eytanfb has joined #ruby
msankhala has quit [Ping timeout: 265 seconds]
howdoicomputer has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
nertzy has joined #ruby
<wolffles>
yay i solved my problem
<ruby-lang776>
http://pastebin.com/0sBCrcXR is listing low and null ciphers via openssh however I can't figure out how to iterate through the ciphers (in check_for?) as an array, can anyone help?
<ruboto>
ruby-lang776, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<hxegon>
wolffles, :D
mrtomme has quit [Ping timeout: 246 seconds]
<jhass>
ruby-lang776: don't join them when you want them separate
<hxegon>
not sure what you're trying to do here ChameleonSix
steffkes has joined #ruby
steffkes has joined #ruby
dfinninger has quit [Remote host closed the connection]
<hfp>
Hi all, I have a module whose private methods I'd like to test. I saw that you can use :send for objects to reach private methods but will it also work for a module? A module has no instance so on what do I call the send method?
eytanfb has quit [Remote host closed the connection]
<ruby-lang968>
ChameleonSix YOU can assign default values to a method
<ChameleonSix>
there is no default
<ChameleonSix>
in this case
dfinninger has joined #ruby
<hfp>
ChameleonSix: I think they mean to put the result of `get_answer()` into a variable
<ruby-lang968>
are you not writing the code?
<hfp>
so something like `answer = get_answer()`. Then your `answer` variable will hold whatever get_answer() returned and you can then parse it further
<KrzaQ>
Let's say I want to override method_missing for Hash, so that if the has has_key? method_name it returns its value, but otherwise retains the standard behaviour. I know how to do the former, but not the latter
<ChameleonSix>
I solved it
<ChameleonSix>
nvm
<ChameleonSix>
tnx
<ChameleonSix>
it should say answer = get_answer()
nateberkopec has joined #ruby
yqt has joined #ruby
<soahccc>
KrzaQ: super?
<KrzaQ>
Ah
<jhass>
KrzaQ: also OpenStruct
<KrzaQ>
soahccc: I'm a ruby noob with some spotty knowledge, so my questions may seem stupid, but I usually get by
<soahccc>
KrzaQ: but yeah tampering with Hash is generally not a good idea :9
axl_ has quit [Quit: axl_]
<jhass>
hfp: the module doesn't call these private methods from public methods?
sucks has quit [Read error: Connection reset by peer]
<jhass>
hfp: if you use .send in a test you're most likely doing it wrong
dfinninger has quit [Ping timeout: 246 seconds]
hxegon has quit [Remote host closed the connection]
<KrzaQ>
soahccc: this is for 1-line scripts for advent of code :P
<ljarvis>
it's not a stupid question, which is why it's a very popular google search
<shevy>
ChameleonSix come to linux man
devbug_ has joined #ruby
<adaedra>
jhass: too bad it's system-dependant.
<ChameleonSix>
I got it on laptop
<ChameleonSix>
cant game on linux
<shevy>
ChameleonSix you can set the xorgbuffer and open into a firefox tab
kadoppe has quit [Ping timeout: 240 seconds]
<adaedra>
wat
<jhass>
^
<ChameleonSix>
anyway
<ChameleonSix>
how do i know how to call the web browser
<ChameleonSix>
webbrowser for example
<adaedra>
...
pawnbox has quit [Ping timeout: 246 seconds]
<ChameleonSix>
how do i do the same with notepad?
<shevy>
jhass showed you how it works
medvedushka has joined #ruby
<shevy>
quit being such a noob
mary5030 has joined #ruby
<ChameleonSix>
hmm
<jhass>
ChameleonSix: you next question must show that you did you research prior asking it
axl_ has joined #ruby
devbug has quit [Ping timeout: 255 seconds]
<ChameleonSix>
i duckducked it
<shevy>
you can use cygwin/msys on windows too so commandline should work. no idea if you can manipulate the buffer on windows from the commandline though
wolffles has quit [Ping timeout: 240 seconds]
kalopsian has quit [Ping timeout: 246 seconds]
Bloomer has quit []
momomomomo has joined #ruby
<adaedra>
shevy: you don't have an even more complicated answer...?
<ljarvis>
:D
<ljarvis>
lol'd
kadoppe has joined #ruby
<ljarvis>
pass the buffer to the gibson via telnet
aibot has quit [Ping timeout: 256 seconds]
BSaboia has joined #ruby
djbkd has joined #ruby
<shevy>
adaedra it's very trivial, I am sorry that you don't understand it but with hard work you may be able to
<adaedra>
lel.
<shevy>
lol.
<ljarvis>
shots fired
akem has quit [Read error: No route to host]
hahuang65 has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
jmonreal has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
akem has joined #ruby
wildlander has joined #ruby
BSaboia has joined #ruby
<ChameleonSix>
hmm i cant understand this isnt working
Emmanuel_Chanel has joined #ruby
<hxegon>
ChameleonSix, well,
<ChameleonSix>
I need to link the cmd and ruby?
<ChameleonSix>
somehow
baweaver has joined #ruby
djbkd has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 246 seconds]
<hxegon>
ChameleonSix, obviously the solution is to delete System32
<adaedra>
ChameleonSix: did you at least open ljarvis's link?
<shevy>
ChameleonSix what is not working with jhass' example
djbkd has joined #ruby
<ChameleonSix>
i read it
knowtheory has quit [Read error: Connection reset by peer]
ckrailo has quit [Read error: Connection reset by peer]
<medvedushka>
/msg nickserv help
<medvedushka>
ops
<adaedra>
here
<ChameleonSix>
hxegon lol
<havenwood>
present!
ckrailo has joined #ruby
knowtheory has joined #ruby
akem2 has joined #ruby
<adaedra>
ChameleonSix: then you've got multiple solutions to work with.
pdoherty has joined #ruby
akem has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
kalopsian has joined #ruby
<ChameleonSix>
some ruby programs dont need an end?
<ljarvis>
ChameleonSix: jhass warned you
<shevy>
:)
<ChameleonSix>
ok
<ChameleonSix>
sorry
<atmosx>
Say I want to create a list with all possible permutations of a word. What is the logic behind it? I'm thinkin about it: 1) turn word into array, 2) move 1st char one position to the left, 3) save new array to an array of arrays (matrix), 4) repeat for new array (recursively). Is that it?!
<atmosx>
adaedra: I need to understand the process, not just create a permutation
<atmosx>
adaedra: I feel like I'm missing something.
<shevy>
what the
<shevy>
there is a new ruby?
framling has joined #ruby
<atmosx>
shevy: crystal?
Macaveli has joined #ruby
ta has quit [Ping timeout: 255 seconds]
<hxegon>
shevy, it just fixes a security issue with fiddle
jbrhbr has quit [Quit: Leaving.]
aibot has joined #ruby
<shevy>
aaaah ok... thought it was early xmas ... ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.4.tar.xz
akem has quit [Read error: No route to host]
startupality has quit [Quit: startupality]
<hxegon>
atmosx, does crystal have type inference?
akem has joined #ruby
<atmosx>
hxegon: I have no idea, I just know it exists and that it's pretty similar to ruby, ping jhass he'll know.
<ljarvis>
atmosx: the best way to put it is "from left to right, generate all permutations of the rest of the elements until you get to the end"
<ljarvis>
hxegon: yes it does
<hxegon>
ljarvis, :D
<atmosx>
ljarvis: okay, thanks. I'll try to implement a dummy vesion see how it goes.
<ljarvis>
atmosx: maybe take a look to see what the ruby C code does too, there are different algorithms I guess
<jhass>
hxegon: it does
<ChameleonSix>
jhass you are a genius
ht__ has joined #ruby
<hxegon>
I'll check it out, check check check it out
<ChameleonSix>
i mean it
ht__ has quit [Client Quit]
<hxegon>
ChameleonSix, we actually took a vote and decided to refer to jhass as 'senpai', please respect the room rules :\
jbrhbr has joined #ruby
<jhass>
?jhass
<ruboto>
jhass is anybody. They're a member of the op staff in #ruby, contributor to ruboto and ruby-community.com
<ljarvis>
?ljarvis
<ruboto>
I don't know anything about ljarvis
<ljarvis>
DAMN RIGHT
InvGhost has joined #ruby
colegatron has quit [Ping timeout: 272 seconds]
<adaedra>
!fact add ljarvis I know everything about ljarvis
<ruboto>
adaedra, I will remember that ljarvis is I know everything about ljarvis
Bugboy1028 is now known as DeafieGamer
roshanavand has joined #ruby
jherm has joined #ruby
<ChameleonSix>
ruboto is that thing on android
<ChameleonSix>
why do half commands dont work there?
platzhirsch has left #ruby [#ruby]
<hxegon>
#ot ChameleonSix
<ChameleonSix>
no root permission?
<hxegon>
?ot ChameleonSix
<ruboto>
ChameleonSix, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<ChameleonSix>
hmm ok
<baweaver>
?baweaver
<ruboto>
I don't know anything about baweaver
psy_ has joined #ruby
nvp has joined #ruby
<ChameleonSix>
mr ruboto
robbyoconnor has joined #ruby
<ChameleonSix>
?ruboto
<ruboto>
I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
Emmanuel_Chanel has quit [Quit: Leaving]
<hxegon>
ruboto is the king of the north
<nvp>
hey, there has been a lot of talk of Crystal lately, and how it's 25 times faster than ruby, and has 90% ruby syntax compatibility. What does this mean for the future of ruby? Will the ruby eventually adopt crystal and optionally become compilable?
<ChameleonSix>
yes
<ljarvis>
nvp: no to the second question
<adaedra>
nvp: they're still two different things
<ljarvis>
nvp: and probably nothing to the first question
<shevy>
nvp just as any other language, it's a different one
<medvedushka>
ruboto a bot, but talking like a human. Turing should be happy,lol
jcoe has joined #ruby
<ljarvis>
crystal just borrows lots of Ruby's syntax, that's really it
ht__ has joined #ruby
<ljarvis>
it's actually too similar to Ruby for me, but it is very nice
<jherm>
I'm having a strange problem. I'm looking at erb usage examples online and for some reason, even when I "require 'erb'", I get a NameError when I reference Erb. Anyone have any ideas?
<SirFunk>
Anyone use any good self-hosted solutions for collecting metrics in ruby? (Things like requests/sec and request durations?)
<eam>
many, many languages are 25 times faster than ruby
<shevy>
exactly 25 times!
<ljarvis>
jherm: it's ERB
<medvedushka>
where all these sites on assembler
<jherm>
wow, derp
roshanavand has quit [Ping timeout: 255 seconds]
<jherm>
ijarvis: thank you very much!
<ljarvis>
it's an L, but you're welcome :)
<shevy>
kjarvis!
<adaedra>
ivarjis
nvp has quit [Quit: Page closed]
<jherm>
Erb, ERB, ijarvis, ljarvis, same thing
<baweaver>
iJarvis - Apple AI
<ljarvis>
hah
shiver has joined #ruby
<ljarvis>
where is inkjet when you need him
<eam>
shevy: but on the 26th time they're slower :(
<hxegon>
gnu plus marvel
howdoicomputer has quit [Ping timeout: 246 seconds]
kgirthofer has joined #ruby
<ChameleonSix>
I feel so smart when i know ruby
Mr_Psmith has quit [Quit: Mr_Psmith]
<yorickpeterse>
ljarvis: /nick iJarvis
<hxegon>
>> (1..10).inject([]) { |mem, i| mem += i } # ChameleonSix how does this work
idefine has joined #ruby
<ruboto>
hxegon # => no implicit conversion of Fixnum into Array (TypeError) ...check link for more (https://eval.in/486377)
<baweaver>
not well apparently
<hxegon>
Ahhhh, I am the one who is stuuuuuuuup
<ChameleonSix>
hmm
crankharder has joined #ruby
<adaedra>
I think you're looking for <<.
<hxegon>
>> (1..10).to_a.inject([]) { |mem, i| mem += i } # ChameleonSix how does this work
<ruboto>
hxegon # => no implicit conversion of Fixnum into Array (TypeError) ...check link for more (https://eval.in/486378)
<jhass>
hxegon: looks like you wanted each_with_object
<ChameleonSix>
in range from 1 to 10
<ChameleonSix>
in something
<ChameleonSix>
hmm mem ,i defines a key and value of the hash
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
jmonreal has joined #ruby
<baweaver>
ChameleonSix: nope
<ChameleonSix>
impossible
<baweaver>
memo and iterator
* ChameleonSix
hmm
<ChameleonSix>
ok
colleenmcguckin has quit [Read error: Connection reset by peer]
[Butch] has quit [Quit: I'm out . . .]
<baweaver>
inject is also known as reduce, which is known as foldLeft in functional languages
<baweaver>
you're passing a piece of state through a function that's getting folded onto
<kristianpaul>
and i'm just trying to push that json
hansolodiesinthe has left #ruby [#ruby]
colleenmcguckin has joined #ruby
BSaboia has quit [Ping timeout: 265 seconds]
<kristianpaul>
with curl i easy but i'm still getting the details together with ruby
wldcordeiro has quit [Quit: WeeChat 1.3]
_stu_ has quit [Quit: _stu_]
<kgirthofer>
hey all - I have some issue. When I run a command that I wrote in ruby, it works fine locallay as bundle exec, but when I run it as a gem I get a check_version_conflict for json. It says it can't activate version 1.8.3 because version 1.7.7 is arleady activated. When i check the gemspec of the application I can see it's looking for 1.7.7, and when
<kgirthofer>
I do a gem list I can see I only have 1.8.1 and 1.7.7 installed
<ruboto>
kristianpaul, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<adaedra>
You can address the whole channel, not just me
<kristianpaul>
i think thats a fact
<jhass>
kristianpaul: json is in stdlib these days, are you sure you need to depend on a specific version? (or at all, since as said stdlib)
<jhass>
meh
<jhass>
kgirthofer: ^ sorry
cassioscabral has joined #ruby
AnoHito has quit [Ping timeout: 256 seconds]
<kgirthofer>
yea there are other parts of the application that require it
danielpclark has quit [Quit: Leaving]
<jhass>
kgirthofer: I'm not asking whether you need it. I'm asking why you need that specific version
jbrhbr has quit [Quit: Leaving.]
<jhass>
kgirthofer: and if the answer is "I don't" I'm asking why you list it as dependency still since it's a stdlib for a long time
FooMunki has quit [Quit: FooMunki]
akem has quit [Ping timeout: 272 seconds]
Emmanuel_Chanel has joined #ruby
Mon_Ouie has joined #ruby
jessemcgilallen has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
nettoweb has joined #ruby
wldcordeiro has joined #ruby
dfinninger has quit [Remote host closed the connection]
dlitvak has quit [Remote host closed the connection]
CrazyEddy has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cjbottaro has joined #ruby
bronson has quit [Remote host closed the connection]
<Lewix>
jhass: ok you won, I can't prove my point. sheesh too many days with javascript and I forgot how sweet ruby is, I needed the inspiration for js
<baweaver>
shenanigans?
<Lewix>
what's a shenanigans?
chipotle has quit [Ping timeout: 240 seconds]
<jhass>
Lewix: for what it's worth, each_with_object([]) {|people, names| names.concat people.map {|person| person[:name] } } would be the proper solution to what you probably were thinking of with reduce, though that's just reimplementing flat_ma
<jhass>
*flat_map
medvedushka has quit [Remote host closed the connection]
<baweaver>
I've used compact_map before (implemented with reduce) quite a bit.
PedramT has joined #ruby
devbug has joined #ruby
cajone is now known as cajone_afk
<Lewix>
jhass: your each_with_object seems to return something different ,
<Lewix>
names.concat people.map {} ?
imperator has joined #ruby
dustinr has joined #ruby
<Lewix>
oh I see
<dustinr>
>> "I HATE NIGGERS".times(999999)
<ruboto>
dustinr # => undefined method `times' for "I HATE NIGGERS":String (NoMethodError) ...check link for more (https://eval.in/486411)
atomical has joined #ruby
<dustinr>
>> "I HATE NIGGERS" * 9999999
freerobby has joined #ruby
<ruboto>
dustinr # => failed to allocate memory (NoMemoryError) ...check link for more (https://eval.in/486412)
<dustinr>
>> "I HATE NIGGERS" * 999
<ruboto>
dustinr # => "I HATE NIGGERSI HATE NIGGERSI HATE NIGGERSI HATE NIGGERSI HATE NIGGERSI HATE NIGGERSI HATE NIGGERSI ...check link for more (https://eval.in/486413)
<dustinr>
>> "I HATE NIGGERS " * 999
<ruboto>
dustinr # => "I HATE NIGGERS I HATE NIGGERS I HATE NIGGERS I HATE NIGGERS I HATE NIGGERS I HATE NIGGERS I HATE NI ...check link for more (https://eval.in/486415)
<dustinr>
=D
<dustinr>
>> "8=======D " * 999
<ruboto>
dustinr # => "8=======D 8=======D 8=======D 8=======D 8=======D 8=======D 8=======D 8=======D 8=======D 8=======D ...check link for more (https://eval.in/486417)
<GinoManWorks>
ChameleonSix: Because you have asked the wrong questions young padawan
<ChameleonSix>
i have the link
<ChameleonSix>
gave
<Radar>
ChameleonSix: What is "gest"?
<ChameleonSix>
Fill out the parse_answer method to return the answer passed in. If the kind is "number", convert answer to an integer using the to_i method before returning it.
fullofcaffeine has joined #ruby
jackjackdripper has joined #ruby
<ChameleonSix>
it should do this
<ChameleonSix>
?
<Radar>
ChameleonSix: Stop. Answer the question.
<Lewix>
by the way jhass thanks
<GinoManWorks>
I was going to ask about where the settings were that gem uses to compile native extensions....
_djbkd has quit [Remote host closed the connection]
PedramT has quit []
<ChameleonSix>
hmm
<ChameleonSix>
idk
<ChameleonSix>
What do you mean?
<ChameleonSix>
Mr Radar?
<ChameleonSix>
Please?
<Lewix>
lol
<Lewix>
so aggressive
<Radar>
ChameleonSix: Don't spam the channel, thanks.
<Lewix>
ChameleonSix: check your spelling
<Radar>
ChameleonSix: I literally mean "what is gest"? gest isn't defined within that context
ht__ has quit [Quit: Konversation terminated!]
<ChameleonSix>
gets*
ht__ has joined #ruby
<ChameleonSix>
Omg
<ChameleonSix>
I didnt realize
<ChameleonSix>
sorry im tired
jackjackdripper has quit [Client Quit]
<ChameleonSix>
thanks
* Lewix
likes the sound of Mr Radar
jackjackdripper has joined #ruby
arup_r has quit []
dlitvak has joined #ruby
<baweaver>
also, easy on the enter key
<ChameleonSix>
but the code says error in the tutorial
<ChameleonSix>
idk why
<Radar>
ChameleonSix: Second warning: please don't spam the channel.
<Radar>
ChameleonSix: On the 3rd warning, you will be muted for a day.
<ChameleonSix>
Ok
roshanavand has joined #ruby
wildlander has quit [Quit: Saliendo]
howdoicomputer has quit [Ping timeout: 272 seconds]
AKASkip has joined #ruby
ruby-lang529 has joined #ruby
<ruby-lang529>
hi guys
<havenwood>
ruby-lang529: hi
<blub>
hi ruby lang 5 29
Emmanuel_Chanel has joined #ruby
<ruby-lang529>
can someone help me :( I can't extract my data using ruby
devbug has joined #ruby
<blub>
sounds like you're in the wrong channel then
lemur has joined #ruby
tinyhippo has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
<ChameleonSix>
radar
<ChameleonSix>
How do i execute ruby code on my webpage
<jhass>
note quiet and ban list count together into one limit
<Radar>
?fake
<ruboto>
Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
<tubbo>
imperator: agreed
yalue has joined #ruby
<ChameleonSix>
Does anyone know something about ERB
<tubbo>
imperator: look at ln3 and ln12 again
<Radar>
imperator: constant is STUFF, but ref to the constant is Stuff.
<tubbo>
ChameleonSix: no
<tubbo>
ChameleonSix: it is a mystery
<tubbo>
ERB stands for Ehhhh Really Bruh?
<ChameleonSix>
no
<GinoManWorks>
So anyways, can anyone help me; I'm not even sure I'm asking the question right: how does gem know what compiler to use and the build environment settings and such for native extensions?
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
zenlot1 has quit [Ping timeout: 260 seconds]
dhollinger has quit [Quit: WeeChat 1.3]
bb010g has quit [Quit: Connection closed for inactivity]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
znz_jp has joined #ruby
jcoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenlot1 has joined #ruby
seitensei has quit [Ping timeout: 240 seconds]
berserk_ren has joined #ruby
_stu_ has quit [Quit: _stu_]
Wompy has joined #ruby
<nofxx>
what a boring thing to 'model' ... work hours. I thinking a 7 day array, containing an array with arbitrary ranges... [ [7..10, 13..17 ... kind boring for half hour stuff. Maybe use float... there's Date but there's no Hour. Any better ideas?
edwinvdgraaf has joined #ruby
pawnbox has joined #ruby
<dorei>
nofxx: maybe u should avoid floats and count minutes
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
<nofxx>
dorei, that's a better idea. ty
<Ox0dea>
Why not seconds?
<nofxx>
ah, no need.... at most it's a we close at 11:30 thing
kalopsian has joined #ruby
<Ox0dea>
There's no such thing as "too granular". :P
yardenbar has quit [Ping timeout: 256 seconds]
<nofxx>
=D
rdark has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
berserk_ren has quit [Ping timeout: 260 seconds]
edwinvdgraaf has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
drptbl has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
znz_jp has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
arooni has quit [Ping timeout: 240 seconds]
drptbl has quit [Max SendQ exceeded]
AKASkip has quit [Ping timeout: 265 seconds]
ruid has joined #ruby
Wompy has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 246 seconds]
cassioscabral has joined #ruby
pwnd_nsfw has joined #ruby
rdavila has joined #ruby
s00pcan has joined #ruby
drptbl has joined #ruby
atomical has joined #ruby
Wompy_ has joined #ruby
dotix has quit [Ping timeout: 260 seconds]
InvGhost has quit [Ping timeout: 260 seconds]
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
Ox0dea there is ruby 2.2.4 ! \o/
<shevy>
you broke it :D
<shevy>
or norc ... with Fiddle
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
imperator has quit [Quit: Leaving]
<wolffles>
can you push a hash into an array?
DavidJone has quit []
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<j416>
wolffles: yes?
stannard has quit [Remote host closed the connection]