* atmosx
wikipedia: -> The kibibyte is a multiple of the unit byte for quantities of digital information. The binary prefix kibi, a contraction of "kilo-, binary [equivalent]," denotes the base-ten number 1024, the round binary number closest to 1000;
Kuifje has quit [Ping timeout: 244 seconds]
<atmosx>
didn't ever heard of kibibyte
* atmosx
should take cs instead of pharmacy
AndChat| has quit [Ping timeout: 256 seconds]
<atmosx>
canton7: lol intel kilobyte?
<atmosx>
"amost 1024 but not quite?" lol
mengu has quit [Quit: This computer has gone to sleep]
<Hanmac>
atmosx the problem was: some stuff was labled with base 10, like on harddisk storage, other stuff like adressed space, like RAM was labeld with base 2 ...
mengu has joined #ruby
<Hanmac>
atmosx and some stuff like 1,44MB disks ... was labeld as an mix of both: 1,44 * 1000 * 1024 B
<apeiros>
hard disks are usually in base 10
_br_ has quit [Excess Flood]
<atmosx>
canton7: interesting, I've heard it before but never really read about it.
<atmosx>
Hanmac: hard-disk spase is labelled in the base of 10?
<atmosx>
space
<apeiros>
which is why your 1TB hard drive is only ~930MB in your system
<atmosx>
hm I see...
<apeiros>
(because your system usually actually displays MiB)
<atmosx>
that explains a lot
<atmosx>
why HD's are using a 10 base anyway? that's idiotic :-/
_br_ has joined #ruby
<atmosx>
doesn't make any sense having two different units
<workmad3>
atmosx: technically, they don't
<canton7>
there's also the fun of space needing to be used for the partitioning, which is fair enough but a little misleading
<Hanmac>
apeiros: the problem: Windows systems uses 1024 but uses the wrong units
<workmad3>
atmosx: HDDs are labeled in MB, OSes tend to display in MiB
maxmanders has quit [Quit: Computer has gone to sleep.]
<atmosx>
I don't get the bits and bytes diff either. Speeds (ADSL speeds i.e.) are counted in bits where data is counted in bytes. But data travels through ADSL network so why use diff metrics (except from marketing reasons)
<atmosx>
canton7: I always thought that the missing space was lost there, in partitioning and filesystem structure/etc.
<apeiros>
Hanmac: not only the windows system
<canton7>
and don't forget most things network-related using bits instead of bytes, which adds further to the number of units needed
<apeiros>
atmosx: as a seller, would you rather advertise 1TB or 0.93TiB?
<atmosx>
1 TB of course.
<apeiros>
and technically, the OSes displaying TiB as TB (or GiB as GB) are in the wrong
<atmosx>
I see
<Hanmac>
apeiros: its the same when something costs only 99Cents :P
<apeiros>
i.e., for once, the harddrive vendors do it right. even if their motivation is probably greed.
* atmosx
finally fixed the bug
Rym has quit [Quit: Rym]
<canton7>
atmosx, it does make sense. on a system, everything is a multiple of 8 bits, more or less. when you're talking networks, you're streaming bits - nothing says anything is a multiple of anything. if you've taken 8 bytes and compressed them down to 15 bits, that's cool. you send the 15 bits, not two bytes :P
jsilver has quit [Remote host closed the connection]
tenmilestereo[aw has joined #ruby
<atmosx>
canton7: oh okay. However in my mind I always divice by 8 to get the actual speed :-P in "torrents" speed.
mercwithamouth has quit [Ping timeout: 248 seconds]
<cirwin>
yeah, it's a clever marketing ploy to set the kb in kbps to mean kilo-bits
mercwithamouth has joined #ruby
<canton7>
and there's the marketing side of it as well, of course :P
cantonic_ has joined #ruby
tenmilestereo has quit [Ping timeout: 245 seconds]
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
<atmosx>
yes for marketing purposes is very handy
jimeh has quit [Quit: Computer has gone to sleep.]
<atmosx>
UPC here sells 100 Mbits in some areas. All my friends, who use the computers for porn mostly, facebook-ing and reading think that they will download with 100 MB/s movies.
<apeiros>
atmosx: and the answer to whether you should say 100MB/s, 100MiB/s, 100Mb/s or 100Mib/s is: it's either 100Mb/s or 100Mib/s - but which of the two depends on what UPC actually delivers
phinfonet has quit [Ping timeout: 252 seconds]
jaequery has joined #ruby
<apeiros>
and 100Mb/s == 12.5MB/s, 100Mib/s == 12.5Mib/s
<apeiros>
*sob*, I probably should go to bed…
<apeiros>
and 100Mb/s == 12.5MB/s, 100Mib/s == 12.5MiB/s # fixed
<atmosx>
yeah me too
<atmosx>
it's 12.5 MB/s measured which is impressive anyway
itsdavem has joined #ruby
Snova has joined #ruby
emocakes has quit [Quit: emocakes]
itsdavem has quit [Remote host closed the connection]
brianpWins has joined #ruby
brianpWins has quit [Remote host closed the connection]
pkrnj has joined #ruby
samuel02 has joined #ruby
scottmos has quit [Ping timeout: 256 seconds]
scottmos_ has joined #ruby
baroquebobcat has joined #ruby
kirun has quit [Quit: Client exiting]
samuel02_ has quit [Ping timeout: 260 seconds]
itsdavem has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
itsdavem has quit [Remote host closed the connection]
jsilver has quit [Read error: Operation timed out]
itsdavem has joined #ruby
* apeiros
is still on 25Mb/s, even though UPC offers 100Mb/s here too
* heftig
is still on 0.7Mb/s
beardyjay has joined #ruby
<apeiros>
I just so rarely need more. I might upgrade to 75Mb/s as by now we're often watching videos at the same time
itsdavem has quit [Remote host closed the connection]
tommyvyo_ has joined #ruby
hackerdude has joined #ruby
* atmosx
is at 600 KB/s downstream and 40 KB/s upstream (make your calculatoins lol)
thufir_ has quit [Quit: Leaving.]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
<apeiros>
KB or Kb?
<apeiros>
I think it's ~6y ago that I last had 600KB/s :)
<apeiros>
oh, UPC actually offers 150Mb/s here
karasawa has joined #ruby
itsdavem_ has joined #ruby
RagingDave has quit [Quit: Ex-Chat]
<atmosx>
apeiros: I have no luck. I'm in the part of the city where internet connections are slow
samphippen has quit [Quit: Computer has gone to sleep.]
oposomme has quit [Quit: Leaving...]
joeycarmello has quit [Remote host closed the connection]
itsdavem has quit [Read error: Connection reset by peer]
x82_nicole has joined #ruby
freakazoid0223 has joined #ruby
pyx has joined #ruby
GeekSir has joined #ruby
karasawa has joined #ruby
yacks has joined #ruby
banister`sleep is now known as banisterfiend
nfk has quit [Quit: yawn]
nomenkun has joined #ruby
FifthWall has joined #ruby
jbw has quit [Ping timeout: 245 seconds]
karasawa has quit [Ping timeout: 256 seconds]
paolooo has quit [Ping timeout: 245 seconds]
iamjarvo1 has quit [Quit: Leaving.]
iamjarvo has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
itsdavem has joined #ruby
ggamel has quit [Remote host closed the connection]
fyolnish has joined #ruby
ggamel has joined #ruby
huoxito has joined #ruby
uris has quit [Quit: Leaving]
banisterfiend is now known as banister`sleep
Hanmac1 has joined #ruby
schiz0id has joined #ruby
<schiz0id>
hi
ggamel has quit [Ping timeout: 252 seconds]
<schiz0id>
My name is schiz0id, and I have been hacking since I was 13, well over 2 years.
<schiz0id>
People know me as one of the elite, one who knows what they're doing.
tjbiddle has quit [Ping timeout: 256 seconds]
<schiz0id>
Since hacking is a true art that isn't learned overnight (more like months), I decided to help those who are destined to master the art of hacking.
vlad_starkov has joined #ruby
<schiz0id>
I will bestow upon all of you information that will guide you along your way, all the way to the end.
toekutr has joined #ruby
itsdavem has quit [Remote host closed the connection]
<banister`sleep>
schiz0id: can u tell me where to buy weed
horofox has quit [Quit: horofox]
atno has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 255 seconds]
<schiz0id>
I can tell you h4x0r stuff..... real h4x0rs don't uze weed, uz3rz R l00z3rz
tjbiddle has joined #ruby
havenn has joined #ruby
theanvah has quit [Read error: Connection reset by peer]
pskosinski has quit [Quit: Learn Life's Little Lessons]
jaequery has quit [Quit: Computer has gone to sleep.]
jbw has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
anonymuse has joined #ruby
love_color_text has quit [Ping timeout: 248 seconds]
<schiz0id>
no fish today?
schiz0id has left #ruby ["Leaving"]
baroquebobcat has quit [Quit: baroquebobcat]
waxjar has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
hackerdude has quit [Remote host closed the connection]
waxjar has joined #ruby
daniel_- has quit [Ping timeout: 248 seconds]
Goopyo has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
Goopyo has joined #ruby
huoxito has quit [Ping timeout: 245 seconds]
chrismhough has joined #ruby
huoxito has joined #ruby
yshh has joined #ruby
GeekSir has quit [Quit: GeekSir]
baroquebobcat has quit [Client Quit]
tjbiddle_ has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
Choobie has joined #ruby
tjbiddle has quit [Ping timeout: 244 seconds]
tjbiddle_ is now known as tjbiddle
araujo has quit [Quit: Leaving]
xemu has quit [Ping timeout: 245 seconds]
bigmac has quit [Quit: Leaving]
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
ggamel has joined #ruby
apeiros has joined #ruby
maxmanders has joined #ruby
freakazoid0223 has quit [Ping timeout: 256 seconds]
anonymuse has quit [Quit: Leaving.]
jds has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
plotplanexe has quit [Ping timeout: 245 seconds]
apeiros has quit [Ping timeout: 256 seconds]
JumpMast3r has joined #ruby
<fuzai>
I have an application that is using eventmachine at its core. I would like to add a web server to the code. Could someone suggest an easy way to do this? I've been looking at Sinatra::Synchrony, but I don't understand how it knows which port to run on
huoxito has quit [Ping timeout: 256 seconds]
joeycarmello has joined #ruby
huoxito has joined #ruby
aaronm has quit [Killed (card.freenode.net (Nickname regained by services))]
tjbiddle has quit [Quit: tjbiddle]
aaronm_ has joined #ruby
<swarley>
I need an opinion on how I'm parsing this
<swarley>
token TkSignedInteger {
<swarley>
[ '+' | '-' ]+ <TkInteger>
<swarley>
}
jds has quit [Ping timeout: 240 seconds]
<swarley>
Should I leave it like that, or should I make it pick the signedness up as unary method calls
<swarley>
Well, I could just transfer it into the unary method calls
mlue has quit [Ping timeout: 252 seconds]
aeontech has joined #ruby
aeontech has quit [Client Quit]
gnarmis has joined #ruby
danneu has quit [Ping timeout: 252 seconds]
<swarley>
K. I just changed the definition to include ~!-+ to the signedness so that the unary methods will all be treated the same
_Dykam has joined #ruby
pjackson has quit [Quit: No Ping reply in 180 seconds.]
maletor has quit [Quit: Computer has gone to sleep.]
<shevy>
Date.valid_date?(2001,2,3) # => true
<shevy>
Date.valid_date?(2001,2,29) # => false
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
Monie has joined #ruby
cantonic has quit [Quit: cantonic]
radic has quit [Disconnected by services]
radic_ has joined #ruby
pkrnj has quit [Ping timeout: 252 seconds]
breakingthings has joined #ruby
<breakingthings>
What is %q{}?
thufir_ has joined #ruby
<aedornm>
shevy: no, don't need more projects! Just trying to "relax" during the weekend... but I find I'm just bored instead
Playground has joined #ruby
aaronmacy has joined #ruby
xsarin has quit [Quit: xsarin]
<aedornm>
breakingthings: a non-interpolated string
<shevy>
aedornm ah, then you need to regard programming as a hobby, and do non-programming stuff for work, then you never run out of things you wanna do :-)
<danneu>
shevy: rescue for flow control seems good to you?
<shevy>
danneu well there exists .valid_date?
<shevy>
I did not write the Date class, so you would have to ask the authors what they were thinking
<danneu>
well, to use that you'd end up parsing the text
xsarin has joined #ruby
<danneu>
I'm not really wondering why, just if someone's encountered a more sensible workaround
<shevy>
danneu begin/rescue/ensure/end is some kind of flow control btw
<shevy>
we even have catch/throw too!
<shevy>
there are a million ways to do something, and they all stink
vlad_starkov has joined #ruby
<danneu>
what's the official channel for ruby standard lib discourse for this sort of thing? i imagine someone has asked this
<danneu>
is it the mailing list?
agarie has joined #ruby
<shevy>
I myself sometimes feature requests
<shevy>
*file feature requests
itsdavem has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
AsgardBSD_ has joined #ruby
karasawa has joined #ruby
AsgardBSD has quit [Ping timeout: 248 seconds]
g0bl1n has quit [Quit: Ex-Chat]
noyb has joined #ruby
AsgardBSD has joined #ruby
AsgardBSD_ has quit [Read error: Operation timed out]
karasawa has quit [Ping timeout: 255 seconds]
esing has quit [Remote host closed the connection]
aaronmacy has quit [Quit: Leaving.]
jduan1981_ has joined #ruby
xorrbit has left #ruby [#ruby]
vDubG has quit [Quit: Got ZNC?]
jduan1981 has quit [Read error: Connection reset by peer]
jduan1981_ is now known as jduan1981
cableray_ has joined #ruby
cableray has quit [Ping timeout: 248 seconds]
cableray_ is now known as cableray
joofsh has joined #ruby
dankest has joined #ruby
erichmenge has quit [Ping timeout: 245 seconds]
almondo has joined #ruby
billy_ran_away has quit [Ping timeout: 252 seconds]
opettaja has quit [Remote host closed the connection]
davidcelis has quit [Ping timeout: 245 seconds]
davidcelis has joined #ruby
reuven` has quit [Ping timeout: 256 seconds]
rakl has quit [Quit: gone]
erichmenge has joined #ruby
<shevy>
hmm
billy_ran_away has joined #ruby
otters has quit [Ping timeout: 252 seconds]
love_color_text has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
gurps has quit [Ping timeout: 276 seconds]
locriani has joined #ruby
cha1tanya has quit [Ping timeout: 246 seconds]
cha1tanya has joined #ruby
gurps has joined #ruby
xsarin has quit [Quit: xsarin]
gurps has quit [Quit: bye]
jaequery has joined #ruby
cableray has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
cha1tanya_ has joined #ruby
cableray has joined #ruby
cableray has quit [Client Quit]
cha1tanya has quit [Ping timeout: 240 seconds]
adeponte has quit [Remote host closed the connection]
otters has joined #ruby
autumn has quit [Remote host closed the connection]
aedornm has quit [Remote host closed the connection]
thomasfedb has quit [Remote host closed the connection]
waxjar has quit [Remote host closed the connection]
RONNCC has quit [Quit: Page closed]
hackerdude has quit [Remote host closed the connection]
TomyLobo has quit [Quit: Standby mode...]
gurps has joined #ruby
mahmoudi_ has joined #ruby
mahmoudimus has quit [Ping timeout: 256 seconds]
plotplanexe has quit [Remote host closed the connection]
ggamel has quit [Remote host closed the connection]
gurps has quit [Client Quit]
mneorr has quit [Remote host closed the connection]
jonahR has joined #ruby
gnarmis has quit [Remote host closed the connection]
jduan1981_ has joined #ruby
iIlL10Oo has joined #ruby
<iIlL10Oo>
/home/kk/.rvm/rubies/ruby-1.9.3-p374/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require': libglut.so.3: cannot open shared object file: No such file or directory - /home/kk/.rvm/gems/ruby-1.9.3-p374/gems/ruby-opengl2-0.60.6/lib/glut.so (LoadError)
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
davidcelis has quit [Ping timeout: 245 seconds]
jduan1981 has quit [Ping timeout: 255 seconds]
xybre has quit [Ping timeout: 245 seconds]
davidcelis has joined #ruby
gurps has joined #ruby
<danneu>
I wrote a scraper that handles predetermined URLs. What's the most sensible result for the consumer of my gem if, for whatever exceptional reason, my scraper can't parse the DOM? is that textbook use case for raising an exception?
MattRB has quit [Quit: This computer has gone to sleep]
xybre has joined #ruby
jduan1981_ has quit [Ping timeout: 244 seconds]
jduan1981 has joined #ruby
karasawa has joined #ruby
melisaa has joined #ruby
joofsh has quit [Remote host closed the connection]
v0n has joined #ruby
Takehiro_ has joined #ruby
MattRB has joined #ruby
cableray has joined #ruby
<blazes816>
danneu: most likely. what is the result if it CAN be parsed?
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
oposomme has quit [Quit: Leaving...]
slainer68 has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Quit: Leaving.]
cha1tanya_ is now known as cha1tanya
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
aedornm has joined #ruby
mneorr has joined #ruby
plotplanexe has joined #ruby
MattRB has quit [Quit: This computer has gone to sleep]
<iIlL10Oo>
how to GetPixel without gems ?
<iIlL10Oo>
main Desktop GetPixel
andrewhl has joined #ruby
tps_ has joined #ruby
cha1tanya has quit [Ping timeout: 256 seconds]
mercwithamouth has quit [Ping timeout: 248 seconds]
MattRB has joined #ruby
kiyoura` has quit [Quit: Leaving]
mercwithamouth has joined #ruby
breakingthings has quit []
cha1tanya has joined #ruby
mneorr_ has joined #ruby
generalissimo has joined #ruby
stopbit has quit [Ping timeout: 245 seconds]
skaczor has quit [Remote host closed the connection]
jenrzzz has joined #ruby
gurps has quit [Quit: bye]
IceDragon has quit [Quit: Space~~~]
mneorr has quit [Ping timeout: 260 seconds]
Inoperable has quit [Ping timeout: 252 seconds]
cha1tanya has quit [Ping timeout: 246 seconds]
Inoperable has joined #ruby
stopbit has joined #ruby
Jonah11_ has quit [Read error: Connection reset by peer]
templaedhel has quit [Quit: Leaving...]
almondo has quit [Ping timeout: 255 seconds]
gurps has joined #ruby
nimred has quit [Ping timeout: 248 seconds]
FPSDavid has joined #ruby
<FPSDavid>
anyone help me? i setup rvm and ruby, then ran gem install rails
Playground has joined #ruby
<FPSDavid>
but if i type rails new, it says rails isnt installed
Karantin has left #ruby [#ruby]
mneorr_ has quit [Remote host closed the connection]
v0n has quit [Read error: Operation timed out]
cableray has quit [Read error: Connection reset by peer]
<FPSDavid>
did i screw something up?
cableray has joined #ruby
nomenkun has joined #ruby
MattRB has quit [Quit: This computer has gone to sleep]
bricker has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
noyb has quit [Ping timeout: 256 seconds]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
MattRB has joined #ruby
ninegrid has joined #ruby
cbosh has quit [Ping timeout: 256 seconds]
nomenkun has quit [Ping timeout: 252 seconds]
karasawa has joined #ruby
<danneu>
blazes816: basically i have a bunch of Page subclasses that do nothing but reimplement a `listings` method that return an array of Nodes. (listings.first.title, etc).
itsdavem has joined #ruby
<danneu>
decided to raise an UnknownPageError.
karasawa has quit [Ping timeout: 255 seconds]
pyx has quit [Quit: WeeChat 0.3.9.2]
dmiller has quit [Ping timeout: 245 seconds]
andrewhl has quit [Remote host closed the connection]
FPSDavid has left #ruby [#ruby]
forced_request has quit [Read error: Connection reset by peer]
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
dankest is now known as dankest|away
itsdavem has quit [Remote host closed the connection]
cbosh has joined #ruby
itsdavem has joined #ruby
itsdavem has quit [Remote host closed the connection]
<shevy>
nazty the best you may be able to do is just write ruby scripts that work cross-plattform
<shevy>
which should be very, very easy
charliesome has quit [Ping timeout: 245 seconds]
dmiller has joined #ruby
<shevy>
only tiny differences, in threads, I think, and perhaps file paths (but that is also easy when you know about them)
<shevy>
btw
<shevy>
why do you use:
<shevy>
self.InitializeComponent()
generalissimo has quit [Remote host closed the connection]
<shevy>
the self.
<shevy>
why
charliesome has joined #ruby
<nazty>
i didnt
<nazty>
sharpdevelop automated code
bricker_ has joined #ruby
rakl has joined #ruby
DaZ has joined #ruby
<shevy>
ewwwww
ToTo has quit [Ping timeout: 240 seconds]
<shevy>
it will always be better to use code written by yourself
<nazty>
was just checkin it out
<shevy>
I see
bricker has quit [Ping timeout: 245 seconds]
jeffreybaird has joined #ruby
cobragoat has quit [Remote host closed the connection]
MattRB has quit [Quit: This computer has gone to sleep]
dmiller has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
thansen has joined #ruby
<thansen>
is it possible with bundle/gem to specific a rbconfig.rb override file? at the user level
otters has quit [Ping timeout: 248 seconds]
<danneu>
nazty: maybe jruby + a java ui kit might work for you
karupanerura has quit [Excess Flood]
karupanerura has joined #ruby
banister_ has joined #ruby
banister`sleep has quit [Read error: Connection reset by peer]
moted has quit [Ping timeout: 245 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
keanehsiao has joined #ruby
<keanehsiao>
hi. anybody use eventamchine & goliath? I faced concurrent network connection issue while connections > 1024.. I tried epoll.. but didn't work…
nimred has quit [Ping timeout: 248 seconds]
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
prayag_verma has joined #ruby
prayag_verma has left #ruby [#ruby]
danneu has quit [Ping timeout: 240 seconds]
slainer68 has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
tjbiddle has joined #ruby
gurps has quit [Ping timeout: 248 seconds]
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
maxmanders has joined #ruby
slainer68 has quit [Ping timeout: 248 seconds]
gurps has joined #ruby
cableray has quit [Ping timeout: 256 seconds]
skcin7 has quit [Quit: Computer has gone to sleep.]
fyolnish_ has joined #ruby
fyolnish has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
quest88 has quit [Quit: quest88]
marr has joined #ruby
Bry8Star has quit [Quit:]
tjbiddle has quit [Quit: tjbiddle]
horofox has joined #ruby
maxmanders has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
horofox_ has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
<shevy>
do you guys prefer upcased, downcased or mixed case directory names?
horofox has quit [Ping timeout: 252 seconds]
horofox_ is now known as horofox
Umren has joined #ruby
agarie has joined #ruby
<shevy>
I currently have both upcased and downcased ones... for instance. YAML/ rather than yaml/
plotplanexe has joined #ruby
plotplanexe has quit [Changing host]
plotplanexe has joined #ruby
braoru has joined #ruby
planplotexe has joined #ruby
planplotexe has quit [Client Quit]
plotplanexe has quit [Client Quit]
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby
<louisror>
Hey Guise. I've got an £80,000 Senior Ruby-on-Rails developer role at one of the most desireable teams to work for in London + Multiple contracts at £300-400 /day onsite accross the UK if thats relevent to anyone at the moment? Msg for details - LouisRoR.com
oposomme has joined #ruby
plotplanexe has joined #ruby
nyuszika7h has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
jaequery has quit [Quit: Computer has gone to sleep.]
razibog has joined #ruby
hotovson has joined #ruby
conurb has left #ruby [#ruby]
nimred has quit [Ping timeout: 248 seconds]
oposomme has joined #ruby
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
Tux-Tn has joined #ruby
lolmaus has joined #ruby
banister_ has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
banister`sleep has joined #ruby
gutsiest60 has quit [Ping timeout: 248 seconds]
tjbiddle has joined #ruby
horofox_ has joined #ruby
gutsiest60 has joined #ruby
planplotexe has joined #ruby
plotplanexe has quit [Ping timeout: 248 seconds]
tjbiddle has quit [Client Quit]
horofox has quit [Ping timeout: 256 seconds]
horofox_ is now known as horofox
<louisror>
Hey Guise. I've got an £80,000 Senior Ruby-on-Rails developer role at one of the most desireable teams to work for in London + Multiple contracts at £300-400 /day onsite accross the UK if thats relevent to anyone at the moment? Msg for details - LouisRoR.com
timonv has joined #ruby
bricker has joined #ruby
QaDeS has joined #ruby
jds has joined #ruby
bricker_ has quit [Ping timeout: 248 seconds]
dmiller has joined #ruby
Xeago has joined #ruby
bcx has joined #ruby
telli has joined #ruby
dmiller has quit [Ping timeout: 248 seconds]
kn330 has quit [Ping timeout: 240 seconds]
moshee has quit [Ping timeout: 245 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
kn330 has joined #ruby
<Su-Shee>
shevy: a) YAML is an acronym and stays like it is, b) with any of your preferred http/ftp client modules or simply with wget/cURL and as this looks like FTP I'd simply actually use FTP (it comes with listing files commands out of the box..)
zz_chrismcg is now known as chrismcg
<shevy>
hmm good idea, let's see
artm has quit [Quit: artm]
artm has joined #ruby
kn330 has quit [Ping timeout: 255 seconds]
kn330 has joined #ruby
agarie has quit [Remote host closed the connection]
mneorr has joined #ruby
sayan has quit [Ping timeout: 256 seconds]
banister`sleep has quit [Ping timeout: 245 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<keanehsiao>
hi. anybody use eventamchine & goliath? I faced concurrent network connection issue while connections > 1024.. I tried epoll.. but didn't work…
rippa has quit [Read error: Connection reset by peer]
spinagon has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
emergion has quit [Ping timeout: 264 seconds]
<keanehsiao>
errr….. I think I have no time to switch to celluloid… since I use goliath and all stuff is depends on eventmachine…. ><
Takehiro_ has quit [Remote host closed the connection]
emergion has joined #ruby
RagingDave has joined #ruby
nimred has quit [Quit: leaving]
mnemon has joined #ruby
timonv has quit [Remote host closed the connection]
stayarrr has joined #ruby
<mnemon>
so, who forgot to renew modruby.net? ;)
sayan has joined #ruby
mneorr has quit [Remote host closed the connection]
Dakuan has joined #ruby
bcx has quit [Quit: Leaving.]
rakl has quit [Quit: sleeping]
Neomex has joined #ruby
horofox_ has joined #ruby
Neomex has quit [Client Quit]
maxmanders has joined #ruby
<emocakes>
mnemon?
<emocakes>
oh i see
<emocakes>
but why is it a 502?
<emocakes>
*503
horofox has quit [Ping timeout: 252 seconds]
horofox_ is now known as horofox
coderhut has quit [Quit: Page closed]
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
<louisror>
Hey Guise. I've got an £80,000 Senior Ruby-on-Rails developer role at one of the most desireable teams to work for in London + Multiple contracts at £300-400 /day onsite accross the UK if thats relevent to anyone at the moment? Msg for details - LouisRoR.com
reinaldob has joined #ruby
karasawa has joined #ruby
pcarrier has joined #ruby
Nss has joined #ruby
mengu has joined #ruby
browndawg has joined #ruby
gyre007 has quit [Remote host closed the connection]
rezzack has quit [Quit: Leaving.]
Spooner has joined #ruby
pcboy_ has quit [Ping timeout: 248 seconds]
hotovson has quit [Ping timeout: 245 seconds]
pcboy_ has joined #ruby
elico has joined #ruby
dmiller has joined #ruby
hotovson has joined #ruby
havenn has quit [Remote host closed the connection]
<shevy>
just all the hype surrounding... kde4 in the beginning (turned out it was too buggy to "excite" anyone for many months...), or the purposeful unusable unity crap being the "next great innovation that we all so wanted" ...
moted has joined #ruby
<emocakes>
last time I actually liked using a linux desktop was SuSe 10
<emocakes>
with KDE
<shevy>
ack
<shevy>
suse
<emocakes>
before it was opensuse
<emocakes>
suse is nice shevy
<emocakes>
for a desktop OS i think its suitable
<emocakes>
at least back then
<emocakes>
nowadays, I dunno
<emocakes>
i kinda agree with kde4
<emocakes>
*with you on kde4
stayarrr has quit [Quit: Leaving...]
<johngalt2600>
I'm a big fan of debian sid but it just doesnt work from virt-manager when you enable the clipboard with spice and qxl... so it's lubuntu or fedora for my vm... but yum is evil
samuel02 has joined #ruby
<shevy>
:(
<emocakes>
wasnt spice from plan9 john?
<Su-Shee>
.oO(slackware..)
<shevy>
everything should be elegant and beautiful, like ruby
<johngalt2600>
no clue
VanM has quit [Quit: Leaving]
<Su-Shee>
spice is from dune.
<johngalt2600>
spice as opposed to vnc
<emocakes>
im just not a big fan of gnome3
<emocakes>
or kde4
pcarrier has quit []
<emocakes>
id prefer windows 7 interface on top of linux
<emocakes>
that would be good
<johngalt2600>
eww... at least you didnt say windows 8... that's almost identical to the netbook interface in unity
<emocakes>
windows 8 metro UI is shit
<shevy>
hehe
<Su-Shee>
I love metro, it's the most beautiful UI I've ever worked with. amazing. and rather smooth if you come from Linux anyways.
<emocakes>
i like the desktop UI
Nss has quit [Remote host closed the connection]
<johngalt2600>
I'm not a fan of the network interface be it under M$ or linux
pac1 has joined #ruby
<johngalt2600>
netbook
timonv has quit [Read error: Connection reset by peer]
<johngalt2600>
or tablet interface.. whatever you want to call it
timonv_ has joined #ruby
pavilionXP has quit [Read error: Operation timed out]
<Su-Shee>
well I have my windowmanager configured similarily anyways for years, so I liked it.
Umren|2 has joined #ruby
Takehiro has joined #ruby
sepp2k has joined #ruby
Umren has quit [Ping timeout: 252 seconds]
pavilionXP has joined #ruby
horofox_ has joined #ruby
<shevy>
Su-Shee what is your windowmanager?
<Su-Shee>
fvwm again.
<shevy>
nice
<shevy>
that's similar to fluxbox right?
dickery has quit [Ping timeout: 248 seconds]
horofox has quit [Ping timeout: 248 seconds]
horofox_ is now known as horofox
<Su-Shee>
well it's a plain windowmanager so in that regard they're all similar..
<louisror>
Hey Guise. I've got an £80,000 Senior Ruby-on-Rails developer role at one of the most desireable teams to work for in London + Multiple contracts at £300-400 /day onsite accross the UK if thats relevent to anyone at the moment? Msg for details - LouisRoR.com
<johngalt2600>
lxde on this vm and testing cinnamon on mint as the host
<shevy>
Su-Shee dunno... fluxbox I liked... but things like ion or ratpoison I hated
<shevy>
xfce is ok too
baphled has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
<emocakes>
try out elementaryOS shevy
<emocakes>
in a vm
<emocakes>
its nice
<emocakes>
its the only UI i enjoy actually these days in linux
eldariof has joined #ruby
<emocakes>
havent tried mint in a while though
<emocakes>
it is a bit buggy
<emocakes>
already found 3 bugs
atno has joined #ruby
<shevy>
emocakes ok
<emocakes>
but thats beta :p
samuel02 has quit [Remote host closed the connection]
<shevy>
hmmmmm
diegoviola has joined #ruby
dmiller has joined #ruby
sporkbomb has joined #ruby
apeiros has quit [Remote host closed the connection]
clocKwize has quit [Quit: clocKwize]
baphled has quit [Ping timeout: 248 seconds]
browndawg has joined #ruby
Rym has joined #ruby
dmiller has quit [Ping timeout: 252 seconds]
Dann1 has joined #ruby
gyre007 has joined #ruby
dickery has joined #ruby
gyre007 has quit [Ping timeout: 248 seconds]
baphled has joined #ruby
<dickery>
Hey All ... I need some help with Ruby 1.8.7 and ordered hashes
_br_ has quit [Excess Flood]
horofox has quit [Remote host closed the connection]
horofox has joined #ruby
Dakuan has joined #ruby
horofox has quit [Read error: Connection reset by peer]
horofox has joined #ruby
baphled has quit [Ping timeout: 248 seconds]
oposomme has joined #ruby
<Spooner>
dickery, What is your issue? 1.9 hashes are ordered but 1.8.7 aren't
pcarrier has joined #ruby
horofox has quit [Client Quit]
_br_ has joined #ruby
<shevy>
dickery you could use .sort, then use an array in an array for output in 1.8.x
baphled has joined #ruby
<dickery>
shevy: I am loading a yaml file ... and then looping in it ... the out put is not in the arrangement as expected
BulleTime has joined #ruby
horofox has joined #ruby
<dickery>
I saw that 1.9 takes care of it ... ut I am kinda stuck with 1.8.7
<Spooner>
dickery, Yes, 1.8.7 hashes aren't ordered and won't be in the order they are in the file.
<shevy>
dickery told you to use .sort
<shevy>
.sort_by
Dakuan has quit [Ping timeout: 248 seconds]
<Spooner>
shevy, That assumes that the hash is ordered in the yaml in a measurable way, not just in the order they should be used.
love_color_text has quit [Remote host closed the connection]
<shevy>
why? he can .sort any way he wants to
Takehiro has joined #ruby
<Spooner>
shevy, Ordered hashes have nothing to do with being sorted. They are the order you put them in.
<dickery>
right .. and that's my problem :)
<Spooner>
shevy: { a: 5, c: 7, b: 4} can't be manually sorted to that order, but hey, it might be the order I want to iterate through.
<shevy>
hmm
louisror has quit [K-Lined]
oposomme has quit [Quit: Leaving...]
<Spooner>
dickery, I'm afraid you are stuck really in 1.8.7. If it matters, the YAML should be arranged as an array of hashes [{a: 5}, {c: 7}, {b: 4}].
spinagon has joined #ruby
rippa has quit [Read error: Connection reset by peer]
<Spooner>
or [{name: 'a', value: 5}, ...] perhaps. I don't know what your data is.
Takehiro has quit [Remote host closed the connection]
<emergion>
When developing gems, how do most people quickly test their code? surely not a full gem build && gem install ?
<Spooner>
emergion, rake spec
BulleTime has quit [Ping timeout: 256 seconds]
<Spooner>
emergion, or ruby -Ilib bin/command
<Hanmac1>
emergion & Spooner i use rake + unittests
daniel_- has quit [Ping timeout: 255 seconds]
<emergion>
Hanmac1, yeah I guess if you code coverage is that awesome, you know it's going to work.
<emergion>
Spooner, yeah I've used that method before, from memory it didnt take arguments
<emergion>
cheers though, will try again
vlad_sta_ has joined #ruby
Hanmac1 is now known as Hanmac
horofox_ has joined #ruby
baphled has quit [Ping timeout: 252 seconds]
horofox has quit [Ping timeout: 252 seconds]
horofox_ is now known as horofox
vlad_starkov has quit [Ping timeout: 245 seconds]
bergelmir has joined #ruby
_br_ has quit [Excess Flood]
oposomme has joined #ruby
<shevy>
RubyOS RubyOS RubyOS
_br_ has joined #ruby
pskosinski has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
_br_ has quit [Excess Flood]
daniel_- has joined #ruby
_br_ has joined #ruby
<bergelmir>
is it okay to have only attr_accessors in a dto? (noob question)
<Hanmac>
bergelmir you may want to look at Struct or OpenStruct, it does everything for you
<shevy>
bergelmir what is a data transfer object, is that a special object
_br_ has quit [Excess Flood]
<shevy>
attr_accessor :foo is exactly the same as doing: def foo; @foo; end and def foo=(i); @foo = i; end
pcarrier has quit []
<bergelmir>
shevy: yeah and you have only accessors and mutators in a dto
itsdavem has joined #ruby
<Hanmac>
huch, what are mutators?
banister`sleep has joined #ruby
<shevy>
lol
lateau has quit [Read error: Connection reset by peer]
<shevy>
he uses funny words :)
<carlzulauf>
sounds like java speek
<shevy>
"my object has mutators"
<shevy>
I thought java was classic:
<shevy>
getter & setter
<shevy>
my objects tend to have epic, chromic 2.0 mutators
<bergelmir>
read the wikipedia article which is quite influenced by java
<carlzulauf>
I remember using DTOs, DAOs (Data Access OBject), SAOs (Service Access Object) and terms like that in Java
Cooler__ has joined #ruby
<shevy>
Computer science: "A mutator method, an object method that changes the state of the object"
<shevy>
bergelmir since @ivars are state, every method that changes an @ivar is a mutator method. so sure, attr_accessor and attr_write are "mutator methods"
_br_ has joined #ruby
<shevy>
I dont get the difference to a setter however
<bergelmir>
Hanmac: Struct and OpenStruct feel a bit unspecific...
horofox_ has joined #ruby
horofox_ has quit [Client Quit]
samphippen has joined #ruby
horofox has quit [Ping timeout: 252 seconds]
<bergelmir>
Hanmac: because you know that a User has a name, but you don't know if a (Open-)Struct has a name attribute.
<carlzulauf>
OpenStruct is maybe unspecific, but Struct is pretty specific
Banistergalaxy has quit [Ping timeout: 256 seconds]
_br_ has joined #ruby
clocKwize has joined #ruby
<Spooner>
bergelmir, User = Struct.new(:name) gives User the attribute name. Openstruct is just a layer over a hash, but Struct sounds like what you want.
Banistergalaxy has joined #ruby
<bergelmir>
okay, then you need to setup a "factory" to be able to create those objects at multiple places
<Spooner>
bergelmir, Or class User < Struct.new(:name); end to define it as a formal class.
_bart has joined #ruby
_br_ has quit [Excess Flood]
<carlzulauf>
you can even give it some additional methods using Spooner's example
_br_ has joined #ruby
<shevy>
one day I wanna make a mud in ruby using structs alone
<Spooner>
carlzulauf, Wouldn't be a DTO if it did anything but store data.
<carlzulauf>
I was thinking some serialization method or something
<carlzulauf>
but maybe that concern should live elsewhere
johngalt2600 has quit [Quit: Leaving]
<Hanmac>
Spooner User = Struct.new(:name) { } is better than your sample
Dakuan has joined #ruby
statarb3 has joined #ruby
<Xeago>
Hanmac: mind elaborating?
<shevy>
an empty block!
<shevy>
only sushi is better than an empty block
statarb3 has quit [Client Quit]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
ddv has quit [Ping timeout: 240 seconds]
_br_ has quit [Excess Flood]
<bergelmir>
Spooner's example (class User ...) feels like a matching solution for my needs :)
<Hanmac>
Xeago & bergelmir: spooner creates an anonymus class and uses this as parent, in my sample no anon class is maked
albakry has joined #ruby
_br_ has joined #ruby
dmiller has joined #ruby
<Spooner>
Hanmac, I agree, but my version is more comfortable :D
<bergelmir>
why are your Struct examples better than this? class User attr_accessfor :name, :email end
daniel_- has quit [Read error: Operation timed out]
<Spooner>
bergelmir, Because they are more concise and also they generate an initialize for you.
<bergelmir>
"they generate an initialize"?
elaptics is now known as elaptics`away
<Spooner>
User = Struct.new(:name, :address) => class User; attr_accessor :name, :address; def initialize(name, address); @name, @address = name, address; end; end
<Spooner>
bergelmir, It is all just sugar though. But it is just like using attr_accessor rather than manually writing two methods. Ruby people are lazy.
<shevy>
hehe
<Spooner>
bergelmir, Yes.
ddv has joined #ruby
dmiller has quit [Ping timeout: 256 seconds]
pcarrier has joined #ruby
<bergelmir>
i know i need to create a dto with about 10 attributes... an initialize with 10+ parameters feels a bit ugly
Banistergalaxy has quit [Ping timeout: 245 seconds]
<Spooner>
bergelmir, Then what else do you suggest for initialisation?
<bergelmir>
passing a hash? :D
main has joined #ruby
<canton7>
yeah, I'd go with a hash
<Spooner>
Openstruct takes a hash :D
almondo has quit [Quit: Leaving]
Banistergalaxy has joined #ruby
<Spooner>
Or just pass a hash. Perfectly designed as a DTO :D
lateau has joined #ruby
_br_- has joined #ruby
johngalt2600 has joined #ruby
banister_ has joined #ruby
_br_- has quit [Excess Flood]
banister`sleep has quit [Ping timeout: 252 seconds]
<bergelmir>
but you don't know how a normal hash looks like. what attributes does it have?
_br_ has joined #ruby
<Spooner>
hash.keys
<bergelmir>
you don't want to check for every key if it is available or npot
<Hanmac>
bergelmir & Spooner i often use this: User = Struct.new(:a,:b,:c) { def initialize(hash); super(*self.class.members.map{|k|hash[k]});end }
<bergelmir>
not*
banister`sleep has joined #ruby
<shevy>
wow that is some ugly shit
banister_ has quit [Read error: Connection reset by peer]
<shevy>
Hanmac I love you man but you have this tendency to collect the WEIRD and FREAKY ruby code
apeiros has joined #ruby
sayan has quit [Read error: Connection reset by peer]
Dakuan has quit [Remote host closed the connection]
* bergelmir
is quite amused about this discussion :)
<carlzulauf>
that's a pretty sweet line of code i think Hanmac
Dakuan has joined #ruby
osaut has joined #ruby
maxmanders has joined #ruby
_br_ has quit [Excess Flood]
timonv_ has quit [Remote host closed the connection]
timonv has joined #ruby
pavilionXP has quit [Read error: Connection reset by peer]
maxmanders has quit [Client Quit]
TomyLobo has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
Dakuan has quit [Ping timeout: 240 seconds]
_br_ has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
_br_ has quit [Excess Flood]
mityaz has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
mengu has joined #ruby
lateau has quit [Remote host closed the connection]
banister`sleep has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
ashp has joined #ruby
<ashp>
I have a bit of a weird question/issue I thought I'd beg for help on. I have a hash and using erb I need to print that hash into the template but with the full ruby syntax to make it cut and pastable back into ruby (so <%= hash %> just mangles it into a long string)
<ashp>
What I'm actually doing is using a series of templates to build one larger template that gets rendered (don't ask, its awful)
gyre007 has joined #ruby
<ashp>
maybe could just pretty print the hash in <% %>
_br_ has quit [Excess Flood]
pac1 has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
_br_ has joined #ruby
iamjarvo has joined #ruby
solidoodlesuppor has joined #ruby
BulleTime has joined #ruby
solidoodlesuppor has quit [Client Quit]
_br_ has quit [Excess Flood]
S2kx has quit [Quit: Leaving]
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
_br_ has joined #ruby
Onii-san has quit [Ping timeout: 245 seconds]
dickery has quit [Quit: Leaving.]
filemon_CZ has joined #ruby
<Spooner>
ashp, hash.inspect
Onii-san has joined #ruby
vsh_ has joined #ruby
vsh_ has left #ruby [#ruby]
kumarat9pm has joined #ruby
solidoodlesuppor has joined #ruby
<kumarat9pm>
is there any . or , in ruby?
<kumarat9pm>
like we have in Perl when printing?
<Spooner>
kumarat9pm, Not sure what you mean.
_br_ has quit [Excess Flood]
<ashp>
Spooner: oh hmm, that might be much better, let me give tha ta whirl, thanks
<Spooner>
kumarat9pm, Oh, you can just use + with strings.
<kumarat9pm>
We can combine multiple print commands in Perl by using .
<kumarat9pm>
ohh ok..!
Virunga has joined #ruby
vsh_ has joined #ruby
<Spooner>
kumarat9pm, Though we usually interpolate with #{} in the string.
<kumarat9pm>
thanks Spooner.. let me check it..
<Spooner>
kumarat9pm, Been a long time since I did any Perl. Wasn't getting you!
<ashp>
Spooner: Nice! I think that'll do it :)
maxmanders has joined #ruby
<kumarat9pm>
ok..
<kumarat9pm>
!
Paradox has quit [Ping timeout: 244 seconds]
<kumarat9pm>
Ya + is working..
<kumarat9pm>
thanks..
swex_ has quit [Read error: Operation timed out]
_br_ has joined #ruby
joofsh has joined #ruby
Kuifje has quit [Read error: Connection reset by peer]
Jacky has joined #ruby
<Spooner>
ashp, In 1.9, hashes print properly without needing to be inspected. Assume you are on 1.8.7?
Kuifje has joined #ruby
<ashp>
Spooner: No, this is 1.9.1
jgrimes` has joined #ruby
<ashp>
I'm using erb via puppet to do some evil so that may be complicating things
<Spooner>
ashp, 1.9.1? I didn't think anyone used that.
<ashp>
er, 1.9.3, sorry
<ashp>
debian calls it 1.9.1 for some horrible reason all over the place
<Spooner>
Oh right. Odd. Hash#to_s should already have printed it out correctly.
<Dwarf>
Good afternoon
<Dwarf>
Is it possible to have the output of eval() in a variable?
<ashp>
http://pastebin.com/GJfeRsk5 is what I'm writing and then trying to render locally but it still fails, so not quite there
<Spooner>
ashp, Yeah, all the 1.9 versions are compatible with 1.9.1 library, which is why it uses that name. Confusing indeed.
<ashp>
The idea was to write an empty hash at the top, an arbitary number of hashes get injected, and the bottom of the template renders the merged set of hashes into json
<ashp>
it's awful but I'm working within some tight confines
<Spooner>
Dwarf, Not sure what you mean. Surely just "x = eval 'bleh'"
<Dwarf>
That'd work?
<Spooner>
Dwarf, But most of the time you don't need to use eval in Ruby.
<lazyPower>
Completely unrelated to anything, but i'm so jazzed. I'm really close to automating a process that is gonna knock out six hours of someones day.
<JoeHazzers>
what process is this?
<Spooner>
lazyPower, So you are making someone unemployed then? :D
carloslopes has joined #ruby
jgrimes` is now known as jgrimes
<lazyPower>
Fetching call center recordings for a client within date-range of x and y -- serialize data in XML - in a format that performmatch can understand -- they ahve pretty rough guidelines on what they accept :|
<ashp>
lazyPower: ask for 20% of their salary, monthly, to destroy the progran
<Dwarf>
Sweet that worked. Thanks Spooner
pcarrier has joined #ruby
<lazyPower>
also it pipes out to sox to encode the call as one file.
jonahR has joined #ruby
<lazyPower>
we have these terrible serivices we climbed into early on - and are in the process of replacing but its not there yet, so all these clients we are onboarding are demanding integration and i'm starting to drop chef and some ruby scripts to accomplish the translations while we build our new asterisk box.
<lazyPower>
but ipso facto - jazzed that this is coming together
timonv has quit [Remote host closed the connection]
<Spooner>
Dwarf, As I said though, the likelihood is that you don't actually need to eval any code.
<Dwarf>
But I do :)
timonv has joined #ruby
daniel_- has joined #ruby
<Dwarf>
So this is very useful to remotely debug my program
jeffreybaird has joined #ruby
<Spooner>
Dwarf, Look at pry and the remote debugging in that.
<ashp>
OK, asking this to anyone who's bored. can anyone spot a problem in http://pastebin.com/kQ9iJcxh ? It fails to render via erb, it just freaks out about an ';' that doesn't exist in the template :/
<ashp>
If I remove the contents of the hash it still fails so it's not a broken hsah
chachin has joined #ruby
<chachin>
lol
<chachin>
I have a request for anyone who wants to be cool
xAndy is now known as xandy
Dakuan has quit [Ping timeout: 246 seconds]
jackyalcine has joined #ruby
<chachin>
someone get me a list from imgur.com/r/nsfw please get as many links as you can
<chachin>
then pm
chachin has left #ruby [#ruby]
<Dwarf>
I have a list with 303 pair of boobs
<Dwarf>
Does that count?
<ashp>
hahaha
<ashp>
poor chachin, bad at finding porn
<Dwarf>
All imgur links
<Spooner>
ashp lms-auth isn't a valid identifier. Try lms_auth
<Dwarf>
Why did he part tho?
<ashp>
Spooner: I just found that via irb! thanks :)
jasondotstar has joined #ruby
noyb has joined #ruby
xsarin has joined #ruby
<Spooner>
ashp and hash.merge! is meaningless unless hash has something in it to begin with.
<ashp>
Spooner: The idea was that there'll be several blah = {} and hash.merge(blah) statements
<ashp>
so it'll be empty the first time, get a hash merged in, then additional hashes
<Spooner>
OK.
<ashp>
(this is all a bit weird as it's in the context of puppet modules passing in snippets to the template
pcarrier has quit []
<ashp>
Oh hmm, I can't do hash.sort.keys
abstrusenick has joined #ruby
<ashp>
maybe just hash.sort is enough
<Spooner>
Hash.sort gives you an array.
xandy is now known as xAndy
baphled has joined #ruby
<ashp>
Hmm, Maybe I need to do a deep sort before rendering it (otherwise I get puppet diffs every time)
spinagon has quit [Read error: Connection reset by peer]
rippa has joined #ruby
xsarin has quit [Quit: xsarin]
maxmanders has quit [Quit: Computer has gone to sleep.]
chachin has joined #ruby
JumpMast3r has joined #ruby
<workmad3>
ashp: hash.keys.sort may give you a consistent order to access the hash via
yshh has quit [Remote host closed the connection]
emocakes has quit [Quit: emocakes]
yshh has joined #ruby
<ashp>
workmad3: Will play around, basically I just want the JSON.pretty_generate(hash) to be consistant and not reorder the keys around
forced_request has joined #ruby
hoolandi has quit [Ping timeout: 248 seconds]
pac1 has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
<workmad3>
ashp: I'm guessing you're using ruby 1.8?
<ashp>
No, that's the weird thing, using 1.9.3
<ashp>
but every time we do a pretty_generate() it reorders things
<ashp>
we moved to 1.9 specifically to fix that :)
<workmad3>
heh
<workmad3>
well, the order in 1.9 is fixed to insert order... so at a guess, whatever is generating the hash is adding items in a non-deterministic order
<ashp>
before we had a puppet template that set up a hash in a fixed order, then had a bunch of if's to add additional entries
<ashp>
so that would have created them in an identical order, I suppose, it's been a hard one to track down
<workmad3>
yeah, I dislike attempting to use hashes in any sort of ordered way
<workmad3>
even in 1.9
jeffreybaird has quit [Quit: jeffreybaird]
timonv_ has quit [Remote host closed the connection]
timonv has joined #ruby
noyb has quit [Ping timeout: 255 seconds]
anonymuse has joined #ruby
<Spooner>
ashp Hashes aren't inherently ordered. They just happen to be in Ruby 1.9, but a json generator wou;ldn't have to preserve that order.
<yfeldblum>
ashp, you can define a module HashWithLexicographicallySortedIteration which defines #each, and then traverse your nested data structure and extend each Hash instance with that module
<yfeldblum>
ashp, you can even write HashWithLexicographicallySortedIteration.traverse_and_extend_each_hash_in(some_data_structure)
<ashp>
It's ok, my entire plan with this hash has just come horribly unravelled I think thanks to a limitation in other software.
<ashp>
yfeldblum: I could but this is just happening via erb so it would be a pain having a huge chunk of code. I'd rather just tell people they have to put up with changing orders in the output :)
daniel_- has quit [Read error: Connection reset by peer]
nfk has quit [Quit: yawn]
daniel_- has joined #ruby
qohelet_ has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
F1skr has joined #ruby
BizarreCake has joined #ruby
tokyo has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<chachin>
hey anyone know how to use ruby to get a list from imgur.com like i want a list from r/nsfw/ i wanna get all of the links from that place :o
Bry8Star has joined #ruby
nfk has joined #ruby
pcarrier has joined #ruby
kumarat9pm has left #ruby [#ruby]
marr has quit [Read error: Connection reset by peer]
albakry has quit [Quit: Leaving]
EPIK has joined #ruby
joshcheek has joined #ruby
rippa has quit [Read error: Connection reset by peer]
yoshie902a has joined #ruby
rippa has joined #ruby
<joshcheek>
Anyone willing to help me out w/ a C level question? Specifically: how do I associate my C data structure to my Ruby object.
<yoshie902a>
what regsx engine is used in ruby?
<yoshie902a>
s/regx/regex
BizarreCake has quit [Ping timeout: 240 seconds]
<canton7>
Oniguruma since 1.9.2, I believe
chachin has left #ruby [#ruby]
emocakes has joined #ruby
<yoshie902a>
canton7: thanks
mosesaro has joined #ruby
artm_ has joined #ruby
diegoviola has quit [Ping timeout: 245 seconds]
rippa has quit [Read error: Connection reset by peer]
<joshcheek>
Nvm, think I figured it out. The data structure isn't attached to the obj, the data structure _is_ the obj, so I have to override its memory allocation function to account for that.
Dakuan has joined #ruby
anonymuse has quit [Quit: Leaving.]
jds has quit [Remote host closed the connection]
Vert has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby
b1rkh0ff has joined #ruby
Xeago has quit [Remote host closed the connection]
<preyalone>
Hanmac: To be clear, I intend for this program to print out the individual characters of "Hello World!" and mix them up as a result of concurrency.
<Spooner>
preyalone, You could use to_a, but that wouldn't work in 1.9 and 1.9s #chars won't work in 1.8, which is why I used split.
<preyalone>
to_a results in the same behavior: it only prints "H"
<Spooner>
What I suggested works fine and prints all the letters out of sequence.
dr_neek has quit [Read error: Connection reset by peer]
dr_neek has joined #ruby
<Hanmac>
preyalone let me guess, you still use to_a right? :D
<Hanmac>
my code works because i dont use to_a :D
<preyalone>
Spooner: Thanks
<Spooner>
preyalone, Unlike in C, you can't consider a string as just an array of characters.
<preyalone>
Spooner: :( But reusable data structures are so useful and intuitive :(
<Hanmac>
infomation: the to_a of 1.8 strings uses each, which is an each_line, what why "string".to_a does not work for him
<Hanmac>
Parallel.map("Hello World!\n".split(//)) { |c| putc c } #<< this line works
<Spooner>
Ah, I see. I knew mine was working; not why preyalone's wasn't :D
<Spooner>
Life is too short for me to test it in 1.8.7 too ;D
hackerdude has joined #ruby
v0n has quit [Read error: Operation timed out]
<Spooner>
preyalone, If you are learning Ruby, use 1.9.3. 1.8.7 is just for legacy projects.
<Hanmac>
or in other words: 1.8.7 is for dead projects
<preyalone>
Spooner: I'm comfortable in Ruby; I just haven't kept up with the 1.9 changes, and I made the mistake of trying Parallel.map without looking up its interface details.
<Spooner>
preyalone, Ah, I thought you'd seen the examples used arrays of characters and thus just passed a string thinking it was equivalent (which it is in many languages).
<preyalone>
Spooner: Or that either Ruby or Parallel.map was smart enough to call to_a beforehand.
<preyalone>
Gah, why doesn't to_a work as expected on strings???
<emocakes>
yes preyalone :p
<Spooner>
preyalone, Code isn't psychic, you know :D
<Hanmac>
preyalone: have you something in your ears? string.each iterates though lines, not chars!
maxmanders has quit [Quit: Computer has gone to sleep.]
<preyalone>
Spooner: No, but it would make Ruby that much more intuitive if the developers rounded the edges between Strings and Arrays
baphled has quit [Ping timeout: 252 seconds]
<preyalone>
Hanmac: If Strings aren't extending Arrays, it would be better to not have a String.each method (ambiguous), and simply provide .lines, .words, .chars, etc
<preyalone>
I think I'm only using Ruby 1.8.7 because it's the Mac OS X builtin.
AsgardBSD has quit [Ping timeout: 244 seconds]
<Hanmac>
preyalone and that is (except for words) the same as ruby allready did with 1.9.*
Spooner has quit [Remote host closed the connection]
<banisterfiend>
preyalone: that's what ruby 1.9 does
<preyalone>
sweet
<banisterfiend>
preyalone: they got rid of String#each, and you have to use String#chars and String#lines
<preyalone>
Is there a tool for checking 1.9 compliance?
<Hanmac>
string has this methods each methods: [:each_line, :each_byte, :each_char, :each_codepoint] and its aliases: [:lines, :bytes, :chars, :codepoints]
Spooner has joined #ruby
<banisterfiend>
preyalone: sure, it's called 'running your program on 1.9, if your tests pass, then it's compliant' :)
<banisterfiend>
preyalone: but seriously, i think there's a couple of gems that can do a cursory scan and find a few things, but not everything
<preyalone>
banisterfiend: Oh, I know. Your response is reasonable, but it is helpful to have static checkers.
<preyalone>
How does String.to_a work in 1.9? (brew installing ruby now)
moos3 has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
<Hanmac>
preyalone: it does not, we use string.each_char.to_a or string.each_line.to_a
d2dchat has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
Spooner has quit [Remote host closed the connection]
horofox has quit [Quit: horofox]
jblack has joined #ruby
<preyalone>
Hanmac: Excellent
havenn has joined #ruby
haxrbyte has joined #ruby
<Hanmac>
must mostly we use the return of each_char directly
Spooner has joined #ruby
<preyalone>
... and string.each_char.to_a would be redundant?
breakingthings has joined #ruby
<Hanmac>
no, because each_char returns an enumerator, not an array
joofsh has quit [Remote host closed the connection]
breakingthings has quit []
joofsh has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Remote host closed the connection]
gyre008 has joined #ruby
cobragoat has joined #ruby
spinagon has quit [Read error: Connection reset by peer]
huoxito has joined #ruby
rippa has joined #ruby
baphled has quit [Ping timeout: 246 seconds]
uris has joined #ruby
mneorr has joined #ruby
sayan has quit [Ping timeout: 245 seconds]
jaequery has quit [Quit: Computer has gone to sleep.]
serhart has joined #ruby
Kuifje has quit [Read error: Connection reset by peer]
rippa has quit [Read error: Connection reset by peer]
TheLegace has quit [Quit: Leaving]
rippa has joined #ruby
Kuifje has joined #ruby
xsarin has quit [Quit: xsarin]
aaronmacy has joined #ruby
yakko has quit [Quit: No Ping reply in 180 seconds.]
yakko has joined #ruby
kiyoura has joined #ruby
a3rdcoast has joined #ruby
Beoran__ has quit [Read error: Connection reset by peer]
breakingthings has joined #ruby
f03lipe has joined #ruby
xsarin has joined #ruby
joeycarmello has quit [Ping timeout: 248 seconds]
BizarreCake has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
Spitfire has quit [Ping timeout: 246 seconds]
digitalcakestudi has joined #ruby
Spitfire has joined #ruby
Spitfire has quit [Excess Flood]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
DavidLevin has left #ruby [#ruby]
slainer68 has joined #ruby
aantix has quit [Quit: aantix]
Spitfire has joined #ruby
jblack has quit [Ping timeout: 252 seconds]
aantix has joined #ruby
Dwarf has quit [Ping timeout: 246 seconds]
adkron has joined #ruby
<RubyPanther>
in the original Pragmatic Programmer book they talked about taking the time to build things in a way so that you can extend it easily, because you'll always have things to add later. And this is the true laziness. Then you're laying in the shade drinking lemonade and you're asked for a change and no problem, 5 minutes from the lounger.
chrismcg is now known as zz_chrismcg
Spitfire has quit [Ping timeout: 246 seconds]
<RubyPanther>
So we're talking, some sort of modular clothing receptacle for sorting socks. No need to manage piles.
Dwarf has joined #ruby
osaut has quit [Quit: osaut]
Spitfire has joined #ruby
Kuifje has quit [Read error: Connection reset by peer]
kold_ has joined #ruby
<RubyPanther>
And if you're trying to attract a geek as a mate, build a giant barn full of generic modular receptacles of all sizes, ready to assemble. Shows nesting prowess.
Kuifje has joined #ruby
soulcake has joined #ruby
apeiros has joined #ruby
swingha has quit [Quit: WeeChat 0.3.9.2]
yakko has quit [Quit: No Ping reply in 180 seconds.]
soulcake has quit [Client Quit]
yakko has joined #ruby
mneorr has quit [Remote host closed the connection]
healpay has joined #ruby
dr_neek has quit [Read error: Connection reset by peer]
dr_neek_ has joined #ruby
cantonic has quit [Quit: cantonic]
soulcake has joined #ruby
osaut has joined #ruby
soulcake has quit [Client Quit]
telli has quit [Remote host closed the connection]
jduan1981 has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
awarner has joined #ruby
cantonic has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
adkron has quit [Ping timeout: 256 seconds]
jds has joined #ruby
Kuifje has quit [Read error: Connection reset by peer]
moos3 has joined #ruby
aantix has quit [Quit: aantix]
artm has quit [Remote host closed the connection]
artm has joined #ruby
Kuifje has joined #ruby
fyolnish_ has quit [Remote host closed the connection]
generalissimo has joined #ruby
jimmyy has quit [Ping timeout: 246 seconds]
Cooler__ has quit [Ping timeout: 252 seconds]
joofsh has quit [Remote host closed the connection]
dickery has quit [Quit: Leaving.]
dwn has joined #ruby
joofsh has joined #ruby
dwn has joined #ruby
rippa has quit [Ping timeout: 252 seconds]
chriskk has joined #ruby
joeycarmello has joined #ruby
baphled has joined #ruby
mahmoudimus has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
joeycarmello has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
keanehsiao has joined #ruby
jimmyy has joined #ruby
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
fyolnish has joined #ruby
jim762004 has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
thufir_ has joined #ruby
mneorr has joined #ruby
jimmyy has joined #ruby
vlad_starkov has joined #ruby
jim762004 has left #ruby [#ruby]
keanehsiao has quit [Ping timeout: 245 seconds]
tjbiddle has joined #ruby
yakko has quit [Quit: No Ping reply in 180 seconds.]
tjbiddle has quit [Client Quit]
yakko has joined #ruby
jds has quit [Remote host closed the connection]
X-Jester has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
_bart has quit [Quit: _bart]
fuzai has quit [Quit: Leaving]
otherj has joined #ruby
otherj has quit [Changing host]
otherj has joined #ruby
otherj has quit [Client Quit]
joeycarmello has quit [Remote host closed the connection]
soulcake has joined #ruby
joeycarmello has joined #ruby
hoolandi1 has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
Kuifje has quit [Read error: Connection reset by peer]
jds has joined #ruby
tommyvyo has joined #ruby
soulcake has quit [Client Quit]
Kuifje has joined #ruby
soulcake has joined #ruby
soulcake has quit [Client Quit]
jenrzzz has quit [Ping timeout: 244 seconds]
osaut has quit [Quit: osaut]
yakko has quit [Quit: No Ping reply in 180 seconds.]
yakko has joined #ruby
moos3 has joined #ruby
TIBS02 has joined #ruby
kold_ has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
moos3 has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
mpfundstein has quit [Ping timeout: 244 seconds]
dwu1 has joined #ruby
Dakuan has quit [Remote host closed the connection]
Dakuan has joined #ruby
advorak has joined #ruby
proj has joined #ruby
proj has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Dakuan has quit [Ping timeout: 248 seconds]
aaronmacy has quit [Quit: Leaving.]
jenrzzz has quit [Ping timeout: 256 seconds]
qohelet_ has quit [Quit: qohelet_]
yakko has quit [Quit: No Ping reply in 180 seconds.]
yakko has joined #ruby
cantonic has quit [Quit: cantonic]
Morkel_ has joined #ruby
elico has joined #ruby
cantonic has joined #ruby
<hackeron>
hey, I have a weird problem
artm_ has joined #ruby
<hackeron>
from time to time, when I run rspec - it's just a small ruby project with a single file and a single rspec file, it shows this: /usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.12.2/lib/rspec/core/configuration.rb:976:in `require': No such file or directory - /usr/????y (Errno::ENOENT)
<hackeron>
my Gemfile just has serialport active_support rspec and pry
<hackeron>
any ideas what is going on?
Morkel has quit [Ping timeout: 240 seconds]
Morkel_ is now known as Morkel
janjos has quit [Ping timeout: 255 seconds]
cantonic has quit [Client Quit]
Criztian has joined #ruby
artm has quit [Read error: Operation timed out]
artm_ is now known as artm
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
mdw has joined #ruby
mpfundstein has joined #ruby
hoolandi1 has quit [Quit: Leaving.]
<advorak>
I am using the headless gem .... is there a way using the headless gem to specify an x startup script?
keanehsiao has joined #ruby
jackmackg has left #ruby [#ruby]
hoolandi has joined #ruby
osaut has quit [Quit: osaut]
Axsuul has joined #ruby
jimeh has joined #ruby
generalissimo is now known as matt_ryan_fan
huoxito has quit [Quit: Leaving]
keanehsiao has quit [Ping timeout: 245 seconds]
eykosioux has quit [Quit: eykosioux]
jduan1981 has quit [Quit: jduan1981]
guilleiguaran has joined #ruby
caleb_io has joined #ruby
fyolnish has quit [Remote host closed the connection]
cirwin has joined #ruby
albakry has joined #ruby
BoobBoo has joined #ruby
<BoobBoo>
hi all
<BoobBoo>
Does anyone know of a good gem or example of managing Windows users in Ruby?
aaronmacy has joined #ruby
adeponte has joined #ruby
rakl has joined #ruby
hotovson has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
<apeiros>
CrawfordComeaux: step 1 & 2 you should probably follow. from then on, follow http://rvm.io
Giorgio has joined #ruby
<mdel>
Spooner: ah, I dont have a module
<apeiros>
CrawfordComeaux: the guide you linked may be out of date. rvm.io won't be.
<mdel>
just class PostAdapter::Twitter
<mdel>
to fit with rails model autoloading
<Spooner>
mdel It is the same for nested classes.
<mdel>
ok
<apeiros>
epochwolf: only if you prepare it. e.g. foo = proc { foo } # works
IrishGringo has joined #ruby
havenn has quit [Ping timeout: 252 seconds]
<epochwolf>
apeiros: sweet
<apeiros>
epochwolf: I don't think it's possible otherwise
matt_ryan_fan has joined #ruby
<CrawfordComeaux>
apeiros: yeah...I have 1 & 2 covered....I may be new to ruby, but not to coding. I shouldn't have to be told to go to the main site of a language or its most common tools :P
<Spooner>
mdel, I'd suggest that maybe your string is wrong (or wrong case).
<Spooner>
If you have defined it as class PostAdapter::Twitter rather than module PostAdapter; class Twitter, then it won't find it. Don't use :: in class defs, but nest them.
<Spooner>
mdel yeah, it is finding ::Twitter, not PostAdapter::Twitter
<mdel>
Spooner: ok, I'll test that
thone has joined #ruby
fyolnish has quit [Ping timeout: 256 seconds]
<mdel>
I only defined the class that way because it was suggested somewhere that was the proper way to define classes in subdirectories of the model dir
_bart has joined #ruby
<Spooner>
mdel, Nah, if you do class A::B then it won't find B with A.const_get("B")
<Spooner>
It has confused me before!
hoolandi has quit [Ping timeout: 255 seconds]
<banisterfiend>
Spooner: are u sure?
<mdel>
perhaps it wont find it if you havent actually defined class A
samuel02 has joined #ruby
<mdel>
just A::B
<canton7>
trying to define A::B without first defining A errors for me
thone_ has quit [Ping timeout: 240 seconds]
<mdel>
yeah in IRB same for me canton7
<mdel>
but in my app it does not
ChampS666 has joined #ruby
quest88 has quit [Quit: quest88]
* mdel
is confused
<canton7>
I swear it's errored in apps for me too
<graft_>
Spooner: that's wrong
<Spooner>
banisterfiend, Not so much ;)
<canton7>
so I suspect you're defining A *somewhere*...
<canton7>
or someone is
<graft_>
A.const_get(:B) will give you A::B if you do module A; class B; end;end
<Spooner>
graft, I didn't say that. I said that is how you should be doing it.
<graft_>
ah didn't read that far back :P
karasawa has joined #ruby
dickery has joined #ruby
<Spooner>
It was doing class A::B; end not nesting that I thought was the problem.
<banisterfiend>
Spooner: do u play any RTS? what about command and conquer?
pu22l3r has joined #ruby
<Spooner>
banisterfiend, Not C&C, no. Wargame: EE and MoW are more my style ;)
<banisterfiend>
Spooner: never heard of them, what is mow?
<graft_>
class A::B; end; A.const_get(:B) seems to work too
<canton7>
and since you're chaining, you're using the returned value and don't want to be mutating the object anyway
<canton7>
(assuming the bang method mutates)
<mdel>
yup, I have seen my error
<mdel>
no point mutating there
clocKwize has quit [Quit: clocKwize]
albakry has quit [Quit: Leaving]
pu22l3r has quit [Remote host closed the connection]
<frowni>
Ruby is not good for game dev. right?
HAKEON has left #ruby [#ruby]
<Spooner>
frowni, Depends what you want to do ;)
dickery has joined #ruby
chrismhough has joined #ruby
reinaldob has joined #ruby
<mdel>
"The other important detail is that if you have nested namespaces, the outer namespace gets fully resolved before the inner namespaces have a chance to trip const_missing. "
Morkel has quit [Quit: Morkel]
atno has quit [Remote host closed the connection]
<Spooner>
frowni, I make lots of games with Ruby and I have a whale of a time. Sadly, they are all dreadful, but that isn't Ruby's fault (entirely).
joofsh has quit [Remote host closed the connection]
samuel02 has quit [Remote host closed the connection]
RagingDave_ has quit [Quit: Ex-Chat]
Kingy has joined #ruby
Loaft has joined #ruby
IrishGringo has quit [Read error: Operation timed out]
clocKwize has joined #ruby
cobragoat has joined #ruby
whowantstolivefo has quit [Quit: quit]
Loaft has quit [Client Quit]
horofox has joined #ruby
horofox has quit [Client Quit]
cobragoat has quit [Read error: Connection reset by peer]
pavilionXP has quit [Ping timeout: 245 seconds]
AsgardBSD has quit [Read error: Operation timed out]
otters has joined #ruby
S2kx has joined #ruby
cobragoat has joined #ruby
keanehsiao has joined #ruby
cobragoat has quit [Read error: Connection reset by peer]
aaronmacy has joined #ruby
S1kx has quit [Ping timeout: 256 seconds]
eykosioux has joined #ruby
EzeQL has joined #ruby
cobragoat has joined #ruby
keanehsiao has quit [Ping timeout: 245 seconds]
cobragoat has quit [Read error: Connection reset by peer]
JumpMast3r has joined #ruby
IrishGringo has joined #ruby
cobragoa_ has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
Virunga has quit [Quit: Virunga]
emergion has joined #ruby
Virunga has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
cobragoa_ has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
dnyy has quit [Remote host closed the connection]
atno has joined #ruby
RagingDave has joined #ruby
havenn has quit [Ping timeout: 260 seconds]
cobragoa_ has joined #ruby
cobragoa_ has quit [Read error: Connection reset by peer]
quest88 has quit [Quit: quest88]
joeycarmello has joined #ruby
cobragoa_ has joined #ruby
Neomex has joined #ruby
cobragoa_ has quit [Read error: Connection reset by peer]
cobragoa_ has joined #ruby
fyolnish has joined #ruby
cobragoa_ has quit [Read error: Connection reset by peer]
<frowni>
Would you recommend Ruby for a beginner(with no-programming background) instead of C sharp?
dickery has left #ruby [#ruby]
<frowni>
All i want to create a word processor at the moment :) Simple one.
havenn has joined #ruby
xsarin has joined #ruby
joeycarmello has quit [Remote host closed the connection]
tenmilestereo has quit [Quit: Leaving]
joeycarmello has joined #ruby
<banisterfiend>
frowni: a word processor? probably test to stick with c# or obj-c :)
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
cobragoa_ has joined #ruby
alanp has joined #ruby
karasawa has joined #ruby
<banisterfiend>
best*
<banisterfiend>
it's pretty trivial to write a simple word processor in objc
alanp_ has quit [Read error: Connection reset by peer]
jfl0wers has joined #ruby
k610 has joined #ruby
jds has quit [Remote host closed the connection]
<mdel>
banisterfiend: why is that
<whitequark>
but mostly because a typical objc environment already includes a word processor, no?
reinaldob has quit [Remote host closed the connection]
<whitequark>
and in this case you could as well use macruby?
<banisterfiend>
mdel: because a 'text box' widget is already 50% of the way there :)
<whitequark>
frowni: besides, writing a word processor is not a beginner task.
matt_ryan_fan is now known as pray_4_matt_ryan
<whitequark>
not that you shouldn't try, but do not expect the result to be usable in production; it won't be.
cb0ss- has quit [Read error: Connection reset by peer]
xsarin has quit [Client Quit]
<whitequark>
that being said, it is a great exercise.
<mdel>
banisterfiend: ah ok... i thought you were saying there was something about OBJ-C that inherently made writing a word-processor easier
<mdel>
which would have been interesting to know, if so :)
<banisterfiend>
mdel: there is, of course
freakazoid0223 has quit [Quit: Leaving]
<banisterfiend>
mdel: obj-c (i mean 'cocoa' as well when i say obj-c, as they're kind of inextricably linked) is a gui toolkit
blacktulip has quit [Remote host closed the connection]
<whitequark>
banisterfiend: man gnustep
<mdel>
word processor !== gui
emergion has quit [Quit: Computer has gone to sleep.]
karasawa has quit [Ping timeout: 246 seconds]
<whitequark>
obj-c is a programming language which does not include all kinds of proprietary crap.
<banisterfiend>
well i guess obj-c stands on its own kind of, but it's very rarely used outside of cocoa
<swarley>
.-.
<whitequark>
I'm not trying to say that gnustep is even used by anyone except its authors
horofox has joined #ruby
<spider-mario>
there’s QtRuby
<whitequark>
but substituting cocoa for objc is very confusing
nari has joined #ruby
<whitequark>
not entirely unlike how rails is often substituted for ruby ]:)
<whitequark>
spider-mario: last time I checked the thing couldn't run five minutes without crashing
mockra has joined #ruby
<banisterfiend>
mdel: cocoa has a bunch of tools that make building a word processor extremely easy, with core data it's only a few clicks iirc
<frowni>
Objective-C is kinda hard for me :D
<banisterfiend>
whitequark: true but with obj-c/cocoa it's an even deeper relationship as the entire stdlib for obj-c is pretty much cocoa
<mdel>
banisterfiend: ok. that still doesnt mean that that LANGUAGE itself is making writing a word-processor inherently easier, as I thought you were saying
IrishGringo has quit [Read error: Operation timed out]
crackfu has quit [Read error: Connection reset by peer]
maletor has joined #ruby
crackfu has joined #ruby
<whitequark>
banisterfiend: the obj-c stdlib doesn't have anything with cocoa. why would it?
eric_ has joined #ruby
eric_ has left #ruby [#ruby]
<banisterfiend>
whitequark: isn't NSString, NSArray all cocoa?
bigmac has joined #ruby
frowni has quit []
<whitequark>
banisterfiend: yeah
<whitequark>
but they're not a part of objc
<spider-mario>
whitequark: “Programmer needs to make sure that Ruby String is not being garbage collected or changed for the time it's being used by Qt/KDE object.”
<spider-mario>
that might be the cause of it, might it not?
<banisterfiend>
but they're the closest thing obj-c has to a "standard library" afaik
<spider-mario>
it’s when “In some cases Qt/KDE object "takes ownership" over Ruby String passed as char* argument type.”
<whitequark>
banisterfiend: oh actually I was wrong
<spider-mario>
“Be very careful when you call this kind of methods and make sure that there is no overloaded version witch accepts QString or QByteArray first!”
<whitequark>
well, whatever, taxonomy is not my best strength
<whitequark>
spider-mario: might be
crackfu has quit [Ping timeout: 246 seconds]
eykosioux_ has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
spider-mario has quit [Read error: Connection reset by peer]
emergion has joined #ruby
eykosioux has quit [Ping timeout: 245 seconds]
eykosioux_ is now known as eykosioux
cantonic has joined #ruby
chrismhough has quit [Quit: chrismhough]
Umren|2 has quit [Read error: Connection reset by peer]
mengu has quit [Quit: Leaving]
emergion has quit [Ping timeout: 264 seconds]
jasondotstar has quit [Quit: WeeChat 0.3.9.2]
xsarin has joined #ruby
jfl0wers has quit [Ping timeout: 245 seconds]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Virunga has quit [Quit: Virunga]
Virunga_ has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9.2]
eykosioux has quit [Quit: eykosioux]
xsarin has quit [Client Quit]
Neomex has quit [Quit: Neomex]
apeiros has quit [Read error: Connection reset by peer]
agarie has joined #ruby
subbyyy has joined #ruby
xsarin has joined #ruby
adkron has joined #ruby
xsarin has quit [Client Quit]
jds has joined #ruby
xsarin has joined #ruby
jeffreybaird has joined #ruby
keanehsiao has joined #ruby
horofox has quit [Quit: horofox]
breakingthings has quit []
gurps has quit [Quit: bye]
gurps has joined #ruby
keanehsiao has quit [Ping timeout: 248 seconds]
lushious has joined #ruby
thansen has joined #ruby
fyolnish has joined #ruby
breakingthings has joined #ruby
<thansen>
I'm pretty ignorant in ruby..how do I get bundle and friend to recognize system gems?
dwn has quit [Quit: u]
breakingthings has quit [Client Quit]
hotovson_ has quit [Remote host closed the connection]
xsarin has quit [Read error: Connection reset by peer]
CrawfordComeaux has quit [Ping timeout: 245 seconds]
xsarin has joined #ruby
danneu1 has quit [Ping timeout: 252 seconds]
jds has quit [Read error: Operation timed out]
caleb_io has quit [Quit: caleb_io]
xsarin has quit [Client Quit]
J-_-L has joined #ruby
horofox has joined #ruby
jduan1981 has joined #ruby
mneorr has quit [Remote host closed the connection]
clocKwize has quit [Quit: clocKwize]
fyolnish has quit [Remote host closed the connection]
jeffreybaird has quit [Quit: jeffreybaird]
<Spooner>
thansen, Can you be a bit more specific?
jeffreybaird has joined #ruby
gyre007 has quit [Remote host closed the connection]
J-_-L has quit [Client Quit]
gyre007 has joined #ruby
<thansen>
well, I'm trying to package up gitlabhq and I want bundler to pull in a system gem rather than build it
<thansen>
is that possible?
artm has quit [Quit: artm]
CalebMingle has joined #ruby
<Spooner>
I don't understand what you mean by a system gem. You can install gems with bundler via rubygems, github or local directories.
<thansen>
bundle at runtime doesn't appear to 'find' system gems so I assume I need it to pull it in at build time
n1x has quit [Ping timeout: 246 seconds]
<Spooner>
No, it will find gems you already have installed rather than install them, assuming the versions are appropriate.
<thansen>
ok, so how would I go about hacking a gemfile or whatever to tell it to prefer a system gem over rubygems.org or whatever
<Xeago>
you have a load path for gems
cobragoa_ has quit [Read error: Connection reset by peer]
<thansen>
in particular I'm dealing with charlock_holmes
<Xeago>
first it checks in various folder
<Xeago>
than system folders
<Xeago>
than it searches the gemhosts stuff
<Xeago>
and fetches, installs
<Xeago>
and uses it
Criztian has quit [Remote host closed the connection]
filemon_CZ has joined #ruby
jeffreybaird has quit [Ping timeout: 248 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
crackfu_ has quit [Remote host closed the connection]
crackfu has joined #ruby
<thansen>
Xeago: ok, so how would I go about determining why system gem(s) aren't being used?
Astralum has joined #ruby
Playground has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]