<madprops>
someone is having some problem with parsing some javascript files' ` (template tags) with rake
<madprops>
is that a common problem? would simply upgrading to a new rake fix it?
workmad3 has joined #ruby
jrabe has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
chocoelho has joined #ruby
jottr has quit [Quit: WeeChat 1.9.1]
mtkd has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
guardianx has quit []
ramfjord has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
<apeiros>
madprops: why'd you parse javascript files with rake?
<apeiros>
rake runs ruby scripts, not javascript
<madprops>
apeiros, im not really sure. But someone is having trouble with it for some reason "msg.js uses the \` character, which does not work too well with
<madprops>
diaspora’s rake. "
mtkd has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
madprops: well, without more information, this makes no sense.
PaulCapestany has quit [Quit: .]
<dminuoso>
apeiros: You should get some sleep.
<dminuoso>
It's late in Switzerland.
JinJin has joined #ruby
cdg has joined #ruby
<apeiros>
dminuoso: very much unlike your country? :-p
<dminuoso>
;-)
GodFather has joined #ruby
blackmesa1 has joined #ruby
cschneid_ has joined #ruby
<JinJin>
does anyone here have experience with TCP connections? I have a server that accepts connections using accept. I can write to sockets when I call TCPSocket.new(), but when I try to write to a socket that I've accepted, it doesn't work. Is this behavior expected?
<apeiros>
define "doesn't work"
cdg has quit [Ping timeout: 248 seconds]
PaulCapestany has joined #ruby
<JinJin>
as in the other socket does not receive anything
cagomez has quit [Remote host closed the connection]
<apeiros>
?code JinJin
<ruby[bot]>
JinJin: We can't help you without your code, please post it to https://gist.github.com
cagomez has joined #ruby
<JinJin>
its pretty long but alright
cagomez has quit [Remote host closed the connection]
<apeiros>
well, make a simple reproducible example from it
<dminuoso>
JinJin: And let this be the last day you have heard about $ and global variables.
<dminuoso>
Feel free to forget they existed.
<JinJin>
ok thanks
<JinJin>
If I have a = TCPServer.new someportnumber. And I receive a socket for instance: socket = a.accept. Can I write to it? As in socket.write(...)
cschneid_ has quit [Ping timeout: 248 seconds]
<dminuoso>
JinJin: Make a testcase.
<JinJin>
I've been doing so with my code, I can only receive or establish connections. I can't write to clients that I've accepted
cagomez has joined #ruby
<JinJin>
Unless the behavior is unexpected, then I assume I'm doing something wrong
<dminuoso>
apeiros: do we have a testcase factoid?
<apeiros>
moment, busy right now
ta__ has quit [Ping timeout: 276 seconds]
GodFather has quit [Ping timeout: 250 seconds]
c0ncealed has quit [Remote host closed the connection]
<apeiros>
dminuoso: a list of all factoids is live on the ruby-community.com website
<apeiros>
JinJin: yes, you can write to a socket you created with a_tcp_server.accept
<JinJin>
oh
<JinJin>
ok thanks. For whatever reason I can't
<apeiros>
as for your code sample - yeah, no. not gonna read that much code. write a simple tcpserver, go from there.
<apeiros>
or isolate your problem before
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
and +1 re globals
PaulCapestany has quit [Read error: Connection reset by peer]
<JinJin>
Thanks though!
PaulCapestany has joined #ruby
hanmac has quit [Ping timeout: 276 seconds]
troys_ has quit [Ping timeout: 240 seconds]
ogres has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
orbyt_ has joined #ruby
GodFather has joined #ruby
chocoelho has quit [Ping timeout: 240 seconds]
Sembei has quit [Quit: WeeChat 2.1-dev]
PaulCapestany has quit [Quit: .]
<apeiros>
JinJin: I partially read your code. I don't see your code to create a socket actually being called.
<apeiros>
also I don't see you writing to a socket accepted by the server except for when you receive data on it before
<apeiros>
IMO make sure your assumptions are actually correct. that you do actually create a socket, that the server actually accepts a connection, that you actually write from the client side, etc.
HoloIRCUser has quit [Read error: Connection reset by peer]
<JinJin>
yea, i saved my output to a file
guardianx has joined #ruby
shinnya has quit [Ping timeout: 248 seconds]
<JinJin>
apeiros: In my code on line 319, i accept incoming connections and save them on line 368. But in line 405 when I write, nodes I've accepted don't receive anything
<JinJin>
I'll just paste my output below that
mtkd has quit [Ping timeout: 240 seconds]
nadir has quit [Quit: Connection closed for inactivity]
hanmac has joined #ruby
PaulCapestany has joined #ruby
TomyLobo has quit [Ping timeout: 246 seconds]
dviola has joined #ruby
selim has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
<apeiros>
JinJin: try `Thread.abort_on_exception = true` at the start of your code
<apeiros>
I wouldn't be surprised if one of your threads just silently crashes.
<JinJin>
apeiros: Thanks, will try that!
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
selim has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnufied has quit [Remote host closed the connection]
GodFather has quit [Client Quit]
GodFather has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
BTRE has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
BTRE has quit [Client Quit]
kirun_ has quit [Quit: Konversation terminated!]
GodFather has quit [Remote host closed the connection]
eckhardt has joined #ruby
GodFather has joined #ruby
milardov_ has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
pilne has joined #ruby
csk157 has quit [Ping timeout: 248 seconds]
jackjackdripper has joined #ruby
milardov_ has quit [Ping timeout: 260 seconds]
techn1cs has joined #ruby
techn1cs has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
Dimik has quit [Ping timeout: 250 seconds]
orbyt_ has joined #ruby
nexustrap has quit [Quit: nexustrap]
ixti has quit [Quit: WeeChat 2.0]
jackjackdripper has quit [Ping timeout: 260 seconds]
cagomez has quit [Remote host closed the connection]
guardianx has quit []
cdg has joined #ruby
cschneid_ has joined #ruby
nexustrap has joined #ruby
madprops has left #ruby ["Leaving"]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 240 seconds]
nexustrap has quit [Client Quit]
eightlimbed has joined #ruby
marr has quit [Ping timeout: 268 seconds]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
psmolen has quit [Ping timeout: 255 seconds]
psmolen has joined #ruby
Technodrome has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
cschneid_ has quit [Ping timeout: 240 seconds]
iMadper has quit [Read error: Connection reset by peer]
iMadper` has joined #ruby
nunchuck has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
chocoelho has joined #ruby
John____ has quit [Remote host closed the connection]
workmad3 has joined #ruby
dviola has quit [Quit: WeeChat 2.0]
workmad3 has quit [Ping timeout: 248 seconds]
mjolnird has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jnyw has quit [Quit: WeeChat 2.0]
milardovich has joined #ruby
chocoelho has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
milardovich has quit [Ping timeout: 268 seconds]
orbyt_ has joined #ruby
cognoscente has joined #ruby
jtdoncas has quit [Changing host]
jtdoncas has joined #ruby
dviola has joined #ruby
mjolnird has quit [Remote host closed the connection]
cognoscente has quit [Ping timeout: 260 seconds]
crova has quit [Remote host closed the connection]
ogres has quit [Quit: Connection closed for inactivity]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d10n-work has quit [Quit: Connection closed for inactivity]
elphe has quit [Ping timeout: 268 seconds]
jxv has quit [Quit: zzz…]
d^sh has quit [Ping timeout: 240 seconds]
d^sh has joined #ruby
Sammichmaker has joined #ruby
Sammichmaker has quit [Changing host]
Sammichmaker has joined #ruby
jxv has joined #ruby
phenom has joined #ruby
elphe has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
ta_ has joined #ruby
mohabaks has joined #ruby
phenom has quit [Max SendQ exceeded]
milardovich has joined #ruby
BTRE has joined #ruby
phenom has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
jxv has quit [Quit: string on the can snapped off]
bkxd has joined #ruby
bkxd_ has joined #ruby
chocoelho has joined #ruby
eightlimbed has quit [Ping timeout: 248 seconds]
milardovich has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 268 seconds]
bkxd_ has quit [Ping timeout: 268 seconds]
bkxd has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
nadir has joined #ruby
bkxd has quit [Client Quit]
Technodrome has joined #ruby
BuildTheRobots has joined #ruby
<BuildTheRobots>
good evening people. If i have an array including a negative number, how can I have a.max do the sensible thing (in this case return +7, not -10 as the largest number)
<BuildTheRobots>
a=[1,7,-10]; puts a.max
<BuildTheRobots>
oh, ok, a.values.max, ok, i'm an idiot :)
mohabaks has quit [Ping timeout: 248 seconds]
kfpratt has joined #ruby
shinnya has joined #ruby
RougeT430 has quit [Ping timeout: 276 seconds]
pilne has quit [Quit: Quitting!]
NeverTired has joined #ruby
nofxx_ has joined #ruby
nofxx has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
milardovich has joined #ruby
Sammichmaker has quit [Quit: Leaving]
bmurt has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
AJA4350 has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
phenom is now known as DanielShaver
jenrzzz has quit [Ping timeout: 248 seconds]
chocoelho has quit [Quit: chocoelho]
cadillac_ has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jnix has quit [Changing host]
jnix has joined #ruby
cadillac_ has joined #ruby
workmad3 has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
milardovich has quit [Remote host closed the connection]
jnyw has joined #ruby
bkxd has joined #ruby
cdg has joined #ruby
hanmac1 has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
cschneid_ has quit [Remote host closed the connection]
<baweaver>
I hid a book list up there a while back
<BuildTheRobots>
ah ace, thanks you.
cschneid_ has quit [Ping timeout: 248 seconds]
<BuildTheRobots>
for contect, i got about 5 steps into a codeweavers learning ruby course and then got distracted actually tring to use it... so I'm kinda blundering forward solving adventofcode problems without yet understanding objects o.0
cschneid_ has joined #ruby
milardovich has joined #ruby
elphe has joined #ruby
cschneid_ has quit [Ping timeout: 248 seconds]
fyrril has quit [Read error: Connection reset by peer]
jxv has joined #ruby
oetjenj has joined #ruby
dreamthese has quit [Remote host closed the connection]
eightlimbed has joined #ruby
dreamthese has joined #ruby
guardianx has joined #ruby
mohabaks has joined #ruby
mohabaks has quit [Client Quit]
mohabaks has joined #ruby
cognoscente has joined #ruby
eightlimbed has quit [Ping timeout: 248 seconds]
eightlimbed has joined #ruby
enterprisey has quit [Quit: Leaving]
cognoscente has quit [Ping timeout: 240 seconds]
eightlimbed has quit [Ping timeout: 248 seconds]
eightlimbed has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
<baweaver>
BuildTheRobots: well feel free to ask whatever
<baweaver>
First time coding or have you tried a few languages before?
mson has quit [Quit: Connection closed for inactivity]
milardovich has quit [Remote host closed the connection]
<BuildTheRobots>
i do bits of ops, so previously have been hacking scripts in perl, but i'm the first to point out i'm not a dev. A friend is using RoR so it seemed like a good excuse to learn ruby. so far i'm quite enjoying it
quobo has quit [Quit: Connection closed for inactivity]
<BuildTheRobots>
not sure if you've seen http://adventofcode.com/2017 or not. last year I found it substantially harder compared to this year armed with nothing but a third of a ruby tutorial ;)
elphe has quit [Ping timeout: 248 seconds]
eightlimbed has quit [Ping timeout: 248 seconds]
DTZUZO has joined #ruby
jhill_ has joined #ruby
Technodrome has quit [*.net *.split]
Asher has quit [*.net *.split]
orbyt_ has quit [*.net *.split]
iMadper` has quit [*.net *.split]
selim has quit [*.net *.split]
tcopeland has quit [*.net *.split]
spectrum has quit [*.net *.split]
yokel has quit [*.net *.split]
minimalism has quit [*.net *.split]
Eiam has quit [*.net *.split]
lucas has quit [*.net *.split]
NL3limin4t0r has quit [*.net *.split]
chmurifree has quit [*.net *.split]
Xeago has quit [*.net *.split]
n13z has quit [*.net *.split]
href has quit [*.net *.split]
adaedra has quit [*.net *.split]
hahuang65 has quit [*.net *.split]
MrBismuth has quit [*.net *.split]
Authenticator has quit [*.net *.split]
utkarsh_ has quit [*.net *.split]
dhollinger has quit [*.net *.split]
MrSparkle has quit [*.net *.split]
ByronJohnson has quit [*.net *.split]
Lyubo1 has quit [*.net *.split]
cpallares has quit [*.net *.split]
fullstack has quit [*.net *.split]
segy has quit [*.net *.split]
vircung has quit [*.net *.split]
Caius has quit [*.net *.split]
ar has quit [*.net *.split]
mikeiniowa has quit [*.net *.split]
irick has quit [*.net *.split]
ged has quit [*.net *.split]
Dark_Arc has quit [*.net *.split]
Guest29916 has quit [*.net *.split]
marienz has quit [*.net *.split]
guardian has quit [*.net *.split]
dtcristo has quit [*.net *.split]
zalipuha[m] has quit [*.net *.split]
zack6849 has quit [*.net *.split]
voxxit has quit [*.net *.split]
jxv has quit [*.net *.split]
NeverTired has quit [*.net *.split]
jrabe has quit [*.net *.split]
bradleyprice has quit [*.net *.split]
postmodern has quit [*.net *.split]
zapata has quit [*.net *.split]
scott4000 has quit [*.net *.split]
DarkBushido has quit [*.net *.split]
cschneid has quit [*.net *.split]
jtperreault has quit [*.net *.split]
larissa has quit [*.net *.split]
G has quit [*.net *.split]
kent\n has quit [*.net *.split]
caw__ has quit [*.net *.split]
wsmoak has quit [*.net *.split]
justizin has quit [*.net *.split]
peteretep has quit [*.net *.split]
russt has quit [*.net *.split]
endemic has quit [*.net *.split]
thinkpad has quit [*.net *.split]
swgillespie has quit [*.net *.split]
swat2 has quit [*.net *.split]
infernix has quit [*.net *.split]
kapowaz has quit [*.net *.split]
ewilliam has quit [*.net *.split]
pwillard has quit [*.net *.split]
darthThorik has quit [*.net *.split]
ablackack_ has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
mitchellvanw has quit [*.net *.split]
inukshuk has quit [*.net *.split]
mcr1 has quit [*.net *.split]
ineb has quit [*.net *.split]
celine_ has quit [*.net *.split]
Qommand0r has quit [*.net *.split]
Jicemo_ has quit [*.net *.split]
cajone has quit [*.net *.split]
aef_ has quit [*.net *.split]
twe4ked has quit [*.net *.split]
__main__ has quit [*.net *.split]
tuelz has quit [*.net *.split]
j00n has quit [*.net *.split]
hanmac1 has quit [*.net *.split]
cpruitt has quit [*.net *.split]
oleo has quit [*.net *.split]
sonOfRa has quit [*.net *.split]
rann has quit [*.net *.split]
dman[m] has quit [*.net *.split]
watzon has quit [*.net *.split]
velu_aon[m] has quit [*.net *.split]
nuck has quit [*.net *.split]
jnix has quit [*.net *.split]
kernelPaniq has quit [*.net *.split]
gigetoo has quit [*.net *.split]
Flonk has quit [*.net *.split]
harmaahylje has quit [*.net *.split]
ghormoon has quit [*.net *.split]
Biohazard has quit [*.net *.split]
eb0t has quit [*.net *.split]
lxsameer has quit [*.net *.split]
Cyrus has quit [*.net *.split]
drbrain has quit [*.net *.split]
LoRez has quit [*.net *.split]
rcs has quit [*.net *.split]
WhereIsMySpoon has quit [*.net *.split]
tris has quit [*.net *.split]
Prira has quit [*.net *.split]
devn has quit [*.net *.split]
Vashy has quit [*.net *.split]
ElderFain has quit [*.net *.split]
Gnubie_ has quit [*.net *.split]
KramerC has quit [*.net *.split]
mjuhl has quit [*.net *.split]
oblique has quit [*.net *.split]
pocketprotector has quit [*.net *.split]
joes has quit [*.net *.split]
mclee has quit [*.net *.split]
dyyylan has quit [*.net *.split]
zachary12 has quit [*.net *.split]
tsul has quit [*.net *.split]
Sou|cuttr has quit [*.net *.split]
bayed has quit [*.net *.split]
Koshian has quit [*.net *.split]
webhat has quit [*.net *.split]
M107262[m] has quit [*.net *.split]
turt2live has quit [*.net *.split]
Guest77835 has quit [*.net *.split]
Takumo has quit [*.net *.split]
jxf has quit [*.net *.split]
vqrs has quit [*.net *.split]
ahrs has quit [*.net *.split]
dcluna has quit [*.net *.split]
ShekharReddy has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
uptime has quit [*.net *.split]
jhill has quit [*.net *.split]
Meow-J has quit [*.net *.split]
Guest9063 has quit [*.net *.split]
justache has quit [*.net *.split]
beccamorgan has quit [*.net *.split]
dupondje has quit [*.net *.split]
quiller has quit [*.net *.split]
Zarthus has quit [*.net *.split]
nausea- has quit [*.net *.split]
bathtub_shark has quit [*.net *.split]
gil_ has quit [*.net *.split]
bronson_ has quit [*.net *.split]
CrazyEddy has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
naquad has quit [*.net *.split]
hinbody has quit [*.net *.split]
reu has quit [*.net *.split]
BackEndCoder has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
Guest32854 has quit [*.net *.split]
pppktz has quit [*.net *.split]
levifig has quit [*.net *.split]
bkxd has quit [*.net *.split]
bmurt has quit [*.net *.split]
DanielShaver has quit [*.net *.split]
dviola has quit [*.net *.split]
brucebag has quit [*.net *.split]
rupam123456 has quit [*.net *.split]
c0ncealed has quit [*.net *.split]
oz has quit [*.net *.split]
sagax has quit [*.net *.split]
dinfuehr has quit [*.net *.split]
techn1cs has quit [*.net *.split]
moei has quit [*.net *.split]
konsolebox has quit [*.net *.split]
mattp_ has quit [*.net *.split]
wnd has quit [*.net *.split]
m4rCsi has quit [*.net *.split]
Norm has quit [*.net *.split]
QualityAddict has quit [*.net *.split]
jsaak has quit [*.net *.split]
z3uS has quit [*.net *.split]
flori has quit [*.net *.split]
edwardly has quit [*.net *.split]
ltp has quit [*.net *.split]
seitensei has quit [*.net *.split]
chrisarcand has quit [*.net *.split]
fmccann has quit [*.net *.split]
ikopico has quit [*.net *.split]
nathani has quit [*.net *.split]
personofinterest has quit [*.net *.split]
roger_rabbit has quit [*.net *.split]
teej has quit [Max SendQ exceeded]
justache_ has joined #ruby
Meow-J_ has joined #ruby
yokel has joined #ruby
jonjits[m] has quit [Ping timeout: 252 seconds]
aagdbl[m] has quit [Ping timeout: 243 seconds]
shinnya has quit [Ping timeout: 240 seconds]
kua[m] has quit [Ping timeout: 245 seconds]
KevinMGranger has quit [Ping timeout: 245 seconds]
haylon has quit [Ping timeout: 245 seconds]
lasenna[m] has quit [Ping timeout: 257 seconds]
aviraldg has quit [Ping timeout: 257 seconds]
Tagami[m] has quit [Ping timeout: 257 seconds]
Hanma[m] has quit [Ping timeout: 250 seconds]
erciccione_[m] has quit [Ping timeout: 250 seconds]
torarne has quit [Ping timeout: 252 seconds]
yana[m] has quit [Ping timeout: 240 seconds]
kculpis has quit [Remote host closed the connection]
NeverTired has joined #ruby
itmerc[m] has quit [Ping timeout: 251 seconds]
gokul_mr[m] has quit [Ping timeout: 252 seconds]
Matt[m]2 has quit [Ping timeout: 264 seconds]
astronavt[m] has quit [Ping timeout: 264 seconds]
bokayio has quit [Ping timeout: 240 seconds]
oz has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
Giphy[m] has quit [Ping timeout: 276 seconds]
d^sh has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
DanielShaver has joined #ruby
techn1cs has joined #ruby
bmurt has joined #ruby
lele has joined #ruby
quiller has joined #ruby
c0ncealed has joined #ruby
Kilo`byte has joined #ruby
ahrs has joined #ruby
rupam123456 has joined #ruby
gil_ has joined #ruby
dcluna has joined #ruby
konsolebox has joined #ruby
beccamorgan has joined #ruby
Liothen has joined #ruby
ShekharReddy has joined #ruby
sagax has joined #ruby
jxf has joined #ruby
BackEndCoder has joined #ruby
naquad has joined #ruby
yosafbridge has joined #ruby
Takumo has joined #ruby
pppktz has joined #ruby
hinbody has joined #ruby
vqrs has joined #ruby
bathtub_shark has joined #ruby
dupondje has joined #ruby
Guest77835 has joined #ruby
balo has joined #ruby
reu has joined #ruby
Guest32854 has joined #ruby
wnd has joined #ruby
Zarthus has joined #ruby
CrazyEddy has joined #ruby
m4rCsi has joined #ruby
levifig has joined #ruby
brucebag has joined #ruby
uptime has joined #ruby
mattp_ has joined #ruby
nausea- has joined #ruby
bronson_ has joined #ruby
Guest9063 has joined #ruby
veloutin has joined #ruby
pabs has joined #ruby
surrounder has joined #ruby
chaos95 has joined #ruby
nikkyjr has joined #ruby
jaredrhine has joined #ruby
TvL2386 has joined #ruby
rgs has joined #ruby
spider-mario has joined #ruby
bokayio has joined #ruby
Guest9063 has quit [Max SendQ exceeded]
ShekharReddy has quit [Max SendQ exceeded]
uptime has quit [Max SendQ exceeded]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<BuildTheRobots>
hmm, is there a fuzzy equivalent of include? eg so it returns true: a=["foobar"]; a.include? 'foo'
jhill_ has quit [Changing host]
Meow-J_ has joined #ruby
jhill_ has joined #ruby
Meow-J_ has quit [Changing host]
NeverTired has joined #ruby
justache_ has joined #ruby
justache_ has quit [Changing host]
NeverTired has quit [Changing host]
Guest9063 has joined #ruby
Guest9063 has quit [Changing host]
Guest9063 has joined #ruby
<baweaver>
BuildTheRobots: ever used regex?
ShekharReddy has joined #ruby
oz is now known as Guest50598
zack6849 has joined #ruby
voxxit has joined #ruby
voxxit has quit [Max SendQ exceeded]
<BuildTheRobots>
baweaver: i have, but only with strings
mohabaks has quit [Remote host closed the connection]
BTRE has joined #ruby
pragmatism has joined #ruby
yxhuvud has joined #ruby
dminuoso has joined #ruby
ta_ has joined #ruby
chromis has joined #ruby
nchambers has joined #ruby
psmolen has joined #ruby
|ifei5g00d has joined #ruby
mbr has joined #ruby
esObe has joined #ruby
Barrt has joined #ruby
Jello_Raptor has joined #ruby
nowhere_man has joined #ruby
armando has joined #ruby
miah has joined #ruby
brainslug has joined #ruby
reaVer has joined #ruby
hxegon has joined #ruby
NicolasHov has joined #ruby
fmccann has joined #ruby
iamayam has joined #ruby
chrisarcand has joined #ruby
Nilium has joined #ruby
personofinterest has joined #ruby
PaulePanter has joined #ruby
erlend has joined #ruby
chihhsin has joined #ruby
redondos has joined #ruby
musl_ has joined #ruby
jolamb has joined #ruby
llua has joined #ruby
ryotarai has joined #ruby
Keltia has joined #ruby
nathani has joined #ruby
modin has joined #ruby
kke has joined #ruby
justinmrkva has joined #ruby
ikopico has joined #ruby
seitensei has joined #ruby
exchgr has joined #ruby
g3funk has joined #ruby
jpterry has joined #ruby
jnix has joined #ruby
cpruitt has joined #ruby
drbrain has joined #ruby
oleo has joined #ruby
rcs has joined #ruby
KramerC has joined #ruby
joes has joined #ruby
Prira has joined #ruby
WhereIsMySpoon has joined #ruby
lxsameer has joined #ruby
Biohazard has joined #ruby
ElderFain has joined #ruby
teej has joined #ruby
Gnubie_ has joined #ruby
tris has joined #ruby
ghormoon has joined #ruby
Flonk has joined #ruby
Cyrus has joined #ruby
Vashy has joined #ruby
devn has joined #ruby
sonOfRa has joined #ruby
oblique has joined #ruby
hanmac1 has joined #ruby
harmaahylje has joined #ruby
mjuhl has joined #ruby
gigetoo has joined #ruby
LoRez has joined #ruby
nuck has joined #ruby
kernelPaniq has joined #ruby
rann has joined #ruby
dyyylan has joined #ruby
mclee has joined #ruby
tsul has joined #ruby
zachary12 has joined #ruby
Koshian has joined #ruby
Sou|cuttr has joined #ruby
webhat has joined #ruby
bayed has joined #ruby
pocketprotector has joined #ruby
<baweaver>
The top functions you want to know by heart in Ruby for Enumerable are: map, select, find, and reduce
teej has quit [Changing host]
teej has joined #ruby
ghormoon has quit [Max SendQ exceeded]
teej has quit [Max SendQ exceeded]
ghormoon has joined #ruby
d^sh has joined #ruby
dinfuehr has joined #ruby
Technodrome has joined #ruby
selim has joined #ruby
adaedra has joined #ruby
Eiam has joined #ruby
ar has joined #ruby
n13z has joined #ruby
iMadper` has joined #ruby
SCHAAP137 has joined #ruby
orbyt_ has joined #ruby
NL3limin4t0r has joined #ruby
tcopeland has joined #ruby
chmurifree has joined #ruby
href has joined #ruby
Xeago has joined #ruby
mikeiniowa has joined #ruby
hahuang65 has joined #ruby
Dark_Arc has joined #ruby
MrSparkle has joined #ruby
segy has joined #ruby
djbkd has joined #ruby
Guest29916 has joined #ruby
minimalism has joined #ruby
cpallares has joined #ruby
irick has joined #ruby
Caius has joined #ruby
Asher has joined #ruby
vircung has joined #ruby
MrBismuth has joined #ruby
Authenticator has joined #ruby
guardian has joined #ruby
ged has joined #ruby
ByronJohnson has joined #ruby
dhollinger has joined #ruby
Lyubo1 has joined #ruby
spectrum has joined #ruby
utkarsh_ has joined #ruby
moei has joined #ruby
marienz has joined #ruby
lucas has joined #ruby
fullstack has joined #ruby
<baweaver>
select is the one you'd normally want to use, but it turns out there's another one that's even more applicable in this specific case
<BuildTheRobots>
f = 'foo'; b = 'boo'; print success if %w(foobar).grep(/#{f}/)
elphe has quit [Ping timeout: 250 seconds]
<BuildTheRobots>
>> f = 'foo'; b = 'boo'; print success if %w(foobar).grep(/#{f}/)
<ruby[bot]>
BuildTheRobots: # => undefined local variable or method `success' for main:Object (NameError) ...check link for more (https://eval.in/915725)
<BuildTheRobots>
>> f = 'foo'; b = 'boo'; print "success" if %w(foobar).grep(/#{f}/)
<Papierkorb>
porfavordama: If you can, upgrade to 2.4 - If you can't, if all you need is String#match?, it's easy to implement it yourself. I'm sure there's also a backport gem which does stuff like this, but can't remember its name.
<porfavordama>
Papierkorb: Yes, all I am looking for is to match a certain pattern from a text. :) If I can't upgrade then I will figure out somehow. Thank you for the help :)
guille-moe has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has joined #ruby
blackmesa1 has quit [Ping timeout: 255 seconds]
alfiemax has quit [Remote host closed the connection]
<apeiros>
porfavordama: you can also just use =~ like everybody else
<apeiros>
>> if "string" =~ /in/ then "yes" else "no" end
<porfavordama>
apeiros: Oh, right! I was just thinking to deep haha. Thank you. :)
bkxd has quit [Ping timeout: 248 seconds]
pskosinski_ has quit [Changing host]
pskosinski_ has joined #ruby
pskosinski_ has joined #ruby
pskosinski_ is now known as pskosinski
bkxd has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
bkxd has quit [Client Quit]
tomphp has joined #ruby
DTZUZO has joined #ruby
<Papierkorb>
porfavordama: While I like match? more simply because it's a method, the only semantic difference between match? and match/=~ is that match? doesn't set the $~ and $1,$2,.. fake globals
<Papierkorb>
And match? returns truthy instead of the regex match
DTZUZO has quit [Client Quit]
drcode has joined #ruby
drcode has quit [Remote host closed the connection]
<porfavordama>
Papierkorb: Yes, I just needed the truthy. So, also include? could be the answer.
<apeiros>
s/because it's a method/because it's a named method/
<apeiros>
since =~ is a method too
<Papierkorb>
porfavordama: #include? only works for strings. If that's good enough for you, it's what I'd use
drcode has joined #ruby
leitz has joined #ruby
blackmesa1 has joined #ruby
<porfavordama>
Papierkorb: Yes, it is enough for now. I just fancied using match? haha.
uZiel has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
Axy has quit [Ping timeout: 240 seconds]
uZiel has quit [Ping timeout: 248 seconds]
d_kam has quit [Quit: Be back later ...]
AJA4350 has quit [Ping timeout: 248 seconds]
AJA4351 has joined #ruby
AJA4351 is now known as AJA4350
kitsunenokenja has joined #ruby
Sammichmaker has quit [Ping timeout: 248 seconds]
vee__ has quit [Ping timeout: 248 seconds]
zautomata has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest53825 has quit [Ping timeout: 250 seconds]
zautomata has quit [Remote host closed the connection]
AJA4350 has quit [Ping timeout: 260 seconds]
halt has joined #ruby
halt is now known as Guest19799
d_kam has joined #ruby
uZiel has joined #ruby
miskatonic has joined #ruby
AJA4350 has joined #ruby
blackmesa1 has quit [Ping timeout: 258 seconds]
d_kam has quit [Ping timeout: 260 seconds]
AJA4350 has quit [Client Quit]
alfiemax has joined #ruby
vee__ has joined #ruby
ramfjord has joined #ruby
zautomata has joined #ruby
csk157 has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
silvermine has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
AJA4350 has joined #ruby
d_kam has joined #ruby
csk157 has quit [Ping timeout: 248 seconds]
blackmesa1 has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JustASlacker has quit [Ping timeout: 248 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d_kam has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RickHull has quit [Ping timeout: 260 seconds]
d_kam has joined #ruby
miskatonic has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
workmad3 has joined #ruby
cschneid_ has joined #ruby
miskatonic has joined #ruby
alfiemax has joined #ruby
d_kam has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 268 seconds]
nadir has joined #ruby
blackmesa1 has quit [Ping timeout: 255 seconds]
zautomata has quit [Ping timeout: 260 seconds]
mahlon has quit [Ping timeout: 240 seconds]
mahlon has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
d_kam has joined #ruby
d_kam has quit [Client Quit]
d_kam has joined #ruby
csk157 has joined #ruby
cadillac_ has joined #ruby
guille-moe has joined #ruby
aScottishBoat has joined #ruby
csk157 has quit [Ping timeout: 240 seconds]
guille-moe has quit [Ping timeout: 240 seconds]
aScottishBoat has quit [Read error: Connection reset by peer]
csk157 has joined #ruby
banisterfiend has joined #ruby
p0p0pr37 has quit [Remote host closed the connection]
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
p0p0pr37 has joined #ruby
qqmash has joined #ruby
p0p0pr37 has quit [Remote host closed the connection]
qqmash has quit [Max SendQ exceeded]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nexustrap has joined #ruby
d_kam has quit [Quit: Be back later ...]
d_kam has joined #ruby
sailfin has joined #ruby
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Read error: Connection reset by peer]
p0p0pr37 has joined #ruby
sailfin has quit [Client Quit]
shinnya has quit [Ping timeout: 248 seconds]
sailfin has joined #ruby
mikeiniowa has quit [Remote host closed the connection]
miskatonic has quit [Remote host closed the connection]
mikeiniowa has joined #ruby
cpruitt has quit [Quit: cpruitt]
tsglove has quit [Remote host closed the connection]
tsglove has joined #ruby
claudiuinberlin has joined #ruby
zautomata has joined #ruby
DLSteve has joined #ruby
Derperpe- has quit [Quit: Peace out]
Derperperd has joined #ruby
skweek has joined #ruby
kozrar has quit [Quit: Leaving]
Derperperd has quit [Changing host]
Derperperd has joined #ruby
alfiemax has joined #ruby
uZiel has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 255 seconds]
banisterfiend has joined #ruby
uZiel has joined #ruby
d_kam has quit [Quit: Be back later ...]
d_kam has joined #ruby
sameerynho has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Ping timeout: 240 seconds]
quobo has joined #ruby
Ltem has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
miskatonic has joined #ruby
d_kam has quit [Quit: Be back later ...]
d_kam has joined #ruby
alex`` has quit [Quit: WeeChat 1.9.1]
alex`` has joined #ruby
nofxx__ has joined #ruby
nofxx_ has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
spectrum has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
jxv has joined #ruby
milardovich has joined #ruby
iMadper` has quit [Ping timeout: 248 seconds]
iMadper` has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
d_kam has quit [Quit: Be back later ...]
d_kam has joined #ruby
sepp2k1 has joined #ruby
workmad3 has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
Barrt has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamarun has joined #ruby
elphe has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 268 seconds]
d_kam has quit [Quit: Be back later ...]
d_kam has joined #ruby
hanmac1 has left #ruby [#ruby]
mtkd has quit [Ping timeout: 240 seconds]
elphe has quit [Ping timeout: 268 seconds]
blackmesa1 has joined #ruby
mtkd has joined #ruby
Barrt has joined #ruby
sepp2k1 has quit [Ping timeout: 248 seconds]
astronavt has joined #ruby
sepp2k has joined #ruby
JustASlacker has joined #ruby
miskatonic has quit [Remote host closed the connection]
apparition has quit [Quit: Bye]
csk157 has quit [Ping timeout: 240 seconds]
<leitz>
"Free at last! Free at last! Thank God almighty I am free at last!"
<leitz>
I've been wanting to read Russ Olsen's "Design Patterns in Ruby" for over a year.
<leitz>
It came in the mail Tuesday but I couldn't open it until the class I'm in was done. Which it now is.
tomphp has joined #ruby
<leitz>
I thihnk my brain will melt but the book should help me with my Character Generator.
marr has joined #ruby
<dminuoso>
Your class bans you from reading books until they're on topic?
plexigras has quit [Ping timeout: 240 seconds]
csk157 has joined #ruby
<leitz>
I have two brain cells; couldn't do the class justice and work on Ruby.
<leitz>
Except where I used Ruby to solve MongoDB questions....
<leitz>
Personal limitation.
NeverTired has joined #ruby
<dminuoso>
Ah.
nowhere_man has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
chocoelho has joined #ruby
RougeT430 has joined #ruby
rainmaker has joined #ruby
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
d_kam has quit [Ping timeout: 268 seconds]
duderonomy has quit [Ping timeout: 250 seconds]
Keat has joined #ruby
dinfuehr has quit [Ping timeout: 276 seconds]
dinfuehr_ has joined #ruby
rainmaker has quit [Read error: Connection reset by peer]
rainmaker has joined #ruby
chocoelho has quit [Ping timeout: 250 seconds]
konsolebox has quit [Ping timeout: 260 seconds]
Technodrome has joined #ruby
_whitelogger has joined #ruby
iamarun has quit [Remote host closed the connection]
<dminuoso>
impermanence: Whatever floats your boat really.
<dminuoso>
Do what makes sense for you.
<impermanence>
dminuoso: kk
<dminuoso>
I've seen so many different layouts, and I had never problem navigating "strange" and "new" concepts each time.
<impermanence>
leitz: thanx
<impermanence>
dminuoso: true dat. I mean, like, java has some norms'n'forms so...sjust curious.
<dminuoso>
impermanence: I found that adhering to specific layouts can be constraining. In our react app for example it took a bit of experimentation what works for us because all the "popular" schemes just felt wrong/
<impermanence>
dminuoso: makes sense to me :)
<dminuoso>
impermanence: Even in our rails app I started breaking common convention because the traditional rails way feels wrong for us.
Keat has left #ruby [#ruby]
cognoscente has quit [Ping timeout: 240 seconds]
<dminuoso>
(We are trying to port our react structure to rails)
<impermanence>
dminuoso: ah, I see.
<leitz>
dminuoso, I think the key is "feels wrong". As a newbie I prefer to stick with the standard. Later, maybe, I'll have enough experience to break the rule when it is good to.
Akispolton has joined #ruby
<dminuoso>
Emphasis on "for us" even. It's really subjective.
Akispolton has quit [Client Quit]
<dminuoso>
leitz: I agree. I didn't consider it with Rails until we demystified Rails. Now we just treat it as a ruby application.
AJA4350 has quit [Remote host closed the connection]
<dminuoso>
But that process took time. :)
<impermanence>
as a newbie I like, tooootally just ask on irc ;)
AJA4350 has joined #ruby
<dminuoso>
impermanence: What kind of application are you writing?
<dminuoso>
It might be useful to look at similar projects and orient yourself using their structure to get started.
mtkd has joined #ruby
<impermanence>
dminuoso: a process monitor that reads from /proc/ and writes to ncurses or something similar.
nowhere_man has quit [Ping timeout: 248 seconds]
<leitz>
Cool.
* leitz
likes system tools.
<impermanence>
yeah and this morning I was all like...wait...maybe I just have a test dir, lib dir, bin dir, etc...but didn't know if there were forms
<impermanence>
So far I copied from the link that leitz posted: lib/ bin/ test/
<dminuoso>
impermanence: ^- that is the common form.
goyox86 has quit [Quit: goyox86]
<dminuoso>
impermanence: also note if you are using `rspec` then test/ is usually called spec/
sammi`_ has quit [Quit: Lost terminal]
<impermanence>
dminuoso: hm. I was putting my minitests in there...I'm...new to ruby testing, lol
<leitz>
Ah, cool. Make a tmp directroy somewhere and then cd there. run : gem unpack json
<dminuoso>
impermanence: Honestly its also fine to mix tests with your code.
nowhere_man has joined #ruby
<leitz>
It unpacks the gem into the directory. You can see how it's done by others. json is an example.
<dminuoso>
impermanence: We do that in our react app.
<impermanence>
oh okay, right on
<dminuoso>
impermanence: With unit testing it makes sense that if you have some api.js that you should also have an api.test.js :-)
<dminuoso>
and it makes absolute sense they should be sitting next to each other. it also makes things like relative file access more sensible..
<dminuoso>
Never worked with minitest, but rspec should be riggable for this.
sammi` has joined #ruby
mson has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
<impermanence>
dminuoso: I'm new to minitest too but spec functionality makes up about a third of its purpose
armyriad has joined #ruby
<impermanence>
minitest: unit, spec, mock, benchmark
<leitz>
Stepping back a second, why are you using Ruby for this?
<dminuoso>
impermanence: rspec is just a name, it has it all. Anyway, not trying to swing you over - it's just that I cant speak for minitest =)
<impermanence>
leitz: I'm a total ruby newb, but I find that when I write actual applications it makes me better, thas all. I am beginning to know *nix fairly well and I was recently looking at process mon tools so I figured I'd just write my own. nuffin special.
<leitz>
impermanence, do you know other coding languages?
<impermanence>
certainly nothing with an SE competency
<leitz>
Okay, let me make a recommendation. I have learned the basics of a few languages.
Dark_Arc has joined #ruby
<leitz>
Ruby is, for me, the most fun. It calls me to code. I can do more in bash and some with PHP, Python, or even a little C or Go. However, Ruby is the only one that really encourages me to code.
<leitz>
As a newbie, I recommend staying with the "standard". At least for a while. People like dminuoso know a heck of a lot more Ruby than I do, and they can step outside the standards when it's best for them.
cdg has joined #ruby
Guest19799 has quit [Quit: ZNC 1.6.5 - http://znc.in]
<leitz>
Learn the rules, then you'll see where bending them is best.