Topic for #ruby is now Ruby programming language || ruby-lang.org || RUBY SUMMER OF CODE! rubysoc.org/ || Paste >3 lines of text in http://pastie.org || Para a nossa audiencia em portugues http://ruby-br.org/
CannedCorn has joined #ruby
tomzx has joined #ruby
BlissOfBeing has quit ["Leaving"]
hadees has joined #ruby
Mchl has joined #ruby
banseljaj has joined #ruby
macmartine_ has joined #ruby
MasterIdler_ has joined #ruby
h4mz1d has joined #ruby
albemuth has joined #ruby
fayimora has joined #ruby
f00fSteR has joined #ruby
fayimora has joined #ruby
twelvechairs has joined #ruby
chimkan_ has joined #ruby
incomprehensibly has joined #ruby
nicholas\\ has joined #ruby
robotmay has joined #ruby
sizz_ has joined #ruby
cantonic has joined #ruby
<cantonic> guys, after having install rubygems on ubuntu in cannot access the comman "gem" but "gem1.8".
<cantonic> can i just rename "gem1.8" or should i create a symlink?
<cantonic> (rename to "gem" i mean)
<seanstickle> symlink
<cantonic> seanstickle: thank you :)
<shevy> seanstickle do you tickle sean?
<seanstickle> shevy: only when attacked by panda bears
veronatii has joined #ruby
<shevy> lol
vraa has joined #ruby
sizz has joined #ruby
luke--_ has joined #ruby
chrxn has joined #ruby
sizz_ has joined #ruby
macmartine has joined #ruby
<cantonic> curious. i am doing "rvm use 1.9.2" and then i do "rvm gemset create foo" and it says "Can not create gemset before using a ruby"
randym has joined #ruby
<td123> cantonic: paste output of rvm list
<td123> also, rvm use doesn't work across multiple terminals
briankbuckley has joined #ruby
<td123> you have to rerun rvm use.. for every terminal
<cantonic> td123: i did it for that terminal. http://pastebin.com/zZrTRwCa
<cantonic> note: this is a different user than root
<cantonic> td123: do i need to do anything with umask? i guess i have read it anywhere some time ago that you have to do anything with umask if you want to use rvm with multiple users
<cantonic> td123: after doing "umask g+w" with root i "just" get a permission denied error on the user "deployer" when trying to create a gemset...
ephemerian has joined #ruby
bwlang has joined #ruby
asobrasil has quit [#ruby]
bbttxu_ has joined #ruby
PragCypher has joined #ruby
wmoxam has joined #ruby
caiges has joined #ruby
mxweas_ has joined #ruby
CoderCR|work has joined #ruby
incomprehensibly has joined #ruby
incomprehensibly has quit [#ruby]
seanstickle has joined #ruby
wmoxam has joined #ruby
Karmaon has joined #ruby
bbttxu_ has joined #ruby
neurodrone has joined #ruby
neurodrone has joined #ruby
briankbuckley has joined #ruby
IMTheNachoMan has joined #ruby
smartinsrenato has joined #ruby
Karmaon_ has joined #ruby
<IMTheNachoMan> hey guys. hoping someone can help me. i dont know ruby, and im not looking to learn it but have a ruby script i want to convert to python. i get everything in the script but one line. can someone please tell me what that one line is doing? script is http://cl.ly/C3kK and line is file_string = File.open(path, 'r').read(1024)
<CoderCR|work> IMTheNachoMan: it is opening the file and reading 1024 bytes of it and putting into file_string.
wmoxam has joined #ruby
<csprite> anyone got opengl texture loading working with 1.9.3
<IMTheNachoMan> CoderCR|work: thanks sir
frishi has joined #ruby
tectonic has joined #ruby
QaDeS_ has joined #ruby
bbttxu_ has joined #ruby
CheeToS has joined #ruby
<maletor> What do I do with ruby errors like this: "\x89" from ASCII-8BIT to UTF-8
andrewhl has joined #ruby
samsonjs_ has joined #ruby
<shevy> maletor I propose slay a kitten
<shevy> or better two
<maletor> Shit.
<CoderCR|work> shevy LOL
<shevy> I dont know UTF-8 well, it probably does not like that x89 thingy?
plato has joined #ruby
<shevy> perhaps you can convert it with iconv first or something
<shevy> I hate Encoding
clockwize has joined #ruby
<CoderCR|work> maletor encoding is a pain :(
<maletor> So nobody knows?
<CoderCR|work> maletor you did not give the context to the error.
<CoderCR|work> maletor is it database related?
<CoderCR|work> maletor file read related?
<CoderCR|work> o well
<plato> hi all. anyone used the JSON library? i find myself doing a ton of stuff like 'if json_strings["score"] = "true" then @score=true'
<plato> it also converts {:foo=>:bar} and {"foo" => "bar"} into the same thing
<plato> just wondering if there are better alternatives
<ryanf> there are several json options but I don't think any of them preserve the distinction between symbols and strings
<ryanf> you could use yaml :)
<shevy> hehe
<shevy> JSON is quite javascript centric
init0 has joined #ruby
<plato> eh, im trying to integrate with node.js and couchdb
<plato> it's bearable, just seems clumsy
flaccid has joined #ruby
banister`sleep has joined #ruby
<flaccid> do i need to require something for this http://ruby-doc.org/core-1.9.3/File.html ? i'm not finding it in some envs
<td123> in order to use File? I don't think so
<flaccid> i basically need a method to check if a dir or file exists that works in 1.8 and 1.9
<heftig> flaccid: use Kernel#test
<flaccid> must be the ruby env or something
<flaccid> whats Kernel#test?
<flaccid> and could it be that File is not loaded/required somehow
_srp has joined #ruby
samsonjs has joined #ruby
nedbat has joined #ruby
sacarlson has joined #ruby
liluo_ has joined #ruby
briankbuckley has joined #ruby
twelvechairs has joined #ruby
smartinsrenato has quit [#ruby]
a215 has joined #ruby
smartinsrenato has joined #ruby
jcromartie has joined #ruby
_srp has joined #ruby
andrewhl has joined #ruby
moshee has joined #ruby
moshee has joined #ruby
adeponte has joined #ruby
sacarlson has joined #ruby
danishkhan has joined #ruby
dagnachewa has joined #ruby
caiges has joined #ruby
sabooky has joined #ruby
havenn has joined #ruby
hadees has joined #ruby
<sabooky> What templating language would you guys recommend for ruby? erb? Have a json config file with tokens in it, I need to substitute tokens for passed in values at runtime
MasterIdler_ has joined #ruby
werdnativ has joined #ruby
simao has joined #ruby
jcromartie has joined #ruby
telling has joined #ruby
banister`sleep has joined #ruby
mdaisuke has joined #ruby
mdaisuke has quit [#ruby]
Ripp__ has joined #ruby
BSaboia has joined #ruby
tommyvyo has joined #ruby
sacarlson has joined #ruby
hSATAC has joined #ruby
FreschFN has joined #ruby
eko has joined #ruby
<yoklov> i'd go with ERB, if only because it's in the standard library
chrxn_ has joined #ruby
ElderFain has joined #ruby
radic_ has joined #ruby
macmartine has joined #ruby
banister`sleep has joined #ruby
smartinsrenato has quit [#ruby]
gh has joined #ruby
Azure has joined #ruby
Azure|netbook has joined #ruby
desireco has joined #ruby
tommyvyo has joined #ruby
c0rn has joined #ruby
sacarlson has joined #ruby
werdnativ has joined #ruby
<flaccid> is there any easy way to omit a block in a recipe or provider if the chef version is not at a certain level ?
btanaka has joined #ruby
adamjleonar has joined #ruby
gomix has joined #ruby
mcgoo_ has joined #ruby
munx_ has joined #ruby
CannedCorn has joined #ruby
ryannielson has joined #ruby
stdcall has joined #ruby
bbttxu_ has joined #ruby
odinswand has joined #ruby
nobitanobi has joined #ruby
bwlang has joined #ruby
aers has joined #ruby
init0 has joined #ruby
nari has joined #ruby
Lupe has joined #ruby
gen0cide_ has joined #ruby
notjohn has joined #ruby
justinmcp has joined #ruby
IAD has joined #ruby
wyhaines has joined #ruby
Drewch has joined #ruby
pu22l3r has joined #ruby
wyhaines_ has joined #ruby
shadoi has joined #ruby
init0 has joined #ruby
danishkhan has joined #ruby
mxweas_ has joined #ruby
danishkhan has joined #ruby
rippa has joined #ruby
samsonjs has joined #ruby
robert_ has joined #ruby
igotnolegs has joined #ruby
maletor has joined #ruby
xybre_ has joined #ruby
ScottG_ has joined #ruby
xxtjaxx_ has joined #ruby
mdaisuke has joined #ruby
radic has joined #ruby
sabooky has joined #ruby
tomku has joined #ruby
araujo has joined #ruby
<Norrin> anyone know of a well written, robust irc client written in ruby. one with plugin support (preferrably ruby plugins)?
mxweas_ has joined #ruby
<Norrin> it'd be like irssi but ruby
<Norrin> trying to learn ruby by example & interest, and first thing i'd want to work on is some irc scripts
charlenopires has joined #ruby
td123 has joined #ruby
<flaccid> no idea
<flaccid> there are bots in ruby, but not really clients
<Drewch> bots should be sufficient for what he wants to do with it
<Drewch> likely even better
<Drewch> by the sounds of it anyways..
<flaccid> google, there is quite a few
<Drewch> Has anyone used packetfu?
<Drewch> or another raw packet ruby framework… equipvalent to Python's Scapy
gentz has joined #ruby
akem has joined #ruby
nobitanobi has joined #ruby
startling has joined #ruby
rtl has joined #ruby
sonkei has joined #ruby
brjannc has joined #ruby
bengl has joined #ruby
sacarlson has joined #ruby
<Drewch> has anyone gone through SiriProxy?
<Drewch> It's another pretty awesome Ruby tool, and another reason I am thinking about diving into ruby
frequency9 has joined #ruby
Gekz has joined #ruby
Derander_ has joined #ruby
spectre^_ has joined #ruby
blenny_ has joined #ruby
robacarp_ has joined #ruby
TTilus has joined #ruby
munx has joined #ruby
ZachBeta has joined #ruby
ceej has joined #ruby
idletom has joined #ruby
<robacarp_> Drewch: I haven't personally but one of my coworkers did a siriproxy cable tv remote thing
<Drewch> ya that's sweet
<Drewch> I have a set up at my house too, its super awsome
<Drewch> I have light switches that are on wifi
<Drewch> but I have not wrote a plugin for it yet
<Drewch> I've only edited the simple one so get siri to reply to certain stuff in a way that I want it to
nobitanobi has joined #ruby
wmoxam_ has joined #ruby
<robacarp_> Drewch: sweet
<robacarp_> yea, I haven't done too much low level stuff with ruby but I do know that people are doing it
<Drewch> yeah it's why i want to learn ruby and get really into ruby
<Drewch> but I'd like to hear from someone who uses PacketFu
<robacarp_> spider labs was hiring a rubiest to do injection stuff about 6mo ago
<Drewch> because the main reason I actively use python is for Scapy
<Drewch> Hmmm cool
rushed has joined #ruby
Xyphy has joined #ruby
<Boohbah> p PRIMES = [ 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41 ]
<Boohbah> gives me dynamic constant error
<Boohbah> how to do?
<robacarp_> why is it in all caps
krz has joined #ruby
<Boohbah> robacarp_: it's a constant...
nobitanobi has joined #ruby
<robacarp_> well, as long as you're aware
<Boohbah> i want a constant Array of Fixnums
<Boohbah> how can i do this?
<robacarp_> well, why do you need it to be constant?
<Boohbah> because i don't want it to be modified...
ninor has joined #ruby
<robacarp_> are you going to somehow accidentally ?
<twelvechairs> Boohbah: your line above works fine for me.
<robacarp_> yea, same for me
<Boohbah> it works in irb, but not in my program
<twelvechairs> Boohbah: what version of ruby are you using?
<robacarp_> post the script?
<Boohbah> porting this poker hand evaluator lookup table generator from C
rohit has joined #ruby
<Boohbah> twelvechairs: $ ruby -v
<Boohbah> ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
tk has joined #ruby
<twelvechairs> Boohbah: don't define PRIMES in a method.
<twelvechairs> Boohbah: bring it out of doo_eval and it works fine
tinhead has joined #ruby
rtyler has joined #ruby
<rtyler> how might I be able to verify the contents that my .gem file has, I'd like to make sure my gemspec is packaging what I think it should be
jjore has joined #ruby
somnium has joined #ruby
<rtyler> (past just installing it into another stupid gemset :/)
pu22l3r has joined #ruby
idletom has joined #ruby
fred has joined #ruby
ping-pong has joined #ruby
nixmaniack has joined #ruby
banisterfiend has joined #ruby
<rtyler> huh, I suppose unpack on the gem file will work
<Boohbah> twelvechairs: ahh right, thanks
Kyle__ has joined #ruby
rtyler has quit [#ruby]
mohits has joined #ruby
prtksxna has joined #ruby
mdaisuke has joined #ruby
akem has joined #ruby
akem has joined #ruby
nixmaniack has joined #ruby
banisterfiend has joined #ruby
b33r_g0ggl3z has joined #ruby
caiges has joined #ruby
nobitanobi has joined #ruby
rramsden has joined #ruby
Karmaon has joined #ruby
macmartine has joined #ruby
mxweas_ has joined #ruby
shobhitg has joined #ruby
mikepack has joined #ruby
Seisatsu has joined #ruby
tommyvyo has joined #ruby
tommyvyo has joined #ruby
x0F_ has joined #ruby
robbyoconnor has joined #ruby
stephenjudkins has joined #ruby
patrick99e99 has joined #ruby
eldariof has joined #ruby
macmartine has joined #ruby
havenn has joined #ruby
akemrir has joined #ruby
carlyle has joined #ruby
tobago has joined #ruby
blueadept has joined #ruby
blueadept has joined #ruby
yxhuvud has joined #ruby
eignerchris has joined #ruby
randym has joined #ruby
Karmaon has joined #ruby
sizz has joined #ruby
CannedCorn has joined #ruby
thone_ has joined #ruby
zakwilson_ has joined #ruby
ZachBeta has joined #ruby
paradisaeidae has joined #ruby
maletor has joined #ruby
mxweas_ has joined #ruby
ZachBeta has joined #ruby
tinhead has joined #ruby
tommyvyo has joined #ruby
Morkel has joined #ruby
davidcelis has joined #ruby
nobitanobi has joined #ruby
pdtpatr1ck has joined #ruby
enherit has joined #ruby
cableray has joined #ruby
luckyruby has joined #ruby
manizzle has joined #ruby
Doppp has joined #ruby
mxweas_ has joined #ruby
JohnBat26 has joined #ruby
fayimora_ has joined #ruby
Doppp has joined #ruby
havenn has joined #ruby
gianlucadv has joined #ruby
a_meba has joined #ruby
ZachBeta has joined #ruby
Pheen has joined #ruby
<Pheen> Is anyone here that might be able to help me with a question? :o
<Pheen> I'm getting, "incompatible character encodings: ASCII-8BIT and UTF-8", so I am trying to use .encode!('ISO-8859-1'), but I am getting "undefined method `encode!'"
ZachBeta has joined #ruby
<Pheen> .encode! works when run rails c, but not in my script for some reason
<rippa> show code
pp01bit has joined #ruby
banisterfiend has joined #ruby
<pp01bit> extend ActiveRecord::Base, there is a method find
<pp01bit> where does this method come from?
<pp01bit> i can't find it in the source code of Base class
banseljaj has joined #ruby
ZachBeta has joined #ruby
CacheMoney has joined #ruby
macmartine has joined #ruby
tinhead has joined #ruby
<Pheen> woops, this is with the one that is erroring that I am trying to encode http://pastebin.com/mkuK3NTq
<flaccid> hmm i need to somehow remove a package without removing its deps for yum
danishkhan has joined #ruby
ZachBeta has joined #ruby
adeponte has joined #ruby
charlenopires has joined #ruby
d34th4ck3r has joined #ruby
Sliker has joined #ruby
drizz has joined #ruby
iMe has joined #ruby
bier has joined #ruby
IceD^ has joined #ruby
<IceD^> hey guys
<IceD^> I developed interesting concept here
macmartine has joined #ruby
<IceD^> like: class Foo; def foo_bar(x, y); end; end f = Foo.new; f.foo.bar(1, 2); foo = f.foo; foo.bar(1, 2)
ukwiz has joined #ruby
<IceD^> https://github.com/iron-io/iron_worker_ruby_ng/blob/master/lib/iron_worker_ng/client.rb#L29 - done using method_missing emiting proxy with another method_missing
<IceD^> anybody interested in having general lib for that?
zomgbie has joined #ruby
bluOxigen has joined #ruby
<RubyPanther> IceD^: I think there are a bunch already, but it is always nice to have more
<IceD^> RubyPanther, show me one pls ;]
Jackneill has joined #ruby
Jackneill has joined #ruby
<IceD^> I don't like to reimplement that for other my projects and too lazy to code new gem if it can be avoided
<RubyPanther> I rolled my own, so I don't know the names
<IceD^> RubyPanther, the same idea?
<RubyPanther> yeah, I use it for defaults
<IceD^> public code?
RubyPanther has quit ["self.exit(:stage=>:left)"]
RubyPanther has joined #ruby
<RubyPanther> well, it isn't packaged or anything
<RubyPanther> It's just method_missing + a delegate, right?
zomgbie_ has joined #ruby
ph^ has joined #ruby
d34th4ck3r has joined #ruby
ed_hz_ has joined #ruby
i8igmac has joined #ruby
pantsman has joined #ruby
pantsman has joined #ruby
wmoxam has joined #ruby
akem has joined #ruby
apeiros_ has joined #ruby
banseljaj has joined #ruby
Drewch has joined #ruby
Mekkis has joined #ruby
norm_ has joined #ruby
Aaaarg has joined #ruby
rohit has joined #ruby
ben225 has joined #ruby
lottadot has joined #ruby
emocakes has joined #ruby
manizzle has joined #ruby
tatsuya_o has joined #ruby
etehtsea has joined #ruby
visof has joined #ruby
visof has joined #ruby
workmad3 has joined #ruby
odinswand has joined #ruby
Aaaarg has joined #ruby
jbw_ has joined #ruby
pencilcheck has joined #ruby
Sliker has joined #ruby
demian`_ has joined #ruby
ged_ has joined #ruby
mtkd has joined #ruby
odinswand has joined #ruby
randym has joined #ruby
CheeToS has joined #ruby
tvw has joined #ruby
Aaaarg has joined #ruby
vtr has joined #ruby
gokul has joined #ruby
_adeponte has joined #ruby
adeponte has joined #ruby
zixiz has joined #ruby
tobago has quit [#ruby]
luke--_ has joined #ruby
Redjack1964 has joined #ruby
Aaaarg has joined #ruby
davidpk has joined #ruby
cachemoney has joined #ruby
lottadot has joined #ruby
d34th4ck3r has joined #ruby
startling has joined #ruby
pantsman has joined #ruby
zomgbie has joined #ruby
Aaaarg has joined #ruby
<odinswand> i have a string that is formatted as such: every " is listed as \"
<odinswand> how can i print this string without the trailing slashes?
iocor has joined #ruby
<apeiros_> by trailing slashes you mean backslashes?
<apeiros_> because trailing means "at the end"…
<apeiros_> when you puts your string, does the backslash still show?
shruggar has joined #ruby
udante has joined #ruby
pp01bit has joined #ruby
<odinswand> thanks that helped, apeiros_
emocakes has joined #ruby
ukwiz has joined #ruby
kirun has joined #ruby
rails33 has joined #ruby
<rails33> hi all, Is there any way to get the response code in case of exception ?
banseljaj has joined #ruby
Kyle__ has joined #ruby
rails33 has quit [#ruby]
SegFaultAX has joined #ruby
workmad3 has joined #ruby
ged__ has joined #ruby
nicoca has joined #ruby
yugui_zzz has joined #ruby
<emocakes> catch
<emocakes> :p
nicoca has joined #ruby
nicoca has joined #ruby
rohit has joined #ruby
stenno has joined #ruby
Talvino has joined #ruby
ukwiz has joined #ruby
mdaisuke has joined #ruby
punkrawkR has joined #ruby
shruggar has joined #ruby
cantonic has joined #ruby
fayimora has joined #ruby
aers has joined #ruby
<sacarlson> I found a posible solution to still use my glade xml files with gtk+ with freigttrain that I found on github that still works in ubuntu 11.10 http://sites.google.com/site/freightrainlib/counter-example . only thing I found so far that still using glade files that work
<sacarlson> with this method I should be able to port my libglade2 software into ubuntu 11.10 in about 2 days, with 80% in learning curve to get it to work
glosoli has joined #ruby
ly- has joined #ruby
Guest86225 has joined #ruby
<Guest86225> Hi
<Guest86225> Small problem
<Guest86225> I can't get the gem command to work
<Guest86225> I get an error about No Permission
<Guest86225> (running from a Cmd Prompt on XP)
<sacarlson> Guest86225: I've never used ruby on windows, but maybe your files system is mounted in some manner that is read only?
<Guest86225> It shouldn't
<stenno> Guest86225, so you don't have admin rights? you could install gem in a folder in your home dir
<stenno> install the gems*
<Guest86225> I'm not running as administrator
<stenno> i dunno if that works for windows too though
<stenno> i only know for linux
<stenno> fine
<Guest86225> And i've just run the RubyGems install script manually from the ZIp download
<stenno> in linux, you need to have .gem folder in your home
<stenno> and install it to there
<Guest86225> Is there anybody here that HAS used ruby on Windows?
<stenno> it = the gems >_>"
<stenno> was is the exact error you get btw?
<Guest86225> ruby 1.8.7 (2012-02-08 patchlevel 358) [i386-mingw32]
<Guest86225> C:\Documents and Settings\ALEX>gem update --system
<Guest86225> ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
<Guest86225> Errno::EACCES: Permission denied - socket(2) (http://rubygems.org/latest_spe
<Guest86225> cs.4.8.gz)
<Guest86225> C:\Documents and Settings\ALEX>gem install rubygems-update
<Guest86225> ERROR: Could not find a valid gem 'rubygems-update' (>= 0) in any repository
<Guest86225> ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
<stenno> stop
<Guest86225> Errno::EACCES: Permission denied - socket(2) (http://rubygems.org/latest_spe
<stenno> stop
<Guest86225> cs.4.8.gz)
<stenno> stop
odinswand has joined #ruby
<stenno> please read the channnel topic o_O"
<Guest86225> Apologies, you did ask though
<stenno> i thought you were sane o_O"
<Guest86225> stenno: http://pastie.org/3454509
<Guest86225> In any event
<stenno> yes you don't seem to have rights to install the gem system-wide
<stenno> install it locally
<stenno> use google to find out how to do that on windows, i don't know that
<Guest86225> I thought by running the install script for RubyGems manually it would have done a local install
tvo has joined #ruby
<Guest86225> Ruby 1.8.7 by the way if that hepls
<stenno> get a better OS, i dunno
ameba has joined #ruby
eugynon has joined #ruby
<Guest86225> That looks like it's a unix related script
<Guest86225> Is there anyone here that HAS used Ruby on Windows speifically?
<stenno> DUDE
<stenno> read the TEXT
undersc0re has joined #ruby
<stenno> Notes:
<stenno> The export command is shell specific. Use the appropriate command for your OS and shell. For example windows users would probably say:
<Guest86225> It's probbaly an environment variable I need to set...
<Guest86225> moment
<Guest86225> ;)
45PAABF48 has joined #ruby
<Guest86225> And yes that exactly what the text says :)
Hyra has joined #ruby
<Guest86225> Sorry
<Guest86225> HTH RTFM etc...
<stenno> does it work now, at least?
moshee has joined #ruby
moshee has joined #ruby
<Guest86225> No it doesn't
<Guest86225> Looks like I'm going to have to find some other soloution :(
<stenno> what is the path where you installed your rubygems?
canton7 has joined #ruby
<Guest86225> "C:\Documents and Settings\ALEX\rubygems-1.8.17\rubygems-1.8.17"
<Guest86225> which is where 7_Xip extracted it
Karmaon has joined #ruby
Guest86225 has quit [#ruby]
Nss has joined #ruby
charlenopires has joined #ruby
Guest86225 has joined #ruby
<Guest86225> Right ,Sorry I droped off the channel
<Guest86225> It would seem that to actually use rails , I need to use Linux in a VM
<Guest86225> :(
<Hyra> is it possible to run a remote ruby script while still asking for user input?
<Guest86225> Which is far more of a configuration error than I expected...
<Guest86225> Why is it that 'free' software makes a lot of promises, but fails to deliver for real users?
<apeiros_> maybe you're not a real user.
undersc0re has joined #ruby
undersc0re has joined #ruby
<apeiros_> also, you're free to participate and add the things you miss. that's the point of OSS
<stenno> Hyra, what do you mean with remote
<etehtsea> Guest86225 asp.net is for real users, not rails
<stenno> s/users/losers/ ?
<apeiros_> etehtsea: asp.net is only for unreal users. cold-fusion is the really real thing for really real users!
<etehtsea> :)
<stenno> i liek wordpress
<Hyra> stenno: Having a remote ruby script that gets execute on a local machine (installer script) .. but i would like to make it interactive by grabbing user input
<Guest86225> apeiros: Well, what i was trying to do was seyup a local version of the OpenStreetMap platform
<Guest86225> This needs Ruby on Rails
<Guest86225> Which first needs Ruby and RubyGems installs
<ewag> Guest86225: install linux?
<Guest86225> ewag: I can't do
<Guest86225> that
<apeiros_> Guest86225: http://railsinstaller.org/
<Guest86225> The problem seems to be that Windows XP is rather fussy about what it will let run
<apeiros_> I guess google is free stuff that doesn't deliver to real users either…
<stenno> Hyra, you could always work with stuff like PTY or popen
<ewag> i know nothing windows... lucky to have not touched it in years
<stenno> if that is what you want...
<Hyra> stenno: not really, and trying to avoid to mock the /dev/tty process as that will be hell i think :)
<Guest86225> apeiros_: In some respects it doesn't
<apeiros_> Guest86225: look, you can piss against the wind. just don't cry if you get wet.
<stenno> Hyra, so ... maybe sockets..?
<apeiros_> (and don't expect too much sympathy)
<Hyra> stenno: mm, maybe .. ill have a look .. thanks
<stenno> Hyra, i have to admit that i still don't quite know what you want to do :) are you searching for inter-process communication?
<stenno> sockets are always good for that imho
<Hyra> stenno: something like that, so sockets make sense.
<stenno> inter-process communication is very well solved in ERlang
d34th4ck3r has joined #ruby
rohit has joined #ruby
fridim_ has joined #ruby
tewecske has joined #ruby
davidpk has joined #ruby
FreddieBoi has joined #ruby
Karmaon has joined #ruby
nedbat has joined #ruby
mosca_ has joined #ruby
virunga has joined #ruby
aers has joined #ruby
emmanuelux has joined #ruby
<shevy> erlang has nice ideas
<shevy> I just hate its syntax :(
<stenno> looks a bit like coffeescript :)
<shevy> coffeescript is quite elegant compared to javascript
<shevy> I think erlang looks worse than javascript code
<stenno> well at least we all know what the most sexy language is <3
<shevy> hmm
<shevy> which one is it?
<stenno> maybe ruby!! :)
<shevy> hmm
<shevy> ruby is quite ok
<shevy> what I don't like is that when I see other people's ruby code, I usually don't like it
<stenno> yeah you got a point there
Morkel has joined #ruby
mdaisuke has joined #ruby
<stenno> lets say ruby is the language with the most sexy-potential
<shevy> hehe
<shevy> I mean, there is code which uses proc {} like 100x
<shevy> and it's totally different from how I solve things in ruby
<shevy> I'd like a hybrid language taking the best from python, ruby and erlang
<csmrfx> I'd like mirah
<stenno> i heard something about ruby supporting the () -> syntax to declare anonymous functions
<csmrfx> (ie. fast ruby to bytecode)
Guest86225 has quit [#ruby]
<banisterfiend> stenno: ->()
<csmrfx> -> is a lambda
Nollo has joined #ruby
Karmaon has joined #ruby
<stenno> oh!
<Nollo> hi
<csmrfx> λ == ->
<stenno> could you use the actual lambda symbol..?
<csmrfx> yes
<csmrfx> ruby 1.9 MRI +
<apeiros_> alias λ proc
<apeiros_> or alias λ lambda
<stenno> ah
<stenno> proc != lambda, no?
<csmrfx> no
<stenno> isn't the scope different?
<stenno> eh
<csmrfx> no
<Nollo> I cannot install the gem: pg, I have the same error as http://pastebin.com/yhqEZR1f
<csmrfx> proc is in OS kernel
<csmrfx> lambda is a continuum in interpreter
<csmrfx> or something
<apeiros_> in ruby, proc != lambda, yes
<stenno> yeah thats what i meant
<apeiros_> alias λ lambda; f = λ{ |x| x+1 }; f.(2) # => 3
QaDeS has joined #ruby
<apeiros_> stenno: the differences changed from 1.8 to 1.9
<stenno> oh
<apeiros_> the ones I remember are arity-checking
<stenno> yeah
<apeiros_> I think there's also differences in how return/break etc. are handled in different situations
<stenno> right thats the scope thingy i meant
<apeiros_> but both do act as closures
<shevy> stenno the -> is weird
<csmrfx> afaicrc, Matsumoto's ruby book says greek lambda λ can be used instead of -> or lambda
<stenno> so its just alias and nothing more
<shevy> stenno, here is a funny use of it though https://github.com/peterc/testrocket
<shevy> +-> { Die.new(2) }
<shevy> ever seen that before? :)
<shevy> -> -> -> PEW PEW PEW LASER ATTACK
<stenno> nice
<stenno> so it just signs the return of the lambda?
<stenno> this looks really strange
seanstickle has joined #ruby
bwlang has joined #ruby
<stenno> oh yes it does
<stenno> operator overloading
<shevy> I dunno really
<shevy> I can't stand it actually
<shevy> but it looks funny
zomgbie has joined #ruby
<stenno> looks rather esotheric, yes
<stenno> (sp?)
<seanstickle> esoteric
<stenno> he >_>"
fermion has joined #ruby
<csmrfx> lambda f t w
<shevy> stenno yeah very much
berkes has joined #ruby
<shevy> but who knows, perhaps I see other cool looking projects which use ->
<shevy> as long as I can avoid it
<shevy> I don't mind
shruggar1 has joined #ruby
<csmrfx> let f f s = if i s "not ocaml" i s not "lambda"
<csmrfx> I'm trying to understand first-class modules
<csmrfx> does ruby have such construct?
<apeiros_> Module.new
<apeiros_> module Foo; end
<stenno> instances of Modules...?
<apeiros_> those are the only two ways to create a module
zastaph has joined #ruby
<stenno> i thought a distinct property of Modules was that you cannot instanciate them
<apeiros_> you can't
<apeiros_> but you can instanciate Module itself
<apeiros_> Module.new.new # <-- no worky
<stenno> ooh
<apeiros_> Class.new.new # <-- worky worky
<csmrfx> apeiros so do you mean ruby modules are first-class modules?
<stenno> you mean Module really as Module and not as a placeholder for a random module :)
<apeiros_> define first-class module
<apeiros_> stenno: yes
<csmrfx> apeiros_: I dont know what a first-class modules is, trying to learn that 8)
<apeiros_> "a first-class citizen … is an entity that can be constructed at run-time"
<apeiros_> since both variants are at runtime, I'd say yes, modules are first-class in ruby
<stenno> thats sounds rather generic o_O"
<shevy> this ... is ... SPARTA!!!
<shevy> oops sorry
<apeiros_> even if you use a more strict definition of first-class, where you require it being possible to be constructed in a parametrized fashion
<shevy> this ... is ... WIKIPEDIA!!!
<apeiros_> that is SHEVY!!!
<shevy> I have fought a great many edit-wars there
cout has joined #ruby
<stenno> :D
<shevy> it's really odd, the german wikipedia tends to have less information than the english wikipedia (logically, more english using folks out there), but it is also much more conservative about new information than the english wikipedia, which I find very strange...
rohit_1 has joined #ruby
kirun has joined #ruby
<csmrfx> ie. german wp is favored by more conservatively thinking, simple
<csmrfx> ok, so first class citizens, modules
<csmrfx> can you return a module constructed from a method?
<apeiros_> yes
<shevy> programming languages often use fancy words to disguise easy shit
<shevy> like monads!
<shevy> I have no idea what they do but I am sure they are simple, once I understand them!
<csmrfx> or lambda!
<shevy> yeah
<shevy> what is a lambda anyway
<seanstickle> monads aren't so hard, once you read a little abstract algebra
<csmrfx> imo a lambda is simply a function bound to an identifier
<shevy> hmm
<stenno> isn't it just an anomymous function?
<seanstickle> and lambdas used to be the pointy hats on top of letters when Russell and Whitehead wrote their book.
<csmrfx> perhaps you'd need to say 'first class function'
<shevy> if it has an identifier how can it be anonymous
<shevy> what is the sound a tree makes when it crashes down, if noone can hear it
<seanstickle> But it was hard to typset pointy hats, so they moved it to the left and used the lambda symbol instead
<csmrfx> if you go all the way back to lambda calculus you'll realize you've known it since elementary school
<seanstickle> Invention by typesetting limitations
PragCypher has joined #ruby
<csmrfx> and thats why they use lambda symbol, because of Church calculus, afaik
imami has joined #ruby
<csmrfx> ok, gymnasium or high school for some
<shevy> I really no longer know what is going on here :)
<seanstickle> Church was talking about something from the Principia Mathematica that used the letter-hars
<seanstickle> letter-hats
Asebolka has joined #ruby
<seanstickle> Church stated clearly that it came from the notation “ˆx” used for class-abstraction by Whitehead and Russell, by first modifying “ˆx” to “∧x” to distinguish functionabstraction from class-abstraction, and then changing “∧” to “λ” for ease of printing.
<csmrfx> and others, too - you can see -> and lambda in there
<csmrfx> seanstickle: wow
<seanstickle> The history of mathematical notation is a hobby of mine.
<csmrfx> so is the 'pointy hat' a superscript uppercase lambda?
<seanstickle> No, it's like an accent mark
<seanstickle> But looks like ^
<csmrfx> (and why do I have a document called "functional programming with bananas" in my pdf folder!)
<seanstickle> Russell and Whitehead's notation is peculiar, and not much used anymore.
<seanstickle> csmrfx: You must share the banana document
<seanstickle> csmrfx: The gods demand it
ameba has joined #ruby
<apeiros_> the monkey gods?
glosoli has joined #ruby
<seanstickle> There are no other gods in programming
<csmrfx> Here, Functional Programming with Bananas, Lenses,. Envelopes and Barbed Wire. http://www.google.fi/url?q=http://research.microsoft.com/~emeijer/Papers/fpca91.pdf&sa=U&ei=r95IT9q7M7TP4QSR7rywDg&ved=0CBUQFjAA&usg=AFQjCNGv9pUUcnXjGbzpSf_WUChcJQPDkg
<apeiros_> seanstickle: of course there are
<apeiros_> there's the gods of algorithmic complexity
<apeiros_> the gods of coding minions
<csmrfx> lol here's the correct url research.microsoft.com/~emeijer/Papers/fpca91.pdf
<apeiros_> the gods of commenting & documentation
<apeiros_> etc.
<seanstickle> apeiros_: all, those are more like genius loci
<csmrfx> I think my programming gods are more or less earthworms
ikaros has joined #ruby
<cout> hookworms and tapeworms for me, thanks
<apeiros_> csmrfx: is earthworm jim among them?
<csmrfx> apeiros_: can you find him there http://www.teara.govt.nz/files/p15508nsil.jpg
<seanstickle> I think we need more worm-based programming
<csmrfx> Just be careful when you stare into the mouth of the worm, that you yourself dont become one!
rohit has joined #ruby
<cout> seanstickle: interesting idea.
ReTFEF has joined #ruby
<UdontKnow> scroll down to the red banner and BANG!
<UdontKnow> instant goatse!
<Afal> :D
r0bby has joined #ruby
_ramo has joined #ruby
<_ramo> hi
<shevy> ack ruby-gnome is dropping support for 1.8
<shevy> my world is getting smaller and smaller :(
<csmrfx> So, does ruby support Schönfinkeling?
<seanstickle> Stop using 1.8, you sad remnant of an ancient time
<seanstickle> csmrfx: sort of
<csmrfx> shevy: I enjoyed moving from 1.8 to 1.9 quite a lot
pfo has joined #ruby
<csmrfx> seanstickle: lol
pipu has joined #ruby
kidoz has joined #ruby
medik has joined #ruby
alem0lars has joined #ruby
jpreyer has joined #ruby
manizzle has joined #ruby
wenbert has joined #ruby
<csmrfx> (λxy.y(xxy))(λxy.y(xxy))
robacarp_ has joined #ruby
hse-hoens has joined #ruby
_ramo1 has joined #ruby
timonv_ has joined #ruby
wmoxam has joined #ruby
fayimora_ has joined #ruby
rippa has joined #ruby
o_bs has joined #ruby
mtkd has joined #ruby
fayimora_ has joined #ruby
ZachBeta has joined #ruby
ukwiz has joined #ruby
n3m has joined #ruby
havenn has joined #ruby
Sailias has joined #ruby
undersc0re has joined #ruby
wmoxam has joined #ruby
wmoxam_ has joined #ruby
fr0gprince_ has joined #ruby
fayimora_ has joined #ruby
<_ramo1> does anybody know, what this should mean? cap capfile
<_ramo1> /var/lib/gems/1.8/gems/capistrano-2.11.2/bin/cap:3:in `require': no such file to load -- capistrano/cli (LoadError) from /var/lib/gems/1.8/gems/capistrano-2.11.2/bin/cap:3 ?
fr0gprince_ has joined #ruby
wenbert_ has joined #ruby
KL-7 has joined #ruby
smartinsrenato has joined #ruby
grieve has joined #ruby
wmoxam has joined #ruby
neurodrone has joined #ruby
bwlang has joined #ruby
Jay_Levitt has joined #ruby
wmoxam has joined #ruby
td123 has joined #ruby
LachlanH has joined #ruby
<LachlanH> Hey guys. What exactly does 'and' do? e.g. puts "hello" and return
<tshirtman> it's a logical 'and' when the expression is evaluated, if the first part is true' the second one will be evaluated too
dv_ has joined #ruby
<LachlanH> tshirtman: Ohhh
macgregor has joined #ruby
<LachlanH> puts seems to evaluate to false :|
<smartinsrenato> puts returns null, if i'm not mistaken
<LachlanH> Ah ok
<LachlanH> Got it
<smartinsrenato> *nil
<smartinsrenato> lol
<tshirtman> i'm not sure of the effect of effect of evaluating return
bwlang has joined #ruby
mengu_ has joined #ruby
<_ramo1> if i do a cap capfile, i get the following message: /var/lib/gems/1.8/gems/capistrano-2.11.2/bin/cap:3:in `require': no such file to load -- capistrano/cli (LoadError) from /var/lib/gems/1.8/gems/capistrano-2.11.2/bin/cap:3 ? does anybody know what that means?
Talvino has joined #ruby
charlenopires_ has joined #ruby
wmoxam has joined #ruby
banseljaj has joined #ruby
<apeiros_> it means that it can't load a file that it wants to load
apeiros has joined #ruby
<apeiros> it sounds like your cap gem installation is broken
wmoxam has joined #ruby
<_ramo1> apeiros_: i just did a gem install capistrano without errors
Russell^^ has joined #ruby
odinrajer has joined #ruby
<_ramo1> how can i install a specific version of a gem?
ph^ has joined #ruby
lkba has joined #ruby
milkpost has joined #ruby
CannedCorn has joined #ruby
<seanstickle> _ramo1: --version
<_ramo1> gem -v gives me 1.3.7
<_ramo1> seanstickle: hehe :)
<_ramo1> missunderstood
<_ramo1> i've install capoistrano verison 2.9... but still geht the same error
mklappstuhl has joined #ruby
banisterfiend has joined #ruby
tomzx has joined #ruby
ph^_ has joined #ruby
undersc0re has joined #ruby
fr0gprince_mac has joined #ruby
wmoxam has joined #ruby
tayy has joined #ruby
ZachBeta has joined #ruby
tvw has joined #ruby
fr0gprince_mac has joined #ruby
Lord-Harlot has joined #ruby
wenbert has joined #ruby
wmoxam has joined #ruby
`brendan has joined #ruby
conor_ireland has joined #ruby
wmoxam_ has joined #ruby
wmoxam has joined #ruby
tuxwet has joined #ruby
lateau__ has quit [#ruby]
waxjar has joined #ruby
d34th4ck3r has joined #ruby
sizz_ has joined #ruby
LachlanH has quit [#ruby]
mengu_ has joined #ruby
mengu_ has joined #ruby
akem has joined #ruby
akem has joined #ruby
yoklov has joined #ruby
workmad3 has joined #ruby
sizz has joined #ruby
sizz_ has joined #ruby
simao has joined #ruby
trimmer has joined #ruby
ghosTM55 has joined #ruby
udante has joined #ruby
gokul has joined #ruby
randym_ has joined #ruby
davidpk has joined #ruby
alek_b has joined #ruby
_obiJuan has joined #ruby
carlyle has joined #ruby
omry_ has joined #ruby
stringoO has joined #ruby
Mosselman has joined #ruby
<Mosselman> hi everyone. I have set up a http post to a 'web service' for ruby 1.9.3. But because of a dependency issue I had to go back to 1.8.7 and now the post doesn't work anymore. Could someone help me look at the code?
telling has joined #ruby
f00fSteR has joined #ruby
<SirFunk> trying to do a https put request and getting this: /net/protocol.rb:141:in `read_nonblock': end of file reached (EOFError) any idea?
<workmad3> Mosselman: why are you trying to post to 0.0.0.0?
<Mosselman> workmad3: well it should be posting to example.com, and the 0.0.0.0 is where I am getting the initial data from.
<workmad3> Mosselman: also, you are aware that if you want to print stuff out to the command line, there are much better ways than shelling out to echo, right? something like 'puts' or 'p' or 'print' would work much better
ameba has joined #ruby
<Mosselman> workmad3: yes I know about puts and stuff, but the app I am hacking on doesn't let the puts pass through so this was a quick alternative.
<smartinsrenato> Mosselman: any error output?
<workmad3> Mosselman: just wondering why you're using 0.0.0.0 at all... that's not exactly a normal address :)
<Mosselman> workmad3: it used to be 'localhost' then '127.0.0.1' and now 0.0.0.0, all seem to work fine at getting the data I want to pass through :P, just the sending part is where it goes wrong.
<Mosselman> Hasn't 'net/http' changed in 1.9.3?
glosoli has joined #ruby
<Mosselman> smartinsrenato: nothing at all, it just doesn't work. I know this because when I switch to 1.9.3 it works fine (i.e. the web service gets the data)
<workmad3> Mosselman: I don't think net/http has changed
<workmad3> Mosselman: at least, not significantly
<Mosselman> weird though that 1.9.3 works with this
<workmad3> Mosselman: how is example.com set up? or was that just a change you made for gisting the code?
pen has joined #ruby
<Mosselman> workmad3: yes thats just a change. Basically I give it the json array that I get from the now_playing response. I just pass it through.
<Mosselman> well, nested within 'values'
<workmad3> Mosselman: maybe in your script you should spit out some data from the response object for that request, see if that seems normal
<Mosselman> workmad3: good plan, was going to do that next, but then I thought I'd maybe ask if I was doing something incredibly stupid first. :P
<workmad3> Mosselman: well, other than 'system("echo ...")' I don't see anything stupid :P
<smartinsrenato> Mosselman: why the begin block?
<workmad3> Mosselman: but meh, strange environments and needs must, etc :)
<Mosselman> workmad3: granted :D
<smartinsrenato> isn't that used to catch errors?
<Mosselman> smartinsrenato: that might actually be the stupid part, it is inside of a function, hang on I'll post the whole class.
<Mosselman> workmad3: setting up 1.8.7 on my local machine first, and mysql, because I normally work on this at work.
niklasb has joined #ruby
<Mosselman> Still a ruby nooby
eldariof has joined #ruby
IAD1 has joined #ruby
banisterfiend has joined #ruby
<workmad3> Mosselman: the begin/end block is unnecessary, and I don't get why all your methods are class methods (that tends to be a bad design smell)
<Mosselman> workmad3: didn't make the whole class, just the function. I'll get rid of the begin/end :)
havenn has joined #ruby
<Mosselman> workmad3: if I were to build my own class like that, it would be better to have instance methods for most of the ones that are class methods now and just one constructor/initializer?
<workmad3> Mosselman: I'd be looking at making more of an object out of it, yeah
<workmad3> Mosselman: it almost looks like the guy who wrote this wanted a global variable to store stuff, but was told that was bad, so thought singleton, got told that was bad, so shoved everything on as class methods
<Mosselman> workmad3: I can see that. I am probably going to write my own client lib anyway because this one uses mpg123, I'd rather use mplayer
<Mosselman> workmad3: yeah the app could do with some work
<Mosselman> The guy works at Github though ;). https://github.com/holman/play
<eugynon> Hi guys. Got a question about rand method. When i use 2 + rand(12) - why does it produce 13 as a result?
<stenno> 2 + 11 = 13
_obiJuan has joined #ruby
<Mosselman> stenno: thought that too, but then thought it was a trick question
tuxwet has joined #ruby
<fayimora> i have a file marker.rb .. i want to be able to run it like this -> marker <options>
<fayimora> How do i go about this
<stenno> fayimora, in your shell?
<fayimora> stenno: yeah want to run it from shell
<eugynon> stenno, hmm, i thought it would produce something between 2 - 12... Thanks for info thou .. hehe
mxweas_ has joined #ruby
<stenno> eugynon, nope, the range is 2+1..11
<eugynon> thanks again mate
<stenno> fayimora, you get access to cmd arguments with $args or $argv, forgot which
<stenno> fayimora, then you could simply do something like: echo 'ruby marker.rb' > marker
MrGando has joined #ruby
<stenno> then make it executable and then run it
<fayimora> stenno: no am talking about the way the script is executed.. instead of ruby marker.rb or ./marker.rb i just want to use the name of then file
<stenno> thats how you would do it o_O"
<fayimora> stenno: echo?
<Mosselman> fayimora: you can basically execute any scripted language as a command line app.. or at least you can with ruby
<stenno> fayimora, which shell...?
<smartinsrenato> bash shell has the alias command
<Mosselman> I made some really nooby non-working chat app, but it serves in demonstrating what I mean, hang on I'll post it for you
<fayimora> bash
<stenno> and you don't know 'echo'? :)
<Mosselman> fayimora: http://pastie.org/3456364
<Mosselman> there you go
<fayimora> I don't want an alias.. just the same way you run the ruby interpreter is the way i want to run my script
<Mosselman> basically, you put #!/usr/bin/env ruby at the top
<Mosselman> but for the options stuff that you want, you can use thor
<Mosselman> fayimora: https://github.com/wycats/thor
<fayimora> Mosselman: what about the file extension.. do i leave it there?
<Mosselman> I took it off
<stenno> ruby can deal with that :)
<Mosselman> so that you can do 'app <options>' rather than 'app.rb'
<Mosselman> yeah, ruby can handle the options, but thor makes it really easy to start off with a great interface for -help, etc.
viuo has joined #ruby
<Mosselman> it is basically a command line app helper
<Mosselman> from what I know about it anyway
<Mosselman> and as that script shows you, I don't know anything :)
deadc has joined #ruby
<fayimora> Mosselman: thanks.. am still getting -bash: hello: command not found
<Mosselman> did you set up your $PATH correctly?
<Mosselman> and did you set the permissions to your file properly (i.e. rwx)
banisterfiend has joined #ruby
<shevy> hmm
<shevy> what is nicer
KL7 has joined #ruby
<stenno> and you did !#/usr/bin/env ruby and chmod a+x?
<shevy> object['foo'] vs object.foo
<stenno> er#!
<stenno> shevy, depends pretty much :)
<Mosselman> fayimora: I have put my file inside of ~/bin and gave ran chmod a+rwx filename
<fayimora> Mosselman: do i have to deal with the PATH? I made it executable with a+x though
<Mosselman> fayimora: you don't need to
<Mosselman> you can go to the dir in terminal and run "./thefilename"
<Mosselman> it needs to be executable though
<Mosselman> just makes it easier while developing to have it in your path I think, but no, you are right, you don't need to have it there. sorry :)
<fayimora> Mosselman: I was thinking I could just run the file without adding it to my bin or local/bin
<stenno> huh
<Mosselman> fayimora: yes you can "you can go to the dir in terminal and run "./thefilename" "
<stenno> you can, if you install it :)
<shevy> stenno I hate such answers :(
<shevy> I want things to be simple!
munx_ has joined #ruby
<shevy> this or that, black or white, donuts or chocolate
<fayimora> Mosselman: yeah but i wanted to do "filename" rather than "./filename".. Thanks anyways..would look into thor
<Mosselman> fayimora: that is how unix works
<fayimora> Mosselman: unfortunately
<stenno> yeah fayimora ruby is not the problem here
<stenno> s/un//
<fayimora> stenno: yeah
<Mosselman> you can add stuff to your path (which is really easy), and then they are globally available as commands. if you want to do 'filename' you can, as stenno said, install the file when you are done developing it.
<workmad3> fayimora: you could add . to your PATH
trivol has joined #ruby
<Mosselman> I usually have a ~/bin folder that is always in my path
munx_ has joined #ruby
samsonjs has joined #ruby
<fayimora> would it be wise to create my own bin folder, say /usr.local/myscripts and add that folder to my path?
<Mosselman> fayimora: and thor is pretty great actually, saves you some trouble sorting that stuff out yourself.
<Mosselman> fayimora: yes, thats what I do anyway. I have it in /home/username/bin
<fayimora> cool
<Mosselman> (sort of, since I am on mac it is /Users/name/bin
<Mosselman> )
<stenno> shevy, do you know OpenStruct ?
<fayimora> how do i print with colours and do some loading/downloading animation?
<Mosselman> fayimora: do you know how to add stuff to your path?
<fayimora> Mosselman: yope
<Mosselman> fayimora: ok
<Mosselman> fayimora: what do you mean print colours and animations?
<stenno> you can use ANSI-TERM codes
Ojol has joined #ruby
<stenno> like \e[30m
<fayimora> for instance, when you download with homebrew, it shows u how many percent has been download in realtime
<stenno> oh
<shevy> stenno hmm
<shevy> does OpenStruct allow that?
<Mosselman> fayimora: no idea sorry :). I bet there are gems for that though… maybe you can use wget inside of your app and display its output.
<Mosselman> but then you'd have wget as a dependency
kirun has joined #ruby
<Mosselman> probably a more 'ruby' way of doing that
<Mosselman> there is *
<shevy> awww
<shevy> record.name
<shevy> whops
<fayimora> Mosselman: cool thanks
mengu_ has joined #ruby
mengu_ has joined #ruby
<shevy> record = OpenStruct.new; record.name # => nil
<stenno> there are ruby libraries for outputting ansi-term color code
<stenno> shevy, yup
<fayimora> stenno: looking up ANSI_TERM codes
<shevy> Is there a way to change the default return value of an unknown element? I'd need it to return an empty string ''
<shevy> I mean, in OpenStruct
<stenno> shevy, sure i guess, just check the source code and override the relevant method :)
<smartinsrenato> shevy: maybe with method_missing?
pen has joined #ruby
<stenno> smartinsrenato, i think thats how openstruct does this anyway
berkes has joined #ruby
<stenno> An OpenStruct utilizes Ruby
<stenno> introspection is so awesome
<smartinsrenato> cool
<stenno> try doing that in C :D
werdnativ has joined #ruby
ryanf has joined #ruby
<stenno> shevy, you might even add an attribute to OpenStruct instances telling it what to return if an attribute gets created
<stenno> if you know what i mean
<shevy> smartinsrenato, I am a bit anxious to use method_missing, I once designed a class around it, but in my experience with that it did lead to brittle and fragile code :(
<workmad3> it's a shame that OpenStruct doesn't return the default value of the hash you provide it
<shevy> dont know yet stenno, I am a bit confused hehe. I am trying to port old code of mine... 5 years old ...
nowthatsamatt has joined #ruby
<shevy> so many things I'll have to get rid of altogether
<stenno> oh ouch :)
nowthatsamatt has quit [#ruby]
Karmaon has joined #ruby
blueadept has joined #ruby
chaitanya has joined #ruby
<shevy> when a class reaches +1000 lines of code, it may be time to reconsider things
<workmad3> shevy: https://gist.github.com/1909487 <-- you could try that
testaccount-goku has joined #ruby
miso_soup has joined #ruby
<workmad3> that's for 1.9.x though... you'd need to look at a BlankSlate class to inherit from in 1.8.7
<workmad3> shevy: and personally... when a class reaches 100+ lines of code, you probably want to look at it closely :)
<shevy> yeah man
TaTonka has joined #ruby
testaccount-goku has quit [#ruby]
al3xnull has joined #ruby
mosca_ has joined #ruby
glosoli has joined #ruby
hasrb has joined #ruby
<workmad3> shevy: and I find, if you want something very simple done, like a proxy with a tiny bit of altered behaviour, then method_missing can be clean and elegant. If you want something more complicated, method_missing can be a nightmare very quickly :)
tobym has joined #ruby
snearch has joined #ruby
Norrin has joined #ruby
macmartine has joined #ruby
<Mosselman> ok guys, I am back with news from my ventures in suspicious code made by others and can conclude that my 'data' that I want to send on is properly gotten
<Mosselman> maybe it goes wrong here: resp, data = Net::HTTP.post_form(url, post_args)
<Mosselman> the original code http://pastie.org/3456252
mikeycgto has joined #ruby
mikeycgto has joined #ruby
wallerdev has joined #ruby
<SirFunk> hmm.. why does CGI.parse parse single variables to ["string"] instead of just "string"
IrishGringo has joined #ruby
bwlang has joined #ruby
<csmrfx> string in an array SirFunk
<SirFunk> right but it's an array containing one element that is a string
friskd has joined #ruby
<SirFunk> require 'cgi'; a = CGI.parse('foo=1'); a['foo'].to_i fails
nedbat has joined #ruby
<SirFunk> a['foo'][0].to_i passes
Seisatsu has joined #ruby
baroquebobcat has joined #ruby
<csmrfx> Yes, Array does not have to_i
<csmrfx> don't ask me why CGI.parse('foo=1') creates an hash with key foo with value of array with one item "1"
<canton7> SirFunk, CGI.parse(bar=1&bar=2') #=> 'bar' => ['1', '2'] . It needs to be able to support repeated keys
PragCypher has joined #ruby
<csmrfx> see there
QKO has joined #ruby
<SirFunk> canton7: yeah i get that. I was hoping that if it didn't have multiple keys it would be a single string
shobhitg has joined #ruby
trivol has joined #ruby
shobhitg has joined #ruby
<canton7> SirFunk, there's no "proper" solution. Do you break consistency in a corner case, or require a bit more writing in the majority case? I agree with you on the behaviour I'd prefer, but I can see why they did it the way they did
shobhitg has joined #ruby
<csmrfx> a = CGI.parse('foo=1'); a['foo'].to_s.to_i
DMKE has joined #ruby
carlyle has joined #ruby
shobhitg has joined #ruby
<SirFunk> canton7: agreed. now how to iterate over the result and make it formatted how i need
<canton7> a = CGI.parse('foo=1').map(:&first) or CGI.parse('foo=1').map{ |a| a.first }
fayimora has joined #ruby
<canton7> wait, not quite
shobhitg has joined #ruby
glosoli_ has joined #ruby
MIST_` has joined #ruby
<canton7> This is painful: does anyone have a better solution than Hash[CGI.parse('foo=1').map{ |k,v| [k, v.first] }] ?
Silowyi has joined #ruby
shobhitg has joined #ruby
<MIST_`> hey guys i'm having some issues with rake, i get the message "WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.". I'm not that adept at linux so any help is appreciated
<csmrfx> canton7: find some real problems!
<fr0gprince_> hey is there an easy way to let ruby convert int to floats if necessary if i do something like eval "10 / 4"
<csmrfx> to_f
<canton7> fr0gprince_, use 10.0 / 4 or 10.fdiv(4) or 10.to_f / 4
<csmrfx> to_f, fr0gprince_
<fr0gprince_> well its gonna be a bot-function
dagnachewa has joined #ruby
<dagnachewa> hi all
<fr0gprince_> it isnt very userfriendly if people have to type 10.0 / 3 or w/e
<canton7> fr0gprince_, this is how integer division works. Lots of languages to it this way
<csmrfx> use .to_f
<csmrfx> otoh, if you accept input from ppl without parsing it, blame yourself
<yoklov> fr0gprince_: you can `require 'mathn'` if you're okay with it converting to rationals instead of floats
<dagnachewa> hi all
<yoklov> and then you can just call to_f on the result
PaciFisT has joined #ruby
<dagnachewa> where can we get info on the future of ruby ?
<csmrfx> chrystal ball? 8)
<yoklov> :p
tinhead has joined #ruby
<dagnachewa> my main concern is that if ruby and it's framework will be relevant 10 years from know ? or will I have to port my app to the next language and framework ?
<yoklov> what framework?
<fr0gprince_> yoklov: thanks! thats what i was looking for
<fr0gprince_> apparently
<dagnachewa> csmrfx, yoklov let say you have this great idea for an app but dont know what tool to choose
<yoklov> and, what language/framework can give you that guarantee?
<dagnachewa> rails
<dagnachewa> yoklov, csmrfx I did some googling and it seem from what I saw that ruby is loosing momentum and I dont want to learn again another new language
<yoklov> yeah i figured. I don't know rails, but I don't know of any language/framework for web apps that can promise you that it will be around in 10 years
<dagnachewa> yoklov, your right
<yoklov> who cares if nobody uses it?
<yoklov> computers still understand it.
<csmrfx> dagnachewa: wow, you should work for business intellingence if you can tell that by googling
<dagnachewa> if only ruby could get rid of gil ,
<yoklov> fr0gprince_: cool, mathn is awesome. though, obviously you should try and sandbox that to avoid any nastiness.
mengu_ has joined #ruby
mengu_ has joined #ruby
<yoklov> dagnachewa, what?
* dagnachewa is affraid ruby has reached a point that it
* dagnachewa is affraid ruby has reached a point that it can't be improved ??
<fr0gprince_> yea i do perform some securitychecks beforehand
<csmrfx> dagnachewa: you're correct in all cases
<yoklov> if it can't be improved, then why wouldn't you want to use it?
<csmrfx> it's so dead
<csmrfx> and in dead end
<dagnachewa> did not says that
<csmrfx> we're here only to regret
<dagnachewa> I am just affraid
<yoklov> That's stupid. If you want to use ruby use ruby. If you want to use something else use something else. Worrying about what things will be like in 10 years is the way to stop you from getting anything done.
banseljaj has joined #ruby
<yoklov> Will Rails be trendy in 10 years? Likely not. Will people still use ruby? Probably. WIll you be able to write your app now and let the code sit for 10 years? No.
daglees has joined #ruby
<yoklov> That's true with anything. Computers, expecially the internet, changes too much for code to be left alone for that long.
<csmrfx> actually you can use athis ruby and apps for it in 10 years (provided you have hardware that will run the instruction set)
<csmrfx> after all it's just C99
<yoklov> Right, but typically old code doesnt fare that well.
<csmrfx> mehh, not what he asked
mklappstuhl has joined #ruby
<csmrfx> but yeah, usually it is the business demands that pay for the software that change that cause obsolesence, not software layers
<yoklov> That's true. I did say above "who cares if nobody uses it? computers still understand it". The thing is in the best case it will be an extremely dated app.
kenperkins has joined #ruby
azbarcea__ has joined #ruby
seanstickle has joined #ruby
rushed has joined #ruby
daglees has joined #ruby
daglees has joined #ruby
gokulnath has joined #ruby
Sliker has joined #ruby
looopy has joined #ruby
CacheMoney has joined #ruby
omry_ has joined #ruby
hasrb has joined #ruby
<RubyPanther> yoklov: If you chose the words "very stable app" instead of "extremely dated app" it would mean the same thing but sound a lot better.
rcs has joined #ruby
<yoklov> Haha, that's true.
<yoklov> If it lasts that long, that's fairly incredible.
<RubyPanther> I actually sometimes pick up old code I wrote 10 years ago, it usually still compiles and runs just fine.
Mekkis has joined #ruby
<RubyPanther> Linus Torvalds said that he hoped people weren't still using linux in 10 years, that there would be a new greater thing... that was like 11 years ago.
<SirFunk> so i'm fairly a ruby newb. I've written a gem ... how can i have a default config for the gem and also allow configuration settings for it in my rails app?
Spockz has joined #ruby
emocakes has joined #ruby
d34th4ck3r has joined #ruby
<csmrfx> I think the mach kernel has some release versions
Jake232 has joined #ruby
<emocakes> what about mach csmrfx?
danrasband has joined #ruby
<csmrfx> (in reference to what RubyPanther said about what Linus said)
shobhitg has joined #ruby
<shevy> pfft
<emocakes> what did they say?
<emocakes> :p
<Jake232> Whats the best way to run a long running task in a controller (eg: web request). This is just going to be for a "live" tool, so persiting the data isn't needed, otherwise I would use a background queing system
<shevy> better things dont come out of nowhere
<shevy> it takes WORK
tayy has joined #ruby
<Jake232> Will firing a web request in the controller slow down things alot?
maletor has joined #ruby
<RubyPanther> Presumably linux actually meant the generic OS distro, rather than just a kernel, but I can't guarantee that.
ephemerian has joined #ruby
<shevy> distros suck
<shevy> all of them
<RubyPanther> I personally think he was wrong, and think that in the future, after all the software is written a few times, people will stop writing it and the users will be happy.
omry_ has joined #ruby
<csmrfx> RubyPanther: I think Linus would be talking about Linux (the kernel) as the OS is actually called GNU
<shevy> software that stagnates tends to die though
<RubyPanther> "I think this program has a bug." "Dude, that package hasn't been updated in 50 years, I doubt it is a new bug."
<csmrfx> software cannot die
<csmrfx> communities die
<shevy> csmrfx when old code no longer compiles, how do you call that?
<maletor> What can I do with an error like this: "\x89" from ASCII-8BIT to UTF-8
<csmrfx> shevy: unmaintained
<shevy> lol
<shevy> that's a nice word to use :)
<RubyPanther> csmrfx: The OS isn't "actually" called GNU, it is "sometimes" called GNU by "some people" who advocate others to call it that. Linus has generally called it linux... like "most people."
smartinsrenato has quit [#ruby]
<shevy> "Hey, this code is just unmaintained since 1991." "Ok it does not compile here, what shall I do?" "Fix it." "I can't. I don't know C well enough and the design of this project sucks anyway. So what to do?" "Use something else."
CannedCorn has joined #ruby
<RubyPanther> Old code doesn't stop compiling, you just used the wrong compiler version.
twqla has joined #ruby
<csmrfx> RubyPanther: well you started with the vague incorrect sayings with your "generic OS distro" 8P
tayy_ has joined #ruby
<shevy> yeah I'd wish I would have collected all my old compilers
<shevy> gcc is going on my nerves. nowadays it also requires cloog/ppl
<RubyPanther> Everything I said is not only truth, it is basic "everybody knows this" truth.
paissad has joined #ruby
<maletor> What can I do with an error like this: "\x89" from ASCII-8BIT to UTF-8
<shevy> GNU Linux is basically how the FSF calls it
shruggar has joined #ruby
<csmrfx> maletor: define encoding
<csmrfx> GNU/Linux is the GNU with the Linux kernel
<RubyPanther> Linus isn't the FSF, why would you assume some connection there?
<havenn> Debian distros call it GNU/Linux, others seem to often drop the GNU/, I think for the sake of simplicity over correctness.
<csmrfx> RubyPanther: is that for me?
<RubyPanther> If he cared about their opinion, it would have "actually" been called "GNU/Linux" instead of just called that on the heading by a few distros, but actually called "linux" normally.
<csmrfx> If you don't *know* that "linux" actually is, it is not a good reason to assume so ;)
ZachBeta has joined #ruby
wmoxam has joined #ruby
wmoxam_ has joined #ruby
<RubyPanther> And conversely, if you were a user through those debates and followed them, you already *know* that the OS was already called "linux" in addition to the kernel being called "linux" long before anybody tried to back-port the credit to GNU
<RubyPanther> And a hint: it wasn't Linus trying to give them all the credit.
<csmrfx> nope
<csmrfx> Afaik what you say is incorrect RubyPanther
<csmrfx> technically
<RubyPanther> That's because you weren't around yet, and read a propagandized history
<havenn> Reminds me, yesterday I took a photo of a statue entitled "Python killing a Gnu". Doesn't quite make sense, but still seemed funny.
glosoli has joined #ruby
<csmrfx> it's true that 'people' call lot's of things what they technically are not, though
<RubyPanther> Because pythons live in Asia and Gnus live in Africa?
<RubyPanther> Surely there are pythons in Africa, too.
<csmrfx> RubyPanther: dude, I studied in the same school as Linus
<havenn> Android uses linux without GNU, so no debate there. =P
<RubyPanther> csmrfx: so why haven't you followed his work more closely over the years? You do mean at the same time, right?
<csmrfx> well, say what you want
<csmrfx> it's not *my* fault in any way
<csmrfx> call it what you will
ed_hz_ has joined #ruby
<csmrfx> just pointing out the facts
<RubyPanther> "Well, I think it's justified, but it's justified if you actually make a GNU distribution of Linux ... the same way that I think that "Red Hat Linux" is fine, or "SuSE Linux" or "Debian Linux", because if you actually make your own distribution of Linux, you get to name the thing, but calling Linux in general "GNU Linux" I think is just ridiculous." -- Linus Torvalds
werdnativ has joined #ruby
<csmrfx> Whats next, you gonna call OSX 'mac' cause most 'people' use it
<csmrfx> lol
<RubyPanther> Your position is "just ridiculous" according to him... lol
mengu_ has joined #ruby
mengu_ has joined #ruby
<RubyPanther> And remember the context, assuming Linus would have said "GNU/Linux" himself. ;)
lkba has joined #ruby
wilmoore has joined #ruby
<csmrfx> the problem is, Linus doesn't get to choose, since he only made the kernel
<csmrfx> but you'd know it if youd been around so long
<RubyPanther> ahhh yes... ""Linux" is by far the more widespread name,[2][3] while references to "GNU/Linux" appear only infrequently in mainstream sources."
<csmrfx> and wikipedia is for people who are clueless ;)
<RubyPanther> wait, I'd know that if... is that code for saying you didn't go to the same school as Linus at the same time as him:
<csmrfx> again, use authoritative sources when editing articles, popularity is not a factor
<RubyPanther> `Some people object that the name "Linux" should be used to refer only to the kernel, not the entire operating system. This claim is a proxy for an underlying territorial dispute; people who insist on the term GNU/Linux want the FSF to get most of the credit for Linux because [Stallman] and friends wrote many of its user-level tools. Neither this theory nor the term GNU/Linux has gained more than minority acceptance.' -- Eric S Raymond
<havenn> I think in Debian's case it makes sense to call it GNU/Linux (at least once (if?) GNU/Hurd becomes popular).
<csmrfx> Yeah, make up your own terms, it's free world
<csmrfx> and once you're done, why not start using the terms that the people who made it actually decided to use ;)
<RubyPanther> If you don't believe Linus, you don't believe ESR, you don't believe wikipedia... but you claim that _others_ are making up terms by _not_ calling GNU/Blah?
<csmrfx> lol believe wikipedia
<havenn> csmrfx: 'People who made' it are legion, and don't at all agree on what to call most things.
<csmrfx> RubyPanther: you must be trolling
<RubyPanther> A basic review of the history, regardless of what you think it should be called, makes it clear that the GNU claim is the one making up terms
wyhaines has joined #ruby
<csmrfx> what ever you do, do not believe wikipedia.. ever, never ever
<RubyPanther> Just stick your head into the sand and you can imagine an encyclopedia that says whatever you want.
<csmrfx> Just stick to believing an electronic wall any moron can write anything they want on
wmoxam has joined #ruby
<shevy> GNU/Hurd will never happen
<csmrfx> I thought theres already a release
<stenno> there is
<csmrfx> Arch Hurd LiveCD / 17 August 2011; 6 months ago
<stenno> more or less conicides with DNF :)
<stenno> coincides*
<shevy> and which things don't work on it
<shevy> Java?
<RubyPanther> Wikipedia is actually a bit more solid than "an electronic wall any moron can write anything they want on."
<RubyPanther> Defaced pages do happen, but they are quickly reverted.
<csmrfx> Whats next, you gonna go tell Microsoft their OS is actually called "Windoze"!
<RubyPanther> Frequently, but in that case we're the rebels.
<havenn> I vote we just call it 'Stallimanix', problem solved!
<RubyPanther> No more or less so than GNU/revisionism
<shevy> brave arch guys, they still believe in Hurd http://www.archhurd.org/
<csmrfx> RubyPanther: I applaud your belief and trust in a community composed entirely of anonymous people with unknown connections and motives
<RubyPanther> You don't need to have "belief and trust" that was 10 years ago
<shevy> that's why claims in wikipedia need use citations
* csmrfx is a regular Wikipedia editor and more
<RubyPanther> Now it is just a historical fact that wikipedia is high quality
<csmrfx> I know how it is, again, thats why I tell you NOT to believe *anything* on there
<shevy> that's a generalization
<csmrfx> but it's cute the way you see it
<stenno> nothing is true, everything is allowed
<shevy> let's say you have information that has many sources and has excellent quality on wikipedia. now you say, it is worth nothing
<RubyPanther> You can't claim to A) be a regular Wikipedia editor (and more!) and also claim B) NOT to believe *anything* on there and still C) be an expert.
<csmrfx> it is, until you've checked how the claims are, shevy
<csmrfx> and to know before, is impossible
<shevy> that is JUST THE SAME IN BOOKS TOO
<csmrfx> Kind of
<csmrfx> Except, it is not
<shevy> oh it is not? so when an author of a book states x y z is that way, it is different how to wikipedia precisely?
<csmrfx> Books are written by people with real names, and then edited by people with real names, and finally published by such.
<RubyPanther> If A and B are both true, C must not be. If A and C are true, then B must not be. If B and C are true, then A must not be.
<csmrfx> Actually, if you cant tell the difference, I'd rather not talk with you at all
<RubyPanther> The thing is... most linux users who were already linux users when I started... already called it linux... and "nobody" had ever even heard this claim that it "should" be called GNU/Linux.
<heftig> funny things happen when the so-called "sources" were written by people taking their info from wikipedia
<shevy> that's fine, I can't talk to people who generalize in unspecific ways anyway
<RubyPanther> A lot of people instantly replied, perhaps we better call it the X Window System/Linux or Apache/Linux
<csmrfx> I guess you're either drunk or trolling. I will only continue discussing things on topic at #ruby. Get a clue about linux AND about Wikipedia is my last remark.
<shevy> That remark went straight to /dev/null.
<shevy> Next year Hurd will be ready though.
<csmrfx> lol I've edited the ruby article
<csmrfx> I find it sad that you have such a naïve view of these things
<csmrfx> also that you need to try to attack my person, instead of being able to start wondering why would I say these things
pdtpatr1ck has joined #ruby
<RubyPanther> You can't gain cred from having "edited" the Ruby article, you claim wikipedia can't be trusted.
<csmrfx> off topic.
<shevy> Perhaps it can't be trusted because he edited it.
<RubyPanther> exactly!
<csmrfx> you two are actually demonstrating one reason why not
<shevy> You could get a good source by interviewing matz and putting it on youtube or somewhere else
<csmrfx> a kind of bandwagonism
<RubyPanther> The GNU claim was a bandwagon, the things the being named GNU/ already had names.
<shevy> If you make general statements like wikipedia can not be trusted but don't follow it up by stating that other sources can be just AS unreliable, then you are trolling
<csmrfx> and yeah, youre pretty obnoxious to communicate with, so I will just leave
csmrfx has quit [#ruby]
<RubyPanther> Thank you, bye~eeeeee
<shevy> same, if the information is good quality. And I have had many instances of where wikipedia articles were of an outstanding quality
ameba has joined #ruby
havenn has joined #ruby
trivol has joined #ruby
notjohn has joined #ruby
<RubyPanther> I grew up with Encyclopedia Britannica. It was a great thing for a child. I could spend all day learning about dinosaurs or airplanes. The quality was much lower than what wikipedia manages, though. In all areas, completeness, NPOV, ability to check references.
Gekz has joined #ruby
<stenno> still there are simply false articles on wikipedia, and there are manipulated on purpose
<stenno> they
<shevy> wikipedia is quite ok
wmoxam has joined #ruby
<RubyPanther> There were simply false articles in Encyclopedia Britannica, too.
<stenno> yes
<stenno> so?
<RubyPanther> I would say, probably a lot more of them.
<stenno> does that make wikipedia better..?
<shevy> so both are bad
<stenno> no it is another problem
<RubyPanther> No, so it is a straw man.
<RubyPanther> "World not perfect, news at 11"
<stenno> yes
<stenno> thats what the dude who left wanted to say i guess
<shevy> wikipedia is not perfect
pxjorge has joined #ruby
<stenno> i trust wikipedia on some issues, and i don't trust them on others
<stenno> but you should always critically look on any information i guess :)
<stenno> after all, we can decide for ourselves what is true and what is not
<stenno> (as there is no true objectivity imho)
Pheen has joined #ruby
Sliker has joined #ruby
phantasm66 has joined #ruby
zomgbie has joined #ruby
carlyle has joined #ruby
hzlocky has joined #ruby
CheeToS has joined #ruby
<RubyPanther> objectivity doesn't have to be perfect to be the amount that people mean when they say the word, that being, the amount that seems to be available to us in the Universe.
<etank> python has a tutorial that released for each version that is released (http://docs.python.org/py3k/tutorial/index.html). is there something like that for ruby?
<RubyPanther> etank: no
<RubyPanther> etank: when we're lucky there are popular blog posts
<etank> hmm .. ok
clockwize has joined #ruby
Norrin_ has joined #ruby
trivol has joined #ruby
ph^ has joined #ruby
<ekaleidox> if i split or scan a line of text, with words being separated each by a comma, how can i set each resulting word as its own variable?
wmoxam_ has joined #ruby
<ekaleidox> im a rookie and im drawing a blank
<burgestrand> ekaleidox: you don’t, you turn the text into a list of words
<ekaleidox> thank you
epochwolf has joined #ruby
<burgestrand> This list is what you call an Array, they’re awfully useful
pencilcheck has joined #ruby
wmoxam has joined #ruby
<ekaleidox> im guessing im trying to do this the wrong way, but if the array is ["hello", "how", "are", "you"] and say its named x
<ekaleidox> x[0] returns hello?
<burgestrand> ekaleido: indeed :)
<burgestrand> ekaleidox: sorry, ^
<burgestrand> ekaleidox: have you seen IRB?
<burgestrand> ekaleido: you are very confusing
banseljaj has joined #ruby
<ekaleidox> yeah im working in irb but i think i was makin it too complicated in my head
<burgestrand> ekaleidox: hehe
<stenno> ruby follows the 'principle of least astonishment', which means that stuff usually works like you would expect it :)
<burgestrand> ekaleidox: x = ["hello", "how", "are", "you"], now play with x, for example just type x[0] and you could’ve answered your own question ;)
marcamilly has joined #ruby
<burgestrand> stenno: *usually follows
<burgestrand> :p
<stenno> :D
<burgestrand> but indeed, often you can just guess what you’d think it should look like and it’s usually right
<burgestrand> however, looking at something and guessing what it does is not always that easy
<ekaleidox> heh, its seeming that way
<stenno> burgestrand, indeed
undersc0re has joined #ruby
<stenno> to be an expert in that, you have to read a lot of code :)
<burgestrand> For example: [1, 2, 3][3, 1] vs. [1, 2, 3][3]
<ekaleidox> so i have text files and the number of lines in them varies, so i count the lines and set the number as y
<burgestrand> and then [1, 2, 3][4,1]
<rippa> [1, 2, 3][3, 1][0,1]
<rippa> more brackets!
<ekaleidox> ive got beginning ruby by peter cooper here. just finding that a once through of a chapter isnt gonna be enough :)
<burgestrand> ;)
<stenno> temp = Array.new(5, Array.new(5,0))
<stenno> temp[0][0] = 23
<stenno> temp[1][0]
<stenno> => 23
<stenno> :(
badabim has joined #ruby
BSaboia has joined #ruby
<ekaleidox> thats what i seem to run into a lot and really missing why
<ekaleidox> >> line = x[0]
<ekaleidox> => "ab1,webb,20120225,how i could just kill a man\n"
<ekaleidox> >> line[0]
<ekaleidox> => 97
<rippa> temp = Array.new(5) {Array.new(5,0)}
Sailias has joined #ruby
<burgestrand> ekaleidox: line is a string, you’re using ruby 1.8 I believe?
<ekaleidox> 1.9
<stenno> huh
<stenno> that should not happen then
<rippa> sure looks like 1.8
<burgestrand> ekaleidox: you sure? p RUBY_VERSION
<ekaleidox> sorry
<stenno> rippa, thanks
<ekaleidox> on the mac, yes 1.8
<burgestrand> ekaleidox: :)
<stenno> you have to do line[0].chr
<burgestrand> ekaleidox: in ruby 1.8, string[index] will give you the ASCII (internal) number for the character at `index`
<stenno> or each_char iirc
<burgestrand> byte value, to be more correct
<burgestrand> ekaleidox: if you wanted a specific word, you must first split the line into words :)
blueadept has joined #ruby
tayy has joined #ruby
<ekaleidox> yeah, and the words are separated by a , in this case. i want to make each word a variable (i think)
Hounth has joined #ruby
<stenno> "a,b,c".split(",")[0] => "a"
<ekaleidox> >> y = x[0].split(/,/)
<ekaleidox> => ["ab1", "webb", "20120225", "how i could just kill a man\n"]
<ekaleidox> perfect
<ekaleidox> well
<ekaleidox> not perfect, but cool
<ekaleidox> thats what i was after
davidpk has joined #ruby
<ekaleidox> ;)
wmoxam has joined #ruby
wmoxam_ has joined #ruby
<ekaleidox> thanks for tolerating the rookie and thanks for the help
<shevy> :)
<stenno> tolerating rookies is fun if they are both polite and responsive :)
trimmer has quit ["Leaving"]
<burgestrand> and not completely, um, you know
pfo has joined #ruby
<stenno> yeah...
Mosselman has joined #ruby
<SirFunk> so i'm fairly a ruby newb. I've written a gem ... how can i have a default config for the gem and also allow configuration settings for it in my rails app?
d34th4ck3r has joined #ruby
justfielding has joined #ruby
davidcelis has joined #ruby
alek_b_ has joined #ruby
blenny_ has quit [#ruby]
pantsman has joined #ruby
pantsman has joined #ruby
pdtpatr1ck has joined #ruby
trivol has joined #ruby
frequency9 has joined #ruby
fbernier has joined #ruby
andrewhl has joined #ruby
tensai_cirno has joined #ruby
imami has joined #ruby
paissad has joined #ruby
apeiros_ has joined #ruby
joallard has joined #ruby
<joallard> Where should one put the mixins in a gem?
daglees has joined #ruby
bluOxigen has joined #ruby
zomgbie has joined #ruby
sdwrage has joined #ruby
startling has joined #ruby
simao has joined #ruby
idletom has joined #ruby
CannedCorn has joined #ruby
_ramo has joined #ruby
Seisatsu has joined #ruby
phantasm66 has joined #ruby
looopy_ has joined #ruby
twqla has joined #ruby
tvw has joined #ruby
PragCypher has joined #ruby
aers has joined #ruby
barraponto has joined #ruby
iMe has joined #ruby
trivol has joined #ruby
wyhaines has joined #ruby
apok has joined #ruby
antikraft has joined #ruby
mikeycgto has joined #ruby
mikeycgto has joined #ruby
wilmoore has joined #ruby
baroquebobcat has joined #ruby
phantasm66 has quit [#ruby]
imami has joined #ruby
rramsden has joined #ruby
phantasm_ has joined #ruby
pantsman has joined #ruby
<visof> hello
<visof> how can i check for hash?
<visof> foo = {}; foo.ishash?
<visof> is there equivalent for that ?
pantsman has joined #ruby
andrewhl has joined #ruby
tobym has joined #ruby
kirun has joined #ruby
munx has joined #ruby
RubyPanther has joined #ruby
seitensei has joined #ruby
Caius has joined #ruby
yawniek has joined #ruby
salvador_ has joined #ruby
abrookins has joined #ruby
acidjazz has joined #ruby
blooberr has joined #ruby
s14 has joined #ruby
pvh has joined #ruby
hackeron has joined #ruby
parus has joined #ruby
dominikh has joined #ruby
TheDeadSerious has joined #ruby
MoMo has joined #ruby
benwoody has joined #ruby
Quadlex has joined #ruby
samuelkadolph has joined #ruby
Koshian____ has joined #ruby
nicksmith has joined #ruby
end3r- has joined #ruby
klaas has joined #ruby
UdontKnow has joined #ruby
leex has joined #ruby
tomb has joined #ruby
cynosure has joined #ruby
<visof> how can i check for hash?
<visof> foo = {}; foo.ishash?
<visof> is there equivalent for that ?
<deryldoucette> var.is_a? Hash
mitchty has joined #ruby
<deryldoucette> 1.9.3-p0 :010 > @myclassb.is_a? Hash => false
<deryldoucette> taht was supposed to be 2 lines hehe
end3r- has joined #ruby
<deryldoucette> its actually of type Wod so
<deryldoucette> 1.9.3-p0 :011 > @myclassb.is_a? Wod => true
iocor has joined #ruby
glosoli has joined #ruby
apeiros has joined #ruby
xoebus has joined #ruby
charlenopires has joined #ruby
wallerdev has joined #ruby
Guest__ has joined #ruby
trivol has joined #ruby
darthdeus has joined #ruby
nedbat has joined #ruby
badabim has joined #ruby
danrasband has joined #ruby
Foxandxss has joined #ruby
blueadept has joined #ruby
<barraponto> can i put numbers in a gem name (not version) ?
dnyy has joined #ruby
macgregor has joined #ruby
sophi has joined #ruby
nedbat_ has joined #ruby
S2kx has joined #ruby
trivol has joined #ruby
looopy has joined #ruby
<td123> and he left, great
phantasm66 has joined #ruby
akem has joined #ruby
akem has joined #ruby
nfluxx has joined #ruby
ed_hz_ has joined #ruby
havenn has joined #ruby
havenn_ has joined #ruby
<CacheMoney> I have a text file consisting of: "Michael", "Jason", "Elizabeth", etc... And I want to open it and seperate all the names into an array. How do I do this with ruby?
al3xnull has joined #ruby
<canton7> CacheMoney, single string? Always a comma between? Always quotes?
mengu_ has joined #ruby
<CacheMoney> canton7: yes always double quotes and a comma in between (no spaces)
<CacheMoney> canton7: I'm unsure as to how I open the file and save it as a string...
<davidcelis> This class will get you started.
ryanf has joined #ruby
trivol has joined #ruby
<CacheMoney> davidcelis: I was looking through there but don't know how to save a file to to a string so I can begin to parse the names from between the double quotes
<canton7> CacheMoney, once you've got the string (hint: File.open), s.split(/,\s*/).map{ |a| a[/"(.*)"/, 1] } should do it (though there's probably a neater way)
<canton7> oops, File.read
<CacheMoney> canton7: ahh... I was doing File.open. Thanks!
<canton7> CacheMoney, you could have done s = File.open('file'){ |f| f.read }
<CacheMoney> * I was doing File.open("names.txt", "r") but it was still giving it to me as a File
heftig has joined #ruby
<canton7> yeah, then you call f.read
<CacheMoney> makes sense... thanks for the help
databyte has joined #ruby
s0ber has joined #ruby
y3llow has joined #ruby
trivol has joined #ruby
y3llow has joined #ruby
viper1092 has joined #ruby
stephe has joined #ruby
y3llow has joined #ruby
heftig has joined #ruby
stephenjudkins has joined #ruby
marcamilly has joined #ruby
centr0 has joined #ruby
y3llow has joined #ruby
charlenopires has joined #ruby
etank has joined #ruby
stephe has quit [#ruby]
liluo has joined #ruby
<shevy> hmmm
<shevy> I think I just had a revelation
<stenno> who doesn't, every once in a while
<shevy> rather than use instance variable like @name or @extract ... I'll just store it in a hash
<shevy> hash['name'] hash['extract']
<shevy> that way I can kill about 15 instance variables!
<stenno> shevy, did you follow the discussion about OpenStruct earlier..?
<shevy> yeah
<shevy> the solution used method_missing
<stenno> yup
<shevy> I don't trust method_missing anymore
<stenno> hehe
<shevy> though
<shevy> the object.method_call notation is nice
<stenno> what is that?
<shevy> perhaps I will do it internally ... hash['what_is_my_name'] and object.what_is_my_name
barraponto has joined #ruby
<shevy> the latter seems more readable
<shevy> if object.is_a_cat
<shevy> slay_kitten
<shevy> else
<shevy> feed_the_monkey
undersc0re has joined #ruby
undersc0re has joined #ruby
ZachBeta has joined #ruby
CheeToS has joined #ruby
sabooky has joined #ruby
<stenno> end
<shevy> hehe
<sabooky> what is the fastest way to learn rails (My only web experiance was messing with django for a few hours (20-40hrs) a couple of years back). Also, any recommendation on rails vs sinatra?
<shevy> that's my initial datastructure in almost-raw form http://pastie.org/3458941
<shevy> oops
<apeiros> sabooky: sinatra is quite a bit easier to get.
<apeiros> rails community is vastly bigger
<shevy> noticed this isn't it quite actually, some entries are missing... ah well
<canton7> sabooky, rails vs sinatra: depends what you want to do. Rails is very heavy, and you need a good understanding of it to be productive. However, if you know it well, you can do a lot quickly. Sinatra is much lighter, and gives you a lot more power (and is vastly quicker to pick up), although you might find it lacking if you're used to large frameworks
<canton7> sabooky, don't ignore padrino also, which is a full framework based on sinatra
<shevy> padrino?
<canton7> shevy, first heard of it from Konstantin. http://www.padrinorb.com/
<apeiros> canton7: given that both, rails & sinatra are rack mountpoints, I'd dispute the "more power"
<apeiros> in the opposite, I'd say if you don't go metal, rails gives more power (which is one reason why it is quite a bit heavier)
<canton7> apeiros, yeah I wasn't clear. More fine-grained control, then
<apeiros> there was a newer webframework that looked interesting…
<canton7> apeiros, for instance, last time I used rails, it was a nightmare to use jquery instead of prototype
<stenno> shevy, you can 'serialize' that to json!
<stenno> canton7, i remember that D:
<apeiros> canton7: hu? was that with rails 1.x or something? :)
<stenno> 2.*
<apeiros> I've never used rails with anything but jquery…
<apeiros> and that since 2.0.x
<shevy> stenno hmm any advantage in doing that?
<apeiros> but granted, I'm relatively js savvy…
paissad has joined #ruby
<canton7> probably early 2.0, since the book I've got is for rails 2
<sabooky> Hmm.. ok, a little background.. I'm primarly a sys admin, but am pretty good with scripting languages (python, perl, and lately learning ruby). What I want to create is a proof of concept webpage for this idea I have. If the PoC looks promosing, then I'll probably just hire someone out for the web devel portion of it.
<stenno> shevy, not really, only if other non-ruby applications are accessing it (maybe webstuff..?)
<canton7> I can't remember enough details I@m afraid
<apeiros> canton7: anyway, with rails 3.2, jquery is the default
<apeiros> and if you want something else, it's trivial
<shevy> hmm perhaps eventually, right now these are just used as commandline tools
<apeiros> but the asset pipeline is a PITA at the beginning
<shevy> sabooky what idea is it :D
<sabooky> From what you guys/gals have been describing it looks like sinatra might be the bets route for someone who's not dedicated to web development?
<apeiros> ah, pakyow was the interesting one
<stenno> sinatra ftw
<canton7> apeiros, sure, and I'm sure that it's a lot better than it used to be. However, rails is still "this is how we provide things, but you can try and change them if you want", whereas sinatra is more "we haven't given you anything: use what you want"
<shevy> is that a russian framework
<apeiros> canton7: agreed.
zastaph has joined #ruby
senthil has joined #ruby
samsonjs has joined #ruby
epochwolf has joined #ruby
trivol has joined #ruby
<CacheMoney> How can I take a string i.e. "YUKO" and given that each letter is equivalent to which location it is in the alphabet ("A" = 1, "B" = 2, etc) and give it a value based on the sum of its letters?
<apeiros> CacheMoney: what did you try so far?
<CacheMoney> "YUKO" = 25 + 21 + 11 + 15 = 72
<CacheMoney> apeiros: I'm stuck. I'm thinking of creating a hash with letters as the keys and values as the location in the alphabet
<apeiros> so far so good
<apeiros> (there are other ways, but lets pursue this one)
<senthil> CacheMoney: why not use internal object id
databyte has joined #ruby
<CacheMoney> senthil: I'm not familiar with internal object id
<CacheMoney> apeiros: I'm still interested in pursing this way...
<senthil> CacheMoney: err it might not be called 'internal object id'
<apeiros> CacheMoney: yes, so next step would be to iterate over the characters
looopy has joined #ruby
<apeiros> look up the value in the hash and add it to your sum
<apeiros> initialize the sum with 0
<apeiros> senthil: I don't think that's of any use to his problem
HINSS has joined #ruby
<apeiros> Boohbah: roughly, afaik there's other falsy values in C, not just 0
<CacheMoney> apeiros: okay... I'm going to give it a try
<apeiros> CacheMoney: when you're done and/or stuck: pastie.org your code
<Boohbah> apeiros: i have zeroed out the array
<HINSS> Hi! What's the best IDE to use ruby? (I like IDE, Intellisense, Highlighting, Interpreter, Debugger, Compiler, Unit Testing, and all those stuff in a single easy to use place)? (Both for Windows and Linux)?
<senthil> apeiros: he can just iterate over the string, add the values together, instead of creating a new hash
<HINSS> (Easy to install is nice too)
<apeiros> senthil: but that's unrelated to the object id
<apeiros> HINSS: ed
vandemar has joined #ruby
<senthil> apeiros: i'm forgot what it is called, you know how each string char is mapped to a number in backend, i.e. 'A' = 37 (i think)
<apeiros> HINSS: not really an IDE guy, but I think rubymine is about as good as it gets
<apeiros> senthil: you mean the strings ordinal, String#ord
<apeiros> (or rather, the characters')
<senthil> apeiros: ordinal like '1st, 2nd'?
<apeiros> senthil: personally I'd use unpack+inject + a little math
<HINSS> thx
<apeiros> shortest code, most likely the fastest too, but probably not the easiest to grasp for everybody :)
shruggar has joined #ruby
wallerdev has joined #ruby
glosoli has joined #ruby
fayimora_ has joined #ruby
i8igmac has joined #ruby
<i8igmac> i need some help, im working on a http client and i wan into this response...
<i8igmac> document.write("<font class=spy2>:<\/font>"+(c3y5e5^i9h8)+(z6k1t0^c3g7)+(i9q7s9^w3y5)+(r8b2h8^y5n4))
<senthil> apeiros: does unpack convert to byte?
<apeiros> it converts to whatever you tell it to. I'd use it to convert to integer per byte
<apeiros> i.e. 'AB' -> [65,66]
<i8igmac> does this make sense to anyone?
<i8igmac> (c3y5e5^i9h8)+(z6k1t0^c3g7)+(i9q7s9^w3y5)+(r8b2h8^y5n4)
<i8igmac> i think its 4 numbers
<apeiros> i8igmac: document.write sounds very much like javascript, and not ruby…
<senthil> apeiros: that's what i was thinking, find the byte codes, adjust to start at 0 and add them all up
<i8igmac> could i convert this string with ruby?
<senthil> instead of having to create a hash 'A' => 1 etc.
<apeiros> senthil: yes, that's String#ord (which String#unpack can do for a whole string instead of just individual ones)
<senthil> apeiros: ah, nice
<apeiros> senthil: but that's where you need added math, since 'A' -> 65, not 'A' -> 1
barraponto has quit [#ruby]
ali_h has joined #ruby
<apeiros> senthil: see privmsg
<apeiros> that's how I'd do it
<senthil> apeiros: wasn't he going to manually map each char?
<apeiros> yes
<apeiros> I think it's good to let him pursue his solution
<apeiros> it's a valid one
Sliker has joined #ruby
<i8igmac> (c3y5e5^i9h8)+(z6k1t0^c3g7)+(i9q7s9^w3y5)+(r8b2h8^y5n4) ==> 1389
<i8igmac> i was looking to convert this with ruby
<apeiros> i8igmac: you're looking at variables
<stenno> what is that o_O"
<apeiros> c3y5e5 is not a string, not a number. it's a variable.
<stenno> oh right
<stenno> tricky
<apeiros> and if the vars are numbers, it works 1:1 the same in ruby.
<apeiros> see Integer#^
<apeiros> and Integer#+, but that one ought to be obvious…
<i8igmac> what would this simple reprisent? ^ ?
<i8igmac> math?
<apeiros> i8igmac: how about you do as I told you and look up the docs for Integer#^ ?
<apeiros> and yes, it's a math thingy…
<apeiros> oh, might have to use Fixnum#^
<apeiros> weird… it's documented on both, Fixnum and Bignum, but not on Integer…
<stenno> that might be rather complex to solve though
<i8igmac> i think its a security thing,
<apeiros> I think it's a retarded obfuscation thing
<stenno> ooh i am getting the picture
<apeiros> just use your js debugger and see what the variables contain at that line
<i8igmac> i dont know how to do that
<i8igmac> ill have to learn i guess
<stenno> indeed
<i8igmac> another time
<i8igmac> maybe there is a online translater for js
<apeiros> yeah, well, with safari and firefox it's as simple as opening the menu "debugger", mark the line with a breakpoint (a mouseclick on the linenumber) and you're done.
<apeiros> *facepalm*
<apeiros> I *told* you it's *exactly* the same in ruby.
<CacheMoney> apeiros: I figured it out! Thanks for pushing me. Here's my code http://pastie.org/3459239 to Project Euler problem #22 http://projecteuler.net/problem=22
NotMyself has joined #ruby
<i8igmac> i have a hard time figureing this kind of stuff out... for example pack and upack i have to teast each example threw irb until i find the right one
nedbat has joined #ruby
hmans has joined #ruby
<apeiros> CacheMoney: cool!
<stenno> string.pack ?
mxweas_ has joined #ruby
<stenno> er array.pack ?
<apeiros> CacheMoney: fyi, my solution to your problem: s = "YUKO"; s.unpack("C*").inject(:+)-s.size*64 # => 72
<apeiros> as for extracting the names: names = File.read(path).scan(/\w+/); names.each_with_index do |name, pos| …
<hmans> here's a little thing I wrote with Sinatra. http://schnitzelpress.org/2012/2/25/introducing-schnitzelpress/
<apeiros> though, since they probably start counting with 1, I'd probably use a different approach, probably 1..(names.size).zip(names)
startling has quit [#ruby]
<apeiros> stenno: String#unpack ;-)
<stenno> yeah
Blaster has joined #ruby
<stenno> string.unpack and array.pack
<stenno> i sometimes mix them up :)
* apeiros wonders, 22 is one I should have solved too… *searches code*
<apeiros> oh, not on this computer :(
<i8igmac> idont know...("c3y5e5^i9h8").to_i(16)
<apeiros> i8igmac: dude, "+(c3y5e5^i9h8)+(z6k1t0^c3g7)+(i9q7s9^w3y5)+(r8b2h8^y5n4)) -- there's no string "(c3y5e5^i9h8)" in there
<apeiros> it's c3y5e5^i9h8, and c3y5e5 and i9h8 are weirdly named *variables*
hasrb has joined #ruby
<apeiros> but hey, no need to listen to me…
* apeiros walks off
<i8igmac> im trying to understand
<Blaster> hey how do you exit the irb when in shell?
<apeiros> Blaster: exit
ceej has joined #ruby
Aaaarg has joined #ruby
<apeiros> you can of course also do `kill -9 #{$$}` :-p
* CacheMoney eating some lunch
<Blaster> can you do multi-liners in irb?
<apeiros> Blaster: just try it
<Blaster> each time I press enter it's just interpreting the command
<apeiros> it might bite your hand off in the process, so be extra careful…
<Blaster> I did try it
<apeiros> um…
<apeiros> works fine
<Blaster> im trying this...
<Blaster> puts "Hello, world. What is your name?"
<apeiros> method defs over multiple line just as well… http://pastie.org/3459299
<Blaster> myname = gets()
<Blaster> puts "Well, hello there " + myname + "."
zenguine has joined #ruby
<apeiros> Blaster: yes, of course, every individually executable line *will* be executed
<apeiros> that's the *point* of irb. if you want it to wait, use e.g. a ; in the end
<Blaster> Is the first line supposed to prompt me the question?
<Blaster> I'm just reading this example from a book
<apeiros> the first line is supposed to print the stuff between the quotes
<apeiros> and return nil
<apeiros> the return value is the stuff on the next line with a "=> " in front of it
<apeiros> the second line is supposed to wait until you entered something
compcube has joined #ruby
<apeiros> the third line seems like it is missing a .chomp, since without it, it'll print the . on the next line.
<ekaleidox> hmans: very nice, ive been looking for something like that
<hmans> ekaleidox: thanks! Give it a go -- this is pretty much the first time anyone else is looking at it. I hope I didn't get the Quick Start guide _all_ wrong. =)
Hanmac has joined #ruby
<Hanmac> i am looking for one of the wxRuby developers ... is someone of this guys there?
MrGando has joined #ruby
danielpunt has joined #ruby
tinhead has joined #ruby
undersc0re has joined #ruby
undersc0re has joined #ruby
LachlanH has joined #ruby
<LachlanH> Is there an easy to way to pretty-print the difference between two Time instances?
<hmans> Try (t1.to_i - t2.to_i).seconds
<hmans> (just guessing. let me try.)
<hmans> Oh wait, this is assuming activesupport, of course.
epochwolf has joined #ruby
<LachlanH> Well actually one is ActiveSupport::TimeWithZone and the other is just Time. I can get the duration in seconds easily enough, just want to pretty print it with days, hours, etc.
<hmans> I'm useless. Sorry.
nedbat has joined #ruby
havenn has joined #ruby
wyhaines has joined #ruby
Amorsen has joined #ruby
MrGando has joined #ruby
emocakes has joined #ruby
<Hanmac> hm has someone an working wxRuby? my seems a little (means VERY) broken ...
hackeron has joined #ruby
<undersc0re> Hanmac: it's pretty dead
<undersc0re> has been for a while
shevy has joined #ruby
TheTFEF has joined #ruby
ribayr has joined #ruby
<Hanmac> undersc0re: hm so it maybe sounds good that i try an new one ... but i have problems where maybe the old wxRuby users could help me ... if there are still exist
<undersc0re> probably not any
<undersc0re> because it's been dead since 2009
<undersc0re> or something around there
<Hanmac> so an revite for wx2.9.* could be interesting?
<undersc0re> Hanmac: meh
<undersc0re> If you're willing to
<undersc0re> Hanmac: QtRuby?
<undersc0re> it's good'
<Hanmac> hmm no QT does not smell currect ... i have tryed .. i need an more portable thing ... wx fit into that
baroquebobcat has joined #ruby