<jhass>
droptone: you're not figuring out what's nil is what you do wrong
<Coraline>
I am literally pasting in your example and getting back an empty array
<jhass>
droptone: p(my); p(my["user"])
<droptone>
myarr isn't empty
<droptone>
it's not nil.
<jhass>
sorry, but you need to sharpen your reading skills
maloik has joined #ruby
<droptone>
lol, what makes you say that?
<mg^^>
yeah the only problem there is the data type
<jhass>
I said nothing about myarr (which is a horrible variable name btw)
<droptone>
I've checked over and over, none of the hash elements I've analyzed are nil, or not present.
Wsewolod has quit [Ping timeout: 240 seconds]
<jhass>
wrong
<jhass>
some are
<droptone>
jhass: It's an example to obsfuscate the code, I'm not pasting proprietary code in a Ruby help channel on freenode.
Backz has joined #ruby
<droptone>
Right, I'm obviously missing something, but I'm having trouble determining what.
<jhass>
then hire a consultant
yfeldblum has quit [Remote host closed the connection]
<droptone>
lol
<jhass>
I'm serious
RobertBirnie has joined #ruby
<droptone>
Well, considering I've got users around the world using my code, and I only occassionally need help, I usually just interact with the community.
moei has joined #ruby
<droptone>
But that's cool, because I"m missing this one specific detail here.
<jhass>
if you're unable to find your mistake and not able to share the tiniest bit of code or an example that accurately reproduces your issue, you need to get help that is allowed to see your code
<droptone>
I'll just drop everything and hire a consultant.
<mg^^>
Clearly your real data has missing keys somewhere
<droptone>
It's all good, I'll keep at it, thank you.
<droptone>
Coraline: Yes, something's up, perhaps one of the array elements are missing those values.
<droptone>
I'll figure it out, thanks for the help.
Rollabunna has joined #ruby
nso95 has joined #ruby
B1n4r10 has joined #ruby
RobertBirnie has quit [Client Quit]
maloik has quit [Ping timeout: 276 seconds]
<mg^^>
but I'm on board with jhass here, if you're not allowed to share the actual code and data that is failing, it's going to be hard to get more than idle guesses
roshanavand has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<droptone>
I figured it out, thanks Coraline.
beauby has quit [Ping timeout: 250 seconds]
_djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
makneegerz has joined #ruby
linuxboytoo has joined #ruby
beauby has joined #ruby
n_blownapart has quit []
JazzyVariable227 has quit [Remote host closed the connection]
<makneegerz>
Hi
roshanavand has quit [Ping timeout: 240 seconds]
crdpink2 has quit [Ping timeout: 240 seconds]
crdpink2 has joined #ruby
myztic has quit [Ping timeout: 240 seconds]
zacstewart has quit [Ping timeout: 244 seconds]
linuxboy_ has joined #ruby
linuxboytoo has quit [Read error: No route to host]
<jhass>
hi
JazzyVariable227 has joined #ruby
<makneegerz>
Does anyone have details on Ruby 3 yet ?
rakm has joined #ruby
sanjayu has quit [Ping timeout: 246 seconds]
nopolitica has joined #ruby
Marsupermammal has joined #ruby
scripore has joined #ruby
mjuszczak has quit []
Backz has quit [Remote host closed the connection]
<jhass>
I doubt there's a final plan yet
Bellthoven has joined #ruby
<driftig>
I doubt there's a plan yet.
JazzyVariable227 has quit [Ping timeout: 276 seconds]
s2013 has joined #ruby
DenysLins has quit [Ping timeout: 260 seconds]
elcontrastador has quit [Ping timeout: 240 seconds]
djbkd has quit [Read error: Connection reset by peer]
n0fx has quit [Remote host closed the connection]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<makneegerz>
O Yeah i heard about the type casting stuff which essential assigns your variable to class, however thats what Ruby does when assigning a = 1 or a = "test" does this mean you will be able to fix a type for variable so it can't change?
freerobby has joined #ruby
<jhass>
I only heard about type restrictions on method arguments
mistermocha has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
yeshacker has joined #ruby
<driftig>
Did you read this, or listen to someone say this?
yes`r has quit [Ping timeout: 244 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
probably someone mentioned it here some time
Marsupermammal has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
<makneegerz>
Ok so you can pass through only that type useful and flexible
lenwood has quit [Ping timeout: 252 seconds]
iateadonut has joined #ruby
roshanavand has joined #ruby
<driftig>
I wonder if Ruby would be faster than Python if they dial down GIL protections to non-thread blocking systems.
antoniobeyah has joined #ruby
<makneegerz>
Think i read it a while ago drift , but the method args stuff i saw on the Matz video
atomical_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
n0fx has joined #ruby
Rickmasta has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
atomical has joined #ruby
CodingWolf has quit [Ping timeout: 246 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
<driftig>
Why people abandon the Ruby community is probably why Ruby lacks any true corporate backing.
yfeldblum has joined #ruby
DenysLins has joined #ruby
djbkd has quit [Remote host closed the connection]
pawnbox has joined #ruby
Rollabunna has quit [Quit: Leaving...]
nso95 has quit [Quit: nso95]
s2013 has quit [Ping timeout: 252 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous_ has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
<cyberfawkes>
it's more dead in here than a salad bar at fat camp...
RobertBirnie has quit [Client Quit]
pawnbox has joined #ruby
minimalism has quit [Quit: Lost terminal]
minimalism has joined #ruby
maloik has quit [Ping timeout: 246 seconds]
htmldrum has joined #ruby
<jhass>
that comment matches considering a pastebin service with that name as cool I guess
<cyberfawkes>
heh, what?
djbkd has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 240 seconds]
<jhass>
anyway, logic is not a good name
<cyberfawkes>
thoughts on a better one?
<cyberfawkes>
handle_guesses()?
rigsby has quit [Ping timeout: 255 seconds]
yeshacker has joined #ruby
<jhass>
print_guess_result ?
VeryBewitching has quit [Quit: Konversation terminated!]
<cyberfawkes>
derp
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<jhass>
some people in here would hate me for that, but I'd probably use 3.times + break
<cyberfawkes>
3.times + break?
<jhass>
3.times do; print "..."; guess = gets.to_i; print_guess_result(guess, random_number); break if guess == random_number; end
rigsby has joined #ruby
calderonroberto has joined #ruby
<jhass>
mh, the win logic although not complicated is replicated 3 times
maletor has joined #ruby
tmtwd has quit [Read error: Connection reset by peer]
tmtwd_ has joined #ruby
User458764 has joined #ruby
<cyberfawkes>
jhass: ah!!!
<cyberfawkes>
thank you
jimbeaudoin has quit [Quit: Connection closed for inactivity]
<ellismarte>
instead of typing localhost:3000 why can’t i just type in my ip address followed by :3000?
yfeldblum has joined #ruby
atomical has joined #ruby
<cyberfawkes>
ellismarte: are you running a server locally?
<ellismarte>
cyberfawkes: a rails app ..
<cyberfawkes>
ah
<cyberfawkes>
127.0.0.1:3000?
<cyberfawkes>
or your computers IP address
<ellismarte>
cyberfawkes: but i want my friends to be able to connect …
<cyberfawkes>
192.168.1.*
<cyberfawkes>
ellismarte: you'd need to port forward your router
<cyberfawkes>
unless they're on your lan.
<ellismarte>
cyberfawkes: interesting ok
<cyberfawkes>
ellismarte: what's your local IP?
<ellismarte>
cyberfawkes: why?
<cyberfawkes>
ellismarte: I can't do anything with your local(internal) IP address.
<cyberfawkes>
besides, your IP is in your whois anyway. xD
towler has quit [Quit: WeeChat 0.3.8]
Guest3421 has quit [Quit: WeeChat 0.3.8]
<ellismarte>
thanks for leading me in the right direction :)
<cyberfawkes>
ellismarte: ever port forwarded before?
<ellismarte>
cyberfawkes: nope
<cyberfawkes>
ellismarte: you need to login to your router
<cyberfawkes>
go to port forwarding
vdamewood has quit [Max SendQ exceeded]
<cyberfawkes>
and you need to put the internal IP of the box that's running the rails application, set the incoming port to 3000
<ellismarte>
shit doesn’t sound easy
<cyberfawkes>
it's STUPID easy
<ellismarte>
lol
arup_r has joined #ruby
d0nn1e has quit [Ping timeout: 272 seconds]
antoniobeyah has quit [Quit: antoniobeyah]
<ellismarte>
so i’m trying to create a toy that lets ppl download from various sources … i figured i would just collect people’s ip addresses and attach them to files so ppl could go to their address and request a file. but now it sounds like that’s impossible bc they’d have to turn on port forwarding? …
maloik has joined #ruby
<cyberfawkes>
no no no
<cyberfawkes>
only YOU who's hosting the server/service would have to port forward.
d0nn1e has joined #ruby
<cyberfawkes>
Port forwarding allows connections to enter your network from the internet on a specific port you decide.
<ellismarte>
cyberfawkes: yeah but lets say you and i have a file of the matrix.
Vitor has quit [Ping timeout: 272 seconds]
<cyberfawkes>
oh
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<ellismarte>
i want my friend eric to download have the file from me and half the file from you, but i was planning on him going to your ip and asking for a file
roshanavand has joined #ruby
<ellismarte>
half*
<cyberfawkes>
ellismarte: you realize your talking about P2P right?
<ellismarte>
cyberfawkes: yeah this is just to learn
exadeci has joined #ruby
<cyberfawkes>
so you're trying to create a torrent application, essentially.
<ellismarte>
exactly but now that i’m doing it i’m wondering if we could make it so only 1 copy is watchable at a time so we dont violate copy right
sandstrom has joined #ruby
<cyberfawkes>
what is it that you're trying to share?
<ellismarte>
nothing i just want to try to create the software
juddey has joined #ruby
<cyberfawkes>
ah
<ellismarte>
but it would be cool to essentially create a library where 100s of ppl can send u the file but only 1 person can watch it at a time
maloik has quit [Ping timeout: 250 seconds]
<jhass>
so, DRM? meh
roshanavand has quit [Ping timeout: 240 seconds]
<ellismarte>
what’s that
davedev2_ has quit []
<ellismarte>
oh
<jhass>
cancer, I mean digital rights management
mistermocha has joined #ruby
<ellismarte>
kinda but more like a public library and less corporate …
<jhass>
that sentence makes no sense in this context
<jhass>
a public library shouldn't (have t he need to) enforce any copyrights
<ellismarte>
lol well i dont know shit about drm. can i not give my friend of excel if i uninstall it?
<jhass>
it's only said when it does
<jhass>
er, sad even
<ellismarte>
if i buy photoshop but then uninstall it can i give it to my friend for the weekend?
<cyberfawkes>
no
<jhass>
well, license keys are a form of DRM I guess
<ellismarte>
cyberfawkes: for sure?
RobertBirnie has joined #ruby
<cyberfawkes>
ellismarte: the license key is tied to you, not the software itself.
<cyberfawkes>
now you could loan your friend your pc, but not the software itself.
<ellismarte>
ok well that sucks
atomical has quit [Max SendQ exceeded]
mary5030 has joined #ruby
<jhass>
well, depends on the jurisdiction you live in I guess, I wouldn't be surprised if there's some place on the world where that works
<ellismarte>
so if i installed the software in a container and gave them the container?
<jhass>
but this isn't #law
pawnbox_ has joined #ruby
willardg has joined #ruby
<cyberfawkes>
ellismarte: "container"?
<ellismarte>
cyberfawkes: docker
<cyberfawkes>
no.
<cyberfawkes>
you cannot share the software, period.
<cyberfawkes>
you can share the machine.
<ellismarte>
ok so put it on a vm
<cyberfawkes>
ellismarte: I'd bet you still lose in court.
<ellismarte>
lol prob
pawnbox has quit [Ping timeout: 244 seconds]
rigsby has quit [Ping timeout: 250 seconds]
pawnbox_ has quit [Remote host closed the connection]
maloik has joined #ruby
pawnbox has joined #ruby
trosborn has joined #ruby
atomical has joined #ruby
arescorpio has joined #ruby
mary5030 has quit [Remote host closed the connection]
rigsby has joined #ruby
maloik has quit [Ping timeout: 260 seconds]
atomical has quit [Max SendQ exceeded]
mary5030 has joined #ruby
favadi has joined #ruby
m3_del has joined #ruby
m3_del has quit [Remote host closed the connection]
lxsameer has joined #ruby
sigurding has joined #ruby
m3_del has joined #ruby
ellismarte has quit [Quit: ellismarte]
roshanavand has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
yoongkang has joined #ruby
ellismarte has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
PaulCapestany has quit [Ping timeout: 252 seconds]
nofxx has joined #ruby
Macaveli has joined #ruby
<apeiros>
driftig, cyberfawkes: while I consider the topic over, please be aware of http://ruby-community.com/pages/user_rules#rule_3_2 (for some reason it scrolls to the wrong place for me - but it's at the bottom and highlighted)
CloCkWeRX has quit [Quit: Leaving.]
<cyberfawkes>
out of curiousity, do these rules apply to ruby off topic?
<apeiros>
cyberfawkes: no/yes/maybe. sorry for being vague. but ruby-ot is still a bit a gray area.
pawnbox has quit [Remote host closed the connection]
<cyberfawkes>
ah, so basically don't be an ass/moron and everything will be golden.
pawnbox has joined #ruby
<shevy>
hmmm
PaulCapestany has joined #ruby
<apeiros>
that's generally a good rule, yes :)
<driftig>
apeiros: My true handle is Serayah.
<shevy>
aaaah
<driftig>
apeiros: Serayah Bentley Jones.
<apeiros>
driftig: ok? not sure why you're telling me that, though
dionysus69 has quit [Ping timeout: 260 seconds]
<shevy>
cyberfawkes you probably have not been that long on #ruby else you might have known that resident weird-nick-dude - he just keeps on coming back over and over again :)
<cyberfawkes>
ah, makes sense lol
<cyberfawkes>
only been here a few days.
<apeiros>
even offered them a !kickme/
<cyberfawkes>
Trying to learn ruby.
<apeiros>
whoops, premature enter
psy_ has quit [Ping timeout: 265 seconds]
<apeiros>
even offered them a !kickme/!banme command so they can save themselves the effort of getting the op's attention
<shevy>
hmm
<shevy>
I can kick myself via ruboto?
<apeiros>
not yet
<shevy>
:D
Trynemjoel has quit [Quit: Quitting]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<driftig>
!kick driftig
zacstewart has joined #ruby
tagrudev has joined #ruby
<driftig>
Worse permission bugs than Linux.
* Dimik
np: The Prodigy - Diesel Power [04:17m/288kbps/44kHz]
lurch_ has joined #ruby
<Dimik>
capybara
<jackcom>
i can scrap web site by ruby?
<Dimik>
jackcom yes
<jackcom>
how?
<jackcom>
Dimik:
<jackcom>
give me code
<jackcom>
Dimik:
<Dimik>
nokogiri+mechanize
<Dimik>
nokogiri to scrape, mechanize to automate
<apeiros>
jackcom: how much time did you spend researching the subject?
<Dimik>
zero apparently
juddey has joined #ruby
<jackcom>
very long time apeiros
<jackcom>
:(
<apeiros>
jackcom: what did you do to research it?
<jackcom>
nokogiri
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
you did "nokogiri"?
Mon_Ouie has quit [Quit: WeeChat 1.3]
<jackcom>
i write ‘ruby scrap’ on google
<jackcom>
apeiros:
<apeiros>
and, what did you find?
<jackcom>
nothing
<jackcom>
:(
<apeiros>
I don't believe you.
<jackcom>
it is real
<jackcom>
lol
pawnbox has quit [Remote host closed the connection]
<apeiros>
then make a screenshot. my google certainly shows me plenty of results.
<Dimik>
jackcom, google nokogiri
<Dimik>
go from there
pawnbox has joined #ruby
<jackcom>
i close it already apeiros
<apeiros>
jackcom: then open it again and search again.
* Dimik
np: The Prodigy - Funky Shit [05:16m/350kbps/44kHz]
<Dimik>
jackcom are you using windows?
<apeiros>
Dimik: stop that
<Dimik>
excuse me
dionysus69 has joined #ruby
<Dimik>
it's winamp
<Dimik>
don't you love winamp
zacstewart has quit [Ping timeout: 272 seconds]
<apeiros>
jackcom: right now I'm tempted to kick you. even more so for lying about having done research.
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jackcom>
Dimik: will help me now. but why you don’t let me help.
<Dimik>
jackcom if you're running windows and don't know ruby or python i'd suggest you use iMacros or WebHarvy for web scraping
<jackcom>
iMacros and WebHarvy
<jackcom>
great
<apeiros>
jackcom: bravo. now read it. try to understand it, and when you have problems understanding or applying it and therefore have *concrete questions*, feel free to ask here about them
<apeiros>
jackcom: but I don't want to see you asking blanket questions like the above again without showing at least what you did to research it. ok?
martinbjeldbak has quit [Ping timeout: 265 seconds]
jericon has quit [Ping timeout: 265 seconds]
__main__ has quit [Ping timeout: 265 seconds]
Antiarc has quit [Ping timeout: 265 seconds]
tethra has quit [Ping timeout: 265 seconds]
deavidsedice has joined #ruby
yonatankoren has quit [Ping timeout: 265 seconds]
Puffball has quit [Ping timeout: 265 seconds]
mhenrixon has quit [Ping timeout: 265 seconds]
janelleb has quit [Ping timeout: 265 seconds]
Dimik has quit [Disconnected by services]
asas is now known as Dimik
Sebastia1Thorn has joined #ruby
AnoHito has joined #ruby
pipecloud has joined #ruby
bjmllr_ has joined #ruby
Contigi has joined #ruby
raenk has joined #ruby
Xiti` has joined #ruby
Drakevr has joined #ruby
joevandyk has joined #ruby
dhjondoh has quit [Client Quit]
ir2ivps3_ has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
chridal_ has joined #ruby
cwong_on_irc1 has joined #ruby
headius_ has joined #ruby
<DurstBurger>
I'm trying to write a short mechanize script that will ping a url, but wanting to do this from the command line. ex. "ruby ping.rb http://testsite.com"
mduca_ has joined #ruby
trollface has joined #ruby
Apocalyp- has joined #ruby
Mr_Pancake- has joined #ruby
ricer2_BtoH has joined #ruby
Puffball has joined #ruby
<DurstBurger>
I'm not sure how to send the argument to the script though?
DefV_ has joined #ruby
ajaiswal_ has joined #ruby
Ikzi has joined #ruby
cfloare has joined #ruby
gigetoo has joined #ruby
rejerson69_ has joined #ruby
rethi has joined #ruby
freedrull has joined #ruby
janelleb has joined #ruby
wnd has joined #ruby
frog0909_ has joined #ruby
Sou|cuttr has joined #ruby
Macaveli_ has joined #ruby
<norc>
?crosspost thomasfedb
<ruboto>
thomasfedb, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
Y_Ichiro has joined #ruby
Y_Ichiro has joined #ruby
agent_wh1te has joined #ruby
hagebake has joined #ruby
sunya7a__ has joined #ruby
dimasg_ has joined #ruby
sulky_ has joined #ruby
bnagy_ has joined #ruby
lurch__ has joined #ruby
<apeiros>
DurstBurger: send the argument? or read the argument in the script?
<norc>
DurstBurger: Take a look at ARGV
kiez0rd has joined #ruby
IcyDragon has joined #ruby
ozzloy_ has joined #ruby
musl_ has joined #ruby
<apeiros>
if read, then as norc just said: ARGV
pwned has joined #ruby
lnx has joined #ruby
bhaak_ has joined #ruby
<DurstBurger>
can i put 1 or 2 lines in here or do you require a pastebin type of service in this channel?
G__ has joined #ruby
Guest28511 has joined #ruby
knight- has joined #ruby
nwhirschfeld_ has joined #ruby
luyu_ has joined #ruby
__main__ has joined #ruby
<norc>
DurstBurger: 1-2 lines is fine here.
kent\n_ has joined #ruby
reaVer_ has joined #ruby
Bish- has joined #ruby
ruisantos has joined #ruby
Seich_ has joined #ruby
kiez0rd has quit [Max SendQ exceeded]
skade has joined #ruby
euoia has joined #ruby
<thomasfedb>
norc, mea culpa
<DurstBurger>
so if i put puts ARGV[0]
sumark_ has joined #ruby
Killerkeksdose has joined #ruby
fumduq- has joined #ruby
<DurstBurger>
or puts ARGV.first
Downtime has joined #ruby
RazorX- has joined #ruby
<DurstBurger>
in the script it does print the URL i fed the script
luyu_ has quit [Max SendQ exceeded]
justinmcp_ has joined #ruby
halfdan_ has joined #ruby
avdi_ has joined #ruby
universaL has joined #ruby
luyu_ has joined #ruby
bafbomb_ has joined #ruby
CabbageMan69 has joined #ruby
Qantouri1c has joined #ruby
solocshaw1 has joined #ruby
axisys has joined #ruby
pfg_ has joined #ruby
nyandoge_ has joined #ruby
nomadic_ has joined #ruby
bewie_ has joined #ruby
csaunders has joined #ruby
\13k has joined #ruby
Antiarc has joined #ruby
SilentEcho has joined #ruby
<apeiros>
DurstBurger: re paste, see topic. >3 lines go to gist
pizzaops_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
imajes_ has joined #ruby
oz` has joined #ruby
Billias_ has joined #ruby
justinweiss_ has joined #ruby
gix has joined #ruby
User458764 has joined #ruby
sgrdrnk has joined #ruby
<DurstBurger>
but when i do something like ARGV[0] = input_url and page = mechanize.get('#{input_url}') I get errors
<apeiros>
2 lines are ok. and you can always use ; to combine 2 lines of ruby into 1 (and it's still valid)
ekleog has quit [Read error: Connection reset by peer]
nomadic has quit [Ping timeout: 244 seconds]
Macaveli has quit [Ping timeout: 244 seconds]
RTG` has quit [Disconnected by services]
starkruzr has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spt0_ has joined #ruby
jsrn_ has joined #ruby
<thomasfedb>
DurstBurger, why are you assigning to ARGV?
Plas has joined #ruby
pawnbox has joined #ruby
<apeiros>
DurstBurger: you want input_url = ARGV[0]
<apeiros>
not the other way round.
<jackcom>
Dimik is gone?
RTG` has joined #ruby
<DurstBurger>
you mean just flip it?
nullwarp has joined #ruby
skullcrasher_ has joined #ruby
<DurstBurger>
haha
Nightmare has joined #ruby
nirix has joined #ruby
matled- has joined #ruby
_Tristan-Speccy_ has joined #ruby
houhouli_ has quit [Remote host closed the connection]
redondos_ has joined #ruby
Lorn_ has joined #ruby
<thomasfedb>
DurstBurger, also, isn't ARGV[0] the program execution itself?
sonne has joined #ruby
sonne has quit [Changing host]
sonne has joined #ruby
izzol_ has joined #ruby
shinnya_ has joined #ruby
<apeiros>
thomasfedb: no
kellabyte_ has joined #ruby
Jello_Raptor_ has joined #ruby
adamholt has joined #ruby
eboaz_ has joined #ruby
<apeiros>
ARGV in ruby only contains the arguments. the script name is $0
bmn_ has joined #ruby
arthurnn_ has joined #ruby
nlsun_ has joined #ruby
daxroc has joined #ruby
retornam_ has joined #ruby
Miron_ has joined #ruby
boshhead_ has joined #ruby
<thomasfedb>
apeiros, nice. again ruby is nice to us
juddey has quit [*.net *.split]
htmldrum has quit [*.net *.split]
banister has quit [*.net *.split]
s2013 has quit [*.net *.split]
dh64 has quit [*.net *.split]
HaZardX has quit [*.net *.split]
Vile` has quit [*.net *.split]
Gadgetoid has quit [*.net *.split]
zeroDivisible has quit [*.net *.split]
ItSANgo has quit [*.net *.split]
arthurnn has quit [*.net *.split]
shinnya has quit [*.net *.split]
z1haze has quit [*.net *.split]
unreal has quit [*.net *.split]
jgorak_ has quit [*.net *.split]
nwhirschfeld has quit [*.net *.split]
AlexRussia has quit [*.net *.split]
mclee has quit [*.net *.split]
kedare has quit [*.net *.split]
icey has quit [*.net *.split]
inukshuk has quit [*.net *.split]
driftig has quit [*.net *.split]
m4rCsi_ has quit [*.net *.split]
joevandy1 has quit [*.net *.split]
RazorX has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
Lildirt has quit [*.net *.split]
rdema has quit [*.net *.split]
peteyg_ has quit [*.net *.split]
heinrich5991 has quit [*.net *.split]
sapslaj has quit [*.net *.split]
redondos has quit [*.net *.split]
ljarvis has quit [*.net *.split]
Mr_Pancake has quit [*.net *.split]
Guest26770 has quit [*.net *.split]
justinmcp has quit [*.net *.split]
Platini has quit [*.net *.split]
M-mistake has quit [*.net *.split]
knight_ has quit [*.net *.split]
DefV has quit [*.net *.split]
Bish has quit [*.net *.split]
Engin has quit [*.net *.split]
hyperdrive has quit [*.net *.split]
wjimenez5271 has quit [*.net *.split]
bier_ has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
Mr_Pancake- is now known as Mr_Pancake
<apeiros>
lovely splits.
jericon has joined #ruby
sross_work|2 has quit [Read error: Connection reset by peer]
howdoicomputer has quit [Ping timeout: 276 seconds]
PaulCapestany has joined #ruby
shevy has joined #ruby
zeroDivisible has joined #ruby
mozzarella has joined #ruby
hightower4 has joined #ruby
linuxboytoo has joined #ruby
helpa has joined #ruby
gagrio has joined #ruby
joneshf-laptop has joined #ruby
nizmow has joined #ruby
htmldrum has joined #ruby
ur5us has joined #ruby
araujo has joined #ruby
ozzloy_ is now known as ozzloy
ozzloy has quit [Changing host]
ozzloy has joined #ruby
VladGh has joined #ruby
torpig has joined #ruby
ellismarte has joined #ruby
vondruch has joined #ruby
hplar has joined #ruby
Pro| has joined #ruby
duper has joined #ruby
konr has joined #ruby
DanKnox[away] has joined #ruby
svkurowski has joined #ruby
xsdg has joined #ruby
dwithers2 has joined #ruby
heinrich5991 has joined #ruby
flori has joined #ruby
braderhart has joined #ruby
bcavileer has joined #ruby
SegFaultAX has joined #ruby
digneety has joined #ruby
akkad has joined #ruby
perrier_ has joined #ruby
gilesw has joined #ruby
oddmunds has joined #ruby
jud^ has joined #ruby
frog0909 has joined #ruby
BTRE has joined #ruby
rfi has joined #ruby
aspiers has joined #ruby
asas has joined #ruby
yardenbar has joined #ruby
Dimik has quit [Disconnected by services]
bjmllr_ has joined #ruby
asas is now known as Dimik
pietr0_ has joined #ruby
kiez0rd has joined #ruby
eregon_ has joined #ruby
Derailed has quit [Ping timeout: 260 seconds]
DenSchub_ is now known as DenSchub
pabs_ is now known as pabs
Davey has joined #ruby
Davey has quit [Changing host]
Davey has joined #ruby
Asher1 has joined #ruby
Downtime has quit [Quit: :}]
Asher has quit [Disconnected by services]
Asher1 is now known as Asher
MuffinPimp_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
C0deMaver1ck has joined #ruby
pwnd_nsfw has joined #ruby
Jamo_ has joined #ruby
MuffinPimp_ has quit [Remote host closed the connection]
brixen has joined #ruby
DefV has joined #ruby
FifthWall_ has joined #ruby
C0deMaver1ck is now known as Guest3889
bytecrawler has joined #ruby
halfdan_ is now known as halfdan
ur5us_ has joined #ruby
Weethus has joined #ruby
avelldiroll has joined #ruby
troyreadyy has joined #ruby
imajes_ has joined #ruby
rcs_ has joined #ruby
Freijo has joined #ruby
\13k_ has joined #ruby
cyb3rspy has joined #ruby
rdema has joined #ruby
Eleeleth has joined #ruby
Lorn has joined #ruby
phreakocious_ has joined #ruby
avdi_ is now known as avdi
greister has joined #ruby
ekem has joined #ruby
fold3 has joined #ruby
deadpoet_ has joined #ruby
camilasann has joined #ruby
kellabyte_ is now known as kellabyte
rflot has joined #ruby
Kabaka_ has joined #ruby
Derailed has joined #ruby
danzilio has joined #ruby
zeljkof has joined #ruby
jetpackjoe has joined #ruby
cgfbee has joined #ruby
SirCmpwn_ has joined #ruby
boshhead has joined #ruby
Uptime has joined #ruby
Karpuragauram has joined #ruby
teotwaki has joined #ruby
apipkin has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
skakri` has joined #ruby
gbailey has joined #ruby
sts_ has joined #ruby
KramerC_ has joined #ruby
dupin has joined #ruby
kitallis has joined #ruby
BackEndCoder_ has joined #ruby
Guest39890 has joined #ruby
RTG` has quit [Disconnected by services]
Morrolan has joined #ruby
RTG` has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
pawnbox has joined #ruby
svkurowski has quit [*.net *.split]
hplar has quit [*.net *.split]
ur5us has quit [*.net *.split]
torpig has quit [*.net *.split]
shevy has quit [*.net *.split]
nrk has quit [*.net *.split]
deadpoet has quit [*.net *.split]
evandrojr has quit [*.net *.split]
BackEndCoder has quit [*.net *.split]
spectra- has quit [*.net *.split]
BLuEGoD has quit [*.net *.split]
cyb3rspy_ has quit [*.net *.split]
inukshuk has quit [*.net *.split]
camilasan has quit [*.net *.split]
ekleog has quit [*.net *.split]
kitallisii has quit [*.net *.split]
boshhead_ has quit [*.net *.split]
daxroc has quit [*.net *.split]
Lorn_ has quit [*.net *.split]
_Tristan-Speccy_ has quit [*.net *.split]
justinweiss_ has quit [*.net *.split]
imajes has quit [*.net *.split]
\13k has quit [*.net *.split]
euoia has quit [*.net *.split]
G__ has quit [*.net *.split]
frog0909_ has quit [*.net *.split]
__main__ has quit [*.net *.split]
DefV_ has quit [*.net *.split]
bjmllr has quit [*.net *.split]
eregon has quit [*.net *.split]
favadi has quit [*.net *.split]
chihhsin has quit [*.net *.split]
th0m_ has quit [*.net *.split]
poguez_ has quit [*.net *.split]
zapata has quit [*.net *.split]
s1kx has quit [*.net *.split]
Eising has quit [*.net *.split]
Fraeon has quit [*.net *.split]
genpaku has quit [*.net *.split]
Kabaka has quit [*.net *.split]
Couch has quit [*.net *.split]
rcs has quit [*.net *.split]
M-prosodyContext has quit [*.net *.split]
xnr has quit [*.net *.split]
C0deMaver1ck_ has quit [*.net *.split]
infernix has quit [*.net *.split]
jud has quit [*.net *.split]
Elysia has quit [*.net *.split]
Jamo has quit [*.net *.split]
Yiota has quit [*.net *.split]
pietr0 has quit [*.net *.split]
skakri has quit [*.net *.split]
wedgwood has quit [*.net *.split]
troyready has quit [*.net *.split]
gbailey- has quit [*.net *.split]
rvchangue has quit [*.net *.split]
YaknotiS has quit [*.net *.split]
heyimwill has quit [*.net *.split]
z3uS has quit [*.net *.split]
mgorbach has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
phreakocious has quit [*.net *.split]
fluchtreflex has quit [*.net *.split]
adam_ has quit [*.net *.split]
brixen_ has quit [*.net *.split]
FifthWall has quit [*.net *.split]
Evan_ has quit [*.net *.split]
MuffinPimp has quit [*.net *.split]
fold2 has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
Spleeze has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
guardian has quit [*.net *.split]
krasnus has quit [*.net *.split]
programmerq has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
conrfrmn has quit [*.net *.split]
p8952 has quit [*.net *.split]
Veejay has quit [*.net *.split]
KramerC has quit [*.net *.split]
dimasg_ has quit [Ping timeout: 250 seconds]
FifthWall_ is now known as FifthWall
imajes_ is now known as imajes
BackEndCoder_ is now known as BackEndCoder
ellismarte has quit [Quit: ellismarte]
troulouliou_div2 has joined #ruby
infernix has joined #ruby
pietr0_ is now known as pietr0
_main_ has joined #ruby
bjmllr_ is now known as bjmllr
pawnbox_ has joined #ruby
NightMonkey has joined #ruby
adam_ has joined #ruby
tethra has joined #ruby
tethra has joined #ruby
fluchtreflex has joined #ruby
fluchtreflex has quit [Changing host]
fluchtreflex has joined #ruby
LBRapid has joined #ruby
conrfrmn has joined #ruby
p8952 has joined #ruby
Evan_ has joined #ruby
genpaku has joined #ruby
wedgwood has joined #ruby
zapata has joined #ruby
M-prosodyContext has joined #ruby
torpig has joined #ruby
YaknotiS has joined #ruby
pawnbox_ has quit [Ping timeout: 240 seconds]
Couch has joined #ruby
Veejay has joined #ruby
G has joined #ruby
Tristan-Speccy has joined #ruby
svkurowski has joined #ruby
shevy has joined #ruby
Eising has joined #ruby
tmtwd_ has quit [Ping timeout: 276 seconds]
Tristan-Speccy is now known as Guest43031
isene has joined #ruby
Spleeze has joined #ruby
_main_ is now known as __main__
rvchangue has joined #ruby
iamdevnul has joined #ruby
m3_del has joined #ruby
th0m_ has joined #ruby
ELLIOTTCABLE has joined #ruby
z3uS has joined #ruby
pmarreck has joined #ruby
hplar has joined #ruby
evandrojr has joined #ruby
unreal has joined #ruby
xnr has joined #ruby
existensil has joined #ruby
pfg_ is now known as pfg
maloik has joined #ruby
ekleog has joined #ruby
coffeejunk has joined #ruby
nyandoge_ is now known as nyandoge
dotix has joined #ruby
nrk has joined #ruby
dimasg has joined #ruby
euoia has joined #ruby
ss_much has joined #ruby
hekin has joined #ruby
jmhmccr has joined #ruby
<hekin>
hi, i’d like to know how I could save the html and all the assets (css, javascript. image) of a webpage using Capybara-Webkit? thanks
Guest85414______ has joined #ruby
poguez_ has joined #ruby
pizzaops_ is now known as pizzaops
s1kx has joined #ruby
m3_del has quit [Ping timeout: 264 seconds]
pawnbox has quit [Remote host closed the connection]
<Radar>
jackcom: best to not direct your questions at one person in particular. People come and people go and not everyone is on at the same time as the day before.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
AlphaAtom has joined #ruby
arup_r has quit [Quit: Leaving]
dhjondoh has joined #ruby
gremax has joined #ruby
marsjaninzmarsa has joined #ruby
benlakey has joined #ruby
kallisti5 has joined #ruby
sanjayu has joined #ruby
dimasg has quit [Ping timeout: 264 seconds]
unclouded has joined #ruby
ghr has joined #ruby
alexherbo2 has joined #ruby
groundnuty has joined #ruby
hkumar has joined #ruby
aganov has joined #ruby
TomyWork has joined #ruby
DoubleMalt has joined #ruby
Hounddog has quit [Ping timeout: 240 seconds]
wldcordeiro has joined #ruby
jayne has joined #ruby
nomadicoder has joined #ruby
jatb has joined #ruby
bhorn1 has joined #ruby
sshuff|gone has joined #ruby
Iacobus has joined #ruby
troter____ has joined #ruby
brainslug has joined #ruby
irk has joined #ruby
hays has joined #ruby
hays has quit [Changing host]
hays has joined #ruby
baweaver has joined #ruby
zenguy_pc2 has joined #ruby
csmb has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tulak has joined #ruby
subscope has joined #ruby
Iacobus is now known as Guest4184
subscope has quit [Client Quit]
AlphaAtom has quit [Read error: Connection reset by peer]
heyimwill has joined #ruby
pestle has joined #ruby
bodie_ has joined #ruby
AlphaAtom has joined #ruby
ruurd has joined #ruby
darkf has quit [Read error: Connection reset by peer]
vbatts|w` has quit [Changing host]
vbatts|w` has joined #ruby
varunwachaspati has quit [Changing host]
varunwachaspati has joined #ruby
Pumukel has joined #ruby
evandrojr has joined #ruby
darkf has joined #ruby
halfdan has quit [Changing host]
halfdan has joined #ruby
avdi has quit [Changing host]
avdi has joined #ruby
luyu_ has quit [Changing host]
luyu_ has joined #ruby
nyandoge has quit [Changing host]
nyandoge has joined #ruby
pfg has quit [Changing host]
pfg has joined #ruby
pizzaops has quit [Changing host]
pizzaops has joined #ruby
kellabyte has quit [Changing host]
kellabyte has joined #ruby
hekin has quit [Quit: hekin]
anisha has quit [Changing host]
anisha has joined #ruby
M-mistake has quit [Changing host]
M-mistake has joined #ruby
M-Kodo has joined #ruby
M-Kodo has quit [Changing host]
joonty has joined #ruby
gagrio has quit [Changing host]
gagrio has joined #ruby
vondruch has quit [Changing host]
vondruch has joined #ruby
konr has quit [Changing host]
konr has joined #ruby
braderhart has quit [Changing host]
braderhart has joined #ruby
bcavileer has quit [Changing host]
bcavileer has joined #ruby
bjmllr has quit [Changing host]
bjmllr has joined #ruby
Eleeleth has quit [Changing host]
Eleeleth has joined #ruby
deadpoet_ has quit [Changing host]
deadpoet_ has joined #ruby
rflot has quit [Changing host]
rflot has joined #ruby
danzilio has quit [Changing host]
danzilio has joined #ruby
apipkin has quit [Changing host]
apipkin has joined #ruby
M-prosodyContext has quit [Changing host]
M-prosodyContext has joined #ruby
akosednar has joined #ruby
ELLIOTTCABLE has quit [Changing host]
ELLIOTTCABLE has joined #ruby
calderonroberto has joined #ruby
iamdevnul has joined #ruby
iamdevnul has quit [Changing host]
pmarreck has quit [Changing host]
pmarreck has joined #ruby
ss_much has quit [Changing host]
ss_much has joined #ruby
jmhmccr has quit [Changing host]
jmhmccr has joined #ruby
Guest85414______ has joined #ruby
Guest85414______ has quit [Changing host]
poguez_ has joined #ruby
poguez_ has quit [Changing host]
bove has quit [Changing host]
bove has joined #ruby
Kharma has joined #ruby
DoYouKnow has quit [Changing host]
DoYouKnow has joined #ruby
justinweiss_ has quit [Changing host]
justinweiss_ has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
spastorino has joined #ruby
spastorino has quit [Changing host]
BLuEGoD has quit [Changing host]
BLuEGoD has joined #ruby
zrl has quit [Changing host]
zrl has joined #ruby
chrisseaton has joined #ruby
chrisseaton has quit [Changing host]
amoeba has joined #ruby
tonini has quit [Changing host]
tonini has joined #ruby
yeticry has quit [Ping timeout: 272 seconds]
shinenelson has joined #ruby
shinenelson has quit [Changing host]
andersh has quit [Changing host]
andersh has joined #ruby
Meliodas has joined #ruby
vayan has quit [Changing host]
vayan has joined #ruby
benlakey has quit [Changing host]
benlakey has joined #ruby
sanjayu has quit [Changing host]
sanjayu has joined #ruby
troter____ has quit [Changing host]
troter____ has joined #ruby
Guest4184 has quit [Changing host]
Guest4184 has joined #ruby
nomadicoder has quit [Changing host]
nomadicoder has joined #ruby
yeticry has joined #ruby
heyimwill has joined #ruby
heyimwill has quit [Changing host]
ruurd has quit [Changing host]
ruurd has joined #ruby
Kharma has quit [Changing host]
Kharma has joined #ruby
SCHAAP137 has joined #ruby
johnhamelink has joined #ruby
rdark has joined #ruby
rdark has joined #ruby
agit0 has joined #ruby
BraddPitt has joined #ruby
jas02 has joined #ruby
scottstamp has joined #ruby
rolfb has joined #ruby
trosborn has joined #ruby
trosborn has quit [Client Quit]
jas02 has left #ruby [#ruby]
darkf_ has joined #ruby
hkumar has quit [Ping timeout: 246 seconds]
Hounddog has joined #ruby
Coraline has joined #ruby
atomical has joined #ruby
Kruppe has joined #ruby
w5isp has joined #ruby
chrisseaton_ has joined #ruby
TheHodge has joined #ruby
boozehound has joined #ruby
pawnbox has quit [Remote host closed the connection]
darkf__ has joined #ruby
pawnbox has joined #ruby
sunya7a_ has joined #ruby
bubbys has quit [Ping timeout: 260 seconds]
loechel has joined #ruby
bubbys has joined #ruby
sanjayu_ has joined #ruby
alexherb1 has joined #ruby
bhaak_ is now known as bhaak
Marsjan has joined #ruby
aeontech has joined #ruby
pietr0_ has joined #ruby
jas02_ has joined #ruby
hkumar has joined #ruby
shinenelson_ has joined #ruby
lemur has joined #ruby
pietr0 has quit [Ping timeout: 240 seconds]
pietr0_ is now known as pietr0
juddey has joined #ruby
rdark_ has joined #ruby
alexherb1 has quit [Client Quit]
calderonroberto_ has joined #ruby
alexherb1 has joined #ruby
trautwein has joined #ruby
shinenelson has quit [Ping timeout: 240 seconds]
chrisseaton has quit [Ping timeout: 240 seconds]
darkf has quit [Ping timeout: 240 seconds]
zenguy_pc2 has quit [Ping timeout: 240 seconds]
bf4 has quit [Ping timeout: 240 seconds]
drbrain has quit [Ping timeout: 240 seconds]
ytti has quit [Ping timeout: 240 seconds]
marsjaninzmarsa has quit [Ping timeout: 240 seconds]
Marsjan is now known as marsjaninzmarsa
chrisseaton_ is now known as chrisseaton
shinenelson_ is now known as shinenelson
Brando753-o_O_o has joined #ruby
Kamilion|ZNC has joined #ruby
avril14th has quit [Remote host closed the connection]
wjimenez5271 has quit [Ping timeout: 272 seconds]
lxsameer has joined #ruby
dikaio has quit [Quit: ........]
darkf_ has quit [*.net *.split]
rolfb has quit [*.net *.split]
agit0 has quit [*.net *.split]
rdark has quit [*.net *.split]
johnhamelink has quit [*.net *.split]
Pumukel has quit [*.net *.split]
ruurd has quit [*.net *.split]
sanjayu has quit [*.net *.split]
kallisti5 has quit [*.net *.split]
skarn has quit [*.net *.split]
tpendragon has quit [*.net *.split]
Kamilion has quit [*.net *.split]
snapcase has quit [*.net *.split]
Kamilion|ZNC is now known as Kamilion
alexherbo2 has quit [Disconnected by services]
guardian has joined #ruby
kallisti5 has joined #ruby
nettoweb has joined #ruby
alexherb1 has quit [Quit: WeeChat 1.3]
riskish has joined #ruby
calderonroberto has quit [*.net *.split]
AlphaAtom has quit [*.net *.split]
sunya7a has quit [*.net *.split]
Gadgetoid has quit [*.net *.split]
tuor has quit [*.net *.split]
TTilus has quit [*.net *.split]
driftig has quit [*.net *.split]
m4rCsi_ has quit [*.net *.split]
sapslaj has quit [*.net *.split]
bier_ has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
guardian has quit [Client Quit]
InvGhost has joined #ruby
baweaver has quit [*.net *.split]
unclouded has quit [*.net *.split]
sekrit has quit [*.net *.split]
Brando753 has quit [*.net *.split]
Brando753-o_O_o is now known as Brando753
alexherbo2 has joined #ruby
A124 has joined #ruby
alexherbo2 has quit [Client Quit]
marr has joined #ruby
AlphaAtom has joined #ruby
alexherbo2 has joined #ruby
alexherbo2 has quit [Client Quit]
mistermocha has quit [Ping timeout: 250 seconds]
lsmola has joined #ruby
sekrit has joined #ruby
alexherbo2 has joined #ruby
guardian has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
zacstewart has joined #ruby
elton has quit [Remote host closed the connection]
Outlastsheep has joined #ruby
colegatron has quit [Remote host closed the connection]
kp666 has quit [Ping timeout: 240 seconds]
unclouded has joined #ruby
juddey has quit [Ping timeout: 260 seconds]
kp666 has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
skade has joined #ruby
sameerynho has joined #ruby
huyderman has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
<Bish->
hello, can i somehow send a method of the current object as a block?
<Bish->
like when i do .inject
<apeiros>
Bish-: foo(&method(:name))
AimlessRAven has joined #ruby
<AimlessRAven>
hi guys, i have i have colleection select: = f.select :category_id_eq, options_from_collection_for_select(Category.all, :id, :name), {include_blank: true}, class: 'form-control'
<apeiros>
or just: foo { method_name }
<Bish->
trying that right now, doesn't do the trick, does it has to be first parameter?
<AimlessRAven>
but i want to keep my value of select after submit
<AimlessRAven>
how to do that
<apeiros>
?rails AimlessRaven
<ruboto>
AimlessRaven, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Bish->
foo { method_name } works fine, but wouldn't it be cooler
<apeiros>
?crosspost AimlessRaven
<ruboto>
AimlessRaven, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<AimlessRAven>
yea but there is no guys who wanna help me
<apeiros>
AimlessRaven: I suggest you go to #computers then, or #math, since programming is somehow maths too
<Bish->
so mean :(
<Bish->
consider the fact that is aimless, he just doesn't hit the right channel
elaptics`away is now known as elaptics
<apeiros>
yeah, crossposters don't elicit the best in me.
mark4 has joined #ruby
<adaedra>
Hello
Guest36263 has joined #ruby
<Guest36263>
Hello! =)
<Guest36263>
What you think about crystal lang?
<Guest36263>
guys?
<apeiros>
moin adaedra
<apeiros>
Guest36263: looks interesting.
<Bish->
Guest36263, pretty cool thingy thing.
tulak has quit [Remote host closed the connection]
<apeiros>
very promising. I hope it grows.
<Guest36263>
I very like it :)
<Guest36263>
I want crystal on rails :)))
johnny56 has joined #ruby
m3_del has joined #ruby
<Bish->
compiled it, tried it, kinda felt weirded out by the "projects" it creates, but felt fine after compiling / running first script, which was pretty fast
<adaedra>
eh.
<apeiros>
Guest36263: write it? be the first? :)
<Guest36263>
it's so fast lang as C
<Bish->
well i doubt it, but it's fast, yeah
<Bish->
was amazed by it, too
yoongkang has joined #ruby
bersimoes has joined #ruby
AimlessRAven has quit [Quit: Page closed]
<apeiros>
people learn erlang, clojure, elixir and now crystal - meanwhile I learn x64 assembly. what do I do wrong? :D
alcy has joined #ruby
Lenoo has joined #ruby
<Guest36263>
my notebook handles 50000 rps
<Bish->
well, clojure is also a "step back" isn't it?
<apeiros>
Lenoo: like asking in the wrong channel? .pp ain't ruby afaik.
<Lenoo>
it is using ruby if im correct?
dmolina has joined #ruby
<adaedra>
Puppet, right? I heard they have something based on it but with strange rules.
<apeiros>
Lenoo: you ask photoshop questions in ##C?
<apeiros>
because it's implemented in C…
<Lenoo>
No its for puppet but its written in Ruby
<apeiros>
what's up today with people?
<Bish->
you could write a x86 emulator in ruby, and then run internet explorer on it, does it make internet explorer a ruby thing
dhjondoh has quit [Remote host closed the connection]
<Guest36263>
ruby has a lot of production solutions and this is good =)
<adaedra>
Bish-: But why would you do this
drbrain has joined #ruby
m3_del has quit [Ping timeout: 240 seconds]
<Bish->
Guest36263, im afraid as long as those languages are not 100% compatible to each other, they do more harm than use
<Bish->
adaedra, to ask questions.
Gadgetoid has joined #ruby
yoongkang has quit [Ping timeout: 250 seconds]
zoras has joined #ruby
skarn has joined #ruby
<Guest36263>
what OS do you use?
zoras has quit [Client Quit]
<Bish->
Windows 3.1
darkf__ is now known as darkf
sepp2k has quit [Ping timeout: 276 seconds]
<tobiasvl>
:)
<tobiasvl>
windows 3.1 makes me nostalgic
<Guest36263>
I recently installed linux
<Guest36263>
:))))
zeroDivisible has quit [Read error: Connection reset by peer]
<Guest36263>
Linux Mint :)
<Guest36263>
it's better than ubuntu, i think
tpendragon has joined #ruby
wjimenez5271 has joined #ruby
<Bish->
Guest36263, congrats, do gentoo / lfs next, THEN you can be the h4ck3r
kimegede has joined #ruby
<Bish->
a = [] # OK for Ruby, but not for Crystal <= this already kills the whole purpose, imho
tulak has joined #ruby
ajaiswal_ is now known as ajaiswal
<Guest36263>
I tried gentoo
s2013 has joined #ruby
Xiti` has quit [Ping timeout: 276 seconds]
sepp2k has joined #ruby
tomphp has joined #ruby
<Bish->
well if you didn't stick with it, you're not a real hacker obviously
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jsrn_ is now known as jsrn
wpp has joined #ruby
AlphaAtom has joined #ruby
alcy has quit [Quit: Lost terminal]
dotix has quit [Quit: Leaving]
dotix has joined #ruby
minimalism has quit [Quit: leaving]
<Guest36263>
what's better RubyMine or SublimeText?
izzol_ has quit [Quit: leaving]
toretore has joined #ruby
<adaedra>
?better
<ruboto>
"Best" and "better" are subjective. Try to use a different term.
<adaedra>
What's better between orange juice and apple juice?
dhjondoh has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bf4 has joined #ruby
Lenoo has left #ruby [#ruby]
parted has joined #ruby
<Bish->
Guest34193, vim, not doubt
<adaedra>
Uh oh
Klumben has joined #ruby
<Bish->
whops, wrong guest.
solenoids has quit [Ping timeout: 240 seconds]
htmldrum has quit [Ping timeout: 272 seconds]
<cyberfawkes>
Guest36263: Sublime is good, but not FOSS. I prefer Vim.
<parted>
Hi.. just one quick question: I wanna store multiple Time and String values (as a pair) and afterwards sort by Time.. best way to do it?
c0m0 has joined #ruby
ruurd has joined #ruby
<Bish->
parted, do a hash, have the Time as a key, and the string as value
<adaedra>
Depends on unicity
<parted>
Bish-: okay thanks.. will try and might come back :)
rdark_ has quit [Quit: leaving]
<Bish->
i'll be here
rdark has joined #ruby
rdark has joined #ruby
Guest39890 is now known as ZeeNoodley
ZeeNoodley has quit [Changing host]
ZeeNoodley has joined #ruby
bigkevmcd has joined #ruby
<Bish->
parted, it will not work if have the same date multiple times
<parted>
Bish-: hmm true.. this might occur..
<adaedra>
Otherwise, store your pairs as Array in an Array.
<Bish->
parted, then, what you COULD do is have Time=>[String1,String2]
subscope has joined #ruby
<parted>
Bish-: i measure response times from a website for a given user list.. i first thought of an array of [Time, user], but don’t know how to sort it
<adaedra>
Bish-: Note that the Hash is not sorted by default.
<Bish->
or what adaedra says, what is basicially the same
<Bish->
adaedra, yeah but you can sort it, when you need it, for searching or whatever
<Bish->
an array is not sorted by default either
snapcase has joined #ruby
<parted>
yeah.. i was just wondering how to tell sort() to sort by the first element..
<adaedra>
no, but if there is no unicity, there's not really advantages to use a hash
<adaedra>
The magic is inside Symbol#to_proc, Bish: it creates a Proc which takes parameters and feed them to the method, with the first argument being the object the method is called on.
bnagy has joined #ruby
<adaedra>
Then, you pass this proc as argument to #inject.
<adaedra>
Ruby magic is less magical once you understand it.
Rollabunna has joined #ruby
dupin has quit [Disconnected by services]
Gnut has joined #ruby
inukshuk has joined #ruby
<Bish>
i never will get tired of it, i would've never been able to design something quite like it
rclements has joined #ruby
kent\n_ has quit [Quit: Reconnecting]
pawnbox has quit [Remote host closed the connection]
kent\n has joined #ruby
pawnbox has joined #ruby
<Bish>
can i actually use File.new.flock to synchronize threads?
sekrit has joined #ruby
pleiosaur has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
elton has quit [Ping timeout: 260 seconds]
Spami has quit [Ping timeout: 260 seconds]
subscope has joined #ruby
dlitvak has joined #ruby
nfk|laptop has joined #ruby
karapetyan has joined #ruby
User458764 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Pupp3tm4st3r has joined #ruby
dlitvak has quit [Remote host closed the connection]
RegulationD has joined #ruby
parted has left #ruby [#ruby]
Pupp3tm4_ has quit [Ping timeout: 250 seconds]
Peg-leg has joined #ruby
M-Kodo has joined #ruby
User458764 has quit [Ping timeout: 250 seconds]
Pupp3tm4_ has joined #ruby
n0fx has joined #ruby
AlphaAtom has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
aphprentice has quit [Quit: Connection closed for inactivity]
Pupp3tm4st3r has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
rodfersou has joined #ruby
null__ has joined #ruby
null__ has quit [Changing host]
null__ has joined #ruby
n0fx has quit [Remote host closed the connection]
bersimoes has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
M-mistake has joined #ruby
M-prosodyContext has joined #ruby
lenwood has joined #ruby
cookiez has joined #ruby
MissionCritical has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
tulak has quit [Remote host closed the connection]
n0fx has joined #ruby
<jackcom>
if i know block, then i do skilled ruby programmer?
LiquidIn1ect has quit [Ping timeout: 240 seconds]
<norc>
No.
<jackcom>
:(
<adaedra>
You're a skilled programmer when you're capable of solving problems using Ruby efficiently.
<jackcom>
then block is easy concept?
<adaedra>
It's not just about knowing the language, it's how to use it.
skade has quit [Quit: Computer has gone to sleep.]
solocshaw1 has joined #ruby
<adaedra>
This comes with lot of practice and experimentation.
<jackcom>
how to use it :(
sepp2k has quit [Ping timeout: 240 seconds]
<jackcom>
but my IQ is 158
<adaedra>
There's no "hard limit" to being a good programmer.
User458764 has quit [Ping timeout: 260 seconds]
brunto has joined #ruby
bersimoes has joined #ruby
hkumar has quit [Ping timeout: 240 seconds]
<jackcom>
ok thanks adaedra
<norc>
Bish: I think what you want is a Mutex. ;-)
m3_del has joined #ruby
<Bish>
jackcom, your english-skills do say no.
<Bish>
norc, yeah but i am using .flock in that method already :D that's why i am asking
<adaedra>
Bish: we're not all native speakers. This has nothing to do with intelligence.
<norc>
Bish: I'll just go out on a limb and say no. It probably is not an atomic operation.
<jackcom>
adaedra: is my side?
<norc>
Bish: Also. The documentation just made it clear that it locks on a per process basis.
<adaedra>
jackcom: I don't get you.
<norc>
;-)
<Bish>
i know, but still, 158 is a huge number, someone like that would be able to speak english, as long he is not from some weird country
n0fx has quit [Remote host closed the connection]
<norc>
Bish: Being able to and doing it are two seperate things.
solocshaw has quit [Ping timeout: 240 seconds]
solocshaw1 is now known as solocshaw
<jackcom>
Bish have name like Fish. Fish have not good IQ
<jackcom>
;)
<Bish>
hyuk
htmldrum has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kendos-Kenlen has joined #ruby
m3_del has quit [Ping timeout: 264 seconds]
shredding has joined #ruby
izzol has joined #ruby
skade has joined #ruby
dhjondoh has joined #ruby
Aww has joined #ruby
akosednar has joined #ruby
BraddPitt has joined #ruby
scottstamp has joined #ruby
<ruurd>
Bish I think YOU are from a weird country.
amoeba has joined #ruby
<Bish>
ok.
Meliodas has joined #ruby
brunto has quit [Read error: Connection reset by peer]
<jackcom>
Water World
n0fx has joined #ruby
brunto has joined #ruby
<gregf_>
jackcom: a block is nothing but a code reference(a block of code that you pass as a parameter). it could be like a datatype, though it cannot be assigned to a variable
<ruurd>
jackcom the fishes are laughing at you for not being able to determine that their IQ is 200+
lenwood has quit [Ping timeout: 264 seconds]
<adaedra>
Can we stop with the IQs and personal attacks, please?
dfdfdf has joined #ruby
<Bish>
ruurd, grab a coffe
<jackcom>
ok adaedra
<gregf_>
>> def foo &bl; bl.call(10);end; def bar x; x / 2;end; [ foo { |x| x / 2 }, bar(10) ] # jackcom
<jackcom>
Can we stop with the IQs and personal attacks, please? <— and you must remember that adaedra say? Bish
<ruurd>
I think he is a young guy and maybe a bit of a n00b... they can be a PITA.
<Bish>
i never attacked someone, i was just curious why everyone is "helping", while you're obviously not in need of help.
<adaedra>
Calm down
jackcom has left #ruby [#ruby]
<Bish>
his english is broken, it's not bad, he does it on purpose, he just laims to have an high iq ( none asked for that ), and tells us about his progress, which is non-existent
<Bish>
im not attacking, im just explaining that i did not attack.
<gregf_>
Bish: eh? what have you got to lose? it aint off topic?
<Bish>
nothing.. i just wanted to stop people from being trolled.
skade has quit [Quit: Computer has gone to sleep.]
<gregf_>
Bish: you can either let somebody get under your skin or ignore them? *makes a note to himself*
ur5us_ has quit [Remote host closed the connection]
<Bish>
well, i chose to ignore, but others didn't and i wanted to tell them that they should.
mistermocha has joined #ruby
<Bish>
and i like to talk, im at work, so timewaste is a good thing for me.
InvGhost has quit [Ping timeout: 264 seconds]
antgel has joined #ruby
ldnunes has joined #ruby
<adaedra>
Bish: pm
Kartikay has joined #ruby
karapetyan has joined #ruby
boozehound has quit [Quit: Leaving]
elton has joined #ruby
jackcom has joined #ruby
zacstewart has joined #ruby
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gustav_ has joined #ruby
lubekpl has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
elton has quit [Ping timeout: 260 seconds]
AlphaAtom has quit [Read error: Connection reset by peer]
bersimoes has quit [Read error: Connection reset by peer]
Hounddog has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
nfk|laptop has quit [Ping timeout: 260 seconds]
<jackcom>
Yield makes executing the block feel like a method invocation within the method invocation rather than a block that's being explicitly called using Proc#call. <——— i don’t know what ‘feel’ is meaning?
arup_r has joined #ruby
<shevy>
jackcom go read the chris pine tutorial, it explains how to use yield
Gnut has quit [Ping timeout: 250 seconds]
<jackcom>
:( lol
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
<shevy>
you can think of blocks as an additional optional argument to every method; whether you want to use it or not is up to you, in the code you use
bersimoes has joined #ruby
<jackcom>
ok
<jackcom>
thanks :)
akem has joined #ruby
hkumar has quit [Ping timeout: 260 seconds]
aeontech has joined #ruby
yfeldblum has joined #ruby
nfk|laptop has joined #ruby
<jackcom>
shevy: i like automation. i say it many times.
<shevy>
computers should automate
<shevy>
and make life easier
<shevy>
I only program so I can be lazier lateron
inukshuk has quit [Quit: ...]
dupin has joined #ruby
dupin is now known as Guest57819
<jackcom>
shevy: you stay here for 24 hour? you don’t sleep for 1 minute?
aibot has quit [Ping timeout: 260 seconds]
<shevy>
my wake cycle is rather erratic, I woke up at 04:00, now it is 12:08, I feel like making a nap soon
lubekpl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DoubleMalt has quit [Remote host closed the connection]
<jackcom>
drinking sleeping pill?
Guest57819 is now known as inukshuk
jackcom has quit [Quit: jackcom]
Hounddog has quit [Ping timeout: 250 seconds]
lubekpl has joined #ruby
brunto has quit [Ping timeout: 265 seconds]
Hounddog has joined #ruby
ldnunes_ has joined #ruby
timonv has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
entropie has joined #ruby
karapetyan has quit [Remote host closed the connection]
<norc>
shevy: Except they are not arguments. ;-)
karapetyan has joined #ruby
ldnunes has quit [Ping timeout: 250 seconds]
<norc>
Blocks are really special in every way.
<Bish>
that's why he used the term "you can think of"
aibot has joined #ruby
AlphaAtom has joined #ruby
Hounddog has quit [Ping timeout: 250 seconds]
karapetyan has quit [Remote host closed the connection]
<norc>
Bish: The question arised from a confusion already.
Hounddog has joined #ruby
suchness_ has joined #ruby
lipoqil has joined #ruby
<Bish>
what question?
<norc>
Bish: The original question my statement was about.
aeontech has quit [Ping timeout: 265 seconds]
<Bish>
and that is?
<norc>
Read up.
<Bish>
there is none
<adaedra>
Maybe from someone you've on ignore? ;)
stamina has joined #ruby
<shevy>
there indeed is none
marr has quit []
<Bish>
nah, it's just no question, shevy made an not entirely correct statement, to explain, which helped, and norc breaks it :D
vondruch has quit [Remote host closed the connection]
<shevy>
where is jackcom
brt has joined #ruby
<Bish>
people are weird today.
<shevy>
I thought he had a question!
<Bish>
im curious, have you used ruby for webpages without rails?
<norc>
Bish: The line in question was actually pointing at the fact that block/yield feels much differently.
<adaedra>
I do
<shevy>
well .cgi yeah
<Bish>
well let's exclude sinatra, too
CloCkWeRX has quit [Ping timeout: 250 seconds]
<shevy>
it feels a bit oldschool
<adaedra>
I still do
c0m0 has quit [Ping timeout: 240 seconds]
m3_del has joined #ruby
<Bish>
norc, it wasn't a question though.
<adaedra>
Pure Rack!
dEPy has joined #ruby
<shevy>
hmm
<Bish>
shevy, like.. you used ruby like php scripts?
Guest36263 has quit [Ping timeout: 260 seconds]
<shevy>
I think I got as far into rack by applying .upcase on some middleware stuff
<Bish>
i tried that once, for hours and hours, never got it to work, until i used the "fcgi" gem or something
suchness_ is now known as suchness
<shevy>
Bish yeah! I came from php actually
<norc>
Bish: I used plain ruby with fcgi before. Fun times.
AlphaAtom has quit [Read error: Connection reset by peer]
<Bish>
:D but why would you do that ( mean i know why, i tried it too )
<Kartikay>
Hey what does :variable mean?
AlexRussia has joined #ruby
<norc>
Kartikay: That is a symbol.
<adaedra>
Because you're stuck in the 20th century.
<suchness>
Kartikay: It doesn't mean anything without context
<Bish>
Kartikay, ":variable" the whole thing is a variable, including the :
AlphaAtom has joined #ruby
<adaedra>
a value.
<Kartikay>
Oh! You can start a variable name with :
<Kartikay>
?
<adaedra>
no
<suchness>
no
<norc>
No.
<Bish>
Karpuragauram, no
<adaedra>
:xxx is a symbol, it's a value, not the name of a variable.
<norc>
Kartikay: Symbols are an optimized form of immutable strings used for identifying things
<Kartikay>
Now I got it
agit0 has joined #ruby
<Kartikay>
Thanks everyone!
shredding has quit [Remote host closed the connection]
shredding has joined #ruby
<Bish>
symbols are hard to grasp, imho
<norc>
Symbols are just names for internal IDs.
<norc>
Nothing more to them reallz
m3_del has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
<Bish>
yeah i always knew that, but the real use-case for them remained hidden for me, for a long time
<adaedra>
Their use cases are indeed not really clear.
<Bish>
didn't even notice the : prefix in method lists of objects
<adaedra>
And it gets a bit worse now that we can hide them in method calls (foo bar: baz)
<Bish>
i just got that, when using sequel for the first time
<Bish>
because you have to understand them :D, otherwise you will think the guy who wrote sequel is an idiot, but he is actually a genius
<Bish>
source: experience.
<adaedra>
jeremyevans is indeed really good.
<norc>
Bish: The use case arises from the fact that string comparisons are very expensive, while number comparisons are not.
<adaedra>
Sequel is love, Sequel is life.
<Bish>
norc, that's not the reason they exist
<norc>
Bish: That is quite the reason they exist.
<Bish>
norc than you didn't understand them
<Bish>
then*
tulak has joined #ruby
<adaedra>
I'd love to see argumentation with proof on that. Can be very informative for all of us.
<Bish>
you could just equip the string class with a mechanism, which turns them into symbols internally, fast comparison is not the reason symbols exist, sure they have the ability to do, but that is a symptom, not the cause.
dhjondoh has quit [Ping timeout: 240 seconds]
<shevy>
adaedra lol "Sequel is love, Sequel is life."
dhjondoh has joined #ruby
<shevy>
?adaedra
<ruboto>
don't be mean to adaedra
<adaedra>
I forgot about that
<norc>
Bish: Ruby has been using symbols for longer than we have a Symbol class.
<shevy>
Bish I haven't got into sequel yet, why is it good (or bad)?
<norc>
Bish: And String has such a mechanism. It's called #to_sym
<shevy>
I feel I only know like 5% of the ruby ecosystem :(
bersimoes has quit [Read error: Connection reset by peer]
<Bish>
norc: you would still have symbols, even if they didn't compare fast => it's not the reason they exist, only thing im saying
<adaedra>
shevy: It's amazingly designed.
<adaedra>
And cover a huge number of use cases.
<norc>
Bish: Let me show you
<Bish>
norc, i don't need to be shown anything, you claim that fast comparison is the reason why symbols exist, and it's not, it's an attribute of symbols
kedare has joined #ruby
<adaedra>
Bish: then why did we create symbols when we already have strings?
<Bish>
shevy, the guy who wrote sequel really knows how to use ruby, it opened my eyes
ebbflowgo has joined #ruby
<Bish>
adaedra, well, sequel is the prime example for that, because you can use :symbol and "symbol" and they mean totally different things, but you might want to use them in one statement
<adaedra>
uh.
<norc>
Bish: Internally Ruby uses unsigned long to identify things. A string representation is much nicer than random numbers. However, comparisons by (char *) are really expensive.
<norc>
Bish: Symbols were created as a simple mapping from IDs to strings, while keeping fast comparison between unsigned long.
<Bish>
ofc you would make symbols fast in comparison, if you want them, you don't make them slow, but it's a symptom, not the reason, younowimsaying
dlitvak has joined #ruby
<Bish>
norc: ok.
dhjondoh has quit [Remote host closed the connection]
LiquidInsect has joined #ruby
<adaedra>
Bish: so for you, we crated symbols just to have "tagged" strings?
<awk>
hmm, anyone use the google_drive gem, i'm struggling to find a way to avoid having to pass a token... it's annnoying to have to visit the url , select your gmail account and get a token and insert it before it will do any manipulation on your google sheets
rodfersou has quit [Quit: leaving]
bersimoes has joined #ruby
Guest15238 has quit [Read error: Connection reset by peer]
<Bish>
adaedra, well, in my opinion it would be a good reason to do so, even if they were slow
rodfersou has joined #ruby
<Bish>
but you can make them fast, so you make them fast.
<adaedra>
Sounds very limited. norc argument makes more sense, imho.
<adaedra>
Bish: also, symbols would have the same methods as a string, which, as demonstrated by norc, is not true.
<Bish>
>> :foo.object_id == :foo.to_i
<ruboto>
Bish # => undefined method `to_i' for :foo:Symbol (NoMethodError) ...check link for more (https://eval.in/476351)
<Bish>
ah i see.
<shevy>
Bish norc's hobby is to study the implementation details of ruby - but not write any ruby code :-)
<Bish>
adaedra, well ofc it's not true, im talking about a parallel universe, where they could not figure out how to compare strings fast in ruby
<Bish>
well, im not saying he is wrong, im claiming we would have symbols, even if they were fast
<Bish>
and they still wanted symbols
<adaedra>
Bish: but what would these symbols be good for? Half-strings?
<Bish>
just to be not-strings
<shevy>
what are symbols good for anyway
skade has joined #ruby
<norc>
Bish: Ignore the fact that you see a String attached to it.
<adaedra>
shevy: identifiers.
<norc>
Bish: Accept that a Symbol is nothing but an ID.
<norc>
Ignore the fact that you even have a Class to interact with them.
<norc>
Then you get to the moment where they come from.
aeontech has joined #ruby
<apeiros>
shevy: everything with a name in ruby has a symbol. when you define a method `def foo`, it's internally identified as :foo
<apeiros>
when you have an instance variable @bar, it's internally identified as :@foo
<apeiros>
same with the other identifiable things (constants, classvars, globals, lvars)
<adaedra>
Now, let's see if I got this Big-O notation thing. Symbol comparaison is O(1), when String comparaison is O(n), where n is string length, right?
<apeiros>
adaedra: right
<norc>
adaedra: Yeap
<adaedra>
Yeah!
c0m0 has joined #ruby
<norc>
adaedra: well O(n+1) technically
<norc>
:P
<apeiros>
wrong
<apeiros>
O(n+1) *is* O(n)
<Kartikay>
norc: Mathematically O(n+1)=O(n)
<norc>
Ah well.
<norc>
Yeah silly me sorry.
<shevy>
there we see who was good in maths and who was not!
<apeiros>
even O(n+1000000000000000000000) is still O(n)
<adaedra>
norc: more complicated than that, actually. comparing "hello" and "world" is as fast as 3 and 5.
<norc>
adaedra: Indeed.
Sp4rKy_ is now known as Sp4rKy
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
skade has quit [Remote host closed the connection]
fgro has joined #ruby
arup_r has quit []
skade has joined #ruby
elton has joined #ruby
<Kartikay>
adaedra: I didn't get that, why?
<Kartikay>
Why 3 and 5?
<fgro>
hi. i have a ruby expression question. "tester".match(/^test(er|null)$/) matchtes ... but how do I get "test" to match?
<apeiros>
fgro: make the group optional with "?"
<adaedra>
Kartikay: because comparing two strings stops at the first different char. So, since h != w, you stop here, so it's just comparing two numbers.
<apeiros>
fgro: also be aware that ^ and $ relate to *line*, not *string*.
<apeiros>
Bish: they are fast because they have an id. those id's have an attached strings because us meatbags are bad with ids, and better with names.
vondruch has quit [Quit: Ex-Chat]
<Bish>
i know, that _technicially_ they are fast because they have an id
<adaedra>
“meatbags”
<duper>
apeiros, couldn't you make finding the length O(log(n)) by calloc()'ing twice as many bytes as the max String length and then checking for a '
bkxd has quit [Ping timeout: 240 seconds]
<Bish>
but at first, ruby needed a way to compare strings, which are immutable. That we can do that fast, is just a neat side-effect
<apeiros>
at least I assume you wouldn't want to write [1,2,3].<-1457615821658831418> { |<-4257034526262586490>| <-4257034526262586490>.<-1928340050693185534>(2) } instead of [1,2,3].map { |a| a * 2 } :)
<norc>
Bish: No. Ignore the string part.
<adaedra>
apeiros: stop it, you'll invoke Ox0dea.
<apeiros>
duper: no
<duper>
err.. that was a NULL, i.e. '\\0'
<norc>
Bish: Look at the github link I showed you. A Symbol is nothing but a number internally.
<apeiros>
duper: you can't guarantee you didn't miss a null byte without checking every character.
<Bish>
norc i know all that, without looking at your link
<apeiros>
because after the null byte is garbage, which is potentially not null.
<Bish>
for the parser, it is still a string.
<apeiros>
or rather: almost certainly not null.
<apeiros>
and if you null the garbage, you're back at O(n)
<duper>
apeiros, that's why you would calloc() it.. so the entire buffer after the max length is all zeroes..
<norc>
Bish: Ruby does not need a way to compare strings. Ruby needs a way to compare Objects.
<Bish>
sigh.
<apeiros>
duper: yupp, as said, O(n) again because zeroing isn't free :)
<adaedra>
duper: zeroing memory just for the sake of comparing two strings?
<duper>
I'm talking about an FFI implementation in C for a Ruby method in the String class obviously..
<adaedra>
also, calloc() is far away from a cheap operation.
<duper>
adeponte, not comparison.. length checking
brunto has joined #ruby
symm- has joined #ruby
<norc>
Bish: Ruby has been using symbols internally all over the place long before the parser knew about them.
<duper>
adeponte, sure.. but it's a one time thing.. checking the length will happen many times, but with a binary search which is O(log(n))
<adaedra>
Aah, Tab key, people's best friend and worst ennemy.
<adaedra>
Or maybe people don't see the a after the d. What do you think, adeponte?
<norc>
Bish: Correction that was a bit wrong.
bMalum has quit [Quit: bMalum]
gustav_ has quit [Remote host closed the connection]
bkxd has joined #ruby
bMalum has joined #ruby
<shevy>
whos is adeponte
<shevy>
ah
<shevy>
tab completion
<Bish>
well a variable in c is a symbol of some sort, so the first line of ruby was using them internally
<shevy>
I never tab complete on adaedra, I always write it down BY THE LETTER, with love!
<Guest3147>
you're too cute shevy (typed every letter with love)
<adaedra>
shevy: maybe if you lived in the 21st century with us, you'd have a tab completion feature.
aeontech has quit [Ping timeout: 265 seconds]
Guest3147 is now known as tjad
<norc>
Bish: But yeah, you are right. To the parser it is still a string. But to the parser everything is a string so that is not really an argument. ;-)
<tjad>
norc: actually, to the parser, everything is a token
<Bish>
which is a string.
<norc>
tjad: Point taken.
<tjad>
to the lexer, everything is a string ;-)
<tjad>
eh, just trying to get into these conversations :P
jackcom has joined #ruby
bersimoes has quit [Read error: Connection reset by peer]
myztic has joined #ruby
sigurding has quit [Quit: sigurding]
gustav_ has joined #ruby
bersimoes has joined #ruby
arup___ has joined #ruby
amirpro_ has joined #ruby
sdothum has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
arup_r has quit [Ping timeout: 260 seconds]
moeabdol1 has joined #ruby
alem0lars has joined #ruby
<jackcom>
puts method(:foo) <—— i don’t know what ’:’ is meaning?
<adaedra>
jackcom: you really need to start searching the documentation by yourself.
cwong_on_irc1 has quit [Quit: Leaving.]
<jackcom>
yeah adaedra
subscope has joined #ruby
<jackcom>
but i want go fastly adaedra
programmerq has quit [Changing host]
programmerq has joined #ruby
<adaedra>
jackcom: and knowing how to search and where to search will help you with that. You'll always need documetation.
<tobiasvl>
asking here is probably faster in specific instances, you will always go faster if you learn how to learn for yourself
<adaedra>
jackcom: You'll not always have a channel full of people here to help you.
<jackcom>
ok i will try it. :P
<adaedra>
when tobiasvl told you "It's a symbol", you should have looked in the Ruby documentation at Symbol.
<jackcom>
ok adaedra :)
<tobiasvl>
googling "ruby colon" also gives relevant results, but googling ":" isn't very easy of course
trosborn has joined #ruby
<adaedra>
ruby-doc.org is the reference, rubydoc.info also have all ruby docs, devdocs.io also and a quick search. If you're under OS X, you can also look at Dash, which is a wonderful tool for documentation.
<jackcom>
oh
<jackcom>
ruby-doc.org
<jackcom>
and Dash
trosborn has quit [Client Quit]
<jackcom>
but i don’t see Dash under OS x
<jackcom>
:P
<adaedra>
Google: OS X Dash. It's in the first results.
<jackcom>
oh good
akem has quit [Read error: No route to host]
solenoids has quit [Ping timeout: 276 seconds]
<adaedra>
Seriously, this should be a reflex.
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
This is also part of being an efficient programmer.
aeontech has joined #ruby
<jackcom>
ok but i m good at lua
tk_ has joined #ruby
<jackcom>
i can do everything by lua heh
<adaedra>
and how do you solve your lua-related problems?
Vitor has joined #ruby
prestorium has joined #ruby
<jackcom>
lua people is kind
<jackcom>
they respond solution always.
<Bish>
never seen you in #lua
<jackcom>
love2d
vondruch has joined #ruby
<vondruch>
hmmm, obavy z restartu byly na miste
sigurding has joined #ruby
<vondruch>
ups ... sorry, wrong channel :/
<shevy>
hah
<adaedra>
Plaît-il ?
roshanavand has joined #ruby
<shevy>
pilsen!
<Bish>
restartu
<shevy>
LOL
<Bish>
once, i sent my password in irc, because i thought i was unlocking my screensaver ;;
<tobiasvl>
jackcom: we are also kind and will gladly help you and other people, but googling stuff and searching docs for you is a waste of everyone's time in the long run
<adaedra>
tobiasvl: I never did that, because I have eyes.
<Bish>
well, my screen back then, needed a second to turn on from standby.
<tobiasvl>
yes, well. you've never had the wrong window in focus?
<tjad>
bish, norc : In a sense norc is correct by saying " string comparisons are very expensive, while number comparisons are not" but it's a bit vague. Symbols do use a number comparison - as the memory address / object id is used instead of a string comparison. This is the case as symbols are only constructed once (and are inserted into their own symbol table as well- which is index). So each time the symbol is referenced, it's using the same
<tjad>
object and hence how the comparison works. So they are slightly more efficient for 2 reasons (a.) not reinitialized everytime (b.) comparisons don't compare the whole string each time. However, Symbols can also be inefficient, this is because of their lifecycle as they are never garbage collected throughout the appliction - which gives an indication of how symbols should be used
bersimoes has quit [Read error: Connection reset by peer]
<adaedra>
Well, tbh, I sent my password in a conversation once, I was taking care of another computer and typed the password on the wrong keyboard :x
<Bish>
you keep telling me technical facts, i know, and they're facts, so they're true, it's not what i am saying :D
<Bish>
and the discussion is pointless, i guess.
bMalum has quit [Quit: bMalum]
<norc>
tjad: Not quite correct. Symbols are GCable since 2.2
<tjad>
I'm certain everybody here doesn't have a clear idea of all the facts ;-)
<tjad>
norc: interesting
<Bish>
but i got a good one for you guys: we invent the fukin quantum computer ( do not even staaaart about telling me how that is going to work )
* adaedra
sends Bish into a black hole
<Bish>
but that computer, has no runtime, if you give him a statement in ruby, he will answer instantly
<jackcom>
which os is good for ruby? can i use ubuntu?
<adaedra>
jackcom: yes.
<Bish>
will ruby still have symbols? since we have strings?
<jackcom>
thanks adaedra
<tjad>
norc: I've only recently seen some christmas gifts coming such as the lonely operator (&.) finally ha ha ha
blackmesa has joined #ruby
<adaedra>
Ruby works well everywhere, except that Windows support is less good.
<jackcom>
yeah i use windows xp too.
karapetyan has joined #ruby
<adaedra>
jackcom: but tell me, I thought you were executing scripts not so long ago, so you already knew that?
<jackcom>
i m afraid of being hacked
<norc>
tjad: I have been told we will be getting Hash#to_proc too.
<norc>
Another neat thing for more compact code. :)
<adaedra>
Sssh, don't open your presents early!
<jackcom>
yes adaedra i did it ‘ruby hello.ruby.
<jackcom>
ruby hello.rb
<adaedra>
On what system?
Yiota has joined #ruby
zacstewart has joined #ruby
<norc>
adaedra: Indeed. Even under Haiku in 2.3 :D
<jackcom>
if i say my os, then i will be hacked by hacker? adaedra
<adaedra>
no,
<jackcom>
ok
<jackcom>
os x
<adaedra>
s/,/./
<adaedra>
ok
* Bish
hacks jackcom
<jackcom>
lol
<jackcom>
really os Z
<jackcom>
i don’t know os x
<jackcom>
i use os Z
<adaedra>
you're trolling us now.
<jackcom>
no
<jackcom>
just joking
zotherstupidguy has joined #ruby
casadei has joined #ruby
<apeiros>
tobiasvl: I usually differentiate as helping vs. solving. i.e., "we gladly helping" but "we don't solve the stuff for you". the latter is consulting and if somebody wants that they can hire/pay people for it.
bersimoes has joined #ruby
<apeiros>
jackcom: ^ actually relevant for you.
<jackcom>
8)
<tobiasvl>
yeah, that's a nice way to look at it
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
<apeiros>
(of course, there's exceptions - people who contribute a lot here I'll gladly show a solution f.ex.)
<Bish>
do you guys who are here all the time, all work during your stay here?
<apeiros>
yes. I'm at work atm
<Bish>
i was always curious about the good angels in irc channels
alcy has joined #ruby
<apeiros>
but I'm not always at work when I'm here ;-)
<adaedra>
Bish: I'm at work atm too
<Bish>
well you 2 have similiar names, so you're the same person to me either way :p
<tobiasvl>
yup, I'm at work too. I'm mostly here while at work.
<apeiros>
I see it as a way my company pays back to the community for all the work it gets for free.
<apeiros>
and so far the company hasn't complained :o)
<Bish>
are you talking about FOSS?
bensarz has joined #ruby
<tobiasvl>
I mostly use IRC for work-related stuff nowadays, social stuff has mostly moved elsewhere :(
<apeiros>
yes
<Bish>
tobiasvl, where did it move
<Bish>
to
<apeiros>
we use a lot of FOSS and we sadly do little in ways of donations or PRs :-|
solenoids has joined #ruby
B1n4r10 has joined #ruby
lemur has joined #ruby
<Bish>
which company doesn't
<Bish>
(in IT)
<alcy>
hello folks, I am referring to David Black's book - Well Grounded Rubyist, I am not able to understand the use of yield to execute the upcase function in a map implementation. Code - http://pastebin.com/FcVjpwb1
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
baweaver has quit [Ping timeout: 240 seconds]
aeontech has quit [Ping timeout: 265 seconds]
<apeiros>
alcy: but you understand the use of yield in my_each?
CamonZ has joined #ruby
<alcy>
apeiros: yes
<apeiros>
ok, what's different to you between the yield in my_each and in my_map?
m3_del has joined #ruby
<shevy>
tobiasvl where did you move socially?
prestorium_ has joined #ruby
<alcy>
apeiros: in my_each its returning the array element at a position (so, yielding to the [] method perhaps). in my_map I am not able to understand how its yielding to the upcase call ?
<shevy>
Bish I here am always the home-computer; for work I sometimes login with another account but mostly I don't have the time for IRC when I am at work, always noticable when I don't respond (though I might also sleep)
davedev24 has joined #ruby
<apeiros>
alcy: hm, ok, I think you misunderstand yield in my_each already
<apeiros>
alcy: yield's *return* is completely ignored in my_each.
<Bish>
shevy, you SLEEP? :O
InvGhost has joined #ruby
Peg-leg has quit [Quit: Leaving.]
B1n4r10 has quit [Ping timeout: 250 seconds]
DoubleMalt has joined #ruby
trosborn has joined #ruby
<apeiros>
alcy: given: `def foo; yield(1); end`, and use it like: `foo { |x| puts "yielded #{x}" }`
<apeiros>
alcy: then the piece of code `{ |x| puts "yielded #{x}" }` is called "a block", which is passed as a special argument to foo.
kobain has joined #ruby
karapetyan has quit [Remote host closed the connection]
dionysus69 has quit [Quit: dionysus69]
nfk|laptop has quit [Quit: yawn]
trosborn has quit [Client Quit]
<tobiasvl>
shevy: some stuff moved to slack, some groups of friends just have facebook chats now, etc
<apeiros>
alcy: the keyword `yield` does nothing else than invoke that piece of code. and yield(1) means the |x| in the block gets the value 1.
<apeiros>
alcy: i.e., { |arg1, arg2, …| … }, the stuff in || are the arguments the block takes. and yield(arg1, arg2, …) passes those arguments when it invokes the block.
<apeiros>
and yield will return the value the block itself returned.
<alcy>
apeiros: gotcha, many thanks !
elton has joined #ruby
beast has joined #ruby
<apeiros>
>> def foo; returned = yield; puts "yield returned #{returned}"; end; foo { 123 }
<apeiros>
alcy: in other words: you can think of yield as "it's a method, and the definition of the method is the block passed to the method we're currently in"
<alcy>
apeiros: gotcha, thanks
dorei has joined #ruby
kp666 has quit [Ping timeout: 276 seconds]
<apeiros>
alcy: e.g. `def foo; yield(1,2,3); end; foo { |a,b,c| a + b + c }` --> is almost as if --> `def yield_block(a,b,c); a + b + c end; def foo; yield_block(1,2,3); end`
User458764 has joined #ruby
<apeiros>
hth
<alcy>
apeiros: haha, sounds perfect.
<alcy>
apeiros: thanks !
moeabdol1 has quit [Quit: WeeChat 1.3]
kp666 has joined #ruby
elton has quit [Ping timeout: 265 seconds]
icey has joined #ruby
<jackcom>
Bish == shevy aspect of verbose
<Bish>
jackcom, pardon?
<jackcom>
nothing
<Bish>
what do you want to say?
<adaedra>
jackcom: don't highlight people for nothing.
platzhirsch has quit [Ping timeout: 250 seconds]
<jackcom>
ok
icey has quit [Remote host closed the connection]
User4587_ has joined #ruby
User458764 has quit [Ping timeout: 265 seconds]
icey has joined #ruby
alcy has quit [Quit: leaving]
icey has quit [Remote host closed the connection]
sanjayu_ has quit [Quit: Leaving]
icey has joined #ruby
Peg-leg has joined #ruby
platzhirsch has joined #ruby
icey has quit [Remote host closed the connection]
icey has joined #ruby
icey has quit [Remote host closed the connection]
icey has joined #ruby
JazzyVariable227 has joined #ruby
joonty has quit [Quit: joonty]
JazzyVariable227 has quit [Remote host closed the connection]
Xiti has joined #ruby
JazzyVariable227 has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
asmodlol has joined #ruby
JazzyVariable227 has quit [Remote host closed the connection]
Hounddog has quit [Ping timeout: 264 seconds]
icey has quit [Remote host closed the connection]
icey has joined #ruby
seaned has joined #ruby
Hounddog has joined #ruby
bersimoes has quit [Read error: Connection reset by peer]
User4587_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
aeontech has joined #ruby
<Bish>
people would be better off if they did all use CLI interfaces
Pupp3tm4st3r has joined #ruby
<Bish>
developement of stuff would be such much faster safer and everything
bersimoes has joined #ruby
B1n4r10 has joined #ruby
icey has quit [Remote host closed the connection]
<shevy>
hmm
<shevy>
how do you want to distribute them?
Coldblackice has quit [Ping timeout: 260 seconds]
yoongkang has quit [Remote host closed the connection]
<Bish>
distribute? what do you mean, everyone just sshs somewhere :D
zacstewart has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
icey has joined #ruby
k3asd` has joined #ruby
Pupp3tm4_ has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
yoongkang has joined #ruby
karapetyan has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 260 seconds]
davedev24 has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
<gregf_>
def upper *args; args.map{ |a| yield(a) };end; p upper("david", "black", "foo") { |val| val.upcase } # i guess this is even more readable :|
<gregf_>
def upper; yield("david", "black", "foo");end; p upper { |*arr| arr.map(&:upcase) } # or this
gustav_ has quit [Remote host closed the connection]
joonty has joined #ruby
<gregf_>
good that i haven't read too many of those books ;) # those books can be more confusing than apeiros and 0xodea
favadi has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
favadi has quit [Client Quit]
akem has joined #ruby
lubarch has joined #ruby
lubarch has quit [Client Quit]
aeontech has quit [Ping timeout: 265 seconds]
beauby has joined #ruby
dionysus69 has joined #ruby
pawnbox has quit [Remote host closed the connection]
nettoweb has quit [Ping timeout: 240 seconds]
dfdfdf has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
Hounddog has quit [Ping timeout: 250 seconds]
arup___ has quit []
Hounddog has joined #ruby
Torrieri has joined #ruby
Torrieri has quit [Remote host closed the connection]
Torrieri has joined #ruby
Torrieri has joined #ruby
Torrieri has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
bMalum has joined #ruby
Hounddog has quit [Excess Flood]
yoongkang has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
Hounddog has joined #ruby
* Bish
never needed a book for a language, always annoyed people in irc
Rickmasta has joined #ruby
<Bish>
:^)
luca768 has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
Hounddog has quit [Ping timeout: 272 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
k3asd` has quit [Ping timeout: 264 seconds]
Hounddog has joined #ruby
freerobby has joined #ruby
<pontiki>
why, because you'd always be in here and never go off and read something? :D
beauby has quit [Quit: Lost terminal]
Hounddog has quit [Excess Flood]
Hounddog has joined #ruby
<pontiki>
Bish: wouldn't it be a neat world if all distributed services still ran from CLI? we'd still have gopher, archie, wais, etc
* apeiros
always had books for languages, never read more than 10 pages…
<pontiki>
we'd probably still have flashing banner ads, tho :(
sigurding has quit [Quit: sigurding]
<pontiki>
damn you sir tim
<Bish>
apeiros, same for me
<Bish>
we don't have flashing banner apps?
elton has joined #ruby
asmodlol has quit [Ping timeout: 260 seconds]
asmodlol has joined #ruby
Hounddog has quit [Ping timeout: 264 seconds]
<shevy>
we have but adblock nukes them away
aeontech has joined #ruby
aryaching has joined #ruby
A124 has quit [Read error: Connection reset by peer]
<Bish>
well, they're getting smartter, they evolve(source: last southpark ep.)
<Bish>
and adblocks are not very common on phones either
elton has quit [Ping timeout: 264 seconds]
Hounddog has joined #ruby
NeverDie has joined #ruby
JazzyVariable227 has joined #ruby
tjad has quit [Ping timeout: 265 seconds]
<pontiki>
Bish: we have flashing banner ads because the web went all GUI
<pontiki>
we'd still have just text-based email
<Bish>
yeah, would be great, wouldn't it?
<Bish>
im trying to use CLI where i can
<pontiki>
me, too
<shevy>
in my spam mail folder I have total animation overload
<shevy>
bouncing pink hearts
diegoviola has joined #ruby
<shevy>
flashing yellow sabretooths
<shevy>
red swords
<pontiki>
i even hate writing html and css
zotherstupidguy has quit [Quit: WeeChat 1.3]
<Bish>
well, "even", who doesn't
<pontiki>
yeah, point there
aufi has quit [Ping timeout: 250 seconds]
Hounddog has quit [Excess Flood]
<maloik>
Struggling a little with a regexp in ruby (building a markdown formatter for Prawn). Simple demo and test are available at https://gist.github.com/hannesfostie/7964e07b55477c101e39 (including more context), does anyone know how to make that test pass?
gustav_ has joined #ruby
Hounddog has joined #ruby
<Bish>
everytime i asked questions in irc about parsing html with regex, i've been told i shouldn't do it, because it's not regular
s00pcan has joined #ruby
<maloik>
I'm not parsing html
Rickmast_ has joined #ruby
<maloik>
Prawn is, but I want to change that into markdown parsing
<maloik>
updated the gist with an example of a failed attempt, along with the error
<maloik>
simply escaping the asterisk didn't quite do the trick
Hounddog has quit [Excess Flood]
roshanavand has quit [Remote host closed the connection]
Rickmasta has quit [Ping timeout: 265 seconds]
Hounddog has joined #ruby
<shevy>
asterisk and obelisk
Rollabunna has quit [Remote host closed the connection]
<pontiki>
shevy: Asterix et Obelix
<Bish>
>> * && Obelix
<ruboto>
Bish # => /tmp/execpad-84b3f5bfdf30/source-84b3f5bfdf30:2: syntax error, unexpected &&, expecting '=' ...check link for more (https://eval.in/476466)
<maloik>
adaedra: if you mean as in "zero or more of...", I'm matching against an actual asterisk. I've tried escaping it but no dice
<adaedra>
:+ is truthy, so the second part of the expression will be evaluated.
<shevy>
"comparaison" le french english :D
<adaedra>
maloik: There's your problem.
<adaedra>
shevy: scheiße.
johnny56 has quit [Ping timeout: 265 seconds]
<maloik>
you're talking in riddles :/
<adaedra>
maloik: any reason you're using Regexp.new instead of just using // or %r{} ?
<maloik>
not particularly
zacstewart has joined #ruby
<maloik>
lets see if that changes anything
johnny56 has joined #ruby
<adaedra>
I think that if you want to escape the * when inside a string, you'd have to do \\*
<adaedra>
So Regexp.new gets
<adaedra>
\*
<maloik>
tried that too
doublemalt_ has joined #ruby
<adaedra>
Strange.
<adaedra>
>> "
<ruboto>
adaedra # => /tmp/execpad-51ebc7754a1b/source-51ebc7754a1b:6:in `raise': exception object expected (TypeError) ...check link for more (https://eval.in/476471)
<adaedra>
Grmbl.
<maloik>
actually, one reason for regexp.new is the better formatting of the code
<maloik>
don't think I can achieve the same with %r{} or // ?
bMalum has quit [Read error: Connection reset by peer]
<maloik>
nice, lets see
bersimoes has joined #ruby
prestorium_ is now known as prestorium
shlomo has joined #ruby
ta has quit [Remote host closed the connection]
gambl0re has quit [Ping timeout: 276 seconds]
<adaedra>
For a more general point of view, I don't think you should use Regexp for your case.
<adaedra>
You're trying to do HTML to Markdown, right?
atomical has quit [Max SendQ exceeded]
<adaedra>
Ah no
alexherbo2 has joined #ruby
htmldrum has quit [Ping timeout: 250 seconds]
<maloik>
nope not at all
<maloik>
either way, I can't get my test to pass
lubekpl has quit [Read error: Connection reset by peer]
atomical has joined #ruby
jas02 has quit [Quit: jas02]
dhjondoh has quit [Quit: dhjondoh]
moeabdol has joined #ruby
Rickmast_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poguez_ has joined #ruby
s00pcan has quit [Remote host closed the connection]
<norc>
maloik: Also when doing Regular expressions, nesting them with interpolation can greatly improve readability.
maikowblue has joined #ruby
s00pcan has joined #ruby
xcesariox has quit [Read error: Connection reset by peer]
quater-nyon has quit [Quit: Angels fall, all for you, heretic! Demon heart, bleed for us! (My soul is yours, Dark Master. I will fight for you.)]
platzhirsch has left #ruby [#ruby]
pyon has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Oatmeal has quit [Quit: TTFNs!]
JazzyVariable227 has quit [Remote host closed the connection]
<maloik>
norc: how would you apply that in this case?
<norc>
maloik: Oh it's just a random tip for larger regex
pyon is now known as quater-nyan
bersimoes has quit [Read error: Connection reset by peer]
tulak has quit []
<maloik>
oh ok... yea I do know about interpolation in that context
bersimoes has joined #ruby
favadi has joined #ruby
aeontech has joined #ruby
<maloik>
ugh I can't get this to work at all
pawnbox has quit [Remote host closed the connection]
yoongkang has joined #ruby
tk_ has quit [Quit: ばいばい]
subscope has joined #ruby
atomical has quit [Max SendQ exceeded]
mistermocha has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
<varunwachaspati>
Are messages in Ruby dynamically binded to the methods?
aufi has joined #ruby
bubbys has quit [Ping timeout: 240 seconds]
Jardayn has joined #ruby
amirpro_ has quit [Quit: Connection closed for inactivity]
bubbys has joined #ruby
yoongkang has quit [Ping timeout: 260 seconds]
Rickmasta has joined #ruby
SHyx0rmZ has joined #ruby
Rickmast_ has joined #ruby
<maloik>
holy moly, I figured it out... it's the very last part of the regexp that was messing me up, I had to add a * in there as well
<maloik>
score!
<yorickpeterse>
varunwachaspati: the relation between a name and the method is set up when a method is defined
<yorickpeterse>
However, method lookups are dynamic. That is, you can use method_missing and the likes to catch messages sent to objects that can't respond to them
Rickmas__ has joined #ruby
atomical has joined #ruby
pawnbox has joined #ruby
Rickma___ has joined #ruby
ItSANgo has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Rickmasta has quit [Ping timeout: 264 seconds]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmast_ has quit [Ping timeout: 264 seconds]
dEPy has quit [Quit: (null)]
marr has quit []
Rickmas__ has quit [Ping timeout: 260 seconds]
Rickmasta has joined #ruby
subscope has joined #ruby
Rickma___ has quit [Ping timeout: 260 seconds]
aeontech has quit [Ping timeout: 265 seconds]
doublemalt_ has quit [Remote host closed the connection]
Rickmast_ has joined #ruby
elton has joined #ruby
<gregf_>
jobs
<gregf_>
oops. wrong chat
karapetyan has joined #ruby
<adaedra>
It's "Find the steves" game?
Rickmas__ has joined #ruby
subscope has quit [Client Quit]
Rickmasta has quit [Ping timeout: 240 seconds]
Rickma___ has joined #ruby
codecop has quit [Remote host closed the connection]
Rickmasta has joined #ruby
Rickmast_ has quit [Ping timeout: 264 seconds]
<gregf_>
well, kinda. not steves but jobs
elton has quit [Ping timeout: 250 seconds]
Rickmast_ has joined #ruby
saddad has joined #ruby
Rickmas__ has quit [Ping timeout: 276 seconds]
bersimoes has quit [Remote host closed the connection]
Rickma___ has quit [Ping timeout: 240 seconds]
huyderman has quit [Remote host closed the connection]
tvw has quit []
tvw has joined #ruby
tagrudev has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Rickmas__ has joined #ruby
Rickmasta has quit [Ping timeout: 240 seconds]
Rickma___ has joined #ruby
kerunaru has quit [Ping timeout: 260 seconds]
thejoecarroll has quit [Ping timeout: 240 seconds]
Macaveli_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vondruch has quit [Quit: Ex-Chat]
_blizzy_ has joined #ruby
Rickmast_ has quit [Ping timeout: 260 seconds]
Rickmas__ has quit [Ping timeout: 260 seconds]
Rickma___ has quit [Ping timeout: 264 seconds]
Rickmasta has joined #ruby
karapetyan has quit [Remote host closed the connection]
roKin14 has joined #ruby
atomical has quit [Max SendQ exceeded]
Rickmasta has quit [Ping timeout: 240 seconds]
radgeRayden has quit [Read error: Connection reset by peer]
JazzyVariable227 has quit [Remote host closed the connection]
<adam_>
This was through ruby-install, so I just unlinked wget through homebrew. Hacky but whatever :)
<shevy>
he is an expert googler
<jhass>
adaedra: I just googled os x wget invalid cert and it was the second result ...
<shevy>
see, you need to have lots of people have a problem, then googling for it will be simple
<adaedra>
jhass: That was a joke.
<jhass>
mmh, didn't quite get it I guess
AlphaAtom has joined #ruby
<adaedra>
That was probably not a good one.
<shevy>
you had to read it out with a french accent, then you would have understood it
<jhass>
shevy: and that's why Google trends for language popularity is bullshit
inukshuk_ has quit [Quit: leaving]
<shevy>
php rules!
<adaedra>
.!kick shevy
<shevy>
you people are too sceptical of tiobe :(
roKin14 has quit [Remote host closed the connection]
<jhass>
you care way too much about it
<shevy>
it demonstrates the power of statistics
<gregf_>
i was writing some code for profiling a php app and needed to generate unique strings and ended up with this: $a = array_merge(range("A", "Z"), range("a", "z"), range(0, 9),["@", "#","=", "£","%","^","&", "_"]);shuffle($a); $a = implode(array_slice($a,0,7)); print "listMessages$a";
<adaedra>
and those statistics demonstrate what?
lubarch has quit [Quit: leaving]
<shevy>
those statistics state that php is more popular than ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra>
gregf_: do you have a plastic bag I can puke in?
<adaedra>
shevy: and it is relevant because...?
lemur has quit [Remote host closed the connection]
<gregf_>
that code in ruby was like: "listMessages" + [*?a..?z,*?A..?Z,*0..9, *%w|@ # = £ % ^ & _|].shuffle[0..7].join
<shevy>
it is relevant because the better language will be on top
<gregf_>
adaedra: i know, i can sympathize with you ;)
<adaedra>
I prefer having a language where people do it because they like it rather than because everyone else uses it.
<jhass>
?better shevy
<ruboto>
shevy, "Best" and "better" are subjective. Try to use a different term.
djellemah has quit [Ping timeout: 260 seconds]
musl_ has quit [Quit: WeeChat 1.1.1]
musl has joined #ruby
<adaedra>
It does not show the better language, but just the most used one.
JazzyVariable227 has quit [Remote host closed the connection]
maletor has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
atomical_ has joined #ruby
bersimoes has joined #ruby
Rickmast_ has joined #ruby
User458764 has joined #ruby
Rickmast_ has quit [Max SendQ exceeded]
Rickmasta has quit [Ping timeout: 265 seconds]
Xeago has quit [Remote host closed the connection]
Rickmasta has joined #ruby
fedexo has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has quit [Ping timeout: 255 seconds]
timonv has quit [Ping timeout: 265 seconds]
mistermocha has joined #ruby
JazzyVariable227 has joined #ruby
Rickmasta has quit [Ping timeout: 244 seconds]
goodcodeguy has joined #ruby
Miron_ is now known as Miron
gustav_ has quit [Remote host closed the connection]
Coldblackice has joined #ruby
jschmid has quit [Ping timeout: 260 seconds]
JazzyVariable227 has quit [Remote host closed the connection]
gizmore has joined #ruby
JazzyVariable227 has joined #ruby
_blizzy_ has joined #ruby
shlomo has quit [Quit: WeeChat 1.3]
djbkd has quit [Remote host closed the connection]
amclain has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
JazzyVariable227 has quit [Remote host closed the connection]
aeontech has joined #ruby
JazzyVariable227 has joined #ruby
Sigma01 is now known as Sigma00
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User4587_ has joined #ruby
krasnus has joined #ruby
User458764 has quit [Ping timeout: 244 seconds]
amclain has quit [Quit: Leaving]
JazzyVariable227 has quit [Remote host closed the connection]
DoubleMalt has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
spiman has joined #ruby
JazzyVariable227 has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atomical has joined #ruby
rigsby has quit [Ping timeout: 240 seconds]
prestorium_ has joined #ruby
shredding has quit [Ping timeout: 264 seconds]
atomica__ has joined #ruby
User4587_ has quit [Ping timeout: 272 seconds]
joonty has joined #ruby
joonty has quit [Client Quit]
heyimwill has joined #ruby
atomical_ has quit [Ping timeout: 255 seconds]
dimasg has quit [Ping timeout: 240 seconds]
dotix has joined #ruby
weckl has quit [Read error: Connection reset by peer]
prestorium has quit [Ping timeout: 265 seconds]
kerunaru has quit [Quit: leaving]
atomical has quit [Ping timeout: 255 seconds]
robise has quit [Remote host closed the connection]
zacstewart has joined #ruby
JazzyVariable227 has quit [Remote host closed the connection]
JazzyVariable227 has joined #ruby
yoongkang has joined #ruby
joonty has joined #ruby
aeontech has quit [Ping timeout: 265 seconds]
r34d3r has joined #ruby
c0m0 has quit [Ping timeout: 240 seconds]
dotix has quit [Ping timeout: 272 seconds]
bersimoes has quit [Read error: Connection reset by peer]
zacstewart has quit [Ping timeout: 246 seconds]
mistermocha has quit [Ping timeout: 260 seconds]
krz has quit [Ping timeout: 264 seconds]
yoongkang has quit [Ping timeout: 272 seconds]
blackmesa has joined #ruby
<solars>
I'm getting Encoding::UndefinedConversionError: "\xC3" from ASCII-8BIT to UTF-8 on: ftp.gettextfile(file, "#{DOWNLOAD_DIR}/#{date}.csv") - I know I have to use force encoding, but can anyone tell me how to fix this for this line?
maletor has quit [Quit: Computer has gone to sleep.]
bersimoes has joined #ruby
alexherbo2 has quit [Quit: WeeChat 1.3]
joonty has quit [Quit: joonty]
<jhass>
turn on binary transfer encoding
joonty has joined #ruby
<jhass>
that is I guess don't use gettextfile
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nolic has joined #ruby
mrtomme has quit [Ping timeout: 260 seconds]
dimasg has joined #ruby
nolic has quit [Client Quit]
nolic has joined #ruby
JazzyVariable227 has quit [Remote host closed the connection]
mrtomme has joined #ruby
JazzyVariable227 has joined #ruby
* adaedra
waves goodbye
joonty has quit [Client Quit]
maokomioko has joined #ruby
maokomioko has quit [Remote host closed the connection]
hxegon has quit [Ping timeout: 276 seconds]
roshanavand has joined #ruby
elton has joined #ruby
JazzyVariable227 has quit [Remote host closed the connection]
spiman has quit []
marr has joined #ruby
hxegon has joined #ruby
brunto has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
diegoaguilar has quit [Remote host closed the connection]
ruurd has joined #ruby
elton has quit [Ping timeout: 246 seconds]
ruurd is now known as Guest3518
DoubleMalt has joined #ruby
atomica__ has quit [Ping timeout: 255 seconds]
Guest36263 has joined #ruby
tildes has joined #ruby
Peg-leg has quit [Quit: Leaving.]
troulouliou_div2 has quit [Quit: Leaving]
RobertBirnie has quit [Ping timeout: 276 seconds]
dotix has joined #ruby
dotix has joined #ruby
platzhirsch has joined #ruby
Lorn has quit [Changing host]
Lorn has joined #ruby
RobertBirnie has joined #ruby
atomical has joined #ruby
aeontech has joined #ruby
Rollabunna has joined #ruby
alexherbo2 has joined #ruby
tomphp has joined #ruby
brunto has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
kp666 has quit [Read error: Connection timed out]
maloik has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
tomphp has quit [Client Quit]
atomical_ has joined #ruby
linuxboytoo has quit [Remote host closed the connection]
luca768 has left #ruby ["undefined"]
<diegoviola>
what http libraries for ruby do you guys recommend
JazzyVariable227 has joined #ruby
<suchness>
httparty
kp666 has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
<diegoviola>
suchness: wasn't that the one that was least recommended or something?
<suchness>
I don't know.
karapetyan has quit [Ping timeout: 240 seconds]
<varunwachaspati>
are there any static methods/variables/ blocks in ruby?like in JAVA
<suchness>
I have never had issues with it, you asked what I reccomend not the hivemind.
kjones_ has joined #ruby
<suchness>
diegoviola: Why don't you find out for yourself.
subscope has joined #ruby
kjones_ has quit [Max SendQ exceeded]
gustav_ has joined #ruby
<diegoviola>
no need to take offense
maloik has quit [Ping timeout: 244 seconds]
<suchness>
I am not taking ay offense.
atomical has quit [Ping timeout: 255 seconds]
atomica__ has joined #ruby
kjones_ has joined #ruby
<diegoviola>
I'm not belittling your suggestions or anything, I just heard that library was awful
<suchness>
Just use whatever one whatever blog you read told you to use instead of httparty.
bruce_lee_kungFu has quit [Ping timeout: 260 seconds]
Freeaqingme has quit [Read error: Connection reset by peer]
ekem has joined #ruby
terminalrecluse has joined #ruby
PaulePanter has joined #ruby
ekleog has quit [Ping timeout: 260 seconds]
hypnosb has quit [Ping timeout: 260 seconds]
yqt has joined #ruby
vondruch has joined #ruby
SherSpock_ has joined #ruby
woven has joined #ruby
rfv has joined #ruby
matp has joined #ruby
solenoids has joined #ruby
bihi has joined #ruby
bMalum has quit [Quit: bMalum]
maletor has joined #ruby
zacstewart has joined #ruby
linduxed has joined #ruby
drbernardi has joined #ruby
pietr0 has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
xMopxShell has joined #ruby
krasnus has joined #ruby
ohaibbq has joined #ruby
Freeaqingme has joined #ruby
mistermocha has joined #ruby
amoeba has joined #ruby
janelleb has quit [Ping timeout: 260 seconds]
5EXAALLUN has quit [Read error: Connection reset by peer]
bersimoes has joined #ruby
hypnosb has joined #ruby
brixen has joined #ruby
Muz has joined #ruby
5EXAALMFW has joined #ruby
maxmanders has quit [Ping timeout: 260 seconds]
5EXAALKHD has quit [Ping timeout: 260 seconds]
ekleog has joined #ruby
perry has joined #ruby
Muz has joined #ruby
perry has quit [Excess Flood]
forgot has quit [Ping timeout: 260 seconds]
Muz has quit [Changing host]
perry has joined #ruby
perry has quit [Changing host]
perry has joined #ruby
forgot has joined #ruby
blubjr has joined #ruby
sfr^ has joined #ruby
mmitchell is now known as 5EXAALLKZ
dmcp_ has joined #ruby
<blubjr>
hi
zacstewart has quit [Ping timeout: 246 seconds]
klaas_ has joined #ruby
DoYouKnow has joined #ruby
patronus has joined #ruby
5EXAALMFW has quit [Ping timeout: 260 seconds]
brixen has quit [Ping timeout: 260 seconds]
monoprotic has joined #ruby
maxmanders has joined #ruby
janelleb has joined #ruby
troyreadyy has joined #ruby
BrunoSaboia has quit [Ping timeout: 246 seconds]
ta_ has joined #ruby
crowell_ has joined #ruby
akosednar has joined #ruby
Meliodas has joined #ruby
ohaibbq_ has joined #ruby
DefV_ has joined #ruby
abra0_ has joined #ruby
phreakocious_ has joined #ruby
pietr0_ has joined #ruby
yo61 has quit [Ping timeout: 240 seconds]
phreakocious has quit [Ping timeout: 240 seconds]
bakingbread has quit [Ping timeout: 240 seconds]
linc01n has quit [Ping timeout: 240 seconds]
d0nn1e has quit [Ping timeout: 240 seconds]
bttf has quit [Ping timeout: 240 seconds]
bcavileer_ has quit [Ping timeout: 240 seconds]
rfv has quit [Ping timeout: 240 seconds]
pocketprotector has quit [Ping timeout: 240 seconds]
sindork has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 240 seconds]
shinenelson has quit [Ping timeout: 240 seconds]
akkad has quit [Ping timeout: 240 seconds]
cbednarski has quit [Ping timeout: 240 seconds]
vcoinminer has quit [Ping timeout: 240 seconds]
ohaibbq has quit [Ping timeout: 240 seconds]
lenwood has quit [Ping timeout: 240 seconds]
haasn has quit [Ping timeout: 240 seconds]
krasnus has quit [Ping timeout: 240 seconds]
solenoids has quit [Ping timeout: 240 seconds]
nofxx has quit [Ping timeout: 240 seconds]
crowell has quit [Ping timeout: 240 seconds]
Gadgetoid has quit [Ping timeout: 240 seconds]
mprelude has quit [Ping timeout: 240 seconds]
leat has quit [Ping timeout: 240 seconds]
bgresham has quit [Ping timeout: 240 seconds]
kramsee has quit [Ping timeout: 240 seconds]
LiquidInsect has quit [Ping timeout: 240 seconds]
Guest69735 has quit [Ping timeout: 240 seconds]
Gadgetoid has joined #ruby
sunya7a has joined #ruby
sunya7a has joined #ruby
pietr0 has quit [Ping timeout: 240 seconds]
asmodlol has quit [Ping timeout: 240 seconds]
pietr0_ is now known as pietr0
diprotic has quit [Ping timeout: 240 seconds]
beast has quit [Quit: Leaving]
bihi has quit [Ping timeout: 264 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
sindork_ has joined #ruby
icedp has joined #ruby
Meliodas has quit [Ping timeout: 265 seconds]
amoeba has quit [Ping timeout: 265 seconds]
lenwood has joined #ruby
solocshaw has joined #ruby
akosednar has quit [Ping timeout: 265 seconds]
solenoids has joined #ruby
nolic has joined #ruby
demophoon has joined #ruby
ohaibbq_ has quit [Ping timeout: 265 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
linc01n has joined #ruby
CloCkWeRX has joined #ruby
RealMarc has joined #ruby
moeabdol1 has joined #ruby
avelldiroll has joined #ruby
akkad has joined #ruby
Phage- has joined #ruby
akitada has joined #ruby
hypnosb has quit [Ping timeout: 260 seconds]
DefV has quit [Ping timeout: 260 seconds]
eam has joined #ruby
hypnosb has joined #ruby
d0nn1e has joined #ruby
Junaos has joined #ruby
mprelude has joined #ruby
absolutejam has joined #ruby
elton has joined #ruby
Outlastsheep has joined #ruby
haasn has joined #ruby
radgeRayden_ has joined #ruby
Junaos has joined #ruby
Junaos has quit [Changing host]
Muz is now known as 5EXAALMET
Junaos is now known as 5EXAALNDJ
thomasfedb_ has joined #ruby
GGMethos has joined #ruby
TheBrayn has joined #ruby
asmodlol has joined #ruby
abra0_ is now known as abra0
<kiki_lamb>
Anyone got a sed script (or otherwise) to stip a module statement and it'ss associated end tag from a file? Like, I've got a directory tree 'models\bubbles\' full of files containing 'module Models; module Bubbles', and I want to unwrap the whole thing to just 'models\' with the files just containint 'module Models;'
Bilge- has joined #ruby
kramsee has joined #ruby
solocshaw1 has joined #ruby
brixen has joined #ruby
Bilge- is now known as Bilge
solocshaw has quit [Ping timeout: 264 seconds]
solocshaw1 is now known as solocshaw
elton has quit [Ping timeout: 260 seconds]
FastJack has quit [Ping timeout: 260 seconds]
Aww has joined #ruby
<kiki_lamb>
there are like 30+ files in the tree, so if I could do it en masse by calling a sed script from find that would save me a lot of manual stripping of module statements
ZYPP has joined #ruby
ur5us has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
chridal has quit [Ping timeout: 260 seconds]
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shinenelson has joined #ruby
pocketprotector has joined #ruby
krajos has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
ur5us has joined #ruby
Outlastsheep has quit [Ping timeout: 260 seconds]
forgot has quit [Max SendQ exceeded]
pocketprotector has quit [Max SendQ exceeded]
hypnosb has quit [Max SendQ exceeded]
d0nn1e has quit [Ping timeout: 260 seconds]
bestie has joined #ruby
haasn is now known as 5EXAALNLQ
mprelude is now known as 5EXAALNCQ
gustav has joined #ruby
5EXAALNCQ has quit [Max SendQ exceeded]
ekleog has quit [Max SendQ exceeded]
klaas_ has quit [Max SendQ exceeded]
5EXAALNDJ has quit [Max SendQ exceeded]
ohaibbq has joined #ruby
<krajos>
Hey Everyone, Happy Thanksgiving! I'm very new to Ruby and have a silly question: I'm trying to find out what the "-1" in the "return seen[-1*n]" part of the code actually does. Can someone please enlighten me? Here's the code: def two_sum(nums)
<krajos>
seen = {}
<krajos>
return seen[-1*n], i if seen.key?(-1*n)
<krajos>
nums.each_with_index do |n, i|
<krajos>
seen[n] = i
5EXAALMET has quit [Quit: Reconnecting]
<krajos>
end
Muz has joined #ruby
<krajos>
nil
<krajos>
end
mrtomme has joined #ruby
juddey has joined #ruby
<krajos>
I would be forever grateful
rfv has joined #ruby
yo61 has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
d0nn1e has joined #ruby
mprelude has joined #ruby
uxp has joined #ruby
nofxx has quit [Read error: Connection reset by peer]
ekleog has joined #ruby
chridal has joined #ruby
<yorickpeterse>
-1 * n does that it does, multiplies -1 by n. A negative array index (e.g. seen[-5]) means it moves from the back, instead of the front
nofxx has joined #ruby
<yorickpeterse>
>> [10, 20, 30][-1]
<yorickpeterse>
....where's that bot
FastJack has joined #ruby
<yorickpeterse>
>> [10, 20, 30][-1]
klaas_ has joined #ruby
<yorickpeterse>
meh
<krajos>
Thanks a lot, yorickpeterse !
<yorickpeterse>
[10, 20, 30][-1] # => 30
<yorickpeterse>
[10, 20, 30][-2] # => 20
<yorickpeterse>
etc
forgot has joined #ruby
<krajos>
Thanks, I think I get it now.
<krajos>
Have a nice Holiday
<krajos>
assuming you're in the states
<krajos>
if not, have a nice day and thank you.
marienz has joined #ruby
_blizzy_ has joined #ruby
Junaos has joined #ruby
danoo_ has joined #ruby
Silex has joined #ruby
bihi has joined #ruby
hypnosb has joined #ruby
alexherbo2 has joined #ruby
aspiers_ has joined #ruby
ruurd has joined #ruby
sandstrom has joined #ruby
ruurd is now known as Guest85133
platzhirsch has left #ruby [#ruby]
tildes has joined #ruby
pocketprotector has joined #ruby
drbrain has joined #ruby
musicmatze has joined #ruby
vcoinminer has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
Rollabunna has joined #ruby
scripore has joined #ruby
bcavileer_ has joined #ruby
dotix has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
InvGhost has joined #ruby
cbednarski has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
krajos has quit [Quit: Leaving]
leat has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
LiquidInsect has joined #ruby
SherSpock_ has quit [Ping timeout: 246 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
Guest69735 has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sparr has joined #ruby
bttf has joined #ruby
Oli` has joined #ruby
Ray`_ is now known as Ray`
varunwachaspati has quit [Quit: Connection closed for inactivity]
xfbs has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
machty has joined #ruby
tomaw- is now known as tomaw
ta_ has quit [Remote host closed the connection]
dionysus69 has joined #ruby
5EXAALNLQ is now known as haasn
RobertBirnie has joined #ruby
null__ has joined #ruby
null__ has joined #ruby
RobertBirnie has quit [Client Quit]
cookiez has joined #ruby
DoYouKnow has quit [Disconnected by services]
arup_r has quit []
woven has quit [Ping timeout: 260 seconds]
AustinMatherne has joined #ruby
Oli`` has joined #ruby
rigsby has joined #ruby
Oli` has quit [Ping timeout: 260 seconds]
Oli`` is now known as Guest22788
zhaze3 has joined #ruby
ItSANgo__ has joined #ruby
ta has joined #ruby
pawnbox has joined #ruby
maxmanders_ has joined #ruby
kadoppe_ has joined #ruby
mmasaki_ has joined #ruby
RandyT has joined #ruby
Phage has joined #ruby
prestorium has joined #ruby
ruurd_ has joined #ruby
utkarsh has joined #ruby
M-mistake1 has joined #ruby
\13k_ has joined #ruby
ruurd_ has quit [Client Quit]
yeshacker has joined #ruby
ironcamel has joined #ruby
ec\_ has joined #ruby
Ariadeno has joined #ruby
cornerman has joined #ruby
mozzarel1 has joined #ruby
Ariadeno is now known as Guest22136
Muz_ has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
ruurd_ has joined #ruby
rdema has joined #ruby
mattwildig has joined #ruby
julieeharshaw has joined #ruby
bakedb has joined #ruby
deg_ has joined #ruby
headius_ has joined #ruby
Armand has joined #ruby
Armand is now known as Guest76008
phreakocious has joined #ruby
ltd_ has joined #ruby
sonOfRa_ has joined #ruby
mrsolo has quit []
pleiosaur has joined #ruby
Coral has joined #ruby
bihi_ has joined #ruby
User4587_ has joined #ruby
freerobby1 has joined #ruby
Coral is now known as Guest9744
Guest9744 is now known as tjad
Takumo has joined #ruby
Takumo has joined #ruby
skakri` has joined #ruby
wwalker has joined #ruby
boshhead_ has joined #ruby
ur5us_ has joined #ruby
tomdp has joined #ruby
casadei has joined #ruby
Cohedrin has joined #ruby
JazzyVariable227 has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
ruurd_ has quit [Ping timeout: 240 seconds]
nirix_ has joined #ruby
Jackneill_ has joined #ruby
gustav_ has joined #ruby
casadei has quit [Remote host closed the connection]
Outlastsheep has joined #ruby
ohaibbq_ has joined #ruby
dfoolz has joined #ruby
ruurd_ has joined #ruby
_df has joined #ruby
NeverTired has joined #ruby
mhenrixon_ has joined #ruby
asmodlol has quit [Ping timeout: 240 seconds]
perryh has joined #ruby
perryh has joined #ruby
L1nuX- has joined #ruby
lkba has joined #ruby
Ray`_ has joined #ruby
erichmenge has joined #ruby
myztic has joined #ruby
klaas_ is now known as klaas
gsingh93_ has joined #ruby
heyimwill has joined #ruby
pragmatism has joined #ruby
elton has joined #ruby
xfbs has quit []
elem has joined #ruby
pietr0_ has joined #ruby
glenny has joined #ruby
sdothum has joined #ruby
Engin has joined #ruby
shortdudey123_ has joined #ruby
sarlalian has joined #ruby
russt_ has joined #ruby
conrfrmn has joined #ruby
Schmidt has joined #ruby
james1 has joined #ruby
drbernardi has quit [Quit: Leaving]
maxmanders has quit [Ping timeout: 246 seconds]
mmasaki has quit [Ping timeout: 246 seconds]
Phage- has quit [Ping timeout: 246 seconds]
M-mistake has quit [Ping timeout: 246 seconds]
headius has quit [Ping timeout: 246 seconds]
kadoppe has quit [Ping timeout: 246 seconds]
\13k has quit [Ping timeout: 246 seconds]
ironcame1 has quit [Ping timeout: 246 seconds]
gsingh93 has quit [Ping timeout: 246 seconds]
ec\ has quit [Ping timeout: 246 seconds]
mozzarella has quit [Ping timeout: 246 seconds]
Sp4rKy has quit [Ping timeout: 246 seconds]
Ray` has quit [Ping timeout: 246 seconds]
dualbus has quit [Ping timeout: 246 seconds]
User458764 has quit [Ping timeout: 246 seconds]
nirix has quit [Ping timeout: 246 seconds]
skakri has quit [Ping timeout: 246 seconds]
Apocalypse has quit [Ping timeout: 246 seconds]
boshhead has quit [Ping timeout: 246 seconds]
z1haze2 has quit [Ping timeout: 246 seconds]
ur5us has quit [Ping timeout: 246 seconds]
ekem has quit [Ping timeout: 246 seconds]
mhenrixon has quit [Ping timeout: 246 seconds]
yes`r has quit [Ping timeout: 246 seconds]
Muz has quit [Ping timeout: 246 seconds]
Guest11260 has quit [Ping timeout: 246 seconds]
dracula has quit [Ping timeout: 246 seconds]
phreakocious_ has quit [Ping timeout: 246 seconds]
russt has quit [Ping timeout: 246 seconds]
df has quit [Ping timeout: 246 seconds]
L1nuX has quit [Ping timeout: 246 seconds]
bihi has quit [Ping timeout: 246 seconds]
perry has quit [Ping timeout: 246 seconds]
Vile` has quit [Ping timeout: 246 seconds]
julie_harshaw has quit [Ping timeout: 246 seconds]
<adaedra>
It has the advantage to be provided by Rails itself.
_blizzy_ has joined #ruby
skakri has joined #ruby
bersimoes has joined #ruby
JazzyVariable227 has joined #ruby
goodcodeguy has joined #ruby
voodo has quit [Quit: Leaving...]
ta has quit [Ping timeout: 240 seconds]
k3asd` has quit [Ping timeout: 240 seconds]
helpa has joined #ruby
<solars>
I'll have a look, thank you
prestorium has quit [Quit: Leaving]
skweek has quit [Ping timeout: 264 seconds]
gustav has quit [Remote host closed the connection]
fedexo has quit [Ping timeout: 240 seconds]
dmolina1 has joined #ruby
dmolina has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 264 seconds]
symm- has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
BraddPitt has joined #ruby
shelling__ has quit [Remote host closed the connection]
pmarreck has quit [Remote host closed the connection]
jabreity has quit [Remote host closed the connection]
lancetw has quit [Remote host closed the connection]
twodayslate has quit [Remote host closed the connection]
Lloyd has quit [Remote host closed the connection]
shinenelson has quit [Remote host closed the connection]
prosody has quit [Remote host closed the connection]
vikaton has quit [Remote host closed the connection]
ELLIOTTCABLE has quit [Remote host closed the connection]
yo61 has quit [Remote host closed the connection]
akitada has quit [Remote host closed the connection]
machty has quit [Remote host closed the connection]
scottstamp has joined #ruby
amoeba has joined #ruby
zeroDivisible has joined #ruby
My_Hearing has joined #ruby
My_Hearing is now known as Mon_Ouie
dravine has quit [Ping timeout: 260 seconds]
kirun has quit [Quit: Client exiting]
blackmesa has quit [Quit: WeeChat 1.3]
elton has joined #ruby
myztic has joined #ruby
NeverTired has quit [Quit: Connection closed for inactivity]
ICantCook has joined #ruby
johnny56 has joined #ruby
<ICantCook>
Where I work, we have a lot of random Ruby (and bash, and other languages) scripts which perform maintenance on our web applications. These have commandline interfaces. Is there some sort of opensource web-app to run commandline scripts, with a pretty interface, dropdown parameters, etc?
<ICantCook>
Currently, I've been creating jenkins build jobs for junior support staff to run such scripts, with dropdown/checkboxes for parameters
<ICantCook>
but I was wondering if there's a better tool for the job
elton has quit [Ping timeout: 265 seconds]
<centrx>
ICantCook, What? Why can't you run them on the command line?
<TTilus>
just teach the juniors to use command line
yeticry has joined #ruby
mrsolo has joined #ruby
vikas027 has quit [Read error: Connection reset by peer]
<ICantCook>
centrx: I can lol. But management wants it in a pretty gui in the near future
<TTilus>
maybe make the scripts a bit more unified and robust wrt. argument parsing, improve --help and write completions
<TTilus>
ICantCook: tell the mgmt it'll be cheaper to teach juniors to work on command line (which they need to learn at some point anyways) and they'll be more effective on commandline instead of with a gui
Kharma has joined #ruby
<TTilus>
ICantCook: they usually understand money arguments
Guest85414______ has joined #ruby
Vile` has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
<TTilus>
there's a reason command line is called COMMAND line :)
ELLIOTTCABLE has joined #ruby
<TTilus>
(it just might have something to do with the fact it has been polished over decades to be effective in issuing commands to computer)
jmhmccr has joined #ruby
RegulationD has joined #ruby
<ICantCook>
lol! Yes, I'm aware of all that. I want to have a technical solution available as well :)
<ICantCook>
lol @ the HAL picture
pmarreck has joined #ruby
dimasg has quit [Ping timeout: 240 seconds]
im0b has joined #ruby
voodo has joined #ruby
dravine has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
diegoaguilar has quit [Ping timeout: 264 seconds]
purplexed- has quit [Quit: Leaving]
shelling__ has joined #ruby
nettoweb has quit [Client Quit]
JazzyVariable227 has quit [Remote host closed the connection]
akitada has joined #ruby
twodayslate has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
purplexed- has joined #ruby
calderonroberto has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
zeroDivisible has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
KramerC_ has quit [Changing host]
KramerC_ has joined #ruby
JazzyVariable227 has joined #ruby
bersimoes has quit [Remote host closed the connection]
KramerC_ is now known as KramerC
waka has joined #ruby
lacrosse has joined #ruby
machty has joined #ruby
yo61 has joined #ruby
bove has joined #ruby
benlakey has joined #ruby
diegoaguilar has joined #ruby
Kyuujitsu has joined #ruby
lancetw has joined #ruby
JazzyVariable227 has quit [Read error: Connection reset by peer]
InvGhost has quit [Read error: Connection reset by peer]
yqt has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
prosody has joined #ruby
vikas027 has joined #ruby
voodo has quit [Quit: Leaving...]
Kyuujitsu has quit [Quit: leaving]
Kyuujitsu has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
countryHick has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
bersimoes has joined #ruby
_blizzy_ has quit [Quit: Leaving]
Mon_Ouie has quit [Ping timeout: 260 seconds]
mrsolo has joined #ruby
shinenelson has joined #ruby
Heero has joined #ruby
dotix has joined #ruby
tubuliferous_ has joined #ruby
skweek has joined #ruby
ta has joined #ruby
nso95- has joined #ruby
nso95- has joined #ruby
dlitvak has joined #ruby
hkumar has joined #ruby
_blizzy_ has joined #ruby
vikaton has joined #ruby
<TTilus>
parameterized jenkins jobs are the closest that i can think of
<centrx>
TTilus, You could make a webapp real quick to do it
dotix has quit [Ping timeout: 264 seconds]
<centrx>
TTilus, but again silly
<TTilus>
yes, very much so
ta has quit [Ping timeout: 240 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hxegon has joined #ruby
solocshaw has joined #ruby
moeabdol2 has joined #ruby
Anthony_ has joined #ruby
Anthony_ has left #ruby [#ruby]
nso95- has quit [Remote host closed the connection]
blackmes1 has joined #ruby
_blizzy_ has quit [Disconnected by services]
dlitvak has quit [Remote host closed the connection]
d0nn1e_ has joined #ruby
Mia has joined #ruby
safe has joined #ruby
tomdp_ has joined #ruby
yoongkang has joined #ruby
glenn_ has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
perryh has joined #ruby
perryh has joined #ruby
yasu__ has joined #ruby
vikas027 has quit [Read error: Connection reset by peer]
Mia has quit [Ping timeout: 265 seconds]
yoongkang has quit [Ping timeout: 246 seconds]
Azure|dc has joined #ruby
dfoolz_ has joined #ruby
shortdudey123_ has joined #ruby
nirix_ has joined #ruby
brixen_ has joined #ruby
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]