LennyLinux has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
wsterling has joined #ruby
jimg has quit [Remote host closed the connection]
ssvo has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 256 seconds]
jkline has joined #ruby
citizensinspace has quit [Quit: citizensinspace]
Fire-Dragon-DoL has left #ruby [#ruby]
wsterling has quit [Ping timeout: 248 seconds]
mmlac-bv has quit [Quit: mmlac-bv]
DomKM has joined #ruby
mmlac-bv has joined #ruby
geggam has joined #ruby
sroy2 has quit [Read error: Connection reset by peer]
sroy2 has joined #ruby
Fire-Dragon-DoL has joined #ruby
mansi has joined #ruby
kofno has joined #ruby
kofno has quit [Remote host closed the connection]
kofno has joined #ruby
mmlac-bv has quit [Ping timeout: 240 seconds]
krawchyk has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
rgrinberg has joined #ruby
burlyscudd has quit [Quit: Leaving.]
mansi has quit [Ping timeout: 268 seconds]
zeade has quit [Quit: Leaving.]
cooldman224 has joined #ruby
tkuchiki has joined #ruby
zets has joined #ruby
sambao21 has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
jesly has joined #ruby
L8D has quit [Remote host closed the connection]
atyz has quit [Quit: Leaving...]
freeayu has joined #ruby
havenwood has quit [Remote host closed the connection]
ravster has quit [Quit: Leaving.]
slash_nick has quit [Ping timeout: 245 seconds]
icole has quit [Remote host closed the connection]
rupee has quit [Quit: Leaving]
jasonkuhrt has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.1]
burlyscudd has joined #ruby
jesly has quit [Ping timeout: 252 seconds]
jimg has joined #ruby
jdunck has quit [Ping timeout: 260 seconds]
justsee has quit [Ping timeout: 245 seconds]
ahuman_ is now known as ahumane
ahumane is now known as ahuman
Levin_22 has joined #ruby
tommyvyo has quit [Quit:]
jesly has joined #ruby
djbkd has joined #ruby
jdunck has joined #ruby
yshh has joined #ruby
atyz has joined #ruby
timkohrumel has quit [Remote host closed the connection]
geggam_ has joined #ruby
cj3kim has joined #ruby
geggam has quit [Ping timeout: 264 seconds]
byprdct has joined #ruby
MrZYX is now known as MrZYX|off
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
saarinen has quit [Quit: saarinen]
mikepack has joined #ruby
timkohrumel has joined #ruby
cj3kim has quit [Ping timeout: 252 seconds]
cantonic has quit [Quit: cantonic]
blitz has quit [Quit: This computer has gone to sleep]
bigmac has joined #ruby
tommyvyo has joined #ruby
lyanchih has joined #ruby
pootler_ has quit [Ping timeout: 260 seconds]
chxane has quit [Quit: Leaving]
chxane has joined #ruby
buzzybron has joined #ruby
mityaz has quit [Quit: See ya!]
maroloccio has quit [Quit: WeeChat 0.4.0]
mikepack has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
geggam__ has joined #ruby
nfk has quit [Quit: yawn]
Solnse has quit [Remote host closed the connection]
geggam_ has quit [Ping timeout: 260 seconds]
justsee has quit [Ping timeout: 252 seconds]
<RubyPanther>
defined? __FILE__ => "expression"
geggam__ is now known as geggam
amedeiros has joined #ruby
Alina-malina has joined #ruby
chxane has quit [Quit: Leaving]
Aaaarg has quit [Quit: Aaaarg]
shadoi has quit [Quit: Leaving.]
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
thoughtpunch has quit [Remote host closed the connection]
amedeiros has quit [Ping timeout: 268 seconds]
gyre007 has quit [Ping timeout: 264 seconds]
threesome has joined #ruby
amedeiros has joined #ruby
amedeiros has quit [Ping timeout: 264 seconds]
davedev24 has quit [Read error: Connection reset by peer]
amedeiros has joined #ruby
davedev24 has joined #ruby
kasper has quit [Remote host closed the connection]
jesly has quit [Ping timeout: 256 seconds]
Hanmac1 has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
Aaaarg has joined #ruby
Mattx has quit [Read error: Connection reset by peer]
Shirakawasuna has joined #ruby
sevenseacat has joined #ruby
amedeiros has quit [Ping timeout: 248 seconds]
Voodoofish430 has quit [Quit: Leaving.]
viszu has quit [Quit: Leaving.]
bradleyprice has quit [Remote host closed the connection]
Mattix has joined #ruby
amedeiros has joined #ruby
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno has joined #ruby
arya has joined #ruby
thesheff17 has joined #ruby
ssvo has joined #ruby
nilved has joined #ruby
brianpWins has quit [Quit: brianpWins]
mansi has joined #ruby
brennanMKE has quit [Remote host closed the connection]
amedeiros has quit [Ping timeout: 240 seconds]
krz has joined #ruby
buzzybron has quit []
amedeiros has joined #ruby
tommyvyo has quit [Quit:]
mansi has quit [Ping timeout: 264 seconds]
sailias has quit [Read error: Connection reset by peer]
Dekade has quit [Read error: Connection reset by peer]
agjacome has joined #ruby
amedeiros has quit [Remote host closed the connection]
amedeiros has joined #ruby
timkohrumel has quit [Remote host closed the connection]
andres833 has joined #ruby
GeissT has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
ARCADIVS has joined #ruby
AlbireoX has joined #ruby
amedeiros has quit [Ping timeout: 248 seconds]
fomatin has quit [Quit: Computer has gone to sleep.]
amedeiros has joined #ruby
nari has quit [Ping timeout: 252 seconds]
fermion has quit [Quit: Computer has gone to sleep.]
dankest has quit [Quit: Leaving...]
mocfive has quit [Remote host closed the connection]
jimg has quit [Remote host closed the connection]
thams has joined #ruby
fridim_ has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
jimg has joined #ruby
Spooner has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
timkohrumel has joined #ruby
amedeiros has quit [Ping timeout: 260 seconds]
amedeiros has joined #ruby
Domon has joined #ruby
justsee has quit [Ping timeout: 240 seconds]
Norrin has quit [Excess Flood]
pitzips has quit [Ping timeout: 268 seconds]
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
dmiller has quit [Remote host closed the connection]
pkrnj has joined #ruby
poincare1011 has joined #ruby
amedeiros has quit [Ping timeout: 240 seconds]
Norrin has joined #ruby
amedeiros has joined #ruby
DrShoggoth has quit [Quit: Leaving]
mansi has joined #ruby
<RubyPanther>
no problem, gems can just add a line of boilerplate for __dir__ on old rubies: Object.send(:define_method,:__dir__){File.expand_path(File.dirname(__FILE__)) unless __FILE__=~/\A\(.*\)|-.\Z/} if RUBY_VERSION < "2.0.0"
ttt has joined #ruby
gildo has quit [Ping timeout: 256 seconds]
amedeiros has quit [Ping timeout: 264 seconds]
amedeiros has joined #ruby
Levin_22 has quit [Quit: Levin_22]
jimg has quit [Remote host closed the connection]
v0n has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<pontiki>
hmm, so testing this out, i ran it in ROOT/lib/gem_name/, and i got ROOT back
<pontiki>
the expand_path i mentioned
brennanMKE has joined #ruby
cj3kim has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
radic_ has joined #ruby
generalissimo has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
james_ is now known as Guest56356
generalissimo has quit [Remote host closed the connection]
mansi has joined #ruby
bradleyprice has joined #ruby
lyanchih has quit [Quit: lyanchih]
synthetix has joined #ruby
<Inside>
man
<Inside>
f = Hash.new( {} ) has such funky syntax.
blitz has quit [Quit: This computer has gone to sleep]
Treeson has quit [Ping timeout: 252 seconds]
lyanchih has joined #ruby
blitz has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
Chim3ra has joined #ruby
<r0bgleeson>
Inside: remove the whitespace and it isn't bad
<Inside>
hmm?
jesly has quit [Ping timeout: 264 seconds]
ssvo has quit [Ping timeout: 268 seconds]
<Inside>
I mean doing f[:a].update( {c:3} ), for example, doesn't seem to update the value of f at all :P
bradleyprice has quit [Remote host closed the connection]
Chim3ra has quit [Remote host closed the connection]
<Inside>
but it does insert {c:3} into that hash supplied into Hash.new
<Inside>
I sort of understand why it's doing that though
jesly has joined #ruby
<r0bgleeson>
can you show all of your code?
<Inside>
it's literally just that
<Inside>
foo = Hash.new({})
<Inside>
foo[:a].update({b:2})
<Inside>
p foo
sean_s has joined #ruby
<Inside>
(output: {} )
kofno has quit [Remote host closed the connection]
mengu has joined #ruby
kofno has joined #ruby
<ryan_turner>
Hi, Im a beginner to rails. I've made a create method that has @user = User.new(params[:post]), but for some reason the form values is not being dumped into that. The parameters show up properly in the console, but then in the sql insert created from @user.save its all null like the vars aren't there. The form was created using form_for @user do |f| with text fields, labels, and a submitand that local var is being created in the new method
<ryan_turner>
with @user = User.new so, I dont quite know how to troubleshoot why the params are being passed properly but the constructor is not doing anything with em. Advice?
<sevenseacat>
got some code for us to see?
jkline has quit [Quit: jkline]
<Inside>
r0bgleeson: the solution to that is this apparently:
<catphish>
is it possible to use sendto for udp sockets in ruby?
richiebkr has quit [Quit: richiebkr]
fschuindt has joined #ruby
carlyle has joined #ruby
<ryan_turner>
Oh duh, params was grabbing the wrong symbol!
<catphish>
#send seems to do an unwanted extra call
serp` has joined #ruby
Nautilus has joined #ruby
pkrnj has quit [Ping timeout: 268 seconds]
sean_s has quit [Quit: sean_s]
harrymoreno has quit [Ping timeout: 246 seconds]
chrishough has joined #ruby
harrymoreno has joined #ruby
Randomage has quit [Ping timeout: 252 seconds]
pkrnj has joined #ruby
fschuindt has quit [Client Quit]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
<r0bgleeson>
Inside: Hash.new({}) shares a single Hash
<Inside>
Yes, I figured that out
carlyle has quit [Ping timeout: 245 seconds]
zeade has joined #ruby
catphish has quit [Quit: Leaving]
jimg has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
mengu has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
<Nautilus>
anyone around to help a bit of a nix command line newbie? At one time I installed ruby (IIRC), then did "gem install sass" and "gem install compass". I would like to uninstall those at this time (and start over with RVM)
<Nautilus>
(ubuntu 12.04 LTS)
harrymoreno has quit [Ping timeout: 246 seconds]
<Nautilus>
ah, just use 'uninstall' on those. let me try that
f0ster has quit [Remote host closed the connection]
v0n has quit [Read error: Operation timed out]
harrymoreno has joined #ruby
lewix has quit [Remote host closed the connection]
jrhe has joined #ruby
hadees has quit [Quit: hadees]
jrhe has quit [Client Quit]
brichter45 has joined #ruby
io_syl has quit [Ping timeout: 264 seconds]
<Nautilus>
ah that worked great. Now I want to cleanly uninstall Ruby and whatever it might have included. It's been a while, I think I used apt-get. Would someone help me see what Ruby stuff is installed, and clean it up?
rezzack has quit [Quit: Leaving.]
jimg has quit [Ping timeout: 240 seconds]
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat>
whatever you apt-get installed, apt-get remove ?
<Nautilus>
ok, but unsure exactly what I installed.
athst has quit [Quit: athst]
arya has quit [Ping timeout: 248 seconds]
<sevenseacat>
check through your install history?
<sevenseacat>
software center has a history of everything installed
reactormonk has joined #ruby
burlyscudd has quit [Quit: Leaving.]
<Nautilus>
aha, thanks :)
<reactormonk>
in nokogiri, any way to jump to the next `table` node in the current hierarchy?
richiebkr has joined #ruby
ssvo has joined #ruby
arya has joined #ruby
cj3kim has quit [Remote host closed the connection]
hadees has joined #ruby
brichter45 has quit []
timkohrumel has quit [Remote host closed the connection]
f0ster has joined #ruby
<Nautilus>
I found my install history for that day and there's quite a lot of items with ruby in the name... (15). IIRC the primary items were "ruby" and "ruby1.8", but i don't know where to start or if uninstall order is important
kofno has quit [Remote host closed the connection]
jasonkuhrt has quit [Quit: Leaving...]
jasonkuhrt has joined #ruby
jasonkuhrt has quit [Client Quit]
richiebkr has quit [Remote host closed the connection]
<Nautilus>
oh, actually I uninstalle those a few days later and re-installed... ruby1.8, ruby1.8-dev, rubygems, etc. no actual 'ruby'
<sevenseacat>
ruby1.8 is ruby.
<Nautilus>
ok, so that should be what i remove, yes? The rest will follow as dependencies?
<sevenseacat>
no idea.
<sevenseacat>
check what the dependencies are
thetristan has quit [Quit: thetristan]
AlbireoX has quit [Remote host closed the connection]
<havenwood>
seems like a fun project, i'll have to take a look at it again with fresh eyes
jlast has quit [Ping timeout: 246 seconds]
<havenwood>
L8D: Only critique i'd have is avoid unnecessary namespacing - but it looks like you have something planned for Gembots that just doesn't exist yet.
zeade has quit [Quit: Leaving.]
justsee has quit [Ping timeout: 240 seconds]
burlyscudd has quit [Ping timeout: 246 seconds]
dfdf has quit [Remote host closed the connection]
mafolz has joined #ruby
ivanoats has quit [Remote host closed the connection]
<havenwood>
i don't really like the explicit returns at the last line of a method
<havenwood>
i think implicit is more idiomatic Ruby
<havenwood>
L8D: Overall seems pretty solid. Stuck on anything or just still spiking out the code?
Apane has quit [Ping timeout: 268 seconds]
<havenwood>
L8D: Is it going to be playable by command line with the action printed out, or a gui of some sort?
mklappstuhl has joined #ruby
<L8D>
Sorry, was doing something, back
justsee has joined #ruby
<L8D>
Bascially, there will cli board
<L8D>
The arena will be printed out on the clui
<L8D>
cli*
<L8D>
I'm still working on everything though
<havenwood>
curses?
<L8D>
Probably
<L8D>
Though I'm thinking of having more of an API to use the robots
<L8D>
And then have a seperate part that is a pre-made curses arena that uses said API
<L8D>
Do you want to develop it with me?
<havenwood>
L8D: Gosu might be a need lib to implement the gui in.
cj3kim has quit [Read error: Connection reset by peer]
<pranny>
Mon_Ouie: yup.. that makes it complete
cj3kim has joined #ruby
hoyang has quit [Ping timeout: 248 seconds]
jprovazn has joined #ruby
<Paradox>
could play around and use \b and \B or \w and \W
<Paradox>
if you wanna deal with hyphens and commas and shit like that
popl has left #ruby [#ruby]
<pranny>
Thanks guys ! :)
brennanMKE has quit [Ping timeout: 260 seconds]
yashshah has quit [Read error: Connection reset by peer]
girija has left #ruby ["Ex-Chat"]
Fire-Dragon-DoL has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
alex88 has joined #ruby
<Mon_Ouie>
Well, there are still edge cases I can find. When words are longer than the amount of characters you allow (although that shouldn't be a problem in practice), and when text[0, columns] ends exactly with a word (it cuts off one word too many because you need the next character to know if this is the end of a word)
harrymoreno has quit [Quit: harrymoreno]
<Paradox>
also don't try to run the name of tintin through it
<Paradox>
you'll get ""
Banistergalaxy has quit [Ping timeout: 264 seconds]
yashshah has joined #ruby
popl has joined #ruby
jasonkuhrt has joined #ruby
dawkirst has joined #ruby
fuleo has quit [Ping timeout: 252 seconds]
fuleo has joined #ruby
richiebkr has joined #ruby
LarsSmit has joined #ruby
Xeago has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
mafolz has quit [Quit: mafolz]
jasonkuhrt has quit [Ping timeout: 252 seconds]
Dreamer3 has joined #ruby
mafolz has joined #ruby
arya has quit [Ping timeout: 268 seconds]
_Renegade_ has joined #ruby
mafolz has left #ruby [#ruby]
cj3kim has quit [Read error: Connection reset by peer]
_Renegade has quit [Ping timeout: 268 seconds]
_Renegade_ is now known as _Renegade
hoyang has joined #ruby
Fire-Dragon-DoL has quit [Remote host closed the connection]
slash_nick has quit [Ping timeout: 248 seconds]
cj3kim has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
Fire-Dragon-DoL has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
banjara has quit [Quit: Leaving.]
richiebkr has quit [Quit: richiebkr]
ericmathison has quit [Ping timeout: 240 seconds]
tonini_ has joined #ruby
MrZYX|off is now known as MrZYX
charliesome has joined #ruby
jds_ has quit [Remote host closed the connection]
niceguyjames has joined #ruby
stkowski has quit [Quit: stkowski]
Criztian has joined #ruby
aspiers_ has quit [Ping timeout: 260 seconds]
tonini has quit [Ping timeout: 248 seconds]
emanon_ has joined #ruby
mahmoudimus has joined #ruby
dfdf has quit [Remote host closed the connection]
arya has joined #ruby
apeiros has joined #ruby
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<emanon_>
Found out a funny idea of instantiating a Hash object where :function => lambda will be stored
cj3kim has quit [Remote host closed the connection]
blitz has quit [Quit: This computer has gone to sleep]
vlad_starkov has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<emanon_>
Something like this Object = { function: ->() { puts "implementing..." } }
<emanon_>
Object[:function].()
vlad_starkov has joined #ruby
burlyscudd has joined #ruby
<Xeago>
don't overwrite Object thi..
Shirakawasuna has quit [Quit: Leaving]
troessner has joined #ruby
slainer68 has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
mklappstuhl has quit [Remote host closed the connection]
tonini has joined #ruby
lsmola has quit [Ping timeout: 268 seconds]
<Nom->
Hey guys... anyone know a good library for doing timing on a method? I'd like to capture how long it takes for a particular method to execute, but make it pluggable so I can attach it to any method without substantial code changes
banisterfiend has joined #ruby
Proshot has joined #ruby
BizarreCake has joined #ruby
lsmola has joined #ruby
mklappstuhl has joined #ruby
Randomage has quit [Read error: Connection reset by peer]
marr has joined #ruby
Randomage has joined #ruby
Zai00 has joined #ruby
brtdv has joined #ruby
filipe has quit [Ping timeout: 276 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
tatsuya_o has joined #ruby
MrZYX is now known as MrZYX|off
zigomir has quit [Quit: zigomir]
lsmola has quit [Ping timeout: 252 seconds]
lsmola has joined #ruby
vlad_starkov has joined #ruby
hawtin has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
tylersmith has joined #ruby
Kar- has joined #ruby
timonv has joined #ruby
lsmola_ has joined #ruby
benlieb has quit [Quit: benlieb]
lsmola has quit [Read error: Operation timed out]
himsin has quit [Quit: himsin]
burlyscudd has joined #ruby
chichou has joined #ruby
himsin has joined #ruby
MrZYX|off is now known as MrZYX
lsmola_ has quit [Client Quit]
jds has joined #ruby
lsmola has joined #ruby
m00nlight has quit [Quit: No Ping reply in 180 seconds.]
m00nlight has joined #ruby
nomenkun has joined #ruby
tylersmith has quit [Ping timeout: 264 seconds]
freeayu has quit [Ping timeout: 256 seconds]
freeayu__ has joined #ruby
filipe has joined #ruby
burlyscudd has quit [Ping timeout: 260 seconds]
Rizzle has quit [Read error: Connection reset by peer]
Rizzle has joined #ruby
jds has quit [Ping timeout: 252 seconds]
jbpros has quit [Quit: jbpros]
<mwlang>
Nom-: ruby benchmark
sevenseacat has quit [Quit: Leaving.]
ryan_turner has quit [Ping timeout: 260 seconds]
ryan_turner has joined #ruby
lunarjar has quit [Ping timeout: 252 seconds]
girija has quit [Ping timeout: 252 seconds]
eka has joined #ruby
lunarjar has joined #ruby
nari has quit [Ping timeout: 260 seconds]
jastix has joined #ruby
byprdct has quit [Ping timeout: 268 seconds]
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has quit [Remote host closed the connection]
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
dagobah has quit [Read error: Operation timed out]
dagobah has joined #ruby
senayar_ has joined #ruby
Aaaarg has joined #ruby
lunarjar has quit [Ping timeout: 260 seconds]
girija has joined #ruby
senayar_ has quit [Remote host closed the connection]
senayar has quit [Read error: Connection reset by peer]
senayar has joined #ruby
cookcode has joined #ruby
filipe has quit [Ping timeout: 268 seconds]
adambeynon has joined #ruby
<Xeago>
date - date returns a rational right?
<Xeago>
how do I interpret that rational?
nari has joined #ruby
<Xeago>
banisterfiend: would you make me a styling thing in pry to give irb_rocket style?
amedeiros has quit [Read error: Operation timed out]
persand has quit [Quit: persand]
Hanmac2 has joined #ruby
<cowbacon>
Hello. I've completed the lectures at codecadamey and was wondering where you suggest i look now to continue to learn the ruby language. I was thinking of doing some simple web dev with it but mosly I'll be using ruby for linux sys admin work
<popl>
cowbacon: read design patterns with ruby
<MrZYX>
cowbacon: find a repetitive task you do daily to weekly and try to further automate it using ruby
amedeiros has joined #ruby
<MrZYX>
if you already have some shell script try to replace it, just for learning experience
Hanmac1 has quit [Ping timeout: 268 seconds]
F1skr has joined #ruby
<cowbacon>
popl: alright, ty. i'll go look it up
<cowbacon>
MrZYX: thats a good idea, i'll def try that too
jimg_ has joined #ruby
haxrbyte has quit [Ping timeout: 264 seconds]
jbpros has quit [Quit: jbpros]
staafl has joined #ruby
viszu has quit [Quit: Leaving.]
kasper has quit [Remote host closed the connection]
amedeiros has quit [Ping timeout: 264 seconds]
mwlang has quit [Quit: mwlang]
hogeo has joined #ruby
lkba has joined #ruby
amedeiros has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
sayan has quit [Read error: Connection reset by peer]
ditto572 has joined #ruby
camilasan has joined #ruby
ToApolytoXaos has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
atyz has joined #ruby
camilasan has quit [Remote host closed the connection]
iamjarvo has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
matled- has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
amedeiros has quit [Ping timeout: 252 seconds]
DrCode has quit [Ping timeout: 240 seconds]
matled has quit [Read error: Connection reset by peer]
matled- is now known as matled
amedeiros has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
amedeiros has quit [Read error: Connection reset by peer]
popl has quit [Quit: "People remain what they are even if their faces fall apart."]
rdark has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Remote host closed the connection]
Kabaka has joined #ruby
amedeiros has quit [Ping timeout: 268 seconds]
arya_ has joined #ruby
rdark has joined #ruby
cads has quit [Read error: Operation timed out]
rippa has quit [Ping timeout: 248 seconds]
ndngvr has joined #ruby
arya has quit [Ping timeout: 264 seconds]
LarsSmit has quit [Quit: Leaving.]
atno__ has quit [Ping timeout: 252 seconds]
staafl_alt has joined #ruby
rdark has quit [Ping timeout: 246 seconds]
lyanchih has joined #ruby
ttt has joined #ruby
ttt_ has quit [Read error: Connection reset by peer]
pskosinski has joined #ruby
hoyang has quit [Quit: 离开]
staafl has quit [Ping timeout: 240 seconds]
snearch has joined #ruby
mansi has joined #ruby
jacktrick has joined #ruby
TIJ has joined #ruby
joshu has quit [Quit: Bye.]
kasper has joined #ruby
Spooner has joined #ruby
LarsSmit has joined #ruby
<il_of>
an easy way to delete the first null bytes in an hex string. Example: "00F4F2" --> "F4F2" or "0000F4F2" --> "f4f2"
coco_was_banned has joined #ruby
<coco_was_banned>
who came up with the implementation of currying in ruby?
arya_ has quit [Ping timeout: 246 seconds]
<Spooner>
il_of, "00F4f0".gsub(/\A0+/, '')
<Spooner>
They aren't "null bytes" though. They are leading zeroes ;)
tylersmith has joined #ruby
<Spooner>
Oh, no,. they are. Wasn't concentrating there :$
<coco_was_banned>
evaluating the proc as soone as all arguemntes are present ist sutpid in a non functional language with extensive side effects -_-
burlyscudd has joined #ruby
kofno has joined #ruby
<Spooner>
coco_was_banned, When should it be evaluated other than when all args are present?
Domon has joined #ruby
arya has joined #ruby
<coco_was_banned>
Spooner: currying should again result in a function
<coco_was_banned>
imho
tylersmith has quit [Ping timeout: 252 seconds]
buzzybron has quit [Quit: Leaving.]
<coco_was_banned>
and evaluation should take place once this function is called
<Spooner>
Oh, you mean that you should be able to curry a 3-arg method 3 times and then it can be called without any args at all?
burlyscudd has quit [Ping timeout: 246 seconds]
ArchBeOS has quit [Ping timeout: 252 seconds]
rdark has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
xeviox has joined #ruby
<coco_was_banned>
Spooner: exactly
<coco_was_banned>
I was sooo happy that I finally found a uscase for currying (passing a curried block to a library function) but then...
<coco_was_banned>
no can do
pootler__ has quit [Ping timeout: 264 seconds]
<zomg>
coco_was_banned: if you want uses for currying, use a functional programming language =)
<zomg>
they utilize it much more
atno has joined #ruby
azerton has joined #ruby
<coco_was_banned>
zomg: I know
<coco_was_banned>
zomg: i was just happy to finally finde a nice usecase for currying in ruby
<coco_was_banned>
what good is a feature that only makes sense in another language?
<zomg>
hehe
<xeviox>
hi guys, I've created an app using ruby 2.0.0. Now I want to run it on a server only offering ruby 1.8.7 and a first problem occurred. I use "Integer(some_string, 10)" to convert my integers. But the second paramter is not available in ruby 1.8.7. Is it possible add it somehow (e. g. default to the single parameter version) ?
<zomg>
People implement currying in JavaScript too and tbh I haven't had much use for it there either
<coco_was_banned>
zomg: sure sure, its a nice execise and everything
ramblex has joined #ruby
<Spooner>
xeviox, 10 is the default, but presumably you want to parse a different base?
<xeviox>
Spooner: no, the problem is the constructor "Integer(string, base)" is not available in ruby 1.8.7
pothibo has quit [Quit: pothibo]
niceguyjames has quit [Quit: Computer has gone to sleep.]
postmodern has quit [Quit: Leaving]
<xeviox>
so I wondered if its possible to add it and just use the single parameter constructor ..
<Spooner>
Yes, but Integer() doesn't necessarily need a base. If the number starts with a 0, it assumes oct. starts with 0x, hex, otherwise decimal. So you could work around it.
zets has quit [Ping timeout: 246 seconds]
apod has quit [Quit: apod]
rdark has quit [Ping timeout: 268 seconds]
<Spooner>
You could use string.to_i(base) instead, though that will generate 0 if the string isn't really a number.
<Spooner>
Integer() will explode with a bad string.
<xeviox>
jup, but that's what I don't want ^^
<xeviox>
maybe I should go with a little helper .. is it possible to check if a certain ctor is available?
boblu has quit [Ping timeout: 260 seconds]
rdark has joined #ruby
Domon has quit [Remote host closed the connection]
<Spooner>
You could match the string with /\A\d+\Z/ first and use str.to_i(base)
verto has joined #ruby
beilabs_ has joined #ruby
<xeviox>
just thought there might be a quick workaround that doesn't force me to change the existing code ..
<xeviox>
thanks
<MrZYX>
xeviox: just pointing out that 1.8 is EOL and the real solution is to update the servers ruby
umttumt has quit [Remote host closed the connection]
nari has quit [Ping timeout: 260 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
<xeviox>
MrZYX: jup, but that's always a little hazzle, isn't it? ^^
ntus1017 has quit [Remote host closed the connection]
<MrZYX>
largely depends on the servers OS and the already running application
<MrZYX>
s
joshu has joined #ruby
<MrZYX>
and how ruby is installed
umttumt has joined #ruby
tacos1de has joined #ruby
mansi has quit [Remote host closed the connection]
<MrZYX>
In most cases I'd consider it less of a hazzle than backporting working code to an now unsupported version. That is basically introducing security issues into a software on purpose
mansi has joined #ruby
beilabs_ has quit [Ping timeout: 240 seconds]
<xeviox>
other question, how is "Integer(...)" implemented?
<MrZYX>
should be a method
<xeviox>
it's not the ctor as I thought first (didn't think of the missing new)
<xeviox>
ok, so if I want to add a method to kernel, should I extend kernel or object?
<xeviox>
object
<xeviox>
right?
robustus has quit [Ping timeout: 252 seconds]
moos3 has joined #ruby
<MrZYX>
you want to extend kernel and therefore extend object? sounds a bit silly :)
<xeviox>
I wasn't sure if there is actually a class called "kernel" ..
chichou has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 260 seconds]
camilasan has joined #ruby
<MrZYX>
module Kernel; def my_shiny_method; "yay"; end; end; But! In most cases you want to wrap your application/library into a module MyApplication which is also a good place for such functions
<MrZYX>
eh, methods
robustus has joined #ruby
timonv has quit [Remote host closed the connection]
haxrbyte has joined #ruby
<MrZYX>
so be really careful with extending Kernel, avoid it as long as you can
haxrbyte has quit [Remote host closed the connection]
krisfremen has joined #ruby
krisfremen has joined #ruby
krisfremen has quit [Changing host]
haxrbyte has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
kil0byte has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
senayar_ has joined #ruby
rovert has joined #ruby
razi has quit [Quit: Leaving.]
d4x has quit [Ping timeout: 240 seconds]
kil0byte_ has quit [Ping timeout: 248 seconds]
<Spooner>
You are best off extending the module/class that Integer() is being called in, to prevent side effects where else it is used.
<MrZYX>
and wrap the whole thing into a if RUBY_VERSION
<Spooner>
Yeah, but the intention is to not alter existing code (you could monkey-patch the new Integer in).
senayar_ has quit [Remote host closed the connection]
haxrbyte has quit [Read error: Connection reset by peer]
senayar has quit [Ping timeout: 276 seconds]
senayar has joined #ruby
ArchBeOS has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
Brando753 has quit [Ping timeout: 264 seconds]
timmow has quit [Read error: Connection reset by peer]
d4x has joined #ruby
matthewrobbins has joined #ruby
nalaginrut has quit [Ping timeout: 268 seconds]
timmow has joined #ruby
thams_ has joined #ruby
lyanchih has quit [Ping timeout: 264 seconds]
ttt has quit [Remote host closed the connection]
ArchBeOS is now known as enroxorz
Brando753 has joined #ruby
thams has quit [Ping timeout: 240 seconds]
thams_ is now known as thams
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
kenmaz has joined #ruby
enroxorz is now known as ArchBeOS
chichou has joined #ruby
osvico has joined #ruby
Dekade has joined #ruby
ldnunes has joined #ruby
lyanchih has joined #ruby
kenmaz has quit [Ping timeout: 248 seconds]
rafb3 has joined #ruby
<lupine>
if I want a pure-ruby, cross-platform gui toolkit, what am I looking at?
Aaaarg has quit [Quit: Aaaarg]
Elhu has joined #ruby
<lupine>
we have a qt gui at the moment but it doesn't package nicely under mac and smoke is insane
persand has joined #ruby
<tagrudev>
lupine, try at ruby toolbox :)
<lupine>
already there :)
rdark_ has joined #ruby
<lupine>
it doesn't distinguish between pure-ruby and not
Maoko has joined #ruby
rfizzle has joined #ruby
<lupine>
I may well be asking the impossible, of course. seems shoes has native extensions too
jonathanwallace has quit [Quit: WeeChat 0.4.0]
lkba has joined #ruby
jonathanwallace has joined #ruby
ntus1017 has joined #ruby
rdark has quit [Ping timeout: 264 seconds]
jonathanwallace has quit [Client Quit]
io_syl has joined #ruby
gyre007 has joined #ruby
rdark_ has quit [Read error: Operation timed out]
rdark has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
Mattix has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
tylersmith has joined #ruby
TIJ has quit [Quit: Konversation terminated!]
relix has joined #ruby
TIJ has joined #ruby
ditto572 has quit [Ping timeout: 256 seconds]
burlyscudd has joined #ruby
mklappstuhl has joined #ruby
jbpros has joined #ruby
nari has joined #ruby
<Spooner>
Pure ruby can't really work for a gui (well, I suppose you could FFI something, but that would still need binaries).
matthewrobbins has quit [Ping timeout: 248 seconds]
relix has quit [Client Quit]
tylersmith has quit [Ping timeout: 264 seconds]
arya has quit []
eliqtrope has quit [Quit: Page closed]
osvico has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Quit: bye]
mark_locklear has joined #ruby
<Spooner>
Maybe you should be asking: What Gui toolkit can we get nicely into a .app on OSX?
jonathanwallace has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
burlyscudd has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
timonv has joined #ruby
<Spooner>
In which case, Releasy might help you out.
<Spooner>
at lupine ^^
<lupine>
Spooner, cross-platform? :)
<lupine>
oh, I seeee
ryannielson has joined #ruby
ArchBeOS is now known as enroxorz
yalue has joined #ruby
Cyrus has quit [Quit: Cyrus.sleep()]
<lupine>
Spooner, unfortunately, "Building OS X apps on non-OS X systems will not currently work with compiled gems at all (other than Gosu, Chipmunk & TexPlay)." is a no-go for us
pyrac has joined #ruby
<Spooner>
Right, so you need to build an OSX app on a non-OSX platform. You are exposing hidden requirements at quite a rate ;)
konr has quit [Remote host closed the connection]
patbr0wn has joined #ruby
<lupine>
we can already build an OSX app on a non-OSX platform, as long as it hasn't got any native gems
<Spooner>
lupine, It will work with binary gems (assuming they are already compiled for OSX). Just won't compile for you.
<Spooner>
OK.
<lupine>
mm, qtbindings, which is what we have right now, isn't
<lupine>
they precompile for windows, which is kind of them
mklappstuhl has quit [Ping timeout: 260 seconds]
davedev24 has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
<Spooner>
Yeah, that is usual.
lyanchih has quit [Ping timeout: 252 seconds]
<lupine>
mac's dynamic linker really rather gets in the way when trying to compile it for redistribution into a .app, even if you're doing the compilation on a mac
dhruvasagar has quit [Ping timeout: 256 seconds]
<lupine>
I spent several days with a built qtbindings-mac gem, unsuccessfully
davedev24 has joined #ruby
kil0byte has quit [Ping timeout: 276 seconds]
pyrac has quit [Ping timeout: 252 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
<lupine>
we currently build the cli and gui parts of the application into a .tar for unices, .deb, .rpm and a nullsoft installer .exe - all from linux
<lupine>
we then build the cli part of the application into a .app, Just For Mac#
<MarcWeber>
woodbridge: If there are any additional questions: I'm on linux. But I guess your bug report is enough for the devs to reporudce the problem.
dr_bob has quit [Quit: Leaving.]
<nettoweb>
MarcWeber: did you see my queston? do u know how I must procced?
mikewintermute has quit [Quit: mikewintermute]
krawchyk_ has joined #ruby
<woodbridge>
MarcWeber: ok. I'll add a note about linux
<il_of>
not the literal "}\365\037". Is there a way to get that ?
fomatin has joined #ruby
jerius has quit [Ping timeout: 264 seconds]
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
relix has joined #ruby
kobain has joined #ruby
shambat has joined #ruby
zomg has left #ruby [#ruby]
<shambat>
is there a dedicated Rails channel?
<Mon_Ouie>
Yes, #rubyonrails
<wuest>
il_of: String#inspect is probably what you're looking for.
<il_of>
Spooner: wuest let me see ...
<il_of>
thank you
viszu has quit [Quit: Leaving.]
rdark has quit [Ping timeout: 240 seconds]
Spooner_ has joined #ruby
TIJ has quit [Read error: Connection reset by peer]
scrollback has quit [Remote host closed the connection]
TIJ has joined #ruby
pothibo has joined #ruby
Spooner_ has quit [Client Quit]
scrollback has joined #ruby
redgirl has joined #ruby
jtharris has joined #ruby
rdark has joined #ruby
girija has quit [Ping timeout: 248 seconds]
sobering has joined #ruby
<shambat>
Looking for a Rails console way to make an ActiveRecord query that joins tables. Is it possible to use Rails magic to get the relations automatically or should I just use the joins() method?
laitances14 has joined #ruby
krawchyk has joined #ruby
<banisterfiend>
Shambat: join #rubyonrails
<shambat>
banisterfiend: thanks!
yashshah has quit [Read error: Connection reset by peer]
yashshah has joined #ruby
<il_of>
wuest: from irb. If I type: value I get "}\365\037"
TIJ has quit [Client Quit]
<sobering>
Hey guys, annoying encoding problem here. I have a piece of XML that looks like this: http://pastebin.com/yQPbzfZP
JustinAiken has quit [Quit: Leaving.]
<sobering>
It's ISO-8859-1 encoded. I can't get the special characters to display properly for the life of me, despite trying every technique I could find to encode the string to UTF-8
<il_of>
but with print value.inspect I get "}\xF5\x1F"
<ellipse>
Did you try .encode?
<sobering>
Yup, tried .encode, the characters still display weird.
dhruvasagar has joined #ruby
<sobering>
Current attempt: @sites = Document.new(f.read.encode("UTF-8"))
<wuest>
il_of: 0xF5 == 0365
<ellipse>
il_of: That data isn't encoded.
krawchyk_ has quit [Ping timeout: 276 seconds]
niceguyjames has quit [Quit: Computer has gone to sleep.]
<il_of>
yes, but I need the 0xF5 form
Neomex has joined #ruby
<ellipse>
Only the literal character is, not how you created it.
Neomex has quit [Client Quit]
generalissimo has quit [Remote host closed the connection]
<ellipse>
p str
sethetter has left #ruby [#ruby]
<il_of>
let me see
girija has joined #ruby
<ellipse>
Does Ruby know the string is ISO-8859-1 to start with?
burlyscudd has quit [Quit: Leaving.]
niceguyjames has joined #ruby
RORgasm_ has quit [Read error: Connection reset by peer]
gasbakid has quit [Ping timeout: 264 seconds]
RORgasm has joined #ruby
<sobering>
ellipse: are you talking to me? If so, I opened the file like so: File.open("siteList.xml", "r:ISO-8859-1")
gasbakid has joined #ruby
krz has quit [Quit: krz]
<ellipse>
Hmm. Weird. Are you sure the issue isn't with your terminal?
rafb3 has joined #ruby
rhys has joined #ruby
_irc__ has joined #ruby
<_irc__>
Hi everyone
rovert has quit [Quit: Leaving]
carloslopes has joined #ruby
<sobering>
The chars don't display properly in my terminal or in my browser
<sobering>
So strange.
steamboy has joined #ruby
<ellipse>
Do they display properly in ISO-8859-1?
cmarques has joined #ruby
<ellipse>
i.e. Does the problem originate in reencoding?
rafb3 has quit [Read error: Connection reset by peer]
<sobering>
Let me double check really quickly. Tried so many options I don't remember the output of each attempt
<il_of>
wuest: nothing :(
devoldmx has joined #ruby
dpritchett has joined #ruby
rafb3 has joined #ruby
<il_of>
I need the hex format with 0xF5
<il_of>
I was taking a look if inspect sopport more methods
fomatin has quit [Quit: Computer has gone to sleep.]
devoldmx3 has joined #ruby
devoldmx3 has quit [Remote host closed the connection]
devoldmx27 has joined #ruby
kokobaby_ has joined #ruby
carlyle has joined #ruby
mansi has joined #ruby
<ellipse>
"0x%02X" % chr.ord
senayar has quit [Remote host closed the connection]
marwinism has quit [Ping timeout: 245 seconds]
_irc__ has quit [Client Quit]
<sobering>
If I read the file and output it directly to the terminal without encoding to UTF-8, it writes a bunch of question marks in diamonds, however when I encode it to UTF-8 and output it, instead of question marks in diamonds I get a bunch of question marks and 1/2 characters ½
Schmidt has quit [Ping timeout: 246 seconds]
gazarsgo has joined #ruby
<wuest>
il_of: super dirty and hacky but should get you started.
<wuest>
il_of: no prob; hope it helps you find a good solution. :)
<ellipse>
What is your terminal encoding btw?
d4x has quit [Ping timeout: 240 seconds]
akells` has quit [Remote host closed the connection]
<sobering>
Terminal encoding is UTF-8
<ellipse>
Try just to UTF-8.
akells` has joined #ruby
<sobering>
Still a no go. Damn this is frustrating
johnnyfuchs has joined #ruby
tagrudev has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
<wuest>
sobering: are you getting invalid char errors? That's the only reason to force encoding to ASCII and then convert to UTF-8, of which I am aware.
<ellipse>
I've no idea.
<sobering>
Haven't ran into an invalid char error yet
steamboy has quit [Remote host closed the connection]
steamboy has joined #ruby
<sobering>
I'll whip up a quick pastebin that might help show some of my results
<ellipse>
Ask wuest. He seems to know more about encoding than I do.
<Mon_Ouie>
What does your_string.encoding tells you? and `#valid_encoding?'?
umttumt has quit [Remote host closed the connection]
philcrissman_ has quit [Remote host closed the connection]
<wuest>
ellipse: Yeah, I've had invalid encodings wreck my days too many times in the past :)
pootler_ has quit [Ping timeout: 256 seconds]
fomatin has joined #ruby
<sobering>
If I don't specify external encoding as ISO-8859-1 when I read the file, .encoding returns "UTF-8"
DonRichie has quit [Read error: Connection reset by peer]
<ericwood>
wuest: good guess, though, that's probably what I would have guessed as well :P
<wuest>
ericwood: Does it corrupt EIP?
synthetix has quit [Read error: Operation timed out]
<ericwood>
wuest: idk what that is
<ericwood>
maybe?
devoldmx27 has quit [Ping timeout: 246 seconds]
agjacome has joined #ruby
devoldmx has joined #ruby
atno has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
Uranio has quit [Quit: while you reading this, a kitty dies]
<Mon_Ouie>
If I download your previous snippet and print it as UTF-8 it seems to work properly (but maybe that has to do with how copy-pasting/your browser/etc. dealt with encoding)
<ericwood>
hmmm you can't redirect the output of pbpaste in OS X :(
<sobering>
I'll try copying my snippet and reading it and see what happens
<Mon_Ouie>
Well, the XML parser might choke on it anyway because of the encoding="ISO-8859-1" bit. Does printing the string work properly though?
<sobering>
Even printing the string doesn't work :\
senayar_ has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
<ericwood>
what have you done?!?!
<sobering>
Hmm If I copy the xml from my pastebin it works fine. baaaah
<ericwood>
I copy-pasted the string into ruby and it works :P
persand has quit [Quit: persand]
araujo has quit [Ping timeout: 276 seconds]
<sobering>
The browser still displays it a bit weird but it shows up correctly in the term
<ericwood>
just take that copied XML, paste it into a document and save it
<ellipse>
Some browser magic no doubt.
AlSquire has joined #ruby
<wuest>
sobering: time to inspect the xml via xxd to see where the errant byte is.
haxrbyte has joined #ruby
<sobering>
This is definitely going to be an interesting challenge. I have ~800 xml files that need to be parsed and manipulated all encoded like this, haha
<ryan_turner>
In rails, I have a model that I'm trying to make a method define some values that would previously be nil. I've got the symbols listed under attr_accessible. What's the right way to update those? :name = blah? self.name = blah? @name = blah? I keep getting undefined method errors when I try any of those.
<_br_>
"--team-identifier [TEAM]" would not bark at you with ./myprogram -t
tkuchiki has quit [Remote host closed the connection]
sobering has left #ruby [#ruby]
Appineer has joined #ruby
d4x has quit [Changing host]
d4x has joined #ruby
d4x has left #ruby [#ruby]
Cyrus has quit [Quit: Cyrus.close()]
ngoldman has joined #ruby
persand has joined #ruby
jesly2 has quit [Ping timeout: 264 seconds]
Guga_ has joined #ruby
emmanuelux has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
kokobaby has joined #ruby
arturaz has quit [Ping timeout: 264 seconds]
Apane has quit [Ping timeout: 240 seconds]
jpsirois has joined #ruby
pitzips has quit [Ping timeout: 268 seconds]
ravster has joined #ruby
jrhe has joined #ruby
cafk_ has quit [Remote host closed the connection]
JohnBat26 has quit [Ping timeout: 240 seconds]
carlyle has joined #ruby
jonathanwallace has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
hogeo has joined #ruby
MrZYX is now known as MrZYX|off
<Uranio>
anybode used twitter gem behind a proxy?
<_br_>
d(^.^)p \/
brtdv has joined #ruby
jesly has joined #ruby
yshh has quit [Remote host closed the connection]
johnrlive has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
kindjal has joined #ruby
azerton has joined #ruby
<_br_>
Uranio: Why, any problems?
kenmaz has joined #ruby
JohnBat26 has joined #ruby
jkline has quit [Quit: jkline]
paul_k has joined #ruby
MrZYX|off is now known as MrZYX
rupee has joined #ruby
dagobah has quit [Remote host closed the connection]
hogeo has quit [Ping timeout: 276 seconds]
jdunck has joined #ruby
bigoldrock has quit [Quit: Leaving.]
Neomex has joined #ruby
arietis has joined #ruby
banjara has joined #ruby
pskosinski has quit [Remote host closed the connection]
kenmaz has quit [Ping timeout: 256 seconds]
sayan has joined #ruby
tylersmith has joined #ruby
tomsthumb has joined #ruby
Hare has quit [Quit: Page closed]
binaryplease has quit [Read error: Operation timed out]
rezzack has joined #ruby
Zai00 has quit [Quit: Zai00]
`MArceLL` has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
geggam has quit [Ping timeout: 264 seconds]
twoism has joined #ruby
nikeita has joined #ruby
freerobby has joined #ruby
redgirl_ has quit [Read error: Connection reset by peer]
redgirl_ has joined #ruby
apod has joined #ruby
mrsolo has joined #ruby
baordog has joined #ruby
kokobaby has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
jasonkuhrt has quit [Quit: Leaving...]
chrishough has quit [Quit: chrishough]
nikeita has quit [Client Quit]
wsterling has quit [Remote host closed the connection]
nikeita has joined #ruby
kokobaby has joined #ruby
mahmoudimus has joined #ruby
geggam has joined #ruby
wsterling has joined #ruby
poincare1011 has joined #ruby
jacobw has joined #ruby
DanKnox_away is now known as DanKnox
poincare101 has quit [Ping timeout: 268 seconds]
atyz has joined #ruby
jesly has quit [Ping timeout: 276 seconds]
athst has joined #ruby
apod has quit [Quit: apod]
mgorbach has quit [Quit: Leaving...]
sayan has quit [Ping timeout: 256 seconds]
mocfive has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
franzliedke has joined #ruby
flak has joined #ruby
jonathanwallace has joined #ruby
ellipse has quit [Quit: Bye]
flak is now known as Guest81003
jonahR has joined #ruby
browndawg has left #ruby [#ruby]
harrymoreno_ has joined #ruby
chrishough has joined #ruby
<rfizzle>
How to do transactions with Datamapper?
harrymoreno has quit [Ping timeout: 276 seconds]
rippa has quit [Ping timeout: 248 seconds]
ramblex has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Leaving...]
<_br_>
rfizzle: Transactions? Huh? #save ?
Guest81003 is now known as rippa
danslo has quit [Quit: danslo]
<rfizzle>
I am reading a file and storing each line in the database. It's taking forever. SQLite3. I think I have to do a transaction block. But I can't seem to find an example
<rfizzle>
80,000 lines
harrymoreno_ has quit [Ping timeout: 256 seconds]
jesly has joined #ruby
jalcine has joined #ruby
tvw has quit [Ping timeout: 268 seconds]
rdark has quit [Quit: leaving]
tommyvyo has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby
harrymoreno has joined #ruby
ssvo has joined #ruby
freerobby has quit [Quit: Leaving.]
Coffers has joined #ruby
<_br_>
rfizzle: Create all objects in-memory with #new, stuff into array, and then finally iterate over them with #save! (note the bang).
Al__ has quit [Quit: Al__]
ngoldman has quit [Remote host closed the connection]
Al__ has joined #ruby
zigomir has joined #ruby
tomsthumb has left #ruby [#ruby]
Coffers has quit [Client Quit]
kadoo has joined #ruby
zigomir has quit [Client Quit]
emmanuelux has quit [Quit: emmanuelux]
sventon has quit [Remote host closed the connection]
<Uranio>
_br_ yeah, nothing is working
ngoldman has joined #ruby
jesly has quit [Ping timeout: 252 seconds]
<_br_>
Uranio: What proxy are you using? Is the proxy working correctly?
dhruvasagar has quit [Ping timeout: 256 seconds]
<rfizzle>
This was what it is - http://pastebin.com/nHLCySuh So you're saying replace create with new, add to array, then save?
sambao21 has joined #ruby
<Uranio>
_br_: yeah, proxy's work fine with everything
byprdct has joined #ruby
<Uranio>
but with the twitter gem, it sayd 407
mgorbach has joined #ruby
dhruvasagar has joined #ruby
<Uranio>
gem do not send any auth data
freerobby has joined #ruby
<Uranio>
I'm tried EVERYTHING
interactionjaxsn has quit [Remote host closed the connection]
<popl>
Uranio: Have you tried standing on your head and clucking like a chicken?
Al__ has quit [Quit: Al__]
<Uranio>
Twitter.connection_options[:proxy]= (a lot of diferent things here)
scottdware has joined #ruby
interactionjaxsn has joined #ruby
<Uranio>
popl: hummm... nop...
<Uranio>
shall that work?
<popl>
I don't know, I've never tried it.
<_br_>
rfizzle: I would do it that way.
<_br_>
(if each line needs to be a row)
denver has quit [Remote host closed the connection]
scottdware has left #ruby [#ruby]
sayan has joined #ruby
<_br_>
Uranio: What ports are you proxying?
spinagon has joined #ruby
swordsmanz has quit [Ping timeout: 252 seconds]
<Uranio>
3128 Sr.
<Uranio>
with the enviroment variable it should work but return 407, but.. just now
<Uranio>
diabled it ENV['http_proxy']=nil
<Uranio>
use proxychains and it work
<Uranio>
but that very VERY dirty solution
dhruvasagar has quit [Ping timeout: 240 seconds]
jibi has joined #ruby
<Uranio>
_br_: please, try it, in debug mode and pastebin it...
<Uranio>
sorry... that was for the troll
interactionjaxsn has quit [Ping timeout: 256 seconds]
<Uranio>
wrong nick
alex__c2022 has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
<Uranio>
_br_: it is working with proxychains now.. I asked to sferik (the developer), thanks anyway for you help
<_br_>
Uranio: You didn't properly forward the ports via the proxy. Anyway, good that it works.
<Uranio>
_br_: beleive me... I even use Net::HTTP with the same data doing this: Net::HTTP=Net::HTTP::Proxy('192.168.1.1',3128,',myuser','mypass')
<Uranio>
and it work with everey gem that use Net:HTTP
replay has joined #ruby
jasonkuhrt has joined #ruby
GaryOak_ has joined #ruby
scottdware has joined #ruby
<_br_>
Uranio: Interesting, well, hope you have no further issues with using proxychains ..
fomatin has quit [Quit: Computer has gone to sleep.]
jastix has quit [Quit: Leaving]
kirun has joined #ruby
franzliedke has quit [Remote host closed the connection]
scottdware has quit [Remote host closed the connection]
sideshowcoder has quit [Read error: Operation timed out]
F1skr has quit [Ping timeout: 260 seconds]
<popl>
Uranio: Please don't try to /msg people without asking them. Some people might not like it.
Hanmac has joined #ruby
scottdware has joined #ruby
marr has joined #ruby
_serial_ has joined #ruby
<Uranio>
popl: do not troll peoples, Some people might not like it
<Uranio>
not my case
Uranio has quit [Quit: while you reading this, a kitty dies]
<_br_>
Wth. Very unfriendly person.
alvaro_o has joined #ruby
azerton has quit [Quit: azerton]
Neomex has quit [Quit: Neomex]
<popl>
Luckily I have my +g
ngoldman has quit [Remote host closed the connection]
<pontiki>
that's what happens when you come in knowing the answers to your problem will all be wrong
scottdware has quit [Remote host closed the connection]
brtdv has quit [Quit: brtdv]
<popl>
_br_: Last week someone trolled me by trying to login to my account via nickserv.
icole has joined #ruby
<popl>
They ended up trying it over 600 times (I forgot the exact number).
_serial_ has quit [Quit: Ex-Chat]
zeade has joined #ruby
<_br_>
popl: Excellent, I hate such people :( Pretty uncool.
tommyvyo has joined #ruby
CaptainKnots has joined #ruby
CaptainKnots has quit [Changing host]
CaptainKnots has joined #ruby
jesly has joined #ruby
dhruvasagar has joined #ruby
sideshowcoder has joined #ruby
DomKM has quit [Quit: Leaving.]
jprovazn has joined #ruby
fermion has joined #ruby
fomatin has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
_serial_ has joined #ruby
geggam has quit [Remote host closed the connection]
_serial_ has quit [Client Quit]
geggam has joined #ruby
SeySayux has quit [Read error: Connection reset by peer]
<popl>
Are there any problem spaces where ruby may not be the best choice of implementation language?
byprdct has quit [Ping timeout: 248 seconds]
ngoldman has joined #ruby
<popl>
If so which?
F1skr has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
<canton7>
things that have strict resource limits
<popl>
canton7: What do you mean?
<GaryOak_>
basically high performance computing?
Villadelfia_ has quit [Ping timeout: 252 seconds]
<canton7>
ruby's an interpreted scripting language. if you need to do something which is CPU-intensive, it's not going to be the ideal choice
<canton7>
(the same goes for any scripting language)
<Hanmac>
canton7: not true, you can run ruby inside an EFI shell ... show me that you can do that with java too ;P
<r0bgleeson>
canton7: Ruby is as interpeted as the JVM
<GaryOak_>
something like graphics programming
<r0bgleeson>
it's no longer just a AST walker post-1.8 and in any of the alternative implementations
vlad_starkov has quit [Remote host closed the connection]
<popl>
I thought ruby was a programming language.
<popl>
Atleast that's how it is defined where I have read about it.
tatsuya_o has joined #ruby
<GaryOak_>
popl: What's the difference between scripting and programming?
<banisterfiend>
popl: well if it's not a programming language, what could it be? :)
<popl>
Anyways I am not trying to troll and I realize this sort of talk can start flamewars among zealots.
<Hanmac>
popl & GaryOak_ : with the right bindings (C(++) Extensions) you can make 3d graphic stuff with ruby too and get similar framerate than with pure C++
athst has quit [Quit: athst]
<popl>
So thank you for your answers.
SeySayux has joined #ruby
<GaryOak_>
Hanmac: sounds cool
<popl>
We were just discussing what Perl was not good for in #perl and it made me curious about Ruby.
k3rn3lito has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
weeb1e has quit [*.net *.split]
asuka_ has quit [*.net *.split]
jso has quit [*.net *.split]
sgkim126l has quit [*.net *.split]
ping-pong has quit [*.net *.split]
epta has quit [*.net *.split]
dreamreal has quit [*.net *.split]
TJNII has quit [*.net *.split]
asuka has joined #ruby
dreamreal has joined #ruby
epta has joined #ruby
sgkim126l has joined #ruby
<banisterfiend>
popl: well i probably wouldn't want to write an OS in ruby :)
TJNII has joined #ruby
ping-pong has joined #ruby
<banisterfiend>
or something that needs extremely good performance
robbyoconnor has joined #ruby
<popl>
Well I wouldn't do that in Perl either.
ngoldman has quit [Remote host closed the connection]
mvangala has quit [Write error: Connection reset by peer]
dmyers has quit [Write error: Connection reset by peer]
nezumi has quit [Ping timeout: 258 seconds]
dmyers_ has joined #ruby
k3rn3lito has joined #ruby
weems2 has joined #ruby
jso has joined #ruby
mvangala has joined #ruby
Villadelfia has joined #ruby
viszu has joined #ruby
<popl>
like someone just mentioned in #perl, if your task is CPU-bound then you probably don't want Perl in the first place.
jonathanwallace has quit [Write error: Connection reset by peer]
<fryguy>
ruby isn't great for systems engineering
weeb1e has joined #ruby
<GaryOak_>
that could be said for most languages
<popl>
fryguy: what do you mean by systems engineering?
xardas has quit [Changing host]
xardas has joined #ruby
danslo has joined #ruby
<fryguy>
popl: writing code to build systems/infrastructure as opposed to writing code for software/applications
<popl>
ok
<Hanmac>
fryguy: OpenSuse will use ruby for there YAST replacement
<fryguy>
Hanmac: ok
yshh has joined #ruby
Weems has quit [Ping timeout: 276 seconds]
DomKM has joined #ruby
interactionjaxsn has joined #ruby
defaultro has joined #ruby
<defaultro>
hi folks. Maybe you can tell me how asw_endpoint gets used in the code @awsEndpoint: "<%= asw_endpoint %>" I searched for that string in the entire application but I only found it in one file
carloslopes has quit [Remote host closed the connection]
<fryguy>
defaultro: need a lot more detail than that
BizarreCake has quit [Read error: Operation timed out]
mikepack has quit [Remote host closed the connection]
troessner has quit [Quit: Leaving]
weems2 has quit [Ping timeout: 240 seconds]
yshh has quit [Ping timeout: 256 seconds]
burlyscudd has quit [Quit: Leaving.]
kokobaby has quit [Ping timeout: 241 seconds]
ngoldman has joined #ruby
carloslopes has joined #ruby
zmike123 has joined #ruby
poikon has quit [Remote host closed the connection]
<defaultro>
fryguy: i've been trying to search the whole fs. The one thing i found is that awsEndpoint gets called in another class file. url: -> Asm.Config.aswEndpoint + "/asw/definition/ .................
mikepack has joined #ruby
_Renegade has joined #ruby
<defaultro>
but the asw_endpoint is still a mystery to me. I am not sure if it's pulling from somewhere or if it's being populated
<fryguy>
defaultro: check out pry and binding.pry and investigate where it finds the calling code at
jdunck has quit [Quit: Computer has gone to sleep.]
<mgorbach>
I'm an objective-c programmer (and these are build scripts for an objc app), but I'd appreciate it if anyone can look and tell me what I'm doing stupidly
burlyscudd has joined #ruby
<rfizzle>
No error, just hangs. Like the database grows at like 17kb a second.
Squarepy has quit [Quit: Leaving]
<_br_>
rfizzle: Why don't you run it with the debugger to see whats going on. Might give you a hint whats happening here.
kokobaby has joined #ruby
sepp2k1 has joined #ruby
sepp2k has quit [Read error: Operation timed out]
mgorbach has quit [Client Quit]
<Mon_Ouie>
mgorbach: It should be require 'logger' — require 'Logger' only works on your system because your file system is case-insensitive
banjara has quit [Quit: Leaving.]
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banjara has joined #ruby
burlyscudd has quit [Read error: Operation timed out]
burlyscudd has joined #ruby
obs_ has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
jds has joined #ruby
<Mon_Ouie>
def self.create_identity(long_id, full_name_string, logger) # This looks like it should just be your initialize method
eldariof has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
pootler__ has quit [Ping timeout: 252 seconds]
generali_ has joined #ruby
ivanoats has joined #ruby
<Mon_Ouie>
Also using backticks and just interpolating arguments can cause problems with special character. I would recommend using another way to call external commands (e.g. system(…) when you don't need the output of the process) so you can pass multiple arguments to that method
brennanM_ has quit [Read error: Connection reset by peer]
<Mon_Ouie>
Oh
<Mon_Ouie>
I should check if people are still here when talking to them :p
generalissimo has quit [Ping timeout: 268 seconds]
pentameter has joined #ruby
Criztian has joined #ruby
theRoUS has quit [Read error: Operation timed out]
pskosinski has joined #ruby
Apane has joined #ruby
workmad3 has joined #ruby
chrishough has quit [Quit: chrishough]
<apeiros>
ok
<apeiros>
whoops
<apeiros>
wrong window
saarinen has quit [Quit: saarinen]
rdFLeece has joined #ruby
brianherman has quit [Quit: Leaving]
athst has quit [Quit: athst]
pootler_ has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
kokobaby has quit [Ping timeout: 246 seconds]
richiebkr has quit [Quit: richiebkr]
jkline has quit [Quit: jkline]
robbyoconnor has quit [Read error: Connection reset by peer]
kokobaby has joined #ruby
ivanoats has quit [Remote host closed the connection]
adambeynon has joined #ruby
ivanoats has joined #ruby
kadoo has joined #ruby
kadoo has quit [Max SendQ exceeded]
syamajala has joined #ruby
arietis has joined #ruby
kadoo has joined #ruby
krainboltgreene has joined #ruby
markalanevans has quit [Ping timeout: 268 seconds]
Jackneill has quit [Ping timeout: 252 seconds]
kofno has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
thams has quit [Quit: thams]
danslo has quit [Quit: danslo]
LarsSmit has quit [Quit: Leaving.]
heftig has quit [Ping timeout: 245 seconds]
Squarepy has joined #ruby
ngoldman has joined #ruby
generali_ has quit [Remote host closed the connection]
mgorbach has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
Neomex has joined #ruby
mocfive has quit [Remote host closed the connection]
ryannielson has quit [Quit: ryannielson]
jds has quit [Remote host closed the connection]
athst has joined #ruby
tommyvyo has quit [Quit:]
Neomex has quit [Client Quit]
mocfive has joined #ruby
redgirl_ has quit [Quit: This computer has gone to sleep]
carloslopes has quit [Remote host closed the connection]
rubik has joined #ruby
<rubik>
hello
chrishough has joined #ruby
ChristianS has quit [Excess Flood]
carlyle has joined #ruby
ChristianS has joined #ruby
<rubik>
Anyone use gem Fuubar?
rubik has quit [Client Quit]
x1337807x has joined #ruby
mgorbach has quit [Quit: Bye!]
kenneth has joined #ruby
timonv has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
axl_ has quit [Quit: axl_]
hadees has joined #ruby
Xeago has joined #ruby
freerobby has quit [Quit: Leaving.]
jdunck has joined #ruby
timonv has quit [Remote host closed the connection]
Appineer has quit [Remote host closed the connection]
<fryguy>
well this is interesting, trying to find things taht would cause ruby 2.0 to be universally slower across teh board than ruby 1.9.3 on these centos machines
postmodern has joined #ruby
khushildep has joined #ruby
harrymoreno_ has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
fomatin has joined #ruby
tatsuya_o has joined #ruby
<banisterfiend>
fryguy: what did u find?
bean has joined #ruby
fmcgeough has joined #ruby
k610 has joined #ruby
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
<Hanmac>
maybe its the centos that makes the ruby slow? isnt centos written with stone plates?
Guest87428 is now known as nitrodex
jprovazn has quit [Quit: Odcházím]
khushildep has quit [Client Quit]
freerobby has joined #ruby
<fryguy>
Hanmac: pretty much, but on the same platform with 1.9.3 installed the benchmarks we are using run noticably faster, and things like jmeter are showing higher throughput
spinagon has quit [Ping timeout: 248 seconds]
<fryguy>
so sure, would love to blame/change the platform, but I'm not a sysadmin and don't want to make their life harder than it needs to be
m8 has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
zmike123 has quit [Quit: Выходжу]
generalissimo has joined #ruby
zeade has left #ruby [#ruby]
fungoat has joined #ruby
zeade has joined #ruby
persand has quit [Quit: persand]
gazarsgo has quit [Quit: gazarsgo]
devoldmx has quit [Ping timeout: 276 seconds]
persand has joined #ruby
persand has quit [Client Quit]
threesome has quit [Read error: Operation timed out]
RonScagz has joined #ruby
heftig has joined #ruby
Evixion has quit []
Hanmac2 has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
mocfive has quit [Remote host closed the connection]
axl_ has joined #ruby
Criztian has quit [Remote host closed the connection]
syamajala has quit [Quit: leaving]
pipework has quit [Remote host closed the connection]
mocfive has quit [Remote host closed the connection]
Davey has joined #ruby
rafb3 has quit [Remote host closed the connection]
ssvo_ has joined #ruby
Meatant has joined #ruby
pipework has joined #ruby
Criztian has joined #ruby
devoldmx has joined #ruby
ssvo has quit [Ping timeout: 252 seconds]
jonathanwallace has joined #ruby
mocfive has joined #ruby
huoxito has quit [Quit: Leaving]
tw1sted has quit [Quit: tw1sted]
sambao21 has quit [Quit: Computer has gone to sleep.]
dash_ has quit [Quit: Time to beer :)]
chichou has joined #ruby
hadees has quit [Quit: hadees]
obs_ has quit [Quit: Konversation terminated!]
jalcine has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 246 seconds]
fungoat has quit [Quit: fungoat]
threesome has joined #ruby
krawchyk has quit [Remote host closed the connection]
hadees has joined #ruby
yaroslav has joined #ruby
devoldmx3 has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
zets has joined #ruby
ffio_ has quit [Ping timeout: 264 seconds]
`p has quit [Remote host closed the connection]
yaroslav has quit [Client Quit]
burlyscudd has quit [Quit: Leaving.]
saarinen has joined #ruby
chichou has quit [Ping timeout: 268 seconds]
Criztian has quit [Remote host closed the connection]
thams has joined #ruby
devoldmx has joined #ruby
shykes has joined #ruby
araujo has quit [Read error: Connection reset by peer]
<shykes>
Hi, I'm trying to build the latest ruby 2 release from source, but make fails with "/missing/isnan.c:8: error: expected identifier or '(' before 'sizeof'". I'm building on x86_64 with ulibc and busybox
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
devoldmx3 has quit [Ping timeout: 268 seconds]
geekbri has quit [Remote host closed the connection]
krainboltgreene has quit [Ping timeout: 248 seconds]
sambao21 has joined #ruby
bean__ has joined #ruby
<_br_>
shykes: seems you are missing some base lib functionality. Might be ulibc is not supported properly for the ruby2 build. Why don't you try to cross-compile it on a normal linux box for your embedded platform directly, instead of relying on the vanilla installer?
<shykes>
_br_ yeah I might do that. I'm actually trying to bootstrap such a "normal linux box" starting from my embedded system, but that's outside of the scope of this chan :)
_Andres has quit [Quit: jazz]
<shykes>
Ie. I'm trying to find the absolute smallest system capable of building ruby
<_br_>
hah interesting stuff
<_br_>
I think you should go to ruby-lang where the core devs are hanging around for such kind of issues.
<shykes>
ah, thanks!
<_br_>
My guess though is that with ulibc you don't have a certain functionality which you get in glibc, hence the error.
<_br_>
np
<_br_>
Probably you can fix it if you just implement the missing functions directly or if you switch to some other c lib that supports the needed functionality.
<_br_>
For one of my theses I had fun porting this nonsense, hence these errors seems familiar.
krainboltgreene has joined #ruby
jtharris has joined #ruby
rdg has joined #ruby
<shykes>
I'm going to try and build glibc on top of ublic, and then use that to build ruby. Maybe it will work?
<shykes>
Thanks again
<_br_>
try :)
sailias has quit [Ping timeout: 256 seconds]
Zai00 has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
dimpossso has quit [Quit: Leaving]
dpritchett has quit [Quit: Leaving]
johnrlive has quit [Remote host closed the connection]
mark_locklear has quit [Remote host closed the connection]
interactionjaxsn has quit [Ping timeout: 256 seconds]
<enhance>
i'm having difficulty passing :allow_headers options to this gem
devoldmx has quit [Ping timeout: 276 seconds]
mmitchell has quit [Ping timeout: 276 seconds]
<enhance>
i have: set :cross_origin, :allow_headers, ['Content-Type', 'Origin', 'Accept', 'X-Requested-With', 'Authorization']
<enhance>
but
<enhance>
http://localhost:4567/auth.json Request header field X-Requested-With is not allowed by Access-Control-Allow-Headers.
<jkline>
For testing purposes I want to mock a class defined elsewhere, and have my mock replace all uses of that class throughout the code. What library should I be using?
robscomputer has quit [Read error: Connection reset by peer]
matchaw has joined #ruby
devoldmx has joined #ruby
ivanoats has quit [Remote host closed the connection]
robscomputer has joined #ruby
Kar- has quit [Remote host closed the connection]
<jkline>
For example: class SystemUnderTest; def initialize; @client = SomeApiClient.new; end; end; I want to make a pretend SomeApiCLient so I can unit test my SystemUnderTest class
icole has joined #ruby
robscomputer_ has joined #ruby
<enhance>
anyone?
<enhance>
nobody knows Sinatra?
<enhance>
...that's alive...
<enhance>
lol
<Beoran>
enhance, I do, but I'm just off to be
<Beoran>
to bed
dmiller has joined #ruby
<enhance>
Beoran: haha, this is a quick thing
robscomputer has quit [Read error: Connection reset by peer]
<Beoran>
ask me in a PM and I'll try to answer tomorrow
<enhance>
heh
Liothen has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
<enhance>
i don't have until tomorrow :(
<Beoran>
exam question?
<Beoran>
;)
<enhance>
no.
<Beoran>
well, aks quickly then
<enhance>
i have a resource that gives out json in ruby
<enhance>
via POST
<Beoran>
ok
<enhance>
and my issue is CORS
ssvo_ has quit [Read error: Connection reset by peer]
<enhance>
i have an angular app connecting to this endpoint
ddm has quit [Quit: Page closed]
<Beoran>
sorry my time is up
<enhance>
Beoran: see anything offhand there?
<Beoran>
good night
<enhance>
fine :)
<enhance>
just say you don't know
ElderFain has joined #ruby
breakingthings has quit [Quit: breakingthings]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
milardovich has quit [Quit: Leaving]
jasonkuhrt has quit [Quit: Leaving...]
mfletcher has quit [Quit: mfletcher]
mahmoudimus has joined #ruby
fuzzyhorns has quit [Remote host closed the connection]
popl has quit [Quit: "People remain what they are even if their faces fall apart."]
jtharris has quit [Quit: WeeChat 0.4.0]
kadoo has joined #ruby
baordog has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]]
Zai00 has joined #ruby
kadoo has quit [Client Quit]
ngoldman has quit [Remote host closed the connection]
richiebkr has quit [Quit: richiebkr]
richiebkr has joined #ruby
Zai00 has quit [Client Quit]
robscomputer has joined #ruby
`p has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
robscomputer_ has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
kadoo has joined #ruby
kadoo has quit [Max SendQ exceeded]
kadoo has joined #ruby
cj3kim has joined #ruby
dangerousdave has quit [Quit: Leaving...]
vlad_starkov has quit [Remote host closed the connection]
Zai00 has joined #ruby
thams has quit [Quit: thams]
rfizzle has quit [Quit: Leaving]
wesside has quit [Quit: Ice cream truck!]
ElderFain_ has joined #ruby
niklasb has joined #ruby
ElderFain has quit [Ping timeout: 260 seconds]
arietis has joined #ruby
burlyscudd has quit [Quit: Leaving.]
thams has joined #ruby
heftig_ has joined #ruby
Zai00 has quit [Read error: Connection reset by peer]
heftig has quit [Quit: Quitting]
DonRichie has quit [Ping timeout: 248 seconds]
pipework has quit [Remote host closed the connection]
heftig_ is now known as heftig
heftig has quit [Client Quit]
heftig has joined #ruby
krainboltgreene has joined #ruby
stkowski has quit [Quit: stkowski]
sailias has quit [Ping timeout: 268 seconds]
synthetix has quit [Ping timeout: 264 seconds]
_br_ has quit [Quit: leaving]
Neener54 has quit [Remote host closed the connection]
alex__c2022 has quit [Quit: alex__c2022]
jrhe has joined #ruby
nikeita has quit [Quit: bye bye]
mansi_ has quit [Remote host closed the connection]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
mansi has joined #ruby
generalissimo has quit [Remote host closed the connection]
ivanoats has joined #ruby
freerobby has quit [Quit: Leaving.]
nkts has joined #ruby
spengbab has joined #ruby
Brando753 has quit [Ping timeout: 264 seconds]
spengbab has quit [Client Quit]
ravster has quit [Quit: Leaving.]
Brando753 has joined #ruby
Xeago_ has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 276 seconds]
mocfive has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
johnnyfuchs has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nezumi has joined #ruby
Davey has quit [Ping timeout: 256 seconds]
t_p has joined #ruby
ggordan has quit [Remote host closed the connection]
harrymoreno_ has joined #ruby
Davey has joined #ruby
mocfive has joined #ruby
harrymoreno has quit [Ping timeout: 256 seconds]
harrymoreno_ is now known as harrymoreno
devoldmx has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
nezumi has quit [Ping timeout: 264 seconds]
shykes has left #ruby ["Leaving..."]
arya has quit [Ping timeout: 252 seconds]
tatsuya_o has quit [Remote host closed the connection]
richiebkr has quit [Quit: richiebkr]
ivanoats has quit [Remote host closed the connection]
radic_ is now known as radic
GaryOak_ has quit [Quit: Page closed]
fomatin has quit [Quit: Computer has gone to sleep.]
RORgasm has quit [Read error: Connection reset by peer]
hattusili_III has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
burlyscudd has joined #ruby
Hare has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
hadees has quit [Quit: hadees]
arya has joined #ruby
Opettaja has joined #ruby
cmarques has quit [Ping timeout: 240 seconds]
devoldmx3 has joined #ruby
AlSquire has joined #ruby
devoldmx has quit [Ping timeout: 268 seconds]
athst has quit [Quit: athst]
krainboltgreene has quit [Ping timeout: 268 seconds]
skasio has joined #ruby
jacobw has quit [Quit: WeeChat 0.4.0]
gstamp has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
fomatin has joined #ruby
jibi has quit [Quit: .]
vlad_starkov has joined #ruby
mmitchell has joined #ruby
harrymoreno has quit [Ping timeout: 246 seconds]
harrymoreno_ has joined #ruby
astrostl has left #ruby [#ruby]
akells` has joined #ruby
<joshu>
on Mac anyone install ruby with homebrew instead of using rbenv? Most people seem to use rbenv (or rvm) but just curious about the homebrew install without either rbenv or rvm
arietis has quit [Quit: Computer has gone to sleep.]
osvico has joined #ruby
<r0bgleeson>
joshu: what's your question?
mmitchell has quit [Ping timeout: 240 seconds]
robscomputer has quit [Read error: Connection reset by peer]
<joshu>
r0bgleeson any good reasons to install ruby with homebrew and skip rbenv/rvm
robscomputer_ has joined #ruby
robscomputer_ has quit [Read error: Connection reset by peer]
falkoner has joined #ruby
robscomputer has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
Inside has quit [Changing host]
<r0bgleeson>
joshu: not really
<r0bgleeson>
well, I would be against RVM
<r0bgleeson>
it has become a complicated monster
hadees has joined #ruby
gazarsgo has joined #ruby
akells` has quit [Ping timeout: 264 seconds]
<joshu>
I just mentioned it to avoid any rbenv versus rvm debates as my I'm more curious about a brew install instead of either "manager"
<joshu>
I'm currently using rbenv
<r0bgleeson>
well, brew installs a single ruby
AlSquire has quit [Ping timeout: 240 seconds]
<r0bgleeson>
there's not much more to say
rhys has quit [Quit: Leaving]
Trynemjoel has joined #ruby
<postmodern>
joshu, if you just need "a" ruby use system or homebrew ruby
<postmodern>
joschi, rvm/rbenv/chruby if you need multiple ruby implementations/versions
alvaro_o has quit [Read error: Connection reset by peer]
<joshu>
postmodern I see
alvaro_o has joined #ruby
jimg has joined #ruby
<Hare>
Can you text/email images with the net::smtp class, or is there a better gem to use?
<r0bgleeson>
Hare: the 'mail' gem might be better for attachments.
hadees has quit [Client Quit]
atno has quit [Remote host closed the connection]
<Hare>
ok thanks, Ill have a look at it
burlyscudd has quit [Ping timeout: 256 seconds]
<joshu>
r0bgleeson what do you use for gem management, bundler?
<r0bgleeson>
that's what ActionMailer uses.
<r0bgleeson>
joshu: yeah
mikepack has quit [Remote host closed the connection]
athst has joined #ruby
robscomputer has quit [Remote host closed the connection]
<r0bgleeson>
i don't use gemsets, never have
robscomputer has joined #ruby
Treeson has joined #ruby
AlSquire has joined #ruby
defaultro has quit [Ping timeout: 250 seconds]
slainer68 has quit [Remote host closed the connection]
brennanM_ has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
robscomputer has quit [Ping timeout: 240 seconds]
robscomputer has joined #ruby
anonymuse has quit [Quit: Leaving...]
slyv has joined #ruby
predator217 has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
mansi has joined #ruby
rdFLeece has quit [Remote host closed the connection]
Mon_Ouie has quit [Read error: Operation timed out]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
_maes_ has quit [Ping timeout: 268 seconds]
hadees has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
predator117 has quit [Ping timeout: 240 seconds]
ntus1017 has joined #ruby
slash_nick has quit [Ping timeout: 264 seconds]
cj3kim has quit [Remote host closed the connection]
skasio has quit [Ping timeout: 240 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
dankest has joined #ruby
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
synthetix has joined #ruby
Weems has quit [Ping timeout: 256 seconds]
mansi has quit [Ping timeout: 240 seconds]
pentameter has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
benlieb has joined #ruby
freerobby has joined #ruby
freerobby has quit [Client Quit]
hawtin has quit [Ping timeout: 248 seconds]
robscomputer has quit [Ping timeout: 264 seconds]
geggam has quit [Remote host closed the connection]
robscomputer has joined #ruby
kadoo has joined #ruby
bean has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
axl_ has quit [Quit: axl_]
nari has joined #ruby
arya has quit [Ping timeout: 240 seconds]
wsterling has quit [Ping timeout: 276 seconds]
mrsolo has quit [Ping timeout: 245 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
brice_ has joined #ruby
guiocavalcanti has joined #ruby
jds has quit [Remote host closed the connection]
kokobaby has quit [Ping timeout: 240 seconds]
daniel_- has quit [Quit: WeeChat 0.4.1]
timkohrumel has quit [Remote host closed the connection]
<jkline>
hi, i'm trying to learn Mocha. I want to stub the My::Own::Thing.get_creds function. When I try My::Own::Thing.stubs(:get_creds) the error is NameError: uninitialized constants My::Own
kokobaby has joined #ruby
<jkline>
I don't need any real behavior from My::Own::Thing, it is a collaborator. How do I replace that with a double or mock version?
r0bgleeson has quit [Ping timeout: 245 seconds]
<pontiki>
not fmiliar woth mocha
tomzx_mac has joined #ruby
<pontiki>
but you do need to ha module My and My::Own defined
justsee has joined #ruby
<pontiki>
have*
<pontiki>
before you can use My::Own::Thing
brennanMKE has quit [Read error: Connection reset by peer]
<jkline>
ok, so the mock doesn't do that for me. I guess that makes sense, it would not know how
<pontiki>
simple enough, just wrap your test with module My::Own ... end
<pontiki>
or whatever they are in your app
eka has quit [Ping timeout: 252 seconds]
<pontiki>
low batt
<jkline>
ah. Ok. so that leads into my next question. I am using Test::Unit. The examples I have seen say something like class DefaultTest < Test::Unit::TestCase
kiry has joined #ruby
brennanMKE has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<jkline>
how do people nest their unit tests ? in their own name space? In directories?
saarinen has quit [Quit: saarinen]
<jkline>
feel free to give me a link , I just haven't see a tutorial that answers this yet
hawtin has joined #ruby
citizensinspace has quit [Quit: citizensinspace]
guiocavalcanti has quit [Ping timeout: 240 seconds]
guiocavalcanti has joined #ruby
<jkline>
Should I be usingng class My::Own::ThingTest < Test::Unit::TestCase to test class My::Own::Thing ?
eka has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
gildo has joined #ruby
jonathanwallace1 has joined #ruby
slainer68 has joined #ruby
arya_ has joined #ruby
brennanMKE has joined #ruby
skasio has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
byprdct has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
wookiehangover has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
arya has quit [Ping timeout: 240 seconds]
mocfive has quit [Remote host closed the connection]
thams has quit [Quit: thams]
incorvia has joined #ruby
brennanMKE has joined #ruby
nezumi has joined #ruby
citizensinspace has joined #ruby
jonathanwallace1 has quit [Ping timeout: 248 seconds]
emergion has joined #ruby
krainboltgreene has joined #ruby
wookiehangover has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
mocfive has quit [Remote host closed the connection]
sepp2k1 has quit [Quit: Leaving.]
fomatin has joined #ruby
aces1up has joined #ruby
robscomputer has quit [Remote host closed the connection]
<aces1up>
what happens for Thread.current.raise if the current thread is blocking waiting on socket?
slainer68 has quit [Ping timeout: 276 seconds]
robscomputer has joined #ruby
<aces1up>
will it break out of that blocking call?
cantonic has joined #ruby
mocfive has joined #ruby
rafb3 has quit [Remote host closed the connection]