railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
[H]unt3r has quit [Quit: Leaving]
_lexjm has quit [Quit: afk]
sarkyniin has quit [Quit: Quit]
fullofca_ has joined #ruby
slackbotgz has joined #ruby
[k- has quit [Ping timeout: 264 seconds]
Westerbly_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
fullofcaffeine has quit [Ping timeout: 246 seconds]
_blizzy_ has quit [Ping timeout: 244 seconds]
Westerbly__ has quit [Ping timeout: 255 seconds]
Westerbly_ is now known as radgeRayden
Averna has joined #ruby
Ropeney has joined #ruby
Mendenhall has quit [Ping timeout: 272 seconds]
prestorium has joined #ruby
mistym has quit [Ping timeout: 244 seconds]
christiandsg has joined #ruby
djbkd has quit [Quit: Leaving...]
bruno- has joined #ruby
djbkd has joined #ruby
Hongo has joined #ruby
Hongo has left #ruby [#ruby]
djbkd has quit [Client Quit]
oo_ has joined #ruby
tsvenson has joined #ruby
prestorium has quit [Read error: Connection reset by peer]
einarj has joined #ruby
axisys has joined #ruby
prestorium has joined #ruby
mary5030 has quit [Remote host closed the connection]
St1gma has joined #ruby
mary5030 has joined #ruby
<St1gma>
anybody in here have any experience with sockets? I'm trying to read from one, more specifically from an SMTP server. I can see the server sending me everything but when I do a socket.read I'm hung.
<St1gma>
I can use the same code and point it to say google.com and I get something back no problem
<St1gma>
any ideas?
eminencehc has joined #ruby
latemus has quit [Ping timeout: 240 seconds]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 246 seconds]
einarj has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 246 seconds]
prestorium has quit [Quit: Konversation terminated!]
prestorium has joined #ruby
rbowlby has quit [Remote host closed the connection]
christiandsg has quit [Remote host closed the connection]
iateadonut has quit [Ping timeout: 250 seconds]
bmurt has joined #ruby
coderkevin has left #ruby [#ruby]
crdpink2 has quit [Ping timeout: 246 seconds]
crdpink has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has quit [Ping timeout: 260 seconds]
hololeap has quit [Ping timeout: 264 seconds]
rbowlby_ has joined #ruby
omegamike has joined #ruby
<vimz>
does anyone know where RSpec's actual_formatted and expected_formatted are defined?
maletor has quit [Quit: Computer has gone to sleep.]
Thomas-0725 has joined #ruby
doctorly has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
christiandsg has joined #ruby
mistermocha has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
dseitz has joined #ruby
Rollabunna has joined #ruby
tuxtgz has quit [Excess Flood]
<Ox0dea>
quazimod1: Refinements.
<quazimod1>
that's it
christiandsg has quit [Ping timeout: 265 seconds]
mistermocha has quit [Read error: Connection reset by peer]
tuxtgz has joined #ruby
jeramyRR has quit [Quit: Peace out!]
<quazimod1>
thank you
mistermocha has joined #ruby
<Ox0dea>
Sure thing.
<Ox0dea>
Do note that they can be scoped more finely than "current file".
<quazimod1>
Ox0dea: i'll read more nito them
Matthews_ has quit [Ping timeout: 244 seconds]
MatthewsFace has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
j4cknewt has joined #ruby
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby
sharpmachine has joined #ruby
mistermocha has quit [Remote host closed the connection]
hololeap has joined #ruby
diego1 has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest81757
diego1 is now known as diegoviola
tuxtgz has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 246 seconds]
tuxtgz has joined #ruby
omegamike has joined #ruby
freerobby has joined #ruby
willywos has joined #ruby
Guest81757 has quit [Ping timeout: 264 seconds]
neoseeker has joined #ruby
iateadonut has joined #ruby
baweaver has joined #ruby
ddarkpassenger has joined #ruby
haraoka has quit [Ping timeout: 256 seconds]
mdavid613 has joined #ruby
markholmes has joined #ruby
theery has joined #ruby
jonee has joined #ruby
neoseeker has quit []
<vimz>
'nineninety'.scan /nine|ninety/ #=> ["nine", "nine"] . I want => ["nine","ninety"] The problem is that my regex matches the second nine inside ninety before it match the entire word ninety. My regex needs to follow this logic: Match a group ONLY if the pattern is not included in a longer group. i.e. 'ninety' is longer than 'nine' by 2 chars. Can this be done with regex? What's a really good ruby book on regex as well, I'm fed up of hitting a brickwall w
mdavid613 has quit [Quit: Leaving.]
bmurt has joined #ruby
bmurt has quit [Client Quit]
icebourg has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
andrewjanssen has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
Trynemjoel has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
andrewjanssen has quit [Client Quit]
<bmcginty>
vimz: just a minute, let me play with this for you.
craysiii has quit [Quit: craysiii]
yeticry has quit [Ping timeout: 244 seconds]
craysiii has joined #ruby
<vimz>
bmcginty appreciate it...how did you learn regex btw? any recommendations?
yeticry has joined #ruby
fullofcaffeine has joined #ruby
RustySpork has joined #ruby
<bmcginty>
vimz: I'm originally from python, and used resources there and via sed under linux.
<Ox0dea>
A sufficiently general regular expression which would pluck 'nine' and 'ninety' from 'nineninety' would also have to grab 'nineni'.
krz has joined #ruby
<bmcginty>
vimz: you can swap nine and ninety in your pattern, e.g. /ninety|nine/
<Ox0dea>
I very much you'd want to special-case the '-ty' prefix.
<Ox0dea>
*much doubt
<Ox0dea>
*suffix
<Ox0dea>
Jeeze.
<bmcginty>
Ah, good. Someone with more knowledge. :) (And that's not meant to sound sarcastic.)
<dymk>
I'm quite happy with my solution for having RAII work in the face of rb_raise
fullofca_ has quit [Read error: No route to host]
Trynemjoel has quit [Ping timeout: 256 seconds]
<bmcginty>
vimz: are you trying to match en entire set of typed out numbers? (I assume it's not just ninety, but a bunch of them?)
<dymk>
i used a similar approach as another person on the internet, where you throw a custom exception type and in the catch block call rb_error, and by then all dtors have ran correctly
<dymk>
so yay mutexes actually release on rb_raise
<Ox0dea>
Yay, but also -1 for using exceptions for control flow?
<dymk>
Ox0dea, what's -l do?
theery has quit [Remote host closed the connection]
<Ox0dea>
It's a downvote. :P
Trynemjoel has joined #ruby
<dymk>
Oh that's a 1, not al L
<dymk>
hah yeah well, ruby has throw, this is literally the C++ equivalent I guess
<Ox0dea>
vimz: The "language" of English numbers is recursively enumerable, so any hopes to fully match it with a regular expression are in vain.
allcentury has quit [Ping timeout: 250 seconds]
yqt has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
<Ox0dea>
dymk: Ruby's `throw` doesn't mean what it does in most other languages.
<dymk>
yeah it's for flow control, just like what I'm doing here :P
<Ox0dea>
Fair enough.
<tabakhase>
spec.executables cant do name-aliase or so hm? so i could not have a bin start and one called start, and then "provide" start as "RandomString-client" for example?
<dymk>
srs tho whoever thought it was a good idea to have the interpreter longjump out of extension code needs to have a good stern talking to
<tabakhase>
so my bin/start needs to be bin/gemName -- whats not really an issue doe, just wondering if those can be "mapped"
<Ox0dea>
tabakhase: Doesn't it make things much easier to just name them differently?
fullofcaffeine has quit [Remote host closed the connection]
<tabakhase>
hm it might be a doubble quest - came with the quest for spec.files - where there seem to be multiple "aproaches"
oo_ has quit [Remote host closed the connection]
RustySpork has left #ruby [#ruby]
<tabakhase>
a) use git-ls - b) scan filesystem - c) hardcode gem, gemspec, bin/**, lib/**
<tabakhase>
where b) is a mess, a) is neat but brings some usageIssues doing testbuilds
<tabakhase>
now saying stuff liike my vagrant file should not be the "gem" and when you want to develop on it, dont take the gem, get the github!" c) seems really reasonable...
s00pcan has quit [Ping timeout: 246 seconds]
<tabakhase>
with that known, i would not add my bin/ -- actually put exe/MyGem and add that as executable
<tabakhase>
and in my git bin/start is the bundler/rake calls
s1kx has joined #ruby
<tabakhase>
sp the build gem would really only contain runCode, is that the clean way and those git lookup things are the hackyMagic?
s00pcan has joined #ruby
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
jonee has quit [Remote host closed the connection]
omegamike has quit [Remote host closed the connection]
arescorpio has joined #ruby
diegoviola has quit [Quit: WeeChat 1.2]
Rollabunna has joined #ruby
user1138 has joined #ruby
user1138 has quit [Remote host closed the connection]
minmax has joined #ruby
user1138 has joined #ruby
PhantomS_ has joined #ruby
dgutierrez1287 has joined #ruby
oo_ has joined #ruby
s00pcan has quit [Ping timeout: 265 seconds]
christiandsg has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
decaff has joined #ruby
PhantomSpank has quit [Ping timeout: 244 seconds]
decaff_ has joined #ruby
decaff has quit [Read error: Connection reset by peer]
psy_ has joined #ruby
psy_ has quit [Client Quit]
theery has joined #ruby
psy_ has joined #ruby
charliesome has quit [Quit: zzz]
user1138_ has joined #ruby
<vimz>
bmcginty sorry went afk, yeah it's a set of numbers, not just ninety. so we're look at eighty, seventy ect. could hardcode something but I like code that's reusable..even if Im not good enough to write it myself yet :P (tbf its only regex that properly stumps me)
dgutierrez1287 has quit [Ping timeout: 272 seconds]
chipotle has quit [Quit: cheerio]
konsolebox has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
<dymk>
Is there a builtin native method for getting an array's length in an extension?
krz has quit [Read error: Connection reset by peer]
<Ox0dea>
dymk: The RARRAY_LEN() macro really ought to get a mention in extension.rdoc.
<dymk>
Ox0dea, many things ought to get a mention in extension.rdoc :P
<Ox0dea>
Aye, you're not wrong.
user1138 has quit [Ping timeout: 255 seconds]
krz has joined #ruby
n_blownapart has joined #ruby
<Ox0dea>
vimz: Is it part of your requirements to handle ill-formatted numbers, then?
braincrash has quit [Quit: bye bye]
<Ox0dea>
Properly spelling it "ninety-nine" and otherwise delimiting the "parts" with spaces makes the task significantly less finicky.
werelivinginthef has joined #ruby
i8igmac has quit [Ping timeout: 272 seconds]
[k- has joined #ruby
texasmade has quit [Ping timeout: 265 seconds]
PanPan has joined #ruby
theery has quit [Remote host closed the connection]
darkf has joined #ruby
<dymk>
What's ruby got the concept of an ID for?
braincras has joined #ruby
<dymk>
seems the way to get a symbol's value is go from c string -> ID -> VALUE
<dymk>
but I don't understand why that intermediate step exists
bronson has joined #ruby
<shevy>
isn't an id also a value?
<dymk>
the docs make it seem like a distinct concept
theery has joined #ruby
Channel6 has joined #ruby
amystephen has quit [Quit: amystephen]
bronson has quit [Ping timeout: 246 seconds]
tjohnson has joined #ruby
RobertBirnie has joined #ruby
Scriptonaut has left #ruby [#ruby]
juanpablo_ has joined #ruby
<[k->
Symbols have #id2name for some reason
<Ox0dea>
dymk: Symbols are just "interned" strings. ID is just a type alias for the native pointer type; they're used wherever possible in the interests of performance.
henchman_21 has joined #ruby
RobertBirnie has quit [Client Quit]
rubie has joined #ruby
_gautam_ has joined #ruby
theery has quit [Read error: Connection reset by peer]
<Ox0dea>
[k-: Well, it's certainly not completely random.
<bmcginty>
vimz: no problem, same afk here. There's very few examples on the net that I am seeing. The only thing close is something written in java, but it's readable.
<bmcginty>
vimz: for the pure horror potential, I'm going to try to write something that will at least capture numbers to a certain length, say into the millions place. I'll assume the numbers will all be single words for now e.g. ninehundredthirty for 930.
konsolebox has quit [Quit: Leaving]
gix has joined #ruby
leesharma has joined #ruby
howdoi_ has joined #ruby
Rollabunna has joined #ruby
<Henchman21>
close
Henchman21 has left #ruby ["WeeChat 1.2"]
cats has quit [Ping timeout: 256 seconds]
<vimz>
bmcginty haha horror potential okay, thanks a lot
MatthewsFace has quit [Remote host closed the connection]
<vimz>
and yes, single words for now :)
cats has joined #ruby
omegamike has joined #ruby
qiukun has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
modern has quit []
omegamike has quit [Ping timeout: 240 seconds]
icebourg has quit []
rbowlby has joined #ruby
icebourg has joined #ruby
fullofcaffeine has joined #ruby
tjbiddle has joined #ruby
oo_ has quit [Remote host closed the connection]
<dymk>
you know, it's really quite moving to see stuff in development.log from over a year ago
<dymk>
the initial "Processing by Rails::WelcomeController#index as HTML"
theery has quit [Remote host closed the connection]
oo_ has joined #ruby
keen__________31 has quit [Read error: Connection timed out]
tuxtgz has quit [Ping timeout: 252 seconds]
dfockler has joined #ruby
MatthewsFace has joined #ruby
deepu has joined #ruby
keen__________31 has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
theery has joined #ruby
pyon has quit [Quit: I have irrefutable proof that D < 0. It follows trivially from 2D > 3D, which is obviously true.]
kawaii-imouto has joined #ruby
kawaii-imouto is now known as pyon
pyon has quit [Client Quit]
dfockler has quit [Ping timeout: 265 seconds]
Vile` has quit [Ping timeout: 246 seconds]
werelivinginthef has quit [Remote host closed the connection]
krz has quit [Ping timeout: 246 seconds]
michael_mbp has quit [Excess Flood]
Vile` has joined #ruby
schmooster has joined #ruby
charliesome has quit [Quit: zzz]
pyon has joined #ruby
sharpmachine has quit [Remote host closed the connection]
michael_mbp has joined #ruby
poguez_ has joined #ruby
Edward__ has quit [Ping timeout: 250 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
charliesome has joined #ruby
Averna has quit [Ping timeout: 244 seconds]
codecop has joined #ruby
XandnaX has joined #ruby
iateadonut has quit [Ping timeout: 246 seconds]
konsolebox has joined #ruby
oo_ has quit [Remote host closed the connection]
lannonbr has quit [Quit: WeeChat 1.2]
nklv has joined #ruby
<nklv>
Any idea for EXCUSE why i was not working for few weeks?
<Aeyrix>
You what?
railswebdev has joined #ruby
<[k->
¿tahw uoy
lxsameer has joined #ruby
<nklv>
i havent worked for few weeks. i need an excuse to explain myself
<havenwood>
nklv: bundling?
<Aeyrix>
nklv: Why haven't you worked the last few weeks?
<[k->
its your fault that you couldnt resist looking at cat videos :3
<nklv>
Aeyrix i was exhausted from working so i started procrastinating and doing interesting things instead of boring job
charliesome has quit [Quit: zzz]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 246 seconds]
<havenwood>
nklv: professional development
<Aeyrix>
nklv: Who do you need an excuse for?
<nklv>
Aeyrix a client that im working for on a project
<Aeyrix>
nklv: Were you being paid during this time?
<nklv>
Aeyrix during procrastinating? no
<Aeyrix>
[14:27:13] <havenwood>nklv: professional development
<Aeyrix>
Training.
<Aeyrix>
Research and development.
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
nklv: You were in a fugue state.
GnuYawk has quit [Read error: Connection reset by peer]
<Aeyrix>
Isn't that a pufferfish?
<nklv>
"I was not working for few weeks on this crap boring project because of professional development of my person"
<Ox0dea>
That's fugu.
<Ox0dea>
nklv: Tell them you were transmogrified into a fugu fish.
<Aeyrix>
nklv: "I took temporary leave from the project for my annual period of learning and development."
<Ox0dea>
Fugu fish can't type, so you'll be in the clear.
nobitanobi has quit [Remote host closed the connection]
<nklv>
Aeyrix that doesnt sound like a good excuse
<Ox0dea>
Except that periods are usually monthly, not annual.
<nklv>
that annual period could waited till i complete project
<[k->
"Your project is silly & dumb. That's why i didnt work on it"
<Ox0dea>
^
Mendenhall has joined #ruby
nobitanobi has joined #ruby
<nklv>
well its not that silly and dumb
tmtwd has joined #ruby
<nklv>
it was interesting, at least at beginning
<nklv>
but when i had difficulties i procrastinated
<nklv>
i got bored too
astrobunny has joined #ruby
PhantomSpank has joined #ruby
<havenwood>
nklv: This project has been an interesting one and in order to deliver the best value I've spent several weeks further developing my expertise. I won't be charging anything for this time and am excited to get back to the project.
<[k->
"Your project presents no challenge to me. I was working on another project all this while."
<havenwood>
nklv: Is another way to say you got bored.
brianpWins has joined #ruby
PhantomS_ has quit [Ping timeout: 265 seconds]
<havenwood>
nklv: try sugar-coated honesty?
<nklv>
also how to prevent procrastinating in future?
keen__________32 has joined #ruby
<nklv>
havenwood or i could not explain not working at all
<[k->
get a shocker. Each time you procrastinate, you zap yourself
<nklv>
its not first time i end up not working for few weeks on project i have
<bmcginty>
nklv: your situation sounds very, very familiar, minus the not working bit.
<havenwood>
don't explain what doesn't need explaining
<nklv>
[k- that wont force me to work on it. i will resist it, im unbreakable
<[k->
then you have no choice but to quit your job
<nklv>
[k- and become jobless? how to get food and shelter then?
keen__________31 has quit [Ping timeout: 240 seconds]
existensil has quit [Quit: WeeChat 0.4.2]
<wmoxam>
find another job?
<nklv>
wmoxam what job
chipotle has joined #ruby
<Aeyrix>
nklv: If you don't want to do what you're doing
<nklv>
all jobs are boring and bad, even worse than programming
<Aeyrix>
find something you want to do.
<Aeyrix>
lol so you want to just
<Aeyrix>
live with money
<astrobunny>
i misread that as find another woman
<Aeyrix>
but not work for it
<nklv>
Aeyrix exactly!
<bmcginty>
nklv: Something I've found, though the shock theropy might work better, is to figure out a slightly better/different way to implement something you're tasked to do. e.g. okay, I've got to do this login form. However, the client didn't specify cookies or what, so I'll look into jwt, web tokens, and (carefully) implement that. Might take a bit longer, but better than doing nothing because the whole project is becoming so bloody ...
<Aeyrix>
nklv: marry someone rich
<bmcginty>
... borring you could scream.
<Aeyrix>
divorce them after 3 years
MatthewsFace has quit [Remote host closed the connection]
existensil has joined #ruby
<wmoxam>
nklv: why do you think all jobs are boring and bad?
Hobogrammer has joined #ruby
<Aeyrix>
wmoxam: effort
texasmade has joined #ruby
<nklv>
bmcginty that sounds good advice. though not always you have choices like that
<wmoxam>
:p
<nklv>
Aeyrix i dont want to live off rich partner
<[k->
jwt...
<Aeyrix>
nklv: you're not
<Aeyrix>
you're making your own money
<Aeyrix>
by divorcing them
<Aeyrix>
and taking 50%
<Aeyrix>
:D
<nklv>
thats stealing
<Aeyrix>
actually it's forfeit
<nklv>
wmoxam because.. they are boring and bad?
Rollabunna has joined #ruby
<[k->
you should become a farmer
<wmoxam>
nklv: maybe you should look for one that isn't ;)
<Ox0dea>
nklv: Read Ecclesiastes.
<nklv>
[k- farmers spend hours daily on many things, physical work. not for me
<Aeyrix>
Ox0dea: s'that?
<nklv>
wmoxam i dont know of any jobs that isnt
<Ox0dea>
Aeyrix: It's a book of the Bible.
<Aeyrix>
o
<wmoxam>
I don't think creating software is boring
<wmoxam>
:p
PaulCapestany has quit [Read error: Connection reset by peer]
<Ox0dea>
Aeyrix: It's (allegedly) King Solomon discussing the meaninglessness of life, and toil in particular.
<Aeyrix>
oic
<Ox0dea>
Seems relevant enough to nklv's predicament.
<nklv>
sounds good, life is meaningless
<Ox0dea>
nklv: All the true nihilists are in the ground.
Xiti` has joined #ruby
<nklv>
Ox0dea so will I soon
<Ox0dea>
All in good time.
PaulCapestany has joined #ruby
<nklv>
wmoxam most software dev is very boring and repetitive and doesnt include any special analysis / insight
christiandsg has joined #ruby
<wmoxam>
nklv: so you conceed that some of it is not 'boring and repetitive". Find a job with more of *that*
<nklv>
i want analyze, describe complex things with simple algorithms, compare choices/things, choose best action in situations, etc
<wmoxam>
;)
Rollabunna has quit [Ping timeout: 264 seconds]
<nklv>
wmoxam where is that job
<nklv>
havent seen yet
<[k->
engineering
Xiti has quit [Ping timeout: 240 seconds]
<[k->
yay i did it \o/
<wmoxam>
nklv: what kind of work have you been doing?
PaulCapestany has quit [Max SendQ exceeded]
<Ox0dea>
nklv: Do a breakthrough in natural language processing that we may shovel away the snow of the AI winter.
XandnaX has quit [Remote host closed the connection]
<baweaver>
Name of the Wind, Lies of Locke Lamora, Mistborn, Stormlight Archive, Wheel of Time, Montemorency, Arsene Lupin, and a few others I forget
<Ox0dea>
The first two are quite good.
eminencehc has quit [Ping timeout: 244 seconds]
<baweaver>
That's this year so far.
<Ox0dea>
LLL's author was in something of a troubled state for a while. :/
emdub has joined #ruby
levifig has joined #ruby
quazimod1 has quit [Remote host closed the connection]
<baweaver>
Scott Lynch
<Ox0dea>
Aye.
<bmcginty>
vimz: My brain hath melted like an icecream cone. Got it to match bunches of numbers properly, then the parenthesies, oh the parenthesies for grouping, attempted to take over my brain. Anyhow, I'll gist what I've got, and if I get time tomorrow, I'll get back to it. Be warned, it's...icky.
<Radar>
Troubled state?
<Ox0dea>
Glitch in the wetware.
<Radar>
[citation needed]
<bmcginty>
baweaver: stormlight archive and that group are amazing!
<baweaver>
Wheel of Time is a huge commitment, but worth it.
<baweaver>
14 books, most over 1000 pages.
sepp2k has joined #ruby
<sevenseacat>
i have the first wheel of time book on my kindle
<baweaver>
oi sepp2k, how's it going? (lemur)
oo_ has joined #ruby
xcesariox has joined #ruby
<Ox0dea>
baweaver: All caught up on ASoIaF, presumably?
aganov has joined #ruby
<baweaver>
Not quite
<Ox0dea>
Blasphemy.
<sepp2k>
baweaver: Hi. Well. How about you?
<sevenseacat>
thats one series i have read
armyriad has quit [Read error: Connection reset by peer]
<Ox0dea>
Too political?
<baweaver>
Ah decent enough. Working out of SF. Where were you at again?
<baweaver>
What have you tried so far piyush? Do you have any code?
<[k->
we aren't php workers!
<baweaver>
also I don't trust that link
<baweaver>
use ?gist
<Ox0dea>
Which circle of Hell is reserved for people who post images of code?
<baweaver>
?gist
<ruboto>
https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<[k->
?gist_usage
<ruboto>
To properly use gist, please enable syntax highlighting, either by choosing the language manually or by entering a proper filename. If you post multiple things, separate them into multiple files. If you have a Github account, please update your gist with new information instead of posting a new one.
<piyush>
baweaver, i have given code in link
<Aeyrix>
piyush: no, you've given an image in the link
<baweaver>
you gave an image
<piyush>
yeah, code is written on it
<baweaver>
also, we're not in the business of translating code for people
<baweaver>
that's your job
<[k->
if you want help, you help us help you
<baweaver>
ours is to push you in the right direction after you've tried
<sevenseacat>
wait, you want to convert some code to php? and you're asking in #ruby ?
<[k->
^
<sevenseacat>
something does not compute
<baweaver>
that being said I have strong doubts you'll get PHP help on #ruby
<Aeyrix>
I still haven't gotten over the hilarity of posting a screenshot of code.
<Aeyrix>
It's just missing a copyright watermark for premium laughs.
<[k->
shevy would gladly :>
<piyush>
sevenseacat, becoz that is ruby code and i am php developer
<Aeyrix>
"MORE LAUGHS AT 9GAG.COM"
<Ox0dea>
piyush: Hey, you said you were a PHP code!
<baweaver>
your problem is you don't understand code in general
<Aeyrix>
Hey guys, serious question
<Aeyrix>
how do you maintain momentum on your side projects?
<baweaver>
If you did, this would not be hard to translate at all.
<[k->
anything is possible with webdevs
<Ox0dea>
Aeyrix: Use them.
<baweaver>
Aeyrix: make sure it gets used
<[k->
oops
riotjones has quit [Ping timeout: 272 seconds]
<piyush>
yeah, that is using soap libraries and tried to connect with a server using xsd files, am i right?
<Aeyrix>
baweaver: What if it's something that kind of can't be used until it's "done"?
<baweaver>
then people will naturally bug you on it.
<baweaver>
then reevaluate for an MVP you can get out.
<Aeyrix>
Can you rephrase that?
<Aeyrix>
I'm fucking exhausted today. I've been in meetings all day.
<baweaver>
minimum viable product
<sevenseacat>
I have no side projects
<baweaver>
what's the simplest thing you can get out the door right now
<sevenseacat>
thats how I do it :thumbsup:
leesharma has quit [Ping timeout: 240 seconds]
piyush has quit [Quit: Page closed]
ohaibbq has quit [Quit: Leaving...]
<baweaver>
I have....
lsmola has joined #ruby
<Aeyrix>
baweaver: Hm.
* baweaver
stares in horror at count
<baweaver>
nevermind
<Aeyrix>
I guess not all of the functionality yeah
<Aeyrix>
although I want to turn this into a paid service later down the line
<Aeyrix>
(when it's done)
<baweaver>
biggest thing is make it practical asap
Oog has joined #ruby
<Aeyrix>
Alrighty.
<baweaver>
the more esoteric the less you can get drive from it
<baweaver>
unless you're me or Ox0dea
riotjones has joined #ruby
<Ox0dea>
Esoterica is my shit.
<baweaver>
then we just get our jollies from it
<Aeyrix>
I wish I did. :v
x44x45x41x4E has joined #ruby
sharpmachine has joined #ruby
<Aeyrix>
I just don't have the energy a lot of the time. ;_;
<Ox0dea>
:"(
_ht has joined #ruby
<baweaver>
redbull gives you wiiiiings
<baweaver>
and tachycardia
<Aeyrix>
Heh.
<Ox0dea>
Aeyrix: Tried Ballmer peaking?
<Aeyrix>
Not recently.
<Aeyrix>
I need to go shopping.
JohnBat26 has quit [Ping timeout: 244 seconds]
<baweaver>
A good few glasses of Balvenie 14 Caribbean does the trick. I've quantified my Ballmer's Peak and calibrated it fairly well
<Aeyrix>
$$ on that?
<Aeyrix>
$115/700mL
<[k->
baweaver: Ox0dea: Obfuscate: o
<Aeyrix>
thanks Obama
<Aeyrix>
baweaver: That sounds INCREDIBLE
<baweaver>
~$70 around here.
<Aeyrix>
Any uh
<Aeyrix>
more economic alternatives?
<Aeyrix>
$70 is my avg spend on spirits
<baweaver>
Balvenie Double Wood ~$40
<Aeyrix>
You're a belvanie fan through and through hey?
<que__>
[k-: i gave the new link. that looks like a code now
<[k->
hold on there: username == @user && password == @password.value
<craysiii>
Ox what kind of witchcraft are you conjuring
<[k->
who writes such code
<apeiros>
que__: so you don't understand `@codecs[content_type] = LogStash::Plugin.lookup("codec", codec).new`?
<Ox0dea>
craysiii: I just like that "setups" and "teardown" are both dollar words.
einarj has joined #ruby
<que__>
apeiros: not really. i just write scripts ( simple ones ) this is like abstraction.
<que__>
that is why i risk and ask here
benlovell has joined #ruby
<apeiros>
okay, I'm not sure if that was a "yes, that's the line I have troubles with" or not
CustosLimen has quit [Read error: Connection reset by peer]
<craysiii>
i admit it took me a minute to realize exactly what it did. thats cool though
thiagovsk has quit [Quit: Connection closed for inactivity]
f4cl3y has joined #ruby
<que__>
apeiros: sorry. Issue is more complex. i try to make work nxlog with logstash over http protocol. since nxlog is screaming about "ERROR unexpected data from server" i try to figure out where does the logstash input sends respond request.
duncannz has quit [Ping timeout: 264 seconds]
<apeiros>
*sob*, ok. sorry, but this looks like it would be a neverending quest to figure out what you're asking. I'm out.
`Nibble has joined #ruby
<que__>
i explained. question is. does someone see in the code where does this module send respond for request
haxrbyte_ has joined #ruby
robbyoconnor is now known as r0bby_
r0bby_ is now known as robbyoconnor
einarj has quit [Ping timeout: 250 seconds]
chinmay_dd has joined #ruby
dgutierrez1287 has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
<que__>
or if it is still not clear. can someone explain me what does line 101 do
Guest32 has joined #ruby
kies^ has quit [Ping timeout: 246 seconds]
<craysiii>
no idea.
haxrbyte has quit [Ping timeout: 246 seconds]
<adaedra>
Hi
<[k->
hello
Lucky___ has joined #ruby
<ljarvis>
que__: line 132 runs the proc defined on line 109
<ljarvis>
(of the formatted code, not that re-pasted code)
<que__>
ljarvis: any comment on that 119 line ?
Omni_ has joined #ruby
<ljarvis>
que__: yes, it's an array of objects being returned to signify a successful response (200 OK)
ejnahc has quit [Remote host closed the connection]
radgeRayden has quit [Ping timeout: 244 seconds]
dgutierrez1287 has quit [Ping timeout: 244 seconds]
<que__>
returned by rescue => e ?
<ljarvis>
see the rack documentation
<ljarvis>
that's not line 119 is it
<ljarvis>
119: ['200', RESPONSE_HEADERS, ['ok']]
<que__>
yes
<que__>
by how does it is sended ? i see an array
ejnahc has joined #ruby
<que__>
s/by/but
<ljarvis>
that's the return value of the proc
andikr has quit [Ping timeout: 246 seconds]
<ljarvis>
the proc is then used on line 132: run(p)
<que__>
ljarvis: hmmm so if i understood correctly. it will run ( the 119 ) only if i do the run on line 132 ( which requires authentication ) ?
<ljarvis>
this run method is basically just a rack app
<ljarvis>
que__: correct, the proc defined on 109 and all of its contents do nothing on their own
andikr has joined #ruby
<ljarvis>
also, that does *not* require authentication, at least in that code it's optional
<que__>
ljarvis: that helped a lot
<que__>
thank You very much
<ljarvis>
no problem
armyriad has joined #ruby
andikr has quit [Client Quit]
andikr has joined #ruby
Omni_ is now known as Slavox
cats has quit [Ping timeout: 240 seconds]
glenn_ has quit [Ping timeout: 252 seconds]
arquebus has joined #ruby
glenn_ has joined #ruby
cats has joined #ruby
oo_ has quit [Remote host closed the connection]
hololeap has joined #ruby
michael_mbp has quit [Excess Flood]
MrSamuel has quit [Quit: MrSamuel]
schaerli has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
certainty has quit [Quit: WeeChat 0.4.3]
c0m0 has joined #ruby
certainty has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kraljev11 has joined #ruby
eGGsha has joined #ruby
sharpmachine has joined #ruby
solars has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
banister has joined #ruby
Guest32 is now known as tchemi
Rollabunna has joined #ruby
arquebus has quit [Quit: konversation disconnects]
rdark has joined #ruby
sharpmachine has quit [Ping timeout: 252 seconds]
schaerli has quit [Remote host closed the connection]
christiandsg has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
kraljev11 has quit [Quit: kraljev11]
fabrice31 has joined #ruby
bumbar_ has joined #ruby
bumbar_ has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
MrSamuel has joined #ruby
yardenbar has joined #ruby
DaniG2k has joined #ruby
eilkahn_ has quit [Read error: Connection reset by peer]
aleshgo has joined #ruby
aleshgo has quit [Client Quit]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axl_ has joined #ruby
walteriz_ has joined #ruby
icharlie has quit [Remote host closed the connection]
ledestin has quit [Ping timeout: 252 seconds]
livathinos has joined #ruby
walterizyion has quit [Ping timeout: 240 seconds]
AndChat-43764 has quit [Ping timeout: 255 seconds]
yie_ has joined #ruby
eGGsha has joined #ruby
qiukun has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
safeforge has quit [Remote host closed the connection]
white_bear has joined #ruby
juanpablo_ has joined #ruby
hello____ has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
marr has joined #ruby
rbowlby has quit [Remote host closed the connection]
<professor_soap>
vasilakisfil: one suggestion could be to save Time.now before the hard work starts and then Time.now when it stops and calculate the diff. No..?
<apeiros>
there are ways to make it less problematic by now
<apeiros>
but it's unexpectedly difficult to do something which seems so simple
chenillen has quit [Ping timeout: 244 seconds]
<apeiros>
if you can, do what mperham suggests in the linked article
bronson has joined #ruby
Igorshp has joined #ruby
decaff has quit [Ping timeout: 252 seconds]
omegamike has joined #ruby
<apeiros>
if you can't, use Timeout and make sure to check out Thread::handle_interrupt
surs has joined #ruby
<vasilakisfil>
professor_soap I need to return just in 5 sec, not wait until "hard work" finishes because it might take more
surs has quit [Changing host]
surs has joined #ruby
<ljarvis>
vasilakisfil: what is "the hard work" ?
<ljarvis>
DB interaction? network stuff?
<apeiros>
ah, right - vasilakisfil do you still have to finish the hard work in the background?
<apeiros>
i.e. you return, but work is still being processed?
sharpmachine has joined #ruby
TvL2386 has joined #ruby
<apeiros>
(that'd be less problematic to implement)
Rollabunna has quit [Ping timeout: 252 seconds]
rbowlby has joined #ruby
<vasilakisfil>
hmm a worker could be a could idea in my case.. I am trying to implement the Prefer Header with the "wait" preference in a rack api app
<yorickpeterse>
You'll probably have to use Timeout for that since you can't really control what happens in a request (thus you can't use something like select())
<yorickpeterse>
along with dealing with all possible problems
<yorickpeterse>
Since Timeout spawns a thread for every call to Timeout.timeout this might be a problem if you intend to handle a lot of concurrent requests
<apeiros>
disagree
<vasilakisfil>
or I could delegate everyting in a worker and if worker takes longer time return a 202
<apeiros>
sounds like what I asked above
<apeiros>
you respond, but work is still finished and asynchronously delivered
<apeiros>
so what you can do for this is have a queue with a timeout
<yorickpeterse>
apeiros: that's one option, but it doesn't really prevent the work from not running for more than 5 seconds
<yorickpeterse>
granted I'd argue that this is something a client should handle
leafybasil has joined #ruby
sharpmachine has quit [Ping timeout: 244 seconds]
<yorickpeterse>
e.g. the client itself should determine when something is taking too long
<apeiros>
yorickpeterse: but as far as I understood, the work should be completed
<apeiros>
even if it takes more than 5s
<vasilakisfil>
in my case yes
<yorickpeterse>
hm
<apeiros>
it's just that the response must happen after 5s
<apeiros>
and that's a lot easier than having to interrupt work
<yorickpeterse>
Then you'll need to delegate the work to a thread (pool) and poll it from the outside
<apeiros>
damn, wasn't there a pop method on Queue which allowed for a timeout? o0
omegamike has quit [Ping timeout: 244 seconds]
<yorickpeterse>
No, it will raise an exception or not
<yorickpeterse>
which is...stupid
<apeiros>
ah well, polling pop(true), but that sucks.
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 240 seconds]
lxsameer_ has quit [Ping timeout: 244 seconds]
nofxx has joined #ruby
Karpah has joined #ruby
dgutierrez1287 has joined #ruby
riffraff has joined #ruby
troulouliou_div2 has joined #ruby
sevenseacat has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
<M-_mis>
(Serry, I know you're working and it's mis-topic, but figuring _why #cplusequality exists —vet yet det I∫ stil need hash a sewmantic rubyx ver, i! quess.. hhmmff, ici is howme imf sae hio. =∫∫ =)) Nowme dback 2oO reading and or er letting ui focus. xx (<3 )) ) (∫)
allcentury has quit [Ping timeout: 256 seconds]
<Karpah>
!mute M-_mis
<Karpah>
quiet, you.
Karpah is now known as sevenseacat
<adaedra>
what was that
<apeiros>
wtf was that? o0
lkba_ has joined #ruby
xkickflip has joined #ruby
<ljarvis>
went from English to lolwat real quick
<apeiros>
OO
dgutierrez1287 has quit [Ping timeout: 256 seconds]
* adaedra
takes the shotgun back and gives apeiros a flamethrower
<apeiros>
why the F are they all public? it makes *zero* sense those are all public
<apeiros>
ignoring the sheer amount for now…
lkba has quit [Ping timeout: 265 seconds]
<apeiros>
adaedra: much thanks
<adaedra>
it's called "come back"
* apeiros
back in ~30
oo_ has joined #ruby
astrobunny has joined #ruby
duncannz has quit [Ping timeout: 252 seconds]
GriffinHeart has joined #ruby
arup_r has joined #ruby
platosha has quit [Quit: This computer has gone to sleep]
platosha has joined #ruby
leesharma has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has quit [Ping timeout: 244 seconds]
safeforge has quit [Remote host closed the connection]
shpoont has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Remote host closed the connection]
wenshan has joined #ruby
leesharma has quit [Ping timeout: 246 seconds]
prosodyContext has left #ruby [#ruby]
prosodyContext has joined #ruby
<wenshan>
hi, could someone give me a hand on writing specs? I'd like to test a ruby script which receives some input from either stdin or a file (with `ARGF.each`) and output the result to stdout. What's the conventional way of testing this kind of scripts? How would you stub stdin?
oo_ has quit [Remote host closed the connection]
Joost` has joined #ruby
oo_ has joined #ruby
<Joost`>
I'm trying to build a project that uses ruby.. I've learned that I need rbenv to manage my ruby versions, but now I cannot seem to build it because version 2.0.0 is not in rbenv
lxsameer_ has joined #ruby
<Joost`>
there is 2.0.0-p645 in there, as well as 2.0.0-p0, but neither work
yfeldblum has quit [Ping timeout: 246 seconds]
<j416>
there are many ways; you don't _need_ any, they just make life easier
lessless has joined #ruby
<Joost`>
the .ruby-version file indicates 2.0.0, and I get "rbenv: version `2.0.0' is not installed" when I'm on 2.0.0-p645
<j416>
rvm, rbenv, chruby..
<Joost`>
live's not really getting easier so far :P
sameerynho has quit [Ping timeout: 244 seconds]
<Joost`>
life*
<j416>
I don't know rbenv so can't help
<j416>
rubu --version says?
<j416>
ruby*
dseitz has joined #ruby
<j416>
sorry phone kbd
astrobunny has quit [Remote host closed the connection]
safeforge has joined #ruby
<Joost`>
ruby 2.0.0p645
sameerynho has joined #ruby
<Joost`>
(except when I'm in the dir with the .ruby-version, then it errors out, of course)
<j416>
should satisfy 2.0.0
marr has quit []
<j416>
I suppose
prosodyContext has left #ruby [#ruby]
<Joost`>
so.. switch to rvm while I'm still new?
aevitas has joined #ruby
<j416>
rvm will likely give you
<j416>
more headache
leat has quit [Remote host closed the connection]
<Joost`>
:(
<adaedra>
ha
<j416>
I prefer chruby, rbenv might be good
leat has joined #ruby
<Joost`>
"There should be one-- and preferably only one --obvious way to do it."
eGGsha has joined #ruby
shock_one has joined #ruby
<ruurd>
meh
<ruurd>
rvm is da bomb
dumdedum has joined #ruby
lxsameer_ has quit [Ping timeout: 246 seconds]
riffraff has quit [Quit: This computer has gone to sleep]
<adaedra>
in sense it explodes everything and leaves just ruins?
spider-mario has joined #ruby
sdothum has joined #ruby
Rollabunna has joined #ruby
prosodyContext has joined #ruby
<ruurd>
if necessary.... :-0
riffraff has joined #ruby
arturmartins has joined #ruby
<ruurd>
I've got good experiences with it on OSX
<ruurd>
And Linux BTW
Vile` has quit [Ping timeout: 264 seconds]
<ruurd>
On a Windows platform I would not even begin to use Ruby really...
walteriz_ has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
lxsameer_ has joined #ruby
Ropeney has joined #ruby
workmad3 has joined #ruby
christiandsg has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
Vile` has joined #ruby
sameerynho has quit [Ping timeout: 252 seconds]
walterizfie has quit [Ping timeout: 244 seconds]
shock_one has quit []
<Joost`>
ruurd: on a windows platform.. the only sane move is to not be on a windows platform I guess
<sevenseacat>
sounds like a good way to get your question closed, unless you clearly explain why none of the accepted answers apply'
<rrios>
Even though the directory is there
vinleod has joined #ruby
<sevenseacat>
(and one of the answers probably does apply)
stamina has joined #ruby
<ruurd>
Joost` what platform are you on?
<Joost`>
OSX 10.10
<sevenseacat>
and the problem is?
<kannan4k>
this line, @@_accessors[name].push name: fname.to_sym, type: type
<adaedra>
what about it
<ruurd>
Use RVM - I use it. It works
<kannan4k>
what this line does? push a hash into a array?
r__rios has joined #ruby
omegahm|BNC has joined #ruby
ejnahc_ has joined #ruby
<sevenseacat>
unknown.
scpike_ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
soahccc has quit [Ping timeout: 240 seconds]
WillAmes has quit [Ping timeout: 240 seconds]
Trieste has quit [Ping timeout: 240 seconds]
_whitelogger__ has quit [Ping timeout: 240 seconds]
neektza has quit [Ping timeout: 240 seconds]
calleerlandsson has quit [Ping timeout: 240 seconds]
mgorbach has quit [Ping timeout: 240 seconds]
rflot has quit [Ping timeout: 240 seconds]
tabakhase has quit [Ping timeout: 240 seconds]
x3cion has quit [Ping timeout: 240 seconds]
bauruine has quit [Ping timeout: 240 seconds]
ss_much has quit [Ping timeout: 240 seconds]
phrozen77 has quit [Ping timeout: 240 seconds]
pawz has quit [Ping timeout: 240 seconds]
lele` has quit [Ping timeout: 240 seconds]
dr_Poggs has quit [Ping timeout: 240 seconds]
ejnahc has quit [Ping timeout: 240 seconds]
SuperTux88 has quit [Ping timeout: 240 seconds]
nemesit|znc has quit [Ping timeout: 240 seconds]
elektronaut_ has quit [Ping timeout: 240 seconds]
heftig has quit [Ping timeout: 240 seconds]
kalleth has quit [Ping timeout: 240 seconds]
alem0lars has quit [Ping timeout: 240 seconds]
r_rios has quit [Ping timeout: 240 seconds]
michael_mbp has quit [Ping timeout: 240 seconds]
tagrudev has quit [Ping timeout: 240 seconds]
acke has quit [Ping timeout: 240 seconds]
usershell has quit [Ping timeout: 240 seconds]
heyimwill has quit [Ping timeout: 240 seconds]
krasnus has quit [Ping timeout: 240 seconds]
omegahm has quit [Ping timeout: 240 seconds]
eregon has quit [Ping timeout: 240 seconds]
noethics has quit [Ping timeout: 240 seconds]
silverdust has quit [Ping timeout: 240 seconds]
keen__________32 has quit [Ping timeout: 240 seconds]
tobyx has quit [Ping timeout: 240 seconds]
scpike has quit [Ping timeout: 240 seconds]
pocketprotector has quit [Ping timeout: 240 seconds]
<Joost`>
sevenseacat: I'm trying to run a project that has 2.0.0 in its .ruby-version file, but rbenv does not seem to have that (2.0.0-p645 does not match), and returns rbenv: version `2.0.0' is not installed
<sevenseacat>
Joost`: either create a symlink from 2.0.0-pwhatever to 2.0.0, or just update the .ruby-version file
rflot_ is now known as rflot
<kannan4k>
sevenseacat: i am trying to understand what it does
tagrudev has joined #ruby
mgorbach has joined #ruby
ss_much_ is now known as ss_much
r__rios is now known as r_rios
<sevenseacat>
kannan4k: need more context.
xkickflip has joined #ruby
r_rios has quit [Changing host]
r_rios has joined #ruby
<adaedra>
kannan4k: what part you don't understand?
<[k->
i think i used brew to get me a new ruby
<ruurd>
Create a gemset for your project
noethics has joined #ruby
<sevenseacat>
lol gemsets
<adaedra>
lol rvm
<sevenseacat>
welcome to 2010?
<Joost`>
sevenseacat: I tried updating the .ruby-version file, but then I' run into "Your Ruby version is 2.0.0, but your Gemfile specified 2.0.0-p645"
keen__________32 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<sevenseacat>
Joost`: you cant have different versions specified in the Gemfile and the .ruby-version file
<adaedra>
chruby > *
michael_mbp has joined #ruby
pocketprotector has joined #ruby
<Joost`>
sevenseacat: but my ruby version is not 2.0.0
<j416>
adaedra +1
<kannan4k>
adaedra, sevenseacat: last 2 arguments and push: push name: fname.to_sym, type: type
<ruurd>
Why would you use the patchlevel in the ruby spec in a Gemfile?
<Joost`>
sevenseacat: ruby --version gives me ruby 2.0.0p645
<sevenseacat>
thats 2.0.0
<Joost`>
I know
<sevenseacat>
gist what you've got, because it doesnt make sense
<adaedra>
ruurd: what if I tell you the issue is not related to not using rvm
<postmodern>
Joost`, me too, 2.0.0-pXXX shouldn't be any different from 2.0.0-pYYY
<sevenseacat>
yeah well, rbenv can go jump.
<Joost`>
so what do you recommend? rvm? chruby?
<sevenseacat>
chruby
<Joost`>
I get mixed messages :/
pawz has joined #ruby
<adaedra>
chruby
<ruurd>
rvm
apfeluser has quit [Client Quit]
<ruurd>
rvm rvm rvm rvm
schaerli_ has joined #ruby
apfeluser has joined #ruby
<ruurd>
Joost` the rest of the people here are biased
<sevenseacat>
how?
psy_ has quit [Ping timeout: 244 seconds]
<adaedra>
olol
<ruurd>
sevenseacat hook line sinker
<adaedra>
if this weren't an IRC channel, I'd ask to raise hands
<ruurd>
<raises hands/
<postmodern>
Joost`, you can do the symlink trick to just get rbenv working for now
<Joost`>
the symlink worked, thanks :)
radgeRayden has joined #ruby
<Joost`>
postmodern: yeah, my thoughts exactly
yfeldblum has joined #ruby
einarj has joined #ruby
<ruurd>
O goody what an excellent solution - create a symlink. Now update your ruby BLAM project does not work anymore \0/ \0/
<adaedra>
chruby > rbenv > * > hell > rvm
<ruurd>
adaedra I can't help you being a klutz...
xkickflip has quit [Ping timeout: 255 seconds]
<sevenseacat>
ruurd: I'm asking you nicely to stop trolling.
<Joost`>
ruurd: I do not disagree with that, but it works now
CloCkWeRX has joined #ruby
<Joost`>
and by the looks of it, I'm not getting too deep into ruby development, so that's fine for me
rubie has joined #ruby
juanpablo_ has joined #ruby
<ruurd>
Joost` chruby or rvm is a matter of taste. I don't think they really differ that much. I chose rvm and it suits me fine. No extreme difficulties to speak of really.
<sevenseacat>
they differ in very major and fundamental ways
<sevenseacat>
I've used both.
<Joost`>
what I don't get is why it's even necessary to finetune ruby versions to such precise releases
<ljarvis>
yeah they differ a lot. I'm a huge fan of chruby
<Joost`>
are they really that different?
<elaptics>
depends on how you're looking at it
<ljarvis>
Joost`: they're different enough to require releases
<[k->
i used rvm at first
<sevenseacat>
it wouldnt be necessary, it's a bug in rbenv.
<sevenseacat>
as was shown.
DaniG2k has quit [Quit: leaving]
<[k->
not sure what happened to rvm anymore....
<Joost`>
sevenseacat: that's not what I'm getting at
<[k->
i use rbenv now!
<sevenseacat>
rvm went a bit off with the fairies, especially with rvm 2
<adaedra>
it's a bloat
tchemi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spider-mario has quit [Remote host closed the connection]
khebbie has joined #ruby
khebbie_ has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
StAnger has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
juanpablo_ has quit [Ping timeout: 244 seconds]
<kannan4k>
thanks adaedra
tubuliferous_ has joined #ruby
einarj has joined #ruby
phutchins has joined #ruby
<sevenseacat>
reading up on the updates to rvm2 now... my mind is boggled
zeroDivisible has joined #ruby
<[k->
the ruby-community does not seem to like rvm
<adaedra>
link?
<adaedra>
[k-: hopefully, ruurd is here to show us the holy way.
<sevenseacat>
there's like a dozen gems that make up rvm2
<StAnger>
hello all, i have a question about factory_girl ( no am not using rails ). I know usually factory girl is to be used with one or other testing framework , however is it fesible/ideal to use it as a data source for classes ? like obj.find(@this_stuf) and value of @this_stuff setby factory_girl
<ruurd>
It works for me and it keeps per project stuff squared away
<[k->
this is the ruby-community!
<sevenseacat>
StAnger: no
<StAnger>
sevenseacat: thanks , any alternative to this ? other than using DB/flatfiles
<adaedra>
ruurd: you know that "works for me" means nothing?
postmodern has quit [Quit: Leaving]
<ruurd>
rvm2?
<sevenseacat>
StAnger: why so against using a database for data storage?
<StAnger>
sevenseacat: not against it but, it is relatively simple and app with 4 class so DB might be overkill
<sevenseacat>
dont see how
<sevenseacat>
stick something like sequel in, done
tubuliferous_ has quit [Ping timeout: 244 seconds]
walteriz_ has quit [Remote host closed the connection]
<StAnger>
sevenseacat: yea , might look at sqllite
walterizfie has joined #ruby
nsuke has joined #ruby
<StAnger>
sevenseacat: thanks for the help/suggestion :)
<sevenseacat>
np
oo_ has quit [Remote host closed the connection]
ynroot has joined #ruby
usershel_ has quit [Remote host closed the connection]
einarj has quit [Read error: Connection reset by peer]
safeforge has quit [Remote host closed the connection]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
heyimwill has joined #ruby
leesharma has joined #ruby
dorei has joined #ruby
stamina has quit [Quit: WeeChat 1.2]
catphish has joined #ruby
chills42 has joined #ruby
<catphish>
was ruby changed at some point to allow you to set variables to constants in if statements?
<catphish>
or is there some logic that decides if you are allowed to do it or not?
poguez_ has quit [Quit: Connection closed for inactivity]
<ljarvis>
?code catphish
<ruboto>
catphish, We can't help you without your code, please post it to https://gist.github.com
<catphish>
what code?
decaff has joined #ruby
chills42 has quit [Remote host closed the connection]
<ljarvis>
ok, "no"
<catphish>
i recall that in that past, ruby didn't allow this, but i just did it and it works
<ljarvis>
you did what? something without using code?
<apeiros>
"setting variables to constants" doesn't make a whole lot of sense.
<ljarvis>
^
leesharma has quit [Ping timeout: 244 seconds]
Rollabunna has joined #ruby
rodfersou has joined #ruby
<apeiros>
what's that supposed to mean? got an example?
nettoweb has joined #ruby
arup_r has quit [Remote host closed the connection]
<catphish>
setting a variable to a constant, for example: a = 1
<apeiros>
ok, nothing in that expression is a constant
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
and assignments in if conditions have been possible since before 1.8
<ynroot>
ljarvis: after install ruby-devel it seems to install without error untill now
nettoweb has quit [Client Quit]
<catphish>
i think the answer is that it generates a warning, but doesn't fail
<sevenseacat>
how is a = 1 setting a variable to a constant??
decaff has quit [Ping timeout: 244 seconds]
<ljarvis>
i just thought there was no code
<tobiasvl>
I think he means that 1 is a constant value
* apeiros
assumes terminology mixup - literals vs. constants
<tobiasvl>
yeah
Blaguvest has quit [Remote host closed the connection]
<ljarvis>
catphish: there's a warning if you use a literal in void context, or if you use true/false literal in a condition
lessless has joined #ruby
<catphish>
apeiros is correct, i am using "constant" to refer to literal values
astrobunny has joined #ruby
<apeiros>
ljarvis: there's also a warning with -w
<sevenseacat>
thats not misleading at all >_>
<apeiros>
catphish: don't ;-) constants and literals are not the same.
<catphish>
apeiros: will try :)
<apeiros>
not all literals are immutable. not all constants are immutable. not all immutables are constants. not all immutables are literals.
Rollabunna has quit [Ping timeout: 246 seconds]
<apeiros>
>> $DEBUG = true; if x = 1 then y = 2*x end
<ruboto>
apeiros # => /tmp/execpad-b363b60d001f/source-b363b60d001f:2: warning: found = in conditional, should be == ...check link for more (https://eval.in/406671)
<apeiros>
ljarvis: ^
<catphish>
"not all literals are immutable" that part scares me
<ljarvis>
ya
<apeiros>
catphish: "hello".upcase!
<apeiros>
also [], {}
nettoweb has joined #ruby
<apeiros>
and all variants for array/string literals.
chills42 has joined #ruby
sarkyniin has quit [Ping timeout: 246 seconds]
cornerma1 has joined #ruby
doertedev has joined #ruby
<catphish>
apeiros: what is "hello" in this scenario? surely "hello".upcase! is just creating an instance *from* the literal, then upcasing it?
<apeiros>
"hello" is a literal
<catphish>
yes, but that code isn't modifying the literal is it?
<apeiros>
and .upcase! does not create a new instance, no.
SuperTux88 has joined #ruby
iamninja has joined #ruby
<catphish>
it's just creating an instance of string from the literal, then upcasing it
<apeiros>
yes
<catphish>
i'm not saying upcase created an instance, i'm saying "hello" does
astrobunny has quit [Ping timeout: 265 seconds]
<catphish>
so this does not demonstrate that the literal is mutable (imo)
<apeiros>
…
<apeiros>
ok
<tobiasvl>
"hello" created the instance, like you say. upcase! modifies it.
tkuchiki has quit [Remote host closed the connection]
<tobiasvl>
so that DOES demonstrate that the literal is mutable (imo)
eGGsha has joined #ruby
<catphish>
i'm not sure what the "literal" is in this scenatio
<tobiasvl>
if upcase! created an instance it would demonstrate the opposite
<tobiasvl>
like upcase (without the!)
<sevenseacat>
because we're using odd terminology
<catphish>
i agree
cornerman has quit [Ping timeout: 244 seconds]
cornerma1 is now known as cornerman
<tobiasvl>
not as odd as calling a literal a constant ;)
<sevenseacat>
"hello" is a string. it is a literal. it is mutable.
<sevenseacat>
though the first turned into "HELLO"
<catphish>
so what is the "literal" that you claim to have modified?
<sevenseacat>
the only string containing "hello" that I used
<tobiasvl>
catphish: the same one you modified, before returning a different literal
<workmad3>
catphish: `"hello"` is a string literal... when the ruby interpreter sees that, it creates a string object with the characters h, e, l, l, o in it in that order
<catphish>
apeiros: as far as i understand, there is "written code" which is clearly immutible, and there is an instance of string, but nothing in between
<ljarvis>
vasilakisfil: seems like a better use-case for middleware
einarj has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sharpmachine has joined #ruby
<sevenseacat>
aaargh the discussion continues
* sevenseacat
steps away from the computer
<apeiros>
sevenseacat: guess why I said "… ok"
<ljarvis>
:)
<tobiasvl>
catphish: well, there's symbols. symbol literals are basically string literals, but they are immutable and different instances of the same symbol point to the same string representation
<tobiasvl>
not sure if that's what you want for something "in between" but
<vasilakisfil>
ljarvis I don't think so.. why middleware? you have everything in the request object
<apeiros>
catphish: I don't intend to discuss it. you have a different understanding of what a literal is than what the consensus has. that's your choice. but don't be surprised if others have trouble understanding you if you use non-standard definitions of terminology.
ndrei has joined #ruby
<ljarvis>
vasilakisfil: sorry I don't see how that's relevant, this entire thing is perfect for middleware
<catphish>
apeiros: what do others think that a string literal is? the instance of string that the compiler produces?
<catphish>
apeiros: if so, i'm entirely happy to accept that
haxrbyte has quit [Quit: Leaving...]
<apeiros>
catphish: you can't assign a piece of written code to a variable, can you?
bauruine has joined #ruby
<vasilakisfil>
a rack middleware would make sense if you want to record some information before calling your app and/or after
<vasilakisfil>
I have everything I need in rack::request object, I just add some helpers methods
<apeiros>
oh, now I'm discussing it. mistaaake :D
<apeiros>
nvm
<catphish>
apeiros: i'd say you can assign 1 directly to a variable
<vasilakisfil>
I can't see why we need yet another middleware for that
<catphish>
apeiros: but perhaps this is a pointless distinction
<apeiros>
catphish: sorry. nvm. I really don't feel like discussing.
<catphish>
sure :)
sigurding_ has joined #ruby
sharpmachine has quit [Ping timeout: 265 seconds]
sigurding has quit [Ping timeout: 250 seconds]
sigurding_ is now known as sigurding
qiukun has joined #ruby
<workmad3>
catphish: I don't intend to go further in the discussion than this, but it may help to think of a literal as "A thing in the source code that evaluates to itself", e.g. a string literal "hello" will evaluate to a string "hello" when you type it into IRB or a script... same with numbers, hashes, arrays, etc.
<ljarvis>
vasilakisfil: is your readme correct? you use request.wait shouldn't that be request.prefer.wait ?
rrios has joined #ruby
<ynroot>
after install rails when im going to create a new project it says
<ljarvis>
vasilakisfil: also, you're creating a new preferpresenter instance for every call to prefer, you should cache it
<ynroot>
If 'rails' is not a typo you can use command-not-found to lookup the package that contains it, like this:
<ynroot>
cnf rails
anisha has quit [Ping timeout: 240 seconds]
<catphish>
workmad3: thanks, i agree with this definition entirely
<vasilakisfil>
yeah you are right thanks!
kraljev11 has quit [Ping timeout: 272 seconds]
_whitelogger___ has joined #ruby
tobyx_ has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
dgutierrez1287 has joined #ruby
sarkyniin has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
schaerli_ has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 244 seconds]
minmax has quit [Quit: WeeChat 0.4.3]
khebbie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 244 seconds]
ldnunes has joined #ruby
symm- has joined #ruby
tmtwd has quit [Ping timeout: 246 seconds]
texasmade has quit [Ping timeout: 256 seconds]
sigurding_ has joined #ruby
dimasg has joined #ruby
sigurding has quit [Ping timeout: 255 seconds]
sigurding_ is now known as sigurding
bruno- has quit [Ping timeout: 246 seconds]
StAnger has quit [Ping timeout: 244 seconds]
sarkyniin has joined #ruby
yardenbar has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
antgel has quit [Ping timeout: 255 seconds]
anisha has joined #ruby
dtcristo has joined #ruby
sigurding has quit [Client Quit]
antgel has joined #ruby
<catphish>
apeiros: i just realised, that warning doesn't occur if you *do* use a constant instead of a literal, so it turns out my poor terminology did ruin my question ;(
<catphish>
interesting that it makes that distinction
omegamike has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros>
it drops the warning if you have an expression instead of a literal RHS
schaerli has joined #ruby
<apeiros>
oh, actually… the warning with the literal also happens without -w
aevitas_ has joined #ruby
<apeiros>
seems I'm messing up ruby's flags anyway… no wonder, barely used them the last few years :-|
<apeiros>
-d sets $DEBUG
ynroot has quit [Ping timeout: 265 seconds]
<apeiros>
-w/-v set $VERBOSE
benlovell has quit [Ping timeout: 265 seconds]
aevitas has quit [Ping timeout: 244 seconds]
<yorickpeterse>
eh?
Soda has quit [Remote host closed the connection]
iceyec has joined #ruby
<ljarvis>
eh!
{756d6f} has quit [Ping timeout: 246 seconds]
strixd has joined #ruby
ihatenigggers has joined #ruby
<flughafen>
sup shevy
<flughafen>
sevenseacat:
strixd has quit [Excess Flood]
<flughafen>
just another eso on the barbie
qiukun has quit [Quit: qiukun]
strixd has joined #ruby
yardenbar has joined #ruby
freeze has quit [Ping timeout: 264 seconds]
que__ has quit [Quit: Page closed]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
freeze has joined #ruby
bruno- has joined #ruby
sarkyniin has quit [Ping timeout: 260 seconds]
leesharma has joined #ruby
white_bear has quit [Ping timeout: 244 seconds]
schaerli has quit [Remote host closed the connection]
<tobiasvl>
it's executed when the class is loaded (as the file is loaded and the code is read). it also only executes once per class, it has nothing to do with instances of the class
eGGsha has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
dtcristo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kannan4k>
thanks, tobiasvl. so TSheets::Repository.classes this is a method returns a iterable?
<saransh__>
that sounds stupid, but i don't have much experience in ruby
schaerli has joined #ruby
iamninja has quit [Quit: WeeChat 1.2]
r_baron has joined #ruby
sankaber has joined #ruby
n008f4g_ has joined #ruby
Mia has quit [Ping timeout: 265 seconds]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamninja has joined #ruby
Guest75590 has joined #ruby
bmurt has joined #ruby
aevitas_ has quit [Ping timeout: 256 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
lxsameer_ has quit [Quit: Leaving]
lxsameer has joined #ruby
christiandsg has joined #ruby
schaerli has quit [Remote host closed the connection]
OlecraM_ has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
g3funk is now known as braidn
iamninja has quit [Client Quit]
sigurding_ has joined #ruby
iamninja has joined #ruby
prefixed has joined #ruby
walteriz_ has joined #ruby
sigurding has quit [Ping timeout: 244 seconds]
sigurding_ is now known as sigurding
decoponio has joined #ruby
zeeraw has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie_ has quit [Remote host closed the connection]
eGGsha has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
dimasg has quit [Ping timeout: 240 seconds]
victortyau has joined #ruby
banister has joined #ruby
walterizfie has quit [Ping timeout: 244 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
zeroDivisible has quit [Quit: WeeChat 1.2]
zeroDivisible has joined #ruby
Tomasso has joined #ruby
<saransh__>
<jhass>: I have a file theme.liquid
<saransh__>
How can i run it?
<saransh__>
without passing images and all
<Tomasso>
i have a ruby object that have some blocks within Procs.. for example. Is there some way to make .to_json render those blocks as simple strings and not avoid them ?
<wmoxam>
saransh__: you need to write a ruby program
<wmoxam>
saransh__: otherwise how would you pass template variable, etc?
sigurding_ has joined #ruby
mistermocha has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
<jhass>
Tomasso: implement an as_json method that returns a hash with the wanted representation
swills has joined #ruby
ndrei has joined #ruby
<saransh__>
firstly can you tell me how to run a file having .liquid extension
sigurding has quit [Ping timeout: 244 seconds]
sigurding_ is now known as sigurding
<wmoxam>
saransh__: I did :D
allcentury has quit [Ping timeout: 264 seconds]
<jhass>
saransh__: the way in my link is the only way
<saransh__>
<wmoxam>: in normal case, how?
<wmoxam>
saransh__: you need to write a ruby program
schaerli has joined #ruby
iamninja has quit [Quit: WeeChat 1.2]
<wmoxam>
saransh__: similar to the example on the liquid homepage
<jhass>
saransh__: repeating your question won't get you a different answer to it
saransh__ has quit [Quit: Page closed]
<jhass>
and bye
mistermocha has quit [Ping timeout: 246 seconds]
<wmoxam>
jhass: I think saransh was expecting a liquid2html program being available
OlecraM_ has quit [Quit: Saindo]
<jhass>
I think saransh was immune to doing some actual learning
Violentr has joined #ruby
sigurding_ has joined #ruby
iamninja has joined #ruby
<[k-_>
i think all /web/ users are like that
sigurding has quit [Ping timeout: 246 seconds]
sigurding_ is now known as sigurding
<jhass>
I think all people that do such generalizations are stupid
<[k-_>
:(
bronson has joined #ruby
<workmad3>
jhass: burn :D
<wmoxam>
jhass: it sounded like they are a frontend dev, backend stuff is pretty intimidating for many :p
<workmad3>
jhass: also, a bit of a self-burn there too ;)
<jhass>
workmad3: intentionally ;)
<jhass>
wmoxam: I'm sure there's a JS implementation for liquid by now :P
<workmad3>
jhass: yeah, I figured you'd spot it... I wasn't so sure about [k-_ so I figured I'd point it out to make him feel better :)
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Scriptonaut has joined #ruby
leesharma has quit [Ping timeout: 260 seconds]
banister has joined #ruby
Alayde has joined #ruby
<Scriptonaut>
hey guys, have any of you worked with the imgur api? I registered my application, but none of the gems I see show you how to query random images
<Scriptonaut>
I want to be able to use a search term, and select various images based on that
<Scriptonaut>
like: search 'cats'
<Scriptonaut>
and then choose from a collection of results, anyone do anything like this before?
<ashleyhindle>
I've not, but my twitter feed suggests otters are the new cats - not sure what's going on there
CloCkWeRX has joined #ruby
bartj3_ is now known as bartj3
<Scriptonaut>
haha
prefixed has quit [Changing host]
prefixed has joined #ruby
<Scriptonaut>
I might have to roll my own
bruno- has quit [Ping timeout: 272 seconds]
<ashleyhindle>
I suspect so
<ashleyhindle>
I'm thinking I could launch ottur.com or otterur.com as an imgur for otters
bruno- has joined #ruby
<Scriptonaut>
sounds like a plan you should
juanpablo_ has joined #ruby
charliesome has joined #ruby
riffraff has quit [Quit: This computer has gone to sleep]
ndrei has joined #ruby
juanpablo_ has quit [Read error: Connection reset by peer]
abdulrehman has joined #ruby
<abdulrehman>
hi there
Soda has joined #ruby
juanpablo_ has joined #ruby
<platzhirsch>
hi abdulrehman
<abdulrehman>
I'd like to tokenize sql in ruby, I thought about using erb but that's for different templating problems. any advice?
riffraff has joined #ruby
<workmad3>
abdulrehman: as in you want to reduce an SQL string into tokens in a parse tree with ruby?
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ynroot>
sevenseacat: ok already done, thanks ready to go learning ruby on rails
Igorshp has quit [Remote host closed the connection]
cubicool has joined #ruby
blue_deref has joined #ruby
weemsledeux has joined #ruby
<cubicool>
How does Sinatra (or any Ruby module) detect that it is (for lack of a better phrase) "being run" and invoke certain functions?
riotjones has quit [Remote host closed the connection]
rdar has joined #ruby
<shevy>
I am sure via require calls
<cubicool>
I'd like to install something similar for my module, but just using __FILE__ == $FOO in my module obviously won't do it...
danzilio has quit [Quit: My computer has fallen asleep!]
CloCkWeRX has joined #ruby
<yorickpeterse>
cubicool: files are just executed line by line basically
<yorickpeterse>
a require() just jumps to a given file and runs everything in it
j4cknewt has joined #ruby
Igorshp has joined #ruby
Xzanron has quit [Quit: Leaving]
<adaedra>
cubicool: by looking at $0
sigurding has quit [Quit: sigurding]
<havenwood>
that variable is broke
astrobunny has joined #ruby
sigurding has joined #ruby
L8 has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
fmcgeough has joined #ruby
kies^ has joined #ruby
cats has quit [Quit: Wow, rude.]
Rollabunna has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Channel6 has joined #ruby
StAnger has quit [Quit: leaving]
sargas has joined #ruby
mary5030 has joined #ruby
railsraider_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
railsraider has quit [Ping timeout: 244 seconds]
railsraider_ is now known as railsraider
RegulationD has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
Rollabunna has quit [Ping timeout: 246 seconds]
mwksl has joined #ruby
c0ncealed has joined #ruby
DexterLB has joined #ruby
astrobunny has quit [Remote host closed the connection]
<ynroot>
uptime
<ynroot>
Uptime: 45 minutes
Xiti` has quit [Quit: Xiti`]
<ynroot>
Sysinfo for 'linux-gc9c.site': Running inside KDE 4.14.9 on openSUSE 13.2 (Harlequin) powered by Linux 4.1.2-1-desktop, CPU: Intel(R) Core(TM) i3-4005U CPU @ 1.70GHz at 1699-1700/1700 MHz, RAM: 2753/3874 MB, Storage: 145/463 GB, 212 procs, 0.76h up
Sypheren has quit [Ping timeout: 246 seconds]
mwksl has quit [Quit: leaving]
rippa has joined #ruby
christiandsg has joined #ruby
Xiti has joined #ruby
kokoleavia has joined #ruby
thiagovsk has joined #ruby
gheegh has quit [Ping timeout: 244 seconds]
GBrawl has quit [Quit: (null)]
fgo has quit [Quit: WeeChat 1.1.1]
sarkyniin has joined #ruby
decaff has quit [Quit: Leaving...]
sigurding_ has joined #ruby
mwksl has joined #ruby
arup_r has joined #ruby
<ljarvis>
ynroot: is there a point to your spam?
sigurding has quit [Ping timeout: 272 seconds]
sigurding_ is now known as sigurding
fullofcaffeine has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
khebbie has joined #ruby
khebbie_ has joined #ruby
<ynroot>
ljarvis: testing man, this my second day on IRC, any problem on testing stuff
snophey has joined #ruby
<adaedra>
testing what
<ynroot>
some cmd
<ljarvis>
ynroot: yes, please dont do that in here
<ljarvis>
this channel isn't for your testing
gambl0re has joined #ruby
sinkensabe has joined #ruby
otisZart has joined #ruby
KinderSpiel has joined #ruby
<KinderSpiel>
what's up?
<mwksl>
Are there any particular Ruby books you folks would recommend for an intermediate rubyist?
<apeiros>
ein Klangkarussell
<adaedra>
sky
<KinderSpiel>
Anyone can help me with finding real ruby jobs?
<sevenseacat>
as opposed to...?
<sevenseacat>
fake ones?
<rdark>
fake ones
<mwksl>
A fake ruby job
<KinderSpiel>
yeah
sharpmachine has joined #ruby
prestorium has joined #ruby
<Guest75590>
is there an article on writing a spec for an rspec custom matcher? I can't find any and I've had a bug in my matcher that's been throwing me for a loop.
jobewan has joined #ruby
tagrudev has quit [Remote host closed the connection]
<KinderSpiel>
pretty much everything I see is for recruiter honeypots :)
<mwksl>
It was created by one of the founders of 37Signals
leesharma has joined #ruby
<mwksl>
It's at-least a good lead. You might be looking specifically at Rails though. Not sure how you feel about that
casadei_ has joined #ruby
eminencehc has joined #ruby
christiandsg has joined #ruby
safeforge has quit [Remote host closed the connection]
sharpmachine has quit [Remote host closed the connection]
<KinderSpiel>
nah, man, I can't find work anywhere
<adaedra>
Did you search?
<KinderSpiel>
would work on pretty much anything, I've done Java in the past too
<mwksl>
Location?
prettiestPony11 has joined #ruby
<KinderSpiel>
what bothers me is I see a lot of ads
rbowlby_ has joined #ruby
yqt has quit [Ping timeout: 256 seconds]
<KinderSpiel>
but when I send a CV, no erply from there
rbowlby has quit [Ping timeout: 255 seconds]
<KinderSpiel>
*reply
<mwksl>
I'm in kinda the opposite situation.
chinmay_dd has joined #ruby
<mwksl>
I got hired on as a Ruby Dev, and have been doing Business Integration the whole time
<KinderSpiel>
Lisbon Portugal
<mwksl>
It's so ridiculous
<mwksl>
Portugal. Hmm :-/
icebourg has joined #ruby
<abdulrehman>
is there a way to truncate a float not to round?
dtzitz has joined #ruby
<KinderSpiel>
yeah, suppose so... but getting a remote gig should be that hard these days, should it?
quimrstorres has joined #ruby
<mwksl>
Well, I live in the Midwest, in the United States and the work here for Ruby is non-existent. I've been told Oregon, Washington, and New York are worthwhile.
<workmad3>
abdulrehman: ??
walterizfie has quit [Quit: Leaving...]
<mwksl>
I don't think so. Check out that website, and see what it leads you to. I haven't used it, but I've heard good things
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie_ has quit [Remote host closed the connection]
Guest75590 is now known as Vimz
Philipp__ has quit [Read error: Connection reset by peer]
quimrstorres has quit [Remote host closed the connection]
livathinos has quit []
quimrstorres has joined #ruby
leesharma has quit [Ping timeout: 244 seconds]
<mwksl>
I've run across quite a few Rails jobs in Chicago, IL
fullofcaffeine has quit [Remote host closed the connection]
kokoleavia has quit [Ping timeout: 244 seconds]
<KinderSpiel>
mwks, I sure will, website looks interesting
snockerton has joined #ruby
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
shock_one has quit [Remote host closed the connection]
<mwksl>
Okay! Good luck. :) You'll have to report back and tell us what you find.
schaerli has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dudedudeman has quit [Remote host closed the connection]
<abdulrehman>
workmad3: instead of rounding, is there a method which simpley truncate the float at a specific decimal?
s2013 has joined #ruby
<ljarvis>
:/
sigurding_ has joined #ruby
<ljarvis>
abdulrehman: what do you have and what do you want?
<Vimz>
How do I write a spec for a custom matcher? All I want to test is that the failure message, failure message when negated and description get called depending on the data.. Basically I've found a bug in my custom matcher and I want to stamp it out properly with TDD.
<abdulrehman>
I can do it the long way to be honest, by change it to string and truncate anything after the ',' but being lazy
dudedudeman has joined #ruby
<ljarvis>
Vimz: #rspec
<workmad3>
abdulrehman: err... no, because that's not how floats work (they can be unrepresentable at pretty much any number of decimal points, not just large numbers)
<Vimz>
ljarvis nobody's evere there :'(
<workmad3>
abdulrehman: e.g. 10.1 is unrepresentable... how do you just 'truncate' that?
<abdulrehman>
ljarvis: for example float number 22.2229 truncate it to third decimal becomes 22.222, if we round it will become 22.223
<gregf_>
abdulrehman: 10.25.to_s[/[^.]+/] or else *cries* . never ever had to do something like that :/
<ljarvis>
no :|
<Vimz>
does anyoone here have a bit of indepth knowledge regarding rspec? #rspec is a graveyard
<gregf_>
heh
<ljarvis>
gregf_: srsly stahp
<gregf_>
heh lol
Silox| has quit [Quit: Connection closed for inactivity]
<ljarvis>
Vimz: please just wait, spamming isn't going to help. Did you check the (well covered) rspec docs?
<dudedudeman>
Vimz: i'd definitely hit up #rubyonrails guys
<adaedra>
Rationnals seems to support truncating with an argument
andikr has quit [Remote host closed the connection]
<abdulrehman>
gregf_: hahaha don't blame me man, the spec asks for that what can I do for them.... the business analyst are the one who sets the specs and they are really not aware
<abdulrehman>
of the problem
<ljarvis>
Vimz: also yes ror is probably a good place to ask as well
<workmad3>
abdulrehman: you could push back on the requirement and say it's not a simple thing to implement
<adaedra>
lol, truncating to a given place, not simple thing.
rideh has quit [Quit: zap]
msnyon has joined #ruby
<ljarvis>
heh
<dudedudeman>
(not saying some of the folks on here haven't used or aren't experts at rspec, it's just that that is a heavily supported test suite by the rails community)
solars has quit [Ping timeout: 256 seconds]
<mwksl>
Vimz: also, you might be able to find what you need in a book like this: https://pragprog.com/book/achbd/the-rspec-book I know that's probably not the answer you were looking for, but just know that it's a resource as well.
PhantomSpank has joined #ruby
<abdulrehman>
workmad3: hahahha I do sometimes... and some other times I find a work around it
dgutierrez1287 has joined #ruby
Scriptonaut has left #ruby [#ruby]
<gregf_>
abdulrehman: 10.25.to_int or else. but out of curiosity. what are you trying to achieve?
rideh has joined #ruby
tubuliferous_ has joined #ruby
BeatzKilla has quit [Ping timeout: 255 seconds]
<Vimz>
mwksl thanks, i am still learning rspec. really thought matcher testing would be google-able :s
christia_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mwksl>
Vimz, I guarantee you already know more than me. :) I only have surface knowledge of it, but not much experience hehe.
KinderSpiel has quit [Ping timeout: 246 seconds]
<abdulrehman>
gregf_: basically I have to get some prices for some shares which are much more than 10 decimal places, they want to truncate anything else after the 10th position and not rounding, the problem with rounding is maybe gonna effect other calculation down the pipe
BeatzKilla has joined #ruby
Igorshp has quit [Remote host closed the connection]
mdavid613 has joined #ruby
christiandsg has quit [Read error: Connection reset by peer]
<workmad3>
abdulrehman: prices? don't use floats!!!!
<workmad3>
abdulrehman: wrap them in BigDecimal (which, incidentally, supports a truncate method that does what you want)
<workmad3>
abdulrehman: also, truncating is going to affect the calculation just as much as rounding would...
<gregf_>
abdulrehman: share prices. you need to also realise that a few pennies here and there make a lot of difference :/
mdavid613 has quit [Client Quit]
shock_one has joined #ruby
allomov has quit [Remote host closed the connection]
<jhass>
today: #ruby saves world economy
allomov has joined #ruby
chinmay_dd has quit [Read error: Connection reset by peer]
<adaedra>
ruby.gr
prestorium has quit [Quit: Konversation terminated!]
fabrice31_ has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 265 seconds]
rubie has joined #ruby
<workmad3>
abdulrehman: tbh, I'd expect truncating to affect the calculation *more* than rounding would...
mwksl_ has joined #ruby
<workmad3>
although that'll depend on how the values are distributed
snockerton has joined #ruby
christia_ has quit [Read error: Connection reset by peer]
mwksl has quit [Ping timeout: 256 seconds]
scripore has quit [Quit: This computer has gone to sleep]
exadeci has joined #ruby
railsraider has quit [Quit: railsraider]
<abdulrehman>
workmad3: they are not just simple prices, they are more than that... these has to do with indices and stock market and stuff
<workmad3>
abdulrehman: still shouldn't be using floats... floats will be doing their own rounding when you create the values
<abdulrehman>
gregf_: I guess that is why they are pushing for a truncate, but I thought a rounding should be more logical
tkuchiki has quit [Remote host closed the connection]
scripore has joined #ruby
<abdulrehman>
workmad3: I am getting the value from db, and they are coming from db as string anyways
Igorshp has joined #ruby
baroquebobcat has joined #ruby
sharpmachine has joined #ruby
Adran has quit [Quit: Este é o fim.]
sigurding_ has joined #ruby
<workmad3>
abdulrehman: ok... so BigDecimal.new(str_value_from_db).truncate(10)
sinkensabe has quit [Remote host closed the connection]
christiandsg has joined #ruby
<abdulrehman>
workmad3: let me try that one sec
sigurding has quit [Ping timeout: 246 seconds]
sigurding_ is now known as sigurding
<abdulrehman>
oh, and how do I stop the IRC notification who is going in/out they are moving the chat way too quick
<workmad3>
depends on client
<mwksl_>
You using irssi?
<abdulrehman>
I am using the browswer, they won't let me use it any other way, irc.lc
<darix>
in irssi all you need is /ignore -channel #ruby JOINS PARTS QUITS NICKS
nobitanobi has joined #ruby
dorei has quit [Read error: Connection reset by peer]
<darix>
i think somewhere on the irssi page i documented that once
<adaedra>
he's on the web gateways
<adaedra>
*-s
gregf has quit [Quit: WeeChat 1.1.1]
Adran has joined #ruby
<workmad3>
abdulrehman: can you create an SSH connection out of your network?
<workmad3>
abdulrehman: if so, you can always create a socks proxy with an SSH connection and use that to proxy a better IRC client connection ;)
<abdulrehman>
no way man hahahah .... they have so much tighet security here, I can't sometime use normal https websites.... hahahha they have everything locked down
<adaedra>
abdulrehman: click on the little icon on topleft, click options, check "Hide JOINS/PARTS/..."
<workmad3>
abdulrehman: fun :P
sigurding has quit [Quit: sigurding]
<abdulrehman>
adaedra: works
<abdulrehman>
thanks
<adaedra>
yw
<abdulrehman>
workmad3: trust me man, its sucks
<abdulrehman>
I'll join a strart up soon or something
<abdulrehman>
they are sooo uptight in here hahahah
ruurd has quit [Quit: ZZZzzz…]
peterhu_ is now known as peterhu
<darix>
workmad3: why proxy irc if you could just do mosh/ssh+tmux+irssi|weechat?
Cache_Money has joined #ruby
<abdulrehman>
I'd need a unix terminal to do that workmad3:
yosafbridge` has quit [K-Lined]
<abdulrehman>
sadly, we only use UX-HP which is not connected to the internet only our intranet
<adaedra>
and?
<adaedra>
ah
ynroot has quit [Quit: Konversation terminated!]
christiandsg has quit [Read error: Connection reset by peer]
<abdulrehman>
I am telling you, they are really uptight... and other IRC channels/websites are filtered out and blocked, no Idea how this one isnt
<abdulrehman>
hahahahah just lucky i guess
<adaedra>
for now
christiandsg has joined #ruby
<abdulrehman>
adaedra: hahahha for now
s2013 has joined #ruby
bruno- has joined #ruby
lokulin has quit [Ping timeout: 256 seconds]
dfockler has joined #ruby
Rollabunna has joined #ruby
<abdulrehman>
anyway guys, thanks for the help....
<gregf_>
mvn install
<gregf_>
oops :/ sorry
rehat has joined #ruby
Jarboe has joined #ruby
chinmay_dd has joined #ruby
shock_one has quit [Remote host closed the connection]
<mwksl_>
godspeed
casadei_ has quit [Remote host closed the connection]
riotjones has joined #ruby
gregf has joined #ruby
dseitz has joined #ruby
pengin has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
<abdulrehman>
:d
bruno- has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
Rollabun_ has joined #ruby
shock_one has joined #ruby
shock_one has joined #ruby
<workmad3>
abdulrehman: did BigDecimal fit your needs then?
stan has quit [Ping timeout: 246 seconds]
riotjones has quit [Ping timeout: 264 seconds]
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yosafbridge has joined #ruby
ascarter has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<abdulrehman>
workmad3: nop, everytime I use BigDec it gives me an error
<workmad3>
abdulrehman: ah... do 'require "bigdecimal" ' first then
prettiestPony11 has quit [Read error: Connection reset by peer]
casadei_ has joined #ruby
<workmad3>
abdulrehman: it's frequently loaded as standard in a lot of environments, but it's part of the stdlib, not core ruby, so in gems, libraries and similar, you'll need to require it yourself
<abdulrehman>
dahhh
<abdulrehman>
hahaha ok
<abdulrehman>
one minute
rcvalle has joined #ruby
n008f4g_ has quit [Ping timeout: 252 seconds]
<adaedra>
30 seconds
scripore has joined #ruby
`El`Santo has joined #ruby
usershell has joined #ruby
rideh has quit [Quit: zap]
scripore has quit [Client Quit]
<abdulrehman>
workmad3: that doesn't do what I need
<abdulrehman>
adaedra: your counting? hahahha
<adaedra>
no, I'm bidding
<abdulrehman>
kool
<adaedra>
Wait, it's the wrong way, isn't it
<abdulrehman>
I think so,
pengin has quit [Remote host closed the connection]
<abdulrehman>
should go higher
<abdulrehman>
haha
<adaedra>
this explain why I never win those
lokulin has joined #ruby
<abdulrehman>
adaedra: good luck next time haha
<abdulrehman>
workmad3: I did the following in the db
<abdulrehman>
convert(numeric(11,10),msv.weight) as 'weight'
bruno- has quit [Ping timeout: 244 seconds]
<abdulrehman>
sql embded in my jruby
scripore has joined #ruby
Hounddog has quit [Remote host closed the connection]
`El`Santo has quit [Quit: This computer has gone to sleep]
allomov has quit [Remote host closed the connection]
marr has joined #ruby
svdb64 has quit [Ping timeout: 246 seconds]
nobitanobi has quit [Remote host closed the connection]
varunwachaspati has joined #ruby
anisha has quit [Quit: Leaving]
shock_one has quit [Remote host closed the connection]
Ilyas has joined #ruby
p1k has quit [Ping timeout: 244 seconds]
Lingo has joined #ruby
thang_ is now known as thang
blue_deref has quit [Quit: bbn]
CloCkWeRX has quit [Remote host closed the connection]
<abdulrehman>
anyway, I'm off.... enough work for one day hahaha thanks all and maybe I'll see you tomorrow if they do not block me from accessing the channel hahah
sepp2k has quit [Quit: Leaving.]
christia_ has joined #ruby
theery has joined #ruby
christiandsg has quit [Read error: Connection reset by peer]
yqt has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Tomasso has quit [Quit: Page closed]
leesharma has joined #ruby
amclain has joined #ruby
<workmad3>
abdulrehman: you could always have a small netbook with a decent IRC client on it that you tether to your phone's mobile connection to get around corporate firewalls ;)
shock_one has joined #ruby
<jhass>
or a SOCKS5 proxy to a $10/year VPS
tennis has joined #ruby
jud^ has joined #ruby
Lingo has quit [Quit: (null)]
strixd has quit [Quit: 500]
<adaedra>
yeah, let's break company's filtering, this can only go well
leesharma has quit [Ping timeout: 246 seconds]
<dfockler>
unless your sys admin is blocking SOCKS traffic, but how likely is that right?!
<adaedra>
"Easy deployment with pip, npm" wuuuuuuuut
rideh has joined #ruby
<darix>
if you use a connection via phone already, mosh+tmux+irssi
<darix>
but yeah why simple if we can complicate it
chinmay_dd has quit [Read error: Connection reset by peer]
<adaedra>
use pigeons
<ljarvis>
tmux+irssi <3
leesharma has quit [Ping timeout: 256 seconds]
platzhirsch has left #ruby [#ruby]
<workmad3>
adaedra: at least my suggestion was using a machine not on the company network, it was merely in physical proximity with company machines ;)
<darix>
ljarvis: add juicessh+mosh to the mix ^^
BeatzKilla has quit [Remote host closed the connection]
sdothum has joined #ruby
mwksl_ is now known as mwksl
<adaedra>
workmad3: company may not allow to use a 3rd party machine on the workplace
<Vimz>
I swear there was a ruby block to supress all console output. silent{ puts 'hi' } #=> *nothing* have I misremembered?
ZYPP is now known as hool
<adaedra>
It remembers me a gem
fractalis has quit [Quit: Changing server]
MatthewsFace has joined #ruby
juanpablo__ has joined #ruby
momomomomo has joined #ruby
juanpablo_ has quit [Read error: Connection reset by peer]
<workmad3>
Vimz: are you possibly thinking of $stdin.noecho which will prevent user input from echoing to stdout inside the block provided?
mollymorphic has joined #ruby
<workmad3>
e.g. $stdin.noecho { puts "Password: "; gets } #=> user's password, with no console output
leesharma has joined #ruby
fractalis has joined #ruby
<workmad3>
s/output/echo
jud^ is now known as jud
jud has quit [Changing host]
jud has joined #ruby
sepp2k has joined #ruby
Violentr has quit [Ping timeout: 244 seconds]
<ljarvis>
btw you need to require io/console for that
michaeldeol has joined #ruby
konsolebox has quit [Quit: Leaving]
vasilakisfil has quit [Quit: Konversation terminated!]
<darix>
highline or so should filter it too
pengin has joined #ruby
<Vimz>
workmad3 that could be it, I'll try it out :)
<darix>
or termios library for ruby
<workmad3>
Vimz: there's also `capture(:stdout)` provided by rails, but it's being deprecated
<darix>
Vimz: /usr/lib64/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/prompt.rb:67: $stderr.puts "Text will be echoed in the clear. Please install the HighLine or Termios libraries to suppress echoed text."
baweaver has joined #ruby
<havenwood>
Vimz: Not a block, and in short-form, but you can easily make a block to silence stdout and stderr for the current process: $stdout = $stderr = StringIO.new; 'silent here'; $stdout, $stderr = STDOUT, STDERR
[Butch] has joined #ruby
bricker has joined #ruby
banister has quit [Ping timeout: 244 seconds]
shock_one has quit [Remote host closed the connection]
christia_ has quit [Read error: Connection reset by peer]
christiandsg has joined #ruby
towski_ has joined #ruby
wpp has quit [Quit: ZZZzzz…]
<havenwood>
require 'stringio'
christiandsg has quit [Remote host closed the connection]
systemnate has quit [Remote host closed the connection]
<havenwood>
darix: I'm not really familiar with termios but highline would do it nicely. Or I'd probably just write the single method myself unless I was using other highline stuff.
fantazo has joined #ruby
<havenwood>
bootstrappm: g'mornin
Muhannad has joined #ruby
RegulationD has quit [Remote host closed the connection]
fullofcaffeine has quit [Quit: Leaving...]
leafybas_ has quit [Remote host closed the connection]
leafybasil has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scottschecter has quit [Quit: Leaving]
rbowlby_ has quit [Remote host closed the connection]
rbowlby has joined #ruby
michaeldeol has quit [Ping timeout: 246 seconds]
<prefixed>
yo. anyone have any ideas as to how I can wait while some asynchronous code completes?
michaeldeol has joined #ruby
crazydiamond has joined #ruby
<[k-_>
sleep
_djbkd has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
leafybasil has quit [Ping timeout: 250 seconds]
wldcordeiro has quit [Quit: Konversation terminated!]
Kully3xf_ has joined #ruby
khebbie has joined #ruby
khebbie_ has joined #ruby
railsraider has quit [Ping timeout: 256 seconds]
<jhass>
prefixed: asynchronous using what?
kully3xf has quit [Ping timeout: 240 seconds]
Zai00 has quit [Quit: Zai00]
<prefixed>
net-ssh. i am using exec
baweaver has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
wallerdev has joined #ruby
JimmyNeutron has joined #ruby
beef-wellington has joined #ruby
<prefixed>
I've never done anything like this before. Here's my method though. It isn't clear to me as to how I'd make the exec loop block until finished: http://pastebin.com/RsKrYFU7
paulcsmith has quit [Read error: Connection reset by peer]
sp4rrow has joined #ruby
paulcsmith has joined #ruby
bhorn1|away has joined #ruby
<jhass>
?guys prefixed
<ruboto>
prefixed, we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
bhorn1|away is now known as bhorn1
<jhass>
to answer: usually you try to reduce the thing you look at to the minimum
sshuff|gone has joined #ruby
<jhass>
for example in the code you pasted you could try to extract stuff into smaller methods with descriptive names
<jhass>
finding the names already makes you think about the details of what you're extracting
<prefixed>
jhass sorry. I generally consider "guys" to be gender-agnostic. However, for the benefit of immersion, i'll use this channel's vernaclar
<busterarm>
so i have a cognitive distortion with filterting
<busterarm>
err filtering
<prefixed>
I tend to feel like I go too fast when programming. I gloss over the details because I'm so concerned with finishing
<busterarm>
focus is something that is practiced, honestly
<ruboto>
mrbeardy, it doesn’t matter if it’s "normal"/gender neutral to say "guys" in your idiolect. "You guys" to refer to a mixed group is erasure. All we ask from you is to be a decent channel member and respect that. If you want to further discuss this, join #ruby-offtopic.
quimrstorres has quit [Remote host closed the connection]
sshuff has quit [Quit: Leaving]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wmoxam>
shevy: we all win
childz has joined #ruby
<wmoxam>
winners all around
<acovrig>
when I do .text on the td, I get the text I want, but sometimes there is a div/span/p inside that has text that gets roped into the td.text…
<shevy>
well one win would be that the channel is bigger nowadays
quimrstorres has joined #ruby
sshuff|gone is now known as sshuff
michaeldeol has joined #ruby
jdeen has joined #ruby
psy has quit [Disconnected by services]
psy_ has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
lannonbr has quit [Quit: WeeChat 1.2]
swills has quit [Ping timeout: 244 seconds]
bruno- has quit [Ping timeout: 246 seconds]
swills has joined #ruby
<dfockler>
all the people who usually answer questions are busy arguing
<bootstrappm>
^ hahah
ynroot has quit [Quit: Konversation terminated!]
benlovell has joined #ruby
ynroot has joined #ruby
childz has left #ruby [#ruby]
chipotles has joined #ruby
<bootstrappm>
acovrig not any easy way that I know if. The solution to me would be to get the text of all the children (just one level deep) and subtract it from the general text
<acovrig>
bootstrappm: since the div isn’t always there, wouldn’t I need something like if children.count > 0 so I don’t throw an exception from looking for the non-existant div?
workmad3 has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 264 seconds]
riotjone_ has joined #ruby
parduse has quit []
<bootstrappm>
no acovrig I don't think so. Use the .children method of the underlying Nokogiri instance then .each on it to get the text. If there's no children it'll just give you an empty array and the each won't do anything
ndrei has joined #ruby
<ljarvis>
acovrig: css or xpath?
<ljarvis>
or neither
<ljarvis>
(if you're using the mechanize helper methods)
yaw has joined #ruby
<busterarm>
dfockler: lol
<arup_r>
>> require 'date'; p (Date.today .. Date.today.next_day(7)).size
<arup_r>
so i need to expend the array to get the count.. lol Ruby is weak in this part
<ljarvis>
acovrig: if something isn't working or you have a feature suggestions, please let me know on the mechanize issue tracker
parduse has quit [Client Quit]
ips|malc has joined #ruby
texasmade has quit [Ping timeout: 250 seconds]
_blizzy_ has quit [Ping timeout: 246 seconds]
arooni-mobile has joined #ruby
podman has joined #ruby
roolo has joined #ruby
JoshGlzBrk has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
blaines_ has joined #ruby
<acovrig>
bootstrappm, ljarvis: thanks, I’ll look into that, unfortuantely this project just back-burnered for now though...
Igorshp has quit [Remote host closed the connection]
solars has quit [Ping timeout: 246 seconds]
<Ox0dea>
arup_r: You're trying to determine how many days are left in the current week, yes?
<Bish>
can someone tell me how to handle HEAD requests with webmachine?
duderonomy has quit []
benlovell has joined #ruby
<ljarvis>
Bish: yeah, first step: remove webmachine
<bootstrappm>
arup_r feel free to contribute ;) the source is in the link you sent
<Bish>
ljarvis, and replace it with what?
parduse has joined #ruby
fantazo has quit [Ping timeout: 244 seconds]
<Bish>
ljarvis, and what is the problem with webmachine?
pocketprotector has quit [Ping timeout: 240 seconds]
<havenwood>
Bish: What's the problem with HEAD requests? Added 'HEAD' to #allowed_methods and they don't work?
<ljarvis>
Bish: actually I was mixing it up with something else; so I take that back. I don't know anything about webmachine I'm afraid
paulcsmith has joined #ruby
<Bish>
havenwood, it doesn't do anything it just says 200 OK
<Bish>
i don't know how to fill the response when using head
<havenwood>
Bish: And what does a GET say?
ruurd has quit [Quit: ZZZzzz…]
<ljarvis>
fill the response? it's a HEAD request..
<havenwood>
Bish: ^
<ljarvis>
it has no body
<havenwood>
Bish: 200 OK is correct?
yfeldblum has joined #ruby
<havenwood>
Bish: If so, it's working. ;)
<Bish>
what exactly does head do, since restful wiki says it "shows metadata of the resource"
ynroot has quit [Quit: Konversation terminated!]
sinkensabe has joined #ruby
juanpablo___ has joined #ruby
aevitas_ has joined #ruby
<Bish>
ah. you want to tell me, showing the http headers is the point
<ljarvis>
:)
<havenwood>
Bish: A HEAD request MUST NOT return a message-body in the response.
<ljarvis>
all 'bout those headers
<Bish>
is it dirty to add custom headers when wanting to do crud?
<ljarvis>
see curi -I also
<havenwood>
Bish: Otherwise the metadata should be the same as the identical GET request.
benlovell has quit [Ping timeout: 252 seconds]
<ljarvis>
Bish: custom headers for what?
<Bish>
well it's the first time im doing crud, and i want to find a clean way to display the fieldnames of the resource
sigurding has quit [Quit: sigurding]
<Bish>
s/it's/its
aevitas has quit [Ping timeout: 256 seconds]
benlovell has joined #ruby
<Bish>
in this case, the fieldnames of the sql-table
<Ox0dea>
Bish: Unnecessary substitution there.
Contigi has joined #ruby
<Bish>
Ox0dea, not a native speaker ;)
<Ox0dea>
No worries. Just thought I'd point it out.
danman has quit [Quit: danman]
gix has quit [Ping timeout: 240 seconds]
<Bish>
havenwood, would you be so kind and give me a hint, how i would do that ?
workmad3 has joined #ruby
lee_ has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
ruurd has joined #ruby
bruno- has joined #ruby
n008f4g_ has joined #ruby
leesharma has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
danman has joined #ruby
aryaching has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
<Bish>
;;
jackjackdripper has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Igorshp has joined #ruby
ndrei has joined #ruby
lannonbr has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 246 seconds]
Stany has joined #ruby
fantazo has joined #ruby
benlovell has joined #ruby
<Ox0dea>
Bish: Keep your scheming comments to yourself.
PhantomSpank has quit []
Tamae has quit [Ping timeout: 244 seconds]
sshuff is now known as sshuff|infcos
senayar has quit [Remote host closed the connection]
pocketprotector has joined #ruby
Rollabun_ has quit [Quit: Leaving...]
Tamae has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has joined #ruby
dumdedum has quit [Quit: foo]
Stany has quit [Ping timeout: 252 seconds]
bumbar_ has quit [Ping timeout: 244 seconds]
blaines has joined #ruby
Kalov has joined #ruby
sarkyniin has quit [Ping timeout: 264 seconds]
kully3xf has left #ruby [#ruby]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troulouliou_dev has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blaines_ has joined #ruby
schaerli has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
benlovell has quit [Ping timeout: 260 seconds]
jdeen has quit [Quit: Lost terminal]
sargas has joined #ruby
Alina-malina has joined #ruby
chills42 has quit [Remote host closed the connection]
blaines has quit [Ping timeout: 244 seconds]
chills42 has joined #ruby
willgorman|away has quit [Quit: EliteBNC - http://elitebnc.org (Auto-Removal: idle account/not being used)]
Matthews_ has joined #ruby
stantonnet has joined #ruby
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Bish>
is it dirty to have the fieldnames of the crud resource in the header?
Matthew__ has joined #ruby
Igorshp has quit [Remote host closed the connection]
<ljarvis>
Bish: more pointless than anything
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
<Bish>
then how would i do that?
iateadonut has quit [Ping timeout: 256 seconds]
<ljarvis>
do what?
<Bish>
have the field names in my web application
<ljarvis>
what are you trying to do exactly?
ruby-lang574 has joined #ruby
higuys has joined #ruby
<ruby-lang574>
hello
<Bish>
i need to have the field names of the resource in my webapplication, in this case the column names of the mysql-table;
weemsledeux has joined #ruby
<ruby-lang574>
is anybody familiar with resque?
gambl0re has quit [Ping timeout: 256 seconds]
<ljarvis>
Bish: that's so vague, but i'll try to make some assumptions. Are you using JSON?
<Bish>
yes
<ljarvis>
ruby-lang574: a little, though we switched to sidekiq quite some time ago
<ljarvis>
Bish: so, you return the values as JSON
MatthewsFace has quit [Ping timeout: 256 seconds]
chipotles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weemsledeux has quit [Max SendQ exceeded]
ryanprior has joined #ruby
<ljarvis>
JSON encoded in the response body
<ruby-lang574>
my understanding is that resque retrieves jobs from redis, am i correct? the thing is that since in am running on a VPS resque seems to require quite a bit of resources to run.
<ljarvis>
ruby-lang574: that is correct
<ruby-lang574>
i was wondering if i can push jobs from one or more servers that are not running workers into redis
Matthews_ has quit [Ping timeout: 260 seconds]
<ruby-lang574>
and have a dedicated system to run the workers
<jhass>
ruby-lang574: sure, they just need a shared Redis instance
<ljarvis>
ruby-lang574: yes, that's generally how it would be done in a production environment
<jhass>
make sure employ proper authentication or at least firewalling
<ruby-lang574>
i am using firewalling
<ruby-lang574>
and basic authentication user and password
spider-mario has joined #ruby
<ryanprior>
I have a big ugly destructuring line, can I get any suggestions for simplifying it or making better use of the language to make it readable? The line is: Conjur::Command.api.resources.map { |r| r.attributes["permissions"] }.reject(&:empty?).flatten.map { |r| r["role"] }.uniq.map { |r| r.split(":").drop(1).join(":") }
<ruby-lang574>
all right thanks!! will try it
<Ox0dea>
ryanprior: Can you given decent names to any of the intermediates?
<Ox0dea>
*give
chipotles has joined #ruby
<Bish>
ljarvis, then i won't have the fieldnames without doing a query on the resource
<Ox0dea>
ryanprior: Prefer flat_map over flatten.map.
blue_deref has joined #ruby
sarkyniin has joined #ruby
chipotles has quit [Client Quit]
bruno- has joined #ruby
<ryanprior>
Ox0dea: flat_map appears not to recursively flatten, so unfortunately it's not quite the same. I could give the intermediates names just to help the reader follow the logic.
sinkensabe has quit [Remote host closed the connection]
hahuang65 has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<ryanprior>
I feel like there ought to be a standard way of destructuring like some_hash.map( |entry| entry[someattribute] ) since that's a common pattern?
diegoviola has quit [Quit: WeeChat 1.2]
eminencehc has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<Ox0dea>
ryanprior: You're right about #flat_map, but I figured it might nevertheless be applicable in your case.
sinkensabe has quit [Remote host closed the connection]
<Ox0dea>
map(&:[], 'foo') would be nice, but we don't have it and might never. :/
<Ox0dea>
You could convert your Hash to an OpenStruct to expose its keys as methods, but that's surely overkill just to clean up a line.
bruno- has quit [Ping timeout: 240 seconds]
dwithers has joined #ruby
pl1ght has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
casadei_ has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
<jhass>
shock_one: ^
chipotle has quit [Read error: Connection reset by peer]
allcentury has quit [Ping timeout: 252 seconds]
shinnya has joined #ruby
<shock_one>
jhass: excuse me?
solars has joined #ruby
<jhass>
wasn't it you with &"foo"?
webopsx has joined #ruby
chipotle has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
<shock_one>
That's right, jhass. Maybe we could even pass the value to the constructor, like hash.map(&_ 'foo'), I'm not sure if the priorities are right.
kadoppe has quit [Ping timeout: 256 seconds]
<shock_one>
Oops, it won't be a constructor.
<shock_one>
Anyway, _ could be a method.
wallerdev has quit [Quit: wallerdev]
<shock_one>
Or can't it?
scripore has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
<Mon_Ouie>
Is '&_.call("foo")' what you're trying to do?
kadoppe has joined #ruby
blaines_ has quit [Ping timeout: 272 seconds]
<shock_one>
Mon_Ouie: I'm trying to make the interface prettier.
Igorshp has quit [Remote host closed the connection]
sarkyniin has quit [Quit: Quit]
parduse has quit []
sarkyniin has joined #ruby
<shock_one>
Wait a minute, I misunderstood the concept of the class. It's pretty fucking amazing, Ox0dea!
allcentury has joined #ruby
j4cknewt has quit [Remote host closed the connection]
<Ox0dea>
shock_one: Ha. Glad you like it, but it's really only for laughs.
tanath has joined #ruby
<shock_one>
Why so?
<shock_one>
I'd also use "it" as the kernel method name.
selva has joined #ruby
<shock_one>
But that might be after my yesterday's impression of Kotlan.
<arup_r>
suppose I have a hash which has package name and ranges of weekdays falls into the package. How can I get all possible full packages fall for any given date ranges ? https://gist.github.com/aruprakshit/bccee3f1524721743a7d
<selva>
in the above part of Hash, if I have the secondary_entity_id attribute at first, the update_attributes process doesn't throw the error
momomomomo has joined #ruby
danman has quit [Quit: danman]
aevitas has joined #ruby
kokoleavia has joined #ruby
goldfax has joined #ruby
anisha has joined #ruby
<selva>
Antiarc: I mean, I have scenario like in that github issue. When the application have secondary_entity_id at first it doesn't throw error. When it have secondary_entity_id at last, it throws error "ActiveRecord::RecordNotFound (Couldn't find PlaceEntity with ID=59790 for DiagnosticFacility with ID=):"
lkba has joined #ruby
tomaz_b has quit [Quit: Leaving]
<selva>
So I wanted to keep the secondary_entity_id attribute first in the Hash
<dfockler>
how the heck do I set a variable in one rspec test then use it in another rspec test?
<Antiarc>
dfockler: You shouldn't; tests should be separate. Use let() to define values that are visible to to tests, though
kraljev11 has quit [Ping timeout: 272 seconds]
<Antiarc>
selva: I'd suggest looking at the implementation to see how it's trying to extract the ID; I would be extremely surprised if it's actually order-dependent
danman has joined #ruby
aevitas_ has quit [Ping timeout: 246 seconds]
mrbeardy has quit [Ping timeout: 240 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
<selva>
Antiarc: It was working good before, I have upgraded from 2.3.5 to 2.3.18 and it started throwing error only at times as i mentioned above
JoshL has joined #ruby
sp4rrow has joined #ruby
<selva>
It works like charm when secondary_entity_id at first
hahuang65 has quit [Ping timeout: 260 seconds]
frem has joined #ruby
<selva>
The implementation looks good, it has mentioned secondary_entity_id clearly
<selva>
class DiagnosticFacility < Participation belongs_to :place_entity, :foreign_key => :secondary_entity_id
sargas has quit [Quit: This computer has gone to sleep]
romibuzi has joined #ruby
weaksauce has joined #ruby
dagda1 has joined #ruby
aevitas has quit []
wallerdev has joined #ruby
<arup_r>
I knew I am a dumb
EllisTAA has joined #ruby
<arup_r>
dfockler, thanks
<dfockler>
haha it's cool
benlovell has joined #ruby
<dfockler>
depending on ruby's #size implementation it could be O(1) or O(n)
<shock_one>
Ox0dea: maybe it would be better to have automatic currying, as in Haskell?
sargas has joined #ruby
<shock_one>
[1,2,3].zip([4,5,6]).map(+)
EllisTAA has quit [Client Quit]
<Vimz>
Right. How am I supposed to spec a custom matcher? Here I'm testing 'eq' works correctly. All specs shoud pass: https://gist.github.com/anonymous/68bb8f4d37a70a12723c Only the first exception passes. The expectations that contain failing expectations fail because the expectation inside them fails and doesnt return anything for the outerspec to evaluate.
ndrei has quit [Ping timeout: 250 seconds]
sinkensabe has quit [Remote host closed the connection]
Igorshp has joined #ruby
Musashi007 has joined #ruby
ndrei has joined #ruby
<dfockler>
shock_one: how would you handle arrays of different sizes?
ruurd has quit [Quit: ZZZzzz…]
tvw has quit [Remote host closed the connection]
<jhass>
Vimz: you need to pass a block to expect
<acovrig>
Is there any way (Xpath?) to find ‘a’ elements (mechanize) that have an href begining with “ViewAdmField”?
<jhass>
expect { stuff that raises }.to
<shock_one>
dfockler: if there are less elements that there are parameters, we return a curried function, if more - the last argument is the rest of elements.
cubicool has left #ruby [#ruby]
paulcsmith has joined #ruby
arooni-mobile has quit [Ping timeout: 246 seconds]
Axy has quit [Read error: Connection reset by peer]
romibuzi has quit []
Musashi007 has quit [Read error: No route to host]
safeforge has joined #ruby
Musashi007 has joined #ruby
romibuzi has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
ramfjord has quit [Quit: leaving]
<Ox0dea>
dfockler: Array#size is indeed O(1).
Musashi007 has quit [Client Quit]
<Ox0dea>
shock_one: That's an interesting approach, but it'd require monkey-patching, which is double-plus-ungood.
Musashi007 has joined #ruby
<jhass>
acovrig: yeah xpath has starts-with, a[starts-with(@href, "ViewAdmField")]
<Ox0dea>
shock_one: Better to just make the context class really smart.
<jhass>
er, single quotes I guess
kully3xf has joined #ruby
Mia has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: Lost in trance]
DroidBurgundy has joined #ruby
Musashi007 has quit [Client Quit]
freerobby has joined #ruby
Musashi007 has joined #ruby
<kully3xf>
how can I throw a switch into a command
<kully3xf>
but only if a user requests that be added
freerobby has quit [Ping timeout: 246 seconds]
<kully3xf>
so "do you want to add json attributes? y" then it adds it, if not don't. Wondering if there's a way to include an if statement mid command, or if I should just create a different method depending on user input
Dreamer3 has joined #ruby
k3asd` has quit [Ping timeout: 246 seconds]
<jhass>
>> add_a = true; add_b = false; "hey #{"aaa" if add_a}, ho #{"bbb" if add_b}"
<kully3xf>
ah I see so you can further evaluate a #{} statement
<kully3xf>
I get it. Perfect, thanks
rideh has quit [Quit: zap]
<jhass>
kully3xf: pretty much any Ruby is valid inside #{} even further #{} ;)
iwaffles has quit [Quit: iwaffles]
ndrei has quit [Read error: Connection reset by peer]
rideh has joined #ruby
ndrei has joined #ruby
duderonomy has joined #ruby
kokoleavia has quit [Ping timeout: 246 seconds]
neonalpine has quit []
rodfersou has quit [Ping timeout: 255 seconds]
sshuff is now known as sshuff|gone
rodfersou has joined #ruby
mollymorphic has joined #ruby
nahtnam has joined #ruby
Zarthus has quit [Quit: ZNC 1.7.x-git-196-5faaf67 - http://znc.in]
bronson has joined #ruby
Timba-as has joined #ruby
Zarthus has joined #ruby
f4cl3y has quit [Ping timeout: 246 seconds]
kully3xf has quit [Ping timeout: 252 seconds]
<Ox0dea>
jhass: "Pretty much any"? What's not?
<jhass>
I think we had this discussion before. I don't remember anything but I don't remember a definitive everything is allowed too
benlovell has joined #ruby
<Mon_Ouie>
Something that uses __END__?
<jhass>
not sure how you could even verify that
JoshL has quit []
<Ox0dea>
>> "#{__END__}"
<ruboto>
Ox0dea # => undefined local variable or method `__END__' for main:Object (NameError) ...check link for more (https://eval.in/406972)
<Ox0dea>
Mon_Ouie: You're good.
jenrzzz has quit [Ping timeout: 244 seconds]
romibuzi has left #ruby [#ruby]
<Ox0dea>
BEGIN is also invalid, but END and at_exit are copacetic.
quimrstorres has quit [Remote host closed the connection]
ruurd has joined #ruby
aryaching has quit [Ping timeout: 255 seconds]
riffraff has quit [Quit: This computer has gone to sleep]
dotix has joined #ruby
dotix has joined #ruby
<arup_r>
I have an array like [4,5,6,0,1,2,3,4,5,6,0,1,3] .. the digits are week day number... Now I want to count how many [4,5,6] array is present in the long array.
<arup_r>
What is the better way to find it ?
<Mon_Ouie>
each_cons + count
safeforge has quit [Remote host closed the connection]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
<acovrig>
Is it possible to clear a ncurses window without clearing the entire screen?
mary5030 has quit [Ping timeout: 246 seconds]
NeverDie has joined #ruby
<Ox0dea>
acovrig: Using ncurses-ruby?
<acovrig>
Ox0dea: yes
Channel6 has quit [Quit: Leaving]
<Ox0dea>
acovrig: Ncurses.erase should do it.
paulcsmith has joined #ruby
<Ox0dea>
Or Ncurses.werase(foo) if you want to clear a specific window.
n_blownapart has quit []
Vile` has quit [Ping timeout: 264 seconds]
Sypheren has quit [Ping timeout: 265 seconds]
<acovrig>
It seems to have been where I called my clear, werase seems to do the same as clear… but if I move my clear up and redraw the 2nd window it works OK
Vile` has joined #ruby
carlosoliveira has quit [Quit: Connection closed for inactivity]
<shevy>
tis the reason for curses as part of the name
<acovrig>
shevy: yea, but I get the feeling it’s the easiest way to have a status window on top of the output
Sypheren has joined #ruby
werelivinginthef has joined #ruby
<Ox0dea>
acovrig: Are you threaded?
acovrig has quit [Quit: acovrig]
PaulCapestany has joined #ruby
s00pcan has quit [Quit: Lost terminal]
surs has quit [Ping timeout: 265 seconds]
casadei_ has joined #ruby
paulcsmith has quit [Ping timeout: 244 seconds]
FernandoBasso has quit [Quit: May the force be with you.]
surs has joined #ruby
sargas has joined #ruby
sargas has quit [Max SendQ exceeded]
nobitanobi has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 256 seconds]
nobitanobi has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Alayde has quit [Ping timeout: 252 seconds]
nobitanobi has quit [Remote host closed the connection]
Sypheren has quit [Ping timeout: 255 seconds]
jobewan has quit [Quit: Leaving]
goldfax has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
paulcsmith has joined #ruby
<craysiii>
does ruby have something like rspec's let built in?
freerobby has quit [Quit: Leaving.]
<Ox0dea>
craysiii: How do you mean?
Sypheren has joined #ruby
Dreamer3 has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Quit: .]
decaff_ has joined #ruby
Dreamer3 has joined #ruby
decaff_ has quit [Client Quit]
PaulCapestany has joined #ruby
<craysiii>
ill ask later after i've thought about it more and formulated a coherent question.
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roolo has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
Salve has quit []
spider-mario has quit [Remote host closed the connection]
leesharma has quit [Ping timeout: 264 seconds]
dgutierrez1287 has quit [Ping timeout: 256 seconds]
Sypheren has quit [Ping timeout: 265 seconds]
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j4cknewt has quit [Remote host closed the connection]
dfockler has quit [Remote host closed the connection]
deepu has joined #ruby
prestorium has quit [Quit: Konversation terminated!]
podman has quit [Quit: Connection closed for inactivity]
bootstrappm has quit [Read error: Connection reset by peer]
ivanskie has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
paulcsmith has joined #ruby
Musashi007 has joined #ruby
cornerma1 has joined #ruby
darithorn has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 240 seconds]
cornerman has quit [Ping timeout: 260 seconds]
cornerma1 is now known as cornerman
ddarkpassenger has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
jenrzzz has joined #ruby
michael_mbp has quit [Excess Flood]
baweaver has quit [Remote host closed the connection]
diegoviola has joined #ruby
nobitanobi has joined #ruby
bruno- has joined #ruby
webopsx has joined #ruby
svdb64 has quit [Quit: WeeChat 1.2]
senayar has joined #ruby
rehat has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
xcyclist has joined #ruby
benlieb has quit [Quit: benlieb]
bruno- has quit [Ping timeout: 240 seconds]
<xcyclist>
I am trying to do a simple hello world on cygwin, and it's yelling at me about rubygems and require, of all things. What's with that? It's just a two line hello.rb?
juanpablo___ has quit [Quit: (null)]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
bruno- has joined #ruby
<xcyclist>
All I have is #/usr/bin/ruby<LF>puts "Hello, world."<lf>
juanpablo___ has joined #ruby
MatthewsFace has joined #ruby
quimrstorres has quit [Remote host closed the connection]
jenrzzz_ has joined #ruby
willywos has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
juanpablo____ has joined #ruby
omegamike has joined #ruby
blaines has joined #ruby
juanpablo___ has quit [Read error: Connection reset by peer]
nveselinov has quit [Quit: Connection closed for inactivity]
Ropeney has joined #ruby
<Ox0dea>
xcyclist: Please post the exact admonishment you're receiving.
workmad3 has quit [Ping timeout: 250 seconds]
shock_one has quit [Remote host closed the connection]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rcvalle has joined #ruby
leesharma has joined #ruby
juanpablo____ has quit [Ping timeout: 240 seconds]
neoseeker has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
drew0 has quit [Ping timeout: 272 seconds]
willywos has quit [Ping timeout: 255 seconds]
benlieb has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
omegamike has quit [Ping timeout: 272 seconds]
arooni-mobile has quit [Ping timeout: 246 seconds]