kyleolivo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmes1 has joined #ruby
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeanlinu_ has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
jeanlinux has quit [Ping timeout: 265 seconds]
jeanlinux has joined #ruby
symm- has joined #ruby
blaxter has joined #ruby
tercenya_ has joined #ruby
jeanlinu_ has quit [Ping timeout: 265 seconds]
jeanlinu_ has joined #ruby
raeoks has joined #ruby
tmtwd_ has joined #ruby
blackmes1 has quit [Ping timeout: 244 seconds]
tercenya has quit [Ping timeout: 244 seconds]
mixtli has joined #ruby
govg has quit [Ping timeout: 258 seconds]
jeanlin__ has joined #ruby
heelpmeplz has joined #ruby
jeanlinux has quit [Ping timeout: 265 seconds]
Pumukel has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tmtwd has quit [Ping timeout: 265 seconds]
jeanlinux has joined #ruby
jeanlinu_ has quit [Ping timeout: 265 seconds]
jblack has joined #ruby
jeanlin__ has quit [Ping timeout: 265 seconds]
jeanlinu_ has joined #ruby
flashpoint9 has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
saneax_AFK is now known as saneax
saneax is now known as Guest18059
jeanlinux has quit [Ping timeout: 265 seconds]
jeanlin__ has joined #ruby
Pumukel has joined #ruby
<heelpmeplz>
Can anyone tell me how to how I can extract the data from this url (http://api.steampowered.com/ISteamApps/GetAppList/v0002/?format=json) into some kind of hash? I trued JSON.parse and it only generated 1 key ("apps") with the value being the entire rest of the page. So I figure the easiest way is to extract each pair of values and run JSON.parse on each, but I can't figure out how to extract each pair from the page as JSON. I
<heelpmeplz>
tried pageString.scan(/\{.*\}/) Anyone else have any ideas?
symm- has quit [Quit: Leaving...]
jblack has quit [Ping timeout: 244 seconds]
kiba_ has joined #ruby
<heelpmeplz>
I should mention, pageString.scan(/\{.*\}/) did not find any matches
lightheaded has quit [Remote host closed the connection]
<kiba_>
Hello.
jeanlinu_ has quit [Ping timeout: 265 seconds]
lightheaded has joined #ruby
lightheaded has quit [Remote host closed the connection]
<kiba_>
so, let say I have "1d6" where it means: roll a dice size of 1 for one time.
jeanlinux has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
<kiba_>
"4d6" says roll a dice size of size for four time and sum all outcomes
lightheaded has joined #ruby
brianpWins has joined #ruby
bocaneri has joined #ruby
<kiba_>
what's the appropriate way to parse those? Should I use regular expression? Or something else?
<kiba_>
maybe I should just split("d") and be done with it.
<kiba_>
I am not doing anything more complicated, for the foreseeable future
jeanlin__ has quit [Ping timeout: 265 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
LoneHerm_ has quit [Remote host closed the connection]
<heelpmeplz>
break it into characters and assign the first and last character each to a variable. Then: first.times do (roll die of size "second")
<heelpmeplz>
so, 4d6:
<heelpmeplz>
a = 4, b = 6
jeanlinu_ has joined #ruby
Pumukel has joined #ruby
<heelpmeplz>
a.times do (roll a die of size b)
<heelpmeplz>
Can anyone tell me how to how I can extract the data from this url (http://api.steampowered.com/ISteamApps/GetAppList/v0002/?format=json) into some kind of hash? I trued JSON.parse and it only generated 1 key ("apps") with the value being the entire rest of the page. So I figure the easiest way is to extract each pair of values and run JSON.parse on each, but I can't figure out how to extract each pair from the page as JSON. I
<heelpmeplz>
tried pageString.scan(/\{.*\}/) Anyone else have any ideas? I should mention, pageString.scan(/\{.*\}/) did not find any matches.
<kiba_>
heelpmeplz: the code is easy. I am just trying to decide the appropriate solution. I am not sure what you mean by breaking down into characters. "1d6".split('d') seems to do the trick
moonythedwarf_ has quit [Ping timeout: 265 seconds]
the_drow has joined #ruby
jeanlinux has joined #ruby
Silthias has quit [Ping timeout: 276 seconds]
flughafen has quit [Quit: WeeChat 1.3]
moonythedwarf_ has joined #ruby
trampi has joined #ruby
<shmulik>
hi, i have this part of hex string "050003ad0201002005d605d705d805d905d005d105d205d305d405d505d605d705d805d905d005", the first byte is the length of the header i need, and so on, so how can i extract the header from this string?
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest93616 has quit [Ping timeout: 252 seconds]
Neobenedict has quit [Ping timeout: 252 seconds]
Guest93616 has joined #ruby
jeanlin__ has quit [Ping timeout: 265 seconds]
Burgestrand has joined #ruby
Neobenedict has joined #ruby
Neobenedict has joined #ruby
Neobenedict has quit [Changing host]
chihhsin has joined #ruby
jeanlinu_ has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
jblack has joined #ruby
jeanlinux has quit [Ping timeout: 265 seconds]
the_drow has joined #ruby
spudowiar has joined #ruby
antgel has joined #ruby
<shmulik>
jhass thanks for that, after i have the length i need to follow it by to chars each time, my case: '05'=udh_length, '00'=udh_tag, '03'=length_of_tag(meant next 3 bytes), 'ad'=first_param_of_this_tag
jeanlinux has joined #ruby
blackgoat has quit [Ping timeout: 276 seconds]
<zenspider>
Shmulik: can you paste a rough diagram of the struct/stream layout?
Hakon has joined #ruby
<jhass>
yeah I'm not sure I follow
<jhass>
or the docs you follow if they're public
jenrzzz has quit [Ping timeout: 260 seconds]
mark_66 has joined #ruby
jeanlinu_ has quit [Ping timeout: 265 seconds]
jblack has quit [Ping timeout: 240 seconds]
symm- has quit [Ping timeout: 276 seconds]
blackmes1 has joined #ruby
pmyjavec has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Hakon>
hello. I'm trying to escape & in a string. i tried "a & b".gsub("&", "\\&"), but it does not seem to replace it. other replacement characters work fine
<shmulik>
050003ad0201002005d605d705 given that string (binary data) i need to extract just this part 050003ad0201 cause the first is '05' so next 5 bytes are my interest data
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
<shmulik>
yes its public user-data-header
<Hakon>
>> "a & b".gsbu('&', '\\&')
<ruby[bot]>
Hakon: # => undefined method `gsbu' for "a & b":String ...check link for more (https://eval.in/623846)
<zenspider>
Hakon: what are you *actually* trying to do?
beilabs has quit [Ping timeout: 240 seconds]
<Hakon>
i only wanted 1 \
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Bish>
>> "a & b".gsub('&','\'+'&')
<ruby[bot]>
Bish: # => /tmp/execpad-9dc77c2ae6a1/source-9dc77c2ae6a1:2: unterminated string meets end of file ...check link for more (https://eval.in/623856)
<Hakon>
i need to escape & because it has special meaning in latex code
<deception1>
how to stop asset debugging in rails 2.3 in development env, In latest versions of rails changing config.assets.debug = true to false on development.rb will disable asset debugging in development env but how to achieve that in rails 2.3
<Bish>
step 1, going to #rails :3
araujo_ has joined #ruby
<deception1>
Bish, Lol that I cant do :D
<Bish>
deception1: how is that
LoneHerm_ has quit [Ping timeout: 252 seconds]
<ljarvis>
rails 2?
teclator has quit [Ping timeout: 265 seconds]
<ljarvis>
wat
postmodern has quit [Quit: Leaving]
<zenspider>
it happens... github hasn't been on 3 for very long
<jhass>
?rails deception1
<ruby[bot]>
deception1: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<ljarvis>
it's 9 years old :(
exadeci has quit []
<ljarvis>
but yeah, didn't think rails 2 had all that asset hocus pocus
Pumukel has joined #ruby
<jhass>
maybe they confuse it with their ruby -v
Hakon has left #ruby [#ruby]
jeanlinu_ has quit [Ping timeout: 265 seconds]
<ljarvis>
yeah thinking that too
araujo has quit [Ping timeout: 244 seconds]
elaptics has joined #ruby
joonty has joined #ruby
infra-red has joined #ruby
jeanlinux has quit [Ping timeout: 265 seconds]
_pastel has quit [Quit: leaving]
Guest93616 has quit [Ping timeout: 276 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
wpp has joined #ruby
Guest93616 has joined #ruby
Pumukel has joined #ruby
etehtsea has joined #ruby
craigp has quit [Ping timeout: 276 seconds]
<mikecmpbll>
2.3
Azure has quit [Remote host closed the connection]
karmatr0n has joined #ruby
meatchicken has quit [Read error: Connection reset by peer]
Hyuk has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
moredhel has joined #ruby
Cohedrin has joined #ruby
Pumukel has joined #ruby
<shmulik>
zenspider you right but i got this format after some processing from smsc so maybe in smsc it doing the rest
<zenspider>
jhass: hah! well... it does add lib to loadpath. :P
the_drow has quit [Quit: This computer has gone to sleep]
<mikecmpbll>
what's the idea of the files directive, anyway?
<jhass>
so you can have shit in your repo that doesn't end up in the gem
<mikecmpbll>
oh so it literally knows which files to package up?
<mikecmpbll>
ya, stupid question
etehtsea has joined #ruby
<zenspider>
not stupid. it's a bit odd. even odder is that it then throws that array away when it unpacks the gem because we don't want them in memory... even tho that could speed up finding a lot
duncannz has quit [Remote host closed the connection]
lightheaded has quit [Ping timeout: 260 seconds]
flashpoint9 has joined #ruby
blackmes1 has quit [Ping timeout: 252 seconds]
<zenspider>
amincd: your question doesn't make sense/parse
Guest93616 has quit [Ping timeout: 265 seconds]
<zenspider>
what are you actually trying to do?
Guest93616 has joined #ruby
hk238 has joined #ruby
<amincd>
zenspider: when there is no file called 'nonexisting', the programs keeps looping. When I create the file, it does not output "hello world", even though it exists the loop and does the IO#write and IO.binread
<zenspider>
you haven't flushed/closed/anything... also don't see a touch. also superflous quotes
<amincd>
*even though it eits
<amincd>
exits
<Bish>
jhass: im still having problems with encoding
<zenspider>
"even though it exists"... you might want to question that
Guest93616 has quit [K-Lined]
<zenspider>
also, you're swallowing an exception and calling retry. Have you looked at what the exception is?
etehtsea has quit [Quit: Computer has gone to sleep.]
<amincd>
but I assume it has to do with File.open not working since there is no file called "nonexisting"
<ruby[bot]>
Bish: # => bad component(expected userinfo component or user component): a@a.de (URI::InvalidComponentError) ...check link for more (https://eval.in/624002)
paradisaeidae_ has quit [Quit: ChatZilla 0.9.92 [Firefox 48.0/20160726073904]]
<ruby[bot]>
Bish: # => uninitialized constant CGI (NameError) ...check link for more (https://eval.in/624003)
<Bish>
eh.
flashpoint9 has quit [Ping timeout: 250 seconds]
pokalyis has joined #ruby
<zenspider>
amincd: I'd start at looking at the exception
<Bish>
jhass: but if i access u.user afterwards, it does contain %40 escaped.. i want it unescaped
etehtsea has joined #ruby
<jhass>
CGI.unescape
<Bish>
well but i thought the uri class does the escaping ( unscaping )
jeanlinux has joined #ruby
<Bish>
isn't there really no good standard for that?
<jhass>
well, apparently it does not
<jhass>
Addressable::URI from the addressable gem is somewhat saner
ironcamel has quit [Ping timeout: 276 seconds]
astrobun_ has quit [Remote host closed the connection]
ledestin has quit [Ping timeout: 276 seconds]
adam12 has quit [Ping timeout: 276 seconds]
<zenspider>
amincd: lemme know how it goes
the_rhizo3 has joined #ruby
ironcamel has joined #ruby
<amincd>
zenspider: I got this: No such file or directory @ rb_sysopen - nonexisting
ec0 has joined #ruby
<zenspider>
amincd: *nod*
<amincd>
so oddly enough, after I create 'nonexisting' with `touch nonexisting`, it doesn't output 'hello world'. However if I precede the 'puts IO.binread("nonexisting") line with "puts io.pos", it does
<jhass>
sleep(1) until File.exist?(path); File.write(path, "hello world")
colegatron has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
Vingador has joined #ruby
KaliLinuxGR has quit [Quit: Keep Hacking]
jeanlinux has quit [Ping timeout: 265 seconds]
<zenspider>
... or you could let him learn... ugh.
<jhass>
dunno, what's this for? IPC?
<amincd>
I'm guessing Ruby is not reading the file on the first pass
<jhass>
amincd: Ruby used buffered IO for files by default, so when you call io.pos in order to determine the real file position the buffer is flushed first so there are no pending writes
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
eljimmy has joined #ruby
triangles has quit [Quit: Leaving]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
Burgestrand has quit [Ping timeout: 240 seconds]
ta_ has quit [Remote host closed the connection]
<iCHAIT_>
jhass: I didn't understand, I think I wasn't able to make my point clear, what I want is that I want to write a document for my project and later on integrate it with rdoc for the same project.
bkxd has quit [Ping timeout: 240 seconds]
<iCHAIT_>
so this document should be accessible via that rdoc itself
xall has joined #ruby
vondruch has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 258 seconds]
<jhass>
yup, add a file called whatever.rdoc
<jhass>
rdoc will pick it up
Burgestrand has joined #ruby
pandaant has quit [Remote host closed the connection]
<dipnlik>
iCHAIT_: i think jhass is suggesting you to migrate the old docs to new rdoc files and you don’t want to do that?
<iCHAIT_>
aah, and would I see and option 'whatever' in the menu, as in the sidebar listing all the sections of the codebase?
Pumukel has quit [Ping timeout: 260 seconds]
<iCHAIT_>
jhass: ^
beilabs has joined #ruby
<iCHAIT_>
including whatever
<iCHAIT_>
?
<jhass>
huh, no but you would see an option in the menu that links to that document
<jhass>
Enumerable#map calls .each, Hash#each (conceptually) yields a two element array. When yielding an array and there is more than one argument to the block ruby automatically unpacks it
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
submitnine has quit []
crystal77 has joined #ruby
tdw_ has joined #ruby
mim1k has quit [Ping timeout: 250 seconds]
tdy has quit [Ping timeout: 260 seconds]
crystal77 has quit [Client Quit]
whathappens has joined #ruby
beilabs has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
beilabs has joined #ruby
<Bish>
im trying to using Threads which use mail.deliver ( they pretty much do not do anything else )
<Bish>
while doing that.. progress seems really sequential
teclator has joined #ruby
<Bish>
how can i fix that.. i cannot provide much more info
whathappens has quit [Ping timeout: 244 seconds]
<Bish>
what i do is basicially 100.times { threads << Thread.new { mail.deliver } } threads.each(&:join)
<Bish>
and it's not faster than doing it one after another
TomyLobo has joined #ruby
<Bish>
(on other servers it is )
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<toretore>
you can provide much more information than that
beilabs has quit [Ping timeout: 244 seconds]
<jhass>
there's still a shitload of factors
rippa has joined #ruby
<jhass>
from cpu congestion, to memory congestion to network congestion, to resource limits, to selinux stuff, to packetfilters and so on everything is possible
alfiemax has joined #ruby
Zenit has joined #ruby
aryaching has quit []
infra-red has quit [Remote host closed the connection]
aryaching has joined #ruby
kiba_ has quit [Ping timeout: 250 seconds]
theunraveler has joined #ruby
tvw has quit [Remote host closed the connection]
rodfersou is now known as rodfersou|lunch
kiba_ has joined #ruby
<agent_white>
Mornin' folks
circ-user-ILnPl has joined #ruby
giz|work has quit [Ping timeout: 244 seconds]
Pupp3tm4st3r has quit [Ping timeout: 244 seconds]
ccmcdee has quit [Ping timeout: 244 seconds]
Ropeney has joined #ruby
tdy has joined #ruby
tvon has joined #ruby
tvon has quit [Client Quit]
tvon has joined #ruby
dongwongbong has joined #ruby
RegulationD has joined #ruby
mixtli has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
DoubleMalt has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
<dongwongbong>
is there any way to force middleman parse urls like this images/image.jpg instead of ../images/image.jpg or /images/image.jpg
ccmcdee has joined #ruby
kobain has joined #ruby
maokomioko has joined #ruby
tyang has joined #ruby
etetz has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
mixtli has quit [Ping timeout: 244 seconds]
tk___ has quit [Quit: ばいばい]
<Bish>
jhass: :(
ledestin has joined #ruby
heelpmeplz has quit [Ping timeout: 250 seconds]
heelpmeplz has joined #ruby
zenguy_pc has quit [Ping timeout: 260 seconds]
DaniG2k has joined #ruby
AzureStigma has joined #ruby
zenguy_pc has joined #ruby
kiba_ has quit [Ping timeout: 265 seconds]
reednj_ has joined #ruby
yardenbar has quit [Ping timeout: 265 seconds]
pawnbox has quit [Ping timeout: 276 seconds]
jaruga___ has joined #ruby
pawnbox has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
conta has joined #ruby
Guest93616 has joined #ruby
reednj_ has quit [Ping timeout: 265 seconds]
jaruga____ has quit [Read error: Connection reset by peer]
Snowy has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
beilabs has joined #ruby
dhollinger has joined #ruby
jaruga___ has quit [Remote host closed the connection]
jaruga___ has joined #ruby
dongwongbong has quit [Quit: Page closed]
IanMalcolm has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruby[bot]>
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.
<indistylo>
matthewd: yes
circ-user-ILnPl is now known as don_stf
<indistylo>
Announcing: I am cross posting
[Butch] has joined #ruby
moeabdol has joined #ruby
postmodern has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
don_stf has left #ruby [#ruby]
kiba_ has joined #ruby
skade has joined #ruby
Guest93616 has quit [Read error: Connection reset by peer]
Davedev28 has joined #ruby
artisangoose has joined #ruby
<matthewd>
indistylo: The short answer is you seem to have hit a bug in puppet-lint
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
shinnya has joined #ruby
heelpmeplz has quit [Read error: Connection reset by peer]
<indistylo>
matthewd: Raise the issue
heelpmeplz has joined #ruby
byteflame has joined #ruby
<indistylo>
matthewd: thanks for suggesting
edwinvdgraaf has quit [Ping timeout: 250 seconds]
Farah has joined #ruby
kiba_ has quit [Ping timeout: 250 seconds]
gnufied has quit [Ping timeout: 265 seconds]
Farah has quit [Client Quit]
Pumukel has joined #ruby
the_rhizo3 has quit [Ping timeout: 265 seconds]
beilabs_ has quit [Remote host closed the connection]
jeanlinu_ has joined #ruby
indistylo has quit [Remote host closed the connection]
jeanlinux has quit [Ping timeout: 258 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
LuckyABA has joined #ruby
amclain has joined #ruby
kiba_ has joined #ruby
ta_ has joined #ruby
lightheaded has joined #ruby
swills has quit [Read error: Connection reset by peer]
Derperperd has joined #ruby
Azure|dc has joined #ruby
swills has joined #ruby
Azure has quit [Ping timeout: 276 seconds]
AndrewIsHere has joined #ruby
tdy has quit [Ping timeout: 240 seconds]
nando293921 has quit [Ping timeout: 260 seconds]
aganov has quit [Remote host closed the connection]
IanMalcolm has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
ccmcdee has left #ruby ["WeeChat 1.5"]
Vingador has joined #ruby
andikr has quit [Ping timeout: 240 seconds]
goeast has quit [Ping timeout: 240 seconds]
mrgrieves has quit [Ping timeout: 250 seconds]
SeepingN has joined #ruby
jblack has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
Pumukel has joined #ruby
tyang has quit [Ping timeout: 250 seconds]
dipnlik has quit [Quit: dipnlik]
tyang has joined #ruby
davidw has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
kiba_ has quit [Ping timeout: 250 seconds]
preyalone has joined #ruby
gnufied has joined #ruby
kossae has quit [Quit: WeeChat 1.5]
reednj_ has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
beilabs has joined #ruby
Pumukel has joined #ruby
beilabs_ has joined #ruby
govg has quit [Ping timeout: 260 seconds]
beilabs__ has joined #ruby
kiba_ has joined #ruby
teclator has quit [Remote host closed the connection]
meatchicken has joined #ruby
djuber has joined #ruby
reednj_ has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
beilabs has quit [Ping timeout: 265 seconds]
davidw has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 264 seconds]
beilabs_ has quit [Ping timeout: 265 seconds]
SilverKey has quit [Read error: Connection reset by peer]
spudowiar has joined #ruby
binaryplease1 has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
mapass has left #ruby [#ruby]
rikkipitt has joined #ruby
Pumukel has joined #ruby
binaryplease has quit [Ping timeout: 264 seconds]
xall has joined #ruby
flying has joined #ruby
rodfersou|lunch is now known as rodfersou
loechel has joined #ruby
the_rhizo3 has joined #ruby
blackwind_123 has joined #ruby
valkyrka has quit [Quit: valkyrka]
Pumukel_ has joined #ruby
beilabs_ has joined #ruby
DoubleMalt has joined #ruby
mim1k has quit [Ping timeout: 244 seconds]
kyleolivo has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
Pumukel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
the_rhizo3 has quit [Ping timeout: 265 seconds]
beilabs__ has quit [Ping timeout: 265 seconds]
xall has quit [Ping timeout: 265 seconds]
kyleolivo has quit [Client Quit]
binaryplease1 is now known as binaryplease
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kyleolivo has joined #ruby
Pumukel_ has quit [Ping timeout: 260 seconds]
kiba_ has quit [Ping timeout: 250 seconds]
claudiuinberlin has quit []
loechel has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
gizmore has joined #ruby
brianpWins has joined #ruby
statelesscode has quit [Ping timeout: 260 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
nando293921 has joined #ruby
nitric has joined #ruby
MrBusiness2 has joined #ruby
Pumukel has joined #ruby
kyleolivo has quit [Client Quit]
dminuoso has quit [Ping timeout: 276 seconds]
flying has quit []
ChiefAlexander has joined #ruby
giz|work has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
MrBusiness has quit [Ping timeout: 250 seconds]
loechel has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
nettoweb has joined #ruby
etehtsea has joined #ruby
DEac-_ is now known as DEac-
ta_ has joined #ruby
the_rhizo3 has joined #ruby
mikecmpbll has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
Rodya_ has quit [Remote host closed the connection]
flying has joined #ruby
Neoo has joined #ruby
kiba_ has joined #ruby
jackjackdripper has joined #ruby
Neobenedict has quit [Ping timeout: 258 seconds]
_KaLiF has joined #ruby
mikecmpbll has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
ta_ has quit [Ping timeout: 260 seconds]
tyang has quit [Ping timeout: 265 seconds]
Wolland has joined #ruby
loechel has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
kyleolivo has joined #ruby
pawnbox has quit [Remote host closed the connection]
ChiefAlexander has quit [Remote host closed the connection]
pawnbox has joined #ruby
Pumukel has joined #ruby
pawnbox has quit [Remote host closed the connection]
bjh13 has joined #ruby
PoweredByPrana has joined #ruby
Pumukel_ has joined #ruby
whathappens has joined #ruby
Ropeney has quit [Quit: Leaving]
the_rhizo3 has quit [Ping timeout: 276 seconds]
loechel has quit [Ping timeout: 260 seconds]
aupadhye has quit [Ping timeout: 276 seconds]
ChiefAlexander has joined #ruby
ldnunes has quit [Ping timeout: 276 seconds]
ramortegui has joined #ruby
dminuoso has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
deception1 has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
xall has joined #ruby
Pumukel_ has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
Cohedrin has joined #ruby
ldnunes has joined #ruby
deception1 has left #ruby [#ruby]
kiba_ has quit [Ping timeout: 250 seconds]
moonythedwarf_ has joined #ruby
loechel has joined #ruby
dminuoso has quit [Ping timeout: 258 seconds]
gnufied has quit [Ping timeout: 250 seconds]
PoweredByPrana has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
knrz has joined #ruby
ddffg has quit [Quit: Leaving]
Pumukel_ has joined #ruby
PoweredByPrana has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 244 seconds]
symm- has joined #ruby
kiba_ has joined #ruby
kies has quit [Ping timeout: 244 seconds]
aupadhye has joined #ruby
dr0lan has quit [Quit: WeeChat 1.0.1]
Pumukel has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
flying has quit []
loechel has quit [Ping timeout: 260 seconds]
bluOxigen has joined #ruby
kies has joined #ruby
flying has joined #ruby
davedev24 has joined #ruby
loechel has joined #ruby
Pumukel_ has quit [Ping timeout: 260 seconds]
ramortegui has quit [Quit: Ex-Chat]
blaxter has quit [Quit: foo]
Pumukel has quit [Ping timeout: 260 seconds]
flashpoint9 has joined #ruby
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
beilabs_ has quit [Remote host closed the connection]
tyang has joined #ruby
Pumukel has joined #ruby
DoubleMalt has quit [Ping timeout: 264 seconds]
Dry_Lips has quit [Ping timeout: 252 seconds]
flying has quit []
etehtsea has quit [Quit: Computer has gone to sleep.]
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
Dry_Lips has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
blackmes1 has joined #ruby
loechel has joined #ruby
rikkipitt has quit [Remote host closed the connection]
tdy has joined #ruby
rikkipitt has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
symm- has quit [Quit: Leaving...]
MrBusiness2 has quit [Quit: quittin' this]
Pumukel has joined #ruby
firstdayonthejob has joined #ruby
Guest38 has joined #ruby
marxarelli has joined #ruby
Pumukel_ has joined #ruby
kiba_ has quit [Ping timeout: 240 seconds]
loechel has quit [Ping timeout: 264 seconds]
reednj_ has joined #ruby
kiba_ has joined #ruby
mixtli has joined #ruby
rikkipitt has quit [Ping timeout: 260 seconds]
gnufied has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
beilabs has joined #ruby
Pumukel has joined #ruby
Pumukel_ has quit [Ping timeout: 260 seconds]
giz|work has quit [Ping timeout: 265 seconds]
DoubleMalt has joined #ruby
cyphase has quit [Ping timeout: 244 seconds]
ramfjord has joined #ruby
reednj_ has quit [Ping timeout: 265 seconds]
Skelz0r has joined #ruby
loechel has joined #ruby
beilabs has quit [Remote host closed the connection]
nettoweb has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
heelpmeplz has quit [Read error: Connection reset by peer]
heelpmeplz has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
Pumukel_ has joined #ruby
elaptics has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<cloaked1>
writing something which is not rails or even web-related but takes a template and creates a text file from it (eventually will be turned to pdf)...problem is when I attempt to render the output from the template, I *always* get "NoMethodError: undefined method `[]' for nil:NilClass" which is getting thrown from ERB.result
<cloaked1>
let me get a pastebin up.
omphe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruby[bot]>
cloaked1: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
aufi has quit [Ping timeout: 252 seconds]
loechel has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
Pumukel has quit [Ping timeout: 264 seconds]
whathappens has joined #ruby
flak has joined #ruby
claudiuinberlin has joined #ruby
leea has joined #ruby
Pumukel has joined #ruby
nadir has joined #ruby
kyleolivo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pumukel__ has joined #ruby
Pumukel_ has quit [Ping timeout: 264 seconds]
rippa has quit [Ping timeout: 265 seconds]
<cloaked1>
?
<cloaked1>
anyone?
<matthewd>
cloaked1: "always" implies even given an empty template
<cloaked1>
I'm pretty sure, based on everything I'm reading, that I'm doing this thing right.
<cloaked1>
template is not empty...
<matthewd>
I know
<SegFaultAX>
cloaked1: Can you share the template and stacktrace as well?
<cloaked1>
sec
IanMalcolm has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
beawesomeinstead has quit [Ping timeout: 258 seconds]
<SeepingN>
Target is struggling to sell Apple products, says sales fell 'more… than 20%'
<SeepingN>
doh
loechel has quit [Ping timeout: 264 seconds]
<matthewd>
cloaked1: My point is that you're using a very emphatic "always" when you don't seem to have tried different, simplified, templates, to track down which part of the code is problematic
loechel has joined #ruby
govg has joined #ruby
beawesomeinstead has joined #ruby
Neoo is now known as Neobenedict
Neobenedict has quit [Changing host]
Neobenedict has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
<matthewd>
cloaked1: You may also benefit from setting #location=, as it will do a better job of pointing to errors originating inside templates
aupadhye has quit [Ping timeout: 265 seconds]
azor has joined #ruby
<SegFaultAX>
cloaked1: Side note: If the bots comment didn't make sense to you, use gist.github.com or bpaste.net instead of pastebin.
<SegFaultAX>
cloaked1: Is Target::GatherData.new(serial).aggregated returning nil?
Vingador has quit [Remote host closed the connection]
<SeepingN>
I'm still having issues with SFTP (SSH) from Rails. Does it even make since to "force SFTP protocol version 3" and how does one do it? I have a server which defaults to 2.0 and gets hung up on when I try to do anytihing over the SFTP channel. Command line sftp works fine but switches to Version 3 before the prompt
arashb has quit [Remote host closed the connection]
<cloaked1>
SegFaultAX: well, it is for you. I didn't put the whole script in there.
<cloaked1>
oh, my bad
<SegFaultAX>
cloaked1: It isn't for me, because I did not and could not run this code. Did you ensure that it isn't nil?
<cloaked1>
I misread your question
Pumukel has joined #ruby
<cloaked1>
no, it's not nil
<cloaked1>
I've verified it has proper data in it.
<matthewd>
So, the exception is on line 10
<cloaked1>
yes. Let me get you the stack...
<matthewd>
(which ERB would tell you if it had the location hints)
<matthewd>
Oh, it's already giving you the line number?
<cloaked1>
how do I enable the location hinst?
kyleolivo has joined #ruby
<cloaked1>
hints?
malconis_ has joined #ruby
<SegFaultAX>
cloaked1: Then I suspect it's because you bound system = but you're using @system everywhere
<matthewd>
Can you not work backwards from there to see the problem?
loechel has quit [Ping timeout: 260 seconds]
<cloaked1>
SegFaultAX: k. So, this probably has more to do with my template than my code?
<SegFaultAX>
cloaked1: Can you do `@system = @everything['system_details']` in the initializer to the class?
<SegFaultAX>
cloaked1: Then you can remove the assignment entirely from the ERB
aupadhye has joined #ruby
<cloaked1>
let me try that
<SegFaultAX>
cloaked1: I suspect that it's because your template is invalid, yes.
<SegFaultAX>
Based on what I've seen so far.
byteflame has quit [Ping timeout: 276 seconds]
Didac has quit [Ping timeout: 258 seconds]
loechel has joined #ruby
tomphp has joined #ruby
<matthewd>
cloaked1: Yes, that's my point: it's a bug in the template, and ERB is trying to tell you that. (There's also a [non-ERB] bug in your code, but your template isn't hitting that.)
<SegFaultAX>
I think @system really is nil, and you really are trying to call nil.[]
<cloaked1>
nice! So, @system = @everything['system_details'] causes the run to succeed.
<SegFaultAX>
cloaked1: Do you get why?
<cloaked1>
OK. very intersting.
<SegFaultAX>
@ variables are coming from the template binding
malconis has quit [Ping timeout: 244 seconds]
<SegFaultAX>
The original template had a local `system = ...`
<cloaked1>
well, yes and no. If you look at the bottom of the template, I'm attempting to dereference @everything in one go (as a test)
<cloaked1>
why did that fail?
<SegFaultAX>
But everywhere system is used, you tried to access the binding @system, rather than the local system
<SegFaultAX>
@system is not a name in the binding scope (@system was never assigned in Report, so it gets the default value of nil)
Pumukel_ has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
<cloaked1>
mkay
<cloaked1>
how do I enable the location hints?
<SegFaultAX>
cloaked1: It failed well before it got to the last line
<cloaked1>
ahh...that makes sense.
<ardian_>
Hello I am having a strange issue with Shoes, when I require the twitter Gem inside a shoes project, I get this error https://paste.fedoraproject.org/409824/
<SegFaultAX>
cloaked1: I'm guess lines 3 - 7 were all nil in the template, but that's fine.
<cloaked1>
I've never used erb like this, so this is good info.
<ardian_>
I tried another gem like nokogiri, it does work, but when I requre the twitter gem, it gives me that error
<ardian_>
I am working on a simple Shoes (GUI) app with the twitter API
Pumukel has joined #ruby
<SegFaultAX>
cloaked1: Line 10 in the template tried to do @system['mainboard']['vendor']. If @system is nil, you're doing nil['mainboard'] which is obviously an error.
<cloaked1>
ah yes...I see that now.
ec0 has joined #ruby
Asher has quit [Quit: Leaving.]
<SegFaultAX>
Anyway, looks like you fixed it. Does that answer all your questions?
<cloaked1>
SegFaultAX: it does...thank you! Just one quick one...how does one enable the location hint?
<SegFaultAX>
cloaked1: I'm not sure what you're referring to.
loechel has quit [Ping timeout: 264 seconds]
<cloaked1>
hrm... sec
whathappens has quit [Read error: Connection reset by peer]
<cloaked1>
11:04 < matthewd> (which ERB would tell you if it had the location hints)
whathappens has joined #ruby
<SegFaultAX>
I don't know what that means.
<cloaked1>
am I misunderstanding his comment?
<cloaked1>
lol...alright.
<SegFaultAX>
Perhaps it's a feature I'm not aware of in ERB.
* cloaked1
crawls back under the coding rock of life.
reednj_ has joined #ruby
<SegFaultAX>
Actually I'm not really sure how that's supposed to help you.
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pumukel has quit [Ping timeout: 260 seconds]
<matthewd>
SegFaultAX: The exception would then point to the line in the .erb file that was at fault, instead of leaving an implication it was coming from somewhere in the ERB library itself
<SegFaultAX>
It's not even docuemnted.
yfeldblum has joined #ruby
Pumukel has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<SegFaultAX>
matthewd: I understand what you're saying, but I don't get how the thing you linked does that. Or what "location hints" are from the thing you linked.
last_staff has quit [Quit: last_staff]
flashpoint9 has quit [Remote host closed the connection]
Pumukel_ has joined #ruby
<cloaked1>
matthewd: do you have an example of how to properly use location? Just wondering...
loechel has quit [Ping timeout: 260 seconds]
<SegFaultAX>
Curious about that myself.
<matthewd>
hint (n.) 2. a small piece of practical information or advice
reednj_ has quit [Ping timeout: 240 seconds]
<Mon_Ouie>
When an exception occurs the backtrace will show the actually filename where it occured instead of the default, which is (erb)
<SegFaultAX>
matthewd: Thank you for being maximally passive agressive and minimally helpful. :)
<SegFaultAX>
cloaked1: Anyway, good luck!
<cloaked1>
thanks!
akp has joined #ruby
loechel has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
<akp>
hey guys, for strings in ruby, whats the diff between " and ' ?
pjaspers has joined #ruby
<matthewd>
SegFaultAX: Sorry, I'm just confused about what's unclear. It's a location= method, which informs ERB of the location of the source it's been given.
<matthewd>
So, to use it: erb.location = filename, lineno
<Mon_Ouie>
akp: 1) the meaning of backslashes ("\n" is a single-character string representing a new-line, '\n' is a two-character string representing a literal backslash followed by the character n) and 2) "…"-style strings allow you to interpolate expressions into the string
moeabdol has quit [Ping timeout: 258 seconds]
Didac has joined #ruby
tummy has quit [Client Quit]
<akp>
thanks guys
malconis_ has quit [Remote host closed the connection]
bocaneri has quit [Remote host closed the connection]
moeabdol has joined #ruby
giz|work has joined #ruby
malconis has joined #ruby
loechel has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
IanMalcolm has joined #ruby
spudowiar has quit [Quit: cya]
<SegFaultAX>
matthewd: Thanks! It took you 19 minutes from the time you mentioned that method to actually demonstrating its usage. There is no documentation for that method. The word "location" has precisely 2 occurrences on that page (the method signature and the TOC). The word "lineno" has 5 occurrences if you include source references, none of which include how it's actually used.
Pumukel has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
Pumukel_ has quit [Ping timeout: 260 seconds]
<matthewd>
SegFaultAX: The "demonstration" was showing how to call it, per its signature... I even used its documented parameter names as arguments
jaruga___ has quit [Quit: jaruga___]
<SegFaultAX>
matthewd: Anyway, thanks for bringing my attention to that. It seems like a potentially handy feature.
davedev24 has joined #ruby
IanMalcolm has quit [Client Quit]
ta_ has joined #ruby
<matthewd>
i.e., I thought I was being facetious, by adding no new information ¯\_(ツ)_/¯
marr has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
ldnunes has joined #ruby
Pumukel_ has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
rajdesai has quit [Ping timeout: 265 seconds]
Davedev28 has quit [Read error: Network is unreachable]
loechel has joined #ruby
whathappens has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 264 seconds]
whathappens has joined #ruby
Davedev28 has joined #ruby
tvon has quit [Quit: System is sleeping...]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rajdesai has joined #ruby
Pumukel has joined #ruby
Pumukel_ has quit [Ping timeout: 264 seconds]
Wolland has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
tvon has joined #ruby
<akp>
if i am splitting a string to build some new larger string from it, should i just do a for stuff in s.split()
GodFather has joined #ruby
<akp>
or store that in a variable then use that in the for to iterate through
GodFather has quit [Remote host closed the connection]
giz|work has quit [Ping timeout: 244 seconds]
conta has joined #ruby
<havenwood>
akp: Give an example of what you have an what you want?
whathappens has quit [Quit: Leaving...]
programmerq has quit [Read error: Connection reset by peer]
<akp>
wait, does the example from you guys store the built string in the value declared between the | | ??
tyang has joined #ruby
tummy has joined #ruby
<akp>
thanks SegFaultAX, i'll look over that
Pumukel_ has joined #ruby
<SegFaultAX>
akp: Let me know if you have questions.
<Mon_Ouie>
map { |tags| … } calls the method map with a block that takes 1 argument and calls it tags.
the_rhizo3 has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
<SegFaultAX>
It's easier to talk about map if you talk about what it's operating on, first.
diegoviola has joined #ruby
<Mon_Ouie>
The map method happens to iterate over all the elements of the receiver (the thing you call the method on), calls the block with each one of them, and collects all the results in an array
<ytti>
if you know closures, anonymous functions from any language
GodFather_ has quit [Remote host closed the connection]
<ytti>
that's it
tummy has quit [Client Quit]
<SegFaultAX>
In this case, if you have an array [1, 2, 3] and you'd like an array of [2, 3, 4], you can use map to operate element-wise on the input array like so: [1,2,3].map { |n| n + 1 } == [2, 3, 4]
GodFather has joined #ruby
cdg has quit [Remote host closed the connection]
<akp>
yeah closure and anon fuctions is something that i probably should learn
loechel has joined #ruby
<SegFaultAX>
akp: Don't let yourself get distracted, though. :)
<akp>
so this looks like it ends up building an array of the items after splitting them.
beilabs has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 258 seconds]
<akp>
unless i am doing something wrong.
allcentury has joined #ruby
<SegFaultAX>
akp: Yup. And then join is used to glue them back together.
<akp>
ohh
bluOxigen has quit [Ping timeout: 240 seconds]
<akp>
i missed that part.
Pumukel has joined #ruby
bluOxigen has joined #ruby
the_rhizo3 has quit [Ping timeout: 244 seconds]
flashpoint9 has joined #ruby
<SegFaultAX>
akp: Does it make sense?
Pumukel_ has quit [Ping timeout: 264 seconds]
Pumukel_ has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
giz|work has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
nikivi has quit [Quit: irc]
skade has joined #ruby
loechel has joined #ruby
[Butch] has quit [Ping timeout: 258 seconds]
rikkipitt has joined #ruby
skade has quit [Client Quit]
Pumukel has quit [Ping timeout: 264 seconds]
Davedev28 has quit [Remote host closed the connection]
nanoz has quit [Read error: Connection reset by peer]
[Butch] has joined #ruby
Pumukel_ has quit [Ping timeout: 264 seconds]
<akp>
SegFaultAX: yes, it does now that i went through want you gave me with my own stuff and tried it out =)
<akp>
thanks for the help
ta__ has joined #ruby
zacts has joined #ruby
ChiefAlexander has joined #ruby
Pumukel has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
blackmes1 has quit [Ping timeout: 258 seconds]
programmerq has joined #ruby
<SegFaultAX>
akp: I strongly recommend using irb for experimental programming. The REPL is easily one of the best super powers of Ruby (and other languages that have good REPLs)
<ruby[bot]>
arthurl: 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.
<jhass>
havenwood: ^
LuckyABA has joined #ruby
arashb has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
nando293921 has joined #ruby
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
<akp>
hey guys, can you help me understand how where the retry applies in this block?
<havenwood>
arthurl: 1.8 is way past end-of-life, has known security issues and isn't installable with modern compilers and libraries without a good bit of fuss.
tomazb has quit [Ping timeout: 250 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching has quit [Remote host closed the connection]
goeast has quit [Ping timeout: 265 seconds]
<jhass>
get a CentOS 5 VM or something and live in the past
<arthurl>
havenwood yup- legacy app
Pumukel__ has quit [Ping timeout: 260 seconds]
Asher has joined #ruby
<arthurl>
it's an internal app- and i'm not a dev just an infra/devops guy trying to stand up this stack on new hardware (aws)
loechel has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
<havenwood>
"CentOS-5 updates until March 31, 2017"
<arthurl>
jhass not bad advice for me at this point...
amclain has quit [Quit: Leaving]
gxdsgrlf1nd has joined #ruby
<jhass>
there, "I can run this until April 17, port it to ruby 2.3 now!"
j2k has quit [Ping timeout: 250 seconds]
rikkipitt has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
the_rhizo3 has joined #ruby
jackjackdripper has joined #ruby
rikkipitt has joined #ruby
loechel has joined #ruby
l4v2 has quit [Ping timeout: 244 seconds]
l4v2 has joined #ruby
<arthurl>
maybe i'll just put this thing in a docker container
<akp>
jhass: i'm ruby dumb, hacking away at a logstash plugin because the guys we are shipping logs to have a crappy http end point plug in that doesn't seem to scale to well.
Pumukel_ has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
LuckyABA has quit [Read error: Connection reset by peer]
todd_dsm_wk has joined #ruby
sluukkonen has quit [Ping timeout: 260 seconds]
rikkipitt has quit [Ping timeout: 265 seconds]
loechel has quit [Ping timeout: 260 seconds]
marxarelli is now known as marxarelli|afk
the_rhizo3 has quit [Ping timeout: 252 seconds]
Madplatypus has joined #ruby
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel_ has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
amclain has joined #ruby
GodFather has quit [Ping timeout: 265 seconds]
hutch34 has quit [Ping timeout: 264 seconds]
claudiuinberlin has quit [Remote host closed the connection]
gxdsgrlf1nd has left #ruby [#ruby]
marxarelli|afk is now known as marxarelli
<arthurl>
i'm trying to figure out if i can just do this in a docker container- i've created a 1.9.3 base container before- but i see it's not listed here under supported tags
rajdesai has quit [Remote host closed the connection]
Derperperd has quit [Quit: Derperperd]
ta_ has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
hutch34 has joined #ruby
reednj_ has quit [Ping timeout: 250 seconds]
kiba_ has joined #ruby
croberts is now known as Toledo|REI
Pumukel has joined #ruby
SirCmpwn has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
_pastel has quit [Quit: leaving]
rajdesai has joined #ruby
<todd_dsm_wk>
matthewd: no, they all open like that, so weird.
whathappens has quit [Read error: Connection reset by peer]
<todd_dsm_wk>
also, I did this: cat hello-world.rb > hello-world.sh
ta_ has quit [Ping timeout: 244 seconds]
<todd_dsm_wk>
and hello-world.sh opens in milliseconds.
whathappens has joined #ruby
MrBusiness has joined #ruby
loechel has joined #ruby
dsea has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
anisha_ has joined #ruby
Pumukel has joined #ruby
anisha has quit [Ping timeout: 265 seconds]
symm- has joined #ruby
<matthewd>
todd_dsm_wk: Any ruby-specific plugins aren't going to be active when loading a .sh file
Regulati_ has quit [Remote host closed the connection]
RegulationD has joined #ruby
tyang has quit [Ping timeout: 264 seconds]
Pumukel_ has joined #ruby
gxdsgrlfrnd has quit [Quit: Lost terminal]
gxdsgrlfrnd has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
kyleolivo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
<todd_dsm_wk>
matthewd: it's a brand new system; very minimal. however...
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<todd_dsm_wk>
it's a linux box, fedora 24, with as few packages as possible.
<todd_dsm_wk>
also, I'm leaving stuff out...
<todd_dsm_wk>
it's not ruby, it's jruby/open-jdk that's installed.
Pumukel has quit [Ping timeout: 264 seconds]
whathappens has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
blackgoat has joined #ruby
Pumukel has quit [Remote host closed the connection]
symm- has quit [Quit: Leaving...]
Pumukel has joined #ruby
whathappens has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
rikkipitt has joined #ruby
whathappens has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
Pumukel_ has quit [Ping timeout: 264 seconds]
kiba_ has quit [Ping timeout: 250 seconds]
<todd_dsm_wk>
matthewd: a guy in the vim channel suggested it may be related to something like urxvt or rxvt that was a problem for ruby a few months back. Any recollections of that?
flashpoint9 has quit [Remote host closed the connection]
whathappens has joined #ruby
flashpoint9 has joined #ruby
tvon has quit [Quit: System is sleeping...]
loechel has joined #ruby
moonythedwarf_ has joined #ruby
Pumukel_ has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
<matthewd>
todd_dsm_wk: I think you have a ruby plugin installed, and it's running ruby when opening the file
<matthewd>
(and because it's jruby, which is.. not optimized for start-up time, it's noticeably slow)
deniskozlov has joined #ruby
<todd_dsm_wk>
matthewd: is 3 seconds common for an time to open a jruby file.
<todd_dsm_wk>
?
flashpoint9 has quit [Ping timeout: 250 seconds]
anisha_ has quit [Quit: This computer has gone to sleep]
symm- has joined #ruby
<matthewd>
Depending on what it's then doing... maybe?
<todd_dsm_wk>
just opening in vim - not executing anything.
<todd_dsm_wk>
interestingly, if I were to: strace -o /tmp/long-ruby-files.out vi hello-world.rb
<matthewd>
The easy way to rule out (u)rxvt would be to run it in a different terminal
<todd_dsm_wk>
it opens very quickly
loechel has quit [Ping timeout: 260 seconds]
<todd_dsm_wk>
matthewd: which terminal are you running?
<matthewd>
Is `vi` running the same thing you do when you open the file normally?
rajdesai has quit [Remote host closed the connection]
Pumukel has joined #ruby
<todd_dsm_wk>
don't understand the question
<todd_dsm_wk>
oh, yes - it's just an alias
kiba_ has joined #ruby
<matthewd>
That was the question ;)
Pumukel_ has quit [Ping timeout: 264 seconds]
<matthewd>
strace isn't running an alias
<todd_dsm_wk>
vim filename.rb seems to behave the same way though.
<matthewd>
under strace?
<todd_dsm_wk>
it appears that strace is not executing the alias
<todd_dsm_wk>
interesting
loechel has joined #ruby
andikr has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
MrBusiness has quit [Read error: Connection reset by peer]
futilegames has joined #ruby
<todd_dsm_wk>
matthewd: which terminal are you running?
Pumukel_ has joined #ruby
claudiuinberlin has quit []
Pumukel has quit [Ping timeout: 264 seconds]
<akp>
thanks for the help guys!
ta_ has joined #ruby
Neobenedict has quit [Ping timeout: 244 seconds]
symm- has quit [Quit: Leaving...]
nando293921 has quit [Ping timeout: 250 seconds]
aupadhye has quit [Remote host closed the connection]
Pumukel has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
anisha_ has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
dsea11 has joined #ruby
loechel has joined #ruby
futilegames has quit [Quit: futilegames]
synthroid has quit []
<matthewd>
todd_dsm_wk: iTerm2 ;)
<todd_dsm_wk>
aw crap
nettoweb has joined #ruby
Pumukel_ has quit [Ping timeout: 264 seconds]
MrBusiness has joined #ruby
<todd_dsm_wk>
matthewd: what do you get from: echo "$TERM" ?
gxdsgrlfrnd has quit [Quit: leaving]
gxdsgrlfrnd has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
<matthewd>
xterm-256color -- no idea whether that's a reality, or an artefact of something old in my zshrc, though
dsea has quit [Ping timeout: 258 seconds]
gxdsgrlfrnd has quit [Client Quit]
whathappens has quit [Read error: Connection reset by peer]
gxdsgrlfrnd has joined #ruby
<todd_dsm_wk>
xterm-256color is fairly common; the most common thing I see anyway.
kiba_ has quit [Ping timeout: 244 seconds]
whathappens has joined #ruby
Pumukel has joined #ruby
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<matthewd>
todd_dsm_wk: Is there some reason it's not trivial to open a GNOME/KDE terminal, or a pure xterm, or even a full virtual console, to prove it is/isn't rxvt's fault?
loechel has quit [Ping timeout: 264 seconds]
<todd_dsm_wk>
matthewd: that's how I work...
<todd_dsm_wk>
I'm on a Fedora 23 system, using Gnome
<todd_dsm_wk>
ssh'ing over to a fedora 24 system, brand new - fully patched.
loechel has joined #ruby
<todd_dsm_wk>
the system configuration is minimal; it's nearly ideal
Wolland has joined #ruby
ldnunes has quit [Ping timeout: 258 seconds]
<matthewd>
So, are you using (u)rxvt? Or GNOME Terminal?
marxarelli has joined #ruby
ponyofdeath has quit [Quit: WeeChat 1.5]
<todd_dsm_wk>
matthewd: Gnome Terminal
gxdsgrlfrnd has quit [Client Quit]
der-landgraf has quit [Quit: WeeChat 1.5]
okrasi has joined #ruby
<matthewd>
Then it would seem pretty safe to suggest any alleged rxvt issue is not involved here, no?
Pumukel_ has joined #ruby
<todd_dsm_wk>
matthewd: dude, I'm not even sure. I've never heard of rxvt until just today.
<todd_dsm_wk>
and I've been Linuxing for about 10 years; whatever it is - is rare.
Pumukel has quit [Ping timeout: 260 seconds]
gxdsgrlfrnd has joined #ruby
der-landgraf has joined #ruby
der-landgraf has joined #ruby
der-landgraf has quit [Changing host]
swills has quit [Ping timeout: 244 seconds]
<todd_dsm_wk>
matthewd: I'm going to grant myself early release - thanks for your time, I appreciate it.
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tummy has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
Pumukel has joined #ruby
reednj_ has joined #ruby
rodfersou is now known as rodfersou|dinner
_djbkd has joined #ruby
Wolland has joined #ruby
ramfjord_ has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
reednj_ has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
cdg_ has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
cdg has quit [Ping timeout: 250 seconds]
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cevett has quit [Ping timeout: 264 seconds]
kyleolivo has quit [Max SendQ exceeded]
cd-rum has joined #ruby
cevett has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
Immune has joined #ruby
the_rhizo3 has quit [Ping timeout: 276 seconds]
tummy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pumukel has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
solocshaw has joined #ruby
nettoweb has joined #ruby
Pumukel has joined #ruby
rileyy has joined #ruby
gizmore has quit [Remote host closed the connection]
_djbkd has quit [Quit: My people need me...]
cd-rum has quit [Ping timeout: 260 seconds]
gnufied has quit [Quit: Leaving]
dhollinger has quit [Quit: WeeChat 1.5]
the_rhizo3 has joined #ruby
svf has quit [Quit: leaving]
saneax_AFK is now known as saneax
jenrzzz has joined #ruby
saneax is now known as Guest65663
chris349 has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
gxdsgrlfrnd has quit [Quit: leaving]
flashpoint9 has joined #ruby
<chris349>
I have defied a namespace in my application, but I am not sure how to use it. Whats the right way to define a variable as equal to a namespace?
Pumukel has joined #ruby
l4v2 has quit [Quit: l4v2]
der-landgraf has quit [Quit: WeeChat 1.5]
blackmesa has joined #ruby
beilabs has joined #ruby
gxdsgrlfrnd has joined #ruby
beilabs has quit [Remote host closed the connection]
beilabs has joined #ruby
arashb has quit [Remote host closed the connection]
cd-rum has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
blackmes1 has quit [Ping timeout: 276 seconds]
Pumukel has joined #ruby
Nahra has joined #ruby
cd-rum_ has joined #ruby
firstdayonthejob has quit [Ping timeout: 250 seconds]
beilabs has quit [Ping timeout: 244 seconds]
cd-rum has quit [Ping timeout: 264 seconds]
l4v2 has joined #ruby
Jardayn has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
the_rhizo3 has quit [Ping timeout: 244 seconds]
Pumukel has joined #ruby
Regulati_ has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
gxdsgrlfrnd has quit [Quit: Changing server]
etetz has quit [Remote host closed the connection]
etetz has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
electrostat has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 264 seconds]
eljimador has joined #ruby
the_rhizo3 has joined #ruby
solars has quit [Ping timeout: 244 seconds]
etetz has quit [Ping timeout: 252 seconds]
gxdsgrlfrnd has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
rkazak has joined #ruby
whathappens has joined #ruby
gxdsgrlfrnd has quit [Client Quit]
electrostat has joined #ruby
Derperperd has joined #ruby
Teth has joined #ruby
akp has quit [Remote host closed the connection]
Teth has left #ruby [#ruby]
Pumukel has joined #ruby
Rodya_ has joined #ruby
Dry_Lips has quit [Ping timeout: 252 seconds]
l4v2 has quit [Quit: l4v2]
Pumukel has quit [Ping timeout: 264 seconds]
whathappens has quit [Quit: Leaving...]
Pumukel has joined #ruby
hutch34 has joined #ruby
rodfersou|dinner is now known as rodfersou|
rodfersou| is now known as rodfersou
Pumukel has quit [Ping timeout: 260 seconds]
moonythedwarf_ has quit [Ping timeout: 240 seconds]
moonythedwarf_ has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
sepp2k has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
svf has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
svf has quit [Client Quit]
der-landgraf has joined #ruby
der-landgraf has joined #ruby
der-landgraf has quit [Changing host]
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
Dry_Lips has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 260 seconds]
solocshaw1 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
svf has joined #ruby
svf has quit [Client Quit]
Pumukel has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
solocshaw1 is now known as solocshaw
Wolland has joined #ruby
<zenspider>
chris349: I defy namespaces too!
<zenspider>
chris349: your question doesn't make too much sense tho... care to elaborate?
Pumukel has quit [Ping timeout: 260 seconds]
allcentury has joined #ruby
marxarelli is now known as marxarelli|afk
Wolland has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
nankyokusei has joined #ruby
beilabs has joined #ruby
svf has joined #ruby
beilabs has quit [Remote host closed the connection]
svf has quit [Client Quit]
arthurl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Derperperd has quit [Read error: Connection reset by peer]
C0D3JUNKIE has joined #ruby
Derperperd has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
quakephil has quit [Read error: Connection reset by peer]
AndrewIsHere has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
brain_freeze is now known as brainfreeze
AndyBotwin has joined #ruby
etehtsea has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
cdg_ has quit [Remote host closed the connection]
cdg has joined #ruby
gusrub has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
Asher has joined #ruby
Pumukel has joined #ruby
cdg has quit [Ping timeout: 264 seconds]
bjh13 has quit [Remote host closed the connection]