spider-mario has quit [Remote host closed the connection]
lkba has joined #ruby
Rollabunna has quit [Ping timeout: 252 seconds]
DanielRb_ has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
Hanmac1 has joined #ruby
fgo has joined #ruby
sdouglas has quit [Ping timeout: 264 seconds]
ddv has quit [Ping timeout: 245 seconds]
try has joined #ruby
vifino_ has quit [Quit: Ze Cat now leaves...]
Hanmac has quit [Ping timeout: 244 seconds]
chipotle has quit [Quit: cya]
sdouglas has joined #ruby
fgo has quit [Ping timeout: 248 seconds]
alexju has joined #ruby
chipotle has joined #ruby
ddv has joined #ruby
dc has joined #ruby
mgberlin has quit [Ping timeout: 255 seconds]
sdouglas has quit [Remote host closed the connection]
wowXD has joined #ruby
medeka has joined #ruby
sdouglas has joined #ruby
medeka has quit [Client Quit]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
asteve has joined #ruby
bruno- has joined #ruby
alexju has quit [Remote host closed the connection]
dc has quit [Ping timeout: 255 seconds]
sdouglas has quit [Ping timeout: 244 seconds]
wildroman2 has quit [Ping timeout: 252 seconds]
tanema has quit []
oo_ has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 248 seconds]
ClarusCogitatio has quit [Ping timeout: 272 seconds]
ClarusCogitatio has joined #ruby
GriffinHeart has joined #ruby
Shidash has quit [Ping timeout: 260 seconds]
Shidash has joined #ruby
havenwood has joined #ruby
kp666 has joined #ruby
brandonjmckay has quit [Quit: Leaving.]
GriffinHeart has quit [Ping timeout: 252 seconds]
brandonjmckay has joined #ruby
eka has joined #ruby
oo_ has joined #ruby
DanielRb_ is now known as DanielRb
DanielRb has quit [Changing host]
DanielRb has joined #ruby
Channel6 has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
bmurt has quit []
andrewjanssen has quit [Remote host closed the connection]
Wolland has joined #ruby
sevenseacat has joined #ruby
nicksanford has quit [Remote host closed the connection]
PanPan has joined #ruby
ClarusCogitatio has quit [Ping timeout: 240 seconds]
ClarusCogitatio has joined #ruby
garndt has joined #ruby
Wolland has quit [Read error: No route to host]
Wolland_ has joined #ruby
keen_ has quit [Read error: Connection reset by peer]
keen_ has joined #ruby
aniM has joined #ruby
andrewstewart_ is now known as andrewstewart
dideler_ has quit [Ping timeout: 264 seconds]
blackgoat has quit [Quit: reboot]
benlieb has joined #ruby
Wolland_ has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
aspires has joined #ruby
Zebroid has joined #ruby
blackgoat has joined #ruby
chipotle has quit [Quit: cya]
marahin has joined #ruby
Photism has quit [Quit: Leaving]
<marahin>
Hey guys. I want to create a tool that gets all the hostnames that appear in my LAN (maybe scans the network through the 192.168.0.100-.255, and then for those that are up - asks for hostname?) and prints them out
<marahin>
a) is it possible b) how do i do that
DanielRb has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
Zebroid has quit [Ping timeout: 240 seconds]
DanielRb has joined #ruby
chipotle has joined #ruby
Wolland has joined #ruby
charliesome has quit [Ping timeout: 260 seconds]
dideler_ has joined #ruby
<Radar>
marahin: use nmap
DanielRb has quit [Ping timeout: 248 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has quit []
<marahin>
Radar: that's a good advice, thank you
<marahin>
but, well, what if I still want to use the results of the scan in Ruby?
<marahin>
is there any library for Ruby that allows you to use nmap functions inside the script?
<Steve21>
Hey. Anyone willing to give this app a little testing? Its a ruby based app that allows you to get remidners for github issues. just looking for some people to test out syntax let me know if it makes sense: https://github.com/StephenOTT/GitHub-Reminders
asteve has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
mgberlin has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
atal421_ has joined #ruby
<atal421_>
can anyone recommend a langauge parser written in ruby?
robustus has joined #ruby
St_Marx has joined #ruby
mgberlin has quit [Remote host closed the connection]
Arkaniad has quit [Read error: Connection reset by peer]
<gr33n7007h>
marahin, and rescue SocketError
bruno- has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
andrewjanssen has joined #ruby
fgo has joined #ruby
Azure_ is now known as Azure
s3ri0us has joined #ruby
jerius has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
<s3ri0us>
Hi everyone. I've been using the static site generator middleman and I was hoping to get opinions on the possiblity of sending and recieving mail with only ruby installed on the server.
fgo has quit [Ping timeout: 240 seconds]
DanielRb has quit [Ping timeout: 240 seconds]
brunops has quit [Ping timeout: 260 seconds]
hamakn has joined #ruby
DanielRb has joined #ruby
atal421_ has quit [Remote host closed the connection]
aspires has quit []
brunops has joined #ruby
ashleah_ is now known as ashleah{K}
Avahey_ has quit [Quit: Connection closed for inactivity]
GriffinHeart has joined #ruby
aspires has joined #ruby
DanielRb has quit [Ping timeout: 272 seconds]
Valesk has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
aspires has quit [Client Quit]
aniM has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Remote host closed the connection]
DanielRb has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
aspires has joined #ruby
krz has joined #ruby
DanielRb has quit [Ping timeout: 255 seconds]
jerius has quit []
nickenchuggets has quit [Quit: nickenchuggets]
DanielRb has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
DanielRb has quit [Ping timeout: 252 seconds]
tmtwd has joined #ruby
AlexRussia has joined #ruby
northfurr_ has joined #ruby
fgo has joined #ruby
northfurr has quit [Ping timeout: 252 seconds]
northfurr_ is now known as northfurr
yfeldblum has joined #ruby
radic_ has quit [Ping timeout: 245 seconds]
radic has joined #ruby
kp666 has quit [Ping timeout: 244 seconds]
kp666 has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
lw has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
yfeldblum has joined #ruby
r_rios has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
braincrash has quit [Quit: bye bye]
nanashiRei has quit [Read error: Connection reset by peer]
kaiserpathos has joined #ruby
charliesome has joined #ruby
Valesk has joined #ruby
chrishough has quit [Quit: chrishough]
aniM has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
bruno- has joined #ruby
kaiserpathos has quit [Client Quit]
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
amargherio has quit [Remote host closed the connection]
charliesome_ has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 260 seconds]
charliesome has quit [Ping timeout: 248 seconds]
jaimef has quit [Ping timeout: 248 seconds]
AlexRussia has joined #ruby
dbu has quit [Ping timeout: 240 seconds]
dbu has joined #ruby
charliesome_ has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
Valesk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
mijicd has joined #ruby
fgo has quit [Remote host closed the connection]
dbu has quit [Ping timeout: 260 seconds]
dbu has joined #ruby
wallerdev has joined #ruby
jaimef has joined #ruby
fgo has joined #ruby
jamto11 has joined #ruby
pu22l3r has joined #ruby
dmyers has joined #ruby
DivineEntity has joined #ruby
tmtwd has quit [Ping timeout: 255 seconds]
abdulsattar has joined #ruby
george2 is now known as george2_
george2_ is now known as george2
DivineEntity has quit [Client Quit]
DivineEntity has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
Steve21 has joined #ruby
egtann has joined #ruby
dh64 has joined #ruby
happytux has quit [Ping timeout: 248 seconds]
happytux_ has joined #ruby
tmtwd has joined #ruby
bluOxigen has joined #ruby
hakunin has quit []
CaptainJet has joined #ruby
Wolland has quit [Remote host closed the connection]
egtann has quit []
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has joined #ruby
diegoviola has joined #ruby
djbkd has joined #ruby
kireevco has quit [Quit: Leaving.]
x1337807x has joined #ruby
s3ri0us has quit [Quit: Leaving...]
emergion has quit [Quit: Connection closed for inactivity]
razum2um has joined #ruby
osvimer has joined #ruby
Doc_IX has joined #ruby
Evixion` has joined #ruby
Wolland has joined #ruby
Evixion has quit [Ping timeout: 264 seconds]
Doc_X has quit [Ping timeout: 244 seconds]
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DivineEntity has quit [Quit: Lost terminal]
pu22l3r has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
<timor>
tobiasvl, updated gist with parse tree
fabrice31 has joined #ruby
Morkel_ has joined #ruby
fgo has quit [Remote host closed the connection]
<tobiasvl>
timor: would you mind explaining your normal_word_char regex in english
alexju has quit [Remote host closed the connection]
Morkel has quit [Ping timeout: 272 seconds]
Morkel_ is now known as Morkel
linduxed has joined #ruby
<timor>
tobiasvl, everything except whitespace, colons, semi-colons and opening and closing bracktes and braces
<tobiasvl>
okay, the character class definition in a parslet regex is probably different then
kalusn has quit [Ping timeout: 255 seconds]
schaerli has joined #ruby
subraminion has joined #ruby
qba73 has joined #ruby
<timor>
tobiasvl, meaning?
andrewlio has joined #ruby
schaerli has quit [Client Quit]
schaerli has joined #ruby
osvimer has quit [Quit: leaving]
bruno- has joined #ruby
Xeago has joined #ruby
tvw has joined #ruby
jamto11 has joined #ruby
tmtwd has quit [Ping timeout: 260 seconds]
<timor>
tobiasvl, i mean, different from what?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<tobiasvl>
nevermind, it's not important
<tobiasvl>
there's ambiguity somewhere, it tries to parse the word as an unsigned, but I'm not good enough with parslet to understand why unfortunately
<tobiasvl>
maybe someone else (or the tiny crowd at #parslet) can help
bruno- has quit [Ping timeout: 252 seconds]
jamto11 has quit [Ping timeout: 260 seconds]
subraminion has quit [Remote host closed the connection]
sk87 has joined #ruby
meinside has joined #ruby
subraminion has joined #ruby
tmtwd has joined #ruby
hermanmunster has quit [Remote host closed the connection]
hermanmunster has joined #ruby
brunops has quit [Ping timeout: 255 seconds]
relix has joined #ruby
wildroman2 has joined #ruby
tobiasvl has quit [Quit: brb]
moritzschaefer has joined #ruby
brunops has joined #ruby
uresu has joined #ruby
hermanmunster has quit [Ping timeout: 248 seconds]
Darkchaos has joined #ruby
sdouglas has quit [Remote host closed the connection]
iamjusthatdude has quit [Ping timeout: 264 seconds]
alem0lars has joined #ruby
naw_ has quit [Ping timeout: 272 seconds]
naw has joined #ruby
timonv has joined #ruby
ephemerian has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
abdulsattar_ has quit [Ping timeout: 240 seconds]
benzine21 has quit [Remote host closed the connection]
fgo has joined #ruby
naw has quit [Ping timeout: 260 seconds]
MengHX has joined #ruby
tvl has joined #ruby
Poky has joined #ruby
ghr has joined #ruby
yacks has joined #ruby
hefest has joined #ruby
blueOxigen has joined #ruby
mengu has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
naw has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
fgo has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
tvl is now known as tobiasvl
Takle has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
<hefest>
any of you using tab to insert two spaces instead of tab character?
r_rios has quit [Ping timeout: 260 seconds]
<sevenseacat>
yes
<hefest>
i can't make joe editor do it
dayepa has joined #ruby
ddv has joined #ruby
ddv has quit [Changing host]
<wasamasa>
my editor interprets the tab key as "Indent this line as appropriate"
<wasamasa>
I've grown to like it
nicksanf_ has joined #ruby
<hefest>
wasamasa: you mean as the rest of the code is indented?
nicksanford has quit [Read error: Connection reset by peer]
<wasamasa>
hefest: well, it takes the other code around it in account
<hefest>
wasamasa: which editor is that?
<wasamasa>
hefest: so if the indentation doesn't go right, it's either the package's fault that set it up or my fault and there's a syntax error somewhere
<wasamasa>
emacs
<wasamasa>
what else
<hefest>
vim? joe? pico? sublime_text?
<wasamasa>
I used to use vim :P
<wasamasa>
and before that nano
<hefest>
im sucker for joe, for 20 years
<wasamasa>
heck, I bothered teaching it syntax highlighting
<sevenseacat>
i use sublime text and i <3 it.
<wasamasa>
I don't particularly get what excites people about light table or atom
Joulse has joined #ruby
cjk101010_ is now known as cjk101010
<hefest>
using spaces instead of tab doesn't look like smart idea
* wasamasa
just uses what the style guides or projects dictate
<wasamasa>
it's that simple
<hefest>
if editor can figure it out
<wasamasa>
sometimes there's not even the need for the editor to do it
<hefest>
but basically you are using tab key on your keyboard for indentation
<wasamasa>
if they just provide a formatting tool
<sevenseacat>
i dont give a crap whether people use spaces or tabs, as long as theyre consistent about it
joonty has joined #ruby
einarj has joined #ruby
<wasamasa>
see golang, clang-format, ...
<sevenseacat>
having files that are half-half are irritating
<wasamasa>
sevenseacat: true, just like half of the file having trailing spaces and the other one not
<sevenseacat>
there is a special place in hell for people who leave trailing spaces
<wasamasa>
if it were the whole file I could sort of understand
<wasamasa>
but if it's just the places some newbie on the team has edited...
Takle has quit [Remote host closed the connection]
abdulsattar_ has joined #ruby
dangerousdave has joined #ruby
einarj has quit [Client Quit]
einarj has joined #ruby
<wasamasa>
worse is if someone feels entitled to do commits consisting of nothing but whitespace corrections :P
<unshadow>
When creating a 'big' (1000+ lines) program, should I keep it all in a single class with many methods, or multiple classes? , when should I split the code to other classes ?
<wasamasa>
once decoupling makes sense I guess
<wasamasa>
you'll want to avoid circular imports
<unshadow>
what do you mean by "circular imports" ?
mehlah has joined #ruby
Takle has joined #ruby
TakumoKatekari is now known as Takumo
<wasamasa>
well, if you have modules requiring each other
<unshadow>
haaa ok
sungai_keruh has joined #ruby
<wasamasa>
it can work, but people tend to avoid it
Soda has quit [Remote host closed the connection]
ARM9 has joined #ruby
<wasamasa>
so if you're splitting things up that it happens, you're probably overdoing it :P
<unshadow>
another question, when I 'require', is it class specific or is it for the whole coding written beneath it ?
<ARM9>
what's a good place to actually learn ruby
nfk has joined #ruby
<ARM9>
I went through tryruby.org and that was utter rubbish
<sevenseacat>
yeah i didnt think much of tryruby either
<ARM9>
typical guide your hand shit that doesn't explain why or how things are the way they are
<ARM9>
also using incorrect terminologies and is just plain wrong in places
<sevenseacat>
i dont recall it being flat-out wrong
<wasamasa>
unshadow: lol, I have that book next to me
<ARM9>
unshadow, I'll look into it, cheers
<unshadow>
:)
<wasamasa>
unshadow: like the writing style despite the author going over the top at times
<sevenseacat>
i keep wanting to push that pine book onto my partner but he doesnt want to learn to program >_>
<unshadow>
I tried also "why's poignant guide to ruby... it was too ...wierd hahaha
<wasamasa>
^
<wasamasa>
I think I'll get the pickaxe next
Takle has quit [Remote host closed the connection]
_Andres has joined #ruby
fgo has joined #ruby
timonv has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
<wasamasa>
mhh, rubocop is nice
LekeFly has joined #ruby
bruno- has joined #ruby
b00stfr3ak has quit [Ping timeout: 240 seconds]
ferr has joined #ruby
subraminion has quit [Quit: Computer has gone to sleep.]
fgo has quit [Ping timeout: 272 seconds]
rdark has joined #ruby
doev has joined #ruby
alem0lars has quit [Quit: Going AFK...]
bruno- has quit [Ping timeout: 260 seconds]
tmtwd has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
obs has joined #ruby
bruno- has joined #ruby
fantasticsid has joined #ruby
moritzschaefer has quit [Quit: Verlassend]
schaerli has quit [Remote host closed the connection]
sigurding has joined #ruby
schaerli has joined #ruby
kaspergr_ has joined #ruby
Zebroid has joined #ruby
kaspergrubbe has quit [Ping timeout: 272 seconds]
subraminion has joined #ruby
subraminion has quit [Remote host closed the connection]
yfeldblum has joined #ruby
subraminion has joined #ruby
<hefest>
wasamasa: so joe editor indeed can insert arbitrary number of spaces instead of tab char on tab key press
alex88 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<wasamasa>
hefest: that's what I expect any halfway-decent editor to be able of
mengu has quit [Remote host closed the connection]
timonv has joined #ruby
wildroman2 has quit [Read error: No route to host]
wildroman2 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
abdulsattar_ has quit [Ping timeout: 264 seconds]
davedev24_ has joined #ruby
schaerli has quit [Remote host closed the connection]
ndrei has joined #ruby
schaerli has joined #ruby
dANOKELOFF has joined #ruby
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
AlSquire has joined #ruby
ferr has quit [Quit: Konversation terminated!]
sevenseacat has quit [Quit: Leaving.]
alem0lars has joined #ruby
<fantasticsid>
Hi, does Ruby have anything similar to apache storm? I'm trying to find something similar but more lightweight, preferrably within Ruby ecosystem, to do some data analysis (pulling data from several sources and do some aggregation/transformation, and then store it somehwere in a data sink)?
wildroman2 has quit [Remote host closed the connection]
<unshadow>
what does the "!" means after calling a methoud ? like in foo.run!
wildroman2 has joined #ruby
<mozzarella>
unshadow: it's part of the method name
Zebroid_ has quit [Read error: Connection reset by peer]
timor_ has joined #ruby
Zebroid has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
Joulse has joined #ruby
jadedgnome has quit [Ping timeout: 244 seconds]
marr has quit []
timor has quit [Ping timeout: 260 seconds]
marr has joined #ruby
marr has quit [Client Quit]
LadyRainicorn has quit [Read error: Connection reset by peer]
Rainicorn has joined #ruby
oo_ has quit [Remote host closed the connection]
emergion has joined #ruby
Morkel has quit [Ping timeout: 244 seconds]
alec-c4 has quit [Remote host closed the connection]
brandonjmckay has joined #ruby
brandonjmckay has quit [Client Quit]
alec-c4 has joined #ruby
Morkel has joined #ruby
<Hanmac>
hey ruby folks, working in a script engine stuff ... have a recrusion-problem ... features add states (auto_states) but states should have features too (features are a generic word for anything like add still, raise levels etc) as you can see there is a problem that features does call states, but states does call features too ... is some one intererested to look at my code for that? i currently have no good idea for fixing that
vifino has joined #ruby
yfeldblum has joined #ruby
K3dare has quit [Read error: No route to host]
alec-c4_ has joined #ruby
alec-c4 has quit [Remote host closed the connection]
ferr has quit [Remote host closed the connection]
oo_ has joined #ruby
davedev24_ has quit []
dumdedum has joined #ruby
timmee has joined #ruby
K3dare has joined #ruby
alec-c4_ has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 248 seconds]
oo_ has quit [Remote host closed the connection]
sigurding has joined #ruby
oo_ has joined #ruby
obs_ has joined #ruby
jadedgnome has joined #ruby
obs_ has quit [Client Quit]
Veidit has quit [Remote host closed the connection]
obs_ has joined #ruby
Joulse has quit [Quit: Joulse]
obs has quit [Ping timeout: 264 seconds]
dANOKELOFF has joined #ruby
klaut has quit [Remote host closed the connection]
phinfonet has joined #ruby
obs_ has quit [Remote host closed the connection]
Takle has quit [Read error: Connection reset by peer]
ringarin has joined #ruby
Joulse has joined #ruby
bruno-_ has joined #ruby
DaniG2k has joined #ruby
abdulsattar has joined #ruby
Shidash has joined #ruby
r_rios has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
Guest86375 has quit [Changing host]
Guest86375 has joined #ruby
davedev24_ has joined #ruby
nemski has left #ruby [#ruby]
wald0 has joined #ruby
klaut has joined #ruby
himsin has joined #ruby
Zebroid has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 264 seconds]
mijicd has quit [Remote host closed the connection]
timmee has quit [Ping timeout: 246 seconds]
<razum2um>
is there anywhere source code of eval.in?
jottr_ has joined #ruby
sputnik13 has joined #ruby
sungai_keruh has quit [Quit: Leaving]
jottr has quit [Ping timeout: 240 seconds]
Photism has joined #ruby
Takle has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
<wasamasa>
I'd mail its author
alem0lars has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
jespada has quit [Quit: Leaving]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<wasamasa>
one of the phenomenons this blog series mentions is that it's pretty hard to figure out whether something timed out or you have no network access at all
itsfortybelow has joined #ruby
<chp>
so
<chp>
i am the network guy
<chp>
its not the network
<chp>
but i appreciate the insight
<chp>
any idea on troubleshooting the telnetlib ?
Aryasam has quit [Ping timeout: 244 seconds]
petems has quit [Read error: Connection reset by peer]
luksaur has joined #ruby
<wasamasa>
don't worry, not even microsoft, hp or google are safe from outages
djcp has joined #ruby
djcp has left #ruby [#ruby]
chp has left #ruby [#ruby]
<wasamasa>
lol
dangerou_ has joined #ruby
dangerou_ has quit [Max SendQ exceeded]
<wasamasa>
seriously, what the heck was he thinking asking such a question on here
alem0lars has joined #ruby
dangerou_ has joined #ruby
dangerou_ has quit [Max SendQ exceeded]
Takle has joined #ruby
<olivier_bK1>
i have a littel probleme when i try to test if my variable start with Résumé i get an error
<olivier_bK1>
if info.start_with?('Résumé')
<olivier_bK1>
but when i try with no accent everything doing fine
asuka has quit []
dangerou_ has joined #ruby
dangerou_ has quit [Max SendQ exceeded]
freggles has quit [Remote host closed the connection]
<wasamasa>
>> if "".start_with?('Résumé') puts 'Yay'
<eval-in>
wasamasa => /tmp/execpad-01c05ff16b66/source-01c05ff16b66:2: syntax error, unexpected tIDENTIFIER, expecting keyword_then or ';' or '\n' ... (https://eval.in/168056)
<wasamasa>
>> if "".start_with?('Résumé') then puts 'Yay'
yfeldblum has quit [Remote host closed the connection]
buub has joined #ruby
yfeldblum has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
thesheff17 has joined #ruby
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
RaCx has quit [Quit: Computer has gone to sleep.]
hy2guru_ has joined #ruby
asteve has joined #ruby
mikesplain has quit [Ping timeout: 240 seconds]
AlexRussia has joined #ruby
RaCx has joined #ruby
aniM has quit [Ping timeout: 272 seconds]
hamakn has quit [Remote host closed the connection]
theRoUS has quit [Changing host]
theRoUS has joined #ruby
lxsameer has joined #ruby
CaptainJet has joined #ruby
alem0lars has quit [Quit: Going AFK...]
hamakn has joined #ruby
maasha has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
keen_ has left #ruby ["Killed buffer"]
hamakn has quit [Read error: Connection reset by peer]
jzigmund_ is now known as jzigmund
hamakn_ has joined #ruby
orionstein_away is now known as orionstein
sigurding has quit [Quit: sigurding]
alem0lars has joined #ruby
DaniG2k has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
mikesplain has joined #ruby
RaCx has quit [Ping timeout: 248 seconds]
hamakn has joined #ruby
sdouglas has joined #ruby
<maasha>
Hey, I am writing a gem using Bundler::GemHelper.install_tasks. I am trying to figure out how to best organize code on GitHub where I only have a master branch, but I also want a dev branch?
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<havenwood>
anyways, can share gems between patch versions of same ruby
mijicd has quit [Remote host closed the connection]
<slash_nick>
:) is teeny a technical term now?!
<ericwood>
always has been!
nfk has joined #ruby
rubco has joined #ruby
<slash_nick>
well it's a damned silly one and i move we strike it from the manual
sunya7a has quit [Remote host closed the connection]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
* slash_nick
goes away because he can't be taken seriously
<rubco>
Hello, I would like to render a string : "\t" , not a tab but really "\" then "t". However ruby escapes it with another "\". It renders : "\\t". How could I render the unescaped version of this string ?
Xeago has quit [Remote host closed the connection]
LadyRainicorn has quit [Ping timeout: 244 seconds]
fabrice31 has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
kaiserpathos has joined #ruby
fabrice31 has joined #ruby
Xeago has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MrDoctor>
Many thanks havenwood, I'll check them out :)
moted has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
brugidou has left #ruby [#ruby]
mordocai has joined #ruby
ndrei has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
rubco has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
LadyRainicorn has quit [Ping timeout: 272 seconds]
Rainicorn has quit [Ping timeout: 255 seconds]
spider-mario has joined #ruby
baroquebobcat has joined #ruby
LadyR has quit [Read error: Connection reset by peer]
pu22l3r_ has joined #ruby
stytown has joined #ruby
<havenwood>
MrDoctor: Lots of good resources on APIs in Sinatra. NYNY is a subset of Sinatra. Hobbit is even lighter yet. Then for alternatives takes there's Cuba, Ramaze and Scorched. Or for some fun, Camping. Then the new kid on the block is Lotus, which is modular and looks neat.
rippa has joined #ruby
<havenwood>
Grape is just for APIs.
<bartdorsey>
Hey, I came across a confusing ruby line and i want to rewrite it to be more clear.
<bartdorsey>
<% classes << 'current' if first_with_results ? result[0] == first_with_results[0] : i == 0 %>
<jhass>
bartdorsey: ew, looks like logic in your view?
CaptainJet has quit []
mr_foobar_baz has quit [Ping timeout: 264 seconds]
<bartdorsey>
this combination of an if and a ternary is terrible
<bartdorsey>
jhass: yes, it's that too :P
<bartdorsey>
jhass: one problem at a time
<jhass>
that's the more important one
<jhass>
make it a helper and give it a nice name
pu22l3r has quit [Ping timeout: 240 seconds]
mr_foobar_baz has joined #ruby
<bartdorsey>
okay, so ignore that it's got <% %> around it
<jhass>
== scaryness reduced by > 50%
<jhass>
no
<bartdorsey>
how would I make it less confusing if I put it in a helper
casheew_ has quit [Read error: Connection reset by peer]
<jhass>
that line alone not much, we probably could come up with something for the whole task
casheew_ has joined #ruby
Macaveli has joined #ruby
mrjensen has quit [Remote host closed the connection]
<bartdorsey>
I'm fairly new to ruby so I'm confused by what that means exactly.. the order than it evaluated.
<bartdorsey>
does it do the ternary first? or the if?
<jhass>
the ternary of course
<bartdorsey>
what part is the condition of the ternary then?
<jhass>
first_with_results
<bartdorsey>
is just just checking the existence of that?
<wasamasa>
if first_with_results is neither nil nor false, append 'current' to classes
jadedgnome has quit [Quit: WeeChat 0.4.0]
<wasamasa>
otherwise result[0]
<wasamasa>
that's how I read it
lw has quit [Quit: s]
<jhass>
I disagree
<bartdorsey>
is the == assignment on the other side?
<wasamasa>
or wait
mikesplain has quit [Read error: Connection reset by peer]
<jhass>
no
<bartdorsey>
or is that another condition
<wasamasa>
I've overlooked the other side
<wasamasa>
damnit
mikesplain has joined #ruby
<bartdorsey>
you see why it's confusing :P
Kricir has joined #ruby
<wasamasa>
my client split it up into two lines :P
pu22l3r_ has quit [Remote host closed the connection]
<wasamasa>
so, disregard what I wrote
RaCx has quit [Quit: Computer has gone to sleep.]
<jhass>
it's if first_with_results is not nil or false and first_with_results[0] is results[0] or if i == 0 append current
stytown has quit [Quit: stytown]
hamakn has quit [Remote host closed the connection]
<bartdorsey>
my brain is not wanting to follow that :P
<wasamasa>
first, turn it into a helper
baroquebobcat has quit [Quit: baroquebobcat]
<wasamasa>
then that helper into more than that line
<jhass>
or as expression: if (first_with_results && first_with_results[0] == results[0]) || (!first_with_results && i == 0)
buub has quit [Ping timeout: 244 seconds]
<bartdorsey>
okay, so... the ternary is the entire condition of the if
tobago has quit [Remote host closed the connection]
<bartdorsey>
I'm not sure how you get the OR out of that.. I'm just not seeing it
IceDragon has joined #ruby
<jhass>
ternary is effectively and OR, if a; do_this; else do_that, aka (a && do_this) || (!a && do_that)
Vivekananda_y510 has joined #ruby
<jhass>
*an
<bartdorsey>
I think what's messing with me is those are bare conditions in the two options of the ternary
<bartdorsey>
right?
<jhass>
probably
<bartdorsey>
so either condition of the ternary could turn out to be true or false.
<jhass>
yes
Vivekananda_y510 has quit [Max SendQ exceeded]
<bartdorsey>
which makes the entire ternary true or false
<bartdorsey>
which is what the if is looking for
<jhass>
yeah
Vivekananda_y510 has joined #ruby
<bartdorsey>
but since there's no parens it's super confusing.
<jhass>
as said, with more context we probably can get rid of it altogether
lmickh has joined #ruby
<bartdorsey>
yeah
<bartdorsey>
now that I know what it's doing I can probably rewrite it.
<bartdorsey>
thanks
kireevco has joined #ruby
<jhass>
but as said, 1) make helper 2) write tests for that helper
<bartdorsey>
well, it's not my code, and I'm just adding a small feature, not refactoring the entire thing
<jhass>
always leave the place cleaner than you found it
thumpba has joined #ruby
Ankhers has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<bartdorsey>
yeah, except sometimes if you start to clean up, you realize there's cat shit everywhere and a small project turns into a whole weekend and then you catch a fleshing eating bacteria and you die
sdwrage has joined #ruby
b00stfr3ak has joined #ruby
shanlar has joined #ruby
Burgestrand has joined #ruby
sunya7a has joined #ruby
zapho53 has left #ruby [#ruby]
snath has joined #ruby
binaryhat has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Client Quit]
baroquebobcat has joined #ruby
tus has joined #ruby
pu22l3r has joined #ruby
Joulse has quit [Quit: Joulse]
<bartdorsey>
<% if first_with_results %>
<bartdorsey>
<% if result[0] == first_with_results[0] %>
<bartdorsey>
<% elsif i == 0 %>
<bartdorsey>
<% classes << 'current' %>
<bartdorsey>
<% classes << 'current' %>
Poky has quit [Remote host closed the connection]
<bartdorsey>
<% end %>
<bartdorsey>
<% end %>
<jhass>
bartdorsey: /topic
<bartdorsey>
too many lines, sorry
<jhass>
and ew
pu22l3r has quit [Remote host closed the connection]
<jhass>
that's horrible
<bartdorsey>
yeah and ignore the <%
<ericwood>
that's it, I'm going to make a Vim macro for converting rocket hashes to JSON-style hashes
<bartdorsey>
I'll move it later
<bartdorsey>
is it horrible apart from the <%?
<bartdorsey>
Oh, I should do an OR there.
b00stfr3ak has quit [Quit: leaving]
<bartdorsey>
duh
<bartdorsey>
I see the or now
b00stfr3ak has joined #ruby
<jhass>
there's no simple OR
apeiros has joined #ruby
<jhass>
remember it's !first_with_results && i == 0
<bartdorsey>
huh?
<jhass>
mark the first item current if first_with_results is not present
<bartdorsey>
isn't it if result[0] equals first_with_results[0] OR i equals 0 then add current to classes?
<jhass>
no
<bartdorsey>
man this is terrible code
_maes_ has joined #ruby
<bartdorsey>
this is basically a bunch of tabs with search resul
<jhass>
I've the feeling you can make that smarter if you touch where i and first_with_results comes from, but yeah
<bartdorsey>
and it wants to mark the first that has results as current
<bartdorsey>
OR
Morkel has quit [Quit: Morkel]
<bartdorsey>
the first one if there are no results
<jhass>
yeah
<bartdorsey>
at least I think that's what it's doing
<bartdorsey>
i is just the index of the results array
<bartdorsey>
it's in a loop
<bartdorsey>
result is the element in the array.
wildroman2 has joined #ruby
DaniG2k has quit [Quit: leaving]
<jhass>
another array from the looks
<jhass>
you may want to decompose it in the block arg
dANOKELOFF has quit []
Takle has quit [Remote host closed the connection]
<rdark>
aep: the exec! methods explicitly block until the process finishes
ghr has quit [Ping timeout: 240 seconds]
agarie has joined #ruby
<eam>
Timeout has a number of deadlock conditions
goleldar has joined #ruby
relix has joined #ruby
carraroj has joined #ruby
gkra has joined #ruby
schaerli has joined #ruby
<Cork>
funny enough i also have a net-ssh question :)
pu22l3r has joined #ruby
MrDoctor has quit [Ping timeout: 240 seconds]
<rdark>
there are the other methods that do async with callbacks (can be a pain) - or otherwise there's a popen3 implementation that's good for streaming stuff as in your above example
pu22l3r has quit [Remote host closed the connection]
<Cork>
is there a command to escape arguments for exec! ?
nerdy has joined #ruby
anaeem1 has quit [Ping timeout: 244 seconds]
<kalleth_>
Cork: you can exec a command with the arguments properly shellexec'ed through most shells
pu22l3r has joined #ruby
XenoWolf is now known as XenoWork
schaerli has quit [Remote host closed the connection]
pedahzur has left #ruby ["Konversation terminated!"]
subbyyy has joined #ruby
ndrei has joined #ruby
bradleyprice has quit [Ping timeout: 264 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
anaeem1_ has joined #ruby
subbyyy has quit [Client Quit]
subbyyy has joined #ruby
yekta has quit [Ping timeout: 252 seconds]
iamjusthatdude has joined #ruby
anaeem1_ has quit [Ping timeout: 240 seconds]
eka_ has joined #ruby
stytown has joined #ruby
Xeago has quit [Remote host closed the connection]
eka has quit [Read error: Connection reset by peer]
crazymykl has quit [Remote host closed the connection]
Xeago has joined #ruby
subbyyy has quit [Quit: none 0.4.3]
yekta has joined #ruby
subbyyy has joined #ruby
Xeago has quit [Remote host closed the connection]
jonahR has joined #ruby
stytown has quit [Client Quit]
crazymykl has joined #ruby
SilverKey has quit [Quit: Halted.]
sunya7a has joined #ruby
anaeem1 has joined #ruby
fgo has quit [Remote host closed the connection]
bartdorsey has quit [Ping timeout: 264 seconds]
XenoWolf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zamerick has joined #ruby
Zamerick has left #ruby [#ruby]
tacos1de has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 272 seconds]
diegoviola has joined #ruby
bartdorsey has joined #ruby
tacos1de has joined #ruby
Takle has joined #ruby
stytown has joined #ruby
kaspergrubbe has joined #ruby
danijoo has joined #ruby
danijoo_ has quit [Read error: Connection reset by peer]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
magnetica has joined #ruby
<magnetica>
need some help with the syntax please, <%= form_for [@profile, @portfolio], :html => { :multipart => true } do |f| %> multipart doesn't work ? can't figure out why
<jhass>
magnetica: #rubyonrails
<mr_foobar_baz>
jhass: just as I was about to say that
<magnetica>
it's a ruby syntax though
chrishough has joined #ruby
<magnetica>
jhass: those guys are pretty busy
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
so that throws a syntax error at you?
rdark has quit [Quit: leaving]
workmad3 has quit [Ping timeout: 248 seconds]
<mr_foobar_baz>
just a guess but try using ()
<jhass>
I see no syntax error in there, no need for any parens
<nobitanobi>
Hi guys, I have created this class in order to be able to convert to JSON my own classes: https://gist.github.com/novito/bd0723e90bf34eaf661e - However, in the JSON result, the keys contain '@'. Any way to get rid of that 'a' before converting to_json? I see that 'var' is a symbol so not sure how to remove that character
FifthWall is now known as Skysoms_boss
RaCx has joined #ruby
Skysoms_boss is now known as FifthWall
<nobitanobi>
ok, got it var.to_s.delete '@'
<nobitanobi>
:)
sunya7a has quit [Ping timeout: 272 seconds]
FifthWall is now known as SkySom_Himself
havenwood has joined #ruby
SkySom_Himself is now known as FifthWall
yacks has joined #ruby
schaerli has joined #ruby
andikr has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
buub_ has joined #ruby
buub has quit [Quit: leaving]
olivier_bK1 has joined #ruby
Wolland has quit [Remote host closed the connection]
nmokru has quit [Quit: nmokru]
jaimef has quit [Excess Flood]
davispuh has quit [Read error: Connection reset by peer]
Aryasam has quit [Ping timeout: 255 seconds]
lsmola__ has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
sunya7a has joined #ruby
ndrei has joined #ruby
alec-c4 has joined #ruby
jerius_ has joined #ruby
AlSquire has joined #ruby
lw has joined #ruby
jerius_ has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
alem0lars has joined #ruby
jaimef has joined #ruby
workmad3 has joined #ruby
jerius has quit [Ping timeout: 255 seconds]
Shidash has joined #ruby
jerius has joined #ruby
alem0lars has quit [Client Quit]
buzz0763 has joined #ruby
djbkd has joined #ruby
yetanotherdave has joined #ruby
<shevy>
nobitanobi hehe
<nobitanobi>
:)
jprovazn has joined #ruby
<nobitanobi>
I always forgot the .to_s on a symbol
cddr has joined #ruby
<nobitanobi>
*forget
ryanneufeld has quit [Ping timeout: 252 seconds]
sunya7a has quit [Remote host closed the connection]
wallerdev has quit [Read error: Connection reset by peer]
TheKruex has quit []
wallerdev has joined #ruby
blueOxigen has quit [Remote host closed the connection]
wchun has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 264 seconds]
towbes has quit [Ping timeout: 248 seconds]
<kfs>
can anyone help me out with what I typed u there?
bluOxigen has joined #ruby
Aryasam has joined #ruby
ylluminate has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
ryanneufeld has joined #ruby
Takle has quit [Remote host closed the connection]
agarie has quit [Read error: Connection reset by peer]
agarie has joined #ruby
abdulsattar has joined #ruby
chrishough has quit [Quit: chrishough]
SBoolean has joined #ruby
<shevy>
kfs no idea, I don't use bundler; it seems to complicate matters for me rather than simplify; same with rbenv, I always compile from the source
wallerdev has quit [Ping timeout: 252 seconds]
XenoWolf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lsmola__ has quit [Ping timeout: 240 seconds]
SilverKey has joined #ruby
bradhe has joined #ruby
<shevy>
what would help is to copy paste the specific error message, a 100% paste
Kricir has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 264 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
<pontiki>
kfs, i don't use rbenv. if you don't have the version specified in the Gemfile, is it supposed to install it for you?
<tus>
shouldn't this: doc.xpath('//div[@class="titlePage star-box"]') work for this: <div class="titlePage star-box"> 0,5 </div>? because it's not :(
olivier_bK1 has quit [Ping timeout: 252 seconds]
Alina-malina has joined #ruby
heftig has joined #ruby
<postmodern>
pontiki, it won't
<pontiki>
so then i have to ask, kfs, do you have ruby 1.9.3 set as the ruby version in the place you're trying use bosh-lite?
r_rios has quit [Ping timeout: 272 seconds]
wowXD has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
<jhass>
tus: that example works, yeah
Aryasam has quit [Ping timeout: 255 seconds]
towbes has joined #ruby
<tus>
jhass thanks man. must be wrong somewhere else hmm
<tus>
damnit i am so stupid, got it.
Wolland has joined #ruby
chrishough has joined #ruby
wowXD has quit [Ping timeout: 255 seconds]
zorak has quit [Read error: Connection reset by peer]
pp_ has quit [Quit: Lost terminal]
LiohAu has quit [Quit: LiohAu]
zorak has joined #ruby
lsmola__ has joined #ruby
Wolland has quit [Ping timeout: 244 seconds]
tesaf has quit [Quit: Lost terminal]
stytown has quit [Quit: stytown]
Takle has joined #ruby
cj___ is now known as cj
emptymag00 has joined #ruby
iwoeri has quit [Remote host closed the connection]
emptymag00 has quit [Client Quit]
olivier_bK1 has joined #ruby
lsmola__ has quit [Ping timeout: 252 seconds]
<ehlovader>
I install with rvm and then immediately in the same shell want to know where the gem was installed
<ehlovader>
why wouldn't it work for me
<ehlovader>
only when I disconnect from the ssh and reconnect in a new session is it avaialble
bradhe has quit [Remote host closed the connection]
rien has joined #ruby
acalewin has joined #ruby
andikr has quit [Remote host closed the connection]
bradhe has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
<shevy>
by default, gems go into $RUBY_PREFIX/lib/ruby/gems/2.1.0/gems/
<shevy>
so if the prefix is /usr, the gems would reside in /usr/lib/ruby/gems/2.1.0/gems/
<RubyPanther>
ehlovader: You have to open a new shell because rvm works by fiddling the shell environment, for example it replaces the cd command
<shevy>
with rvm it should be $HOME/.rvm/
<ehlovader>
ah
<ehlovader>
any way to do that on the fly?
<ehlovader>
I am using ansible to provision rvm
<ehlovader>
which means it is always the same shell
maestrojed has joined #ruby
<havenwood>
ehlovader: try #rvm for best advice
<ehlovader>
ah
<ehlovader>
thank you
<RubyPanther>
my opinion, its features bit you and the other options don't have that "feature"
<kfs>
shevy: "Your Ruby version is 1.8.7, but your Gemfile specified 1.9.3"
<shevy>
hehehe
<kfs>
i'm just following a tutorial and it says what to do. i'm not actually coding anything, just trying to get some example code up and running
agent_white has joined #ruby
fgo has joined #ruby
<havenwood>
kfs: what os/distro are you on?
<agent_white>
Ello everyone!
bluOxigen has quit [Ping timeout: 240 seconds]
<havenwood>
agent_white: hey
bradhe has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
XenoWolf has joined #ruby
bluOxigen has joined #ruby
kies has quit [Ping timeout: 248 seconds]
maasha has joined #ruby
<havenwood>
kfs: 1.8.7 is past end-of-life. There's usually a 1.9.3 package available.
<maasha>
hi, is there a method that iterates over an array two elements at a time? a bit like (1..10).each_cons(2) { |a| p a }, but returning [1,2], [3,4] ...
<havenwood>
maasha: each_slice(2)
<maasha>
havenwood: ty
Vivekananda_y510 has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 244 seconds]
fgo has quit [Ping timeout: 240 seconds]
razrunelord has quit [Remote host closed the connection]
kireevco has joined #ruby
razrunelord has joined #ruby
lw has quit [Quit: s]
<kfs>
havenwood: OSX 10.8
itsfortybelow has left #ruby ["Leaving"]
<havenwood>
kfs: Updating to 10.9 would bump system Ruby to 2.0.
<kfs>
well i have 1.9.3 installed
<havenwood>
kfs: Or you could install 1.9.3 with brew.
RaCx_ has quit [Read error: Connection reset by peer]
RaCx has joined #ruby
<bricker`work>
What is special about the number 4_611_686_018_427_387_904 ? See here:
<Beoran_>
shevy, that's a bit short changing a brilliant idea. Unix is the OS purified into it's most essential form. For instance, most other OS'es had 13 different types of files, but on unix all files, even devices, work as simple byte streams.
<Mon_Ouie>
It's just large so it's not a fixnum so a Bignum needs to be allocated
<PerlPuma>
Beoran_: You may be waxing, but it isn't very lyrical
casheew_ has quit [Read error: Connection reset by peer]
casheew_ has joined #ruby
casheew__ has joined #ruby
<PerlPuma>
And yes, unix has a philosophy of being able to treat "everything" as a file, but at the same time, there were always still lots of file types.
<Beoran_>
PerlPuma, I understand, not everyone can appreciate the beauty and simplicity of C
<shevy>
Beoran_ simple concepts work best. See ruby: everything is an object
<shevy>
C is not beautiful
<Beoran_>
shevy, *indeed*
<bricker`work>
Mon_Ouie: ah
<Mon_Ouie>
a * b; // <- not as simple as it may look
<Beoran_>
shevy, simple concepts are best.
<bricker`work>
Mon_Ouie: but 4_611_686_018_427_387_903 is the cutoff for Fixnum?
<PerlPuma>
The difference is not in having file types, it is in being able to open and read them in a generic way using the same call regardless of type
<Beoran_>
that's why c has inner beauty, in my eyes.
<Mon_Ouie>
On a 64 bit platform it would be something like (2**62)-1
<lemur>
oh, wow, lot more stuff here
PerlPuma is now known as RubyPanther
* wasamasa
pokes Eyes
<lemur>
need to scroll down next time
<lemur>
derp
<Eyes>
ow
kenneth has quit [Ping timeout: 260 seconds]
<wasamasa>
always the same game
<shevy>
I think C and C++ should have been one language
stytown has joined #ruby
<Beoran_>
shevy, I agree, c++ should never have existed
chrishough has joined #ruby
<shevy>
one way or the other :)
<RubyPanther>
C++ existing is no problem unless you use it. Just say no.
<Beoran_>
strustrup should have made a language that is different from C
<shevy>
though I liked: cout << "yo" << endl;
<lemur>
but it lets you build up: C, C++, C++++
<shevy>
lol
<lemur>
(or rather C# as you all like to call it)
<shevy>
what is the name ... C10roxr standard?
m8 has joined #ruby
<shevy>
these languages are soooo similar
<shevy>
don't forget D lemur
casheew has quit [Ping timeout: 264 seconds]
yekta has quit [Ping timeout: 248 seconds]
fgo has joined #ruby
<Beoran_>
C isn't similar to C++ at all. They have a fundamental difference in point of view.
LiohAu_ has joined #ruby
<Beoran_>
well enough I have to take a rest...
kenneth has joined #ruby
Beoran_ has left #ruby ["Leaving"]
<lemur>
We may as well coin everything with Algol-like syntax as too similar.
<RubyPanther>
Even C++ programmers agree it is an awful language unless you only use certain parts. Only problem, they don't agree which parts to use.
<RubyPanther>
At least in C there is a lot of agreement about how to use it safely these days
PhilippeGeek has quit [Ping timeout: 240 seconds]
* Nilium
disagrees.
<RubyPanther>
You can't stop there from being a lot of agreement, though. ;)
<Nilium>
That said, RAII is rather handy.
paulfm has quit []
smathieu has quit [Remote host closed the connection]
eka has joined #ruby
<RubyPanther>
Carefully hedged statements are nearly bulletproof.
replay has quit [Ping timeout: 248 seconds]
smathieu has joined #ruby
chrishough_ has joined #ruby
mtsmith85 has joined #ruby
DrCode has quit [Ping timeout: 264 seconds]
chrishough has quit [Ping timeout: 264 seconds]
abdulsattar has quit [Ping timeout: 264 seconds]
chrishough_ is now known as chrishough
<Mon_Ouie>
Code that allows your processor to survive taking a bullet. That's *real* progress!
dfinly has joined #ruby
<Nilium>
The important thing is that GC sucks.
yekta has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
<workmad3>
Nilium: more importantly, no-GC sucks more than GC... apart from when it doesn't :)
rfv_ is now known as rfv
razrunelord has joined #ruby
<Nilium>
I'd rather have no GC and RAII than GC and no RAII
razrunelord has quit [Client Quit]
LiohAu_ has quit [Ping timeout: 264 seconds]
<Nilium>
Otherwise you have to use finalizers and that's just shite
centrx has joined #ruby
eka_ has quit [Ping timeout: 248 seconds]
<mtsmith85>
Hi Folks. Hope this is the best room for this questions. I’m building an application with a series of workers taking jobs from a queue, separate from our main Rails app. I’ve been googling solutions for daemonizing the small ruby “scripts” (for lack of a better term), and are curious about best practices. Does anyone have suggestions for this? (We’ve looked at some gems and Process.daemon).
timonv has quit [Remote host closed the connection]
<Nilium>
Nope, ask in the Rails room.
terrell_t has joined #ruby
kyb3r_ has joined #ruby
<Nilium>
Assuming it's still a Rails question.
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
<mtsmith85>
Nilium: I’d like to keep it away from rails — it’s just chucking data around, effectively.
bhaak has quit [Ping timeout: 245 seconds]
paulfm has joined #ruby
<mtsmith85>
(don’t want to add the overhead of everything else)
<Nilium>
In that case, is there something wrong with Process.daemon?
<mtsmith85>
Nilium: Nope. But, it’s a new area for me and google was turning up a lot of various results. I was curious if there were some suggested best practices. But Process.dameon should be perfectly fine.
<Nilium>
I'd say start with that and look at alternatives if there's a need to.
<Nilium>
Mostly how I prefer to do things since I'd rather not pull in a gem if I don't need to
<mtsmith85>
Great. I appreciate that, Nilium. Sometimes all you need is a “you’re not crazy or on the wrong path” :-)
terrell_t is now known as terrellt_
jdj_dk has joined #ruby
terrellt has quit [Disconnected by services]
terrellt_ is now known as terrellt
<Nilium>
That said, I'm also crazy.
<mtsmith85>
Ha. Well, I’ll still take it. Thanks!
<Nilium>
Also, the stdlib is full of garbage, so you kind of have to investigate each thing on its own. Process should be fine though, it already gets a lot of use.
smathieu has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
<RubyPanther>
mtsmith85: there are lots of solutions for that, look there for the best practices. There are at least half a dozen popular solutions for worker queues.
DrCode has joined #ruby
smathieu has joined #ruby
<mtsmith85>
@RubyPanther sorry, when you say “there”…?
phutchin1 has quit [Ping timeout: 260 seconds]
<terrellt>
Worker queues?
<terrellt>
Sidekiq ftw.
<RubyPanther>
You don't have to "pull in" a gem. It is nonsense-speak. You can distribute the gem with your app, or even paste the code from the gem into your app.
<Nilium>
My pionus is doing a lot of exploring today.
djbkd has joined #ruby
<RubyPanther>
mtsmith85: Just go backwards from the "there" you're wondering about to whatever place or subject was mentioned immediately beforehand.
RaCx has quit [Quit: Computer has gone to sleep.]
<mtsmith85>
RubyPanther: Gotcha. Sorry, I misunderstood for a moment. So yep, that’s what we’re talking about. Maybe writing each worker as a small gem and having it daemonized.
<Nilium>
RubyPanther: By pull in, I mean introduce more code I'm dependent on.
RaCx has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
<RubyPanther>
It makes sense to roll your own when it is something small. Why introduce dependencies for a couple lines of code? Or for security where you have arbitrary needs, and plan to have different arbitrary needs in the future. But workers queues are a very technical thing that requires an exacting solution.
<jdj_dk>
so what am I not getting here.. On production server I'm using RVM and I only have one version installed (2.1.1). When starting my Rails app using bundle exec... it starts with ruby 2.1.0.... ? =) Anybody has a clue what is messed up?
<RubyPanther>
It is not really an area where there are any category of gains to be had by avoiding existing wheels
<mtsmith85>
To clarify, RubyPanther, we’re not building the queue itself. Just the workers that will grab messages from the queue (SQS in this sense)
<Nilium>
In other words, far as I can tell, he's just trying to spin up a process.
eka has quit [Ping timeout: 260 seconds]
<RubyPanther>
mtsmith85: I would say that increases the benefit of using an existing queue
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
M-Techni1 is now known as M-Technic
andrewjanssen has quit [Remote host closed the connection]
buub_ has quit [Quit: leaving]
<mtsmith85>
RubyPanther: Yes, we’re using SQS. Just wondering about the best way to build the workers themselves. Daemonizing? Gem?
bradhe has quit [Remote host closed the connection]
<kfs>
ugh still can't get bundler to work
<kfs>
is there an alternative to bundler? or can i get away without using it at all?
<Nilium>
What isn't working, first?
eka has joined #ruby
<kfs>
it won't look at the ruby versions that I install with rbenv
tessi_zz has quit [Ping timeout: 272 seconds]
<kfs>
only uses the OSX system version
wasamasa has quit [Ping timeout: 272 seconds]
<Nilium>
That's a bit odd.
<kfs>
it's probably something basic like paths or some config
<kfs>
i'm just trying to get some example code to run, so i'v never done anything like this before
<kfs>
both /usr/bin/bundle and bundler are hard coded to the system instance
djbkd has quit [Remote host closed the connection]
<Nilium>
When you installed bundler, did you rehash?
wasamasa has joined #ruby
tessi_zz has joined #ruby
<kfs>
header of /usr/bin/bundle #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
j_mcnally has joined #ruby
grieg has joined #ruby
Zenigor has quit [Remote host closed the connection]
<Nilium>
Have you installed bundler through gem?
jprovazn has quit [Ping timeout: 255 seconds]
<kfs>
yes
<Nilium>
Also, it shouldn't be in /usr/bin to begin wtih, so that's weird.
bmurt has quit []
<kfs>
i installed ruby thoguh brew
<Nilium>
brew doesn't put stuff in /usr
<kfs>
and rbenv
mijicd has joined #ruby
<tus>
what's the best format to write into if i want to have three colums and be able to sort them? (if it's even possible)
<Nilium>
It puts stuff in /usr/local, typically, or maybe /opt/local
<Nilium>
Ok, now what happens if you do rbenv which bundle?
kaiserpa_ has joined #ruby
<kfs>
rbenv: bundle: command not found
kaiserpathos has quit [Ping timeout: 252 seconds]
<Nilium>
Ok, so you haven't installed bundler using the rbenv-installed ruby.
<Nilium>
Do that.
jrhorn424 is now known as zz_jrhorn424
<Nilium>
Also, just to check, do `which gem`
wallerdev has joined #ruby
<Nilium>
Not rbenv which.
<kfs>
./Users/sabark/.rbenv/shims/gem
<Nilium>
Ok, now install bundler.
<kfs>
how do i make sure it installed with rbenv?
<kfs>
rbenv ruby
mconnolly has quit [Ping timeout: 240 seconds]
<kfs>
not system ruby
djbkd has joined #ruby
<Nilium>
By checking if it's in your installed gems.
<kfs>
installed/installs
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<Nilium>
If `gem list --local` doesn't have it, you don't have it.
<kfs>
~/.rbenv/shims/gem install bundler
xxneolithicxx has joined #ruby
<Nilium>
Just type gem, otherwise it's impossible to figure out if you're even using the right gem instance.
bradhe has joined #ruby
<xxneolithicxx>
Hi all, is it safe to use a class and instance variable of the same name as long as its qualified correctly or will the instance variable effectively override the class variable?
<wallerdev>
its safe
<wallerdev>
the @ is part of the name
<xxneolithicxx>
k cool
<xxneolithicxx>
thx
djbkd has quit [Remote host closed the connection]
<havenwood>
xxneolithicxx: avoid class variables in any case ;)
<kfs>
ok i think that worked. i did rehash and now it didn't error out!
<kfs>
installing some stuff…
bhaak has joined #ruby
alec-c4 has quit []
robertodecurnex has quit [Remote host closed the connection]
amargherio has quit [Read error: Connection reset by peer]
kaiserpathos has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
Zai00 has joined #ruby
<kfs>
holy crap. installing Xcode and all this ruby stuff just sucked 25GB of my tiny 128GB drive lol
<kfs>
probably mostly xcode
kaiserpa_ has quit [Ping timeout: 244 seconds]
wowXD has joined #ruby
<wasamasa>
probably
<wasamasa>
there's a smaller download that just installs clang and such
RaCx_ has joined #ruby
Caius has quit [Ping timeout: 255 seconds]
<wasamasa>
tried it ages ago, worked up to a certain point, so I just sucked it up and went for xcode
<xxneolithicxx>
oh god, I did that macports thing once when I used to use my mac, insane time/storage suck
Caius has joined #ruby
<RubyPanther>
mtsmith85: If you daemonize following the normal unix pattern it works fine portably, though often a binmode (no-op on *nix) is added. fork, setsid, cd, etc
einarj has joined #ruby
<kfs>
Nilium: !!! it worked! thank you!
ascarter has joined #ruby
paulfm has quit []
<RubyPanther>
The relevant Ruby stdlib just wraps the C calls of the same names
terrellt has quit [Read error: Connection reset by peer]
<kfs>
now to go to step two lol
Wolland has joined #ruby
<kfs>
all day on step 1
xxneolithicxx has left #ruby [#ruby]
terrellt has joined #ruby
alec-c4 has joined #ruby
<RubyPanther>
So there are no surprises
bluOxigen has quit [Ping timeout: 272 seconds]
bradhe has quit [Remote host closed the connection]
<shevy>
kfs one day you will come to linux
<shevy>
like RubyPanther
<kfs>
he
<kfs>
heh
<wasamasa>
kfs: I did, too
<shevy>
:)
<shevy>
25GIG seems excessive though
<kfs>
i was asked to demo Cloud Foundry to my co workers so i have to just figure this one out
<wasamasa>
while os x might be the best allrounder machine
<kfs>
I think that's Xcode stuff that i didn't need. all i needed was the command line tools
<wasamasa>
linux is better if you do development mostly
<shevy>
I have a collection of 2612 programs, including several gcc source tarballs like gcc-4.9.0.tar.xz and I reach only about 12 gigs with all of them
<kfs>
wasamasa: yeah i don't do dev. I'm just playing around with Cloud Foundry
wowXD has quit [Ping timeout: 264 seconds]
<kfs>
trying to teach some guys about PaaS because my company sells CF
djbkd has joined #ruby
<wasamasa>
kfs: good, then you won't miss lacking tiling window managers and such :P
djbkd has quit [Remote host closed the connection]
<kfs>
i used to use debian as my workstation, with Windowmaker
<kfs>
those were the days
djbkd has joined #ruby
* Nilium
stabs shevy
<Nilium>
Just gotta get that out of the way.
sigurding has quit [Read error: Connection reset by peer]
<kfs>
setting up vagrant now. it's gotta download a VM
<kfs>
and i am on LTE. yeah… gotta wait till i get home
hy2guru_ has quit [Quit: Connection closed for inactivity]
<shevy>
Nilium hah I have so much todo that I don't even have the time to stab you back
<shevy>
right now I sort through all games in that collection
<shevy>
the wesnoth guys are insane... it's getting bigger and bigger and bigger
Wolland has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
<shevy>
it's the boost effect
<RubyPanther>
I didn't switch to linux until common windows apps stopped running with Win 3.11 + Win32s extensions. There was no way I was going to run Win95/98. I actually liked DOS, because I didn't even imagine the quality of shells *nix had. DOS was as good as Pro-DOS on the Apple ][, after all.
mjsmith2 has quit [Remote host closed the connection]
jheg has quit [Read error: Connection reset by peer]
<shevy>
Wesnoth Source 1.11.15 now has 390 MB.
<shevy>
ruby-2.1.2.tar.xz has 9 MB
jerius has quit [Ping timeout: 264 seconds]
jheg has joined #ruby
<shevy>
so that is more than 43x ruby
<shevy>
but ruby is much better than wesnoth!!!
mjsmith2 has joined #ruby
<RubyPanther>
it amazes me that the modern windows cmd shell still has no features.
<shevy>
how about power shell
bradhe has joined #ruby
<shevy>
it has the word "power"
<shevy>
DOS was kinda funny
<RubyPanther>
presumably command history and tab completion are still considered "power" tools to somebody out there.
<shevy>
I liked many of the old DOS games; today it's a battle for the faster 3D processor engine
<shevy>
lol
<shevy>
they want you to think in terms of GUI windows
timgauthier has joined #ruby
Vivekananda_y510 has quit [Ping timeout: 240 seconds]
<RubyPanther>
I'm not convinced they have any idea how they want me to think. Just look at Win 8
sigurding has joined #ruby
<tus>
why is, when i use the inbuilt csv library in ruby, that it adds citations to my last saved variable? could it be that it's numbers with comma? (211,222)
mtsmith85 has quit [Quit: mtsmith85]
<workmad3>
tus: do you mean quotations?
<RubyPanther>
To know which way MS is trying to manipulate you, you have to know how much Balmer had to drink on a Monday in October, and you have to know which Monday too
<tus>
oh yeah! sorry
<workmad3>
tus: and if so, it'll be because the field contains commas
TheLarkInn has quit [Quit: Leaving.]
<workmad3>
tus: which, without quotes would... unsurprisingly... be separate fields!
<tus>
haha i didn't think of that, stupid. thanks man!
<bricker`work>
In this example, would hsh[1] *ever* return "a"? `hsh = { "a" => 1, "b" => 1 }.invert` I know hashes aren't ordered. What would cause it to be 1 => "a" ?
<RubyPanther>
hashes are ordered now
<bricker`work>
RubyPanther: "now"?
<Mon_Ouie>
Since 1.9
grieg has quit [Quit: Leaving]
<bricker`work>
Really...
<atmosx>
hello
<banisterfiend>
Mon_Ouie 'alutte
<workmad3>
bricker`work: hash keys are ordered on insert order
<slash_nick>
bricker`work: Hash#invert ?
<bricker`work>
Interesting, I don't remember hearing about that
kireevco has quit [Quit: Leaving.]
<slash_nick>
oh, you said invert
<Mon_Ouie>
'alut
<workmad3>
bricker`work: so {"b" => 1, "a" => 1}.invert => {1 => "a"}
eka has quit [Ping timeout: 240 seconds]
<RubyPanther>
Previously they would be ordered on a hash that small anyways
replay has joined #ruby
<bricker`work>
ah
<slash_nick>
oh wow, that code example got lost on me...
<bricker`work>
workmad3: yeah I'm just more concerned about the predictability of it, I see now that is is indeed predictable
<bricker`work>
it*
jaimef has quit [Excess Flood]
<workmad3>
bricker`work: depends on how deterministic your process for setting up the hash is ;)
<RubyPanther>
I think even before you needed a hash over the page size to have a chance at the order changing, but it might have been a different (large) threshold
djbkd has joined #ruby
ldnunes has quit [Quit: Leaving]
rien has quit [Ping timeout: 246 seconds]
kireevco has joined #ruby
<atmosx>
how's life people?
alienaut has joined #ruby
<Mon_Ouie>
Hm? Before that the order was totally dependent on what #hash would return
<atmosx>
is there any project that uses lua worth mentioning?
<lemur>
Lua just tends to be lighter weight for embedding is what it comes down to.
parduse is now known as Guest38241
ferr has joined #ruby
<jhass>
atmosx: prosody ?
<Nilium>
I think it'll just end up being a size/performance trade-off.
<Mon_Ouie>
Tons of games use it as a scripting language
<lemur>
Adobe last I remember.
<atmosx>
jhass: the im client?
edgarjs is now known as edgarjs_afk
<jhass>
atmosx: it's an xmpp server
<lemur>
that count as huge enough? Photoshop, Lightroom, etc.
<lemur>
Minecraft plugin computercraft uses it too.
<RubyPanther>
atmosx: Lego Mindstorms is a good example
fgo has quit [Ping timeout: 244 seconds]
<atmosx>
jhass: yeah
<atmosx>
RubyPanther: okay
<RubyPanther>
Apparently Lua is extensively used already in embedded robotics controllers in factories, and those are the companies that invested in mRuby
<katlogic>
Only prosody counts though, as it is the whole damn thing written in lua, not just embedded scripting.
<katlogic>
As for pure lua software like that, it is somewhat rare.
ferr has quit [Read error: Connection reset by peer]
<RubyPanther>
There was a Japanese industrial group that co-sponsored mRuby along with the Japanese government as a Lua competitor for robotics
<atmosx>
exactly my point but didn't wanna push it
<lemur>
As far as Ruby, RPG Maker XP and above use RGSS heavily.
<katlogic>
RubyPanther: Ruby + games, or anything realtime still sounds like laughing / vaporware matter to me at the moment.
<RubyPanther>
Well, Lua isn't for writing apps, it is for embedded scripting _and_ embedded apps on SBCs
yusuf_000_ has joined #ruby
motto has joined #ruby
alec-c4_ has joined #ruby
<RubyPanther>
If you don't have access to proprietary robotics controllers, then of course you wouldn't matter to Lua developers, or they wouldn't matter to you, or something
<katlogic>
RubyPanther: Well, it's more like about lack of standardized "default libraries" like other languages do.
apeiros_ has joined #ruby
<katlogic>
So this makes entry barrier higher than just usual ruby/python stuff.
<katlogic>
But then again, JS was exactly like that in the beginnning.
edgarjs has joined #ruby
<shevy>
JS has monopoly on the browser though, ruby does not
ryotarai_ has joined #ruby
<RubyPanther>
There is supposed to be a higher entry barrier because you're expected to be buying hardware dev kits just to get started
<shevy>
and python has more devs than ruby too
yekta_ has joined #ruby
patronus has joined #ruby
<katlogic>
shevy: About having no runtime worth mentioning
bradhe has quit [Remote host closed the connection]
Havoc][ has quit [Disconnected by services]
<katlogic>
node/npm is still pile of crap, but hey, it exists now
<lemur>
Python also has the lovely 2/3 divide that no one can ever get over.
todor_ has joined #ruby
Havoc][ has joined #ruby
banjara1 has joined #ruby
<Nilium>
node needs to die in a fire.
mjsmith2 has quit [Remote host closed the connection]
<RubyPanther>
And for game scripting, there isn't really anything outside of the Ruby stdlib that you'd want to be standard, because you don't want bloat
sigurding has joined #ruby
sweeper_ has joined #ruby
<Nilium>
lemur: That one's a mystery. I seriously don't know why so many people have trouble with the Python 2/3 transition.
RaCx_ has joined #ruby
mikemac has joined #ruby
<ericwood>
oh my god I am yak shaving please send help
<ericwood>
:'(
razum2um1 has joined #ruby
<shevy>
RubyPanther why do we have optparse and getoptlang
<ericwood>
it might be too late for me
* Nilium
hands ericwood a lawnmower
Atomic_Work has joined #ruby
<katlogic>
RubyPanther: Ruby is just way too slow, any sort of bloat is the last issue.
<pipework>
Ruby sucks, long live Lua.
<shevy>
Nilium he needs a gun
<lemur>
me either
thalweg_ has joined #ruby
<Nilium>
Not for the yak, but for you to stick your head in
thesheff17_ has joined #ruby
<lemur>
as far as slowness, not really an issue.
<ericwood>
seems reasonable enough
<RubyPanther>
shevy: One is for common use, the other is for pedantic GNU-style command parsing
<shevy>
just shoot ericwood already Nilium
volk__ has joined #ruby
cescalante_ has joined #ruby
RaCx_ has quit [Client Quit]
claymore has quit [Quit: Leaving]
thesheff17 has quit [Disconnected by services]
<shevy>
simple solutions work best
<katlogic>
lemur: For some silly gui theming, perhaps.
<lemur>
the order of magnitude difference there makes it pretty well worthless to argue
<Nilium>
When you pick Python, you just have to accept it's slow as hell and live with that.
thesheff17_ is now known as thesheff17
<katlogic>
But implementing half of game as scripted objects, well, uh, good luck with your endeavors with ruby in gaming :>
<Nilium>
Python 3 getting slower isn't really an issue.
<lemur>
If speed is really an issue, don't go with a scripting language
davzie1 has joined #ruby
QKO_ has joined #ruby
<Nilium>
More or less.
<Nilium>
Or limit use of the scripting language and embed it.
Rydekull_ has joined #ruby
Muz_ has joined #ruby
<lemur>
All of them are categorically slow, and not enough of a magnitude difference to make one an extreme preference.
cout_ has joined #ruby
<shevy>
so you just described lua Nilium when you said to embed it
saltsa_ has joined #ruby
stormy3_ has joined #ruby
maestroj_ has joined #ruby
pr00t_ has joined #ruby
<katlogic>
lemur: Nbobody cares about such notion, the only factor is developer cost.
wald0_ has joined #ruby
SBoolean_ has joined #ruby
yeticry_ has joined #ruby
<katlogic>
lemur: The more dev time you can shift to scripting monkeys, the better.
<RubyPanther>
katlogic: If you think Ruby is slow, you think too much for your own good.
zaargy_ has joined #ruby
<lemur>
the worse more like it
<katlogic>
RubyPanther: It is slow for gamedev, sadly.
<RubyPanther>
It isn't, but your code probably is. Your code being slow, that part I believe.
<lemur>
as soon as you classify devs as monkies you have a far larger problem
<katlogic>
It is ok for webdev and anything in between.
spyderman4g63 has joined #ruby
qpok_ has joined #ruby
Hamled|Erp has joined #ruby
mattmcclure has joined #ruby
<RubyPanther>
katlogic: Would like a side of derp with your derp?
<lemur>
for every bad dev in a scripting language, it takes two good ones to clean up their mess.
<Nilium>
Ruby is slow relative to X thing, where X is some faster thing.
graft has joined #ruby
graft has joined #ruby
thumpba_ has joined #ruby
mnemon2 has joined #ruby
<Nilium>
Though you'll have to decide what faster means 'cause I gots me some Baldur's Gate 2.
devyn_ has joined #ruby
Cope__ has joined #ruby
<RubyPanther>
Ruby is written in C, and runs at _exactly_the_same_speed_ as other C code.
<katlogic>
lemur: That much is true. The monkeys is literally "hiring exceptionally bad devs who learn lua by giving em php examples"
<lemur>
Language execution speed will rarely be the bottleneck from what I've seen for most people.
<katlogic>
Simply because they knew only php before.
<Nilium>
RubyPanther: That argument needs to die in a fire, thanks.
spyderman4g63 has quit [Remote host closed the connection]
erichmenge_ has joined #ruby
spinx_ has joined #ruby
<katlogic>
It's rare to see RubyPanther trolling like that :)
spyderman4g63 has joined #ruby
wallerdev_ has joined #ruby
<lemur>
eh, I have him muted for a reason.
<Nilium>
No, he trots that one out every time.
<RubyPanther>
Nilium: I dunno, we tried for years to burn them in a fire whenever they said "herp-a-derp, Ruby slow" but they kept coming
chrishough_ has joined #ruby
wildroman2 has joined #ruby
<katlogic>
But I agree to his point, CSS is turing complete and written in C. Thus CSS is as fast as machine code.
eka has quit [Ping timeout: 240 seconds]
<RubyPanther>
CSS isn't slow either, that would be an equally stupid claim.
<Eiam>
does it ever bother anyone else that you write "binding.remote_pry" but to connect to it, you write "pry-remote" ?
<Nilium>
CSS isn't fast either.
<Nilium>
It's static.
<Eiam>
not only are they inverted, but one uses a - and one uses a _
<Mon_Ouie>
You can invert them
drowl_ has joined #ruby
erichmenge has quit [Ping timeout: 240 seconds]
ryotarai has quit [Ping timeout: 240 seconds]
edgarjs_afk has quit [Ping timeout: 240 seconds]
yekta has quit [Read error: Connection reset by peer]
yekta_ is now known as yekta
ryotarai_ is now known as ryotarai
erichmenge_ is now known as erichmenge
<katlogic>
Nilium: CSS3+HTML5 rule 101 :)
RaCx has quit [Ping timeout: 240 seconds]
agarie has quit [Ping timeout: 240 seconds]
<lemur>
Mon_ouie wrote it, though you may have better luck in the #Pry channel for more SNR
sweeper has quit [Ping timeout: 240 seconds]
Rydekull has quit [Ping timeout: 240 seconds]
QKO has quit [Ping timeout: 240 seconds]
todor has quit [Ping timeout: 240 seconds]
Muz has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
Hobogrammer has quit [Ping timeout: 255 seconds]
<Nilium>
katlogic: Well you'd think it was rule 101 but then the web developers keep proving I have far too high standards for web developers. >_>
<katlogic>
Farewell javascript, I for one welcome our table cell web scripting CSS overlords.
kevinfagan_ has joined #ruby
elaptic`` has joined #ruby
Some-body_ has joined #ruby
jonathanwallace_ has joined #ruby
<Eiam>
Mon_Ouie: sure by modifying the code I could, or making an alias for remote_pry on the shell etc
Affix_ has joined #ruby
Affix_ has quit [Changing host]
Affix_ has joined #ruby
<lemur>
He means there already is one
<lemur>
it's mentioned in the readme
alec-c4 has quit [Ping timeout: 240 seconds]
alienaut has quit [Ping timeout: 240 seconds]
volk_ has quit [Ping timeout: 240 seconds]
SBoolean has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Ping timeout: 240 seconds]
Creeves has quit [Ping timeout: 240 seconds]
jonathanwallace has quit [Ping timeout: 240 seconds]
pr00t has quit [Ping timeout: 240 seconds]
cout has quit [Ping timeout: 240 seconds]
saltsa has quit [Ping timeout: 240 seconds]
drago777 has quit [Ping timeout: 240 seconds]
stormy3 has quit [Ping timeout: 240 seconds]
volk__ is now known as volk_
m8 has quit [Ping timeout: 240 seconds]
crazymykl has quit [Ping timeout: 240 seconds]
wald0 has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 240 seconds]
Arkaniad|Laptop has quit [Ping timeout: 240 seconds]
ClarusCogitatio has quit [Ping timeout: 240 seconds]
Affix has quit [Ping timeout: 240 seconds]
jimeh has quit [Ping timeout: 240 seconds]
mnemon has quit [Ping timeout: 240 seconds]
DarthGandalf has quit [Ping timeout: 240 seconds]
spinx has quit [Ping timeout: 240 seconds]
elaptics`away has quit [Ping timeout: 240 seconds]
yxhuvud has quit [Ping timeout: 240 seconds]
zaargy has quit [Ping timeout: 240 seconds]
cescalante has quit [Ping timeout: 240 seconds]
davzie has quit [Ping timeout: 240 seconds]
chrishough has quit [Ping timeout: 240 seconds]
thalweg has quit [Ping timeout: 240 seconds]
kevinfagan has quit [Ping timeout: 240 seconds]
patronus_ has quit [Ping timeout: 240 seconds]
chrishough_ is now known as chrishough
maestrojed has quit [Ping timeout: 240 seconds]
yacks has quit [Ping timeout: 240 seconds]
Guest49985 has quit [Ping timeout: 240 seconds]
baweaver has quit [Ping timeout: 240 seconds]
devyn has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 240 seconds]
Hamled has quit [Ping timeout: 240 seconds]
Cope has quit [Ping timeout: 240 seconds]
qpok has quit [Ping timeout: 240 seconds]
yeticry has quit [Ping timeout: 240 seconds]
thumpba has quit [Ping timeout: 240 seconds]
DrOwl has quit [Ping timeout: 240 seconds]
banjara has quit [Ping timeout: 240 seconds]
adamholt has quit [Ping timeout: 240 seconds]
razum2um has quit [Ping timeout: 240 seconds]
wallerdev has quit [Ping timeout: 240 seconds]
wallerdev_ is now known as wallerdev
Some-body_ is now known as DarthGandalf
drowl_ is now known as DrOwl
Affix_ is now known as Affix
<Eiam>
lemur: I'm staring at the readme..
MrDoctor has joined #ruby
<Eiam>
you connect with pry-remote, you bind with binding.remote_pry is the sum of the readme
yacks has joined #ruby
<Mon_Ouie>
Well binding.pry_remote also exists anyway
<lemur>
probably also want to specify that you need to put your IP on there to connect remotely.
spyderman4g63 has quit [Ping timeout: 244 seconds]
<Eiam>
don't have to from within the VM anyway
<lemur>
Granted
<Eiam>
Mon_Ouie: any handy way to "continue" without losing your remote session and having to reconnect?
<lemur>
I use it on occasion to debug across a building.
<Eiam>
Mon_Ouie: e.g. if you are cycling through a root
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lemur>
There are pry sessions now that might help
<Eiam>
lemur: nginix and passenger unfortunately run my app so I have to use pry_remote anyway to debug it since I can't just use like bundle exec padrino s to start a little mini server
<lemur>
yeah
mtsmith85 has joined #ruby
diegoviola has quit [Ping timeout: 248 seconds]
<Mon_Ouie>
Eiam: You mean exiting and then re-running the pry-remote command?
<Eiam>
Mon_Ouie: err cycling through a loop
<Eiam>
yeah
razieliyo has quit [Ping timeout: 244 seconds]
<Eiam>
like i hit "c" and it kicks me out, but its already waiting for me again on the next iteration of the loop
<Eiam>
so i gotta reenter the session
mijicd has quit [Ping timeout: 248 seconds]
bradhe has quit [Ping timeout: 272 seconds]
<Mon_Ouie>
There's an issue with DRb and multiple connections from the same process
<lemur>
might look into pry-remote-em
adamholt has joined #ruby
<Eiam>
I normally just do conditional bindings but, sometimes I literally just need to look through the data in the loop to see what I'm looking for
ClarusCogitatio has joined #ruby
eka has joined #ruby
stytown has quit [Quit: stytown]
mijicd has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sent-hil>
what's the best way to read just the last line of a very big file in ruby? i was using File#seek(-1, IO::END), which returns last -1 chars, but I don't know how to get the last line
roombadaboomba has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
mtsmith85 has quit [Quit: mtsmith85]
<roombadaboomba>
quick question about case, can someone help me
hobodave has quit [Quit: Computer has gone to sleep.]
hobodave has joined #ruby
hobodave has quit [Client Quit]
<Mon_Ouie>
Probably not if you don't ask your question
zkay11 has joined #ruby
Xeago has quit [Remote host closed the connection]
djbkd has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 240 seconds]
DrShoggoth has quit [Quit: Leaving]
jottr_ has quit [Ping timeout: 248 seconds]
testcore has joined #ruby
replay has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
touzin has joined #ruby
phinfonet has quit []
djbkd has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
mjsmith2 has quit [Remote host closed the connection]
shevy has joined #ruby
vifino has quit [Quit: Ze Cat now leaves...]
touzin has left #ruby [#ruby]
ephemerian has quit [Quit: Leaving.]
AlexRussia has joined #ruby
shevy has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
<george2>
In Python, functions that don't need to be in a class can just be used directly from a module (which is not the same as Ruby's modules). Is Ruby the same way, or should (for the most part) all methods be inside a class?
fgo has joined #ruby
mjsmith2 has joined #ruby
Ariadeno has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
benzrf is now known as benzrf|offline
CorpusCallosum has quit [Ping timeout: 252 seconds]
djbkd has quit [Remote host closed the connection]
mgorbach has joined #ruby
shevy has joined #ruby
j_mcnally has quit [Ping timeout: 272 seconds]
shevy has quit [Client Quit]
northfurr has joined #ruby
djbkd has joined #ruby
mgorbach has quit [Client Quit]
Atttwww has joined #ruby
abdulsattar has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
mgorbach has joined #ruby
troulouliou_dev has joined #ruby
mgorbach has quit [Remote host closed the connection]
codeurge has joined #ruby
mgorbach has joined #ruby
northfurr has quit [Ping timeout: 240 seconds]
LadyRainicorn has quit [Ping timeout: 264 seconds]
Rubass has joined #ruby
<Rubass>
How come ruby has a ruby icon in my IRC?
mgorbach has quit [Client Quit]
mgorbach has joined #ruby
inkblots has quit [Remote host closed the connection]
charliesome has joined #ruby
Rubass has quit [Changing host]
Rubass has joined #ruby
djbkd has quit [Remote host closed the connection]
<Rubass>
Seems like a feature in limechat lol
yubrew has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
dorei has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
<kfs>
ok i got wget to work by using curl instead.
danijoo has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
<bricker`work>
george2: example?
danijoo has joined #ruby
<bricker`work>
george2: You can call YourModule.some_method if the method is defined as `self.some_method`. I see this often for "utility modules", although it's not great OOP (then again, who cares :D )
yubrew has quit [Ping timeout: 240 seconds]
johnmolina has quit [Remote host closed the connection]
nmokru has quit [Quit: nmokru]
<george2>
bricker`work: well, in Python not everything should be OOP. I'm just wondering what ruby "best practice" is.
IceDragon has quit [Ping timeout: 244 seconds]
nmokru has joined #ruby
<george2>
the "utility modules" you mention are probably about the same as I'm thinking.
johnmolina has joined #ruby
IceDragon has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<george2>
Functions that just have no need for object orientation. They are related, and share some information, so they could be put in a class. I'm just not sure if they *should* be.
djbkd has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
<george2>
Modules in ruby seem like they're used more as java Interfaces than Python modules. Is that example "correct," idiomatic usage?
bamyyyooo14335 has joined #ruby
hermanmunster has joined #ruby
<bricker`work>
george2: the example I sent is correct and idiomatic depending on who you ask (some would prefer to open the String class and add instance methods "whisper" and "yell")
<boom>
bricker`work, thanks for that example.
johnmolina has quit [Ping timeout: 252 seconds]
<george2>
bricker`work: ok, thanks.
<bricker`work>
george2: I've used modules as pseudo-interfaces before, although you don't really see that often in Ruby
<bricker`work>
george2: modules in ruby are used mostly for a) code organization, and b) code reuse
sunya7a has joined #ruby
<bricker`work>
(in my experience)
<george2>
hm, ok. Maybe the stuff I was reading was out of date, or just plain wrong then.
<george2>
just don't want to form any bad habits, or be writing Pythonic Ruby. :)
<bricker`work>
wallerdev: oh shit you're right, I forgot the retunrs
<george2>
I like strict style guides, makes it easier to collaborate. Also, I've heard rubocop chokes on some things (but again, don't remember where I read that).
<wallerdev>
i disagree on the numbered regex groups in that guide
<bricker`work>
wallerdev: returns *
<wallerdev>
naming variables in regex makes them super hard to read
<wallerdev>
(?<some random text in the middle of my regex>x)
shevy has joined #ruby
<george2>
bricker`work: no fair using bad Python practice and calling it Pythonic. no real Python dev would right such verbose code. :p
hermanmunster has quit [Read error: Connection timed out]
<wallerdev>
much prefer (x)
<george2>
*write
stytown has joined #ruby
qhartman has quit [Remote host closed the connection]