<elico1>
it should make the request line faster to parse by routing proxy servers for example.
<Kenum>
what's the best way to make something with an array, iterating each element and in each element step you ignore the current element?
<workmad3>
elico1: tough call to make tbh... you'd basically need to write a parser for both possibilities, profile them, and probably benchmark them in realistic settings too
tomzx_mac has joined #ruby
<Kenum>
for instance for [1,2,3] you do something with [2,3] then with [1,3] and then with [1,2]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
<elico1>
workmad3: This is what I am doing right now. not for this reason but for another. On the way I will try that.
<Kenum>
ah I guess reject is what I am looking for
mneorr has joined #ruby
<workmad3>
elico1: it could be faster to process in ruby... might not (depends on the extra complexity needed), but that may be made up for by reducing latency and increasing throughput on the network
<elico1>
workmad3: Seems good to me. But Now I'm thinking: a regex or specific parser??
<elico1>
regex are slow by default.
baphled has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
mengu has joined #ruby
ham1 has quit [Quit: Leaving]
shashin has quit [Quit: shashin]
joeycarmello has joined #ruby
hybris has quit [Quit: hybris]
TomRone has quit [Ping timeout: 264 seconds]
robdodson has joined #ruby
shashin has joined #ruby
<robdodson>
can I ask a newbie ruby question here… I'm trying to get bundler to install everything under my :development group on heroku via the heroku bash shell. But I can't figure out how to make it work. I tried setting RACK_ENV to development but that didn't seem to help. Any thoughts?
joeycarmello has quit [Ping timeout: 256 seconds]
macmartine has joined #ruby
maletor has joined #ruby
hadees has quit [Quit: hadees]
jetblack has joined #ruby
braoru has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
<Kenum>
Spooner: that is very expressive, thanks
adkron has quit [Ping timeout: 276 seconds]
samuel02 has quit [Remote host closed the connection]
staafl has joined #ruby
danneu has joined #ruby
samuel02 has joined #ruby
eka has joined #ruby
apeiros_ has quit [Ping timeout: 276 seconds]
jasonwilliams has joined #ruby
samuel02 has quit [Ping timeout: 264 seconds]
emergion has joined #ruby
<jasonwilliams>
hello, new here. aside from being a programming language which establishes tcp/udp connections what is the purpose of ruby
robdodson has quit [Quit: robdodson]
angusiguess has joined #ruby
<fryguy>
jasonwilliams: it's just a general purpose programming language
robotmay has quit [Ping timeout: 245 seconds]
keymone has quit [Quit: keymone]
brianpWins has joined #ruby
<jasonwilliams>
fryguy: ok thanks,
charliesome has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
f0ster has quit [Read error: Connection reset by peer]
jasonwilliams has left #ruby [#ruby]
rakl has quit [Quit: sleeping]
mhf has quit [Remote host closed the connection]
gosshedd has quit [Ping timeout: 245 seconds]
ij has quit [Ping timeout: 260 seconds]
TomRone has joined #ruby
TheFuzzball has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 244 seconds]
kylescottmcgill has joined #ruby
m8 has quit [Quit: Sto andando via]
<Kenum>
In array subtraction it removes the unique elements. [1,2,3] - [2,3] => [1]. But how can I remove it based on the number of occurrences? So that [3,3,3] - [3,3] => [3] =
<Kenum>
?
mockra has joined #ruby
brianpWins has quit [Quit: brianpWins]
LazyBrian has left #ruby [#ruby]
<kylescottmcgill>
Whats the naming convention for the %s/w/i string stuff?
noxoc has quit [Ping timeout: 245 seconds]
Bry8Star has quit [Read error: Connection reset by peer]
end_guy has quit [Write error: Broken pipe]
<whitequark>
Kenum: #delete
mengu has quit [Quit: This computer has gone to sleep]
withnale has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0]
<whitequark>
maybe percent-literal if you want to be specific
<kylescottmcgill>
whitequark: ok thanks, im interested to see what others there are, but google doesnt help without knowing somewhat what the names are :s
mockra has quit [Ping timeout: 244 seconds]
reinaldob has quit [Remote host closed the connection]
bricker`LA has joined #ruby
bricker`LA is now known as bricker
<whitequark>
kylescottmcgill: sSwWrqQi
<whitequark>
Uppercase = interpolated, except regex, which is always interpolated
<whitequark>
i = symbol words, 2.0 only
noxoc has joined #ruby
<kylescottmcgill>
awesome, also are you using 2.0? is it nice? or vastly different or?
<whitequark>
kylescottmcgill: not yet. there aren't many changes. it should have various minor niceties.
<kylescottmcgill>
awesome
<whitequark>
the refinements feature is experimental (and controversional) yet and shouldn't be used in portable code.
RagingDave has quit [Quit: Ex-Chat]
mattbl has joined #ruby
noxoc has quit [Client Quit]
moos3 has joined #ruby
jamescarr has quit [Quit: jamescarr]
nateberkopec has quit [Quit: Leaving...]
MattRB has quit [Ping timeout: 245 seconds]
w11_sp has joined #ruby
jamescarr has joined #ruby
<kylescottmcgill>
ty, will keep that in mind for now :)
w11_sp has left #ruby [#ruby]
mfridh has quit [Read error: Operation timed out]
staafl has quit [Ping timeout: 255 seconds]
end_guy has joined #ruby
<Kenum>
How can I compute the array product on an array of arrays?
nazty has joined #ruby
havenn has quit [Remote host closed the connection]
postmodern has joined #ruby
Spooner has quit [Remote host closed the connection]
s1n4 has joined #ruby
Takehiro has joined #ruby
icole has joined #ruby
VegetableSpoon has joined #ruby
<swarley>
Is there a way to prevent (?-mix:) in embeded regex?
yacks has joined #ruby
nfk has quit [Quit: yawn]
Bosma_ has joined #ruby
Bosma_ is now known as Bosma
Bosma has quit [Client Quit]
Takehiro has quit [Ping timeout: 252 seconds]
Bosma has joined #ruby
mhf has joined #ruby
ebobby has joined #ruby
nomenkun_ has joined #ruby
ferdev has quit [Read error: Connection reset by peer]
nomenkun has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
picca has left #ruby [#ruby]
jimeh has quit [Quit: Computer has gone to sleep.]
maletor has quit [Quit: Computer has gone to sleep.]
EPIK has joined #ruby
plotter has joined #ruby
s1n4 has quit [Quit: leaving]
Virunga has joined #ruby
plotter has quit [Remote host closed the connection]
mfridh has joined #ruby
mxweas has quit [Quit: Computer has gone to sleep.]
Nisstyre-laptop has quit [Quit: Leaving]
icole has quit [Remote host closed the connection]
Kuifje has quit [Ping timeout: 264 seconds]
Nisstyre-laptop has joined #ruby
TomJ_ has joined #ruby
TomJ_ has quit [Changing host]
TomJ_ has joined #ruby
onemanjujitsu has quit [Quit: onemanjujitsu]
davidcelis has quit [Quit: K-Lined.]
erichmenge has quit [Quit: Arrivederci!]
eka has quit [Quit: Computer has gone to sleep.]
hadees has joined #ruby
davidcelis has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Changing host]
Evixion has quit [Quit: Leaving]
TomJ has quit [Ping timeout: 264 seconds]
TomJ_ is now known as TomJ
erichmenge has joined #ruby
mikepack has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
atmosx has quit [Quit: And so the story goes…]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
shashin has quit [Quit: shashin]
jamescarr has quit [Quit: jamescarr]
ebobby has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 256 seconds]
lifestream has joined #ruby
lifestream has quit [Remote host closed the connection]
jonathanwallace2 has quit [Ping timeout: 256 seconds]
jonathanwallace has joined #ruby
cardoni has quit [Quit: cardoni]
<slash_nick>
look Nissan's selling their Nissan QUEST starting at 25,990... becom33 string.match(/^\$(.+)=/)
<slash_nick>
that includes the $ and =
Nisstyre-laptop has quit [Quit: Leaving]
dustint has joined #ruby
<danneu>
str[/\$([^\=]+)/, 1]
shashin has joined #ruby
mxweas has joined #ruby
mockra has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Jeaye_ has joined #ruby
<danneu>
i think "all chars until X" incurs backtrack penalty.
Jeaye has quit [Read error: Connection reset by peer]
xpen has joined #ruby
mockra has quit [Ping timeout: 244 seconds]
forced_request has joined #ruby
mneorr has quit [Remote host closed the connection]
drago757 has quit [Quit: drago757]
Bosox20051 has quit [Remote host closed the connection]
<becom33>
I have a another problem Im doing this socket programing . after reponsing for the command which I capture trough "method.gets" the server responds with more details . I can see them trought telnet but my script doesnt capture them . how can I fix it
anderse_ has joined #ruby
voodoofish has quit [Ping timeout: 255 seconds]
anderse has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
Hanmac1 has joined #ruby
h4mz1d has joined #ruby
<dcope>
anyone using the mp3info gem? i can't figure out how to recover from errors when open()ing a file
Hanmac has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
Ortuna has joined #ruby
Jeaye_ is now known as Jeaye
tjbiddle has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
tjbiddle has joined #ruby
cosmo115 has quit [Remote host closed the connection]
<aedornm>
becom33: strip only strips new lines at the beginning or end of a string. Since you have \r\n77 at the end, it won't do anything.
elico has joined #ruby
mhf has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
nga4 has quit []
tealmage has quit [Remote host closed the connection]
elico has quit [Client Quit]
tealmage has joined #ruby
Beoran_ has joined #ruby
idkazuma has quit [Remote host closed the connection]
Beoran__ has quit [Read error: Operation timed out]
daniel_- has quit [Ping timeout: 264 seconds]
statarb3 has quit [Ping timeout: 244 seconds]
RurouniJones has quit [Remote host closed the connection]
ebobby has joined #ruby
VegetableSpoon has quit [Quit: Leaving]
mhf has quit [Read error: Connection reset by peer]
xpen_ has joined #ruby
mneorr has joined #ruby
mhf has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
roadt_ has joined #ruby
ebobby has quit [Ping timeout: 256 seconds]
xpen has quit [Ping timeout: 245 seconds]
Takehiro has joined #ruby
xpen_ has quit [Remote host closed the connection]
xpen has joined #ruby
Virunga has quit [Remote host closed the connection]
nari has joined #ruby
cardoni has joined #ruby
Takehiro has quit [Ping timeout: 252 seconds]
jaequery has quit [Quit: Computer has gone to sleep.]
adkron has joined #ruby
mneorr has quit [Remote host closed the connection]
gurps has quit [Quit: bye]
mockra has joined #ruby
jrafanie has joined #ruby
yshh has joined #ruby
h4mz1d has quit [Ping timeout: 255 seconds]
mockra has quit [Ping timeout: 248 seconds]
danneu has quit [Quit: WeeChat 0.3.8]
pskosinski has quit [Quit: Drama: Open source spirit according to Quinton Reeves, Red Eclipse developer: http://pawelk.pl/quinton-reeves]
danneu has joined #ruby
aaronmcadam has quit [Quit: aaronmcadam]
meoblast has quit [Read error: Connection reset by peer]
niklasb has quit [Ping timeout: 260 seconds]
mxweas has quit [Quit: Computer has gone to sleep.]
ekr has joined #ruby
<jokke>
hey folks. I need to know if theres some selective human-readable and editable "serialization"-method available? With selective i mean, that i have hooks in the class i want to serialize (or rather an instance of it), which allow me to define what is saved, and what isn't (will be regenerated with a load hook).
agarie has joined #ruby
otters has joined #ruby
<jokke>
i'm really bad at forming questions..
subbyyy has joined #ruby
<jokke>
i hope you can get the gist of it thouhg.
xemu has quit [Ping timeout: 264 seconds]
bean__ has joined #ruby
nari has quit [Ping timeout: 245 seconds]
<heftig>
jokke: the dump-load protocol of Marshal is also implemented by YAML (human-readable) and JSON (human-readable, but not extendable)
MattRB has joined #ruby
agarie has quit [Remote host closed the connection]
<Kenum>
How can I write: a.each{|e1| b.each {|e2| c.each {|e3| ... } } } more general so that it works for an arbitrary number of enumerations, not only a,b,c but a,b,c,d,e,f... ?
Takehiro has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Ping timeout: 248 seconds]
dmerrick has joined #ruby
Nisstyre-laptop has joined #ruby
jrajav has quit [Ping timeout: 255 seconds]
rramsden has quit [Quit: leaving]
main_ has quit [Ping timeout: 244 seconds]
<bean__>
Kenum: I'd doubt that you can.
<bean__>
Unless all A's are contained in a single object
<Kenum>
bean__: yes, I guess in this case it would be an array containg all the A's. I have found a solution to this
<Kenum>
after all I only want to compute my own cartesian product, but with yield so I don't have to store all the results
<wmoxam>
FYI, you can write a js + html version of pacman and it'll run fast :p
<Boohbah>
i was referring to the archlinux package manager, not the classic namco arcade game :)
<wmoxam>
Boohbah: oh, well ruby could do that too
<jokke>
heftig: yes i use yaml now, but the problem is, that much unnecessary stuff gets dumped. I don't need that, because it can be regenerated with a load hook.
<wmoxam>
Boohbah: OpenBSD's poackage tools are all written in Perl
aapzak has quit [Ping timeout: 240 seconds]
<jokke>
i want a selective dump
<Boohbah>
wmoxam: and gentoo portage in python
<Boohbah>
but pacman is really fast and i am afraid ruby would slow it down
<wmoxam>
Boohbah: I really don't see why
adkron has quit [Ping timeout: 264 seconds]
<jokke>
why would you wanna rewrite pacman?
aapzak has joined #ruby
<wmoxam>
I guess for similar reasons that compelled people to write homebrew
<jokke>
hm
<wmoxam>
(I'm still not sure what they are exactly)
<Boohbah>
libalpm
<jokke>
i'd get it if you wanna add some extra functionality or so..
<jokke>
what i think would be great is an aur helper written in ruby
<Boohbah>
i wasn't serious about rewriting pacman in ruby, only a silly thought
<Boohbah>
but an aur helper is more realistic
<Boohbah>
although we don't need any more aur helpers
<jokke>
that's true
<jokke>
have you tried aura?
<Boohbah>
nope, i use yaourt
<Boohbah>
and makepkg
<jokke>
yeah i switched from yaourt to aura a few weeks ago
<robert_>
self.process_schedule :this => that, :foo => bar do ... end
<robert_>
and
<robert_>
self.process_schedule dataset, :this => that, :foo => bar do ... end
cardoni has quit [Quit: cardoni]
<shevy>
def foo(a,*b); puts "This is a: #{a}"; puts "This is b: #{b}"; end
<shevy>
foo('a','b','c','d','e')
<shevy>
This is a: a
<shevy>
This is b: bcde
<shevy>
robert_ your first example passes in a hash
Takehiro has joined #ruby
ahokaomaeha has quit [Ping timeout: 252 seconds]
<shevy>
foo({'cat' => 'black'})
<shevy>
This is a: catblack
<shevy>
This is b:
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
techhelp has quit [Quit: This computer has gone to sleep]
v0n has quit [Read error: Connection reset by peer]
<danneu>
robert_: basically, when you're passing in key-val pairs, it's treated as one hash
<shevy>
robert_ say something!!!
mockra has quit [Remote host closed the connection]
<shevy>
wmoxam wow... why did they use perl and not ruby?
<robert_>
I want an optional instance variable to be able to be passed in before my splat
<shevy>
Boohbah but this is unfair, pacman is written in C, how could any scripting language compare to C in terms of speed...
<danneu>
robert_: one method is to just process the inputs in the method if you want flexibility in your method signature.
<shevy>
robert_ not easily possible. you could assign it to this ivar, and check for nil in case it was not provided, but you can not easily avoid the first parameter like that
toekutr has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<shevy>
you need to think how the ruby parser sees what you try to feed it
<robert_>
yeah
<shevy>
so how do you want to feed it exactly :D
<danneu>
well, it's easily possible if you just did a check on dataset. if it's a hash `process(a: 1, b: 2)`, the you could `params = dataset` and continue through the method.
<shevy>
yeah
<shevy>
if a.is_a? Hash # assume that we omitted the first argument, thus treat everything as a hash)
<danneu>
i did somethig similar recently. i'm not sure if there's a better idiom but that's simple and it works
<robert_>
shevy: pacman is nice. :D
<shevy>
pacman does not allow me to use appdirs!!!
n1x has joined #ruby
<shevy>
I am gonna make a distribution one day with the sole goal to abolish all other distributions
arietis has joined #ruby
<danneu>
are you talking about arch linux?
<shevy>
who? I?
<danneu>
nvm. i'm already in over my head
<shevy>
cuz pacman is used on a few non-archlinux distributions too, is why I ask back :P
<shevy>
frugalware for instance
cardoni has joined #ruby
<danneu>
ah, i tried arch linux for a split second
<shevy>
there are like at least 12 different package managers out there
<robert_>
I like pacman
<robert_>
shevy: what about appdirs now?\
<shevy>
I think debian leads the list via dpkg/apt-get/aptitude, one just has to look at top ten on distrowatch
<shevy>
robert_ I want to be able to install 100% of any given package, neatly arranged into one (ideally standalone) versioned directory
onemanjujitsu has quit [Quit: onemanjujitsu]
<danneu>
haters gonna hate, but i like homebrew
<shevy>
the FHS does not allow for this. first most distributions by default do not give you 100%, they give you like 50% of a package, then you must install the rest like -dev
elico has joined #ruby
<shevy>
and it spreads the files directly into /usr so you can not easily remove that on your own anymore, which is why you then need the package manager to clean up that mess
<whitequark>
shevy: this actually has nothing to do with a package manager
<shevy>
whitequark and WHERE do they install the files?
<whitequark>
there is a linux distro where each package is contained in their own folder
<shevy>
you can not have a "package manager" without installing files
<whitequark>
yeah yeah. the particular layout is irrelevant
<shevy>
if you refer to gobolinux, it sadly died :( but it was a really cool idea
cardoni has quit [Client Quit]
<whitequark>
when faced with a trivial choice, select the one which is most supported
<shevy>
there is no alternative to the FHS
ananthakumaran has joined #ruby
alekst has joined #ruby
balr0g has joined #ruby
sayan has quit [Quit: Leaving]
<balr0g>
hello, i just compiled and installed Ruby 1.9.3 from sources... now on IRB console i got strange behaviour with arrow keys... usually this is curses and readline problems, am i right?
<balr0g>
i saw messages saying things about curses and readline not found or not installed
<balr0g>
am i right? how to solve? installing those dependencies on my system?
<shevy>
balr0g yeah
<shevy>
let me ask - do you use a debian based system
<balr0g>
shevy, yes, Ubuntu ...
<shevy>
yeah I suspected so
<shevy>
if you are sure you want to compile from source
<balr0g>
so..? build-essentials or something?
<shevy>
you will need to have readline header files and ncurses header files
<shevy>
I dont think build-essentials will help here, as this one installs only gcc toolchain stuff right? so you would still not have readline and ncurses header files
<shevy>
try apt-search for readline and curses, then apt-get install, then go into the ruby*/ source directory
rakl has quit [Quit: sleeping]
<danneu>
balr0g: is there a reason you compiled ruby yourself instead of using rvm
<shevy>
you will find all those addons in the ext/ subdirectory there
<shevy>
in this directory do: ruby extconf.rb;make;make install
quest88 has joined #ruby
<shevy>
dont tell me, you make the choices, not I, I dont care what choices you make, I just try to help you with the choices you make :)
<danneu>
balr0g: i recommend using rvm. it makes these issues easy to google/fix.
freeayu has quit [Ping timeout: 255 seconds]
<danneu>
even tells you what dependencies you need to install for your system
<balr0g>
danneu, how to "remove" my actual Ruby installation to use rvm ?
<shevy>
balr0g you always must decide how you want to solve a given problem. rvm is one way, compiling from source another. but you need to make those decisions yourself
<shevy>
ah, another way to solve this is to ask ubuntu how to get those addons via apt-get ;)
aryasam has joined #ruby
<danneu>
balr0g: rvm will coexist with system ruby. you can just forget system ruby is even installed.
MattRB has quit [Quit: This computer has gone to sleep]
<danneu>
if you want 2.0.0, it's just a 'rvm install 2.0.0' away.
<shevy>
also /usr/bin/irb*
<shevy>
or just apt-get remove ruby or something, I am sure there is a way on ubuntu to do this
<danneu>
i wouldnt even worry about removing system ruby
<shevy>
I would recommend to kill all rubies except the one you will use
<danneu>
i collect rubies
<danneu>
you can never have too many
<balr0g>
lol
freeayu has joined #ruby
<balr0g>
danneu, 2.0.0 is ok for last version of Rails 3.2 ?
<danneu>
balr0g: yeah
<danneu>
balr0g: cut my rails boot speed in half
<shevy>
danneu I too, but I install them into appdirs
<shevy>
hmm I dont have 2.0.0 yet
<balr0g>
shevy, so *kill* those dirs, is just delete them?
aantix_ has joined #ruby
<shevy>
balr0g are you sure you made the decision? if so, try to remove it the ubuntu-clean way first
<shevy>
I forgot how you do that on ubuntu, surely there is a way to uninstall ruby
<shevy>
I usually dont care, I remove dpkg and apt-get and kill all by hand, then compile ruby from source, then compile everything else from source via ruby scripts
<balr0g>
shevy, i installed by compilation... apt-get will catch it anyway?
<danneu>
no
<shevy>
what --prefix did you use?
vlad_starkov has joined #ruby
<balr0g>
shevy, i didnt use any command line option, just commands by default... so it will be system default
<shevy>
apt-get acts on the dpkg database as far as I know, normal configure/make/make install does not use it, so apt-get has no idea what you did balr0g
<shevy>
ok so it must have defaulted to /usr/local then
<shevy>
look into /usr/local/bin
innohero has quit [Ping timeout: 246 seconds]
aantix_ has left #ruby [#ruby]
<shevy>
but next time please say that you used "./configure" as command alone :D
freezway has quit [Ping timeout: 264 seconds]
_bry4n has joined #ruby
aantix_ has joined #ruby
<balr0g>
shevy, there are 8 ruby items...
<shevy>
hey, you can kill them all
<shevy>
you will still have the system ruby at /usr/bin/ruby*
<shevy>
you could even remove /usr/local/ directory
<shevy>
if you would compile something anew, make would create that directory
<shevy>
or rather, "install" will
razibog has quit [Ping timeout: 240 seconds]
nyrb has quit [Ping timeout: 260 seconds]
<shevy>
the /usr/bin/install :D
tjbiddle has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
aryasam has quit [Ping timeout: 255 seconds]
<balr0g>
shevy, so what about /usr/local/lib/ruby ?
<shevy>
told you, you can remove /usr/local
<shevy>
so logically, you can kill /usr/local/lib/ruby
<shevy>
hmm you must be careful though
dhruvasagar has joined #ruby
dhruvasa1ar has joined #ruby
<shevy>
I think debian installs gems into /usr/local hierarchy, cuz they are weird
<shevy>
"gem env" might show that
<shevy>
but as I wrote before
<danneu>
system ruby can be useful to keep around
<shevy>
if I were you, I would use ONE ruby, and remove everything else
<shevy>
balr0g as you see, danneu recommends something else ;) so you must decide
<danneu>
choose wisely
<danneu>
there is no going back
<shevy>
hehehe
<danneu>
frankly it sounds like youve wasted enough time. you can save the sys stuff for another day. get ruby running
<danneu>
start coding something
<balr0g>
hmm..
tjbiddle has quit [Ping timeout: 252 seconds]
<balr0g>
i dont like the idea of delete /usr/local , there are other stuff there apart from ruby
<danneu>
one of the design purposes of rvm is that it just ignores everything else. then one day if youre done with rvm, you just 'rvm implode' and move on with your life
<shevy>
balr0g you dont have to defend your decisions
<shevy>
as I wrote before, I dont care at all what decisions you make, you only need to make them by yourself
<balr0g>
hehe, shevy, in this case im just trying to understand why im taking one decision or another... just to learn from them
<shevy>
I can tell you how I use ruby since about 6 years - I compile from source into prefix /Programs/Ruby/VERSION_HERE i.e. VERSION_HERE becomes 1.9.3p374/
<shevy>
balr0g but then you would have to understand why ubuntu uses ruby in quite that way
<danneu>
i dont know much about system linux but just looking at my own /usr/local it doesnt seem like something id want to delete either
<shevy>
i.e. why Readline isn't working by default
<shevy>
I was too lazy to try to understand the debian guys. I remove their stuff and use my own ruby and it works nicely for me
<shevy>
in other words, no critical packages are allowed to reside there
<openstandards>
balr0g: i don't know much about ruby but rvm is lovely and supported by multiple distros too :)
<shevy>
and since debian is following the FHS, they will follow it
<shevy>
can anyone tell me why the FHS mandates a /usr/local/games directory ;)
onemanjujitsu has quit [Quit: onemanjujitsu]
<balr0g>
danneu, if i install rvm with rails, will it install ruby automatically?
<shevy>
balr0g btw, why did you decide to not use the debian-ruby?
adeponte has joined #ruby
zeepickler has joined #ruby
zeepickler has quit [Read error: Connection reset by peer]
<balr0g>
shevy, do you mean the one installed with apt-get install ruby ?
<shevy>
balr0g yes
<balr0g>
shevy, at least here in Ubuntu, i think it will install some lower version than the last one...
<shevy>
aha ok
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
sn0wb1rd has quit [Quit: I will be right back]
<shevy>
seems as if you should get the libreadline5-dev package though
zeepickler has joined #ruby
zeepickler has quit [Client Quit]
<balr0g>
yeah shevy , i think i lack that dependency before compile ruby by hand...
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<shevy>
yeah
<balr0g>
so, rvm will install that?
DuncanNZ has joined #ruby
<danneu>
balr0g: just install rvm alone
jitendra has joined #ruby
<mnemon>
there won't be any critical apps in /usr/local but you might break some non-critical(from the system perspective, not your apps ...) and make install'd software by deleting it ...
<danneu>
balr0g: after all, the step to install ruby is 'rvm install 1.9.3'. and installing rails is 'gem install rails'..
<shevy>
rvm will not install libreadline as far as I know
RurouniJones has joined #ruby
alekst has quit [Quit: Computer has gone to sleep.]
<balr0g>
openstandards, must i do: source .bash_profile ?
DuncanNZ has left #ruby ["Leaving"]
vlad_starkov has joined #ruby
xpen has quit [Read error: Connection reset by peer]
<openstandards>
balr0g: if you opened up another terminal window then no as it will source it automatically upon opening
cha1tanya has quit [Quit: Leaving]
<balr0g>
openstandards, doing source .bash_profile is catching the 2.0.0 installation, but i need to execute that command, and still curses and readline problem on IRB console
xpen has joined #ruby
<openstandards>
best bet is to wait for someone more experienced than myself to help out as i'm not 100% certain
<balr0g>
openstandards, ok, thanks anyway
<balr0g>
danneu, are you there man?
<danneu>
yeh
<danneu>
balr0g: sup d00d
<danneu>
balr0g: rvm list
<danneu>
balr0g: rvm use 2.0.0
JumpMast3r has joined #ruby
<danneu>
balr0g: that'll use 2.0.0 for that terminal session. (then revert back to default in new terminal). you can also just 'rvm use 2.0.0 --default'. ezpz
busybox42 has joined #ruby
<danneu>
oh i see, i only read the lines that you said me name
<lawrence_>
i'm not an idiot, i have many years of experience
<lawrence_>
but the silly little things that everyone expects you to know but aren't documented are annoying
tk_ has joined #ruby
elico has quit [Quit: Elico]
Takehiro has quit [Remote host closed the connection]
<mnemon>
give it a decade and rails support will be on par with php and perl ;)
<lawrence_>
i have friends who used to work for heroku
<lawrence_>
you'd think i should ask them
<lawrence_>
hehehe
Takehiro has joined #ruby
<danneu>
apt-get to install ruby?
<lawrence_>
it was the point it at the public folder thats the thing i really needed
<lawrence_>
that really needs to be listed in the passenger page, not assumed.
<lawrence_>
thanks :)
<mnemon>
np
epitron is now known as ping
ping is now known as epitron
<danneu>
i find the idiosyncrasies of getting a ruby dev environment setup are just (1) don't use your distro's outdated aliasing package manager (use rvm or rbenv), (2) you need to install the libraries that gems wrap before those gems can build their extensions (duh).
toekutr has quit [Read error: Connection reset by peer]
<danneu>
(3) google the error.
<postmodern>
danneu, yum install ruby on Fedora, gives you 1.9.3-p374
<lawrence_>
#3… ftw
<danneu>
postmodern: okay.
<danneu>
postmodern: now you have 374. what about 2.0.0?
<danneu>
what about trash ruby installations
<postmodern>
danneu, 2.0.0 isn't stable yet
<havenn>
danneu: It isn't out yet?
adeponte has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
dhruvasa1ar has joined #ruby
<postmodern>
danneu, for one off installations, i install them manually into /opt/rubies/
<danneu>
right, but i'm just saying that rvm makes it so easy that i have a hard time understanding why i'd yum it unless it's indeed one-off
innohero has joined #ruby
<postmodern>
danneu, it's three commands to install a ruby
<danneu>
well, it's three commands from any direction though, it's it
busybox42 has quit [Ping timeout: 276 seconds]
xk_id has joined #ruby
<postmodern>
danneu, ./configure && make && make install
<lewis>
irb --simple-prompt does not work for me
<danneu>
really i'm just lamenting lawrence_'s link
<lewis>
any ideas?
<lewis>
It does not change anything to the prompt
<lewis>
it looks exactly the same
<lawrence_>
well, my link encounters - ruby changed functionality too bugs. also, don't forget that
xk_id has quit [Changing host]
xk_id has joined #ruby
yakko has joined #ruby
hamed_r has joined #ruby
<apeiros_>
lewis: and how does your prompt look?
<lewis>
ruby-1.9.2-p180 :001 >
lkba has joined #ruby
<balr0g>
how can i set my Ruby2.0.0 as default without executing "source .bash_profile" command every time i start a terminal session?
dhruvasa1ar has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Ping timeout: 248 seconds]
<danneu>
balr0g: are you using something other than bash?
<balr0g>
danneu, nope... also i already fix my readline issue, and 2.0.0 looks good... only problem is how to set automatically as default
<apeiros_>
lewis: your irbrc overrides
browndawg1 has left #ruby [#ruby]
<danneu>
balr0g: i'm too shit at sys admin things to know why bash_profile is not actually loading when you open a new terminal.
browndawg has joined #ruby
<danneu>
balr0g: btw, apt-get install guake
<charliesome>
balr0g: rvm?
<balr0g>
danneu, guake? whats that?
<balr0g>
charliesome, yes
<charliesome>
balr0g: rvm --default use <the ruby>
<danneu>
charliesome: yeah but he say'd got to source his bash_profile (the rvm automatically appends to when you install it) when he opens up a new term.
<danneu>
charliesome: know why that'd be?
ij has joined #ruby
ij has quit [Changing host]
ij has joined #ruby
<charliesome>
balr0g: try .bashrc
<balr0g>
charliesome, same thing... if i close the terminal i need to do again source .bash_profile
<charliesome>
or .profile
mercwithamouth has quit [Ping timeout: 240 seconds]
browndawg has quit [Client Quit]
<balr0g>
charliesome, what you mean? put the 'source .bash_profile' in the .bashrc file ?
<danneu>
no
<charliesome>
or copy the contents
<danneu>
copy rvm's bootstrap
<danneu>
that one-liner that it appended
<balr0g>
danneu, at the end of .bashrc ?
<danneu>
yeh
<danneu>
iirc i had to do that back when i was on linux
<lawrence_>
looks like logging goes to folder/log/ as whatever calls it (so in my case apache/passenger), so that needs write access to see why its broken still
braoru has joined #ruby
<danneu>
balr0g: too bad youre having so much trouble dude :'(
xpen_ has joined #ruby
<danneu>
soon youll be a master of such idiosyncrasies. youll become complacent, hardened to the toils.
<danneu>
a seasoned veteran.
arietis has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
dekroning has joined #ruby
elico1 has quit [Quit: elico1]
<balr0g>
danneu, lol
dekronin1 has quit [Read error: Operation timed out]
<balr0g>
danneu, ok, im right now... copying the line from .bash_profile to the end of .bashrc works fine... \o/
xpen has quit [Ping timeout: 245 seconds]
<balr0g>
also thanks to charliesome , and to you danneu ... for time and help and attention =)
<charliesome>
np
browndawg has joined #ruby
txdv has quit [Read error: Connection reset by peer]
Virunga has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
workmad3 has joined #ruby
<Mon_Ouie>
I use %r{(\e\[\??\d+(?:[;\d]*)\w)} to match those
samphippen has joined #ruby
<apeiros_>
Mon_Ouie: shevy seems to use non-ansi escapes
<apeiros_>
or is ^[[ == \e[ ?
<Mon_Ouie>
I think so. I know for sure that they start with \e.
baphled has quit [Ping timeout: 260 seconds]
rdark has quit [Ping timeout: 252 seconds]
_bart has quit [Quit: _bart]
prime has joined #ruby
cardoni has joined #ruby
baphled has joined #ruby
Hanmac has joined #ruby
lolmaus has quit []
albakry has joined #ruby
albakry has quit [Changing host]
albakry has joined #ruby
kristofers has quit [Ping timeout: 244 seconds]
cousine has joined #ruby
cardoni has quit [Ping timeout: 244 seconds]
tealmage has joined #ruby
postmodern has joined #ruby
cousine has quit [Remote host closed the connection]
Targen has quit [Ping timeout: 276 seconds]
BizarreCake has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
s1n4 has joined #ruby
<shevy>
cool
Virunga has joined #ruby
maxmanders has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
s1n4 has quit [Client Quit]
main_ has joined #ruby
yacks has quit [Quit: Leaving]
nicoulaj has joined #ruby
workmad3 has joined #ruby
aryasam has quit [Quit: Bye]
vlad_starkov has joined #ruby
ttt has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
Catbuntu has joined #ruby
k610 has joined #ruby
Banistergalaxy has joined #ruby
Stilo has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
Targen has joined #ruby
tenmilestereo has joined #ruby
ij has joined #ruby
pcarrier has joined #ruby
ben_h has quit [Read error: Connection reset by peer]
reuven has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
pcarrier has quit []
pcarrier has joined #ruby
Takehiro_ has quit [Remote host closed the connection]
ferdev has joined #ruby
FloatingWeed has joined #ruby
ferdev has quit [Client Quit]
jfelchner has quit [Ping timeout: 264 seconds]
jfelchner has joined #ruby
rakl has quit [Quit: sleeping]
blaxter has joined #ruby
nari has joined #ruby
atno has joined #ruby
maxmanders has quit [Ping timeout: 244 seconds]
arya has joined #ruby
maxmanders has joined #ruby
FloatingWeed has quit []
workmad3 has quit [Ping timeout: 260 seconds]
mneorr_ has joined #ruby
kylescottmcgill has joined #ruby
xemu has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
FloatingWeed has joined #ruby
niklasb has joined #ruby
maxmanders has quit [Ping timeout: 245 seconds]
RagingDave has joined #ruby
ij has quit [Ping timeout: 276 seconds]
Virunga has quit [Remote host closed the connection]
maxmanders has joined #ruby
pcarrier has quit []
jfl0wers has quit [Quit: jfl0wers]
Virunga has joined #ruby
kylescottmcgill has quit [Quit: WeeChat 0.3.8]
jacktrick has joined #ruby
FloatingWeed has quit []
nanothief has quit [Ping timeout: 255 seconds]
gouthamvel has quit [Remote host closed the connection]
FloatingWeed has joined #ruby
FloatingWeed has quit [Client Quit]
pcarrier has joined #ruby
AntiTyping has joined #ruby
FloatingWeed has joined #ruby
ScottNYC has quit [Ping timeout: 264 seconds]
pcarrier has quit [Client Quit]
pskosinski has quit [Quit: Drama: Open source spirit and copyright infringement according to Quinton Reeves, Red Eclipse developer: http://pawelk.pl/quinton-reeves]
mhf has quit [Read error: Connection reset by peer]
mhf has joined #ruby
<spider-mario>
jokke: if you haven’t already, you might want to give pry a try (instead of irb)
otters has joined #ruby
<jokke>
spider-mario: i will
girija_ has joined #ruby
Cork has quit [Ping timeout: 255 seconds]
freeayu has quit [Remote host closed the connection]
workmad3 has joined #ruby
banisterfiend has quit [Remote host closed the connection]
megha has joined #ruby
icole has joined #ruby
tk_ has quit [Quit: ばいばい]
Hanmac has quit [Ping timeout: 252 seconds]
sjaq has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
icole has quit [Ping timeout: 248 seconds]
sullenel has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
busybox42 has joined #ruby
inokenty has quit [Ping timeout: 244 seconds]
grendlme has quit [Quit: grendlme]
Cork has joined #ruby
Xeago has quit [Remote host closed the connection]
mhf has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
freakazoid0223 has joined #ruby
<shevy>
is spider-mario like super-mario
<spider-mario>
it does come from it
<spider-mario>
it’s between super mario and spider-man
reuven` has joined #ruby
Hanmac has joined #ruby
exertio has joined #ruby
exertio has quit [Client Quit]
reuven has quit [Ping timeout: 245 seconds]
nanothief has joined #ruby
Spooner has joined #ruby
BizarreCake has quit [Ping timeout: 255 seconds]
oposomme has joined #ruby
vansonhk_ has joined #ruby
<shevy>
hmm
<shevy>
so that comes out when they have sex
<shevy>
quite powerful
eka has quit [Quit: Computer has gone to sleep.]
<shevy>
though I am surprised you are not super-man :P
<spider-mario>
:D
nanothief has quit [Ping timeout: 248 seconds]
arya has quit []
BizarreCake has joined #ruby
arya has joined #ruby
oposomme has quit [Ping timeout: 245 seconds]
cardoni has joined #ruby
colonolGron has quit [Ping timeout: 248 seconds]
tealmage has quit [Remote host closed the connection]
tealmage has joined #ruby
mengu has joined #ruby
<_br_>
So much bad news about Rubygems, Rails security problems. Alot of people are bashing the ***** out of the ruby community and calling us out because we "have so many security" problems ... hmpf.
backjlack has quit [Remote host closed the connection]
tealmage has quit [Remote host closed the connection]
skbierm has joined #ruby
cardoni has quit [Ping timeout: 252 seconds]
jimeh has joined #ruby
sullenel has quit [Quit: WeeChat 0.4.0]
ferdev has quit [Quit: Leaving...]
dekroning has joined #ruby
vetsin has quit [Ping timeout: 256 seconds]
Virunga has joined #ruby
vetsin has joined #ruby
tealmage has joined #ruby
backjlack has joined #ruby
BBonifield has quit [Ping timeout: 256 seconds]
inokenty has joined #ruby
clocKwize has joined #ruby
Takehiro has joined #ruby
heftig has quit [Quit: leaving]
girija_ has quit [Ping timeout: 240 seconds]
BBonifield has joined #ruby
heftig has joined #ruby
oposomme has joined #ruby
dekroning has quit [Ping timeout: 245 seconds]
gosshedd has quit [Quit: leaving]
gosshedd has joined #ruby
busybox42 has quit [Read error: Operation timed out]
_nitti has joined #ruby
Virunga has quit [Remote host closed the connection]
busybox42 has joined #ruby
thufir_ has quit [Quit: Leaving.]
Takehiro has quit [Ping timeout: 276 seconds]
ferdev has joined #ruby
pyro111 has quit [Remote host closed the connection]
sayan has joined #ruby
techhelp has joined #ruby
pyro111 has joined #ruby
seme has joined #ruby
heftig has quit [Quit: leaving]
ferdev has quit [Client Quit]
clocKwize has quit [Quit: clocKwize]
albakry has quit [Quit: Leaving]
wargasm has joined #ruby
heftig has joined #ruby
d34th4ck3r has joined #ruby
<d34th4ck3r>
how can I round off to exactly 15 decimal places in ruby?
jacktrick has quit [Quit: Leaving]
billy_ran_away has quit [Ping timeout: 240 seconds]
<banisterfiend>
d34th4ck3r: your nickname is lame :)
<d34th4ck3r>
banisterfiend: I know, but my question isint. ;)
mhf has joined #ruby
<heftig>
round(15)
billy_ran_away has joined #ruby
xAndy is now known as xandy
busybox42 has quit [Ping timeout: 245 seconds]
joofsh has joined #ruby
<heftig>
d34th4ck3r: though be aware that double-precision floats only have 15-17 digits precision total
<d34th4ck3r>
heftig: that doesnt work as I want, for example if I use 3.3.round(3) it gives 3.3 but I want 3.300
<heftig>
then that's not a number, it's a string
<heftig>
"%.3f" % 0.3
elico has joined #ruby
icole has joined #ruby
nicoulaj has quit [Remote host closed the connection]
cody-- has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
io_syl has joined #ruby
icole has quit [Ping timeout: 248 seconds]
sullenel has joined #ruby
mengu has joined #ruby
Takehiro has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
d34th4ck3r has quit [Read error: Operation timed out]
cody-- has quit [Client Quit]
mrc_ has joined #ruby
browndawg has joined #ruby
Takehiro has quit [Ping timeout: 256 seconds]
tommyvyo has joined #ruby
<Spooner>
"%.3f" % 0.3.round(3) - more correct, since heftig's answer truncates at 3dp, not rounds.
<jokke>
how can i test if an object is of a certain class or a subclass of it?
<Spooner>
jokke, #is_a?
<heftig>
Spooner: nope, rounds.
<jokke>
ah perfect thanks
<Spooner>
heftig, Oh, does it? Sorry.
postmodern has quit [Quit: Leaving]
keymone has joined #ruby
apeiros_ has quit [Remote host closed the connection]
<banisterfiend>
Spooner: do u know any activerecord?
<banisterfiend>
instead of: Movie.find_all_by_rating("G") i would like to specify multiple ratings, i.e: Movie.find_all_by_rating("G", "R") (doesn't work)
<Spooner>
banisterfiend, Barely any.
workmad3 has joined #ruby
<banisterfiend>
workmad3: ping
meoblast001 has joined #ruby
<banisterfiend>
workmad3: instead of: Movie.find_all_by_rating("G") i would like to specify multiple ratings, i.e: Movie.find_all_by_rating("G", "R") (doesn't work)
<havenn>
dat: I've heard good things about Ruboto.
<dat>
or does it work just like Ruby
bigmac has joined #ruby
<dat>
Thank you by the way
julian-dephiki has joined #ruby
elux has quit [Quit: Leaving...]
<dat>
It won't hurt me to learn another language
<dat>
Haskell would be more fun though
<havenn>
dat: JRuby is a first-class citizen on the JVM. If you reaaally need Java, Mirah takes some of the pain out of it while maintaining all the speed.
<havenn>
dat: Perl6 or Elixir sound more fun to me!
<dat>
okay
<dat>
well I've only been programming for 2 years
cousine has joined #ruby
swarley| has joined #ruby
<dat>
started with actionscript
cousine has quit [Remote host closed the connection]
<havenn>
dat: JRuby is really, really awesome. Worth spending time on!
<dat>
Pearl would be fun for the sysadmin reasons
<dat>
Yeah I'll definitely give it a shot
<dat>
I love Ruby but I never wanted to learn rails
<havenn>
dat: Rails is my least favorite thing in Ruby. :P
<dat>
okay let me check that out
mercwithamouth has quit [Ping timeout: 252 seconds]
thomasfedb has joined #ruby
<Hanmac>
dat i can use ruby for 3d games ... (but i am not finish yet)
<havenn>
dat: Silly example of mruby, but compiled a FizzBuzz to C, then on to a standalone executable that can run without Ruby being present: https://github.com/havenwood/mruby-fizzbuzz
s1n4 has quit [Quit: leaving]
shock_one has quit [Remote host closed the connection]
Takehiro has joined #ruby
onemanjujitsu has quit [Quit: onemanjujitsu]
FloatingWeed has joined #ruby
keanehsiao has quit [Quit: keanehsiao]
<dat>
That's really cool
nobuoka has quit [Quit: Leaving...]
FloatingWeed has quit [Remote host closed the connection]
<dat>
I'll have to learn how it works
iamlacroix has joined #ruby
mrc_ has joined #ruby
<dat>
You really get enough efficiency games to run 3 D Ruby games ?
Morkel has joined #ruby
iamlacroix has quit [Remote host closed the connection]
joofsh has joined #ruby
<dat>
I'm still a noob
<dat>
well thanks
ij has quit [Read error: No route to host]
<dat>
peace
dat has quit [Quit: Bye]
cpruitt has quit [Ping timeout: 260 seconds]
onemanjujitsu has joined #ruby
Takehiro has quit [Ping timeout: 276 seconds]
templaedhel has quit [Quit: Leaving...]
swarley- has joined #ruby
templaedhel has joined #ruby
browndawg has left #ruby [#ruby]
swarley| has quit [Ping timeout: 245 seconds]
swarley| has joined #ruby
swarley- has quit [Ping timeout: 245 seconds]
martian-a has quit [Ping timeout: 252 seconds]
inokenty has quit [Quit: Leaving.]
<shevy>
jrajav I used to have my old battle station for browsergames in frame format. the left frame had the quick-links to cast spells, th e right frame was much larger and allowed quick reloading of the component I needed, to assess whether my enemies were moving
kumarat9pm has quit [Quit: Leaving.]
maxmanders has quit [Ping timeout: 252 seconds]
grn has joined #ruby
MattRB has quit [Quit: This computer has gone to sleep]
<spider-mario>
“All data decays as the program runs: each value alters slightly every time it's used, becoming less precise.”
Monie has quit [Quit: Quit]
<shevy>
"all data decays as the program runs"
<swarley>
Usually, an esolang's creators do not intend the language to be used for mainstream programming, although some esoteric features, such as visuospatial syntax,[1] have inspired practical applications in the arts. Such languages are often popular among hackers and hobbyists.
<shevy>
the idea is not so bad, except that in living organisms, entropy is battled through synthesis of new proteins, transfer of energy, repairing the cell etc...
subbyyy has joined #ruby
<spider-mario>
“98.39877 boutles of bedr nn the wall, 98.42226 bottles of beer.”
techhelp has quit [Quit: This computer has gone to sleep]
dekroning has joined #ruby
dagnachew has quit [Quit: Leaving]
Bosox20051 has joined #ruby
moshee has quit [Remote host closed the connection]
dekroning has quit [Client Quit]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
subbyyy has joined #ruby
pskosinski has quit [Quit: Drama: Open source spirit and copyright infringement according to Quinton Reeves, Red Eclipse developer: http://pawelk.pl/quinton-reeves]
<zenloop>
quick question. When a variable is assigned in the following way: @myvar="hello world" what is the datatype of @myvar?
rakl has quit [Quit: sleeping]
ryanf has joined #ruby
<Spitfire>
zenloop, string
ij has joined #ruby
<zenloop>
Thanks spitfire. What is the difference between that and myvar="hello world"?
lupinstein has quit [Ping timeout: 245 seconds]
<Spitfire>
@myvar is a class instance variable.
<zenloop>
What the @?
<zenloop>
Ahhhhhhh.
<Spitfire>
It can be used anywhere with in a class, and for each instant of that class it'll be the same thing. @@ is across all instances of a single class.
<Hanmac>
Spitfire: it may not an class instance variable, that depends on the context
<Spitfire>
Hm?
razibog has joined #ruby
<Hanmac>
its an instance variable not an class one
ij has quit [Read error: Connection reset by peer]
<zenloop>
ok got it. Thanks much. Also what is the best way to execute a shell accessible script from ruby. I do not care about the output. Is backticks an acceptable way to call out to a shell accessible command?
<Hanmac>
Spitfire your lines means @@ class variables, but he uses @ instance variables ... so your help is wrong for his question
hackerdude has joined #ruby
<_br_>
zenloop: In order to better understand stuff like this I advise you to poke around with IRB or PRY. Each object defines a #methods function so, e.g. "blahblah".methods will show you what you can do with that object. You will see e.g. a #class method which is handy to better understand what "type" that object has.
<Spitfire>
Hanmac, @ is an instant variable of a class.
<Spitfire>
That's the point I was trying to make.
<zenloop>
_br_: got my irb open right now :-)
<Spitfire>
I also clarified it later to explain what I meant.
ij has quit [Read error: Connection reset by peer]
<Spitfire>
No need to get on my back.
<_br_>
zenloop: cheers ! :)
aapzak has joined #ruby
<Hanmac>
Spitfire and how do you know that he used it in a class? @ is an variable of an instance
vlad_starkov has quit [Remote host closed the connection]
<Spitfire>
I was merely trying to explain it in a way that'd make sense.
* Spitfire
rolls his eyes.
<Spitfire>
This is why I never bother with IRC support channels, either for getting help or giving it. ffs.
jankly has quit [Ping timeout: 256 seconds]
<zenloop>
Thanks for you help guys. For what it is worth, much appreciated.
ij has joined #ruby
ij has quit [Changing host]
ij has joined #ruby
<apeiros_>
Spitfire: wow dude, calm down
<apeiros_>
you said something wrong and got corrected. the world didn't stop due to that.
<Spitfire>
No, I got corrected and let it pass me by.
<Spitfire>
Then I got corrected again when I didn't react.
<Hanmac>
Spitfire: tell me how do you get from the line: @myvar="hello world" to that its an class instance variable? he doesnt even used a class
<Spitfire>
Then I explained that I was just trying to put my answer across in a simplified way to make sense.
<Spitfire>
And as you can see Hanmac is still on my case.
<Spitfire>
Which is why I generally don't bother with channels like this.
Nuck has quit [Ping timeout: 256 seconds]
joofsh has quit [Remote host closed the connection]
<zenloop>
Actually I do understand classes.
solidoodlesuppor has quit [Remote host closed the connection]
<zenloop>
I normally program in python but have had to write a few chef recipes.
<zenloop>
So diving into ruby.
Nuck has joined #ruby
<Hanmac>
zenloop: in ruby you could hide classes in the singleton class of an object :D
<apeiros_>
zenloop: local_variables, @instance_variables, @@class_variables, $globals and Constants are the types of variables that exist in ruby
<zenloop>
Nice.
<apeiros_>
constants are marked by starting with [A-Z] (an uppercase letter)
<apeiros_>
you will rarely see and should avoid creating @@cvars and $globals
jpfuentes2 has joined #ruby
Nisstyre-laptop has joined #ruby
mneorr has joined #ruby
xandy is now known as xAndy
<Hanmac>
beware, some globals are only play as global but they are (thread-)local in reality
joofsh has joined #ruby
<apeiros_>
or even frame-local. some are implemented as callbacks.
<Hanmac>
yeah they maybe programmed in C as virtual ... (they are readonly and hooked variables too)
<zenloop>
I guess in python instance variables are defined with __init__ and set when the instance is created. Class variables are just implied as they are in the top level class space.
tjbiddle has joined #ruby
mockra has joined #ruby
<Hanmac>
>> o = Object.new: class << o; class ABC; end;end; p o.singleton_class::ABC
<eval-in>
Hanmac: Output: "/tmp/execpad-ba08c2611294/source-ba08c2611294:1: syntax error, unexpected ':'\no = Object.new: class << o; class ABC; end;e...\n ^\n" (http://eval.in/8222)
<Hanmac>
>> o = Object.new; class << o; class ABC; end;end; p o.singleton_class::ABC
<Xeago>
can the verb 'persist' be used to indicate data being saved to a non-volatile media?
<Xeago>
medium*
<banisterfiend>
Xeago: werent you supposed to have fnished your thesis a while ago? :))
tgandrews has joined #ruby
<Xeago>
finished the leading work for it
<Xeago>
currently about 80% done with it
<Xeago>
the writing that is
lolmaus has quit []
Axsuul has joined #ruby
<Xeago>
graduating the week of 28th of februari
robotmay has quit [Remote host closed the connection]
<Xeago>
it has to be finished 2 weeks before that
<Xeago>
so I am a bit behind schedule :'(
<Xeago>
than again, if I was on schedule, I wouldn't know wtf to do :)
mneorr has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
eldariof has quit []
jrafanie has joined #ruby
gkunno has quit [Quit: dev/null]
rakl has joined #ruby
GMFlash has joined #ruby
kn330 has joined #ruby
ntzrmtthihu777 has joined #ruby
<ntzrmtthihu777>
yay, did not know if this channel exsited, was a stab in the dark
Virunga has joined #ruby
<ntzrmtthihu777>
anyone here with experience of ruby under ubuntu 12.04?
<Xeago>
ntzrmtthihu777: most likely, yes. What is the issue?
eldariof has joined #ruby
skbierm1 has quit [Ping timeout: 264 seconds]
<ntzrmtthihu777>
k, just installed wxruby, but the program i installed it for cant find it
radic has quit [Ping timeout: 244 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
reuven has quit [Remote host closed the connection]
jrafanie has quit [Quit: jrafanie]
<_br_>
ntzrmtthihu777: Are you running rbenv or rvm ?
skbierm1 has joined #ruby
<ntzrmtthihu777>
I have rvm, yes.
kn330 has quit [Ping timeout: 264 seconds]
rismoney has quit [Ping timeout: 264 seconds]
<_br_>
ntzrmtthihu777: Did you install the wxruby stuff via apt-get resp. your distribution package management?
<ntzrmtthihu777>
no, I used gem install
radic has joined #ruby
<_br_>
ntzrmtthihu777: Hm, did you create a gemset for that project? Is rvm properly loaded?
<_br_>
ntzrmtthihu777: gem list shows the gem?
shock_one has quit [Remote host closed the connection]
ahokaomaeha has quit [Ping timeout: 255 seconds]
<ntzrmtthihu777>
K, lets slow down. gem list does show them, and I assume rvm is working right because it is (to me it seems) working
shock_one has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
roadt_ has quit [Ping timeout: 276 seconds]
<Xeago>
banisterfiend: any chance you could answer the question :)?
anderse has quit [Quit: anderse]
<banisterfiend>
Xeago: gimmie dat scrill and mabye
<Xeago>
what is a scrill?
<ntzrmtthihu777>
dat scrilla
<_br_>
ntzrmtthihu777: so if you do irb and require you get true?
mockra has quit [Remote host closed the connection]
<ntzrmtthihu777>
explain, _br_. still fairly new to ruby
horofox has quit [Quit: horofox]
<_br_>
ntzrmtthihu777: irb is a repl when you type that you get a commandline prompt where you can enter require commands to see if they work properly.
<_br_>
ntzrmtthihu777: same as ruby -r <blah>
<ntzrmtthihu777>
ah, like intering a chroot. yeah, irb yields the interactive prompt
<jokke>
is it bad practice to pack a gem of something that has non ruby dependecies? Like a wrapper for some other program?
<Hanmac>
... no require has NOTHing todo with chroot ...
<_br_>
ntzrmtthihu777: great, now just check if when you type your require line that thing returns "true"
<Hanmac>
jokke how else can you do it??
templaedhel has quit [Quit: Leaving...]
movvy has left #ruby [#ruby]
<jokke>
Hanmac: huh?
<jokke>
what do you mean how else?
<ntzrmtthihu777>
gotcha. Hanmac: it seems to me that irb is like entering a different shell, and chroot puts you into a sh shell so it seems similar to me
<_br_>
ntzrmtthihu777: no, irb is a so-called REPL
FloatingWeed has joined #ruby
<Xeago>
(read eval print loop)
pskosinski has joined #ruby
<Hanmac>
jokke say i have an binding to an 3d engine, how else do you want to install it beside gem ?
<jokke>
Hanmac: hm, right.
<ntzrmtthihu777>
I am checking for wxruby, so I would use require wxruby?
<ntzrmtthihu777>
<-- n00b, like I said
<jokke>
Hanmac: how can i ensure the dependency is met?
<ntzrmtthihu777>
install it to a ppa and have that package as a dependancy, assuming debian/ubuntu
mockra has joined #ruby
<jokke>
ntzrmtthihu777: what?
<Hanmac>
jokke within your extconf.rb there you can use have_header have_library and other have_ or find_ functions
mockra has quit [Remote host closed the connection]
<ntzrmtthihu777>
no, require wx and require 'wx' do not return true
<jokke>
Hanmac: ah perfect
mockra has joined #ruby
<jokke>
Hanmac: any tutorials or wiki you can recommend. Also for building gems. No experience whatsoever
<ntzrmtthihu777>
first gives me undefined local var
sorbo__ has joined #ruby
<_br_>
ntzrmtthihu777: seems the wx is not in the correct $: ($LOAD_PATH)
<ntzrmtthihu777>
and using the 'wx' gives me all kinda hell and aborts
br4ndon has joined #ruby
<jokke>
ntzrmtthihu777: god your nick is annoying :D weechat even shows it yellow. I'm getting eye cancer :P
sorbo_ has quit [Ping timeout: 260 seconds]
sorbo__ is now known as sorbo_
<_br_>
ntzrmtthihu777: Seems, and I am guessing here, that you have some kind of messed up install. Probably a good idea to remove the entire gemset you added to rvm and install that again from scratch.
<ntzrmtthihu777>
same if I usre rvm
<ntzrmtthihu777>
lol thanks jokke
<ntzrmtthihu777>
your name shows yellow when you talk at me too, jokke
michaelmartinez has joined #ruby
<jokke>
ntzrmtthihu777: yeah that's highlighting.
<ntzrmtthihu777>
hehe, yeah. I use irssi
<jokke>
yours is yellow with orange background when you're highlighted :D
<ntzrmtthihu777>
_br_: some pointers, then? totally remove ruby outside of rvm and start over?
cr3 has joined #ruby
mockra has quit [Ping timeout: 260 seconds]
mhf has joined #ruby
<cr3>
hi folks, if I have a method called foo= in a class, how can I call that method from another method in the same class
<_br_>
ntzrmtthihu777: Well, I assumed based on your prior answers that you created a rvm gemset for this. If so, remove that gemset and start over installing all required gems. Please check the rvm manual to understand gemsets and bundler.
<ntzrmtthihu777>
lol did you actually name it foo or is this just for examples sake
<cr3>
the method can be called with self.foo= value, but that seems a bit verbose
<ntzrmtthihu777>
hmm, rvm manual: man rvm? or something else
<ntzrmtthihu777>
yeah, man rvm
<_br_>
ntzrmtthihu777: !?! rvm has a very nice documentation on their www pages
FloatingWeed has quit [Quit: Leaving.]
crackfu has joined #ruby
crackfu has quit [Changing host]
crackfu has joined #ruby
freeayu has joined #ruby
<ntzrmtthihu777>
kk
kold has joined #ruby
atno has joined #ruby
<_br_>
cr3: Do you mean you have a function "def foo="
<ntzrmtthihu777>
so, so, rvm implode and start over?
<apeiros_>
cr3: besides of using send, that's the only way
<apeiros_>
since plain `foo = val` always assigns to a local variable
ij has quit [Ping timeout: 264 seconds]
mhf has quit [Remote host closed the connection]
<_br_>
ntzrmtthihu777: did anyone say anything about killing rvm? Please read about gemsets!
<cr3>
_br_: yep
yakko has joined #ruby
<_br_>
cr3: See apeiros_ answer its spot on.
<cr3>
apeiros_, _br_: cheers folks!
<ntzrmtthihu777>
I will. Just quite franly I like a clean slate
mengu has quit [Quit: Konversation terminated!]
io_syl_ has quit [Quit: Computer has gone to sleep.]
<_br_>
ntzrmtthihu777: rvm gemset --help
yakko has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
reuven has joined #ruby
mneorr has quit [Remote host closed the connection]
phinfonet has joined #ruby
robert___ has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
<ntzrmtthihu777>
_br_: So use rvm gemset install gems instead of rvm 1.9.3 do gem install gems?
robert_ has quit [Ping timeout: 244 seconds]
rakl has quit [Quit: sleeping]
sorbo_ has left #ruby [#ruby]
banisterfiend has quit [Read error: Connection reset by peer]
ben_h has joined #ruby
banisterfiend has joined #ruby
ij has joined #ruby
ij has quit [Changing host]
ij has joined #ruby
horofox has joined #ruby
workmad3 has joined #ruby
_nitti has joined #ruby
br4ndon_ has joined #ruby
[Neurotic] has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
jonahR has joined #ruby
<ntzrmtthihu777>
I just realized I'm a derp. the gem I installed was v2.0, but the program wants <= v1.9.8
adeponte has joined #ruby
anderse has joined #ruby
<_br_>
ntzrmtthihu777: Good idea to look into Bundler and Gemfile in order to not make this mistake twice.
br4ndon has quit [Ping timeout: 264 seconds]
<ntzrmtthihu777>
yeah, thankies
<ntzrmtthihu777>
problem is, how do you install an older gem?
BlakeRG has joined #ruby
mneorr has joined #ruby
Banistertab has joined #ruby
<Squarepy>
ntzrmtthihu777, you can pass the version number you want
cr3 has quit [Quit: leaving]
<_br_>
ntzrmtthihu777: Your preferred work flow should probably be ; Create a proper .rvmrc in your root project dir with a nice gemset declaration and version (e.g. rvm use 1.9.2@foobar_project) ; then a nice gemset rvm gemset create foobar_project; then a nice Gemfile (RTFM) ; then you just do a bundle install and you're done.
<_br_>
ntzrmtthihu777: Just create a Gemfile and pin the version you want
mando has joined #ruby
<ntzrmtthihu777>
Squarepy: but what is the syntax? wxruby1.9.8 or some other combo?
<ntzrmtthihu777>
thanks _br_
mando has quit [Remote host closed the connection]
ben_h has quit [Read error: Connection reset by peer]
stkowski has joined #ruby
tc has quit [Disconnected by services]
<ntzrmtthihu777>
_br_: I am not working on a project of my own atm, just attempting to use anothers
arietis has joined #ruby
<ntzrmtthihu777>
shall I link you?
bluOxigen has quit [Ping timeout: 245 seconds]
<Squarepy>
ntzrmtthihu777, you use the --version option or -v
<Hanmac>
about installing gems at debian packages... there are some chases where this could be wrong... because the debian is precomipled and the gem maybe can do some magic while installing
tr4656 has quit [Remote host closed the connection]
<ntzrmtthihu777>
allahu akbar!
* ntzrmtthihu777
ululates
anderse has quit [Quit: anderse]
s1n4 has joined #ruby
<havenn>
Takbir? Not a bad gem name. :P
JumpMast3r has quit [Quit: JumpMast3r]
<Squarepy>
:)
cardoni has joined #ruby
<ntzrmtthihu777>
heh, I know I'm a pain in the ass, _br_, but another question. you say @foobar_project, but again this is not my project. what naming syntax would I use?
<lectrick>
was idling around with some ideas in ruby and came across this which made me scratch my head: https://gist.github.com/4703697
robotmay has joined #ruby
<ntzrmtthihu777>
very interesting, lol
<_br_>
ntzrmtthihu777: 大丈夫, its irrelevant. The gemset name is only for you locally you can call it whatever you want. Its created in $HOME/.gems if I remember correctly. Its only a way of encapsulating the gems from each each (makes handling different versions easier).
havenn has quit [Remote host closed the connection]
<ntzrmtthihu777>
ah, foobar_project is a user-defined name of the gemset
<_br_>
bingo
<_br_>
.oO(rtfm?)
My_Hearing has joined #ruby
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
<Hanmac>
lectrick its because the line of the binding is different, that why the procs are not the same
ferdev|away is now known as ferdev
cardoni has quit [Ping timeout: 264 seconds]
<ntzrmtthihu777>
gotcha, rtfm = read the f*cking manual?
<lectrick>
Hanmac: but aren't 2 new lambdas created, regardless?
adeponte has quit [Remote host closed the connection]
<lectrick>
Hanmac: Ohhhh so I get it, the binding is equivalent at the same line but not at different lines
Morkel has quit [Quit: Morkel]
<ntzrmtthihu777>
日本語が分かりますか。
<Hanmac>
lectrick as you can see the line is different 24 != 25
angusiguess has joined #ruby
<lectrick>
Hanmac: Makes sense now! Nice.
tr4656 has joined #ruby
* Hanmac
is making sense since '88
<_br_>
ntzrmtthihu777: alot of people do, but this is a english channel
<ntzrmtthihu777>
hehe, just you popped out that, so I hadda ask. makes sense, as if iirc ruby was created in japan, no?
<_br_>
irrelevant, ruby has gone world wide.
<ntzrmtthihu777>
lawl, you like that word
recycle_ has joined #ruby
<lectrick>
Hanmac: It strikes me as silly that bindings are line-based and not, say, token-based or AST-based or something else
tr4656 has quit [Client Quit]
recycle has quit [Ping timeout: 276 seconds]
recycle__ has joined #ruby
<lectrick>
Hanmac: Actually, that may only be in IRB. The plot thickens
<Hanmac>
its funny enouth that procs are compareable
<lectrick>
it is. without running them, but it does seem to look inside them, can I get the source of a proc?
tr4656 has joined #ruby
tr4656 has quit [Client Quit]
<Hanmac>
hm i dont think so :'(
<_br_>
lectrick: yes you can e.g. ruby2ruby or sourcify
heckler has joined #ruby
<_br_>
lectrick: depends on the proc a bit though
Mon_Ouie has quit [Disconnected by services]
My_Hearing is now known as Mon_Ouie
joofsh has quit [Remote host closed the connection]
<workmad3>
Hanmac: https://gist.github.com/4703744 <-- different lines doesn't matter if you run that as a script, not in IRB
<_br_>
gnaaa.. back to C++ bf
slyv has joined #ruby
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
My_Hearing has joined #ruby
BlakeRG has quit [Quit: Leaving.]
X-Jester has quit [Ping timeout: 246 seconds]
Retistic has joined #ruby
kmurph has joined #ruby
<Hanmac>
_br_ you are right. i need to write more c++ gems
recycle_ has quit [Ping timeout: 245 seconds]
osaut has quit [Quit: osaut]
<workmad3>
Hanmac: I agree, it's just odd that procs and lambdas are comparable :)
<_br_>
Hanmac: lol, that I didn't mean ^^
carloslopes has joined #ruby
<workmad3>
Hanmac: or at least, comparable as something other than 'l1.object_id == l2.object_id'
<Hanmac>
_br_ you should try it, its fun :D
<ntzrmtthihu777>
question: can dlls be made with ruby?
<_br_>
Hanmac: I rather go jump out of the window :D
tr4656 has joined #ruby
horofox has quit [Quit: horofox]
<ntzrmtthihu777>
lawl
<_br_>
workmad3: Be careful with that. Its sounds like alot of BS. e.g. "Learn all of C++11" - lol -
<Hanmac>
workmad3 yeah i have seen it, but i i dont think that i can pass that for sample i didnt do "developed a compiler for a toy language" yet
<workmad3>
_br_: well, the intention is to implement the entire thing
Squarepy has quit [Read error: Connection reset by peer]
<workmad3>
_br_: so at that point, an outcome of learning it all doesn't seem so extreme :P
<ntzrmtthihu777>
wounds interesting, lol
<workmad3>
Hanmac: I'm gonna give it a try at least :)
<heckler>
i'm new to ruby. how do I modify a gem? I see the lib dir with the source and the bin file. if I modify the source code how do I get the binary re-built?
<Hanmac>
workmad3 for sample i dont want to write an assambler ... i might me crazy and possibly mad, but i am not so bloodystupid to do anything with asm ...
<Hanmac>
heckler: nomaly the bin requires the stuff in the lib dir so when you change it, it affects the bin too ... or do you talk about an C/C++ gem?
stormetrooper has joined #ruby
jonpauldavies has joined #ruby
<ntzrmtthihu777>
I don't think of asm as being stupid any more than latin. it may be uncommonly used, but its not stupid
<_br_>
heckler: uh sorry too much multi tasking s/packages/binaries/
tcstar has quit [Read error: Connection reset by peer]
answer_42 has quit [Ping timeout: 276 seconds]
<workmad3>
_br_: I'll let you know whether things pan out
<_br_>
workmad3: good luck ! :)
carloslopes has quit [Remote host closed the connection]
<workmad3>
_br_: yeah, I doubt I'll manage to do well
<workmad3>
_br_: assuming it's not a hoax :)
X-Jester has joined #ruby
stormetrooper has quit [Client Quit]
<heckler>
_br_: maybe I should have said pre-processed ruby file?
<_br_>
workmad3: well I hope not, but I would be surprised
<_br_>
heckler: huh?
<heckler>
nm
<Hanmac>
ntzrmtthihu777 i dont say that asm is stupid, i say that i am would be stupid to use asm when i have C or ruby
whowantstolivefo has quit [Quit: quit]
<ntzrmtthihu777>
hehe, I know. bad phrasing on my part
<heckler>
Hanmac: yes that's what i thought. if i change the source code in the lib dir, how do I update the thing in the bin dir?
Hanmac has quit [Read error: Connection reset by peer]
<heckler>
great
Hanmac has joined #ruby
<Hanmac>
fu something pulled my cable ... i hope this does not happen when i am old
<ntzrmtthihu777>
D:
Chinorro has joined #ruby
<ntzrmtthihu777>
Hanmac: hehe, I know. bad phrasing on my part, you missed this
onemanjujitsu has joined #ruby
<Hanmac>
thats was the last line i get after something kicked me out
banister_ has quit [Remote host closed the connection]
<ntzrmtthihu777>
oh, misread the feed
mneorr has quit [Remote host closed the connection]
horofox has quit [Quit: horofox]
k611 has quit [Ping timeout: 245 seconds]
arya_ has joined #ruby
jonpauldavies has quit [Quit: jonpauldavies]
k610 has quit [Ping timeout: 245 seconds]
<heckler>
_br_: this article is about creating a new gem. i have a gem I want to modify.
horofox has joined #ruby
<heckler>
i'm not looking to publish it.
hemanth has quit [Read error: Connection reset by peer]
<workmad3>
heckler: if you don't need to change the script in the bin/ directory, you don't need to touch that
<Hanmac>
heckler whats the name of the gem? does it have an ext dir?
banisterfiend has joined #ruby
<workmad3>
heckler: ruby is an interpreted language... unless you have a native extension (written in C or C++ generally) you don't need to compile anything
hemanth has joined #ruby
deed02392 has joined #ruby
mhf has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
ij has quit [Ping timeout: 240 seconds]
<heckler>
i have a lib and bin dirs
<heckler>
in lib is a .rb file
hemanth has quit [Read error: Connection reset by peer]
<heckler>
in bin appears to be a binary file
<ntzrmtthihu777>
workmad3: in that sense would you consider it similar to bash?
<heckler>
no ext dir in there
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
julian-dephiki has quit [Quit: Computer has gone to sleep.]
<heckler>
workmad3: i know it's interpreted, but i thought the bin file was a byte-code compiled version of the lib file or something. i really don't know what i'm looking at. that's why i am asking.
tealmage has quit [Remote host closed the connection]
jankly has joined #ruby
<workmad3>
heckler: no, the bin/ directory is a place to put scripts to invoke gem functionality from the command line, rather than from within a ruby script
mneorr has joined #ruby
<heckler>
workmad3: ok
kaB00M has joined #ruby
kaB00M has left #ruby [#ruby]
<heckler>
workmad3: thanks, that is what I needed to know. so I am free to just modify the source code in the /lib and it will work?
Kingy has joined #ruby
thone has joined #ruby
<Hanmac>
heckler unless you coded shit, yes :D
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
<heckler>
i just need to make some simple mods, i think i can handle it
<Banistertab>
Hamac cherry tree dance?
thone_ has quit [Ping timeout: 245 seconds]
tjbiddle has quit [Quit: tjbiddle]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
<heckler>
workmad3: oh, i see. the file was showing up as a binary because there is no file extension on it.
<Hanmac>
heckler ... oO then you have an stupid OS oO
elico has quit [Ping timeout: 252 seconds]
jrajav has quit [Quit: I tend to be neutral about apples]
<heckler>
well the first time i tried to look in there i was on osx ... and it said this file looks like a binary, so i didn't open it. then after i installed the gem on ubuntu i saw it in the /bin dir so i assumed that was correct.
<ntzrmtthihu777>
sounds like win$
<ntzrmtthihu777>
guess not, lol
ferdev is now known as ferdev|away
<heckler>
but now that i less it, there's ruby code. who knew? did i tell you i am a ruby tard?
<_nitti>
it's convention for binaries to not have extensions.
razibog has quit [Ping timeout: 255 seconds]
<heckler>
yes, that's why i believed it was.
woolite64 has quit [Ping timeout: 276 seconds]
<ntzrmtthihu777>
true, but the extension thing is moot on my system.
<heckler>
ntzrmtthihu777: no. fuck windows.
<shock_one>
_nitti, exe files look suspiciously at you
<ntzrmtthihu777>
exactly, I use linux
<ntzrmtthihu777>
oops, missed your intent.
<Hanmac>
heckler *.so files that can be requird by ruby are binary
<heckler>
ok. good to know.
br4ndon_ has quit [Quit: Lorem ipsum dolor sit amet]
onemanjujitsu has quit [Quit: onemanjujitsu]
<ntzrmtthihu777>
only reason I even have window anymore is needed workplace interface *sigh*
<heckler>
i won't work anyplace where they use windows.
<heckler>
nothing against it, it's just not a place i want to be.
<ntzrmtthihu777>
easy for you to say, lol.
<ntzrmtthihu777>
here or the streets, literally
rismoney has quit []
Takehiro has joined #ruby
<heckler>
ntzrmtthihu777: you mean work or be homeless?
<ntzrmtthihu777>
yeah
zenloop has quit [Quit: zenloop]
<ntzrmtthihu777>
stuck between a diamond and a hard place, lol
<heckler>
yeah i been there. i'm just lucky i have been able to avoid windows since 2004
v0n has quit [Ping timeout: 245 seconds]
<heckler>
i might have made more money and had better jobs if i was willing to spend time keeping up with MS world
<ntzrmtthihu777>
<.< I am unfortunatly just recently coming out of windows, lol
<Mon_Ouie>
It's always funny to imagine that when people mean that, they literally mean windows.
<heckler>
better to jump out than be thrown out
<Mon_Ouie>
say that*
woolite64 has joined #ruby
<heckler>
Mon_Ouie: i jumped out of windows years ago.
benlieb has quit [Quit: benlieb]
<ntzrmtthihu777>
heh, right! that is a rather funny phras
<ntzrmtthihu777>
sed 's/phras/phrase/'
arietis has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie>
The one I liked best: "i won't work anyplace where they use windows"
<heckler>
yes, i am a vampire.
* ntzrmtthihu777
literally laughed out loud
adeponte has joined #ruby
<Hanmac>
currently i am working at my jop with feaky php code ... an ruby or C++ job would be more cool, but there are less currently in my local area
Takehiro has quit [Ping timeout: 264 seconds]
<heckler>
Hanmac: where is that?
<ntzrmtthihu777>
true.
bigmac has quit [Remote host closed the connection]
joofsh has quit [Remote host closed the connection]
<Hanmac>
heckler the firma i am in are developing addons for ecommerce software ... so i think its okay for using php ...
<Hanmac>
private i use C and C++ for my evil ruby plans
<heckler>
magento?
phinfonet has quit [Ping timeout: 255 seconds]
<Hanmac>
magento, yeah that stupid shit of crap too
<ntzrmtthihu777>
lol
arietis has quit [Client Quit]
<heckler>
Hanmac: what is better than magento, in your view?
<heckler>
or is this totally irrelevant to what you're doing
<ntzrmtthihu777>
rvm use --default 1.9.3
<Spooner>
heckler Magneto is a lot cooler than Magento, though having to deal with Xavier can be a problem ;)
kmurph has quit [Quit: kmurph]
<ntzrmtthihu777>
shit, my bad.
<Hanmac>
i am not against magento in general ... but there are few things that are shitty ... for sample there is not a nice way to install an addon (when you have it as package)
onemanjujitsu has joined #ruby
<heckler>
Hanmac: are you working with OScommerce?
<Hanmac>
you mean the commuinty edition?
cardoni has joined #ruby
icole has joined #ruby
* heckler
shrugs
<heckler>
i guess zen cart and some others are based on it
Virunga has quit [Remote host closed the connection]
<Hanmac>
the stuff i wrote for myself is cooler than magento imo :P
<heckler>
in ruby?
pabloh has joined #ruby
ben_h has joined #ruby
<Hanmac>
heckler: yes and no, it is not IN ruby, its FOR ruby :P
gabrielrotbart has joined #ruby
<Hanmac>
(they are C++ libs binded with C/C++/Ruby functions)
crackfu has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
<heckler>
i see
crackfu has joined #ruby
_nitti has quit [Remote host closed the connection]
<heckler>
Hanmac: speaking of ruby ecommerce i want to try out Stripe soon
_nitti has joined #ruby
Banistertab has quit [Read error: Connection reset by peer]
icole has joined #ruby
adeponte has quit [Remote host closed the connection]
colonolGron has quit [Quit: Lost terminal]
crackfu has quit [Ping timeout: 252 seconds]
gosshedd has quit [Ping timeout: 252 seconds]
emergion has joined #ruby
kmurph has quit [Quit: kmurph]
_nitti has quit [Ping timeout: 264 seconds]
fir_ed has joined #ruby
apeiros_ has quit [Remote host closed the connection]
skrewler has quit [Quit: skrewler]
adeponte has joined #ruby
ferdev|away is now known as ferdev
eliasp has joined #ruby
<eliasp>
hi
Kenum has left #ruby [#ruby]
ahokaomaeha has joined #ruby
<eliasp>
is there a way to define the scope when skipping a loop using "next"? In Perl I was used to simply label loops and then provide the desired label for next/last/…
horofox has quit [Remote host closed the connection]
<banisterfiend>
eliasp: not sure what u mean homie
<Mon_Ouie>
There isn't
<banisterfiend>
Mon_Ouie: 'alut, what does he mean?
<eliasp>
Mon_Ouie: hmm, so "next" always refers to the nearest loop?
<eliasp>
banisterfiend: I'll provide you an example… one moment
<Mon_Ouie>
'break label' where label specifies the loop you want to break from
<Spooner>
eliasp, No, you can't in Ruby. Best you could do would be to catch a thrown symbol if you have a lot of loops to break at once.
benlieb has quit [Quit: benlieb]
moshee has quit [Ping timeout: 256 seconds]
<eliasp>
Spooner: that's actually what I already do but it's by far not that beautiful because it requires another nesting-level, making the code harder to read
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<eliasp>
Spooner: but then I'll stick to this… just looked for a way to reduce the nesting levels
horofox has joined #ruby
Xeago has quit [Remote host closed the connection]
<banisterfiend>
eliasp: you could build your own system for this
Xeago has joined #ruby
Retistic has quit [Quit: Retistic]
<banisterfiend>
eliasp: using ruby's block syntax and perhaps thread local storage, u could write something quite nice
<banisterfiend>
eliasp: that looks suspiciously like 'goto' :)
<eliasp>
banisterfiend: hmm, actually not worth the use-case here… it's just a one-time script for a complex DB conversion which I have to finish in "minimal time"
codecop has quit [Remote host closed the connection]
Elhu has joined #ruby
<eliasp>
banisterfiend: not quite, Perl labels are actually quite powerful to create a good readable code
<eliasp>
banisterfiend: but to some extent you're right ;)
backjlack has quit [Remote host closed the connection]
joeycarmello has quit [Remote host closed the connection]
<Mon_Ouie>
Funnily, Java has those
<workmad3>
banisterfiend: lots of things are like 'goto', but restricted in use ;)
<Mon_Ouie>
(A surprising consequence when you don't have syntax highlighting on is that one can insert a URL in the middle of Java code… and it will still compile :p)
Virunga has joined #ruby
<workmad3>
Mon_Ouie: awesome :D
<eliasp>
Mon_Ouie: I know why I dislike Java ;)
<banisterfiend>
Mon_Ouie: is java growing on you
<workmad3>
Mon_Ouie: if you turn syntax highlighting on, does it stop compiling? :P
<Mon_Ouie>
I'm not using at anymore, so it shouldn't be
<Mon_Ouie>
workmad3: No, but you might start to understand why :p
unsay has joined #ruby
<Mon_Ouie>
I meant it was more surprising without the comment and the label parts being colored
onemanjujitsu has quit [Quit: onemanjujitsu]
<workmad3>
:)
gabrielrotbart has quit [Remote host closed the connection]
<eliasp>
ok, so until now, there are only 2 things I dislike Ruby… no support for loop labels and disallowing a comma behind the last element of a listing
<eliasp>
:)
fermion has joined #ruby
Xeago has quit [Ping timeout: 276 seconds]
<Mon_Ouie>
[foo,bar,baz,] works just fine
<Mon_Ouie>
Also in hashes
fermion has quit [Client Quit]
<eliasp>
Mon_Ouie: hmm, are there some pragmas to allow a more relaxed syntax? It doesn't work for me…
fermion has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
<eliasp>
let me retry
<Mon_Ouie>
Can you show your code? That's just the normal syntax
<banisterfiend>
anyone else fucking hate the rbenv CLI
<banisterfiend>
rvm was much easier to use
fermion has quit [Client Quit]
techhelp has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
<ryanf>
really? I haven't found that
<ryanf>
what's wrong with it?
<eliasp>
Mon_Ouie: hmm, maybe this only applies to method arguments like Foo( :blah => "bar", :foo => "blub",)
<Mon_Ouie>
This is a programming channel. There's *always* someone in for hating stuff!
<banisterfiend>
how do i uninstall a ruby version?
<ntzrmtthihu777>
I am liking the rvm, lol
<banisterfiend>
rbenv uninstall
Vektur has joined #ruby
<banisterfiend>
doesnt work
<eliasp>
banisterfiend: depends on your environment…
<banisterfiend>
rbenv delete doesnt work
<ryanf>
doesn't work how?
<banisterfiend>
rbenv remove doenst work
fermion has joined #ruby
<ryanf>
rbenv uninstall is what it's supposed to be
<ryanf>
assuming you have ruby-build installed
<Mon_Ouie>
Yes, it's not allowed in method arguments
<banisterfiend>
oh wait, it worked
<banisterfiend>
nm
<banisterfiend>
:D
<ryanf>
haha
<Mon_Ouie>
(Or in the hash-sans-curly-braces at the end of an argument list as in your example)
<ryanf>
banisterfiend: when did you start using rbenv btw?
<ntzrmtthihu777>
its kinda like playonlinux for managing ruby pretty cool
fermion has quit [Client Quit]
maxmanders has quit [Ping timeout: 252 seconds]
<banisterfiend>
ryanf: just in my linux VM
<ryanf>
ah
<banisterfiend>
so i dont use it that often
<eliasp>
I dislike such solutions which work outside the scope of a distributions package manager…
<banisterfiend>
probably why i hate the CLI
<ntzrmtthihu777>
cli rocks lol
galexs has joined #ruby
idkazuma has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Read error: Connection reset by peer]
pcarrier has joined #ruby
<banisterfiend>
ryanf: also things like: rbenv -h
galexs has quit []
<banisterfiend>
ryanf: doesnt show uninstall
<ryanf>
... it does for me
<ryanf>
maybe you have an old version?
<banisterfiend>
0.3.0
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
<ryanf>
oh yeah I have 0.4.
<ryanf>
0
<ryanf>
I'm guessing it probably doesn't on yours since it comes from a plugin instead of being built in
justsee has quit [Client Quit]
mneorr has quit [Remote host closed the connection]
techhelp has quit [Quit: This computer has gone to sleep]
<banisterfiend>
oh ok
techhelp has joined #ruby
arya has joined #ruby
chrishough has joined #ruby
<ntzrmtthihu777>
dammit this thing refuses to cooperate
alanp has joined #ruby
alanp has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
alanp has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
techhelp has quit [Quit: This computer has gone to sleep]
alanp_ has quit [Ping timeout: 252 seconds]
f0ster has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
<f0ster>
where I Can see how datetime comparison operators work ?
x82_nicole has joined #ruby
<ntzrmtthihu777>
sonova--- I installed libwxgtk and now the damn thing keeps aborting
nomenkun_ has quit [Remote host closed the connection]
nari has joined #ruby
robotmay has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
gabrielrotbart has joined #ruby
jrajav has joined #ruby
JumpMast3r has joined #ruby
sepp2k has quit [Remote host closed the connection]
Takehiro has joined #ruby
JarJar has quit [Quit: This computer has gone to sleep]
kmurph has joined #ruby
mneorr has joined #ruby
JarJar has joined #ruby
ossareh has joined #ruby
mneorr has quit [Remote host closed the connection]