dfockler has quit [Remote host closed the connection]
charliesome has joined #ruby
<Ox0dea>
shevy: Have events transpired not in correlation with what you had planned?
Musashi007 has quit [Quit: Musashi007]
<al2o3-cr>
bamboozle, wish that was still on teletext :p
charliesome has quit [Client Quit]
<Aeyrix>
Has my careful abstraction of the truth led you to a frustration?
<Aeyrix>
Ox0dea: Are your
<Aeyrix>
whizzbangs
<Aeyrix>
shellacked?
shadoi has quit [Quit: Leaving.]
<Ox0dea>
My jimmies remain sufficiently unrustled.
<al2o3-cr>
pull your trollies up
dopie has joined #ruby
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
<Ox0dea>
The first rule of Troll Club is that you must pay the troll toll.
sideshowcoder has quit [Quit: Connection closed for inactivity]
nb_bez___ has joined #ruby
<Aeyrix>
So you'd say your jimmies aren't jambleD?
<Aeyrix>
s/D/d/
andybernard has quit [Ping timeout: 246 seconds]
uber has quit [Ping timeout: 244 seconds]
platzhirsch has left #ruby [#ruby]
RegulationD has quit [Remote host closed the connection]
rbowlby has quit [Remote host closed the connection]
<miah>
they're not jimmies, they're sprinkles!
anon_ has joined #ruby
frozen3 has joined #ruby
<Aeyrix>
meant to say jimbles
<Aeyrix>
fucked up
Yzguy has joined #ruby
<shevy>
Ox0dea what Aeyrix wrote!
yqt has quit [Ping timeout: 244 seconds]
<Ox0dea>
al2o3-cr: What shevy wrote!
<Aeyrix>
kek
<Aeyrix>
wait did al2 say something?
<Aeyrix>
i have a lot of people on ignore
<Aeyrix>
I CAN'T EVEN CHECK MY IGNORE LIST ON THIS APP
RobertBi_ has quit [Ping timeout: 256 seconds]
<Ox0dea>
Aeyrix: Issue the appropriate IRC command and monitor your traffic?
<Aeyrix>
ok al2 isn't ignore
<Aeyrix>
cole
<Aeyrix>
I think I did temporarily due to the spamming of ? ot
skade has quit [Quit: Computer has gone to sleep.]
robh71 has joined #ruby
<Ox0dea>
Non-initial ?ot is safe.
frozen3 has quit [Remote host closed the connection]
<Aeyrix>
Can't be too careful fam.
xxneolithicxx has quit [Ping timeout: 255 seconds]
Silox| has quit [Quit: Connection closed for inactivity]
<Ox0dea>
?ot is borked?
<Ox0dea>
?ot is borked.
michael_mbp has quit [Excess Flood]
marr has quit [Ping timeout: 252 seconds]
doublemalt_ has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
doublemalt_ has joined #ruby
xwct has quit [Ping timeout: 245 seconds]
jobewan has quit [Ping timeout: 246 seconds]
<Aeyrix>
might be offtopic
<Aeyrix>
maybe ssc removed it
<Aeyrix>
i wouldn't be surprised
bruno- has joined #ruby
charliesome has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
silkfox has joined #ruby
rubie has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
<Aeyrix>
Ox0dea: give me reaction images
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
northfurr has quit [Quit: northfurr]
ramfjord has quit [Ping timeout: 265 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
Looking forward to immutable String literals?
decaff has joined #ruby
chouhoulis has quit [Remote host closed the connection]
northfurr has joined #ruby
chouhoulis has joined #ruby
northfurr has quit [Client Quit]
jenrzzz has quit [Ping timeout: 264 seconds]
Mia has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
silkfox has quit [Ping timeout: 240 seconds]
<Ox0dea>
Aeyrix: I don't has. :/
<Ox0dea>
havenwood: 3.0 this Christmas?
<havenwood>
Ox0dea: 2.3 this Christmas with a flag, 3.0 by default.
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
polpak has quit [Quit: leaving]
takenory has joined #ruby
ramfjord has joined #ruby
Yzguy has quit [Quit: Zzz...]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stardiviner has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
stardiviner has quit [Client Quit]
neilnorthrop has quit [Remote host closed the connection]
jenrzzz has joined #ruby
northfurr has joined #ruby
stardiviner has joined #ruby
takenory has quit [Ping timeout: 246 seconds]
Azulinho has quit [Ping timeout: 246 seconds]
plshelpmeee has joined #ruby
devoldmx has joined #ruby
rfmind has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
<plshelpmeee>
Hello -- anyone ever able to run a Ruby file from a shell script?
northfurr has quit [Client Quit]
djbkd has joined #ruby
CloCkWeRX has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uber has joined #ruby
rfmind has quit [Client Quit]
lkba_ has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
charliesome has joined #ruby
<BraddPitt>
I believe it is the same as running it from the command line, plshelpmeee
<BraddPitt>
i.e. `ruby my_script.rb`
SenpaiSilver has joined #ruby
<plshelpmeee>
@BraddPitt - my thoughts exactly
<plshelpmeee>
However, no avail
<BraddPitt>
is there any output?
Raboo has quit [Ping timeout: 252 seconds]
<plshelpmeee>
works fine from the command line without encompassed in a shell script
Mia has quit [Read error: Connection reset by peer]
<BraddPitt>
can you paste your shell script?
<plshelpmeee>
yeah
<plshelpmeee>
only one line needed for testing, really
SenpaiSilver has quit [Max SendQ exceeded]
Raboo has joined #ruby
<plshelpmeee>
#!/usr/bin/ruby
northfurr has joined #ruby
<plshelpmeee>
ruby file.rb "input data"
bronson has joined #ruby
<plshelpmeee>
the file is in root of a rails app
<plshelpmeee>
so file.rb
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
SenpaiSilver has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
tsigo has joined #ruby
<plshelpmeee>
does require a file in config/constants
devoldmx has quit [Ping timeout: 250 seconds]
<plshelpmeee>
too which i get
<plshelpmeee>
"/Users/rudd/.rvm/rubies/ruby-2.1.4/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- bundler/setup (LoadError)"
jenrzzz has quit [Ping timeout: 245 seconds]
northfurr has quit [Client Quit]
jenrzzz has joined #ruby
blackmesa has joined #ruby
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
<tsigo>
I've got a regex question! I'm trying to exclude certain characters at the end of links found in a string. I've got it working for excluding periods and commas, but I seem to have trouble excluding HTML entities (like >) as well. Rubular is here: http://rubular.com/r/cxjPyZc7Sb
bronson has quit [Ping timeout: 260 seconds]
<tsigo>
The regex I've currently got is `([a-z][a-z0-9\+\.\-]+:\/\/\S+)(?<!,|\.)`
tkuchiki has quit [Remote host closed the connection]
bb010g has joined #ruby
<tsigo>
Ox0dea: Not what I'm trying to do ;) I just want to find links inside text. I want to get rid of the HTML entity.
<nofxx>
tsigo, I'm trying something like this: (\()?([a-z][a-z0-9\+\.\-]+:\/\/\S+)(?<!,|\.|^\\1)
<nofxx>
use a match to see if the ( was before
<nofxx>
not working , just so you might fix it faster, an idea
snath has joined #ruby
<tsigo>
nofxx: Hmm, I'm not sure how that helps
snath has left #ruby [#ruby]
ledestin has joined #ruby
System42 has quit [Quit: Leaving]
<nofxx>
tsigo, can't think of another way w/o look-behind
nolbuk has joined #ruby
maletor has quit []
arooni-mobile has joined #ruby
<Aeyrix>
How can plshelpmeee not work out that error
<Aeyrix>
fucking hell just read
sargas has quit [Quit: Leaving]
<sphex_>
hey. is there any way to call a method found by starting at a certain point in the ancestor chain? specifically, calling a method from the same module as the one of the current method being invoked.
nolbuk has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
hmsimha_ has joined #ruby
_ht has quit [Quit: Konversation terminated!]
wollner has joined #ruby
houhoulis has joined #ruby
oo_ has quit [Remote host closed the connection]
decaff has quit [Quit: Leaving...]
oo_ has joined #ruby
diegoviola has joined #ruby
<Ox0dea>
sphex_: Alas, __callee__ and __method__ both return paltry ol' Symbols. :/
ohaibbq has joined #ruby
Soviet_Jesus_ has left #ruby [#ruby]
<Ox0dea>
sphex_: Does `self` not refer to the relevant Module for your purposes?
baweaver has quit [Ping timeout: 245 seconds]
dgutierrez1287 has joined #ruby
<sphex_>
Ox0dea: ok. I just found info on "calling a super-super-method": self.class.superclass.superclass.instance_method(:method).bind(self).call
baweaver has joined #ruby
<sphex_>
dunno if it works yet... or how it'll handle "super".
RegulationD has joined #ruby
frozen3 has joined #ruby
baweaver has quit [Remote host closed the connection]
keen_________ has joined #ruby
oo_ has quit [Ping timeout: 256 seconds]
<sphex_>
Ox0dea: what I'm trying to do is a method that "translates" unhandled behavior by calling other methods, but it should skip the modules that handled it, and jump to the fallback methods starting from the current module only. there's a lot of "super" going on.
FernandoBasso has quit [Ping timeout: 265 seconds]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dopie has quit [Ping timeout: 260 seconds]
lore- has joined #ruby
northfurr has joined #ruby
<lore->
I"m trying to print a int but leading 0's, for instance my int of 5 I want it output'd like 05. is there a method I can use to do that similar to decimal places with .round
<nofxx>
still trying to fix this regex, going to use it... any help with this look-behind, got invalid patter in look-behind trying a \1 on the escapes in the end
<Ox0dea>
diegoviola: I can has more than one item?
wallerdev has joined #ruby
shinnya has quit [Ping timeout: 250 seconds]
<diegoviola>
Ox0dea: not currently
<Ox0dea>
This vending machine a shit.
<shevy>
give him fish
<diegoviola>
Ox0dea: I'm happy to add that feature if you can help
<Ox0dea>
diegoviola: Do you know how to loop?
<diegoviola>
sure
<diegoviola>
Ox0dea: I add a loop in the main method and add the items in an array?
<Ox0dea>
Why do you figure you need an array?
<diegoviola>
where else to add the items?
arooni-mobile has quit [Ping timeout: 244 seconds]
<Ox0dea>
diegoviola: For telling me what all I bought, do you mean?
<diegoviola>
Ox0dea: also, do real machines allow you to have more than one item at the same time?
sarkyniin has joined #ruby
<diegoviola>
Ox0dea: yes
<Ox0dea>
diegoviola: I expect there must be some out there, sure.
<Ox0dea>
diegoviola: I thought you thought you needed an array to properly issue a potential refund.
<diegoviola>
Ox0dea: no
<diegoviola>
please don't insult my vending machine
<Ox0dea>
Machines love constructive criticism.
havenwood has joined #ruby
<Ox0dea>
An aesthetic consideration: display prices right-aligned and to two decimal places in the left "column", and then item names will naturally align as well.
<Ox0dea>
UX is very important when it comes to vending machines.
<diegoviola>
ok
dimasg has quit [Ping timeout: 265 seconds]
<Ox0dea>
Also, look what happens if I have a dollar and buy something that costs seventy cents:
<Ox0dea>
The "scannability" is quite good in either case, but the latter is more appropriate for your purposes.
polysics has quit [Ping timeout: 260 seconds]
devbug has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
hydrozen has joined #ruby
diego3 has joined #ruby
diego3 has quit [Changing host]
diego3 has joined #ruby
diego3 is now known as diegoviola
<diegoviola>
Ox0dea: yes, numbering
grenierm has quit [Quit: grenierm]
bronson has joined #ruby
darkf has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<Ox0dea>
diegoviola: Aye, but you want users to be able to operating your thingamajig efficiently and painlessly.
<Ox0dea>
Think of the children!
<diegoviola>
numbers are easy
<diegoviola>
what's so hard about them
saddad has joined #ruby
oo_ has quit [Remote host closed the connection]
<diegoviola>
not that I'm against changing my program, but what's better?
<Ox0dea>
I'm talking about displaying the prices more legibly.
<Ox0dea>
I'm almost ninety, and my vision is thus not quite what it used to be, so I have to stick my finger on the screen and slowly move along the line to ensure I know how much I'm going to be wasting on this exorbitantly priced beer.
iateadonut has joined #ruby
eminencehc has quit [Remote host closed the connection]
Musashi007 has joined #ruby
<shevy>
lol
<shevy>
90
<Ox0dea>
Almost!
<diegoviola>
lol
<shevy>
twice pontiki's age!
<Ox0dea>
Isn't she Heinz?
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
No that is ketchup
<Ox0dea>
s/ketch/cats/, I think.
<Ox0dea>
diegoviola: If you wanted to get duper-fancy, you could ditch the numbers and highlight a "selection character" in a different color.
<Ox0dea>
'c' for coffee, 'b' for beer, 'h' for chocolate and whatnot.
<Ox0dea>
And then you could require 'io/console' and use STDIN.getch so that the user doesn't even have to press Enter to make their selection.
<Ox0dea>
The future is now!
Lucky__ has joined #ruby
<diegoviola>
Ox0dea: that's cool
<Ox0dea>
No, you.
<diegoviola>
?
<shevy>
he is a marketing salesman
n_blownapart has joined #ruby
eminencehc has joined #ruby
* Ox0dea
promises he doesn't process insurance claims.
<diegoviola>
my machine has Coffee and Chocolate
<Ox0dea>
That it does, so you'll need to disambiguate somehow.
dented42_ has quit [Ping timeout: 250 seconds]
<diegoviola>
I can't use c
<Ox0dea>
Well, you can use it once?
<diegoviola>
maybe
<diegoviola>
but when you go to an elevator, you also press numbers, numbers work well
<n_blownapart>
shevy, you've helped me a lot so a retroactive thanks. I do have the best monikers at least.
<diegoviola>
?
<Ox0dea>
Aye, but I'm curious as to whether he went so far as to switch majors or something.
<Ox0dea>
Math -> CS is fairly common, but not so much the reverse.
<n_blownapart>
Ox0dea, it means I was teaching myself and annoying people here, then I stopped working on it after an injury.
gix has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
<n_blownapart>
Ox0dea, dropped means to give up in idiomatic English
<diegoviola>
incidentally, I've been trying to find some examples of vending machines written in Ruby and I couldn't find any before I started writing this
<Ox0dea>
n_blownapart: Did you just call me an idiom?
<Ox0dea>
Sorry, this is my first day on the English.
<Ox0dea>
diegoviola: There are any number of menu-like systems written in Ruby, and many of the ideas transfer seamlessly.
<diegoviola>
Ox0dea: right
<n_blownapart>
no Ox0dea an idiom is for example "to see the light." (it means to understand). you cannot tell its meaning by the individual words.
<Ox0dea>
This guy.
gix has joined #ruby
<n_blownapart>
Ox0dea, you were joking, sorry.
sarkyniin has quit [Quit: Quit]
tkuchiki has joined #ruby
oo_ has joined #ruby
grenierm has joined #ruby
<shevy>
Ox0dea is a very serious Oracle
<shevy>
when he writes "This guy." it is a statement of utter disapproval
eminencehc has joined #ruby
danielpclark has quit [Ping timeout: 256 seconds]
<diegoviola>
I'm trying to write some specs for my code... but when I do require "./vending_machine" my script will just execute and termite, I want to test each method separately
<diegoviola>
what I'm doing wrong?
siovene has joined #ruby
<siovene>
Hi, sorry about the possibly stupid question, I'm new to this. Also sorry if this is about the language and not other things, but can you help with this? http://dpaste.com/08JXNTR
<n_blownapart>
That guy.
<shevy>
strange error
oo_ has quit [Remote host closed the connection]
darkf has quit [Read error: Connection reset by peer]
<siovene>
shevy: I instaled ruby 2.0.0 with rvm because Ubuntu has 1.9 by default, and it looks like sup needs 2.0.0.
jacaballero has joined #ruby
<shevy>
only reason I can think of is that you must have installed more than one ruby version
darkf has joined #ruby
<siovene>
shevy: yeah that's right. I'll try uninstalling the system one.
<shevy>
I guess it is using the gem from the 1.9 one then
<sevenseacat>
ubuntu does not 'have 1.9 by default'
<sevenseacat>
it comes with no version of ruby preinstalled and offers 1.9, 2.0, and i believe 2.1 now in its repos
jacaballero has quit [Max SendQ exceeded]
<Ox0dea>
diegoviola: It's likely the case that the building isn't up to code. I seem to recall modern architects use some sort of lacquer on the wood to prevent such incursions.
<siovene>
sevenseacat: what I meant is apt-get install ruby installs 1.9 on 15.04.
<Ox0dea>
What a tragedy.
<sevenseacat>
siovene: yes, you wanted apt-get install ruby2 .
<siovene>
sevenseacat: oh thanks.
xxneolithicxx has joined #ruby
<diegoviola>
Ox0dea: no really, can you actually help?
xxneolithicxx has quit [Max SendQ exceeded]
<sevenseacat>
not that you should be using apt-packaged rubies anyway. just wanted to clear up the misconception.
<Ox0dea>
diegoviola: If your program has termites, you need to stop and reconsider some things.
<diegoviola>
Ox0dea: my terminal emulator is called termite, not my program
casadei_ has quit [Remote host closed the connection]
<diegoviola>
anyway, any ideas?
<Ox0dea>
Extract testable pieces.
<Ox0dea>
Your thing is pretty much all IO right now.
<diegoviola>
yes, and that can't be tested with rspec?
<Ox0dea>
It would be ill-advised at this point in your journey.
rbowlby has joined #ruby
<diegoviola>
that's fine, thanks
fedexo has joined #ruby
<toretore>
diegoviola: your library should function independently of any user input or other io
jbw has joined #ruby
khebbie has joined #ruby
polysics has joined #ruby
danielpclark has joined #ruby
khebbie has quit [Remote host closed the connection]
braincra- has joined #ruby
<diegoviola>
toretore: yes I agree
dudedudeman has joined #ruby
jiada has quit [Quit: Connection closed for inactivity]
<dudedudeman>
wasssup #ruby
hydrozen has joined #ruby
n_blownapart has quit [Quit: Leaving]
<diegoviola>
toretore: I'm not sure how I'll go into writing a library that is independently of input though for this purpose... are there any examples?
spewbaby has joined #ruby
<nofxx>
diegoviola, pass what the input will be to it on init
<dudedudeman>
?offtopic
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<dudedudeman>
ah. i forgot what that one was
braincrash has quit [Ping timeout: 272 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polysics has quit [Ping timeout: 246 seconds]
<diegoviola>
nofxx: oh so I just remove my gets and I pass the data from my specs instead?
moss has quit [Read error: Connection reset by peer]
jhack has quit [Ping timeout: 244 seconds]
<toretore>
diegoviola: class VendingMachine;end; machine = VendingMachine.new; loop{ cmd = gets.chomp; case cmd; when /^buy (.+)$/ then machine.buy($1); end }
moss has joined #ruby
<diegoviola>
toretore: cool thanks
<toretore>
def test_buying_chocolate; assert_equal 'chocolate bar', machine.buy('chocolate'); end
veduardo has quit [Ping timeout: 240 seconds]
astrobun_ has joined #ruby
<toretore>
and don't complicate things with this spec bs
framling has quit [Remote host closed the connection]
framling has joined #ruby
<Ox0dea>
Belay that.
blue_deref has joined #ruby
<toretore>
once you're become familiar with minitest and understand what xspec gives you that it doesn't, then make the switch
<nofxx>
ok, after giving up, had a supper and a coffee, I'm about to give up again with this bloody regex http://rubular.com/r/KTmRdzfuFW match 6 & 7 .. any tips please.
sdwrage has quit [Quit: This computer has gone to sleep]
<bougyman>
most of them seem wrong.
<bougyman>
not just 6 and 7
<nofxx>
bougyman, why? how?
tubbo has quit [Ping timeout: 256 seconds]
<Ox0dea>
nofxx: Look at the start of the matches?
<Ox0dea>
Only #4 is correct.
<nofxx>
Ox0dea, that's what I'm trying with the first match and the \1 , but doesn't work
luckymeerza has joined #ruby
<nofxx>
the \1 inside the look-behing gives crazy parse error, would be a fit
jenksy has quit [Ping timeout: 246 seconds]
<nofxx>
bloody parenthesis
yfeldblum has joined #ruby
rikai has quit [Ping timeout: 244 seconds]
nwhirschfeld_ has quit [Ping timeout: 246 seconds]
<nofxx>
thinking of making a gem out of it, a information grabber ... out of any chunk of text: txt, html, pdf, retrieve all URL, phonenumber, and address... the latter the trickier
<nofxx>
bougyman, submatch inside and permit it to have parenthesis and brackets only if it's matched inside... ( i was trying the opposite w/o lock: matching if it starts )
<bougyman>
I recommend @scottgonzales (1347 chars)
<siovene>
Hey again. Attempting to apt-get install ruby2.0 on Ubuntu also tries to install ruby1.9. That doesn't sound normal... is it?
<nofxx>
siovene, add the brightbox repo
<bougyman>
siovene: sometimes debuntu would name 2.0 1.9
<siovene>
Here's the list of the packages that would be installed: libruby1.9.1 libruby2.0 ruby ruby1.9.1 rubygems-integration
psy_ has quit [Ping timeout: 246 seconds]
<bougyman>
siovene: apt-cache show ruby1.9.1
<bougyman>
is it actually 1.9.1?
<bougyman>
or is it 1.9.1-2.0.0 ?
<nofxx>
bougyman, ahh.. I see now, I can't match for opening ( and use \1 I would want ending )
<bougyman>
nofxx: exactly.
hmsimha_ has joined #ruby
<bougyman>
you'd need logic in the engine.
<bougyman>
not much, but a little.
jpfuentes2 has joined #ruby
shadoi has quit [Quit: Leaving.]
<siovene>
bougyman: actually 1.9.1. No mention of anything 2.0.
<bougyman>
weird
<siovene>
nofxx: yeah that repo seems to work, now installing only 2.0.0
pawnbox_ has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 265 seconds]
krz has joined #ruby
ruby-lang426 has joined #ruby
towler has joined #ruby
polysics has joined #ruby
pawnbox has joined #ruby
qiukun has joined #ruby
kies has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby
mpicci has quit [Quit: Connection closed for inactivity]
polysics has quit [Ping timeout: 246 seconds]
dhjondoh has joined #ruby
Guest97877 has quit [Ping timeout: 272 seconds]
benlovell has quit [Ping timeout: 240 seconds]
ItSANgo has quit [Ping timeout: 255 seconds]
sgambino_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
howdoi has joined #ruby
ruby-lang426 has quit [Ping timeout: 246 seconds]
fgo has joined #ruby
nahtnam has joined #ruby
aganov has joined #ruby
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
aiesec has quit [Quit: WeeChat 0.4.2]
devoldmx has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
elepedus has joined #ruby
Musashi007 has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
Fevrale has joined #ruby
last_staff has joined #ruby
kriskropd has quit [Ping timeout: 240 seconds]
benlovell has joined #ruby
elepedus has quit [Ping timeout: 272 seconds]
diego2 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
v0n has quit [Ping timeout: 256 seconds]
arooni-mobile has quit [Ping timeout: 244 seconds]
jeadre has joined #ruby
duncannz has joined #ruby
Contigi777 has joined #ruby
diego2 has quit [Ping timeout: 244 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexAltea has joined #ruby
blackmesa has joined #ruby
User458764 has joined #ruby
kriskropd has joined #ruby
Contigi has quit [Ping timeout: 256 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
v0n has joined #ruby
inversesquarelaw has joined #ruby
tagrudev has joined #ruby
inversesquarelaw has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
mrodrigues has joined #ruby
Pupp3tm4st3r has quit [Ping timeout: 244 seconds]
Pupp3tm4st3r has joined #ruby
yardenbar has joined #ruby
<mrodrigues>
I have some code where a user can pass a block as a callback. The callback gets run in a separate thread. If the user's code raises an error it kills the thread without warning until #join is called on the thread. Should I be trusting users to handle errors here? Should I be notifying them if their block fails? https://github.com/mikerodrigues/orderbook/blob/master/lib/orderbook.rb#L173
maletor has quit [Quit: Computer has gone to sleep.]
joe2 has joined #ruby
benlovell has joined #ruby
DelDotB has joined #ruby
AnoHito_ has joined #ruby
jokester has joined #ruby
robbyoconnor has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
AnoHito has quit [Ping timeout: 246 seconds]
neilnorthrop has quit []
User4587_ has joined #ruby
Oog_ has joined #ruby
benlovell has quit [Ping timeout: 260 seconds]
AnoHito_ has quit [Ping timeout: 244 seconds]
AnoHito has joined #ruby
AnoHito_ has joined #ruby
ngscheurich has quit [Ping timeout: 244 seconds]
Pupp3tm4st3r has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
Pupp3tm4st3r has joined #ruby
<dymk>
jesus, some guy is suggesting that it's bizzare for ruby to be used for string manipulations
AnoHito has quit [Ping timeout: 250 seconds]
freeze has quit [Ping timeout: 256 seconds]
<dymk>
he's asking for an example program on github that does string manipulation
<dymk>
Does ActionView still append to an internal string buffer? In which case any rails app counts...
bronson has joined #ruby
<sevenseacat>
o.O
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
freeze has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
<baweaver>
Ruby, Perl, and Python are pretty well meant for string manipulation
<dymk>
at this point i can't tell if the fella is serious or not
<dymk>
baweaver, that's pretty cool, i'm only an intern, so I can't wave my apple around too much :P
<fatsum>
dymk: What do you do at AAPL?
<fatsum>
Ah, intern.
ndrei has joined #ruby
<dymk>
core kernel
<Aeyrix>
Nice.
<Aeyrix>
I almost worked for Apple/
<dymk>
so that ps4.html link is pretty nifty looking
<baweaver>
Hm, I'll have to read that one later.
<baweaver>
Aeyrix: same
<fatsum>
Wrote an XNU fuzzer once, was pretty ugly.
<sevenseacat>
didnt mean to get all name-droppy like that >_>
<baweaver>
infrastructure automation here
<baweaver>
my name is bigger sevenseacat
<dymk>
sevenseacat, something something you should see the CS page of my uni ;_;
DelDotB has quit [Quit: DelDotB]
<Aeyrix>
AWS is pretty damn expensive.
<fatsum>
baweaver: Not sure if I want a console or not.
<baweaver>
It is
<Aeyrix>
Source: Currently competing with AWS.
<dymk>
fatsum, XNU is ugly, only fitting the fuzzer is too
<fatsum>
Aeyrix: I have 17 instances on AWS, and I don't use them. :(
<baweaver>
Source: I see the contracts and weep
<Aeyrix>
kek
Macaveli has joined #ruby
<fatsum>
yorickpeterse: Touche.
<fatsum>
dymk: Touche.
<sevenseacat>
fwiw I think the string immutability idea is good
freeze has quit [Ping timeout: 260 seconds]
<dymk>
sure, as long as they have a fallback for having mutable strings
<baweaver>
As long as GC keeps up
<dymk>
it won't
<nofxx>
or, 30.000 cores + 150.000gb of ram for an year
<baweaver>
Haskell / Scala do fine with it.
<sevenseacat>
also means the difference between symbols and strings is getting smaller
<fatsum>
dymk: Sure you heard 2006 wants its null pointer dereferences back ;p
<fatsum>
And the DYLD mess.
<dymk>
don't remind me D:
sinkensabe has joined #ruby
<Aeyrix>
What's the current proposal on instantiating an immutable string versus a mutable one?
<fatsum>
So many local privilege escalation bugs in OS X - a bit of a surprise that "HackingTeam" had none.
<Aeyrix>
"dongs" is still mutable?
<dymk>
baweaver, sure, but their type system is built around immutability, and nice thread local heaps, etc
AnoHito has joined #ruby
<Aeyrix>
String.new("dongs") is not?
benlovell has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
<baweaver>
I have a feeling Ruby is going to borrow a lot from Scala coming up here soon.
polysics has quit [Ping timeout: 265 seconds]
<dymk>
it's gonna be interesting to see how they bolt immutable whatnots onto the current vm
<Aeyrix>
I'll just move to Elixir.
DelDotB has joined #ruby
freeze has joined #ruby
<fatsum>
I've heard good things about rust.
<Aeyrix>
No you haven't.
<dymk>
Aeyrix, i tried it, it's.... not a great story yet
Macaveli has quit [Read error: Connection reset by peer]
<dymk>
elixir/phoenix that is
<Aeyrix>
dymk: Tell that to sevenseacat or Radar?
<Aeyrix>
s/\?/./
<sevenseacat>
waaaaaat
<Aeyrix>
dymk is calling Elixir not great.
<dymk>
i hope i didn't wake the phoenix evangelicals ;)
<sevenseacat>
phoenix is an awesome story
Macaveli has joined #ruby
<dymk>
and I like the language... as a concept
arup_r has joined #ruby
<dymk>
LOL
<dymk>
not to be hostile, I really do like the language
<baweaver>
run
<dymk>
and phoenix is on the right track
<baweaver>
run quickly
<baweaver>
before Radar sees
* dymk
ducks for cover
<Radar>
before who
AnoHito_ has quit [Ping timeout: 244 seconds]
<dymk>
stop pinging him on irc! he'll see me!
* baweaver
grabs popcorn
<dymk>
OH SHIT
<dymk>
uh hi radar
<baweaver>
'alo
* Radar
would like to share baweaver's popcorn
<Radar>
dymk: continue
* baweaver
passes some over
<sevenseacat>
btw phoenix 1.0 is due soon.
<sevenseacat>
\o/
<baweaver>
Is it now? Nice.
<certainty>
moin
<baweaver>
Bom dia
<dymk>
Radar, I tried phoenix, its ORM is nowhere near activerecord's
<sevenseacat>
bonan tagon, certainty
<fatsum>
Phoneix?
<sevenseacat>
sure, activerecord's is 10 years more mature
<certainty>
sevenseacat: did you just put a spell on me?
<dymk>
well yeah and that's what I'm saying :P
<Aeyrix>
Does anyone use DataMapper?
<dymk>
it's not a good story, right now
<baweaver>
sevenseacat: heh, you win. My portuguese is weak right now.
<fatsum>
Meh.
<sevenseacat>
lotus does, and i've just started looking at lotus today
<fatsum>
I need to learn Catalan.
<Aeyrix>
Why?
<certainty>
sevenseacat: lotus is great
<Aeyrix>
certainty: Talk Lotus to me.
<baweaver>
Well honestly I never judge a book too much by its first chapter or two
<dymk>
also docs could use some love
Oog_ has quit []
arup_r_ has joined #ruby
<baweaver>
some go amazingly and flop later
<baweaver>
and the converse is true as well
<sevenseacat>
seems to have lots more smaller parts, compared to a ruby app
<sevenseacat>
*rails app
<certainty>
Aeyrix: :)
<Aeyrix>
You mean inverse, right?
<Aeyrix>
Converse means to engage in conversation.
<dymk>
there also aren't many good resources on what a "good" elixir application should look like out there
<Aeyrix>
Oh wait it also means the opposite
<Aeyrix>
wtf
<Aeyrix>
English is so fucking broken
<baweaver>
hehehe
<baweaver>
yes
<Aeyrix>
English is like Python 3
<baweaver>
test it is
<sevenseacat>
dymk: welcome to the scenario of early adopters.
<baweaver>
wow aliases work here too
<baweaver>
fun
benlovell has quit [Ping timeout: 252 seconds]
<dymk>
sevenseacat, indeed
MasterPiece has joined #ruby
* baweaver
needs to remember that later so he doesn't alias an entire rails controller into chat
<certainty>
to me lotus looks very appealing. It's way closer to what i'd build outside the rails context.
<dymk>
oh, elixir's metaprogramming story: it's way more difficult than even D is
<sevenseacat>
I have not yet built anything significant in Elixir/Phoenix (nor have I even looked at Ecto) but it looks very promising
<Aeyrix>
I tried Haskell again like
<baweaver>
Now you want to see fun
<Aeyrix>
two days ago
<dymk>
things like not being able to extend structs at compile time
jenksy has joined #ruby
<baweaver>
Aeyrix: Big Data
<Aeyrix>
Big egos
wallerdev has joined #ruby
<certainty>
Aeyrix: didn't you like it?
tubbo has joined #ruby
<Aeyrix>
certainty: no
* sevenseacat
keeps following the lotus Getting Started guide
<Aeyrix>
I dislike functional programming as a whole tbq
<Aeyrix>
h
<baweaver>
it's definitely something that takes a bit
<Aeyrix>
I don't need my shit to be mathematically provable.
<dymk>
it's like they tried to keep the core language as small as possible and thus nerfed the usefulness of things like structs
WilfredTheGreat has joined #ruby
<dymk>
but there's still techncially special language support for structs?
<dymk>
things like that which might get fixed in v2.x
<certainty>
Aeyrix: oh ok i see. It's not about being mathematically provable most of the time though. Having a mathematical foundation can be good, since there is strong theory about how things compose
<Aeyrix>
certainty: I write Ruby though.
<Aeyrix>
It's like
<Aeyrix>
why bother
<Aeyrix>
Ruby is so much easier to write
<Aeyrix>
99% of the time, if not more
User4587_ has quit [Ping timeout: 250 seconds]
pawnbox has quit [Read error: Connection reset by peer]
arup_r has quit [Ping timeout: 272 seconds]
<dymk>
anyways, that's why i think the story isn't that great (re: sevenseacat and Radar)
<sevenseacat>
fair enough
<Aeyrix>
dymk: Rails 4 in Action isn't a story book
<Aeyrix>
it's a nonfiction guide to origami
* sevenseacat
checks so many things right now
<dymk>
you mean artesian, hand crafted with love, non GMO code?
<Aeyrix>
Yes.
noethics has quit [Quit: Leaving]
<Aeyrix>
It's even locally grown.
Tempesta has quit [Read error: Connection reset by peer]
blue_deref has quit [Quit: bbn]
benlovell has joined #ruby
Tempesta has joined #ruby
pawnbox has joined #ruby
<dymk>
all it needs now is an Our Amazing Journey bankruptcy Medium blog entry
<Aeyrix>
lmfao
<baweaver>
sevenseacat: welcome to programming
<baweaver>
again
<Aeyrix>
"Why we Failed"
<Aeyrix>
"We fucked up p hard tbh"
<certainty>
Aeyrix: the ideas apply equally to all languages
<baweaver>
dymk: dangit
<dymk>
"Would I do it again? Of-fucking-course"
<baweaver>
my sides
<dymk>
i'll be here all night folks
<baweaver>
Don't forget to post links on HN and Reddit
<dymk>
but really i won't, because work calls tomorrow
<baweaver>
or it didn't really happen
<dymk>
into the intern silos
eminencehc has quit [Remote host closed the connection]
<Aeyrix>
tfw no internship
<baweaver>
How much interning do you have left
<Aeyrix>
tfw full time job insteafd
<Aeyrix>
s/fd/d
<dymk>
1 month or thereabouts, then back to school
<nofxx>
need a cool name for my gem... it fetches useful (url, phones and emails currently) information out of text
<baweaver>
bay area?
<baweaver>
or seattle?
<dymk>
bay area
jbw has quit [Ping timeout: 260 seconds]
<baweaver>
oho
<dymk>
ikr
<baweaver>
we'll be getting some type of Ruby thing going again for Coffee
<Aeyrix>
nofxx: Forager
* baweaver
lives in East Bay
* baweaver
works in SoMA
<Aeyrix>
South Maryland?
<dymk>
whut
icharlie has quit [Remote host closed the connection]
<dymk>
I'm from norcal, dunno what these areas are
khebbie has joined #ruby
<baweaver>
South of Market Area in San Francisco.
<nofxx>
Aeyrix, that's a cool name. And rubygems available.
<Aeyrix>
nofxx: :D
<dymk>
baweaver, oh solid, are there ruby meetups often?
<Aeyrix>
I'm good with project names.
<baweaver>
I just managed to knick rapture as a gem name :D
* zenspider
doesn't want to rewrap libsdl...
jbw has joined #ruby
<Aeyrix>
>knick
<Aeyrix>
m8
<dymk>
nofxx: prism_on_a_budget
<zenspider>
there's no place like home. there's no place like home. there's no place like home.
<Aeyrix>
don't make me
<baweaver>
already got clairvoyant too
<Aeyrix>
define:knick
<Aeyrix>
t b h
<Aeyrix>
i'm kinda worried about what this immutable string thing will do to Ruby
oo_ has joined #ruby
<dymk>
baweaver, but please do let me know about dev meetups, i'm always down for that
<baweaver>
english slang is nick, american slang on top of it is knick in some cases.
<dymk>
gotta make the best out of my time in the bay
<baweaver>
huh, guess it works that way too. Of course you know that Ox0dea
<zenspider>
dongs? really? are we 10?
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
<n_blownapart>
zenspider , sorry, to regress, why is that return not implied as said earlier?
tkuchiki has quit [Remote host closed the connection]
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
<fatsum>
n_blownapart: The last statement of a method is implied to return from that method; explicitly using a `return` allows for multiple expressions to be returned.
<baweaver>
I want to say because return behaves like a method that can take multiple values.
qiukun has quit [Quit: qiukun]
mutuma has joined #ruby
<baweaver>
though I wouldn't rely on that
kedare has joined #ruby
<baweaver>
instead just return an array: [(x-y), (x + y)]
juanpauc_ has quit [Read error: Connection reset by peer]
mutuma is now known as Pathfinder
juanpaucar has joined #ruby
<fatsum>
Cleaner, yes.
<baweaver>
not sure how common that return bit is
<zenspider>
n_blownapart: in short: because it is a syntax error
<baweaver>
but I've not seen that before myself anywhere.
<fatsum>
I use `system` way too much in irb.
elepedus has quit [Quit: elepedus]
<baweaver>
well, bed for me. 'night
<fatsum>
Should use pry a little.
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
<n_blownapart>
fatsum, zenspider baweaver thanks all . so the example was just an oversight?
oo_ has quit [Remote host closed the connection]
roolo has joined #ruby
<baweaver>
probably
baweaver has quit [Remote host closed the connection]
<n_blownapart>
pax
<Ox0dea>
That's a new one.
<zenspider>
n_blownapart: afaik, there's no version of ruby that works with that code.
<Ox0dea>
zenspider: Did you try 0.49?
ndrei has quit [Ping timeout: 260 seconds]
<fatsum>
Heh.
krz has quit [Read error: Connection reset by peer]
<zenspider>
never got that one to build
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
icharlie has joined #ruby
<Ox0dea>
charliesome has a patch.
<zenspider>
I only have 1.8 - 2.2 right now. had 1.6 but it didn't like 64bit or something w/ my compiler setup
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
benlovell has joined #ruby
charliesome has joined #ruby
choke has joined #ruby
terlar has joined #ruby
blackmesa has joined #ruby
Iskarlar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
htmldrum has quit [Ping timeout: 244 seconds]
juanpaucar has joined #ruby
<fatsum>
I need to sort out my .emacs.d/init.el for rc files sometime in the next two years.
toretore has quit [Quit: This computer has gone to sleep]
workmad3 has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
blackmesa has quit [Client Quit]
juanpaucar has joined #ruby
xhosae has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
psy has quit [Ping timeout: 272 seconds]
matled- has joined #ruby
matled has quit [Remote host closed the connection]
matled- is now known as matled
benlovel1 has joined #ruby
juanpauc_ has joined #ruby
icharlie has quit []
devbug has quit [Read error: Connection reset by peer]
juanpaucar has quit [Read error: Connection reset by peer]
benlovell has quit [Ping timeout: 272 seconds]
Musashi007 has quit [Quit: Musashi007]
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
juanpaucar has quit [Read error: Connection reset by peer]
qiukun has joined #ruby
juanpaucar has joined #ruby
qiukun has quit [Client Quit]
qiukun has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpaucar has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
NivenHuH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
choke has joined #ruby
kloeri has quit [Remote host closed the connection]
juanpauc_ has joined #ruby
kloeri has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
juanpaucar has quit [Ping timeout: 240 seconds]
<blarghlarghl>
I've noticed that RSpec 2.99 and above (maybe even some lower versions) no longer raise at the end of spec execution if there was a failure in the spec run. My 'run all specs' task list did: begin; Rake::Task[t].invoke; rescue; failed << t; end. this no longer works since rspec no longer raises. can I get rspec to raise again if one of the specs failed?
<blarghlarghl>
I don't mean fail-fast, because I want it to finish the run despite the failure.
anisha has joined #ruby
wallerdev has quit [Quit: wallerdev]
juanpaucar has joined #ruby
juanpau__ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
towski_ has joined #ruby
juanpauc_ has quit [Ping timeout: 260 seconds]
Ropeney has quit [Read error: Connection reset by peer]
joonty has joined #ruby
juanpau__ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
astrobun_ has quit [Remote host closed the connection]
<zenspider>
"oh no! nothing's worse than Cartman with authoritah"
juanpau__ has joined #ruby
<fatsum>
zenspider: Are you trying to be funny?
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has quit [Ping timeout: 260 seconds]
<zenspider>
nope
<fatsum>
Don't believe I watched that.
<fatsum>
Sets zenspider on ignore.
<adaedra>
:/
juanpau__ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
<fatsum>
adaedra: I've been a stickler for terminal font settings for a while, and never quite managed to get it right where character spacing is involved; but I do have sight problems. So it's excusable I suppose.
<Ox0dea>
And much was explained.
bronson has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
<adaedra>
fatsum: note that I was not saying it's wrong. I was just surprised.
postmodern has quit [Quit: Leaving]
<Ox0dea>
fatsum: Apologies for making light of your disability.
NivenHuH has joined #ruby
bumbar_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
<fatsum>
adaedra: Oh no, I'd like a "prettier" terminal if I could find a way of having one - I spend 90% of my computer usage in it.
juanpaucar has joined #ruby
NivenHuH has quit [Client Quit]
<fatsum>
Ox0dea: You're so bad at trolling, you should speak to weev for lessons.
<zenspider>
according to cloc, it's got a minority of CSS, YAML, JS, HTML, yacc (?!?), SQL, and DTD... but is otherwise all ruby
<Thomas-0725>
Oh cool. Thanks adaedra! Still not used to using github.
<zenspider>
and I mean TINY minority
<adaedra>
There's a small bar on project main page with quick language statistics, always
<hyy>
I'm going to get some more tea
<zenspider>
7k vs 192k
juanpauc_ has joined #ruby
<Thomas-0725>
zenspider, yeah what I meant I guess is "Is Rails written in just Ruby, or does it have compiled components written in C?" I don't really understand how Rails works, honestly.
juanpaucar has quit [Read error: Connection reset by peer]
ruby-lang708 has joined #ruby
<zenspider>
Thomas-0725: it certainly uses some gems that have compiled components... but it doesn't have any itself
<ruby-lang708>
hi everyone,
<sevenseacat>
google has decided that it wants to be german again. sigh.
<jhass>
_AbdulRehman: you can influence it over the environment variables, GEM_HOME for the default installation directory and GEM_PATH for a colon separated list of lookup directories besides GEM_HOME. That's what Ruby version managers generally set
<_AbdulRehman>
I want to remove the second path cause that's where my intellij is looking at
<zenspider>
that's for temporary override
<hyy>
0x0dea; where's to_lowercase and to_uppercase then?
<Ox0dea>
hyy: They're called #downcase and #upcase.
<hyy>
for a string, that is
<hyy>
ah
<_AbdulRehman>
jhass: thanks
<_AbdulRehman>
I'll try that
<Ox0dea>
hyy: They're more "message-y" that way.
<zenspider>
intellij might have its own settings tho.
<_AbdulRehman>
I have set it up to look at the first directory zenspider
<_AbdulRehman>
but for some reason gems installed in the other path
juanpauc_ has joined #ruby
<_AbdulRehman>
so I'll try to remove that and see what happens...
juanpaucar has quit [Read error: Connection reset by peer]
Hounddog has quit [Ping timeout: 272 seconds]
<zenspider>
_AbdulRehman: you can just clear out GEM_PATH
Hounddog has joined #ruby
devoldmx has joined #ruby
<_AbdulRehman>
zenspider: That's what killing me, I can't see gem_path in my system variables, or user varibles (enviroment variables)
<_AbdulRehman>
variables*
elepedus has joined #ruby
<zenspider>
_AbdulRehman: they're not set by default. they're there so you can override
<zenspider>
the gem paths you see in `gem env` are the default paths
<zenspider>
they _should_ be there unless you're trying to do something odd
<zenspider>
intellij can also be setting its own
jbw has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
<zenspider>
_AbdulRehman: what's your actual problem you're trying to address?
stardiviner has joined #ruby
juanpauc_ has quit [Ping timeout: 250 seconds]
arup_r_ has joined #ruby
arup_r_ has quit [Remote host closed the connection]
testing-shout has joined #ruby
arup_r_ has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
mutuma has quit [Quit: mutuma]
arup_r_ has quit [Client Quit]
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
testing-shout has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
hmsimha_ has joined #ruby
arup_r_ has joined #ruby
arup_r has quit [Ping timeout: 265 seconds]
arup_r_ has quit [Remote host closed the connection]
krz has joined #ruby
jbw has joined #ruby
arup_r has joined #ruby
nfk has joined #ruby
Motoservo has joined #ruby
Karpah has joined #ruby
ledestin has quit [Read error: Connection reset by peer]
renderful has joined #ruby
khebbie has joined #ruby
sevenseacat has quit [Ping timeout: 260 seconds]
Soda has joined #ruby
loveablelobster has joined #ruby
Karpah is now known as sevenseacat
renderful has quit [Ping timeout: 246 seconds]
astrobun_ has quit [Remote host closed the connection]
choke has joined #ruby
loveablelobster has left #ruby [#ruby]
loveablelobster has joined #ruby
rodfersou has joined #ruby
<_AbdulRehman>
zenspider: for some reason, my intellij can't see the first path and only looks at the second path.
livathinos has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
<_AbdulRehman>
I do not want to install my gems in the later default, I want it in the shared/gem folder which is set be default
elepedus has quit [Ping timeout: 260 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<loveablelobster>
have an IO problem, working with an activrecord connection that reads setup from a yml file, now I want to get user input, but 'gets' will just read yml rows, what to do?
choke has quit [Client Quit]
ruby-lang461 has joined #ruby
[k- has joined #ruby
jbw has quit [Ping timeout: 240 seconds]
relic has joined #ruby
<_AbdulRehman>
SPEC CACHE DIRECTORY is what causing the issue I think,
AlexC_ has joined #ruby
<AlexC_>
Moin
astrobun_ has joined #ruby
<AlexC_>
I'm trying to install "sassc" on Centos 6.4, however I keep getting "Rakefile:3: syntax error, unexpected ':', expected $end"
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AlexC_>
Tried many different versions of sassc, always getting the same. Maybe issue with version of Rake I have?
<zenspider>
_AbdulRehman: unfortunately, I've never used intellij and I can't help on that side. You might want to contact their support or see if there is a channel on here for it
<[k->
has sassc worked on any other machines on that os?
astrobun_ has quit [Remote host closed the connection]
ruby-lang461 has quit [Ping timeout: 246 seconds]
<zenspider>
AlexC_: what's on line 3 of the Rakefile?
charliesome has joined #ruby
<zenspider>
it's probably oooold <= 1.8 code trying to run on 1.9+
<loveablelobster>
Oc0dea: I see... That explains a lot
<Ufinii>
orning, we're having troubles upgrading our Rails application from Ruby 2.0.0 to 2.2.3 on Heroku (EU), an analysis of the performance on New Relic reveals that we're spending 2x amount of time in 'Ruby' and much less time in GC, it basically made our whole app unresponsive. Has anyone experienced the same issue? Why would Ruby 2.2 be so much slower?
<jhass>
AlexC_: so you cloned the repo and try to build the gem?
<AlexC_>
jhass: No, just running "gem install sassc"
wollner has quit [Quit: Leaving]
<_AbdulRehman>
zenspider: thank you...
<jhass>
AlexC_: yeah no dice, that thing is written against 1.9+ from the start
<AlexC_>
Yep, no worries - trying the node route
<zenspider>
Ufinii: your app is nonresponsive because you're spending LESS time in GC?
<AlexC_>
Thanks
_AbdulRehman has quit [Quit: Page closed]
nofxx has quit [Ping timeout: 240 seconds]
kies has joined #ruby
MasterPiece has joined #ruby
<zenspider>
ruby 2.2 is measurably faster in all my tests, not slower. spending less time in GC means you get more stuff done
Contigi777 has quit [Read error: Connection reset by peer]
<[k->
zenspider: 2:1 is not really a very nice ratio :o
benlovell has quit [Read error: Connection reset by peer]
m1lt0n has joined #ruby
<[k->
i presume thats what she/he means
<zenspider>
[k-: it is if it is getting-stuff-done:not-getting-stuff-done
<silverdust>
How do I update from 2.1.2 to 2.2.3 ?
<silverdust>
* upgrade
sepp2k has joined #ruby
pawnbox has joined #ruby
<zenspider>
of course... this is one of those cases where you ask for clarification and they never ever get back to you... I love it.
<jhass>
silverdust: how did you get 2.1.2?
benlovell has joined #ruby
<silverdust>
I can't remember sadly
<silverdust>
It was my first time upgrading a ruby version
<ruboto>
Ox0dea # => {:RUBY_VERSION=>"2.2.0", :RUBY_RELEASE_DATE=>"2014-12-25", :RUBY_PLATFORM=>"i686-linux", :RUBY_PATCH ...check link for more (https://eval.in/420186)
<ruboto>
gregf_ # => ["RUBY_INSTALL_NAME", "RUBY_SO_NAME", "RUBY_SEARCH_PATH", "RUBY_EXEC_PREFIX", "RUBY_LIB_VERSION", "R ...check link for more (https://eval.in/420187)
<relic>
wtf.
B5X has quit [Client Quit]
jellyjellyrobot has joined #ruby
eminencehc has joined #ruby
benlovell has quit [Ping timeout: 246 seconds]
ledestin has joined #ruby
benlovell has joined #ruby
wasamasa is now known as {{{
<adaedra>
}}}
{{{ is now known as wasamasa
eminencehc has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby
claptor has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k->
}{{{{{end{
<[k->
may the world be forever disturbed
<wasamasa>
some day I'll quit IRC and leave these nicks for someone else to wield
<wasamasa>
even if it's just to annoy an admin using vim to view irc logs
chouhoulis has quit [Ping timeout: 256 seconds]
* relic
wanders off
bgiouaeg has left #ruby ["WeeChat 1.3"]
sdfgsdfg has joined #ruby
sdfgsdfg has joined #ruby
qiukun has quit [Quit: qiukun]
DexterLB has quit [Read error: Connection reset by peer]
Timba-as has quit [Ping timeout: 240 seconds]
Timba-as has joined #ruby
qiukun has joined #ruby
Neon has joined #ruby
<Diabolik>
does anyone have any suggestions for how i can improve on this?
<jhass>
anyway, try without it for a sec to eliminate that as error source at least
<jhass>
is there something special about your platform?
roolo has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
xhosae has quit [Remote host closed the connection]
dhjondoh has joined #ruby
gregf has quit [Quit: WeeChat 1.1.1]
dhjondoh has quit [Client Quit]
<Neon>
jhass: No. So the pipe variables seem to be in the right order. I get errors if I swap them again (not opened for writing). When I return the data_out => data_out, no errors get raised (but the application doesn't work as expected either).
<jhass>
Neon: little sidenote, you need neither the parens nor the * in that case
bronson has joined #ruby
<Neon>
jhass: What're these for then?
rbowlby has quit [Remote host closed the connection]
<Neon>
I learned it like this somewhere and did it like this since then.
<jhass>
for what you use them, just implicitly there in this simple case
<Neon>
Ah, so letting them out would be more syntactic sugar?
<jhass>
and yeah, they were right, your variables are just confusingly labeled
<jhass>
IO.pipe returns [read, write]
bigkevmcd has quit [Quit: Outta here...]
amigojapan has joined #ruby
<jhass>
kind of
roolo has quit [Ping timeout: 246 seconds]
yfeldblu_ has quit [Ping timeout: 246 seconds]
benlovell has joined #ruby
<Neon>
Yeah, I tried to label them so I write to *_out and read from *_in, analogous to stdin and stdout.
binaryplease1 has joined #ruby
<amigojapan>
hi, I am trying to do a get on an https, this code works for short urls but for this url it says invalid url, but the url is not invalid, any ideas? http://pastebin.com/U2jSxK2z
<jhass>
I said you'll likely need some handwork to disambiguate
<gregf_>
Diabolik: well you can split that into 2 classes, a Parser(which parses the string) and a ArithmeticExpCalculator(which does the calculation). like so class Parser; def parse();end;end ArithmeticExpCalculator; def self.calculate;end;end
rodfersou has joined #ruby
<jhass>
?gist_usage amigojapan
<ruboto>
amigojapan, 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.
Macaveli has joined #ruby
<Diabolik>
hmm gregf_
<amigojapan>
jhass: what do you mean by handwork?
<Diabolik>
jhass is there a way of shortening or simplifying the calculate method?
<gregf_>
Diabolik: also create a service that uses those 2. my 2 cents :/
<jhass>
amigojapan: slice the querystring into its parts by hand, pass them to CGI.escape, join the result back together
<amigojapan>
jhass: I know the querystring works on my browser
<amigojapan>
jhass: that does not seem reasonable
<jhass>
amigojapan: your browser has about 5k manhours in guessing logic to handle all kind of weird user input
binaryplease1 has quit [Quit: WeeChat 1.2]
binaryplease has joined #ruby
<amigojapan>
jhass: I had no problem when I was not trying to use https
lannonbr has quit [Quit: WeeChat 1.2]
<jhass>
I strongly doubt the URL was suffering from the same issues
<amigojapan>
but it does not say what the issue is
<jhass>
amigojapan: the first I see is ? being invalid after a ?
<jhass>
but let's ignore that and look at just ?url=https://chart.googleapis.com/chart?cht=lc&chs=500&
<jhass>
is &chs=500 part of the value of url or a new param? how should URI know?
keen__________ has joined #ruby
benlovell has quit [Ping timeout: 245 seconds]
keen_________ has quit [Ping timeout: 245 seconds]
<amigojapan>
jhass: seems like valid get to me, and as I said, I tried the same thing withought https, and it was working with HTTP.get , so I dont see why it would make a difference in https
<jhass>
your browser has heuristics in seeing things like url=, saying "okay given there's url= what comes is probably part of the value even when we would hit a delimiter of the value normally we ignore it now"
<amigojapan>
it was workin in ruby, I coudl revert the code and show you that
<jhass>
amigojapan: you can try to understand the issue and fix it or just shut up, your whining will get you nowhere
<amigojapan>
the problem is only after https
<amigojapan>
jhass: I dont think you are giving me good advice
devoldmx has joined #ruby
<sevenseacat>
lol
<jhass>
alright, let's play this game, who's up for repeating what I said?
<sevenseacat>
not me, if this person doesnt want to be helped.
<amigojapan>
sevenseacat: I want to be helped, but just to see how to do https, not to reconstruct my url, which is working in a normal ruby get... so the url is not broken
<sevenseacat>
the json gem doesnt work properly on ruby 2.2.3. nice.
<ljarvis>
(see lots of File.basename(file, File.extname(file))
<gregf_>
Diabolik: %w{1 + 3 - 2}.reduce { |l,r| l.is_a?(Array) ? l.first.to_i.send(l.last,r.to_i) : [l, r] } <= this was what was suggested by yorickpeterse
<ljarvis>
that doesnt look like code yorickpeterse would write
<gregf_>
ljarvis: well almost similar, i lost that :/
Pupp3tm4_ has joined #ruby
Pupp3tm4st3r has quit [Ping timeout: 260 seconds]
Pupp3tm4_ has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
rideh has quit [Max SendQ exceeded]
paradoja has quit [Ping timeout: 272 seconds]
rideh has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
guyz is now known as Guest7662
Pupp3tm4st3r has joined #ruby
<Diabolik>
gregf_ i didn't see this...
<[k-_>
>> lhs, op, rhs = p("53 PLUS 9 TIMES 43 MINUS 2".partition(/TIMES/)); lhs.sub("PLUS", "+"); rhs.sub("MINUS", "-"); lhs = eval lhs; rhs = eval rhs; lhs * rhs; # being lazy here, do not use eval unnecessarily!
<ruboto>
[k-_ # => ["53 PLUS 9 ", "TIMES", " 43 MINUS 2"] ...check link for more (https://eval.in/420343)
<hfp>
How can I write an expectation that would match a method with a specific method only once, even though this method is called more than once with different arguments?
<[k-_>
check the link for more
<yorickpeterse>
ljarvis: I did
<yorickpeterse>
well, minus the single letter variables
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anon has joined #ruby
<anon>
Hey there guys, I'm taking a Codeacademy course and it asks me to "add a new route that maps requests to /tags to the Tags controller's index action.". I'm stuck, what route should I write there?
anon is now known as Guest16655
<Psi-Jack>
That's more of a rails question than a ruby question.
r0uder has quit [Client Quit]
<centrx>
?rails
<ruboto>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Psi-Jack>
Yep. no nickserv identification. :)
dstarh has joined #ruby
Guest16655 has quit [Client Quit]
bronson has joined #ruby
gamename has joined #ruby
<Psi-Jack>
codecadamy though I have to say, was not bad. I went through their ruby course and liked how they dug into quite a few things, including rubyist methods specifically.
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
mwlang has joined #ruby
radgeRayden has joined #ruby
gregf has quit [Read error: Connection reset by peer]
gregf has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
<hfp>
I have a method called within an object and I would like to mock this method. But I don't know which object it is a method of so I don't know how to mock it. How should I proceed?
sinkensabe has quit []
socialjackie has joined #ruby
<Psi-Jack>
Read the source, Luke. :)
<eightyeight>
new error loading my ruby weechat script. this seems to be wholly ruby-specific: http://ae7.st/p/4hu
camilasan has quit [Remote host closed the connection]
<[k-_>
ruby can tell you which class it belongs too
<[k-_>
erm, let me think
<eightyeight>
i have the 'zmq' library installed via rubygems
<ArnaudM>
I tried type=simple type=forking... I tried thin -d or without -d
<ArnaudM>
and always the same result, my service is inactive
<ArnaudM>
its like its launching
<ArnaudM>
then nothing
skade has quit [Read error: Connection reset by peer]
<jhass>
ArnaudM: you want to read up on Environment in man systemd.exec
allcentury has joined #ruby
skade has joined #ruby
<ArnaudM>
damn bad syntax
<Psi-Jack>
Yep yep.
<jhass>
ArnaudM: drop the -d and use Type=simple (the default, so just drop the line)
lannonbr has quit [Ping timeout: 240 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ips|malc has joined #ruby
<ArnaudM>
ok jhass I will try
<ArnaudM>
brb
j_mcnally has joined #ruby
last_staff has quit [Ping timeout: 246 seconds]
Pupp3tm4st3r has joined #ruby
jhack has joined #ruby
jhack has joined #ruby
<[k-_>
_blizzy_: mapping is the same as calling each key/value
<_blizzy_>
[k-_, thanks.
<_blizzy_>
I figured it out btw.
<[k-_>
clever.
<[k-_>
&ri Hash#map
<`derpy>
No results
<jhass>
.each_value(&:flatten!) if modifying the arrays is an option
<_blizzy_>
if I have hash = {:foo => [1,[2]], :bar => [2,[1]]}
<_blizzy_>
oh I did
riotjones has quit [Ping timeout: 240 seconds]
<[k-_>
hash is enumerable!
<[k-_>
adaedra: complaint
<adaedra>
Issue #3, iirc
<ArnaudM>
Environment="RAILS_ENV=production" "PATH=/home/netvibes/.rbenv/shims:$PATH" And i got Aug 21 16:28:23 puppetdashboard thin[32146]: /usr/bin/env: bash: No such file or directory
<_blizzy_>
hash.values.each.map(&:flatten!)
ndrei has quit [Ping timeout: 265 seconds]
saddad has joined #ruby
<ArnaudM>
Maybe my syntax is not good yet?
<jhass>
ArnaudM: actually I think $PATH is not populated there
hotpancakes has joined #ruby
<ArnaudM>
uch ok
<jhass>
idk rbenv, but are you sure you need to patch it?
<ljarvis>
_blizzy_: map is pointless there
<_blizzy_>
ljarvis, oh.
<jhass>
I mean you have to specify the full path the thin shim anyhow
<ljarvis>
_blizzy_: jhass' code is fine, no?
<adaedra>
Ah no, I did not open an issue for that
mutuma has quit [Quit: mutuma]
<_blizzy_>
ljarvis, yes.
<Psi-Jack>
$PATH should be already populated.
<[k-_>
ljarvis: you mean each is pointless
<ljarvis>
_blizzy_: ok cool
sevenseacat has quit [Quit: .]
<ljarvis>
[k-_: no..
<ArnaudM>
jhass if i remove this PATH var (I think its useless btw) I got the same result than before : inactiv after a fresh start
<ljarvis>
the each is the necessary part
<[k-_>
why would map be pointless
<_blizzy_>
well, since I'm still learning, which is unnecessary?
ndrei has joined #ruby
<_blizzy_>
each or map
<[k-_>
im confuzzled
<[k-_>
oh, i get it
<adaedra>
_blizzy_: both have different usages
<ljarvis>
_blizzy_: you're modifying the values, you don't care about the returning array
<ljarvis>
hence each is useful here
<ljarvis>
map is not
<_blizzy_>
oh ok.
<[k-_>
yes, i got it!!
<[k-_>
praise me ~o~
<_blizzy_>
ruby is cool af.
<eightyeight>
seems i've got it worked out
<ljarvis>
you could also use map!(&:flatten)
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
ArnaudM: maybe we get some useful output with -D ?
Macaveli has joined #ruby
<[k-_>
that would be more expensive
banghouse2 has quit [Quit: What if the hokey pokey really is what it's all about?]
<eightyeight>
hmm. maybe not
Macaveli has quit [Client Quit]
<adaedra>
[k-_: opened issue #5
<jhass>
ArnaudM: also check for a log/thin.log
<eightyeight>
Disabling plugin due to error: NameError, uninitialized constant Encoding::ASCII_8BIT
Pupp3tm4st3r has quit [Ping timeout: 240 seconds]
<[k-_>
k
axl_ has quit [Quit: axl_]
<ArnaudM>
ok jhass
umgrosscol has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
<ljarvis>
eightyeight: what ruby version?
<eightyeight>
2.2
<jhass>
ArnaudM: could also imagine -s implies -d so we'd need indeed Type=forking
<eightyeight>
does something need to be added to the script?
ngscheurich has joined #ruby
<jhass>
ArnaudM: and just to check for the obvious, keep in mind to daemon-reload after editing the service file
<ArnaudM>
yes sure
<ArnaudM>
I do that every time
dgutierrez1287 has joined #ruby
<ArnaudM>
thanks for your help, testing..
<jhass>
figured, but better safe than sorry ;)
roolo has joined #ruby
<ArnaudM>
yeah !! working great jhass
<ArnaudM>
thanks a lot man
rolfb has quit [Quit: Leaving...]
<eightyeight>
ljarvis: do i need to add something to the script?
<ArnaudM>
I did so much change.. my PATH syntax was not good : sure
dopie has joined #ruby
<ArnaudM>
and use forking I must
RegulationD has joined #ruby
<ljarvis>
eightyeight: what does Encoding.list return?
<Psi-Jack>
mwlang: Heh, it's funny too. I had asked in #sensu if re-writing my bridge extension to utilize RabbitMQ would be advisable to handle varrying diferent types of external communications, tcp, http, etc.. And was told that the resources used to serialize, push, and fetch data from rabbitmq may exceed those to just send to the correct endpoint.
victortyau has joined #ruby
<Psi-Jack>
May be right... But, em-http-request itself has no queuing and retry system, like EM::Connection does.
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<eightyeight>
jhass: hmm. not sure how to get tracebacks of scripts with the weechat client
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<eightyeight>
however, the current error is: NoMethodError, undefined method `split' for nil:NilClass
blackjid has quit [Max SendQ exceeded]
umgrosscol has joined #ruby
<jhass>
yeah, I'm afraid that's impossible to debug without a backtrace
blackjid has joined #ruby
<eightyeight>
looks like the split() function is only called twice in the script, if that error isn't a red herring
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<IrishGringo>
I need assistance with my MBP 10.10.5 machine setting up cocoapods... can someone look at this please... http://pastebin.com/fgkYq0eC
diegoaguilar has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
bruno- has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
havenwood has joined #ruby
lannonbr has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<marguerite>
hello, how can nokogiri automatically skip unrecognized characters? some part of my needed text was skipped because they appeared after the unrecognized characters...my code please see http://paste.opensuse.org/98409697
dfockler has quit [Remote host closed the connection]
moshe_ has joined #ruby
fantazo has quit [Ping timeout: 244 seconds]
greymeister has joined #ruby
biske has quit [Client Quit]
RegulationD has quit [Remote host closed the connection]
leafybasil has quit [Read error: Connection reset by peer]
<adaedra>
:(
war_pigs has quit [Quit: later... computer is sleeping]
<baweaver>
hm?
kies^ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<moshe_>
anyone here experienced with using OmniAuth with multiple models? I’ve done everything stated here https://github.com/plataformatec/devise/wiki/OmniAuth-with-multiple-models but it doesnt seem to work. The omniauth url methods are not being generated, so I’m getting undefinied ‘user_omniauth_authorize_path’
pawnbox has joined #ruby
Alayde has quit [Quit: WeeChat 1.1.1]
dfockler has joined #ruby
leat has quit [Ping timeout: 246 seconds]
roolo has quit [Ping timeout: 260 seconds]
leafybasil has joined #ruby
nertzy has joined #ruby
Asher has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
Alayde has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<jhass>
?rails moshe_
<ruboto>
moshe_, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
diegoaguilar has quit [Remote host closed the connection]
cajone has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has joined #ruby
DexterLB has quit [Ping timeout: 260 seconds]
rideh has quit [Ping timeout: 264 seconds]
anon has joined #ruby
anon is now known as Guest10981
anon_ has quit [Ping timeout: 244 seconds]
cball has quit [Quit: Leaving]
[Butch] has quit [Read error: Connection reset by peer]
choke has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tmtwd has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
DexterLB has joined #ruby
bmcginty has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamninja has quit [Read error: Connection reset by peer]
anon_ has joined #ruby
iamninja has joined #ruby
failshell has joined #ruby
[Butch] has joined #ruby
roolo has joined #ruby
war_pigs has joined #ruby
Guest10981 has quit [Ping timeout: 256 seconds]
shawnacscott is now known as Shawn
Shawn is now known as ShawnIsADudelyDu
webuser20 has joined #ruby
ShawnIsADudelyDu is now known as ShawnADudelyDude
cball has joined #ruby
fgo has joined #ruby
<webuser20>
Good morning - I'm running into abit of an issue with some code - https://gist.github.com/anonymous/e8696c8e4fa1bf9f849c -- When I run the attached with a longer file (1500 lines or so) (full.txt) I quickly exhaust all the connections to my Mongo instance. This is because as I read through my file, I am instantiating another object, with it's database connection, for every line. It appears that the Ruby Mongo driver is not properly cl
nertzy has quit [Quit: This computer has gone to sleep]
<webuser20>
his is alluded to in https://jira.mongodb.org/browse/RUBY-910 and another bug issue I can't point to right now. I've tried a variety of things to work around this - reset the object to nil after it has been inserted, run a garbage collection, etc, but none helped. So my question is, what's the right way to share a database connection between multiple objects of a class?
mhib has joined #ruby
<jhass>
webuser20: can't you use a connection pool?
Asher has quit [Quit: Leaving.]
<apeiros>
better question: why on earth a new connection for each insert?
dgutierrez1287 has quit [Remote host closed the connection]
<webuser20>
jhass: that would be great, but I'm not sure how to do so. I shouldnt be creating a new connection for every insert, that's a bit silly
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
well actually apeiros has a point, why not a single connection?
roolo has quit [Ping timeout: 264 seconds]
<webuser20>
but, I'm not sure how to create a connection pool except creating a global or at least class level connection
<webuser20>
and.. I dont know if that would cause problems. I'm a bit new to the whole object programming ideas
dgutierrez1287 has joined #ruby
<jhass>
just pass the client into the constructor
<jhass>
tbh that class seems to be a bit arbitrary "let's use a class!"
<webuser20>
object.insert(data, @client)?
pdoherty has quit [Quit: Leaving]
fgo has quit [Ping timeout: 252 seconds]
jeanlinux has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
<webuser20>
from my understanding, passing the client to the constructor still creates a new connection for each object
C1V0 has joined #ruby
duggiefresh has quit [Remote host closed the connection]
user1138 has joined #ruby
<jhass>
More like client[:bar].insert LogEntry.new(line).record
eminencehc has quit [Remote host closed the connection]
<jhass>
I think that's getting somewhere
<jhass>
just the parsing seems like good domain for a class, no need for it to know about how to use a mongodb client
dgutierrez1287 has quit [Ping timeout: 244 seconds]
hahuang65 has quit [Ping timeout: 244 seconds]
<jhass>
but no, Ruby is pass by reference, it wouldn't create a new client
<nofxx>
spec/ test/ folders (all that's within) is packed in gem right?
paulcsmith has joined #ruby
<nofxx>
hence the s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") line
tmtwd has joined #ruby
thermatix has joined #ruby
veduardo_ has joined #ruby
pragmatism has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
nuttermb has joined #ruby
decoponio has joined #ruby
lannonbr has quit [Ping timeout: 245 seconds]
jeadre has quit [Remote host closed the connection]
jeanlinu_ has joined #ruby
<webuser20>
jhass: hrm, I see what you're saying, it's one thing I considered, but it felt..backward to me. Thanks, I'll refactor to something like that
jeanlinux has quit [Ping timeout: 240 seconds]
thermatix has quit [Ping timeout: 246 seconds]
Cust0sLim3n has quit [Ping timeout: 260 seconds]
DLSteve has joined #ruby
duggiefresh has joined #ruby
jeadre has joined #ruby
xet7 has joined #ruby
veduardo_ has quit [Ping timeout: 250 seconds]
kies^ has joined #ruby
sideshowcoder has quit [Quit: Connection closed for inactivity]
Cust0sLim3n has joined #ruby
arooni-mobile has quit [Read error: Connection reset by peer]
chohe has quit [Quit: This computer has gone to sleep]
toretore has joined #ruby
greenride has left #ruby [#ruby]
tmtwd has quit [Ping timeout: 245 seconds]
chohe has joined #ruby
icarus has quit [Quit: Lost terminal]
malconis has quit [Read error: Connection reset by peer]
malconis_ has joined #ruby
umgrosscol has joined #ruby
symm- has joined #ruby
Guest7662 is now known as DeezNuts
carlosoliveira has joined #ruby
shinnya has quit [Ping timeout: 245 seconds]
iateadonut has quit [Quit: Leaving.]
afrianska has quit [Remote host closed the connection]
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
[H]unt3r has quit [Quit: Leaving]
lannonbr has joined #ruby
prestorium has quit [Ping timeout: 244 seconds]
prestorium has joined #ruby
bruno- has joined #ruby
sepp2k has quit [Quit: Leaving.]
mary5030 has quit [Remote host closed the connection]
ItSANgo has quit [Quit: Leaving...]
mary5030 has joined #ruby
carlosoliveira has quit []
carlosoliveira has joined #ruby
northfurr has joined #ruby
mhib has quit [Read error: Connection reset by peer]
Vitor_ has joined #ruby
carlosoliveira has left #ruby [#ruby]
veduardo_ has joined #ruby
Pupp3tm4st3r has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
einarj_ has quit [Ping timeout: 244 seconds]
einarj has joined #ruby
choke has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
Kallis has quit [Read error: Connection reset by peer]
luksaur has quit [Ping timeout: 245 seconds]
jgpawletko has joined #ruby
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
<certainty>
eventing
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<certainty>
erm, evening
baweaver has joined #ruby
B5X has quit [Ping timeout: 240 seconds]
stamina has quit [Quit: WeeChat 1.2]
noethics has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
prestorium has quit [Ping timeout: 272 seconds]
Pupp3tm4st3r has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 260 seconds]
nuttermb has quit [Ping timeout: 246 seconds]
bumbar_ has quit [Ping timeout: 245 seconds]
einarj has quit [Ping timeout: 244 seconds]
tubulife- has joined #ruby
einarj has joined #ruby
ruby-lang878 has joined #ruby
<ruby-lang878>
hi, is anyone here?
<relic>
Certainly.
<certainty>
sure
veduardo_ has quit [Ping timeout: 250 seconds]
_d has joined #ruby
symm- has quit [Quit: Leaving...]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kirun has joined #ruby
<_d>
need to write a script
jenrzzz has quit [Ping timeout: 265 seconds]
<certainty>
cool. do it :)
<_d>
where i have files populated given each line as something similar to this: 0 AUE_NULL STD { int nosys(void); } syscall nosys_args int
<shevy>
need to throw the cat
<_d>
what i want is
<certainty>
need to catch the cat
lurkmaster has joined #ruby
<_d>
for the resulting output to be: { 0, nosys, 0 }
MasterPiece has joined #ruby
<_d>
where the last 0 represents the arguments in nosys
<_d>
but if given arguments like (int, float, struct), it would return 3.
<_d>
or if given the argument (int) it would give one.
<_d>
1.
<_d>
I think it would be easy to go about getting the first number (the first 0)
<lurkmaster>
hey guys, i'm getting this weird error message when I try to start a new rails app. anyone know what's going on here? http://pastie.org/10366950
<_d>
But I'm really new
<jhass>
?crosspost lurkmaster
<ruboto>
lurkmaster, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
Vitor_ has quit [Read error: Connection timed out]
<relic>
That's pretty trivial to do, but I wonder what comes afterward.
einarj_ has joined #ruby
<lurkmaster>
this is a crosspost, no one replied, and so there were no suggestions
einarj has quit [Ping timeout: 255 seconds]
<relic>
Clearly some BSD variant, perhaps a fuzzer of some kind.
Vitor_ has joined #ruby
<relic>
Linux syscalls are listed rather differently, note: AUE_NULL STD.
<relic>
Oh he left.
<certainty>
no I can't help shevy
ruby-lang878 has quit [Ping timeout: 246 seconds]
<certainty>
nobody can
pullphinger15 has joined #ruby
<relic>
Damn /ignore * join part quit crap.
<zenspider>
WHY DID YOU NOT WRITE IT FOR ME?!?!?
<relic>
zenspider: You've been yelling since before you woke up.
<relic>
10:04 < zenspider> STABLE!!!
arooni-mobile has joined #ruby
<lurkmaster>
so no one has any clue why rails won't let me start a new app?
<relic>
Was _d expecting someone to write it for him, or to guide him on how to write it? :\
<relic>
lurkmaster: This channel isn't about rails.
<relic>
There's another channel down the hall to the left regarding that.
astrobun_ has quit [Remote host closed the connection]
<relic>
(It's called #rubyonrails.)
<lurkmaster>
relic: that channel is completely unresponsive and fucking sucks
einarj_ has quit [Read error: Connection reset by peer]
<relic>
Well then, that's not very nice.
<lurkmaster>
relic: but its true
sarkyniin has quit [Ping timeout: 260 seconds]
lannonbr has quit [Ping timeout: 256 seconds]
einarj has joined #ruby
choke has joined #ruby
ruby-lang055 has joined #ruby
<zenspider>
relic: haha. uh. hopefully not my timezone. IMPOSTER!
amoeba is now known as petridish
astrobun_ has joined #ruby
jackjackdripper has joined #ruby
* relic
eyes zenspider.
pullphinger15 has quit [Client Quit]
<zenspider>
lurkmaster: no, it isn't completely unresponsive. I've gotten help there several times in the past month or so
B5X has joined #ruby
<jhass>
lurkmaster: welcome to IRC, sometimes it just takes an hour or two
<ruby-lang055>
can you hear me now?
<zenspider>
try asking your question better... in a way that conveys your intent and is actually answerable
User458764 has joined #ruby
sepp2k has joined #ruby
fgo has joined #ruby
UtkarshRay has quit [Quit: Leaving]
failshell has quit []
<ruby-lang055>
any suggestions for loading a constant from a gem? it seems to not be able to find the new gem
<ruby-lang055>
if I run $gem which analytics-ruby, it says ERROR: Can't find ruby library file or shared library analytics-ruby
<ruby-lang055>
in my code or in the console, it gives NameError (uninitialized constant Segment):
<ruby-lang055>
I'm using rails
Asher has joined #ruby
<lurkmaster>
zenspider: my intent is to solve an error message. i have written a line of code yet, rails won't even generate a new app. what would make my query more answerable?
<zenspider>
ruby-lang055: there's no rule about the gem name that is requirable
<lurkmaster>
and suck is a relative term. in absolute terms maybe the rails channel doesn't suck but in relative terms it sure does. someone would've responded in #django or #nodejs or #python or #javascript
luksaur has joined #ruby
<ruby-lang055>
I see it when I run bundle: "Using analytics-ruby 2.0.12"
<ruby-lang055>
how come it's not loading in console or my rails app?
<zenspider>
lurkmaster: you're not providing the cmd. you're not providing version info... you're not providing a lot.
<zenspider>
ruby-lang055: remove the grep. might have c exts
<zenspider>
gotta go to lunch...
<ruby-lang055>
noooooo
B5X has quit [Ping timeout: 265 seconds]
<lurkmaster>
zenspider: cmd - rails new app
<ruby-lang055>
I see a bunch of stuff with $ gem contents analytics-ruby
IrishGringo has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.2/20150812163655]]
<ruby-lang055>
but I don't know how to load it in the console :(
pullphinger has joined #ruby
<ruby-lang055>
require doesn't do the trick
pullphinger has quit [Excess Flood]
pullphinger has joined #ruby
pullphinger has quit [Excess Flood]
AlexRussia_ has quit [Ping timeout: 246 seconds]
fgo has quit [Ping timeout: 265 seconds]
nerium has quit [Quit: nerium]
_Cronon_ has joined #ruby
towski_ has quit [Remote host closed the connection]
towski_ has joined #ruby
chohe has quit [Quit: This computer has gone to sleep]
lannonbr has joined #ruby
Cronon has quit [Ping timeout: 246 seconds]
fantazo has quit [Ping timeout: 244 seconds]
<Hamled>
Does the ruby core library have anything similar to eval that would prevent any function calls (e.g. if you want to [de]serialize a ruby data structure)
astrobun_ has quit [Remote host closed the connection]
<jhass>
Hamled: check the literal_parser gem or yet better don't do such stuff
<Hamled>
jhass, oh yah I agree dont' do such stuff
<Hamled>
and thanks for the tip
<jhass>
Hamled: use a proper serialization, like JSON, YAML, Marshal
Musashi007 has quit [Quit: Musashi007]
JoshL has quit []
symm- has joined #ruby
rfmind_ has joined #ruby
pawnbox has joined #ruby
astrobun_ has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
<certainty>
lurkmaster: you can skip the bundle. See options for the rails new command but that doesn't solve your problem. It only delays it
linuxboy_ has joined #ruby
<nofxx>
Hamled, there's even BSON if you're sexually inclined to binaries
<lurkmaster>
certainty: thanks for being the first person to respond to my question, ill try that
<lurkmaster>
certainty: do you know how i might go about fixing the underlying problem?
<lurkmaster>
certainty: everything fine just a day or two ago, and now I'm getting this random error message
<certainty>
lurkmaster: no unfortunatelly not. What ruby and rails version is this. Did you do anything special?
xet7 has quit [Ping timeout: 246 seconds]
riskish has joined #ruby
<lurkmaster>
certainty: ruby 2.0.0p481
riskish has quit [Remote host closed the connection]
<lurkmaster>
certainty: when i try to run ruby -v i get the same error message so I'm not sure what version i have but i reinstalled rails yesterday so it must be the newest version of rails
linuxboytoo has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
<certainty>
ruby -v gives you that error?
jienahma has joined #ruby
jienahma has left #ruby [#ruby]
jienahma has joined #ruby
<nofxx>
is 'chunk' a somesort of reserved word ? got the craziest w/o trace error: 'ArgumentError: no block given'
<lurkmaster>
certainty: i meant rails -v sorry
j_mcnally has joined #ruby
<lurkmaster>
certainty: i did edit the .bash_profile while doing a codecademy exercise, could that be it?
<nofxx>
ahh.... enumerable
radgeRayden_ has joined #ruby
renderful has quit [Ping timeout: 252 seconds]
mleung has quit [Quit: mleung]
jtdoncas has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
dfockler has quit [Remote host closed the connection]
renderful has joined #ruby
<certainty>
lurkmaster: what did you change?
bruno- has quit [Ping timeout: 260 seconds]
radgeRayden has quit [Ping timeout: 244 seconds]
radgeRayden__ has joined #ruby
sphex_ has quit [Ping timeout: 250 seconds]
eminencehc has joined #ruby
lannonbr has quit [Ping timeout: 264 seconds]
<certainty>
lurkmaster: in any case you can check that by starting a shell with bash --noprofile and run the command again
sphex has joined #ruby
pandaant has joined #ruby
codecodecode123 has joined #ruby
<lurkmaster>
certainty: I don't remember what i originally changed, but after i started having issues with rails i deleted its contents because i thought i added some faulty code and i was going crazy over it
<lurkmaster>
certainty: just ran the command without a profile — same error
radgeRayden has joined #ruby
<certainty>
so we can conclude it's probably not your change to the profile
devoldmx has quit [Ping timeout: 244 seconds]
<certainty>
it however is something that's specific to your environment because generally this kind of stuff works
<codecodecode123>
Hi, can someone help me? http://pastie.org/10367031 I am having trouble with a script i made.
<jhass>
codecodecode123: is this a guessing game?
<codecodecode123>
no,
doodleha_ has joined #ruby
<codecodecode123>
ill explain
crdpink has joined #ruby
<codecodecode123>
its a script that runs with console params
radgeRayden_ has quit [Ping timeout: 265 seconds]
saphafee has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<certainty>
guessing game?
<jhass>
codecodecode123: alright, maybe let's fix the obvious stuff
<codecodecode123>
it saves or loads ips by label
crdpink2 has quit [Ping timeout: 246 seconds]
jonee has quit [Ping timeout: 260 seconds]
<codecodecode123>
there is a ips.json file which stores the ips and labels
<jhass>
codecodecode123: ARGV[0] = "-a" is not ARGV[0] == "-a" is not ARGV[0].start_with? "-a"
unver` has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
saphafee has left #ruby [#ruby]
radgeRayden__ has quit [Ping timeout: 265 seconds]
nzst has joined #ruby
<jhass>
codecodecode123: please oh please have a look at File.read and File.write, you're writing Ruby, not a shellscript
<codecodecode123>
oh, right
<codecodecode123>
but i want it to work with shellscript
xwct has joined #ruby
<jhass>
that's okay
<jhass>
work with != it is
ivanskie has joined #ruby
<jhass>
rename get_ips to read_ips or parse_ips we generally frown upon get_, is_, set_ in method names
doodleha_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<codecodecode123>
okay
mary5030 has joined #ruby
<jhass>
I hope the fancy " are just osx being silly as you copy pasted or pastie rendering silly
<codecodecode123>
linux, not osx
<codecodecode123>
ill fix the doublequotes
diegoaguilar has joined #ruby
<jhass>
ah nvm, it's pastie
<jhass>
prefer "string #{interpolation}" over "string" + concatenation
dgutierrez1287 has joined #ruby
<codecodecode123>
okay
ivanskie has quit [Ping timeout: 246 seconds]
decoponio has quit [Quit: Leaving...]
<jhass>
and the general structure could benefit from extracting the individual commands to methods and perhaps using OptionParser or even slop
pawnbox has quit [Remote host closed the connection]
<codecodecode123>
well, i considered OptionParser
<codecodecode123>
but the structure seemed a bit needlessly complex to me
dgutierrez1287 has quit [Remote host closed the connection]
pawnbox has joined #ruby
dgutierrez1287 has joined #ruby
<codecodecode123>
i guess a 12 year old can't understand that well
<codecodecode123>
*11
<wasamasa>
slop is another fine option
* wasamasa
wonders what this script is for
radgeRayden_ has joined #ruby
radgeRayden has quit [Ping timeout: 265 seconds]
<codecodecode123>
i told it before
<wasamasa>
<codecodecode123> it saves or loads ips by label
<codecodecode123>
it stores and retrieves ips
<wasamasa>
that's not the real purpose, is it
ta has quit [Remote host closed the connection]
<wasamasa>
for that you could just use the shell
<codecodecode123>
i wanted to make a ruby script for it
<codecodecode123>
it gives me more opportunities for other features
<wasamasa>
hence my question what the real purpose is :>
bstrarm has joined #ruby
ItSANgo has joined #ruby
<wasamasa>
what do you intend to turn it into?
<codecodecode123>
an ip retrieving and storing system
bustrarm has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
phutchins has quit [Ping timeout: 255 seconds]
<wasamasa>
...
hahuang65 has joined #ruby
<wasamasa>
what would an eleven-year old do with ip addresses?
<codecodecode123>
*my dad
<codecodecode123>
i am selling this script to him
<wasamasa>
wat
<codecodecode123>
the script itself is free
<codecodecode123>
additional features are paid
<yxhuvud>
spoken like a true entrepeneur!
choke has joined #ruby
<wasamasa>
why the heck would anyone pay for editing and saving a file
<codecodecode123>
my core goal: script entrepeneur
<codecodecode123>
first time
<wasamasa>
lol
<codecodecode123>
never gained any money by work in my whole ligfe
nofxx has quit [Ping timeout: 264 seconds]
<codecodecode123>
*life
<wasamasa>
looks like doing physical work has become uncool
<codecodecode123>
yep
<yxhuvud>
wasamasa, well, you are in a programming channel after all..
<codecodecode123>
don't prefer completing errans to get money
<codecodecode123>
*errands
<atmosx>
wasamasa: Actually, working on the computer (writing code or text) it's exhausting. At that point, you wanna do some physical work (work with the hands and set the mind free).
<wasamasa>
atmosx: yes, exactly
<codecodecode123>
that is true
<wasamasa>
atmosx: I did even go as far as working for three months at the fast food chain with the big m
<atmosx>
wasamasa: it's a huge relief when I get to do it. Then I go back working on the computer. I think humans need a fair amount of both. I need to exercise a lot more though
<wasamasa>
atmosx: and was shocked it paid better than my previous internships
<codecodecode123>
but i still do not prefer profit by physical labor
<atmosx>
physical works != execrise
<codecodecode123>
well, i do exercise
radgeRayden_ has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
<atmosx>
wasamasa: does it? I don't know, engineers in DO (sys-admins shit) start from 60k/year. You can't go for that kind of money in big M
<yxhuvud>
atmosx: certain countries think that it is a good idea to not pay interns. Which is idiotic, but that is how it is.
<wasamasa>
they did pay, just ridiculously little
<atmosx>
codecodecode123: a retrieving and storing system I know is called database, you might wanna check it out
<codecodecode123>
i know
shinnya has joined #ruby
<certainty>
sup wasamasa
<codecodecode123>
this is a json system
<wasamasa>
certainty: hi
<atmosx>
yxhuvud: I see. What interns 'do' actually?
roolo has joined #ruby
<wasamasa>
codecodecode123: make it to hackernews
<atmosx>
yxhuvud: write code, like real code... or just do photocopies?!
<atmosx>
this MrRobot series was extremely dissapointing
<wasamasa>
orly?
<certainty>
lurkmaster: did you solve your problem or narrow the cause down?
<yxhuvud>
atmosx: you should ask wasamasa, I never was one
The_Phoenix has joined #ruby
<codecodecode123>
my opinions are that json and xml shouldn't just be used for data transfering
<wasamasa>
*serialization
dgutierrez1287 has quit [Remote host closed the connection]
<codecodecode123>
they have potential for data storing, im ny opinion
nzst has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
jerius has quit [Quit: /quit]
<codecodecode123>
*mu
<codecodecode123>
**my
lannonbr has joined #ruby
<atmosx>
codecodecode123: txt has a lot of potential too
<wasamasa>
you'll be delighted to know then that xml and json databases have been failures in many aspects
<atmosx>
unexploited unfortunately
<wasamasa>
object databases, too
roolo_ has joined #ruby
<wasamasa>
relations are where it's at
<certainty>
if you have a database available on the net that's public relations
<wasamasa>
huehuehue
<codecodecode123>
well, you can make two json/xml file, one is storage and other is relation
<lurkmaster>
certainty: nope, still int he dark
<codecodecode123>
*files
roolo has quit [Read error: Connection reset by peer]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wasamasa>
codecodecode123: real databases are magic
cornerma1 has joined #ruby
nettoweb has joined #ruby
The_Phoenix has quit [Client Quit]
* codecodecode123
doesn't believe in magic, digital or not
northfurr has quit [Quit: northfurr]
<yxhuvud>
codecodecode123, you can but it turn unwieldy pretty quickly. But the easiest way to learn that is to code some of that, and then code some using other databases.
<certainty>
lurkmaster: could you pleas pastie your env
<certainty>
for that task you need code that knows how to decompose your textual representation into the desired one. probably there are several phases
<_d>
jhass: one sec
<certainty>
_d: jhass is right. If that's C then you probably can jus reuse a existing parser
fgo has joined #ruby
<certainty>
it certainly looks like C
pls-help has joined #ruby
<_d>
certainty: like which?
<certainty>
lurkmaster: what version of bundler is this?
<pls-help>
anyone know why I might be getting: 027 > require 'analytics-ruby' LoadError: cannot load such file -- analytics-ruby
chohe has joined #ruby
<pls-help>
I have the gem installed and in my bundle file
<pls-help>
Gemlist* file
choke has joined #ruby
<pls-help>
I keep getting NameError (uninitialized constant Segment): as if it doesn't know about the gem
baweaver has quit [Remote host closed the connection]
<certainty>
hyy_: well that was just a wild guess :)
<certainty>
shevy: there is so much work todo!
yeticry has quit [Read error: Connection reset by peer]
<pls-help>
I defined a variable called analytics in application.rb, but I can't seem to access it in models/user.rb. Is there a special flag I need to add?
<shevy>
certainty yeah, I need me to find some slave hackers
<hyy_>
certainty: I've done it!
<pls-help>
def analytics @analytics ||= Analytics.new(current_user) end
JDiPierro has quit [Remote host closed the connection]
<certainty>
pls-help: no you don't need a special flag. What's the error method you get?
<Ox0dea>
hyy_: Line 7 could just be `if str.upcase!`, but you probably don't need to know about that just yet.
hinbody has quit [Quit: leaving]
axl_ has quit [Ping timeout: 272 seconds]
<hyy_>
how would I extend it so that if I shout bye 3 times in a row I exit the program but not if I shout bye 2 times then something else?
axl_ has joined #ruby
<pls-help>
certainty: I just tried adding it to ApplicationHelper too, but I'm not having success. I get undefined local variable or method `analytics' for #<User:0x007fd850625630>
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
simply keep track with a variable how often you counted hyy_
<certainty>
Ox0dea: would you like to see that in your codebase? I'm not sure. It does the job but also somehow shadows the fact that the nature of that block is a query
Soda has quit [Remote host closed the connection]
<certainty>
where by block i don't mean ruby block but rather block of code
<Ox0dea>
certainty: I disagree; some bang methods have this behavior precisely so that they can be used in conditionals.
crdpink2 has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj_ has joined #ruby
crdpink has quit [Ping timeout: 246 seconds]
einarj has quit [Ping timeout: 244 seconds]
allcentury has quit [Ping timeout: 246 seconds]
Vitor_ has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving]
<certainty>
Ox0dea: i certainly would agree if i wanted to actually upcase the input and as a second task know if it had something to upcase. But the upcasing itself seems to be the prominent action buy this mixture of command and query
<nitenq>
Hi there, I am trying to install on a OSX client a specific gem who needs ruby-dev and ruby >= 1.9 . It doesn’t have any access to internet and has only 1.8 install on it and not even ruby-dev. Is there a way to get through this
bronson has quit [Remote host closed the connection]
bstrarm has quit [Ping timeout: 260 seconds]
<ght>
You doing the whole leap year check?
<hyy_>
is this the correct way to calculate leap years?
<hyy_>
ght: yes
<ght>
hyy: I have code where I did this manually, hang on.
<baweaver>
nitenq: plug it into the internet.
bronson has joined #ruby
<nitenq>
haha.
juanpaucar has quit [Remote host closed the connection]
<baweaver>
Could you theoretically hack it? Yes, but it would be far far worse for it.
<shevy>
nitenq you can rebuild the .gem by changing the .gemspec file
<ght>
That's some old code, now I just use DateTime / Date objects.
<nitenq>
shevy: what do you mean ?
<baweaver>
so why can't you connect to the internet?
bronson has quit [Remote host closed the connection]
<ght>
But back before I knew to do that, I did a lot of manual date manipulation.
bstrrm has quit [Ping timeout: 244 seconds]
<ght>
when 2 is when month is 2, to determine how many days are in feb
<baweaver>
there's a reason they lock versions on those, I would not do that if I were you.
<nitenq>
shevy: actually I can’t install any gem cause I don’t have ruby-dev installed. Is it an issue ?
<baweaver>
besides, 1.8.x has serious breaking changes
bronson has joined #ruby
<baweaver>
why can you not get online?
<nitenq>
baweaver: I can connect it to the internet
<baweaver>
then do it, problem solved
<nitenq>
can't
<baweaver>
trying to hack this is a bad idea
<nitenq>
*
<baweaver>
define can't
nb_bez___ has quit [Quit: Connection closed for inactivity]
<BraddPitt>
ahaha
bronson has quit [Remote host closed the connection]
<BraddPitt>
gem-dependent project development without internet connection is not going to be fun
<nitenq>
baweaver: ? It’s impossible to connect it to the internet
<baweaver>
why?
bronson has joined #ruby
<nitenq>
cause it’s in a company who doesn’t allow this machine to access internet
<BraddPitt>
you can put the ruby install on a usb drive
<baweaver>
tell security you're SOL without it
<shevy>
nitenq I don't know what is ruby-dev
<ght>
I not know computer pls to halp
<baweaver>
the hackery required to get around it will be far worse than forcing NetSec to be reasonable.
<shevy>
nitenq in regards to rebuilding a .gem, the .gemspec specifies things such as minimal ruby version required. you can edit that line, then rebuild a new .gem from the .gemspec file
bronson has quit [Remote host closed the connection]
<ght>
The "hackery"
CloCkWeRX has joined #ruby
<baweaver>
shevy: for 1.8? Don't
verdoc has joined #ruby
<ght>
You mean deploying a remote ssh tunnel listening on 443/tcp so that sysadmins think you're just grabbing https traffic?
<ght>
Which is what I did previously to bypass our content filter.
bb010g has quit [Quit: Connection closed for inactivity]
dgutierrez1287 has joined #ruby
<zenspider>
that is some seriously contrived shit. "Specific Options" vs "Common Options", OpenStruct, octal??? ugh
andybernard has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
malconis_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
luksaur has quit [Quit: Leaving]
bronson has quit [Remote host closed the connection]
<verdoc>
jhass / zenspider - what would you change to fix it?
bronson has joined #ruby
<jhass>
either define Version or don't reference it
dimasg has joined #ruby
anon_ has joined #ruby
fgo has joined #ruby
bronson has quit [Remote host closed the connection]
kies^ has quit [Ping timeout: 272 seconds]
radgeRayden_ has joined #ruby
dgutierrez1287 has quit [Ping timeout: 246 seconds]
Guest97323 has quit [Ping timeout: 260 seconds]
<zenspider>
nuke the :: and define it at the top w/ the other constants. it's dumb to begin with, but having the example have Version defined outside is even dumber
m8 has quit [Quit: Sto andando via]
bronson has joined #ruby
jeanlinux has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
andywojo has quit [Ping timeout: 245 seconds]
bronson has quit [Remote host closed the connection]
finisherr has quit [Quit: finisherr]
bronson has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper1 has quit [Client Quit]
bronson has quit [Remote host closed the connection]
jackjackdripper1 has joined #ruby
Soda has joined #ruby
bronson has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
TomyLobo has quit [Ping timeout: 256 seconds]
andybernard has joined #ruby
user1138 has quit [Ping timeout: 246 seconds]
mary5030_ has joined #ruby
Asher has joined #ruby
ngscheurich has joined #ruby
bronson has quit [Remote host closed the connection]
jackjackdripper has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
Cache_Money has quit [Quit: Cache_Money]
bronson has quit [Remote host closed the connection]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
doublemalt_ has joined #ruby
bronson has joined #ruby
<verdoc>
jhass & zenspider - thanks
tkuchiki has quit [Remote host closed the connection]
hyy_ has quit [Ping timeout: 244 seconds]
bronson has quit [Remote host closed the connection]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
WillAmes has quit [Remote host closed the connection]
bronson has joined #ruby
dimasg has quit [Ping timeout: 244 seconds]
bronson has quit [Remote host closed the connection]
DoubleMalt has quit [Ping timeout: 260 seconds]
lkba_ has joined #ruby
bronson has joined #ruby
einarj_ has quit [Ping timeout: 240 seconds]
ckinniburgh_ has joined #ruby
WillAmes has joined #ruby
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
einarj has joined #ruby
bronson has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 246 seconds]
DLSteve has quit [Quit: Leaving]
tkuchiki has joined #ruby
ckinniburgh has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
nitenq has quit [Quit: nitenq]
choke has joined #ruby
Alayde has quit [Ping timeout: 245 seconds]
bronson has quit [Remote host closed the connection]
xet7_ has joined #ruby
ckinniburgh_ has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
A124 has quit [Quit: Luke's IRC Client v0.94 build 682]
maletor has quit []
bronson has quit [Remote host closed the connection]
nitenq has joined #ruby
decaff has quit [Remote host closed the connection]
bronson has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
bronson has quit [Remote host closed the connection]
mary5030_ has quit [Remote host closed the connection]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
revoohc has quit [Quit: revoohc]
juanpaucar has quit [Remote host closed the connection]
whippythellama has quit [Quit: WeeChat 1.3]
bronson has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
ngscheurich has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
ShawnADudelyDude is now known as shawnacscott
nerium has quit [Quit: nerium]
bronson has quit [Remote host closed the connection]
erts has quit [Quit: erts]
bronson has joined #ruby
shellie_ has quit [Remote host closed the connection]
phutchins has joined #ruby
AbdulRehman has quit [Quit: AbdulRehman]
bronson has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
bronson has joined #ruby
pietr0 has quit [Quit: pietr0]
dopie has joined #ruby
bronson has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
mois3x has joined #ruby
jaycee has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
war_pigs has quit [Remote host closed the connection]
bronson has joined #ruby
war_pigs has joined #ruby
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
jenrzzz has joined #ruby
chohe has quit [Read error: Connection reset by peer]
felltir has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
bronson has joined #ruby
felltir has joined #ruby
chohe has joined #ruby
Zackio has quit [Read error: Connection reset by peer]
felltir has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
dopamean_ has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
chouhoulis has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
<jhack>
shows amazing
charliesome has joined #ruby
einarj_ has quit [Ping timeout: 240 seconds]
fedexo has joined #ruby
bronson has joined #ruby
<jhack>
also, is there a softwaredev channel?
einarj has joined #ruby
<banister>
jhack ugh, i thought it ws stupid
<jhack>
banister: really?
<banister>
jhack Yes, i'm not interested in some emotionally stunted dude with aspgers
bronson has quit [Remote host closed the connection]
<banister>
and his little 'speech' made me cringe, just a flood of cliches
ndrei has joined #ruby
<jhack>
banister: HAHA, yeah the main characters pretty awkard as fuck
bronson has joined #ruby
<banister>
everything about the show is just stupid, IMO, obvious, unintesting, cliche, and badly written and acted
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 244 seconds]
bronson has quit [Remote host closed the connection]
tkuchiki has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
eminencehc has joined #ruby
bronson has joined #ruby
haylon has joined #ruby
<baweaver>
banister: thank you
<jhack>
banister: any interesting shows youd recommend?
<baweaver>
As a guy with aspergers, that guy makes my skin crawl
bronson has quit [Remote host closed the connection]
<haylon>
If I wanted to go through the pain of compiling and installing ruby by hand without the use of RVM, what are some of the libraries or extensions I'd need to make it work as close to what RVM does? I know I need readline,, bu some of the others, I'm not sure of.