<Jamie___>
yokke: here is the line of code where i get my error
<Jamie___>
finaltotal += itemtotal
<jokke>
that doesn't help... at all
randomautomator has joined #ruby
<jokke>
i need to see the whole thing
<Jamie___>
ok
<Jamie___>
give me a 2nd
<jokke>
or you tell me what you think finaltotal should be
bubblehead has quit [Remote host closed the connection]
<Yulli>
jokke: Okay, thanks. :)
<jokke>
is this the first time you have it in your code?
tommyvyo has quit [Quit:]
<jokke>
if so it is nil of course.
bricker has quit [Ping timeout: 248 seconds]
stnly has joined #ruby
autumn has joined #ruby
<jokke>
you need to set it to an initial value (like 0 or what ever)
thomasfedb has joined #ruby
eliasp has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
eliasp has joined #ruby
<Jamie___>
yokke i though values were already initialized to 0 in ruby
momomomomo has joined #ruby
<jokke>
no
<jokke>
wrong
otters has joined #ruby
waxjar has joined #ruby
tspike has quit [Ping timeout: 240 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
fixl has joined #ruby
etcetera has joined #ruby
nathancahill has quit [Quit: nathancahill]
<jokke>
Jamie___: for the future: gem install pry && gem install pry-nav. Then include 'pry-nav' in your project and if you get any error just put binding.pry before the line that gives you the error. Then you can inspect variables etc and can move around in your code with next or step or continue
<jokke>
actually just gem install pry-nav
alexim has quit [Quit: bye]
<jokke>
pry will be dependency
<jokke>
afaik
<jokke>
pry is like irb but better
BSaboia has joined #ruby
ferdev has quit [Ping timeout: 252 seconds]
<banister_>
Jamie___: or use pry-rescue which will automatically open pry when u get an error
pcarrier_ has joined #ruby
rwilcox has quit []
<jeffreylevesque>
someone tell me how to acquire ruby build log?
eliasp has quit [Read error: Connection reset by peer]
bricker has joined #ruby
eliasp has joined #ruby
bubblehead has joined #ruby
c0rn has joined #ruby
<jokke>
well as i said, you need to initialize your variables. It's as simple a that. From what i gather here i guess you're still quite new to programming so what i will tell you next might not make sense to you. Still: in ruby + is a _method_ because in ruby everything is an _object_ even numbers are objects. Somewhere in their source code they have a method definition like this def + other_number. even nil (which
<jokke>
you might know as null from other languages) is an object and it doesn't have that + method. There's your error explained. :)
<jokke>
your indentation still kinda sucks but oh well
yshh has quit [Remote host closed the connection]
tish has joined #ruby
rads has quit []
c0rn has joined #ruby
idkazuma has quit [Remote host closed the connection]
sambio has quit []
mattbl has quit [Quit: This computer has gone to sleep]
nezumi has joined #ruby
rburton- has quit [Read error: Connection reset by peer]
mattbl has joined #ruby
<jokke>
okay now..
rburton- has joined #ruby
<shevy>
jokke hehe
<Jamie___>
im here jokke
<jokke>
shevy: i copied it to vim and let it indent it correctly
hogeo has joined #ruby
<shevy>
I usually tell people to fix their indent first
<jokke>
so Jamie___ where's the problem
<shevy>
it is a simple sign of intelligence :)
<jokke>
i'm too kind
<shevy>
yeah
<Jamie___>
well
<shevy>
by the way Jamie___
sivoais has quit [Ping timeout: 246 seconds]
<Jamie___>
i actually just ran the program after your suggestion and its works lol
<shevy>
you can replace things like:
<shevy>
elsif name == "Bottle of Perfume" or name == "Music CD"
<shevy>
with
<shevy>
when "Bottle of Perfume","Music CD"
<shevy>
if you use a case menu
<Jamie___>
just had to initialize it
<jokke>
:D
<jokke>
lol
tommyvyo has joined #ruby
Domon has joined #ruby
<jokke>
Jamie___: also a good idea might be to check if name.start_with? "Imported"
<shevy>
yeah, you can use if/else/elsif too, I just find case/when simpler when the checks are long
<shevy>
Jamie___ in ruby it usually is best to be as short as possible
<jokke>
but that wouldn't work like that in a case/when
<Jamie___>
ii can do that?
<jokke>
yes you can :)
sivoais has joined #ruby
rburton- has quit [Client Quit]
<Jamie___>
i have a general question with while statements. can i use a string when using a condition?
Domon has quit [Remote host closed the connection]
<shevy>
and I think puts " " is the same as puts alone, or?
<Jamie___>
like while (variable != "string")?
bean has joined #ruby
<shevy>
jokke he should be able to, for Imported in case/when, he could use:
<shevy>
when /^Imported/
<jokke>
shevy: puts alone adds a newline, so yeah thats what he wants
<shevy>
which should be equal to start_with? for a string object
randomautomator has quit [Remote host closed the connection]
madb055 has quit [Ping timeout: 264 seconds]
<jokke>
sure
<jokke>
but then he has to know about regexp
<shevy>
hehehehe
<shevy>
good point
<shevy>
he does not even know what indent is :D
<shevy>
Jamie___ you can use everything that can be used in ruby for a valid conditional check
<jokke>
Jamie___: have you written some methods in ruby?
<shevy>
it must evaluate to true or false
<shevy>
while (true) # continue for any condition that evals to true
<Jamie___>
i am going to to handle the calculations
<jokke>
because you could make the thing a whole bit shorter by defining a method which calculates your item total and puts your string
julian-delphiki has quit [Ping timeout: 256 seconds]
<jokke>
you have a lot of redundance there. Redundance is always bad
tomsthumb has quit [Quit: Leaving.]
<Jamie___>
so i see
DonRichie has quit [Ping timeout: 256 seconds]
pitzips has joined #ruby
DonRichie has joined #ruby
sambio has joined #ruby
sambio has joined #ruby
sambio has quit [Changing host]
browndawg has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
<jokke>
you see the three calculations are almost identical. You woudn't think so about the last one because it doesn't have a tax, but once you set tax to 0 you can use the same calculation tax + (amount * cost) you see?
<Jamie___>
true
<Jamie___>
so use a simple method to handle the calculations
<Jamie___>
and then when i need it i can call it whenever i need it in the code right?
pac1 has joined #ruby
timmow has joined #ruby
<jokke>
basically you're calculation depends on three variables: tax percentage, item_cost and amount, right?
niklasb has quit [Ping timeout: 264 seconds]
rdev5|away has quit [Quit: Leaving...]
<Jamie___>
yes
sivoais has quit [Ping timeout: 252 seconds]
bradleyprice has quit [Remote host closed the connection]
sivoais has joined #ruby
<jokke>
so now you can write a method which gets those three variables and calculates what you need and puts the string you need. (then you need to pass name too)
Ontolog_ has quit [Remote host closed the connection]
<Jamie___>
ok
doritostains has joined #ruby
<jokke>
good luck Jamie___ and happy coding
<Jamie___>
can i create the method and and call it all in the same code?
<tewlz>
awc737: I have only messed with magento and spree (a ruby based ecommerce) and magento was a lot easier to work with, but I like ruby so I use spree.
ebobby has quit [Ping timeout: 260 seconds]
dougireton has joined #ruby
rads has joined #ruby
Yulli|away is now known as Yulli
jumpei has joined #ruby
radic has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ping-pong has joined #ruby
aeontech has joined #ruby
slakware has joined #ruby
bigmac has quit [Quit: Leaving]
eliasp has joined #ruby
drim has joined #ruby
eliasp_ has quit [Ping timeout: 255 seconds]
radic_ has quit [Ping timeout: 248 seconds]
pavilionXP has joined #ruby
chimkan_ has joined #ruby
voodoofish has quit [Ping timeout: 252 seconds]
adkron has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
<awc737>
tewlz, spree seems to have very basic features compared to magento
<awc737>
we need multi-site, heave product/attribute configuration
<awc737>
but magento is a nightmare to develop on
rads has quit []
Yulli has left #ruby ["Bye bye"]
axsuul_ has joined #ruby
beneggett has joined #ruby
zph has joined #ruby
bradleyprice has joined #ruby
<GeekOnCoffee>
tewlz: magento was easier to work with?
<GeekOnCoffee>
awc737: did you look at the extension gallery? there's a lot of code for a lot of different things… It's the most powerful ruby option you're going to find, and set up well for doing custom implementations
<awc737>
spree?
<GeekOnCoffee>
yeah
zeroeth has quit [Ping timeout: 264 seconds]
<awc737>
thanks i'll check it out
<GeekOnCoffee>
awc737: #spree is generally fairly helpful too
brian_000_ has quit [Read error: Connection reset by peer]
eliasp_ has joined #ruby
voodoofish has joined #ruby
marcdel has joined #ruby
eliasp has quit [Ping timeout: 276 seconds]
tootooroo has quit [Quit: +1 (Yes). -1 (No). i (What I have been trying to tell you all along).]
sayan has joined #ruby
terrorpup has quit [Remote host closed the connection]
eliasp_ has quit [Read error: Connection reset by peer]
jumpei has quit [Remote host closed the connection]
eliasp has joined #ruby
drale2k has quit [Quit: Leaving...]
matayam has joined #ruby
sayan has quit [Max SendQ exceeded]
cearls has joined #ruby
aapzak has quit [Read error: Operation timed out]
jumpei has joined #ruby
sayan has joined #ruby
cearls has quit [Remote host closed the connection]
cearls has joined #ruby
seme has quit [Quit: Leaving.]
dhruvasagar has quit [Ping timeout: 246 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
eliasp has quit [Read error: Connection reset by peer]
eliasp has joined #ruby
aapzak has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
tootooroo has joined #ruby
sayan has quit [Read error: Connection reset by peer]
yacks has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
pitzips has quit [Ping timeout: 248 seconds]
[rust] has joined #ruby
havenwood has joined #ruby
ilyam has joined #ruby
freerobby has joined #ruby
eliasp_ has joined #ruby
rubarLion has joined #ruby
eliasp has quit [Ping timeout: 255 seconds]
rezzack has quit [Ping timeout: 276 seconds]
nullx has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
<nullx>
hi all, anyone have experience getting capybara going without rails?
aeontech has quit [Quit: aeontech]
dhruvasagar has joined #ruby
pcarrier_ has quit [Quit: Computer has gone to sleep.]
chimkan_ has quit [Quit: chimkan_]
<Quadlex>
nullx: Yup, quite a bit
<Quadlex>
What's the issue?
Ohga has left #ruby [#ruby]
jumpei has quit [Remote host closed the connection]
jumpei has joined #ruby
eliasp_ has quit [Read error: Operation timed out]
axsuul_ has quit [Quit: axsuul_]
allaire has joined #ruby
eliasp has joined #ruby
sayan has joined #ruby
<JamieJ>
hello again
<JamieJ>
quick question
<JamieJ>
i am making a method where i am adding a value into an array. would i have to pass that array into the method?
zph has quit [Quit: Computer has gone to sleep.]
nfk has quit [Quit: yawn]
julian-delphiki has joined #ruby
theRoUS has joined #ruby
otherj has joined #ruby
bean has quit [Ping timeout: 252 seconds]
momomomomo has quit [Quit: momomomomo]
chimkan_ has joined #ruby
<Rym>
JamieJ: is this a reference vs value question, or a learning to program question?
drale2k has joined #ruby
chimkan_ has quit [Client Quit]
<nullx>
Quadlex: my bad, back now.. I wrote a basic example test in rspec, I wasn't able to get it to run.. Any chance you can tell me how you did it?
beneggett has joined #ruby
generalissimo has quit [Remote host closed the connection]
<Quadlex>
nullx: All I had to do was include "capybara/rspec"
<Quadlex>
And then add :type => :feature to the tests I wanted to use capybara with
<nullx>
Quadlex: hmm?
<nullx>
so put tests in spec/test_name.rb
<nullx>
or
reset has quit [Ping timeout: 258 seconds]
<nullx>
spec/test_suite/test_name.rb?
rubarLion has quit [Ping timeout: 248 seconds]
<nullx>
maybe I'm just completely unfamilliar with rspec
bradleyprice has quit [Remote host closed the connection]
<Quadlex>
Ph, and set the Capybara.app to your Rack app
<nullx>
Rack..
<nullx>
I'm not using Rack
<nullx>
well I'm doing bare ruby basicly ;P)
<Quadlex>
I don't think it matters where you're using them
<Quadlex>
Wait, I'm wrong
<Quadlex>
You ony need to set the Rack app if you're using a Rack app *duh*
nateberkopec has quit [Quit: Leaving...]
<nullx>
hm
<Quadlex>
But if you're not testing a rack application, you need to use a different driver then the default
<nullx>
I just need a gateway to use phantomJS, that's what my 'app' per se is
<nullx>
I'm not testing an application, it's more like this is the test
rubarLion has joined #ruby
mmitchell has joined #ruby
<Quadlex>
There's the Capybara.javascript_driver which defaults to :selenium
<nullx>
if I run it via ruby, it requires it to be an actual test
<nullx>
so I have to run it via rspec.. otherwise it doesn't see the includes or something
<Quadlex>
I'm not entirely clear what the problem is
<Quadlex>
Can you not run using rspec?
<nullx>
I believe I don't know how to properly use rspec, and every attempt seems to fail
freerobby has joined #ruby
<Quadlex>
Can you paste the output of a test run into a gist for me?
<nullx>
you know what, I'll just write this in C# like originally intended.. it's just too much work, it just works in C# heh
<nullx>
thanks though
mmitchell has quit [Ping timeout: 264 seconds]
<Quadlex>
nullx: No worries
ckrailo has joined #ruby
allaire has quit []
eliasp_ has joined #ruby
<jumpei>
hi i like Ruby, and I'm interested in Ruby because ruby's easy to do something.
eliasp has quit [Ping timeout: 246 seconds]
rubarLion has quit [Ping timeout: 252 seconds]
rubarLion has joined #ruby
MrZYX is now known as MrZYX|off
freerobby has quit [Quit: Leaving.]
<Rym>
jumpei: Ruby likes you too :)
Animawish has quit [Quit: Animawish]
<JamieJ>
hello i have two questions?
<tos9>
one down one to go
<JamieJ>
lol
ariedler has quit [Remote host closed the connection]
<JamieJ>
but seriously...
<jumpei>
hello lol
ariedler has joined #ruby
ariedler has quit [Remote host closed the connection]
rubarLion has quit [Ping timeout: 248 seconds]
timmow has joined #ruby
starburst has quit [Ping timeout: 256 seconds]
<jumpei>
uh...so another question?
<JamieJ>
i am using a case statement where the conditions evaluated are strings (ie when "Hello", "Goodbye". is ruby case sensitive enough to go to the default case if i type in all caps or all lowercase?
<bnagy>
string comparison is case sensitive, so the strings would have to match exactly
<bnagy>
you can compare target.upcase == "Blah".upcase
<bnagy>
or you can do when /Blah/i should work
miso1337 has joined #ruby
dry_ has joined #ruby
chaluopa has quit [Ping timeout: 245 seconds]
yours_truly has joined #ruby
Nisstyre-laptop has quit [Read error: Connection reset by peer]
timmow has quit [Ping timeout: 252 seconds]
eliasp has joined #ruby
v0n has joined #ruby
yours_truly has quit [Read error: Connection reset by peer]
eliasp_ has quit [Read error: Connection reset by peer]
Nisstyre-laptop has joined #ruby
macabhaird has quit [Ping timeout: 246 seconds]
chaluopa has joined #ruby
kofno has quit [Remote host closed the connection]
rubarLion has joined #ruby
<JamieJ>
ok so then /Blah/ can eliminate case sensitivity?
<DesertFoxATX>
/i
<DesertFoxATX>
as in ignore case.
gabrielrotbart has joined #ruby
alainus has left #ruby ["Leaving"]
kofno has joined #ruby
divout has joined #ruby
sayan has quit [Read error: Connection reset by peer]
rhys has joined #ruby
nateberkopec has joined #ruby
<rhys>
i noticed when i do 'stuff = array.each {|x| dostuff x }' that stuff still ends up the array.
banjara has joined #ruby
<rhys>
is there a way to get stuff to equal the output of what i'm doing in the block?
Guedes has quit [Ping timeout: 258 seconds]
<rhys>
i feel like this is a really dumb question i'm not seeing
eliasp has quit [Read error: Connection reset by peer]
eliasp has joined #ruby
akamit has joined #ruby
anonymuse has quit [Quit: Leaving...]
onceler has quit [Quit: Leaving]
sdavis_ has joined #ruby
<welandB>
It's returning an array of the return value of the block.
sdavis has quit [Read error: Operation timed out]
sdavis_ is now known as sdavis
<welandB>
If you don't want that, store the data you want within the block.
<tylersmith>
rhys: you want to use #map instead of #each
akamit is now known as akam-it
<rhys>
that i do. ty tylersmith.
oqioi has joined #ruby
<tylersmith>
welandB: it's returning the array itself. map returns an array of results of executing the block on every statement
eliasp has quit [Read error: Connection reset by peer]
eliasp has joined #ruby
momomomomo has joined #ruby
nateberkopec has quit [Ping timeout: 252 seconds]
SCommette has quit [Quit: SCommette]
eliasp_ has joined #ruby
io_syl has joined #ruby
eliasp has quit [Read error: Connection reset by peer]
SCommette has joined #ruby
rippa has joined #ruby
mvangala has quit [Read error: Connection reset by peer]
mvangala has joined #ruby
dry_ has quit [Quit: Leaving]
guyz has quit [Ping timeout: 264 seconds]
jgrevich_ has joined #ruby
jgrevich has quit [Ping timeout: 240 seconds]
jgrevich_ is now known as jgrevich
kofno has quit [Remote host closed the connection]
miso1337 has quit [Quit: afk]
sdavis_ has joined #ruby
digifiv5e has joined #ruby
digifiv5e is now known as Guest3100
raycloud_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
_theriffer_ has joined #ruby
sdavis has quit [Ping timeout: 245 seconds]
sdavis_ is now known as sdavis
rubarLion has quit [Ping timeout: 264 seconds]
raycloud has quit [Read error: Connection reset by peer]
pacbard has quit [Ping timeout: 240 seconds]
quazimodo has quit [Ping timeout: 240 seconds]
pacbard has joined #ruby
monomyth has quit [Remote host closed the connection]
monomyth has joined #ruby
ninegrid has quit [Ping timeout: 240 seconds]
heliumsocket has quit [Quit: heliumsocket]
quazimodo has joined #ruby
tr4656 has quit [Ping timeout: 240 seconds]
Domon has quit [Remote host closed the connection]
tr4656 has joined #ruby
ninegrid has joined #ruby
slakware has quit [Remote host closed the connection]
sdavis_ has joined #ruby
jurassic_ has joined #ruby
momomomomo has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
axsuul_ has joined #ruby
shock_one has joined #ruby
lewix has joined #ruby
tommyvyo has quit [Quit:]
jurassic_ has quit [Client Quit]
sdavis has quit [Ping timeout: 262 seconds]
sdavis_ is now known as sdavis
dhruvasagar has joined #ruby
nateberkopec has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
bubblehead has quit [Remote host closed the connection]
girija has joined #ruby
bradleyprice has joined #ruby
IceDragon has quit [Quit: Space~~~]
nateberkopec has quit [Ping timeout: 258 seconds]
dwon has joined #ruby
dwon has quit [Client Quit]
mahmoudimus has joined #ruby
ukd1 has quit [Remote host closed the connection]
dqminh has joined #ruby
dougireton has quit [Quit: Leaving.]
havenn_ has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
malcolmva has joined #ruby
yacks has quit [Read error: Operation timed out]
jgrevich has quit [Quit: jgrevich]
etcetera has joined #ruby
freakazoid0223 has quit [Ping timeout: 248 seconds]
tomsthumb has quit [Quit: Leaving.]
yacks has joined #ruby
freezey has quit [Remote host closed the connection]
baz_ has quit [Ping timeout: 256 seconds]
codecop has joined #ruby
baz_ has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
sdavis_ has joined #ruby
sdavis has quit [Ping timeout: 245 seconds]
sdavis_ is now known as sdavis
DrCode has joined #ruby
otherj has quit []
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
<JamieJ>
hello
eliasp_ has quit [Read error: Connection reset by peer]
<JamieJ>
the variable in the condition is not being recgonized
axsuul_ has quit [Quit: axsuul_]
aeontech has joined #ruby
aeontech has quit [Client Quit]
<tylersmith>
JamieJ: keep going is a String and /No/i is a RegExp
<tylersmith>
String != RegExp doesn't do what you're wanting
lewix_ has joined #ruby
<tylersmith>
try making it "keep going !~ /No/i"
<tylersmith>
"keep_going !~ /No/i"
angusiguess has quit [Ping timeout: 246 seconds]
end_guy has joined #ruby
Myconix has quit [Read error: Connection reset by peer]
<JamieJ>
tyler here is the error `<top (required)>': undefined local variable or method `keepgoing' for main:Object (NameError) from -e:1:in `load' from -e:1:in `<main>'
angusiguess has joined #ruby
momomomomo_ has joined #ruby
<JoeHazzers>
what sort of logic loop should i be using to read from a socket, but also to write to it?
momomomomo has quit [Ping timeout: 258 seconds]
momomomomo_ is now known as momomomomo
<JamieJ>
i fixed that line of code but it didnt work
<JoeHazzers>
i assume multithreaded?
momomomomo has quit [Client Quit]
lewix has quit [Ping timeout: 246 seconds]
<tylersmith>
JamieJ: the first time it goes keep going isn't defined
<tylersmith>
add "keepgoing = nil" before the loop
jonahR has joined #ruby
pygmael has joined #ruby
Elminster has joined #ruby
Zespre_ is now known as Zespre
io_syl has quit [Ping timeout: 252 seconds]
robustus has quit [Ping timeout: 255 seconds]
Hanmac1 has quit [Ping timeout: 248 seconds]
pen has joined #ruby
timonv has joined #ruby
Domon has joined #ruby
tootooroo has quit [Quit: +1 (Yes). -1 (No). i (What I have been trying to tell you all along).]
eliasp has quit [Read error: Operation timed out]
jonahR has quit [Remote host closed the connection]
robustus has joined #ruby
<bnagy>
JoeHazzers: there's almost no possible reason to work with Socket directly, there are so many support libs
eliasp has joined #ruby
<JoeHazzers>
i'm doing this as a learning experience, just fyi
<bnagy>
but you can either use Threads and blocking reads / writes, or a select loop
io_syl has joined #ruby
jumpei has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 264 seconds]
<bnagy>
a nice basic learning project would probably use Queues and Threads
rubarLion has joined #ruby
<JoeHazzers>
so, like a read queue and a write queue?
a_a_g has joined #ruby
<bnagy>
yeah
<JoeHazzers>
that sounds quite interesting
a_a_g has quit [Client Quit]
jumpei has joined #ruby
<bnagy>
and then some thread that does your 'work' and feeds or reads both queues
<bnagy>
and threads to run your sockets
<bnagy>
Queue is threadsafe
<bnagy>
if you used an Array or whatever you'd have to play with Mutex
quazimodo has joined #ruby
bradleyprice has quit [Remote host closed the connection]
<JoeHazzers>
so we're assuming here that the socket's scope is entirely within its own thread. the workers don't even have to know about it, because the queue deals with it all?
oqioi has quit [Quit: Leaving.]
tylersmith has quit [Quit: tylersmith]
<bnagy>
yeah
angusiguess has quit [Ping timeout: 252 seconds]
<bnagy>
that also gives you room to abstract that, if you want to get fancy
sdavis_ has joined #ruby
<JoeHazzers>
which would be useful
a_a_g has joined #ruby
<JoeHazzers>
depending on how i go about this, and how i go about my workers, it would probably scale quite well
<bnagy>
eg you can have exactly the same API for a thing reading from a TCPSocket as a UNIXSocket as a File or Raw or anything
<JamieJ>
ok...
<bnagy>
and you write the underlying handler as a module and mix it in to your reader
<JoeHazzers>
my biggest fear is blocking on the sockets, which this will avoid
<bnagy>
it will scale fine if you add an appropriate amount of Threads, and if the app is IO bound
<bnagy>
you've got the GIL on MRI but not on JRuby
<JoeHazzers>
it will be
rubarLion has quit [Ping timeout: 264 seconds]
uris has quit [Quit: Leaving]
<JoeHazzers>
i'm not expecting this to be used for production or anything like that, more just for education and learning.
sdavis has quit [Read error: Operation timed out]
sdavis_ is now known as sdavis
<JamieJ>
ok so im getting that nil error again except i initialized my value already
<injekt>
there's also Rake::TaskArguments and you can use default args but I think rake parameter passing sucks so bad that more people appear to use env variables instead
hmarr has joined #ruby
nateberkopec has joined #ruby
veer has quit [Ping timeout: 258 seconds]
<injekt>
vbajpai: are you writing the tasks or looking for options for existing tasks someone else has written?
<vbajpai>
injekt: trying to see options for existing task of a project, I see a -T option that gives description of each task, but how do I learn what options each task can take?
<injekt>
vbajpai: if the author has written the task properly, they'll be in that description
veer has joined #ruby
<vbajpai>
i see, then he has not written the task description properly
<injekt>
the only way to write a rake task which displays the parameters in the description without the author writing them themselves is like this: task :foo, [:one, :two] do |task, args|
<injekt>
and that would display foo[one, two] in the description
fire has joined #ruby
<injekt>
then you can do args[:one] args[:two]
dsadsdasd has quit [Quit: Leaving.]
jumpei has joined #ruby
nateberkopec has quit [Ping timeout: 258 seconds]
dsadsdasd has joined #ruby
noxoc has joined #ruby
nomenkun_ has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
Zai00 has joined #ruby
duosrx has joined #ruby
chussenot has quit [Read error: Operation timed out]
chussenot has joined #ruby
rubarLion has joined #ruby
Macaveli has joined #ruby
yashshah_ has quit [Ping timeout: 240 seconds]
rcosta has joined #ruby
adambeynon has joined #ruby
Macaveli has quit [Client Quit]
nari has quit [Ping timeout: 245 seconds]
<JoeHazzers>
say i have two queues, how do i wait until *either* of them is ready?
Macaveli has joined #ruby
AzizLight has joined #ruby
<Macaveli>
what's the difference if you start your ruby code in an html.erb file with <%= or <% ?
veer has quit [Ping timeout: 255 seconds]
<bnagy>
JoeHazzers: you can check empty? or pop nonblocking
jumpei has quit [Remote host closed the connection]
rubarLion has quit [Ping timeout: 264 seconds]
<JoeHazzers>
well, i might as well outright specify my issue, whilst also stating that i want to implement the solution myself as a learning experience
jimeh has quit [Quit: Bye.]
Macaveli has quit [Client Quit]
<JoeHazzers>
i have a socket, and a queue, and i want to either write to the socket by popping the queue, or i want to read from the socket, but not block on the reading from the socket
Flex has joined #ruby
threesome has joined #ruby
threesome has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
blaxter_ is now known as blaxter
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
<injekt>
Macaveli: <%= is for displaying output, <% is not, so you would put things like conditionals or assignments in <% and things you want 'displayed' in <%=
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<Macaveli>
injekt, thanks for this clear answer!
monkegjinni has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
eka has joined #ruby
statarb3 has quit [Client Quit]
tevio has joined #ruby
rubarLion has joined #ruby
Proshot has joined #ruby
Proshot has joined #ruby
Proshot has quit [Changing host]
casheew has joined #ruby
whitedawg has quit [Quit: Leaving.]
joast has quit [Ping timeout: 240 seconds]
threesome has joined #ruby
mneorr_ has joined #ruby
jimeh has joined #ruby
rcosta has quit [Remote host closed the connection]
emergion has joined #ruby
alup has joined #ruby
casheew has quit [Read error: Connection reset by peer]
rdark has quit [Ping timeout: 255 seconds]
casheew has joined #ruby
rubarLion has quit [Read error: No route to host]
mneorr has quit [Ping timeout: 255 seconds]
tvw has joined #ruby
rdark has joined #ruby
awestroke has quit [Ping timeout: 264 seconds]
casheew has quit [Read error: Connection reset by peer]
tonini has quit [Remote host closed the connection]
casheew has joined #ruby
rcosta has joined #ruby
casheew has quit [Read error: Connection reset by peer]
gommo has quit [Remote host closed the connection]
indyrl has joined #ruby
indyrl has quit [Max SendQ exceeded]
awestroke has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
threesome has quit [Remote host closed the connection]
timmow_ has joined #ruby
nari has joined #ruby
tonini has joined #ruby
monkegjinni has joined #ruby
casheew has joined #ruby
rcosta has quit [Ping timeout: 240 seconds]
gommo has joined #ruby
casheew has quit [Read error: Connection reset by peer]
matayam has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
rubarLion has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
mneorr_ has quit [Read error: Connection timed out]
greenarrow has quit [Ping timeout: 252 seconds]
greenarrow has joined #ruby
HecAtic has quit [Quit: Àá¼ö]
casheew has joined #ruby
veer has joined #ruby
casheew has quit [Read error: Connection reset by peer]
kofno has joined #ruby
sdavis has quit [Read error: Connection reset by peer]
skattyadz has joined #ruby
sdavis has joined #ruby
blaxter has quit [Ping timeout: 240 seconds]
rubarLion has quit [Ping timeout: 276 seconds]
casheew has joined #ruby
emergion has joined #ruby
Elhu has joined #ruby
mneorr has joined #ruby
emergion has quit [Client Quit]
monkegji_ has joined #ruby
JamieJ has joined #ruby
yashshah_ has joined #ruby
<JamieJ>
hello
kofno has quit [Ping timeout: 258 seconds]
<JamieJ>
ok just a test
monkegjinni has quit [Ping timeout: 260 seconds]
obs has joined #ruby
unflores has joined #ruby
niklasb has joined #ruby
hashmal has joined #ruby
eldariof has quit [Read error: No route to host]
BigAxe has joined #ruby
hamed_r has quit [Quit: Leaving]
nateberkopec has joined #ruby
BigAxe has left #ruby [#ruby]
dsadsdasd has quit [Quit: Leaving.]
tonini has quit [Remote host closed the connection]
blaxter has joined #ruby
mneorr has quit [Remote host closed the connection]
veer has quit [Ping timeout: 246 seconds]
yacks has quit [Read error: Connection reset by peer]
veer has joined #ruby
yacks has joined #ruby
horrror has joined #ruby
<horrror>
does anybody know a good want to preview images (web) before uploaded via paperclip?
<JamieJ>
good morning
mneorr has joined #ruby
nateberkopec has quit [Ping timeout: 276 seconds]
rubarLion has joined #ruby
<JamieJ>
hey folks.....having a problem with this class i created. want to make some calculations with a method. not sure im doing it correctly
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
rubarLion has quit [Ping timeout: 252 seconds]
veer has quit [Ping timeout: 258 seconds]
Domon has quit [Remote host closed the connection]
maxmanders has quit [Quit: Computer has gone to sleep.]
veer has joined #ruby
end_guy has quit [Remote host closed the connection]
bubblehead has joined #ruby
maxmanders has joined #ruby
matayam has joined #ruby
end_guy has joined #ruby
a_a_g has joined #ruby
<bnagy>
JamieJ: looking better - but you need to move receipt etc into that class as @ivars, whereas the params to taxcal that were there before need to NOT be ivars
<bnagy>
because they're method params
rubarLion has joined #ruby
<JamieJ>
brb
ksinkar has joined #ruby
piotr_ has joined #ruby
veer has quit [Ping timeout: 258 seconds]
bubblehead has quit [Ping timeout: 264 seconds]
mmitchell has joined #ruby
bulters has joined #ruby
<JamieJ>
ok back
piotr has quit [Ping timeout: 258 seconds]
rubarLion has quit [Ping timeout: 255 seconds]
withnale has joined #ruby
withnale has quit [Client Quit]
Layke has quit [Ping timeout: 258 seconds]
<JamieJ>
bnagy: so then i would add this line in the taxcal method @receipt = []
<JamieJ>
?
skbierm has joined #ruby
skbierm has left #ruby [#ruby]
withnale has joined #ruby
pydave6377 has joined #ruby
x0F has quit [Ping timeout: 260 seconds]
<bnagy>
JamieJ: no, all those are you 'long term' storage variables in the class, right?
<bnagy>
so you want to set them up in initialize
includex has joined #ruby
rdark has quit [Ping timeout: 252 seconds]
ksinkar has quit [Read error: Connection reset by peer]
rubarLion has joined #ruby
ksinkar has joined #ruby
rdark has joined #ruby
obs has quit [Quit: Konversation terminated!]
<JamieJ>
bnagy are you referring to varaibles like "itemtotal" and taxsum" as the 'long term' storage variables?
timmow_ has joined #ruby
rubarLion has quit [Ping timeout: 276 seconds]
haxrbyte has joined #ruby
x0F has joined #ruby
<bnagy>
yes
casheew has quit [Read error: Connection reset by peer]
<JamieJ>
only thing is that they are made within the method while the others are from outside the mehtod (ie cost, name)
<bnagy>
those are parameters
<bnagy>
so they're not supposed to be @ivars
skattyadz_ has joined #ruby
mhf has joined #ruby
<bnagy>
it's like having class Sack; attr_reader :gold; def insert coins; @gold+=coins; end; end
DEVID has joined #ruby
<JamieJ>
ah! ok
ereslibre_laptop has joined #ruby
ohcibi has quit [Remote host closed the connection]
rubarLion has joined #ruby
ohcibi has joined #ruby
skattyadz has quit [Ping timeout: 264 seconds]
ereslibre has quit [Ping timeout: 264 seconds]
skattyadz_ is now known as skattyadz
ntzrmtthihu777 has joined #ruby
haxrbyte_ has joined #ruby
<ntzrmtthihu777>
not exactly a ruby question, but related. If I'm building a C++ project on linux I have to manually include the ruby headers path in order for it to build right; is there a way to include the headers in the normal include path?
gyre007 has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
haxrbyte_ has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
ksinkar has quit [Read error: Connection reset by peer]
ksinkar_ has joined #ruby
casheew has joined #ruby
haxrbyte_ has joined #ruby
rubarLion has quit [Ping timeout: 255 seconds]
horrror has quit [Quit: horrror]
chussenot_ has joined #ruby
haxrbyte has quit [Ping timeout: 248 seconds]
Scient has quit [Read error: Operation timed out]
monkegji_ has quit [Remote host closed the connection]
Scient has joined #ruby
pydave6377 has quit [Quit: leaving]
marcgg_ has joined #ruby
<Hanmac1>
ntzrmtthihu777: use pkg-config for that
mhf has quit [Remote host closed the connection]
<ntzrmtthihu777>
Hanmac1: we meet again :D. again, huge n00b here, exactly what does that mean/entail?
pydave6377 has joined #ruby
marcgg has quit [Ping timeout: 245 seconds]
chussenot has quit [Ping timeout: 264 seconds]
chussenot_ is now known as chussenot
Neandre has quit [Ping timeout: 252 seconds]
Neandre has joined #ruby
marcgg has joined #ruby
Xeago has joined #ruby
apod has quit []
monkegjinni has joined #ruby
marcgg__ has joined #ruby
jtperreault has quit [Ping timeout: 248 seconds]
marcgg_ has quit [Read error: No route to host]
obs has joined #ruby
Sacha_ has joined #ruby
marcgg has quit [Ping timeout: 246 seconds]
Neandre has quit [Ping timeout: 248 seconds]
Macaveli has quit [Ping timeout: 248 seconds]
nateberkopec has joined #ruby
marcgg__ has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
marcgg_ has joined #ruby
BSaboia has joined #ruby
keymone has joined #ruby
Mathieu has joined #ruby
d3 has joined #ruby
end_guy_ has joined #ruby
end_guy has quit [Ping timeout: 276 seconds]
Macaveli has quit [Client Quit]
camilasan has joined #ruby
nateberkopec has quit [Ping timeout: 264 seconds]
pydave6377 has quit [Quit: leaving]
razibog has joined #ruby
jnoob22 has joined #ruby
emergion has joined #ruby
nateberkopec has joined #ruby
emergion has quit [Client Quit]
ChristianS has joined #ruby
nateberkopec has quit [Client Quit]
cantonic is now known as cantonic|away
maxmanders has quit [Quit: Computer has gone to sleep.]
Proshot has quit [Quit: Leaving]
maxmanders has joined #ruby
Bry8Star_ is now known as Bry8Star
ehellman has joined #ruby
havenwood has quit [Remote host closed the connection]
davetherat has quit [Remote host closed the connection]
<JamieJ>
here is the error `<top (required)>': undefined method `taxcal' for main:Object (NoMethodError) from -e:1:in `load' from -e:1:in `<main>'
timmow_ has joined #ruby
<JamieJ>
i know it is something wrong with how i made taxcal mehtod...i dont understand ruby enough to solve it
<JamieJ>
im sure its an easy fix though
BSaboia has quit [Quit: Leaving]
<TempleD>
Maybe the fact that taxcal is in a class?
<TempleD>
I'm just guessing, I have no idea about Ruby as of yet.
<elaptics>
JamieJ: you're not instantiating a Taxes object at any time in that code
dsadsdasd has joined #ruby
<elaptics>
TempleD: good guess - you're right :)
<elaptics>
JamieJ: either move that taxcal method out of the class or create your taxes objects - note you may well need to rewrite code to make that work - I haven't looked at the actual code properly
<TempleD>
elaptics: Heh, I was just thinking that languages generally have a different way of accessing methods within classes than just accessing them directly.
jurassic_ has quit [Quit: jurassic_]
<elaptics>
JamieJ: I assume this is just a learning thing for you?
m8 has joined #ruby
<JamieJ>
yes it is
<elaptics>
JamieJ: are you learning anything in particular?
<JamieJ>
just how to properly use a class
timmow_ has quit [Ping timeout: 252 seconds]
<JamieJ>
this is getting me frustrated...shoulda been done with this code
thone_ has joined #ruby
<e-dard>
Hi, how do I share a let(:foo) across separate contexts? I've tried defining :foo in a shared context and including that in each context but not luck?? :-S
Muz has quit [Ping timeout: 252 seconds]
<elaptics>
JamieJ: ok, well 2 things jump out. 1. you've created the class itself, but you're not instantiating any objects of that class in your code, e.g. tax = Taxes.new(10, 10, 10)
Zolo has quit [Remote host closed the connection]
hmarr has quit []
<elaptics>
JamieJ: 2. I expect that you'll have errors when you do use it because there's references to 'receipt' in your taxcal method but that will only be a local variable called receipt in there and you're calling push on it but you haven't defined it as an array in that method or class in any way
<JamieJ>
i defined the array outside the method. the code should call for that taxcal function and push in values
<elaptics>
JamieJ: 3. in your while loop you're using taxcal there as if it's just a method passing in arguments so that's also not going to work
thone has quit [Ping timeout: 245 seconds]
<elaptics>
JamieJ: no, that won't work. the object doesn't have access to that array directly. You would have to pass that into the class
<elaptics>
JamieJ: so either pass it in the initialise or have a setter method that will accept it
<JamieJ>
ok so first pass the array in the function
sailias has joined #ruby
ehellman has quit []
<JamieJ>
when i instantiate the class, can i do that in the method inside the class?
<elaptics>
JamieJ: also no 4. You're using floats to do calculations with currency - fine just while learning but in the real world that's a bad idea - you'll get rounding errors. ruby has a big decimal class so better to use that
<elaptics>
JamieJ: no, instantiate means make an object of that class, e.g. Taxes.new
<JamieJ>
ok so when i instantiate i'd have to do so in the case statement
<JamieJ>
so i can put in Taxes.new(10, 10, 10) there, right?
<elaptics>
JamieJ: well somewhere. Just looking at what you have now and I can see various other problems with what you have
carraroj has quit [Ping timeout: 248 seconds]
dqminh_ has quit [Remote host closed the connection]
dqminh has joined #ruby
LennyLinux has joined #ruby
<JamieJ>
is it fmore than just those 4 problems you pointed out?
<elaptics>
JamieJ: I would suggest that you start simpler and just work with a couple of simple classes manage the items and the tax calculations and get that working passing in the data you need. Then you can expand it to ask for input, etc
<JamieJ>
ok thanks for your input
<elaptics>
JamieJ: I'm about to have some lunch, would you like me to try and quickly knock up a quick example of what it looks like you're trying to do? You can keep trying yours and then look at mine to compare when you've got yourself further?
duosrx has quit [Remote host closed the connection]
<JamieJ>
yes sure that would help
veer has quit [Ping timeout: 258 seconds]
<elaptics>
ok, I'm just going to grab my lunch so be about 15 mins or so that'll give you time to have another go :)
<JamieJ>
thanks
<JamieJ>
ill be here
veer has joined #ruby
jrajav has joined #ruby
mengu has joined #ruby
postmodern has quit [Quit: Leaving]
moos3 has quit [Quit: Computer has gone to sleep.]
Floydzy has joined #ruby
moos3 has joined #ruby
chandankumar has quit [Ping timeout: 258 seconds]
Skofo has joined #ruby
Floydzy has left #ruby [#ruby]
matayam has quit [Remote host closed the connection]
nkr has joined #ruby
Floydzy has joined #ruby
agarie has quit [Read error: Connection reset by peer]
agarie has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
Macaveli has quit [Quit: This computer has gone to sleep]
jon_w has joined #ruby
casheew has quit [Read error: Connection reset by peer]
jon_w has quit [Max SendQ exceeded]
jon_w has joined #ruby
hmarr has joined #ruby
dqminh has quit [Remote host closed the connection]
danslo has quit [Quit: danslo]
mmitchell has joined #ruby
duosrx has joined #ruby
sailias has quit [Quit: Leaving.]
casheew has joined #ruby
dustint has joined #ruby
mmitchell has quit [Remote host closed the connection]
eldariof has joined #ruby
peterhellberg has joined #ruby
callmeivan has joined #ruby
mneorr has quit [Remote host closed the connection]
<callmeivan>
yolo, does anybody know why this loop only runs one time?
peterhellberg has quit [Remote host closed the connection]
shock_one has joined #ruby
jani is now known as Guest16877
krawchyk has joined #ruby
<JamieJ>
bangy: not quite
shock_one has quit [Read error: Connection reset by peer]
<JamieJ>
bnagy: still having a bit trouble with that taxcal function....i know im not passing the values correct
<JamieJ>
someone else here is helping me as well
seme has joined #ruby
<akam-it>
bnagy, tnak you I try "02020202".scan(/\h\h/).map {|x| x.to_i 16}. I realy thought there was some method to do "per-byte" addition without new function(
timmow_ has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
<bnagy>
akam-it: no, because it's stupid
idkazuma has joined #ruby
carloslopes has joined #ruby
<bnagy>
well, rather, it makes no real sense :)
aapzak has quit [Ping timeout: 248 seconds]
<bnagy>
the only time you would do that in asm would be when you're pretending a number is actually an array of bytes
Flex has quit [Ping timeout: 258 seconds]
arietis has joined #ruby
<bnagy>
whereas in Ruby we'd just use, like, an array of bytes
<akam-it>
so, I trying to reverse engineering vce binary file format..
aapzak has joined #ruby
<bnagy>
oh, there are some good binary carvers in ruby
<bnagy>
binstruct I think is the coolest looking
<bnagy>
oh, one more thing - you can use pack and unpack for a lot of this stuff as well
<bnagy>
to do your composition / decomposition
<JamieJ>
elaptics: you still around buddy?
<bnagy>
it's just that some of that gets gnarly
Elhu has joined #ruby
rcosta has quit [Remote host closed the connection]
<bnagy>
so make that three main approaches you could take :P
brendan-__ has quit [Quit: brendan-__]
wallerdev has joined #ruby
girija has quit [Read error: Connection reset by peer]
includex has quit [Quit: Leaving...]
<akam-it>
oh.. if I had known about binstruct Ithink my life would be easier...
<Hanmac1>
bnagy & akam-it: about per-byte, what about this:
<elaptics>
JamieJ: this is a simplistic model, not worrying about invalid data and the like but serves as a reasonable example to show you a more object oriented approach
<bnagy>
Hanmac1: but sure, it can be done with pack as well :)
<JamieJ>
ok
<bnagy>
Hanmac1: should be [02,02,02,02] no?
casheew has quit [Read error: Connection reset by peer]
<JamieJ>
is BigDecimal a variable or a command
casheew has joined #ruby
<JamieJ>
?
v1p has joined #ruby
BizarreCake has joined #ruby
<elaptics>
JamieJ: you should be able to see from that how to expand around it to collect your data from your user
<elaptics>
JamieJ: big decimal is a class, in the ruby standard library - used instead of floats
<Hanmac1>
bnagy: how cares about nibbles :P only the women ones :P
<Hanmac1>
JamieJ: BigDecimal is also a method
fourq has quit [Disconnected by services]
<bnagy>
Hanmac1: ('H*')
skattyadz has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<Hanmac1>
bnagy: i know, the joke was about "nibble" ... imo it shows that most of programmer and informaticians are still are puberty teenager inside :P
maxmanders has joined #ruby
yshh has joined #ruby
veer has quit [Ping timeout: 258 seconds]
monkegji_ has joined #ruby
yashshah- has joined #ruby
yshh has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 264 seconds]
tomzx_mac has joined #ruby
yshh has joined #ruby
veer has joined #ruby
jpfuentes2 has joined #ruby
eliasp has quit [Read error: Connection reset by peer]
eliasp has joined #ruby
v0n has joined #ruby
yashshah_ has quit [Ping timeout: 245 seconds]
NiteRain has quit [Ping timeout: 248 seconds]
angusiguess has quit [Ping timeout: 240 seconds]
Macaveli has quit [Quit: This computer has gone to sleep]
arya has joined #ruby
sailias has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
veer has quit [Ping timeout: 258 seconds]
AzizLight is now known as peterb
peterb has left #ruby [#ruby]
doritostains has quit [Quit: Leaving...]
maxmanders has quit [Quit: Computer has gone to sleep.]
veer has joined #ruby
rudisimo has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
maxmanders has joined #ruby
ariedler has joined #ruby
dr_bob has quit [Quit: Leaving.]
anonymuse has joined #ruby
anonymuse has quit [Excess Flood]
Macaveli has joined #ruby
monkegji_ has quit [Ping timeout: 246 seconds]
<JamieJ>
elaptics: thanks sso much for your help
<JamieJ>
this helps a lot
atno has quit [Remote host closed the connection]
anonymuse has joined #ruby
obs has quit [Quit: Konversation terminated!]
dEPy has joined #ruby
danslo has joined #ruby
Sacha_ has quit [Quit: No Ping reply in 180 seconds.]
dr_bob has joined #ruby
Neandre has joined #ruby
maxmanders has quit [Client Quit]
subbyyy has quit [Ping timeout: 260 seconds]
apod has joined #ruby
troessner has joined #ruby
<JamieJ>
i have just a couple of ?
monkegjinni has joined #ruby
<akam-it>
0xfefdfcfb + 0x04040404 =>
sonda has joined #ruby
<akam-it>
0xfb+0x04 = 0xff % 256 = 0xff
<akam-it>
0xfe+0x04 = 0x102 % 256 = 0x02
<akam-it>
0xfd+0x04 = 0x101 % 256 = 0x01
<akam-it>
0xfc+0x04 = 0x100 % 256 = 0x00
<akam-it>
should be 0xff000102
dr_bob has quit [Read error: Connection reset by peer]
<elaptics>
JamieJ: fire away :)
breakingthings has joined #ruby
wallerdev has quit [Quit: wallerdev]
<JamieJ>
to.s('F')
idkazuma has quit [Remote host closed the connection]
<JamieJ>
what is that exactly?
<elaptics>
JamieJ: just a method on big decimal to format the output as a string
atno has joined #ruby
<JamieJ>
ok
<elaptics>
JamieJ: .to_s is a method found on most (all?) objects which will convert it to a string
<JamieJ>
ok
<shevy>
and .to_peanut will turn your object into a peanut
<elaptics>
shevy: lol
<JamieJ>
elaptics: because the main goal is to place take some values and placing them into an array, then printing a receipt
<Xeago>
just remember to require 'peanuts' first!
<Hanmac1>
but there is no automatic :P so you cant call to_xyz and its turned into Xyz :P
[yalue] has joined #ruby
<Fuzai>
Hi if i have a string that looks like this ".tset something" and i have "tset" in a variable how would i remove everything from the start of the string to the end of the 2nd string?
failshell has joined #ruby
<Xeago>
Hanmac1: nothing an agressive gem can't fix :)
<Xeago>
Fuzai: have a look at the methods a string has
<JamieJ>
elaptics: so what you have is good, but then i have to finagle it to make a sentence for each instance
<Xeago>
before diving into regexes
* Hanmac1
must resist to write a function
ph^_ has joined #ruby
solidoodlesuppor has joined #ruby
<Fuzai>
i understand it's sub or gsub something but the . is throwing me off
yalue has quit [Ping timeout: 276 seconds]
<JamieJ>
elaptics: like when i did with my other code with this line - receipt.push " " + amount.to_s + " " + name.to_s + "(s): " + itemtotal.to_s
<Hanmac1>
JamieJ use string interpolaration or sprintf or join
huttan has quit [Quit: leaving]
<elaptics>
JamieJ: well in the receipt object I would just create a method called to_sentence or something then and interpolate a string with the amounts
__main__ has quit [Ping timeout: 260 seconds]
huttan has joined #ruby
Zolo has joined #ruby
sepp2k has joined #ruby
arya has quit [Ping timeout: 248 seconds]
<JamieJ>
thats easy enough
[yalue] has quit [Client Quit]
hmarr has quit []
Mattx has joined #ruby
<elaptics>
JamieJ: well strictly speaking I wouldn't actually do that - if this were real production code then I'd more likely separate out the formatting of a receipt from the receipt object itself but let's not go there right now :)
yalue has joined #ruby
Macaveli has quit [Quit: This computer has gone to sleep]
ph^ has quit [Ping timeout: 252 seconds]
divout has joined #ruby
<Xeago>
does ruby call to_s automatically to convert stuff when "#{interpolating}"ing?
sailias has joined #ruby
veer has quit [Ping timeout: 258 seconds]
<Hanmac1>
Xeago: yes
veer has joined #ruby
<lunarjar>
any rubyists using vim? how do you highlight do end?
<Xeago>
lunarjar: use vim, I don't highlight it
nezumi has quit [Ping timeout: 264 seconds]
Matip has quit [Ping timeout: 245 seconds]
<Xeago>
not using ruby/vim for too long either..
<elaptics>
lunarjar: what do you mean by highlighting do/end?
ttt_ has quit [Remote host closed the connection]
<lunarjar>
elaptics, you know how you get highlighting for matching {} ()
<lunarjar>
I want that for do end
_nitti has joined #ruby
<lunarjar>
as I understand matchit does that, but matchit is kinda old
<lunarjar>
don't know matchit is old so I didn't give it a go
<lunarjar>
troessner, thanks ;)
<troessner>
i have nasty highlighting and syntax checking and god knows what
<elaptics>
lunarjar: I don't highlight mine. matchit isn't to do with highlighting it
wallerdev has joined #ruby
smigg has joined #ruby
wallerdev has quit [Client Quit]
jerius has joined #ruby
<lunarjar>
troessner, from your setup I don't have vim-autoclose
<elaptics>
lunarjar: I use a plugin called vim-blockle that makes it easy to toggle blocks between do/end and {} so that'd be an easy way to switch and then get your highlighting :)
<troessner>
lunarjar, there you go..:)
<elaptics>
lunarjar: matchit just lets you use % to jump between the beginning and end bits
freezey has joined #ruby
_nitti has quit [Ping timeout: 264 seconds]
Zolo has quit [Remote host closed the connection]
__main__ has joined #ruby
timmow_ has joined #ruby
blacktulip has joined #ruby
hmarr has joined #ruby
Skofo has quit [Ping timeout: 240 seconds]
Proshot has quit [Quit: Leaving]
geggam has quit [Ping timeout: 256 seconds]
wmoxam has joined #ruby
huoxito has joined #ruby
<shevy>
got problem
<shevy>
in bash, in mate-terminal, if I do this:
<shevy>
echo -en "\e]0;Test\a"
<shevy>
I can set the terminal title to "Test"
<shevy>
that works
KenDhia has joined #ruby
<shevy>
buuuut if I use that from within a ruby script
sleetdrop has joined #ruby
<shevy>
like so:
<shevy>
system 'echo -en "\e]0;Test\a"'
<shevy>
it does not work... instead, it just seems to print this string here:
<shevy>
"-en \e]0;Test"
<shevy>
does "echo" not work from within a .rb script?
timmow_ has quit [Ping timeout: 252 seconds]
<shevy>
system 'echo hi' works hmmmmmmm
<Xeago>
shevy: the reason it doesn't work is probably because your shell doesn't pick it up
pavilionXP has quit [Read error: Connection reset by peer]
KenDhia has quit [Client Quit]
<Fuzai>
there is an ansi color gem if that's what you are trying to do
geggam has joined #ruby
Macaveli has quit [Quit: This computer has gone to sleep]
<shevy>
Xeago it does not pick it up?
<shevy>
hmm
<shevy>
but echo hi works ...
<shevy>
oh well, this eludes me
clocKwize has quit [Quit: clocKwize]
mmitchell has joined #ruby
Macaveli has joined #ruby
freerobby has joined #ruby
dqminh has quit [Remote host closed the connection]
<tobiasvl>
"If a two-element array at the beginning of the command, the first element is the command to be executed, and the second argument is used as the argv[0] value, which may show up in process listings.
dqminh has joined #ruby
El_loco has joined #ruby
<shevy>
hmm ok... still not sure why 'echo','-en' would not be the same as 'echo -en'
rdev has joined #ruby
v1p has quit [Ping timeout: 255 seconds]
<Politoed>
because it would try to execute the command "echo -en", and not the command "echo" with argument "-en"
monkegjinni has quit [Ping timeout: 264 seconds]
nateberkopec has joined #ruby
<shevy>
aaaaah
El_loco has quit [Remote host closed the connection]
adamjleonard has joined #ruby
nplusp has joined #ruby
<shevy>
now I finally understand... that took me damn long :)
dsadsdasd has quit [Quit: Leaving.]
dsadsdasd has joined #ruby
tommyvyo has joined #ruby
dqminh has quit [Ping timeout: 258 seconds]
Davey has joined #ruby
dayom has quit [Quit: dayom]
arya has quit [Ping timeout: 255 seconds]
Morkel has quit [Quit: Morkel]
hogeo has quit [Remote host closed the connection]
joast has joined #ruby
akam_ has joined #ruby
dylan has joined #ruby
arya has joined #ruby
Proshot has joined #ruby
akam_ has quit [Client Quit]
pskosinski has joined #ruby
akam_ has joined #ruby
akam_ has quit [Client Quit]
akam-it has quit [Remote host closed the connection]
akam-it has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
jonathanwallace has quit [Ping timeout: 260 seconds]
mljsimone has joined #ruby
arietis has joined #ruby
mljsimone has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
mljsimone has joined #ruby
mattbl has joined #ruby
mattbl has quit [Client Quit]
gaahrdner has quit [Remote host closed the connection]
banister`sleep has quit [Read error: Connection reset by peer]
arya has joined #ruby
Neandre has quit [Ping timeout: 258 seconds]
elux has joined #ruby
banister`sleep has joined #ruby
arya has left #ruby [#ruby]
phantasm66 has joined #ruby
arya has joined #ruby
gaahrdne_ has joined #ruby
chandankumar has joined #ruby
eldariof has quit [Read error: No route to host]
rdark has quit [Ping timeout: 240 seconds]
momomomomo has joined #ruby
codecop has quit [Remote host closed the connection]
adkron has joined #ruby
veer has quit [Ping timeout: 258 seconds]
ntzrmtthihu777 has left #ruby [#ruby]
JonnieCache has joined #ruby
veer has joined #ruby
rdark has joined #ruby
flexd has joined #ruby
jgarvey has joined #ruby
sambao21 has joined #ruby
thinkdevcode has joined #ruby
himsin has quit [Ping timeout: 245 seconds]
akashj87 has joined #ruby
theRoUS has quit [Read error: Operation timed out]
monkegjinni has quit [Remote host closed the connection]
thinkdevcode has quit [Remote host closed the connection]
freerobby1 has joined #ruby
veer has quit [Ping timeout: 258 seconds]
freerobby has quit [Read error: Connection reset by peer]
tish has quit [Quit: Leaving.]
NiteRain has joined #ruby
mattbl has joined #ruby
veer has joined #ruby
a_a_g has quit [Quit: Leaving.]
artem has quit [Ping timeout: 246 seconds]
IrishGringo has joined #ruby
cmarques has joined #ruby
monkegjinni has joined #ruby
v0n has joined #ruby
m8 has joined #ruby
virtuose has quit [Read error: No route to host]
jtharris has joined #ruby
luckyruby has joined #ruby
monkegji_ has joined #ruby
m8 has quit [Read error: Connection reset by peer]
zeroeth has joined #ruby
Amnesthesia has joined #ruby
skattyadz has quit [Quit: skattyadz]
monkegji_ has quit [Remote host closed the connection]
m8 has joined #ruby
lewix has joined #ruby
monkegji_ has joined #ruby
dqminh has joined #ruby
dylan has quit [Read error: Connection reset by peer]
virtuose has joined #ruby
internet_user has joined #ruby
puppeh has quit [Remote host closed the connection]
wolcanus has joined #ruby
Al____ has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
pydave6367 has joined #ruby
_nitti_ has quit [Read error: No route to host]
_nitti has joined #ruby
Al_ has quit [Read error: Operation timed out]
SCommette has joined #ruby
dylan has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
interactionjaxsn has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
rippa has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
gaahrdne_ has quit [Remote host closed the connection]
<gestahlt>
Hi
<gestahlt>
How do i actually write a yaml file.. i know i can convert my hash to yaml with .to_yaml but now i need the yaml in a file
m8 has quit [Ping timeout: 248 seconds]
<gestahlt>
How do i do that?
eliasp has quit [Ping timeout: 246 seconds]
x0F has quit [Ping timeout: 246 seconds]
kop has quit [Ping timeout: 246 seconds]
x0F has joined #ruby
_theriffer_ has joined #ruby
kuzushi_ has quit [Ping timeout: 246 seconds]
kop has joined #ruby
kuzushi_ has joined #ruby
MrZYX|off is now known as MrZYX
ph^_ has quit [Remote host closed the connection]
ChronocityLC has quit [Ping timeout: 246 seconds]
Monie has joined #ruby
<mr-rich>
file.puts var.to_yaml
ravster1 has joined #ruby
dylan has quit [Disconnected by services]
m8 has joined #ruby
eliasp has joined #ruby
dylan` has joined #ruby
dylan` has quit [Client Quit]
generalissimo has joined #ruby
deavidsedice has quit [Read error: Connection reset by peer]
deavid has joined #ruby
dqminh has quit [Ping timeout: 258 seconds]
<gestahlt>
thanks mr-rich
jonathanwallace has joined #ruby
maxmanders has joined #ruby
Macaveli has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
arya has quit [Ping timeout: 248 seconds]
dr_bob has joined #ruby
foobArrr has quit [Ping timeout: 258 seconds]
arya has joined #ruby
Macaveli has joined #ruby
faen has quit [Ping timeout: 260 seconds]
pioz has joined #ruby
io_syl has joined #ruby
<JamieJ>
hey
<gestahlt>
mr-rich: where do i set the filename or redirect to stdin?
timmow_ has joined #ruby
<mr-rich>
gestahlt: you open a file in ruby code like any other file ...
m8 has quit [Ping timeout: 246 seconds]
osvico has joined #ruby
<mr-rich>
gestahlt: yaml is just a text file ...
ttt has joined #ruby
bean has joined #ruby
kpshek has joined #ruby
jgarvey has quit [Ping timeout: 246 seconds]
mercwithamouth has joined #ruby
dsadsdasd has quit [Quit: Leaving.]
benwoody has left #ruby [#ruby]
rudisimo1 has joined #ruby
rudisimo has quit [Read error: Connection reset by peer]
timmow_ has quit [Ping timeout: 252 seconds]
ShellFu has joined #ruby
braoru has quit [Quit: Leaving]
etcetera has joined #ruby
bean has quit [Client Quit]
RORgasm has joined #ruby
kiwnix has joined #ruby
monkegjinni has joined #ruby
ttt has quit [Ping timeout: 276 seconds]
mollitz has joined #ruby
v0n has quit [Quit: WeeChat 0.4.0]
x0F has quit [Ping timeout: 276 seconds]
veer has quit [Ping timeout: 264 seconds]
v0n has joined #ruby
monkegji_ has quit [Read error: Operation timed out]
jlast has joined #ruby
veer has joined #ruby
<mollitz>
i'm learning ruby atm and so I wrote a small Todo-App/Script to improve my skills. If someone would look over it and tell me what could be better I'd really appreciate that! https://gist.github.com/mollitz/5301705
monkegjinni has quit [Remote host closed the connection]
<mollitz>
With "better" i mean rubyisher
aganov has quit [Remote host closed the connection]
monkegjinni has joined #ruby
sayan has joined #ruby
tagrudev has quit [Remote host closed the connection]
<tobiasvl>
mollitz: sometimes you use parentheses in method calls and sometimes not, you can probably remove them all for readability (you only have single arguments)
<MrZYX>
mollitz: if the first thing you do in a method is begin and the last thing rescue you can omit the begin
monkegjinni has quit [Remote host closed the connection]
<tobiasvl>
mollitz: `print "string\n"` can be replaced with `puts "string"`, more readable to drop the \n
<mollitz>
thx tobiasvl and MrZYX. is there something "deeper"? Like structure of the code etc.?
<mollitz>
tobiasvl: thats great. i was looking for that!
sleetdrop has joined #ruby
sleetdrop has quit [Client Quit]
jlast has quit [Remote host closed the connection]
<tobiasvl>
mollitz: the structure seems nice to me, but you could probably do some magic in order to not have to define the commands specifically when they're all reflected as methods in the manager? i dunno how though
freeayu has quit [Remote host closed the connection]
foobArrr has joined #ruby
monkegjinni has joined #ruby
<MrZYX>
mollitz: hmm not really ruby specific but currently your Todo class also communicates with the user
skattyadz has joined #ruby
<MrZYX>
IMO it should only communicate with its caller
<mollitz>
tobiasvl: i know what you mean.
<MrZYX>
i.e. instead of directly printing raise an exception and then let the manager, who interacts with the user, print the message
<mollitz>
MrZYX: understanding.
<mollitz>
MrZYX: k
<MrZYX>
also more specific exception catching would be a good thing
<MrZYX>
saves you headaches later
<mollitz>
MrZYX: k
freerobby1 has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
<mollitz>
well thx for the quick overview! really helped me
<MrZYX>
for manager Manager#list have a look at Enumerable#with_index
chandankumar has quit [Ping timeout: 258 seconds]
<MrZYX>
er, Enumerator#with_index
<tobiasvl>
yeah, was about to say that
<tobiasvl>
having a specific number iterator in loops isn't very ruby-ish
<MrZYX>
another separation of concerns thingy would be parsing ARGV either completely inside the manager or outside and passing the values in
logix812 has quit [Quit: Computer has gone to sleep.]
<mollitz>
MrZYX: yeah i thougt that
<MrZYX>
but that's more of a nitpick
<mollitz>
MrZYX: The thing with the index!
aytch has quit [Remote host closed the connection]
arya has quit [Ping timeout: 255 seconds]
<mollitz>
:q
<MrZYX>
oh and also in #list: puts "#{i}: #{todo}"
TooTubular has joined #ruby
<MrZYX>
ruby people highly prefer #{} over + when working with strings
<llaskin1>
each thing you did at each job tends to "flow together" into what looks like 1 long sentence/paragraph
arya has joined #ruby
<llaskin1>
do not mention IRC
<llaskin1>
noone cares what you do in your spare time
lewix_ has joined #ruby
<Xeago>
horizontal rulers not enough?
<llaskin1>
you can list the clarineting under "other skills" or some such. I'd also list that you are bilingual
<llaskin1>
Xeago: no they aren't.
<llaskin1>
also, you are (based on this resume) just getting out of college right?
<llaskin1>
find a way to make it stick to 1 page.
<Xeago>
yup
<Xeago>
I often just take page 1
<Xeago>
or atleast, I did before Primary skills went on the second page
rudisimo1 has quit [Quit: Leaving.]
rudisimo has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
gaahrdner has joined #ruby
<Xeago>
where would you add the bullet points if I may ask?
<Xeago>
per work experience item?
<llaskin1>
Xeago: see pm
<Xeago>
or instead/in addition to the horizontal ruler
chandankumar has joined #ruby
<tobiasvl>
Xeago: hej hej hemskt mycket hej
<Xeago>
I don't speak swedish, but hey :)
<llaskin1>
dutch, not swedish.
lewix has quit [Ping timeout: 276 seconds]
<tobiasvl>
yeah, i just saw that you lived in sweden
<tobiasvl>
Xeago: 29 and 38 months? use years instead maybe?
zph has joined #ruby
<Xeago>
I'd omit the months then
monkegji_ has joined #ruby
ananthakumaran has joined #ruby
<tobiasvl>
or 2.5 and 3 years
<Xeago>
and just leave it to the year - year part
dougireton has joined #ruby
zph has quit [Client Quit]
monkegjinni has quit [Read error: Connection reset by peer]
<tobiasvl>
sure
<Xeago>
the reason I added it was so I could add contract work (carnaval-radio) in a similar style
<tobiasvl>
Xeago: s/clan's/clans
mneorr has joined #ruby
<llaskin1>
Xeago: i hope my resume helps you out...you can see how I bulleted it out...
m8 has joined #ruby
<llaskin1>
also if you are trying to get work in the US(i doubt it, but still) the thing you have at the top with your drivers license status/nationality/etc is very strange to me(as a US citizen/interviewer)
<llaskin1>
(i mean the personalia section)
<gestahlt>
I dont get it
<Xeago>
it is recommended for sweden
<Xeago>
people often don't have it
<tobiasvl>
yeah, keep it in
dsadsdasd has joined #ruby
<gestahlt>
Okay i open a file File.open('filename.yaml', 'w') do | savefile | and then??
<tobiasvl>
(advice as a fellow scandinavian)
dougireton has quit [Read error: Connection reset by peer]
<tobiasvl>
Xeago: i'd maybe explain what the specific technologies you mention are. Tire.rb for example. just mention what kind of stuff they are, and have an own section with "Technology" maybe?
<tobiasvl>
or list it under skills
Macaveli has quit [Quit: Leaving]
justsee has quit [Ping timeout: 264 seconds]
acrussell has joined #ruby
<Xeago>
I'll just remove the Tire.rb part
<Xeago>
it adds little to nothing
grzywacz has joined #ruby
<gestahlt>
ah i got it
<Xeago>
yea adding bullets now, in addition to my horizontal lines
<llaskin1>
Xeago, did you see how I list my dates/companies/bullet points in my resume?
<gestahlt>
Okay.. now comes the tricky part.. i want to add the yaml i just saved to a zip file.. yeah, its easy to create a file and then zip it.. BUT, i want to save it directly to the zip (actually 7zip)
<gestahlt>
I can use the stdin to direct
Amnesthesia has quit [Ping timeout: 258 seconds]
<gestahlt>
7zip can compress files from stdin
<gestahlt>
how do i get the yaml file to stdin?
<Xeago>
yes, you put less emphasis on the time
<MrZYX>
gestahlt: how do you call 7zip?
<Xeago>
I am unsure if I should emphasize it or not
<Xeago>
also, yours is way more dense
Floydzy has quit [Quit: Floydzy]
<llaskin1>
more to say, and yet I still manage to do it in 2 pages I think....
<MrZYX>
gestahlt: have a look at IO#popen
dsadsdasd has quit [Ping timeout: 256 seconds]
<gestahlt>
7zip -mx1 a archivename.7z -siFILENAMEFORSTDIN
<Xeago>
how would I list that I am bilingual, I thought I already did that in my skilss section
<Xeago>
should it be called skills or primary skills
<llaskin1>
thats for you to decide
<llaskin1>
both are fine IMO
<gestahlt>
-si is the parameter for stdin.. when you do stuff like dd if=/dev/sda1 | 7ziü -mx1 a archivename.7z -siSDA1IMAGE.IMG
chandankumar has quit [Ping timeout: 255 seconds]
pduin has quit [Remote host closed the connection]
<MrZYX>
gestahlt: as said, have a look at IO#popen. I thought you already had a way to call it from ruby, that was more what I was asking
<Xeago>
does it bother you that the section about QNH is less than the section about the grocery store, even tho QNH is in a SE field?
<gestahlt>
I will check on popen.. maybe i will just create a tmp file and add it to the zip and when finished delete it.. might be less of a hassle
<Xeago>
I feel I should elaborate on it, but I fail to do so
dougireton1 has quit [Quit: Leaving.]
<gestahlt>
anyway, gtg. Thanks guys
<Xeago>
also, I think I am going to move the years to the right side,
<Xeago>
it takes up too much whitespace on the left
gestahlt has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121129151842]]
m8 has quit [Ping timeout: 260 seconds]
<llaskin1>
IMO i'd drop the grocery store to 1 line
freerobby has quit [Quit: Leaving.]
<llaskin1>
you were a cashier/bagboy. Noone gives a shit other then that you seem to "llike having a job"
aytch has joined #ruby
momomomomo has joined #ruby
zigomir has quit [Quit: zigomir]
idkazuma has joined #ruby
BizarreCake has quit [Ping timeout: 260 seconds]
<Xeago>
not a cashier bagboy
<Xeago>
wear team leader
<Xeago>
was*
randomautomator has joined #ruby
macabhaird has joined #ruby
<Xeago>
before that I was a regular shelfstocker for year and a half
jurassic_ has joined #ruby
<Xeago>
at competing store next door
x0F has quit [Read error: Operation timed out]
randomautomator has quit [Read error: Connection reset by peer]
indyrl has joined #ruby
<Xeago>
had quite a bit of influence then
indyrl has left #ruby [#ruby]
mikecmpbll has quit [Quit: Computer has gone to sleep.]
spider-mario has joined #ruby
momomomomo has quit [Ping timeout: 255 seconds]
randomautomator has joined #ruby
codecop has joined #ruby
akashj87 has quit [Ping timeout: 260 seconds]
carloslopes has joined #ruby
wolcanus has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
nezumi has joined #ruby
nomenkun_ has quit [Read error: Connection reset by peer]
chandankumar has joined #ruby
angusiguess has joined #ruby
nomenkun has joined #ruby
momomomomo has joined #ruby
d2dchat has quit [Remote host closed the connection]
<breakingthings>
Xeago: you know, you don't need to include all of your past jobs. The grocery job means nothing to people looking for software engineers and your other sources seem good enough.
monkegji_ has quit [Remote host closed the connection]
momomomomo_ has joined #ruby
monkegjinni has joined #ruby
brain_shim has joined #ruby
carloslopes has quit [Ping timeout: 240 seconds]
<breakingthings>
Also, your skills section is smaller than your hobbies section.
<breakingthings>
That's just silly.
timmow_ has joined #ruby
Neomex has joined #ruby
ShellFu is now known as ShellFu_brb
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo_ is now known as momomomomo
<Xeago>
I could do all the skills I mention in the text below tabularly, but that adds only clutter in my opinion
GhettoCode has joined #ruby
pedrocarrico has joined #ruby
<Xeago>
I only mention stuff I actively work with in the tabular section
<llaskin1>
Xeago: you're so dreammmmmy.
<llaskin1>
do people in scandinavia all include headshots?
pedrocarrico has left #ruby [#ruby]
BizarreCake has joined #ruby
<Xeago>
no, but I exclude age
<llaskin1>
get rid of Secondary activities and hobbies
<Xeago>
which is usually done here
ph^ has joined #ruby
<breakingthings>
Xeago: Being straight with you here, tabular section is dumb. List it, flaunt it, tell them you ride git like a bucking bronco, and tenderly love ruby throughout the night.
monkegjinni has quit [Read error: Connection reset by peer]
<llaskin1>
I mean seriously, get rid of it. All that stuff can and will come out in an interview process.
<llaskin1>
Noone wants to know a 1-10 of how good you are at languages and such
<llaskin1>
just that you know them
<breakingthings>
Resume is basically "tell us you actually have some idea what you're saying so we can filter you out if you seem like a dumbass"
<llaskin1>
prove how well you know them in an interview
timmow_ has quit [Ping timeout: 252 seconds]
<Xeago>
makes sense
<llaskin1>
Xeago: almost there
monkegjinni has joined #ruby
<llaskin1>
now get it to 1 page.
<breakingthings>
^
<Xeago>
ofcourse
akashj87 has joined #ruby
<llaskin1>
there seems to be no rhyme/rason to the list of primary skills
<Xeago>
so you recommend just removing values in the skils section?
<llaskin1>
put them in an order that makes sense
<llaskin1>
yes remove the values
<llaskin1>
and make it a comma seperated list
cburyta has joined #ruby
<Xeago>
order of love :P
GhettoCode has left #ruby [#ruby]
<llaskin1>
check out my skills section
<llaskin1>
if you edit your skills section, i see no reason why this can't be 1 page
ph^ has quit [Read error: No route to host]
monkegjinni has quit [Read error: Connection reset by peer]
dr_bob has quit [Quit: Leaving.]
ph^ has joined #ruby
doritostains has joined #ruby
monkegjinni has joined #ruby
aytch has quit [Remote host closed the connection]
<breakingthings>
Xeago: llaskin1: I'd say throw languages (eg Dutch/English) as part of your bio at the top, and then just make your skills list an unordered list.
pydave6367 has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
<Xeago>
left/right unordered?
veer has quit [Ping timeout: 258 seconds]
<Xeago>
or single
<Xeago>
gotta make dinner, so a bit less active
<breakingthings>
- Ruby (Mid-Level)
<breakingthings>
- Proficient in git
<breakingthings>
- C
<breakingthings>
- JavaScript
<breakingthings>
etc
<breakingthings>
just a straight down list.
adamjleonard has quit [Quit: Leaving...]
<breakingthings>
Most of them don't need qualifiers
Guest3100 has quit [Changing host]
Guest3100 has joined #ruby
Guest3100 is now known as digifiv5e
<breakingthings>
For certain ones you want to highlight, like if this is a ruby job, you can flare just a little like I did with (Mid-Level), or 'proficient' with git.
<breakingthings>
Everything else just list the thing itself. Just 'cause you know Java don't mean they give a squat.
GhettoCode has joined #ruby
peterbutterworth has joined #ruby
tylersmith has joined #ruby
wereHams1er has joined #ruby
kaffepanna has joined #ruby
kaffepan1a has quit [Read error: Operation timed out]
wereHamster has quit [Read error: Operation timed out]
<Xeago>
I hate java..
chandankumar has quit [Ping timeout: 264 seconds]
_theriffer_ has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
_theriffer_ has quit [Client Quit]
Neomex has quit [Quit: Neomex]
<breakingthings>
It was just an example
<breakingthings>
but I bet they do too
dqminh has joined #ruby
_theriffer_ has joined #ruby
Neomex has joined #ruby
<breakingthings>
Don't include non-relevant info
jurassic_ has quit [Ping timeout: 264 seconds]
IrishGringo has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
mfridh_ has joined #ruby
monkegjinni has joined #ruby
maycon has quit [Read error: Connection reset by peer]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
mfridh has quit [Ping timeout: 264 seconds]
mfridh_ is now known as mfridh
aytch has joined #ruby
bulters has quit [Ping timeout: 240 seconds]
TooTubular has quit [Quit: tootubular]
<shevy>
say you have
<shevy>
module Foo; USE_COLOURS = true; end
<shevy>
now I wanna do something like
<shevy>
Foo.disable_colours
maycon has joined #ruby
maycon has joined #ruby
maycon has quit [Changing host]
<shevy>
I dont have to use a constant
m8 has joined #ruby
<injekt>
constants are constants for a reason
<shevy>
I just want any way, without a $global
<injekt>
use a class instance variable
<injekt>
or module in this case
<linduxed>
is there some linter for ruby?
<MrZYX>
yep, instance variable of the module object
sepp2k has quit [Remote host closed the connection]
<JamieJ>
the problem is with the item = Item.new line
alex__c2022 has joined #ruby
Neomex has quit [Ping timeout: 252 seconds]
drale2k has joined #ruby
<Mattx>
what was the syntax to use a method as a block? like in: class Foo \n def initialize bar(xux) end \n def bar yield end \n def xux puts "yay!" end \n end
jamie_ca_ has joined #ruby
<elaptics>
JamieJ: yes, you're not passing the expected arguments to it - there's no need for that line at all, you're creating the object you need on line 82
alexwh has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
akashj87 has joined #ruby
hamakn has quit [Remote host closed the connection]
<elaptics>
JamieJ: why have you created a separate array? You can add what that does to the PrintReceipt class
eddiezane has joined #ruby
hamakn has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
eliasp_ has quit [Quit: No Ping reply in 180 seconds.]
peterbutterworth has quit [Remote host closed the connection]
<elaptics>
JamieJ: also the puts on line 57 is going to cause problems - there's no reason to "puts" inside this class. The else clause needs to return a suitable value for the rate e.g. 0 so that it can be used in the calculation
stkowski has joined #ruby
eddiezane has left #ruby [#ruby]
hamakn has quit [Remote host closed the connection]
eliasp has joined #ruby
rupee has joined #ruby
<JamieJ>
elaptics: that is actually for the error message
mercwithamouth has quit [Ping timeout: 245 seconds]
<JamieJ>
for when the product they ask for isnt available
thone_ has quit [Ping timeout: 264 seconds]
bricker`1A has joined #ruby
Monie has quit [Quit: Leaving]
baba has joined #ruby
<Hanmac1>
Mattx bar {xux}
<awc737>
I wanna be, the very best. The best there ever was
<elaptics>
JamieJ: well that's not going to work, and isn't the way to do it
<davidcelis>
at rubby?
zeroeth has joined #ruby
<awc737>
to web scale is my test. to cloud is my cause
<Mattx>
Hanmac, yeah, there you're passing a block that calls xux... I think there was a way to directly use xux's reference
krawchyk_ has quit [Remote host closed the connection]
JamieJ has quit [Ping timeout: 245 seconds]
sayan has quit [Ping timeout: 260 seconds]
chrishough has joined #ruby
bulters has quit [Ping timeout: 264 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
krawchyk has quit [Ping timeout: 240 seconds]
pcarrier_ has joined #ruby
indyrl has joined #ruby
lewix_ has quit [Ping timeout: 264 seconds]
kofno has quit [Remote host closed the connection]
arya has quit [Ping timeout: 245 seconds]
dylan` has quit [Read error: Connection reset by peer]
bean has joined #ruby
gianlucadv has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
kofno has joined #ruby
gianlucadv has joined #ruby
evenix has joined #ruby
veer has quit [Ping timeout: 245 seconds]
etcetera has quit []
veer has joined #ruby
apod has quit []
sayan has joined #ruby
arya has joined #ruby
mengu has quit [Ping timeout: 264 seconds]
etcetera has joined #ruby
etcetera has quit [Client Quit]
<Dwarf>
Evening. I have a rather strange problem. If I have a string like this "^this is a string"
jcheng has joined #ruby
hamakn has joined #ruby
<Dwarf>
And I do string[1], I'd normally get the '^' sign, but I get the ascii number instead on another server. Why is that and how do I change it?
Zai00 has quit [Quit: Zai00]
dhruvasagar has quit [Ping timeout: 240 seconds]
moos3 has quit [Quit: Computer has gone to sleep.]
<MrZYX>
you mean string[0]?
<Hanmac1>
Dwarf: because the other server is outdated
<invisime>
if you get an ascii number and you want the character, use .chr.
sayan has quit [Read error: Connection reset by peer]
<Dwarf>
I feared as much
chandankumar has joined #ruby
<Dwarf>
Yes MrZYX you're right
brennanMKE has joined #ruby
<Hanmac1>
Dwarf the other server is 1.8 and this is outdated
<Dwarf>
It seems it is
dhruvasagar has joined #ruby
<Dwarf>
It's not my server, so could I just run 1.9 or 2.0 with RVM?
g0bl1n has joined #ruby
<apeiros>
Dwarf: string[0,1] will work the same across 1.8 and 1.9
<Dwarf>
Or would that conflict?
g0bl1n has quit [Changing host]
g0bl1n has joined #ruby
matayam has quit [Remote host closed the connection]
<MrZYX>
no it likely wouldn't conflict
<apeiros>
if it's not your server, you should probably discuss that with the server owner. generally rvm can have multiple rubies without conflict
havenwood has joined #ruby
hamakn has quit [Ping timeout: 256 seconds]
<g0bl1n>
on string formatting, I'd like to get a "0000000abc" result but "%010s" % "abc" returns " abc"
<apeiros>
but e.g. apache + passenger can currently only run a single ruby version (passenger 4 changes that, also using apache as reverse proxy to another server allows multiple rubies too)
mattbl has quit [Quit: This computer has gone to sleep]
<apeiros>
g0bl1n: rjust/ljust
<Dwarf>
The server owner doesn't use ruby, I'm the only person :)
dsadsdasd has joined #ruby
adam12 has quit [Ping timeout: 246 seconds]
arietis has joined #ruby
skattyadz has quit [Quit: skattyadz]
swingha has joined #ruby
<g0bl1n>
apeiros, ty, yet, from the docs, I seem to understand that "%010s" % "abc" would subst spaces by zeros
<JamieJ>
someone please help me this...i want to turn in this program today
jumpei has joined #ruby
BSaboia has joined #ruby
<apeiros>
banisterfiend: talking with other systems. but IMO that'd be abuse of to_i. Conversion from/to specific systems should be handled by specific classes.
r0bby has joined #ruby
_nitti has quit [Remote host closed the connection]
tevio has quit [Remote host closed the connection]
drale2k has joined #ruby
_nitti has joined #ruby
_nitti has quit [Remote host closed the connection]
<apeiros>
JamieJ: BigDecimal.new(0.00, 2) # creating a bigdecimal from a float somewhat defeats the purpose of bigdecimal
<MrZYX>
JamieJ: you never store item
Hanmac1 has quit [Ping timeout: 252 seconds]
<JamieJ>
apeiros: which line is that?
sdavis has quit [Ping timeout: 252 seconds]
sdavis_ is now known as sdavis
<JamieJ>
MrZYX: store what?
<MrZYX>
item
<MrZYX>
you assign it but never use it
tevio has joined #ruby
r0bby_ has joined #ruby
<apeiros>
JamieJ: just search for `BigDecimal.new`. most of your uses are like that.
answer_42 has joined #ruby
<kraljev3>
Something bugs me. If i do:
<kraljev3>
var = 10 if false
<kraljev3>
p var
<kraljev3>
Why is there no warning for undefined variable
<apeiros>
because it is defined
<kraljev3>
but it is not executed
<apeiros>
the parser seeing the variable suffices.
<kraljev3>
ok, thanks :)
<havenwood>
var
<JamieJ>
MrZYX item is used several times in the code
<apeiros>
actually, the parser seeing an *assignment* to the variable suffices
robbyoconnor has quit [Ping timeout: 245 seconds]
_nitti has joined #ruby
<JamieJ>
apeiros: i will look that up
froy has quit [Ping timeout: 245 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
<JamieJ>
item is assigned and is used in several methods in the code
<MrZYX>
JamieJ: Item is, local variable item in some methods in PrintReceipt is, but local variable item in the main context isn't
r0bby has quit [Ping timeout: 245 seconds]
faen has joined #ruby
<havenwood>
JamieJ: You assign `receipt = PrintReceipt.new` but never then tell `receipt` about the purchases.
<JamieJ>
yes i am
<MrZYX>
no
<MrZYX>
not in the gist you posted
freerobby has quit [Quit: Leaving.]
jumpei has quit [Remote host closed the connection]
freerobby has joined #ruby
mneorr has quit [Remote host closed the connection]
strax_ has quit [Ping timeout: 246 seconds]
spanx_ has quit [Ping timeout: 246 seconds]
patricksroberts_ has quit [Ping timeout: 245 seconds]
LennyLinux has joined #ruby
joshwines_ has quit [Ping timeout: 256 seconds]
karnowski has quit [Ping timeout: 246 seconds]
mtlatif has quit [Ping timeout: 240 seconds]
cam` has quit [Ping timeout: 276 seconds]
im0b has quit [Ping timeout: 264 seconds]
phasma has quit [Ping timeout: 246 seconds]
[Neurotic] has quit [Ping timeout: 246 seconds]
tspike has joined #ruby
nadirvardar has joined #ruby
dqminh has joined #ruby
theRoUS has quit [Ping timeout: 264 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
ToApolytoXaos has joined #ruby
jumpei has joined #ruby
Hanmac1 has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
faen has quit [Quit: faen]
Es0teric has joined #ruby
timmow has joined #ruby
cburyta has quit [Remote host closed the connection]
<callmeivan>
just tried to install ruby2 on my debian box, got an error, this is the corresponding line
<callmeivan>
if Gem::Specification.unresolved_deps.empty? then
<callmeivan>
return gem_original_require(path)
<callmeivan>
end
<callmeivan>
Processing triggers for man-db ...
<callmeivan>
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
<tomsthumb>
so if i think found a bug in an old version of knife would opscode still take a pull request or tickekt?
<callmeivan>
but it appears to be working
faen has joined #ruby
dqminh has quit [Ping timeout: 245 seconds]
eldariof has quit []
cmyers has joined #ruby
<JamieJ>
havenwood: receipt = PrintReceipt.new is assigned and a function is called at thee nd of the program
hmarr has quit [Ping timeout: 255 seconds]
mercwithamouth has joined #ruby
<JamieJ>
take another look
<cmyers>
has anyone gotten the http client gem patron to work with a custom SSL cert without using insecure mode (i.e. completely disabling security)?
<havenwood>
JamieJ: Like I said, you don't tell `reciept` anything about the purchases. You never call `receipt.add`.
codecop has quit [Ping timeout: 240 seconds]
_nitti_ has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
phasma has joined #ruby
robbyoconnor has joined #ruby
joshwines_ has joined #ruby
ferdev has joined #ruby
spanx_ has joined #ruby
mephux has quit [Excess Flood]
r0bby_ has quit [Ping timeout: 245 seconds]
moeSeth_ has joined #ruby
patricksroberts_ has joined #ruby
angusiguess has joined #ruby
karnowski has joined #ruby
nkts has joined #ruby
taqutor has joined #ruby
im0b has joined #ruby
zodiak has joined #ruby
_nitti has quit [Ping timeout: 256 seconds]
<JamieJ>
havenwood: ok i saw where my mistake was at least with that
martinklepsch has quit [Ping timeout: 248 seconds]
[Neurotic] has joined #ruby
mtlatif has joined #ruby
mephux has joined #ruby
grzywacz has quit [Ping timeout: 255 seconds]
cam` has joined #ruby
jarjar_prime has joined #ruby
jumpei has quit [Remote host closed the connection]
strax_ has joined #ruby
razibog has quit [Ping timeout: 246 seconds]
veer has quit [Ping timeout: 245 seconds]
veer has joined #ruby
jumpei has joined #ruby
jumpei has quit [Remote host closed the connection]
ferdev has quit [Quit: ferdev]
X-Jester has quit [Ping timeout: 260 seconds]
ph^ has joined #ruby
X-Jester has joined #ruby
bulters has joined #ruby
mark_locklear has quit [Ping timeout: 258 seconds]
nga4 has quit []
gaahrdner has quit [Remote host closed the connection]
codecop has joined #ruby
jeebster has quit [Quit: Leaving.]
jumpei has joined #ruby
mityaz has quit [Quit: See ya!]
gaahrdner has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
_nitti has joined #ruby
sambao21 has joined #ruby
ph^ has quit [Ping timeout: 245 seconds]
bulters has quit [Ping timeout: 252 seconds]
Nimsical has joined #ruby
workmad3 has joined #ruby
sambao21 has quit [Client Quit]
_nitti_ has quit [Ping timeout: 264 seconds]
veer has quit [Ping timeout: 245 seconds]
rburton- has joined #ruby
kraljev3 has left #ruby [#ruby]
gaahrdner has quit [Ping timeout: 255 seconds]
sailias has quit [Ping timeout: 276 seconds]
etcetera has quit []
monkegjinni has quit [Remote host closed the connection]
jumpei has quit [Remote host closed the connection]
veer has joined #ruby
tomsthumb has quit [Quit: Leaving.]
maxmanders has joined #ruby
mikeg has joined #ruby
jumpei has joined #ruby
etcetera has joined #ruby
sambao21 has joined #ruby
monkegjinni has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
sayan has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
Elhu has joined #ruby
heliumsocket has joined #ruby
wedgeV has quit [Remote host closed the connection]
<Xeago>
apeiros: what do you think of operating systems being mentioned in the skills section
chrisnicola has joined #ruby
mneorr has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
codecop has quit [Ping timeout: 252 seconds]
akemrir has quit [Quit: WeeChat 0.4.0]
Czupa has quit [Remote host closed the connection]
<apeiros>
probably necessary to get through HR
ph^ has joined #ruby
<apeiros>
it did not matter to us since we declared that dev machines would be macs
<Xeago>
hmm, that is a view from a whole different angle
<Xeago>
when I see OS' at a skills section
<Xeago>
for a software engineer I would see that as them having experience interfacing with the OS
<Xeago>
or kernel
<Hanmac1>
is it allowed to develop something on a mac or do you need to jailbreak it? :P
<Xeago>
Hanmac1: ruby comes on a mac: echo "puts 'yolo'" > nah.twice; ruby nah.twice
acrussell has quit [Quit: Leaving.]
divout has quit [Remote host closed the connection]
zeade has left #ruby [#ruby]
<apeiros>
Xeago: if so, then I'd specifically write it as such
zeade has joined #ruby
<apeiros>
just plain "Skills: Windows, OSX, *nix" I'd just consider as "knows how to use"
<apeiros>
wrt HR, I'd also put on Office, no matter whether you've actually used it.
casheew has quit [Read error: Connection reset by peer]
jumpei_ has joined #ruby
jumpei has quit [Ping timeout: 252 seconds]
brand0n_ has joined #ruby
<apeiros>
(or not have an "applications" section at all)
<brand0n_>
hey guys got a question.. i am trying to multi thread pinging a whole subnet.. I believe i am having an issue with main exiting before all my threads are finished.. here is the logic http://pastebin.com/TFfzddTJ Can someone take a look at that and tell me what i am doing wrong?
chrisnicola has quit [Quit: This computer has gone to sleep]
<MrZYX>
ofcan: well, you're quickly tempted doing that to solve one particular problem you only have once in your project, adding generic methods is okay IMO
banisterfiend has joined #ruby
jarred has left #ruby [#ruby]
<Xeago>
thanks!
tjg has joined #ruby
banister_ has quit [Read error: Connection reset by peer]
<MrZYX>
ofcan: just keep in mind that if you're writing a lib used by others they might get confused by it or even overwrite it
tjg has left #ruby [#ruby]
<ofcan>
MrZYX: so rule of thumb > if I have a method that is applicable on multiple Enumerable objects, add it within that module; if not write it within that object?
JamieJ has quit [Quit: Page closed]
mercwithamouth has joined #ruby
<MrZYX>
roughly, yeah
mhf has joined #ruby
moshef has quit [Quit: moshef]
mockra has joined #ruby
timmow has joined #ruby
<ofcan>
MrZYX: thx man :)
kpshek has quit []
rdark has quit [Quit: leaving]
elux has quit [Quit: Leaving...]
<ofcan>
MrZYX: ahhh, ok, I promise this is the last one :) > what is the difference if I add the method applicable to all Enumerable objects in module enumerable vs class enumerable? Reason for my confusion is this file here > https://github.com/mojombo/jekyll/blob/master/lib/jekyll/core_ext.rb
alexyz has joined #ruby
huoxito has quit [Ping timeout: 245 seconds]
Hanmac1 has quit [Ping timeout: 252 seconds]
<MrZYX>
Enumerable is a module, not a class
<MrZYX>
you can't define a module and a class with the same name
<MrZYX>
since Enumerable really is a constant holding a module object, Hash is a constant holding a class object
timmow has quit [Ping timeout: 252 seconds]
_nitti_ has quit [Ping timeout: 264 seconds]
koalo has quit [Remote host closed the connection]
reset has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<sidusnare>
heh, guess I was using an object and not a string, yay type casting
dmerrick has quit [Remote host closed the connection]
<ofcan>
MrZYX: Dude. If you come to Croatia anytime soon, you have a free beer :)
gaahrdner has quit [Remote host closed the connection]
momomomomo has joined #ruby
<MrZYX>
well, not that complicated to find, self is the instance of the class, so I did a ctrl+f
senayar has quit [Quit: Quitte]
jeebster1 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
xardas has quit [Ping timeout: 240 seconds]
<banisterfiend>
MrZYX: what's your native language? (just curious:))
callmeivan has joined #ruby
<MrZYX>
german
jeebster has quit [Ping timeout: 240 seconds]
Al_ has joined #ruby
netto has joined #ruby
<netto>
hey guys
timmow has joined #ruby
<netto>
I'm set up an app in my webserver running freebsd, can someone help me fixing a error during the thin start?
alexwh has joined #ruby
doritostains has quit [Quit: Leaving...]
<epochwolf>
apeiros: Thanks a lot for your help. I've got my code somewhat working now. :) First time building a lexer/parser. It's a lot easier than I imagined.
anderse has quit [Quit: anderse]
gabrielrotbart has joined #ruby
freerobby has quit [Quit: Leaving.]
ehaliewicz has quit [Remote host closed the connection]
<netto>
can someone help me?
razibog has quit [Ping timeout: 264 seconds]
Tricon has joined #ruby
<epochwolf>
netto: what's the error?
<netto>
I think it's rmagick (which I saw a lot of discussion about it)..
<eval-in>
netto => /tmp/execpad-badae327f87d/source-badae327f87d:2:in `<main>': undefined local variable or method `adapter' for main:Object (NameError) (http://eval.in/14660)
<netto>
config.gem: Unpacked gem letter_opener in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
<netto>
config.gem: Unpacked gem letter_opener in vendor/gems not in a versioned directory. Giving up.
gaahrdner has joined #ruby
Al_ has quit [Quit: Al_]
<netto>
?
akashj87__ has joined #ruby
<netto>
i can't past the whole log here
osvico has quit [Ping timeout: 276 seconds]
<epochwolf>
netto: use gist
Matt has joined #ruby
<netto>
I' only starting the app
Matt is now known as Guest33369
<netto>
locally I run "thin --prefix /portal start'
ilyam has quit [Quit: ilyam]
<netto>
but on my webserver, I'm getting this:
<netto>
>> Using rails adapter
<eval-in>
netto => /tmp/execpad-1695842b56cd/source-1695842b56cd:2:in `<main>': undefined local variable or method `adapter' for main:Object (NameError) (http://eval.in/14661)
<netto>
config.gem: Unpacked gem letter_opener in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
<netto>
config.gem: Unpacked gem letter_opener in vendor/gems not in a versioned directory. Giving up.
Denommus has joined #ruby
Denommus has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
fission6 has joined #ruby
emmanuelux has joined #ruby
akashj87 has quit [Ping timeout: 245 seconds]
rdev5|work is now known as rdev5|semiafk
xjunior has joined #ruby
osvico has joined #ruby
Proshot has quit [Quit: Leaving]
Zai00 has quit [Quit: Zai00]
<xjunior>
is there a way to start IRB and make it run a command?
jcheng has quit [Quit: Computer has gone to sleep.]
Neomex has joined #ruby
<xjunior>
I want to establish a database connection to the database
kofno has quit [Remote host closed the connection]
<netto>
I'm using ruby 1.8.7
<netto>
'irb' in terminal works with ruby 1.8.7
<netto>
?
keyword has joined #ruby
SCommette has quit [Quit: SCommette]
<xjunior>
netto: yes
solidoodlesuppor has quit [Remote host closed the connection]
piotr_ has quit [Ping timeout: 264 seconds]
<netto>
i'll try
tyfighter has joined #ruby
gaahrdner has quit [Remote host closed the connection]
Neomex has quit [Client Quit]
<keyword>
hi there I have a question I'm trying to do a proxy checker in ruby, it is working fine but the timeout is not working I want that if the proxy no response in 10 seconds return false but it sometime take longer like 20 seg this is the code http://pastie.org/private/2bzv0nmp1h6vyjna6dcabq
<keyword>
anyone knows why or knows some other library for test proxies ?
Davey has quit [Quit: Computer has gone to sleep.]
frem has quit [Ping timeout: 246 seconds]
tootubular has joined #ruby
marcdel has quit [Ping timeout: 245 seconds]
blaxter has joined #ruby
<keyword>
anyone can helpme
sailias has quit [Quit: Leaving.]
hukl has joined #ruby
hukl has quit [Client Quit]
breakingthings has joined #ruby
chrisja has quit [Quit: leaving]
doritostains has joined #ruby
tyfighter has quit [Quit: tyfighter]
rdev5|semiafk is now known as rdev5|away
moshef has quit [Quit: moshef]
newUser1234 has quit [Remote host closed the connection]
tevio has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
atno is now known as atno|AFK
apeiros has quit [Remote host closed the connection]
<shevy>
Xeago perhaps make a newline before a new paragraph? otherwise looks fine
moshef has joined #ruby
<Xeago>
shevy: where
arya has joined #ruby
<Xeago>
at hobbies / 2ndary act.?
<shevy>
Xeago yeah at hobbies
<moshef>
hi. another question. I have my gem in github and I'm using bundler to install it. I'm now trying to require it but I'm getting cannot load such file.
<moshef>
like its trying to find the file within my root folder..
spooner_ has quit [Quit: Page closed]
jekotia has joined #ruby
<Xeago>
shevy: lines or no lines?
<Xeago>
or different amount of lines
freerobby has joined #ruby
<moshef>
sorry, asked earlier on ror room..
internet_user has quit [Remote host closed the connection]
pioz has quit [Quit: This computer has gone to sleep]
<keyword>
hi there I have a question I'm trying to do a proxy checker in ruby, it is working fine but the timeout is not working I want that if the proxy no response in 10 seconds return false but it sometime take longer like 20 seg this is the code http://pastie.org/private/2bzv0nmp1h6vyjna6dcabq
<keyword>
19:40
<keyword>
anyone knows why or knows some other library for test proxies ?
matled has quit [Remote host closed the connection]
<shevy>
Xeago dunno, seems ok. I myself, if I would read applications, would rather read as little as possible, but that what I have to read, as efficient and information-rich as possible
matled has joined #ruby
Xeago_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy>
Xeago if it is through an oral interview, I would actually prefer to ask about hobbies myself face to face, than read about them. is more fun to talk
<Xeago_>
true that
<Xeago_>
it is commonly included in resumes here locally tho
jeebster has joined #ruby
<netto>
tylersmith: but I dont know other possibility… this app is ready, I'm cloning with Git
<Xeago_>
also it gives more character, and what I do besides 'owrk'
<Xeago_>
netto: do you need to run bundler?
<netto>
yes
<Xeago_>
do you need to run it with bundler?
[Neurotic] has quit [Ping timeout: 240 seconds]
<netto>
bundle install
twoism has quit [Ping timeout: 240 seconds]
cobragoa_ has joined #ruby
headius has quit [Quit: headius]
idkazuma has quit [Remote host closed the connection]
patricksroberts_ has quit [Ping timeout: 240 seconds]
Xeago is now known as Guest17787
Guest17787 has quit [Killed (hitchcock.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
blaxter has quit [Ping timeout: 260 seconds]
strax_ has quit [Ping timeout: 240 seconds]
nomadic has quit [Ping timeout: 240 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
rawler has joined #ruby
Layke has quit [Ping timeout: 255 seconds]
fasta has quit [Read error: Connection reset by peer]
fasta has joined #ruby
phasma has quit [Ping timeout: 240 seconds]
cobragoat has quit [Ping timeout: 240 seconds]
anonymuse has quit [Quit: Leaving...]
rawler_ has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
<netto>
tylersmith: In my Gemfile, I have this: gem "letter_opener", :path => "vendor/gems/letter_opener"
[Neurotic] has joined #ruby
<netto>
tylersmith: Can I remove path?
pac1 has joined #ruby
<Xeago>
shevy: lines/no-lines I dc'd
nomadic has joined #ruby
<tylersmith>
netto: yeah try that, but you'll want to ensure to use the correct version so first figure out what that is (look in vendor/gems/letter_opener), then you'll want to specify that version in your Gemfile
reset has joined #ruby
alanp has quit [Read error: Connection reset by peer]
nezumi has quit [Ping timeout: 245 seconds]
alanp has joined #ruby
jgarvey has quit [Quit: Leaving]
redrufus has joined #ruby
<netto>
tylersmith: I already removed, but I'm still getting this message: config.gem: Unpacked gem letter_opener in vendor/gems is not in a versioned directory(should be letter_opener-1.1.0).
<netto>
I have to remove this directory from webserver too?
chimkan_ has joined #ruby
DonRichie has quit [Quit: Verlassend]
DonRichie has joined #ruby
cburyta has joined #ruby
drale2k has quit [Quit: Leaving...]
freerobby has quit [Ping timeout: 256 seconds]
<tylersmith>
netto: may as well try it (never much used vendored gems before they fell out of fashion)
cmarques has quit [Ping timeout: 264 seconds]
timmow has joined #ruby
sepp2k has quit [Remote host closed the connection]
MrZYX is now known as MrZYX|off
drale2k has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
daniel_- has quit [Ping timeout: 248 seconds]
mmitchell has quit [Remote host closed the connection]
danneu has joined #ruby
<netto>
tylersmith: no!
chrisnicola has quit [Quit: This computer has gone to sleep]
newUser1234 has quit [Remote host closed the connection]
mikepack_ has quit [Remote host closed the connection]
autumn has quit [Ping timeout: 260 seconds]
waxjar has quit [Ping timeout: 258 seconds]
huttan has quit [Ping timeout: 245 seconds]
sivoais has quit [Ping timeout: 246 seconds]
twoism has joined #ruby
fission6 has joined #ruby
bitZero__ has joined #ruby
darkc0met has joined #ruby
mrsolo has quit [Quit: Leaving]
<Ohga>
hello. Could I assistance with this problem: https://gist.github.com/rogernorling/5297336 . This is minitest spec and the lambdas at line 11-12 should use an @events that is initialized to an empty array, yet it doesn't.. what am I missing?
<Ohga>
*I have assistance
sivoais has joined #ruby
<epochwolf>
oh, this is evil... I'm making , an operator that starts an array if it hasn't been started and then as you hit commas, it concats the previous value to the array.
<epochwolf>
forgive me
huttan has joined #ruby
<epochwolf>
Ohga: no ideas from the peanut gallery
majikbytes has joined #ruby
waxjar has joined #ruby
autumn has joined #ruby
pcarrier_ has quit [Quit: Computer has gone to sleep.]
ffranz has quit [Quit: Leaving]
kofno has joined #ruby
TorpedoSkyline has quit [Quit: Don't follow me if you don't want hilarity and QUITing to ensue. Also, freelancing and iOS. @TorpedoSkyline]
seme has quit [Ping timeout: 245 seconds]
statarb3 has joined #ruby
awestroke_ has quit [Remote host closed the connection]
statarb3 is now known as Proshot
bulters has joined #ruby
d2dchat has joined #ruby
fission6 has quit [Quit: fission6]
timmow has quit [Remote host closed the connection]
moshef has quit [Quit: moshef]
ofcan has quit [Quit: leaving]
allaire has joined #ruby
reactormonk has joined #ruby
<linduxed>
using 2.0.0 in irb, when i do "require ./ex25" i get the following:
<linduxed>
ArgumentError: wrong number of arguments (0 for 1)
davetherat has quit [Remote host closed the connection]
hmarr has joined #ruby
davetherat has joined #ruby
<gf3>
require './ex25'
kofno has quit [Remote host closed the connection]
<gf3>
OR
<gf3>
require_relative 'ex25'
bulters has quit [Ping timeout: 240 seconds]
tylersmith has quit [Quit: tylersmith]
nomadicoder has joined #ruby
pcarrier_ has joined #ruby
elaptics is now known as elaptics`away
jtharris has quit [Quit: WeeChat 0.4.0]
bigoldrock has quit [Read error: Connection reset by peer]
<linduxed>
gf3: will try that!
havenwood has joined #ruby
<linduxed>
thx, it worked
jamie_ca_ has quit [Quit: Computer has gone to sleep.]