orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n0m4d1c has quit [Ping timeout: 256 seconds]
tdy has quit [Ping timeout: 240 seconds]
arand has quit [Ping timeout: 260 seconds]
nitric_ has quit [Quit: quit]
<garyserj>
lupine, eam: ah, I see, thanks.
plujon has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
<garyserj>
In windows cmd.exe, unicode encodings don't work that well e.g. there is a command chcp 65001 to make things utf-8 but some programs don't work well with it.. So it's common for people to have some variety of 8 bit ascii. So in the uk, chcp 850 or in the us chcp 437. And ruby when 'binary' is not set, runs with whatever codepage is set there. So it should be the same speed 'cos 437 or 850 are
<garyserj>
not variable width. Though sure if chcp 65001 (utf-8) was set then it would be variable width and i'd expect that would/could affect speed. Great point though about usage of 'b', particularly with unix.
marr has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
za1b1tsu has joined #ruby
Mike11 has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
lele has quit [Ping timeout: 256 seconds]
za1b1tsu has quit [Ping timeout: 264 seconds]
Haradani has quit []
noobineer has joined #ruby
herbmillerjr has joined #ruby
lele has joined #ruby
KeyJoo has quit [Ping timeout: 240 seconds]
jamiejackson has joined #ruby
arand has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
jamiejackson81 has joined #ruby
armando has joined #ruby
caleBOT_ has joined #ruby
caleBOT has joined #ruby
cagomez has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
ryzokuken has quit [Remote host closed the connection]
noobineer has quit [Ping timeout: 276 seconds]
Bonjourm8 has joined #ruby
jamiejackson has quit [Ping timeout: 240 seconds]
jamiejackson81 has quit [Ping timeout: 264 seconds]
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
Mike11 has quit [Quit: Leaving.]
n0m4d1c has joined #ruby
alfiemax has joined #ruby
caleBOT has quit [Remote host closed the connection]
caleBOT_ has quit [Remote host closed the connection]
caleBOT has joined #ruby
caleBOT_ has joined #ruby
gizmore|2 has joined #ruby
caleBOT_ has quit [Ping timeout: 256 seconds]
caleBOT has quit [Ping timeout: 256 seconds]
caleBOT_ has joined #ruby
caleBOT has joined #ruby
gizmore has quit [Ping timeout: 260 seconds]
kapil___ has joined #ruby
ccrow has quit [Quit: Ex-Chat]
bayprogrammer has quit [Quit: WeeChat 2.0.1]
pilne has quit [Quit: Leaving]
ccrow has joined #ruby
bmurt has joined #ruby
Bonjourm8 has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dr3w_ has joined #ruby
kevinburke has quit [Quit: Connection closed for inactivity]
ccrow has quit [Quit: Ex-Chat]
nowhere_man has quit [Ping timeout: 240 seconds]
gnufied has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
Yxhvd has quit [Quit: No Ping reply in 180 seconds.]
jready has quit []
Yxhuvud has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
AJA4350 has quit [Quit: AJA4350]
jamesaxl has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
c_nick has joined #ruby
c_nick has left #ruby [#ruby]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
valkyr2e has quit [Ping timeout: 264 seconds]
comet23 has joined #ruby
<comet23>
have you guys done codefights/
<MzrE>
codewars you mean?
agent_white has quit [Quit: bblll]
reginald has joined #ruby
reginald is now known as barnabyjones
uptime has quit [Quit: SEGFAULT error:: SSL VERSION 12 Error: Unexpected error, SSL VERSION old enough for IRC but not greater than 13.03]
gix has joined #ruby
gix- has quit [Ping timeout: 240 seconds]
funnel has quit [Ping timeout: 256 seconds]
funnel has joined #ruby
<comet23>
both
<comet23>
either one actually
<MzrE>
Never seen codefights
<MzrE>
I've used it a bit, I like the format. It gives you different tasks to solve and tests your solution in front of you
<MzrE>
(Codewars that is)
<MzrE>
The difficulty scales and you're essentially climbing a ladder through these randomized problems... if you don't like one you can just skip it and try another.
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
fullstack_ has quit [Ping timeout: 276 seconds]
za1b1tsu has joined #ruby
uptime has joined #ruby
<comet23>
i was wondering where i could learn to solve these problems better and how to figure out what requisite knowledge is necessary to complete the challenge
<comet23>
i'm really bad at these types of problems
alfiemax has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
za1b1tsu has quit [Ping timeout: 260 seconds]
phenom has quit [Ping timeout: 256 seconds]
phenom has joined #ruby
govg has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fyrril2 has quit [Quit: nothx]
kapil___ has quit [Quit: Connection closed for inactivity]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
lele has quit [Ping timeout: 240 seconds]
lele has joined #ruby
barnabyjones has quit [Ping timeout: 264 seconds]
coffeejunk has quit [Ping timeout: 265 seconds]
<Vashy>
hi all can someone help me debug this simple class?
<dminuoso>
Vashy: So what is the unexpected part in this?
<Vashy>
the test says new('asdf') returns nil
<Vashy>
and tries to call "#parse" on nil
<Vashy>
Failure/Error: new(command_result).parse
<Vashy>
<Vashy>
undefined method `parse' for nil:NilClass
<Vashy>
NoMethodError:
<dminuoso>
What test says.
<dminuoso>
I have just demonstrated that this is not the case.
<dminuoso>
Show me the code.
<Vashy>
kk one sec
apeiros has quit [Remote host closed the connection]
<MzrE>
comet23, I just try to make a reasonable attempt. Afterwards the site shows you others solutions which you can compare to --- they are rated based on being 'proper' or creative / efficient... im not sure of any other resources, sorry
herbmillerjr has quit [Quit: Konversation terminated!]
Immune has quit [Ping timeout: 260 seconds]
reber has joined #ruby
<ineb>
dminuoso: wasnt the question something like def foo(a); raise unless ['c','p','u'].include?(a);end ?
za1b1tsu has joined #ruby
amar has joined #ruby
schleppel has joined #ruby
mlipienski has quit []
stairmast0r has quit [Ping timeout: 240 seconds]
amar has quit [Ping timeout: 248 seconds]
inerthia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryzokuken has joined #ruby
phaul has joined #ruby
c0ncealed1 has quit [Remote host closed the connection]
c0ncealed1 has joined #ruby
amar has joined #ruby
TinkerT has quit [Read error: Connection reset by peer]
TinkerT has joined #ruby
fullstack_ has quit [Ping timeout: 240 seconds]
fullstack_ has joined #ruby
suukim has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
conta has joined #ruby
suukim has quit [Remote host closed the connection]
clemens3_ has joined #ruby
conta has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
<b100s>
I have sinatra app. Is there way to write destructor when app stops ?
agent_white has joined #ruby
emilford has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
conta has joined #ruby
Burgestrand has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
stairmast0r has joined #ruby
alfiemax has joined #ruby
barnabyjones has joined #ruby
jenrzzz has joined #ruby
inerthia has joined #ruby
amar has quit [Remote host closed the connection]
schneider1 has joined #ruby
barnabyjones has quit [Ping timeout: 264 seconds]
mlkkk has joined #ruby
mhoungbo1 has quit [Read error: Connection reset by peer]
chef_byd has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
barnabyjones has joined #ruby
cadillac_ has joined #ruby
dionysus69 has joined #ruby
barnabyjones has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
schneider1 has quit [Ping timeout: 268 seconds]
al2o3-cr has quit [Quit: WeeChat 2.1]
emilford has quit [Ping timeout: 268 seconds]
sysvalve has joined #ruby
marr has joined #ruby
emilford has joined #ruby
andikr has joined #ruby
conta1 has joined #ruby
galeido has quit [Remote host closed the connection]
amar has joined #ruby
galeido has joined #ruby
galeido has joined #ruby
galeido has quit [Changing host]
emilford_ has joined #ruby
amar has quit [Ping timeout: 276 seconds]
schneider1 has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
KeyJoo has quit [Ping timeout: 256 seconds]
amar has joined #ruby
amar has quit [Remote host closed the connection]
ellcs has joined #ruby
amar has joined #ruby
jamesaxl has joined #ruby
sylario has joined #ruby
mlehrer has joined #ruby
schneider1 has quit [Ping timeout: 260 seconds]
jeffreylevesque has quit [Ping timeout: 256 seconds]
comet23 has quit [Quit: Connection closed for inactivity]
tvw has quit []
emilford_ has quit [Ping timeout: 260 seconds]
simmaniac has joined #ruby
nickjj_ has joined #ruby
dr3w__ has joined #ruby
mlkkk_ has joined #ruby
dr3w_ has quit [Read error: Connection reset by peer]
cadillac_ has quit [Ping timeout: 260 seconds]
mnemon has quit [Quit: leaving]
clemens3_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
m27frogy_ has quit [Ping timeout: 240 seconds]
mlkkk has quit [Read error: Connection reset by peer]
claudiuinberlin has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
reaVer_ has quit [Ping timeout: 240 seconds]
aspiers has quit [Ping timeout: 240 seconds]
ski7777 has quit [Remote host closed the connection]
andikr has quit [Read error: Connection reset by peer]
ski7777 has joined #ruby
brodul has quit [Ping timeout: 256 seconds]
reaVer has joined #ruby
KeyJoo has joined #ruby
aspiers has joined #ruby
sysvalve has quit [Ping timeout: 240 seconds]
brodul has joined #ruby
clemens3_ has joined #ruby
nickjj has quit [Ping timeout: 260 seconds]
m27frogy has joined #ruby
andikr has joined #ruby
conta has quit [Remote host closed the connection]
conta1 is now known as conta
ta_ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guille-moe has joined #ruby
tomphp has joined #ruby
schneider1 has joined #ruby
ta_ has quit [Remote host closed the connection]
harmaahylje has joined #ruby
venmx has joined #ruby
schneider1 has quit [Ping timeout: 256 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mnemon has joined #ruby
ur5us has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
Doow has joined #ruby
tomphp has joined #ruby
inerthia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider1 has joined #ruby
guille-moe has joined #ruby
schneider1 has quit [Ping timeout: 265 seconds]
amatas has joined #ruby
suukim has joined #ruby
mhoungbo1 has joined #ruby
amar has quit [Ping timeout: 276 seconds]
<dminuoso>
b100s: How does your sintatra app stop?
<dionysus69>
yesterday, by explicit locks you meant the db row locks right?
mhoungbo1_ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
mhoungbo1 has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
mhoungbo1_ has quit [Client Quit]
kies^ has quit [Ping timeout: 260 seconds]
tomphp has quit [Client Quit]
InfinityFye has joined #ruby
Azure|dc has quit [Read error: Connection reset by peer]
Azure has joined #ruby
tomphp has joined #ruby
InfinityFye has left #ruby [#ruby]
kies^ has joined #ruby
tomphp has quit [Client Quit]
mhoungbo1 has joined #ruby
tomphp has joined #ruby
alfiemax has quit [Remote host closed the connection]
amar has joined #ruby
tomphp has quit [Client Quit]
mohsen_1 has joined #ruby
amatas has quit [Quit: amatas]
tvw has joined #ruby
mohsen_1 has left #ruby [#ruby]
mohsen_1 has joined #ruby
barnabyjones has joined #ruby
amatas has joined #ruby
amatas has quit [Client Quit]
amatas has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
barnabyjones has quit [Ping timeout: 260 seconds]
RedNifre has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
samosaphile has quit [Quit: Page closed]
rabajaj has joined #ruby
RedNifre has quit [Ping timeout: 255 seconds]
phaul has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
guille-moe has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
schneider1 has joined #ruby
stormpack has joined #ruby
deathwishdave has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ur5us has quit [Remote host closed the connection]
rabajaj has quit [Quit: Leaving]
vasilakisfil has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
<vasilakisfil>
hi I have this string in a var: " \"Sí\"" and I want to store in a new variable the string itself without the start/end escaped quotes, like "Sí". In another example I would like " \"Sí \"seniorita\" \"" to become " Sí \"seniorita\" ". I tried with eval but only the first string works. Any idea/hint would be helpful.
mhoungbo1 has quit [Ping timeout: 260 seconds]
phaul has quit [Ping timeout: 276 seconds]
phaul has joined #ruby
<apeiros>
ew, eval. the second example is bad. how do you determine that the second \" does NOT terminate the string?
<apeiros>
is it just 'everything from first \" to last \", don't care what's in between'?
<apeiros>
@ vasilakisfil ^
<vasilakisfil>
yes apeiros
<vasilakisfil>
basically I want to "unquote" it, like there is something wrong and the string has extra starting/terminating quotes
<apeiros>
>> " \"Sí \"seniorita\" \"" to become " Sí \"seniorita\" "[/"(.*)"/, 1]
<ruby[bot]>
apeiros: # => /tmp/execpad-3ec6200ee15b/source-3ec6200ee15b:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/1000966)
<apeiros>
(copied to much from your message in the first try)
<apeiros>
I do think I smell an XY here, though
<apeiros>
?xy vasilakisfil
<ruby[bot]>
vasilakisfil: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<apeiros>
oh, also you probably should use the m flag: string[/"(.*)"/m, 1]
Burgestrand has quit [Quit: Closing time!]
<vasilakisfil>
thanks! seems to me like very advanced code but interesting regardless :D
<vasilakisfil>
my problem is that I parse an invalid yaml which has in its (invalid) valus quoted strings, but I want to "unquote" those before exporting the valid yaml
jinie has quit [Remote host closed the connection]
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
mhoungbo1 has joined #ruby
<apeiros>
got to go for lunch break, so I'll read up later. how did the yaml become invalid?
AJA4350 has joined #ruby
dionysus69 has quit [Client Quit]
dionysus69 has joined #ruby
mikeiniowa has joined #ruby
mhoungbo1 has quit [Client Quit]
tobiasvl has quit [Quit: Fedora 27 -> 28]
schneider1 has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
mostlybadfly has joined #ruby
schneider1 has joined #ruby
mhoungbo1 has joined #ruby
Cavallari has joined #ruby
schneider1 has quit [Ping timeout: 256 seconds]
ineb has quit [Remote host closed the connection]
ineb has joined #ruby
ineb has quit [Client Quit]
schneider1 has joined #ruby
schneider1 has quit [Ping timeout: 260 seconds]
ldnunes has joined #ruby
schneider1 has joined #ruby
mhoungbo1 has quit [Read error: Connection reset by peer]
cyberg has joined #ruby
mhoungbo1 has joined #ruby
apparition has joined #ruby
mhoungbo1 has quit [Remote host closed the connection]
schneider1 has quit [Ping timeout: 240 seconds]
ryzokuken has quit [Remote host closed the connection]
rwb has quit [Ping timeout: 256 seconds]
inerthia has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider1 has joined #ruby
mhoungbo1 has joined #ruby
amar has quit [Remote host closed the connection]
tomphp has joined #ruby
schneider1 has quit [Ping timeout: 268 seconds]
yohji has joined #ruby
tomphp has quit [Client Quit]
RedNifre has joined #ruby
schneider1 has joined #ruby
InfinityFye has joined #ruby
InfinityFye has left #ruby [#ruby]
tvl has joined #ruby
tvl is now known as tobiasvl
barnabyjones has joined #ruby
anjen has joined #ruby
schneider1 has quit [Ping timeout: 260 seconds]
ryzokuken has joined #ruby
BTRE has joined #ruby
barnabyjones has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
schneider1 has joined #ruby
vasilakisfil has quit [Quit: Konversation terminated!]
phaul has quit [Ping timeout: 256 seconds]
schneider1 has quit [Ping timeout: 240 seconds]
piixal has joined #ruby
bmurt has joined #ruby
piixal has quit [Client Quit]
piixal has joined #ruby
schneider1 has joined #ruby
mohsen_1 has quit [Quit: Connection closed for inactivity]
RedNifre has quit [Ping timeout: 248 seconds]
schneider1 has quit [Ping timeout: 240 seconds]
sonOfRa has quit [Remote host closed the connection]
agent_white has quit [Quit: leaving]
schneider1 has joined #ruby
nickjj_ is now known as nickjj
tomphp has joined #ruby
tomphp has quit [Client Quit]
sonOfRa has joined #ruby
phaul has joined #ruby
alfiemax has joined #ruby
schneider1 has quit [Ping timeout: 276 seconds]
tomphp has joined #ruby
RougeR has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
kurko_ has joined #ruby
jeffreylevesque has joined #ruby
moeSizlak has joined #ruby
<moeSizlak>
this script runs every 20 mintes. it creates a temp file, writes to it, then renames it
cagomez has joined #ruby
<moeSizlak>
about once every 100 times the rename fails saying no such file or directory
<moeSizlak>
why?
<moeSizlak>
to open it it does File.open(tempfname, 'wb') do |file| .... end
<moeSizlak>
to rename it does FileUtils.mv(tempfname, finalfname)
<moeSizlak>
/opt/rbenv/versions/2.4.0/lib/ruby/2.4.0/fileutils.rb:1220:in `lstat': No such file or directory @ rb_file_s_lstat - /tmp/Iodine_IL_-2018-05-08-06-51-01-318.txt (Errno::ENOENT)
<moeSizlak>
and indeed, the file does not exist in the temp directory. so where the heck is the file!?
saTchymoto has quit []
jeffreylevesque has quit [Ping timeout: 268 seconds]
jsrn has quit [Ping timeout: 260 seconds]
jsrn has joined #ruby
cagomez has quit [Ping timeout: 256 seconds]
GodFather has quit [Ping timeout: 264 seconds]
GodFather has joined #ruby
<apeiros>
moeSizlak: check with your OS how the /tmp directory is cleaned up
alfiemax has quit [Remote host closed the connection]
<moeSizlak>
its centos and from what i can tell its not cleaned up at all
rwb has joined #ruby
<moeSizlak>
cus there are temp files in there from months ago
Burgestrand has joined #ruby
<apeiros>
the only other thing that comes to mind is related to remote drives. we had a case where a file would be reported as written by the OS but not be visible until up to a minute later.
phaul has quit [Ping timeout: 276 seconds]
<moeSizlak>
nope its a local drive
<moeSizlak>
and the file isnt there now, so if it just a minute to show up....itd be there,
<apeiros>
and you don't rescue any exceptions in your code?
<moeSizlak>
no
<apeiros>
in that case - does not sound like that should happen.
<moeSizlak>
agreed.
<apeiros>
at the moment the block closes, ruby afaik flushes the content. iow, at the latest the file should be written after the block.
<apeiros>
and if it can't write, you should get an exception
<apeiros>
maybe if you gist the full code.
<apeiros>
you only rely on timestamp for uniqueness of the name? that might be another issue.
<apeiros>
0.001s is an eternity to a CPU
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mhoungbo1 has quit [Ping timeout: 240 seconds]
RougeR has joined #ruby
Silthias has joined #ruby
jsrn has quit [Ping timeout: 265 seconds]
Silthias has left #ruby [#ruby]
jsrn has joined #ruby
chef_byd has quit [Quit: Leaving]
ellcs has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
samort7 has joined #ruby
coderphive has joined #ruby
<moeSizlak>
ok apeiros found the problem you were right
<moeSizlak>
i had other scripts runnning at the same time and they were generating temp file names at the exact same milisecond resulting in duplicate filename
howdoi has quit [Quit: Connection closed for inactivity]
coderphive has quit [Ping timeout: 260 seconds]
ptr4ce has joined #ruby
gix has quit [Quit: Client exiting]
amar_ has quit [Ping timeout: 268 seconds]
phaul has quit [Ping timeout: 260 seconds]
piixal has quit [Remote host closed the connection]
piixal has joined #ruby
<apeiros>
asio: may I recommend using current docs instead of long EOLd 1.9.3? :)
gix has joined #ruby
piixal has quit [Ping timeout: 240 seconds]
<asio>
yeah..noticed after pasting it here...it was the first result on google when searching for tempfile :(
inerthia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider1 has quit [Ping timeout: 265 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
yohji has quit [Ping timeout: 256 seconds]
Burgestrand has joined #ruby
Bonjourm8 has joined #ruby
amar_ has joined #ruby
Bonjourm8 has quit [Remote host closed the connection]
amar_ has quit [Ping timeout: 248 seconds]
orbyt_ has joined #ruby
yohji has joined #ruby
deathwishdave has quit [Ping timeout: 256 seconds]
apparition has quit [Quit: Bye]
tomphp has joined #ruby
za1b1tsu has quit [Ping timeout: 265 seconds]
conta has quit [Ping timeout: 268 seconds]
piixal has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chocoelho has joined #ruby
Burgestrand has quit [Quit: Closing time!]
b100s has quit [Remote host closed the connection]
b100s has joined #ruby
piixal has quit [Ping timeout: 256 seconds]
chocoelho has quit [Client Quit]
Doow_ has joined #ruby
jsrn has quit [Ping timeout: 265 seconds]
jsrn has joined #ruby
marr123 has joined #ruby
klaas_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 260 seconds]
Burgestrand has joined #ruby
klaas has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
donofrio has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
Doow has quit [Ping timeout: 240 seconds]
tris- has quit [Ping timeout: 260 seconds]
txdv has quit [Ping timeout: 248 seconds]
tris has joined #ruby
webhat_ has quit [Ping timeout: 260 seconds]
donofrio_ has quit [Ping timeout: 260 seconds]
webhat has joined #ruby
infernix has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
soahccc has quit [Ping timeout: 240 seconds]
suukim has quit [Quit: Konversation terminated!]
venmx has quit [Quit: leaving]
soahccc has joined #ruby
RougeR has quit [Ping timeout: 240 seconds]
Rapture has joined #ruby
za1b1tsu has joined #ruby
fyrril has joined #ruby
oleo has joined #ruby
tomphp has joined #ruby
piixal has joined #ruby
amelliaa has quit [Quit: -]
KeyJoo has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
mhoungbo1 has joined #ruby
tomphp has joined #ruby
flak has joined #ruby
ferr1 has joined #ruby
tvw has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aupadhye has quit [Ping timeout: 260 seconds]
ferr1 has left #ruby [#ruby]
infernix has joined #ruby
marr123 has quit [Remote host closed the connection]
marr has joined #ruby
conta has joined #ruby
psychicist__ has joined #ruby
tomphp has joined #ruby
conta has quit [Ping timeout: 250 seconds]
tomphp has quit [Client Quit]
ccooke_ has quit [Quit: Lost terminal]
cschneid_ has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
ccooke has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
tomphp has joined #ruby
Cavallari has quit [Quit: Cavallari]
cschneid_ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has quit [Quit: Closing time!]
yohji has quit [Ping timeout: 260 seconds]
tdy has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
tomphp has joined #ruby
Burgestrand has joined #ruby
conta has joined #ruby
tomphp has quit [Client Quit]
MzrE has joined #ruby
conta has quit [Ping timeout: 246 seconds]
anjen has quit [Quit: anjen]
yohji has joined #ruby
Yzguy has joined #ruby
phaul has joined #ruby
synthroid has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
Burgestrand has quit [Quit: Closing time!]
dionysus69 has quit [Quit: dionysus69]
<konsolebox>
moeSizlak: it's easy to make it unique by naming the temp files based on the PID of the ruby instance that runs the script
dionysus69 has joined #ruby
<moeSizlak>
i just put a securerandom uuid in the name
<konsolebox>
there's still a very very very small chance of collision for that, no? why not go for the one that has certainty
suukim has joined #ruby
<apeiros>
and then they multithread the script and are back in place 1 :)
<konsolebox>
apeiros: he did say "other running scripts" though
<konsolebox>
i had that idea too
<apeiros>
yes, I was speaking about a potential future development. they did not make the impression it was currently multi-threaded.
<konsolebox>
ok
<konsolebox>
moeSizlak: all you need is $$
<apeiros>
uuid's chances for collision are academical. bigger chance that the computer is hit by a lightning strike ;-)
<apeiros>
though, you can calculate it. iirc the WP page for uuids even lists the formula.
<konsolebox>
yeah. it's 128 bit after all. but i don't even trust aes anymore ;)
anisha_ has quit [Quit: This computer has gone to sleep]
<apeiros>
laters
anisha_ has joined #ruby
jcarl43 has joined #ruby
anisha_ has quit [Client Quit]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Quit: dionysus69]
barnabyjones has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
barnabyjones has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
barnabyjones has joined #ruby
clemens3_ has quit [Ping timeout: 240 seconds]
simmaniac has quit [Ping timeout: 240 seconds]
nicholaslyang has joined #ruby
howdoi has joined #ruby
conta has joined #ruby
yohji has quit [Remote host closed the connection]
n13z has joined #ruby
conta has quit [Ping timeout: 240 seconds]
barnabyjones has quit [Quit: leaving]
ciscam has quit [Ping timeout: 248 seconds]
ciscam has joined #ruby
chef9000 has joined #ruby
nicholaslyang has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ptr4ce has quit [Remote host closed the connection]
govg has quit [Ping timeout: 260 seconds]
mlkkk_ has quit [Remote host closed the connection]
mjacob_ has left #ruby [#ruby]
apeiros has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
chef9000 has quit [Ping timeout: 260 seconds]
HemmE has joined #ruby
HemmE has quit [Client Quit]
tvw has joined #ruby
conta has joined #ruby
Psybur_ has joined #ruby
amar_ has joined #ruby
conta has quit [Ping timeout: 240 seconds]
Immune has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
amar_ has quit [Ping timeout: 256 seconds]
HemmE has joined #ruby
chris349 has joined #ruby
n0m4d1c has joined #ruby
orbyt_ has joined #ruby
coderphive has joined #ruby
RedNifre has joined #ruby
biberu has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
n0m4d1c_ has joined #ruby
mlkkk has joined #ruby
n0m4d1c has quit [Ping timeout: 255 seconds]
troulouliou_div2 has joined #ruby
alfiemax has joined #ruby
moei has quit [Quit: Leaving...]
n0m4d1c has joined #ruby
n0m4d1c_ has quit [Ping timeout: 246 seconds]
cabotto has joined #ruby
clemens3_ has joined #ruby
n0m4d1c_ has joined #ruby
n0m4d1c has quit [Ping timeout: 250 seconds]
piixal has quit [Remote host closed the connection]
conta has joined #ruby
piixal has joined #ruby
n0m4d1c has joined #ruby
piixal has quit [Ping timeout: 250 seconds]
n0m4d1c_ has quit [Ping timeout: 250 seconds]
synthroid has joined #ruby
amar has joined #ruby
justinfaler has joined #ruby
mahlon has quit [Quit: WeeChat 2.0]
Mondongo has joined #ruby
RedNifre has quit [Ping timeout: 246 seconds]
gizmore|2 is now known as gizmore
mahlon has joined #ruby
justinfaler is now known as Sonar
Sonar has quit [Quit: Sonar]
justinfaler has joined #ruby
justinfaler is now known as Sonar
eckhardt has joined #ruby
piixal has joined #ruby
pilne has joined #ruby
Sonar has quit [Quit: Sonar]
phaul has quit [Ping timeout: 246 seconds]
nowhere_man has quit [Ping timeout: 276 seconds]
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
nicholaslyang has joined #ruby
cabotto has quit []
stormpack has quit [Quit: Leaving]
nicholaslyang has quit [Read error: Connection reset by peer]
RougeR has joined #ruby
bweston92 has quit [Quit: Connection closed for inactivity]
dorian has joined #ruby
andikr has joined #ruby
<dorian>
hey folks anybody know of a decent example of a command-line app (preferably using commander or something similar) that has a bunch of verbs you can run directly from the shell, or will load its own little shell when invoked with no args?
<dorian>
mostly i'm looking for examples of reusing commands defined in commander on a readline loop
jsrn has quit [Ping timeout: 255 seconds]
<dorian>
(ideally this has already been considered and done by somebody)
jsrn has joined #ruby
<apeiros>
dorian: all you need is readline + shellsplit
mhoungbo1 has quit [Quit: mhoungbo1]
<apeiros>
i.e. you abstract the argv processing so you can do like `YourGem.run_command ARGV`, and in your interactive loop, you just do `YourGem.run_command input_line.shellsplit`
<apeiros>
you get shellsplit via `require 'shellwords'` btw., it's in the stdlib.
<dorian>
cool thanks
<dorian>
i was kinda liking the idea of all that boilerplate generation in commander though
jsrn has quit [Ping timeout: 255 seconds]
jsrn has joined #ruby
nfsnobody has quit [Ping timeout: 240 seconds]
<apeiros>
dorian: I don't know commander. why does it generate boilerplate and why's that an enjoyable idea?
Sauvin has quit [Read error: Connection reset by peer]
piixal has quit [Ping timeout: 250 seconds]
phaul has quit [Ping timeout: 246 seconds]
<dorian>
eh maybe we have different definitions of 'boilerplate'; i just meant it seems to do a nice job of bundling up verbs, options, help messages etc
klaas has joined #ruby
piixal has joined #ruby
za1b1tsu_ has joined #ruby
facest has joined #ruby
<apeiros>
generally, boilerplate is something you want to reduce, and languages like ruby are excellent at providing ways to reduce boilerplate. the wp description is quite good: