d2dchat has quit [Remote host closed the connection]
blake is now known as TheMoonMaster
JBrickley has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JBrickley has joined #ruby
freerobby has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jpfuentes2 has joined #ruby
startupality has quit [Quit: startupality]
<al2o3-cr>
shevy: You still learning C?
clarkenciel has joined #ruby
<shevy>
al2o3-cr well I don't know
<shevy>
I seem to still be stuck maintaining code, rewriting my old ruby 1.8.x ruby-gtk stuff...
<shevy>
al2o3-cr ruby is too much fun
poli has joined #ruby
unreal_ has joined #ruby
CloCkWeRX has joined #ruby
darwingr has joined #ruby
<al2o3-cr>
shevy: So your still not grasping things?
BTRE has quit [Remote host closed the connection]
BTRE has joined #ruby
<shevy>
al2o3-cr yeah that too, but I am also not investing a lot of time into it... I am fly-by learning, it has to happen fast or it does not happen at all, like a ferret on a sugar rush :)
<sp_>
shevy: Why do you think they should be implemented in C++ instead of C?
<al2o3-cr>
:)
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
unreal has quit [Ping timeout: 260 seconds]
kdman has quit [Ping timeout: 256 seconds]
<shevy>
sp_ do I think so?
<sp_>
shevy: C++ was designed as an extension language to C. And spiralled out of control. It would be a lot harder to maintain a language fork based upon C++ where C maintains a relatively small footprint, the language itself is rather small.
<sp_>
shevy: I don't know.
tmtwd has joined #ruby
<sp_>
C isn't "a compiled" language.
<Ox0dea>
Wat.
<sp_>
There only exists compilers designed for C. The language specification makes no distinction for this.
<Ox0dea>
It's not *the* compiled language either, in case that was the intended implication.
<sp_>
Was that as-per re: Swift?
<Ox0dea>
There are hundreds.
ramfjord has quit [Ping timeout: 250 seconds]
<Ox0dea>
In any case, it's true that there are a few "C interpreters", but it's not as if they see much use.
sdfgsdfg has joined #ruby
<sp_>
That's hardly the point.
<sp_>
It's like saying green is tasty.
joneshf-laptop has quit [Ping timeout: 256 seconds]
<Ox0dea>
You're offending the synesthetic.
<shevy>
That is why Ox0dea is commonly called the Oracle
<Ox0dea>
I learned of hanmac when I was compared to him for doing the non-alphanumeric thing.
juanpablo_ has quit [Ping timeout: 272 seconds]
bast has quit [Quit: leaving]
ghr has joined #ruby
theery has joined #ruby
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Swappticon has joined #ruby
Starf0x has joined #ruby
<Starf0x>
Hello everone! I was wondering if anyone had any experience using Railsbricks?
<sp_>
Someone might.
theery_ has joined #ruby
theery_ has quit [Read error: Connection reset by peer]
<Starf0x>
I noticed that the installation instructions were sparse, and there was a lot of extra work required to use the gem, so I wrote a tutorial.
theery has quit [Read error: Connection reset by peer]
<Starf0x>
I wanted to post it so others wouldn't have to search for so long for all the answers, where could I go about sharing useful Ruby information like that?
mistermocha has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
<Starf0x>
Ah, there is a rails room. Nice. Thank you all!
Starf0x has left #ruby [#ruby]
davedev24 has joined #ruby
MrXelious has joined #ruby
MrXelious has left #ruby [#ruby]
Swappticon has quit [Read error: Connection reset by peer]
mistermocha has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
Swappticon has joined #ruby
jenrzzz has joined #ruby
Swappticon has quit [Max SendQ exceeded]
Yzguy has quit [Quit: Zzz...]
cmckee has joined #ruby
christiandsg has joined #ruby
cmckee has quit [Client Quit]
maletor has joined #ruby
towski_ has joined #ruby
freerobby has quit [Quit: Leaving.]
PaulCape_ has quit [Quit: .]
PaulCapestany has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
lucyinthesky has joined #ruby
znz_jp has quit [Ping timeout: 244 seconds]
<shevy>
hmmm
<shevy>
a rails room
Kallis has quit [Read error: Connection reset by peer]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arescorpio has quit [Quit: Leaving.]
pranny has quit [Remote host closed the connection]
pranny has joined #ruby
face has quit []
lkba_ has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
<shevy>
yeah
<baweaver>
lisp, lisp is perfection in its paren-y goodness
mary5030 has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
<shevy>
is lisp among the scripting languages family?
<Ludiko>
any idea how to reset the id after CLass.destroy in datamapper?
tjohnson has quit [Quit: Connection closed for inactivity]
laurentide has quit [Ping timeout: 244 seconds]
davedev24 has joined #ruby
<ght>
Evening guys.
<shevy>
ght is ready for mischief
<ght>
haha
<ght>
I'm bored, late night coding this Ruby project.
<ght>
No one to talk to, wife is out at her birthday party, kids are asleep, all my friends are asleep.
<ght>
So, figured I'd give old #ruby a shot.
<sevenseacat>
ght: ?guys
<sevenseacat>
ugh whats the command
<sevenseacat>
?guys ?
<ruboto>
?, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<ght>
Haha, wow.
davedev2_ has quit [Ping timeout: 244 seconds]
<ght>
Didn't realize we were rolling SJW in #ruby.
<ght>
That's fine, I'll keep it to Ruby questions.
davedev24 has quit [Ping timeout: 244 seconds]
<sevenseacat>
we're not
<Aria>
Just a reminder that the rest of us are here too.
marjory_baxter has joined #ruby
icarus has joined #ruby
<shevy>
I predicted the mischief :)
pranny has quit [Remote host closed the connection]
bruno- has joined #ruby
pranny has joined #ruby
lessless has joined #ruby
lessless has left #ruby [#ruby]
Rinzlit has joined #ruby
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
theery has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
jeadre has quit [Remote host closed the connection]
<nofxx>
Ludiko, it's the DB giving you the ID , not DM
<nofxx>
just drop de database
tlolczyk has joined #ruby
marjory_baxter has quit [Ping timeout: 246 seconds]
leonmaia has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
<Ludiko>
i need to that for an specific.. table? is called table? :P
jeadre has joined #ruby
<nofxx>
oh, yeah,.. sorry, drop the table
<Ludiko>
hmm
<nofxx>
you'll need to recreate it too.. but check the DB, maybe there's a reset counter
<nofxx>
usually it's a system index or something
<Ludiko>
i'll check it
<nofxx>
Ludiko, incremental id i think is the term
<Ludiko>
yes
Gnomethrower has joined #ruby
Gnomethrower has quit [Changing host]
Gnomethrower has joined #ruby
<Ludiko>
i guess there's nothing in DM to check if a table exist and drop it if it does?
grenierm has joined #ruby
<tlolczyk>
I'm reading websites and there is something I cannot figure out. I've basically got if value =~ /this-([0-9][0-9][0-9])/; process(value). I would before process like top access the subgroup and check if it is valid number in a tavble. How do I access the subgroup and convert to int?
<nofxx>
Ludiko, DM is old and unmaintained, and anywys sequel or even AR are way better... can't you change your proj?
<nofxx>
(both have check table) but guess DM should have too
<Ludiko>
oh sure, i just went with what seemed easier :P
<Ludiko>
i'm kind of a newb
<nofxx>
Ludiko, pretty sure you'll find em easier ;) also, way more tutorials
<Ludiko>
em?
<nofxx>
sequel or ActiveRecord
<Ludiko>
oh
<nofxx>
tlolczyk, not sure it's possible, you'll need to check it later
The_Phoenix has joined #ruby
<Ludiko>
i'll check them out
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rideh has quit [Changing host]
rideh has joined #ruby
jeadre has quit [Remote host closed the connection]
rideh has quit [Quit: quit]
bigmac_ has quit [Ping timeout: 265 seconds]
rideh has joined #ruby
jeadre has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
xet7bot is now known as xet7_
pranny has quit [Remote host closed the connection]
pranny has joined #ruby
marjory_baxter has joined #ruby
riotjones has joined #ruby
PaulVern has joined #ruby
leonmaia has joined #ruby
pranny has quit [Remote host closed the connection]
<PaulVern>
Hi All. I've written this script which resolves an IP address of one of my domains. Sometimes it works, but other times I get the following exception: http://paste.ofcode.org/pyUbxHMWzk9A78f4mnxDM2
<PaulVern>
The code, and the error are in that paste
<PaulVern>
any idea why this might happen?
rideh has quit [Changing host]
rideh has joined #ruby
<PaulVern>
is dns lookup just generally unreliable?
<shevy>
tlolczyk you need to capture it via () then process it before sending it to process()
<shevy>
tlolczyk the captured groups are available in either $1 $2 $3, or in a MatchData object via [1] [2] etc..
rideh has quit [Quit: quit]
pranny has joined #ruby
rideh has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
pranny has quit [Remote host closed the connection]
podman has quit [Quit: Connection closed for inactivity]
rushed has quit [Quit: rushed]
pranny has joined #ruby
<shevy>
PaulVern does not seem to work for me at all
<shevy>
Resolv::ResolvError: no address for 0.onetwo.com
<shevy>
btw you are missing the last " in that paste
<PaulVern>
shevy: Should have mentioned, I removed my real domain due to paranoid :)
<PaulVern>
oh
dionysus69 has joined #ruby
houhoulis has quit [Remote host closed the connection]
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver>
which would make it: current_ip = Resolv.getaddress "my.domain.com" rescue '0.0.0.0'
<baweaver>
assuming you want a default value
<baweaver>
otherwise use `abort` with a good clean error message for it.
juanpablo_ has quit [Ping timeout: 252 seconds]
face has joined #ruby
<PaulVern>
Well what my script does is it gets my current IP from http://wtfismyip.com/json , compares it with what the DNS record says, and if it doesn't match, updates the dns record with the current IP
<PaulVern>
So I'll probably go with the retry option
<PaulVern>
I just looked up bing.com a few times on an endless loop, with no errors. So looks like this has exposed an issue with my DNS configuration as well
<baweaver>
mm, fair
<baweaver>
depends on context as far as how to handle much of anything
<baweaver>
and if you're a ruby beginner, Enumerable is a must read.
<baweaver>
looking for a good intro (or writing one later)
<jhass>
atzorvas: alternatively describe your real goal
<jhass>
?xy
<ruboto>
it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<zenspider>
atzorvas: again... bad data
<zenspider>
either you don't know what you want, or...
<zenspider>
just no
<jhass>
atzorvas: {"1" => ["1", {"1.1" => ["1.1.1", "1.1.2"], .. ], "10" => "10"}]} ? sure that's what you want?
laurentide has joined #ruby
<jhass>
arg, didn't even make it valid
<jhass>
yeah, please see ?xy
<zenspider>
hah
<shevy>
he can paste it another time, I have confidence
<jhass>
I guess these are chapters?
robertjpayne has quit [Remote host closed the connection]
<zenspider>
versions?
<baweaver>
going to wait until they reply instead of finding my psychic powers
<zenspider>
gotta say I "love" it when ppl come in here and ask questions with absolutely NO care in the world as to the answer
<atzorvas>
sorry I'm confused and everything I say is more confusing
charliesome has joined #ruby
<shevy>
well there is always one way to have things in the most simple data structure possible
<shevy>
but you already have it in your hash
<jhass>
seems like my "tree" hash would be good
clarkenciel has quit [Quit: Leaving]
dgutierrez1287 has joined #ruby
AlexAltea has joined #ruby
<atzorvas>
yeah thanks jhass, also wasn't aware of str partition which looks like a nice fit
<TTilus>
atzorvas: so tree traversal?
<TTilus>
atzorvas: that looks awfully lot like home assignment
jgt2 has joined #ruby
dgutierrez1287 has quit [Ping timeout: 272 seconds]
<TTilus>
atzorvas: for that usecase in your pastie, you don't really need any intermediate structure
demonlove has joined #ruby
<TTilus>
atzorvas: just iterate your list of entries and print all prefix matches (strings that start with what user entered)
demonlove is now known as server2client
<TTilus>
atzorvas: rigt?
<zenspider>
this looks like homework or an interview question. but more poorly described.
<TTilus>
s/gt/ght/
pawnbox has quit [Remote host closed the connection]
<TTilus>
zenspider: exactly
jgt1 has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
<atzorvas>
yes, that's doable. but I want to later store all nodes in AR with parent & childs
mblagden has quit [Read error: Connection reset by peer]
<TTilus>
atzorvas: so who's interviewing you? or where are you studying? ;)
<TTilus>
atzorvas: why would you want to do that?
<atzorvas>
its not a h/w, I had this stuff and wanted to create assocs
<atzorvas>
I have an xls with one column like that "1" "1.1" "1.1.1" "2" etc, so I wanted to give structure before storing. I'm playing with rails & xls-files
<TTilus>
atzorvas: what structure (if any) you want is completely dependent on what you wanna do with it
_blizzy_ has quit [Ping timeout: 255 seconds]
duncannz has joined #ruby
<TTilus>
atzorvas: so one last time: tell us what you are up to and we'll be able to help you with datastructure stuff
<atzorvas>
TTilus: I want to have a <select> where you choose 1,2 or 10 etc. then a sub-select for the childs if needed, etc
<TTilus>
uh, oh
<TTilus>
what for?
bronson has quit [Ping timeout: 272 seconds]
<zenspider>
I'm available on a contractual basis. Otherwise, I'm not interested in this.
pawnbox has joined #ruby
<TTilus>
zenspider: :D
<TTilus>
atzorvas: do you possibly mean: given "chapter number", you want to find out all the immediate child chapters?
<atzorvas>
TTilus: yup. but I want to retrieve data from DB, where I was thinking of parent-child relations.
<TTilus>
atzorvas: if so, then my answer is the same as previous, just have an unique index on your chapter number and your prefix matches will be fast too
fluffykat has joined #ruby
<atzorvas>
TTilus: so adding relations just makes it more complicate? :P
<TTilus>
atzorvas: with the usecase you described, yes, just more complicated
<atzorvas>
great link thanks
<TTilus>
atzorvas: for next time: it would have helped a lot, if you had presented yourself e.g. like this: i have this fancy table representing a tree structure (say book chapters) and i wanna play around with different ways to store that data in sql db and access via AR
<atzorvas>
it would cause less headaches for sure, thanks :)
psy_ has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
server2client has quit [Remote host closed the connection]
[k- has quit [Ping timeout: 256 seconds]
marr has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
ndrei has joined #ruby
charliesome has quit [Ping timeout: 244 seconds]
tvw has quit []
charliesome has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
Mendenhall has quit [Ping timeout: 255 seconds]
sp_ has quit [Quit: leaving]
[k- has joined #ruby
arup_r has joined #ruby
davedev24 has quit [Ping timeout: 244 seconds]
psy_ has joined #ruby
lipoqil has joined #ruby
<zenspider>
Or: don't bother. Your structure isn't complex. You don't have that much data. You can do everything on the fly.
codenapper has joined #ruby
lkba_ has quit [Ping timeout: 252 seconds]
davedev24 has joined #ruby
jiada-chrome has quit [Quit: Connection closed for inactivity]
timonv has joined #ruby
mprelude has joined #ruby
m8 has joined #ruby
startupality has joined #ruby
<shevy>
so I was searching for cgi on rubygems
<shevy>
hmm... cgit ... oh no wait, that's for git :D
sp_ has joined #ruby
pandaant has joined #ruby
juanpablo_ has joined #ruby
TomItsTime has joined #ruby
<TomItsTime>
||||| >>>>> WHAT IS YOUR DOMAIN NAME WORTH? Vist >>> www.VALBOT.com <<< FREE DOMAIN VALUATION! or GOOGLE >>> VALBOT.com <<< |||||
Pupeno has joined #ruby
<jhass>
!mute TomItsTime
Pupeno has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BaroMeter has joined #ruby
riotjones has joined #ruby
Salehi has quit [Quit: Leaving]
charliesome has joined #ruby
<apeiros>
krainboltgreene: so we summarize: you love to bicker, either here or behind everbody's back. you don't want to help people. you're not interested in telling us how to get you to constructive
<apeiros>
+be
<apeiros>
makes you IMO a toxic element
<[k->
apeiros did you stalk him :O
cats has quit [Quit: Meow.]
cats has joined #ruby
<apeiros>
oh, the last time he pulled such shit off I got informed about his twitter activity. and given his character I assumed he'd do it again.
<sevenseacat>
but I remember it now - 'this community so bad, nodejs so much better'
davedev24 has joined #ruby
<sevenseacat>
!mute krainboltgreene
aspiers has quit [Ping timeout: 246 seconds]
<sevenseacat>
operator abuse is not on, whether it's here or anywhere.
decoponio has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
<sevenseacat>
krainboltgreene: if you have an issue with me muting you, I'd prefer to do it in a civilized manner. you're welcome to PM me, instead of complaining on twitter.
tsujp has joined #ruby
<sevenseacat>
*to handle it
<sevenseacat>
ops are always available for private discussion on channel-related issues. it's in the channel rules.
<jhass>
or feel free to join #ruby-banned if you want to discuss it with other ops
Musashi007 has joined #ruby
tsujp has quit [Client Quit]
leafybasil has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
helpa has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 260 seconds]
bruno- has quit [Read error: Connection reset by peer]
helpa has joined #ruby
bruno- has joined #ruby
shtirlic has quit [Ping timeout: 240 seconds]
wedgwood has quit [Ping timeout: 260 seconds]
jalcine has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
shtirlic has joined #ruby
eightfold has quit [Ping timeout: 246 seconds]
jalcine has joined #ruby
leafybasil has quit [Ping timeout: 244 seconds]
wedgwood has joined #ruby
ruurd has joined #ruby
_blizzy_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
mistermocha has joined #ruby
RTG` has quit []
_blizzy_ has quit [Read error: Connection reset by peer]
iateadonut has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
_blizzy_ has joined #ruby
jgt2 has quit [Ping timeout: 256 seconds]
Ropeney has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
pandaant has quit [Remote host closed the connection]
rushed has joined #ruby
leafybasil has joined #ruby
cornerma1 has joined #ruby
cornerman has quit [Ping timeout: 252 seconds]
cornerma1 is now known as cornerman
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
migimunz has quit [Ping timeout: 252 seconds]
Pupeno has joined #ruby
CHVNX has quit [Ping timeout: 244 seconds]
jds has joined #ruby
migimunz has joined #ruby
CHVNX has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
leat has quit [Ping timeout: 272 seconds]
leat has joined #ruby
leafybasil has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
jeadre has quit [Remote host closed the connection]
SenpaiSilver has quit [Quit: Leaving]
jgt2 has joined #ruby
jeadre has joined #ruby
<apeiros>
oh, never noticed that Queue is now Thread::Queue
<apeiros>
great to see ruby making amends to not overflow global namespace
rushed has quit [Quit: rushed]
pyon has quit [Quit: Dammit, f...ix yourself, Emacs.]
pyon has joined #ruby
k3asd` has quit [Ping timeout: 240 seconds]
nanoz has quit [Ping timeout: 256 seconds]
iateadonut has quit [Quit: Leaving.]
tkuchiki has joined #ruby
<claw>
hey guys
<claw>
i can set process name using $0 or $PROGRAM_NAME
<claw>
why cant i kill using killall ?
<claw>
killall 'foobar' => foobar: no process found
iateadonut has joined #ruby
<claw>
top show the process with that name by the way
<jhass>
killall matches on the executable name, not the proctitle
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<claw>
jhass: my executable name and proctitle also match
psy_ has quit [Ping timeout: 240 seconds]
<claw>
the funny thing is that bash copletion for killall actually works and completes the foobar
<aibo>
pkill -f foobar
<jhass>
^
msankhala has joined #ruby
<jhass>
the hashbang replaces the process name iirc (!= process title)
Ropeney has joined #ruby
<claw>
aibo: why does that work and killall does not ?
jenrzzz has quit [Ping timeout: 244 seconds]
dionysus70 has joined #ruby
<jhass>
because of what I said earlier
<aibo>
with pkill -f you don't need to give the exact executable name, but a pattern that matches
<aibo>
so each process that has "foobar" in its commandlineis killed by the above command
jenrzzz has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
dionysus70 is now known as dionysus69
<jhass>
pkill -x basically goes back to killall behavior, so you could just forget about killall
psy_ has joined #ruby
jeadre has quit [Remote host closed the connection]
jeadre has joined #ruby
<claw>
y its name is actually 'ruby' and it is killed by killall ruby
<claw>
anybody know how i could change that ?
mistermocha has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
<jhass>
copy your ruby interpreter to another name
<jhass>
or just use pkill
Kallis has joined #ruby
Meow-J has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
ruurd has quit [Quit: ZZZzzz…]
Pupeno has quit [Remote host closed the connection]
<claw>
meeeh
<claw>
replace shebang
<claw>
#!/usr/bin/env ruby => #!/usr/bin/ruby
Inoperable has joined #ruby
Pupeno has joined #ruby
pawnbox has quit [Excess Flood]
pawnbox has joined #ruby
<claw>
now i understand what you meant jhass
<claw>
thatway the process name becomes the executable name but i used env why make the process name always ruby
enebo has joined #ruby
juanpablo_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby
ruurd has joined #ruby
roxtrongo has joined #ruby
leonmaia has joined #ruby
SenpaiSilver has joined #ruby
enebo has quit [Client Quit]
juanpablo_ has quit [Ping timeout: 250 seconds]
millerti has joined #ruby
NeverDie has joined #ruby
Inoperable has quit [Quit: ZNC 1.7.x-git-306-ceb1c5e - http://znc.in]
Inoperable has joined #ruby
havenwood has joined #ruby
Inoperable has quit [Remote host closed the connection]
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
<claw>
havenwood: yes its the same aus $0= or $PROGRAM_NAME=
<havenwood>
claw: Depends on OS.
<claw>
jhass: i could. but other applications behave just the same so why shouldn't that be possible ?
<jhass>
claw: find me one that uses an /usr/bin/env hashbang too
euoia has joined #ruby
<euoia>
I'm having some trouble getting https://github.com/tyage/slack-patron working - getting 404s when making requests via an apache reverse proxy, but works fine when making requests directly to localhost:9292
<havenwood>
nofxx: Been meaning to flash them to Ubilinux.
<nofxx>
havenwood, archarm !
<nofxx>
wait... it is x86 ?
<havenwood>
ayup
<havenwood>
Low power, x86 chip with WiFi and Bluetooth.
<gabord>
jhass: Im currently looking through that data, but probably yes.
<nofxx>
havenwood, it's very nice, but I'm dunno, smell a rat with that connector
<jhass>
gabord: got it from the page you linked btw :P
<nofxx>
havenwood, I/O apart, great for just ble/wifi
<gabord>
jhass: No, it doesnt have the info i need.
<jhass>
which info do you need then?
<havenwood>
nofxx: Was impressed how well it serves up a Phoenix app with a little solar panel for power. ;)
<gabord>
jhass: I know, ive looked at that too, but it only gives me the versions. I would like to get the dependencies for a gem, but for particular version.
<havenwood>
nofxx: I did have some issues compiling popular gems with Ruby. But didn't take much more than static linking to get Ruby 2.2 to compile.
freerobby has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
<nofxx>
havenwood, hahah that's nice! I did something like that with the rpi, solar to a bike battery, to 24hrs off the grid server... worked, but vehicle batteries sucks
<[spoiler]>
Oh, the Edison is lovely yes
<gabord>
jhass: info, homepage_uri, dependencies (both runtime and buildtime). I need them for some 30-40 gems, to list these infos.
<gabord>
But if you know any other source of info i could use, and interpret, i'd use that too.
<nofxx>
gabord, download the gem and get the info, scrap ruby-gems.com
<gabord>
nofxx: I dont want to use gem install and bundler, because they make lots of garbage on gentoo. Gentoo has a clean way of managing gems.
<gabord>
Its the same as gem install, but there is a wrapper for them.
<[spoiler]>
gabord: he probably meant that you download the .gem file
psy_ has joined #ruby
<gabord>
[spoiler]: Oh, then its a good idea, thanks.
dorei has joined #ruby
<gabord>
nofxx: Thanks, thats a good idea.
dionysus69 has joined #ruby
modern has joined #ruby
modern has joined #ruby
mistermocha has joined #ruby
* nofxx
wonders if crystal uses gcc ... sorry the naiveness
<nofxx>
that would mean one could test avr-gcc and write ruby on arduino hehe
minimuffins has quit [Ping timeout: 255 seconds]
<jhass>
nofxx: LLVM to generate the object files, linker can be whatever
<jhass>
and crystal isn't Ruby
<nofxx>
jhass, ok ok, closest one can get to ruby on arduino*
<jhass>
not really, it's still a GC'ed language
cabreraM516 has joined #ruby
<jhass>
also hf getting a libc, coroutines, libevent2 and libunwind running there
ruurd_ has quit [Quit: ZZZzzz…]
doopdapper has joined #ruby
<gabord>
nofxx: Is there a simple way to get the data in the .gem in a json or other readable way? Because i could use tar, and then other things, but i suppose there is a way.
Swappticon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cabreraM516 has quit [Remote host closed the connection]
<jhass>
gabord: get pry, Rubygems (the Gem module) should have something
<gabord>
jhass: Thanks.
terlar has quit [Read error: Connection reset by peer]
<jhass>
mmh, I wonder if all_specs has the data
siaw has joined #ruby
<jhass>
or is it gone? only see latest_specs :/
maletor has joined #ruby
vali has quit [Ping timeout: 250 seconds]
maletor has quit [Client Quit]
maletor has joined #ruby
<gabord>
jhass: I installed pry, i dont know what to do. pry --help doesnt give me any useful info. I dont think i need pry
<jhass>
gabord: run pry
<jhass>
then ls Gem
<jhass>
? Gem.foo
<jhass>
$ Gem.foo
<nofxx>
jhass, think I got it, thank you. A transpiler would be better for the avr scneario.
<nofxx>
gabord, I was thinking parse/read the gemspec
<nofxx>
that's what pry is doing I believe
icarus has joined #ruby
<jhass>
no, I told them to use pry because it makes it easier to play with the rubgems API (not the web API)
<jhass>
gabord: inside pry run help for more commands
<nofxx>
I see. But he doesn't want to install the gems
<nofxx>
mixed feelings, line looks clear, block looks denser
mistermocha has joined #ruby
ruurd has joined #ruby
vali has joined #ruby
<gabord>
jhass: In pry i havent found a command that lists the dependecies for example for a gemfile.
<jhass>
gabord: so what I'd do: download the specific versions .gem, extract it, read the specification (may need to deflate it first, Gem::Specification should have API for that)
<nofxx>
Always go back to inconsolata anyways... which font ruby looks nicer for you? ;) ONTOPIC!!
<jhass>
er, that = reading the specification, not deflating it
<gabord>
jhass: Alright. I taught there was a simpler way, since there are so many programs, and even api-s for getting gem informations.
chinmay_dd has quit [Read error: Connection reset by peer]
<jhass>
bundler uses a special API that given a set of gems just returns a dependency graph for it
<nofxx>
gabord, thing is, unless you're building a https://gemnasium.com , there's really no use for that
<nofxx>
or a ruby-toolbox
<jhass>
gem seems to only show metadata about latest versions without installation
<jhass>
rubygems.org version detail page doesn't have a corresponding API if you look at the code
<nofxx>
yeah, you'll need a scraper robot
<nofxx>
I'm sure sites like that do a gem mirror local, then you can query it like a DB
<gabord>
I would like to port some gems to gentoo package system, and i wanted to automate the process as much as i could.
<nofxx>
with some ruby help
Cust0sLim3n has quit [Read error: Connection timed out]
swills has quit [Quit: leaving]
kirun has quit [Quit: Client exiting]
<nofxx>
gabord, from arch user pov: all gems on AUR are very or never used. Ppl gem prefer a gem install
<jhass>
gabord: existing things like gem2arch (well I think there are 2 or 3 of that) could be interesting
<nofxx>
you can see by the votes
<jhass>
there should be gem2deb and gem2rpm like stuff too, can probably learn something from the code of one of those
<jhass>
though I wouldn't be surprised if they all work only on the latest version too
<nofxx>
gabord, what would be nice is hook only the gem install as script... pre-install, nope? bundler
<gabord>
gentoo doesnt use rpm nor deb.
<nofxx>
you can't provide binaries in gentoo anyways, right?
<jhass>
sometimes I'm not sure if you're fully reading the sentences
leat has joined #ruby
leat has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
<gabord>
jhass: I know, you said i could read those packages, and learn. But its not the issue, i know whats in a gem package in gentoo, and what to include, its on the rubygems website too.
<jhass>
I think you're not even trying to understand the code
<jhass>
that's where/how you can automate
<jhass>
let's call it a day, I've done more than enough compared to your willingness to learn
krz has quit [Ping timeout: 264 seconds]
Cust0sLim3n has joined #ruby
L8 has quit [Ping timeout: 246 seconds]
leonmaia has joined #ruby
NeverDie has joined #ruby
khebbie has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
juanpablo_ has joined #ruby
<gabord>
jhass: I will not learn ruby just for that, and will not read through all the codes, because its not worth it. I could just simply write things with my hands then by that time. So there is no simple solution for this, or you just dont know it, fine, that say that then.
<jhass>
I linked you three solutions that each take less than 20loc so far
<jhass>
you're not trying
chinmay_dd has joined #ruby
Rollabun_ has joined #ruby
ramfjord has joined #ruby
<gabord>
jhass: I dont think you understand what i want.
Rollabunna has quit [Ping timeout: 265 seconds]
majjoha has quit [Quit: WeeChat 1.2]
leat has quit [Remote host closed the connection]
deansc has quit [Remote host closed the connection]
majjoha has joined #ruby
leat has joined #ruby
<gabord>
jhass: If you give me a python code, i wont have a problem with that.
juanpablo_ has quit [Ping timeout: 244 seconds]
<jhass>
you want a generator that given a gem name and version lists you the gems dependencies, author, license, homepage etc.
khebbie has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
<jhass>
now that's bullshit
<jhass>
I came from python and learned Ruby by reading existing Ruby code
mistermocha has joined #ruby
mon_ has left #ruby [#ruby]
blue_deref has joined #ruby
theery has joined #ruby
konsolebox has quit [Quit: Leaving]
theery has quit [Remote host closed the connection]
<gabord>
jhass: Im trying. I wrote that part in a .rb file, tried to call it with "rails", "3.2.1", but still the program script doesnt do anything.
<gabord>
jhass: I will do it, but its not worth it really.
<jhass>
paste it into pry, call the method
<jhass>
then stop wasting both of our time and call it a day too, I'm done with you
<gabord>
jhass: You said you have a solution, you dont. You can also paste the gem programs source code too, that can also help...
Yzguy has joined #ruby
<[k->
we aren't here to spoonfeed you
rehat has quit [Remote host closed the connection]
Rollabun_ has quit [Ping timeout: 240 seconds]
<jhass>
yup, channel rule 1.3 in fact
r0x0rZ has joined #ruby
Rollabunna has joined #ruby
<gabord>
[k-: My question was is there a way to get dependencies, and homepage infos in an available way for a specific version of a gem.
<gabord>
So there is none you know.
mistermocha has quit [Remote host closed the connection]
r0x0rZ has quit [Client Quit]
leat has quit [Remote host closed the connection]
<[k->
yes, there is none i know, which was why i didnt say anything
<gabord>
I dont have a problem with you.
leat has joined #ruby
hanmac has quit [Ping timeout: 244 seconds]
saddad has joined #ruby
majjoha has quit [Quit: WeeChat 1.2]
majjoha has joined #ruby
araujo_ has joined #ruby
rushed has joined #ruby
rushed has quit [Client Quit]
araujo_ has quit [Read error: Connection reset by peer]
araujo_ has joined #ruby
minimuffins has joined #ruby
araujo_ has quit [Client Quit]
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
shevy: For it was scrolled on the walls of the tower.
<havenwood>
jhass: Pry \o/
<shevy>
now that's an awful pastie site :)
<adaedra>
it is?
<jhass>
yes
<jhass>
note the [n] pry
<jhass>
oh, wait I'm in the wrong context, aren't I
<havenwood>
shevy: I think a quick read through the new RubyGems dep resolution code is worthwhile!
<havenwood>
"new"
<havenwood>
As in years old. ;)
<havenwood>
newish
<havenwood>
I enjoy using it.
<jhass>
like the new testament?
araujo has joined #ruby
araujo has joined #ruby
<adaedra>
jhass: is there a newer one?
<havenwood>
you have to take 1.8 in historical context. we of course wouldn't do things like that these days.
<jhass>
some say so, some say otherwise
<havenwood>
mm, the orthodox
<gabord>
jhass: Im trying. I need this in a file really, thats why i try to do the same thing. At the end of the function, i write: puts("rails", "3.2.1"), and try it with "ruby thefile.rb", but it hangs. I dont know anything about ruby, and you tell me to use it, its not fair.
<gabord>
pry is a command line, i need to use it for files, and for other interpreters.
<jhass>
yep, not interested to learn
<havenwood>
gabord: What would you like?
<jhass>
kthxbye
<gabord>
jhass: Im trying, dont u see?
<jhass>
gabord: that you code something for them
<jhass>
er, havenwood ^
ponga has joined #ruby
<gabord>
havenwood: Some way to get the homepage, info, runtime dependecies, build dependencies for a gem, in a json or other readable format for specific gem versions.
<havenwood>
jhass: You already showed gem specs, shevy showed gem executable and I showed gem names and websites from a Gemfile. I guess missing golden platter.
hanmac has joined #ruby
grenierm has quit [Quit: grenierm]
eightfold has joined #ruby
<havenwood>
gabord: From the command line or from Ruby? There's a nice API as well.
<havenwood>
gabord: See the code jhass pasted above. Learn the basics of Pry so you can do it yourself.
<havenwood>
gabord: After getting that info from a single gem, if you have questions about how to get it from a Gemfile or Gemfile.lock with RubyGems or Bundler, ask away.
<havenwood>
gabord: But put in the effort first to read and comprehend what's already been shown.
<havenwood>
gabord: If you haven't already, try the examples I've shown above as well.
<shevy>
<havenwood> ruby -e "p Gem.detect_gemdeps('./Gemfile').map { |gem| [gem.name, gem.homepage] }.to_h <-- you can apply .to_json to this for a jsoned-string
<shevy>
hmm that was meant to go to gabord :)
<havenwood>
JSON!?
<shevy>
yeah!
<shevy>
<gabord> havenwood: Some way to get the homepage, info, runtime dependecies, build dependencies for a gem, in a json or other readable format for specific gem versions. <---
<shevy>
it probably is deeply covered in some mystical API already
<shevy>
I have no idea how you find these things havenwood
<havenwood>
shevy: Sure, you could get it from the RubyGems API. :D
<gabord>
shevy: I havent tried it, because i was busy with that other code. Isnt that only for the Gemfile? I need other infos too, like, from the .gem file. But i have to uncompress it, and write a script to intepret it. There must be a simpler way from already things.
<gabord>
havenwood: RubyGems API gives me only the latest versions infos, ive already tried it.
<gabord>
It would be perfect, but i need specific versions.
leat has quit [Remote host closed the connection]
<havenwood>
gabord: Read more docs. ;)
<shevy>
gabord I don't think it is only for a .Gemfile; Gemfile came from bundler, "Gem." namespace from rubygems command itself
<shevy>
but oh boy am I scared to try to find documentation ... a goole for Gem.detect_gemdeps showed up nuts
<shevy>
google wants to autocorrect it to "Did you mean: Gem.detect gemspec "
<shevy>
now I understand why havenwood is looking at the source
<havenwood>
I guess Bundler::Dependency doesn't actually have a homepage. But yeah, close to that.
<mon_>
would like to have guidance on this.
<gabord>
havenwood: Didnt someone say here you shouldnt spoonfed me?
<mon_>
fyi: i am using ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux-gnu]
<shevy>
mon_ you must install cinch; gem install cinch, if you are lucky it will work
<havenwood>
gabord: That was my silver platter. (Since it's actually not in the docs and I feel bad.)
<mon_>
shevy: ok will try it
<havenwood>
gabord: Anyways, learn Pry. Study what jhass showed!
<havenwood>
gabord: Also I didn't run the code. It's close though. ;)
Cust0sLim3n has quit [Max SendQ exceeded]
<jhass>
gabord: is this all a huge fucking xy-problem? You can install an applications dependencies to a local site dir with bundle install --deployment or bundle install --path vendor/bundle
<havenwood>
Yeah, I don't know why we're doing all this. :O
<gabord>
havenwood: The only problem i have with pry is that its command line as i understand that.
mleung has joined #ruby
<gabord>
Im trying to create wrapper files for gems, but i need the deps.
<mon_>
my friend told me, he already installed the RMagick
<shevy>
mon_ huh
<gabord>
shevy: Taught you meant me.
<[k->
so only gabord should be on irc?
<[k->
thought*
al2o3-cr has joined #ruby
<shevy>
mon_ well "gem install rmagick" but I am not sure why you need it, also you may need imagemagick, which is non-ruby, before you can use rmagick
<shevy>
does this memebot draw something?
<mon_>
shevy : its the dependencies of irc bot
<mon_>
shevy : yes
<jhass>
mon_: does gem list show rmagic?
<shevy>
I see; in that case you must install rmagick
<mon_>
can u guys advice me what i need to tell the admin (i want to ask another shell provider) to install the dependencies and what other things need to be reminded of
leonmaia has joined #ruby
<shevy>
mon_ see the good side - once you have imagemagick working, it'll be trivial from this point
jenrzzz has quit [Ping timeout: 244 seconds]
christiandsg has joined #ruby
<jhass>
not upfront no, I figure these kind of stuff out as I go reading error messages
<mon_>
<+robdrake> the libmagickcore-dev and libmagickwand-dev are installed
<mon_>
<+robdrake> thank jhass from your sysadmin for me for telling you what packages you need
Pupeno has quit [Remote host closed the connection]
NotConnorM has joined #ruby
<mon_>
ok bot is running
<[k->
or channels: <new line> - "#ruby"
<mon_>
but it didn't try to join #ruby
<jhass>
with the - indented by two spaces towards channels:
Pupeno has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
<NotConnorM>
what is the best way to use your ruby and rails skills to redesign a bunch of white supremacist sites? i'd like to make them look pretty because right now they're awful and could this be a good thing to show on my portfolio?
rbennacer has quit [Remote host closed the connection]
ssd7 has joined #ruby
Pupeno has quit [Remote host closed the connection]
kubunto has quit [Quit: nothing is true, everything is permitted]
howdoi has quit [Quit: Connection closed for inactivity]
<mon_>
ah the bot is connected but it didn't join the channel
<jhass>
!mute NotConnorM racism is not welcome here, go home
SenpaiSilver has quit [Quit: Leaving]
<jhass>
mon_: try
<jhass>
channels:
<jhass>
- "#ruby"
<[k->
maybe remove the #
<jhass>
the spaces are important
NotConnorM has left #ruby [#ruby]
<jhass>
[k-: not inside quotes, no
bb010g has quit [Quit: Connection closed for inactivity]
ConnorM has joined #ruby
<[k->
unless the bot will auto insert the #
<havenwood>
!mute ConnorM
ConnorM has left #ruby [#ruby]
<apeiros>
lol
<mon_>
eggMeme
<mon_>
yeah still not joining
leonmaia has joined #ruby
<mon_>
maybe got hidden tips or tricks that the dev forgot to state in his readme
candicecolored has joined #ruby
<mon_>
haha
<havenwood>
!mute candicecolored
<jhass>
does it have any output?
candicecolored was banned on #ruby by jhass [jhass]
candicecolored has left #ruby [#ruby]
<mon_>
yeah. it is in verbose mode
<mon_>
which i can see the bot connecting to the server
ehth77 has joined #ruby
jeadre has quit [Remote host closed the connection]
<mon_>
ahh is it because this channel require registered nickname?
rehat has quit [Read error: Connection reset by peer]
<mon_>
i renamed the example to be config.yml
<jhass>
mon_: look at my example again
<jhass>
you have to add two spaces before -
<browndawg>
Hi, trying to write a rakefile to compile haml/*.haml -> html/*.html and failing hard. Can someone take a look at this? https://pastee.org/gekep
DoubleAC has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<mon_>
ok
<browndawg>
it says it doesn't know how to build html/a1.html, so my .html => .haml rule is probably bad
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgutierrez1287 has joined #ruby
rbennacer has joined #ruby
kubunto has joined #ruby
<mon_>
jhass : same thing.
<jhass>
mon_: still /home/mon/memebot/vendor/bundle/ruby/2.2.0/gems/cinch-2.1.0/lib/cinch/bot.rb:390:in `-': no implicit conversion of nil into Array (TypeError ?
sarkyniin has joined #ruby
freerobby has quit [Quit: Leaving.]
<mon_>
jhass : yes. still have it
<jhass>
mon_: and ruby -ryaml -e "p YAML.load_file('config.yml')['channels']" prints "nil"?
<mon_>
do i need to stop first the bot?
<mon_>
and type that?
rbennacer has quit [Remote host closed the connection]
<jhass>
you can do it on a separate shell in the same directory, it doesn't matter either way
<mon_>
mon@robdrake:~/memebot$ ruby -ryaml -e "p YAML.load_file('config.yml')['channels']" prints "nil"
<mon_>
["#ruby"]
<jhass>
wait, what?
<mon_>
?
<jhass>
you copy pasted the prints "nil" or ?
rbennacer has joined #ruby
<mon_>
yes
<jhass>
so it actually works
<mon_>
ruby -ryaml -e "p YAML.load_file('config.yml')['channels']" prints "nil" <-- i typed this
<jhass>
hrm
<jhass>
ah, it's erroring on modes, not channels now, sigh
browndawg has quit [Ping timeout: 272 seconds]
jhack has quit [Quit: jhack]
<jhass>
idk what it's for, just removing it from config.yml should work though
theery has quit [Remote host closed the connection]
Rinzlit has quit [Ping timeout: 250 seconds]
<mon_>
so the conclusion is: i need to install ruby-dev and imagemagick libmagickcore-dev libmagickwand-dev ?
<jhass>
uh, the paste is probably already expired
<jhass>
it depends on what's already available on the system
<mon_>
ic
<mon_>
gem install --user-install bundler & run bundle install --deployment is the important thing right?
voltalio has joined #ruby
<jhass>
pretty much
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
<mon_>
ok thanks.
s00pcan has joined #ruby
<mon_>
gonna ask the admin to install it.
s00pcan has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
s00pcan has quit [Read error: Connection reset by peer]
hinbody has joined #ruby
Pupeno has joined #ruby
<shevy>
arup_r I'd assume it will come in late 2016
aspiers has joined #ruby
<kubunto>
i assume there is a way to install mysql gem on a raspberry pi yes?
s00pcan has joined #ruby
khebbie has quit [Remote host closed the connection]
s00pcan has quit [Read error: Connection reset by peer]
UtkarshRay has quit [Quit: Leaving]
grenierm has joined #ruby
kirun has joined #ruby
kadoppe has quit [Ping timeout: 272 seconds]
kadoppe has joined #ruby
bazbing80 has joined #ruby
darkf has quit [Quit: Leaving]
Mendenhall has quit [Ping timeout: 240 seconds]
<shevy>
all gems can be installed via gem install <name>
rbennacer has quit [Remote host closed the connection]
<shevy>
the majority of .gem files will be plain .rb files so it is essentially a copy-operation; a few may have to compile something like bindings to mysql in this case
<shevy>
so you may first have to ensure that mysql is working, and that the dev/.h files also exist
<mon_>
hmm..
<mon_>
need to find how to change the bot's identd
<bazbing80>
does anyone know how where rspec's "rspec" command comes from? I would have thought "rspec" would be a file in the rspec gem's bin directory? https://github.com/dchelimsky/rspec/tree/23e01f2e8cb886034b9b6ab0d87a9398284ed7e4/bin I also know this gem has been deprecated, but I can't find an rspec file in the bin directories of the current rspec gems
<bazbing80>
so where does the command "rspec <directory>" come from?
<cscheib>
but... from that error message... appears as though you're missing mkmf
voltalio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kubunto>
which means?
<cscheib>
install the mkmf gem
Cust0sLim3n has quit [Max SendQ exceeded]
<cscheib>
most likely.
<kubunto>
how long should the install take?
startupality has quit [Ping timeout: 244 seconds]
Cust0sLim3n has joined #ruby
<kubunto>
o cant find it
startupality has joined #ruby
<shevy>
kubunto I assume you use some debian based distribution
<kubunto>
yes
<cscheib>
looks like it should be in stdlib, weird
<shevy>
they make users unhappy by eliminating mkmf from the default install; you can install it back... let's see...
mjuszczak has joined #ruby
<cscheib>
apt-cache search mkmf
<kubunto>
ill look at it on my laptop later
eightfold has quit [Ping timeout: 246 seconds]
<cscheib>
then apt-get install the package
DCameronMauch has joined #ruby
DCameronMauch has left #ruby [#ruby]
<shevy>
aha
<shevy>
I have an old and possibly outdated variant... don't use that one, but I remember it worked for me years ago: aptitude install ruby1.9.1-dev
grenierm has quit [Quit: grenierm]
<kubunto>
was just hoping to get a good gem onto my machine
<cscheib>
ruby-all-dev
<cscheib>
apt-get install ruby-all-dev
<shevy>
the joy of finding out obscure names :)
<shevy>
\o/
<kubunto>
nope
<kubunto>
like i said, i give up
<kubunto>
my laptop should do much better anyway
<cscheib>
you haven't tried particularly hard. you're almost there.
<cscheib>
there're just differences between debian distros and versions
<cscheib>
which distro are you running
<kubunto>
ran down too many holes (not all of which i have mentioned)
<kubunto>
rasbian
autrilla has joined #ruby
<cscheib>
ah, yea, so (kinda) pure debian. I can only help so much there
profelm has quit [Read error: Connection reset by peer]
<cscheib>
I don't have any debian boxes to run stuff against
<shevy>
he sounds demotivated
<kubunto>
whole point was to get information because ruby is an ace at string interpolation
<kubunto>
this is correct
profelm has joined #ruby
mjuszczak has quit [Ping timeout: 264 seconds]
<cscheib>
ruby can be a PITA, I'm starting to find it's easier to just get RVM or similar and not use the system packaged rubies
<cscheib>
distros do too much crazy crap to the packages
<kubunto>
any different than python?
minimuffins has joined #ruby
christia_ has quit [Read error: Connection reset by peer]
<Papierkorb>
cscheib: depends on the distro
<Papierkorb>
ArchLinux doesn
christiandsg has joined #ruby
<Papierkorb>
't patch it
<kubunto>
today i realized that i dont even have pip on my pi
poli has quit [Ping timeout: 260 seconds]
<shevy>
kubunto I remember many years ago, a python developer complained
<shevy>
I don't know which part it was, but he said that distributions modify the default (in ruby, removing mkmf.rb by default is a good example), and in doing so, they destroy the possibility for a developer to have a reliably working python installation (by default)
<shevy>
I don't remember what part it was in python though, and it was like 10 years ago by now
<kubunto>
fair enough
dionysus69 has quit [Quit: dionysus69]
minimuffins has quit [Ping timeout: 255 seconds]
<kubunto>
i do like tho how ruby does mysql from the gem i found
<kubunto>
compared to python
mhib has quit [Remote host closed the connection]
lucyinthesky has joined #ruby
<shevy>
I haven't played much with mysql, I usually "do it right", then I go with postgreSQL or I be lazy and just use sqlite (for small databases only though)
eightfold has joined #ruby
<shevy>
I lately read that github is using mysql predominantly internally
<adaedra>
lot of people do.
chouhoulis has quit [Remote host closed the connection]
<kubunto>
is string interpolation going anywhere any time soon?
<atmosx>
shevy: since I'm using orms, truth to be told it's all dbs to me :-P
chouhoulis has joined #ruby
Contigi has joined #ruby
<atmosx>
cscheib: generally speaking, I avoid distribution-based rubies like the plague.
Swappticon has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 272 seconds]
<atmosx>
cscheib: rvm or rbenv or if I need to run a server, I install ruby manually.
<cscheib>
atmosx: I'm a relative newbie, so this is a recent revelation for me
jenrzzz has joined #ruby
lucyinthesky has left #ruby ["Leaving"]
einarj has joined #ruby
<cscheib>
atmosx: why wouldn't you use rvm on your server?
<atmosx>
cscheib: because it creates problems with init scripts and requires rvmsudo to run some gems.
<cscheib>
makes sense
<atmosx>
cscheib: I could find my way through all of this, but there's no reaosn to make my life complicated. Ruby (from source code) works awesomely well, init scripts work fine (at least with debian-derivatives) so...
BLuEGoD has quit [Remote host closed the connection]
Pupeno has quit [Quit: Leaving...]
<atmosx>
the only I use system's ruby is my FreeBSD server
<cscheib>
not a real fan of deploying server stuff directly from source... although with FPM, it'd be simple enough to package it
nanoz has quit [Quit: <3]
<atmosx>
cscheib: me either, but it's just one package and as I said it makes life way easier.
<adaedra>
atmosx: pkg or ports?
<cscheib>
yea - look into FPM, it'll package it right up for you, very simple
<adaedra>
it's ruby, not php
<adaedra>
:º
<atmosx>
adaedra: ports, I rarely use pkg.
Mia has quit [Read error: Connection reset by peer]
<cscheib>
fpm has nothing to do with PHP in this context
blue_deref has quit [Quit: Taking myself out of hear.]
bruno- has joined #ruby
jeadre has quit [Remote host closed the connection]
jeadre has joined #ruby
eightfold has quit [Ping timeout: 246 seconds]
Jackneill has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 265 seconds]
einarj has quit [Remote host closed the connection]
last_staff has joined #ruby
mon_ is now known as huhdtiijcf
huhdtiijcf is now known as mon_
iceden has quit [Ping timeout: 264 seconds]
northfurr has joined #ruby
BLuEGoD has joined #ruby
NeverDie has joined #ruby
hifriends has joined #ruby
<hifriends>
Im having some trouble with this. In my gemfile how do I say id like a version 3 or rails and it can be any version of 3 but not 4.x ? gem 'rails', '~> 3' ?
leonmaia has joined #ruby
mrtg9970 has joined #ruby
mrtg9970 has quit [Max SendQ exceeded]
juanpablo_ has joined #ruby
laurentide has quit [Ping timeout: 244 seconds]
laurentide has joined #ruby
pandaant has joined #ruby
<shevy>
cscheib cool, I just checked that out... did not know it exists
<shevy>
I had many years ago wanted to write a package-agnostic package manager in ruby; sorta gave it up
cellmaker has joined #ruby
pawnbox has quit [Remote host closed the connection]
<jhass>
hifriends: ~> 3.0
juanpablo_ has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
<cellmaker>
Greetings. I would like to Benchmark an entire script but am not grokking how one does that. Can anyone elucidate? Thx in advance
<jhass>
hifriends: ~> a.b.c is >= a.b.c, < a.b+1.0, thus ~> a.b is >= a.b, < a+1.0
<hifriends>
jhass: thanks, trying that. becuase what im doing is saying only 3 with out the .X
ddrmanxbxfr_pc has joined #ruby
<jhass>
cellmaker: if it's long running enough, time should get you into a rough category and startup time or warmup shouldn't be significant
northfurr has joined #ruby
<jhass>
you'll have a fairly high variance but it should show the ballpark
yfeldblum has joined #ruby
<cellmaker>
So I should just initiatize some variable with a time stamp, do the same at the end, and then subtract? (not using benchmark, I take it)
Swappticon has joined #ruby
<cellmaker>
initialize, not ‘tize
<jhass>
I'd just time ruby foo.rb really
<jhass>
that said without knowing anything about your script and what you want to compare it to
<jhass>
and in which runtime category it is in the first place
mjuszczak has joined #ruby
chichou has joined #ruby
<jhass>
(if you want better advice provide all that)
<cellmaker>
I’m just trying to compare different simple algorithms on determining prime numbers — just for learning Ruby.
jessefurmanek has joined #ruby
<jhass>
so just put them each into a method and use benchmark-ips then?
<cellmaker>
So I guess I’m not following when you say “time” (e.g.) primes.rb
<jhass>
when you said "entire said" I imagined some 500+ loc stuff running 10s-1h
<jhass>
er, "entire script"
mjuszczak has quit [Client Quit]
<cellmaker>
Sorry. These are very short scripts. Part of this is curiosity and part is just trying to figure out how to do new things/add functionality. Anyway, I kept looking at benchmark docs but haven’t quite understood how to turn an .rb script into a measurable thing.
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nofxx has joined #ruby
jessefurmanek is now known as messysaurus
leonmaia has joined #ruby
<jhass>
don't
<jhass>
not in that runtime category
<jhass>
the differences in startup can wreck your benchmark already
<jhass>
as said, put each of your algos into a method
<jhass>
then check benchmark-ips' readme
pen has quit [Remote host closed the connection]
pen has joined #ruby
<cellmaker>
I’ll give that a shot and see what happens. Many thanks for the guidance, jhass
mjuszczak has joined #ruby
hifriends has quit [Quit: Page closed]
yqt has joined #ruby
mjuszcza_ has joined #ruby
gambl0re has quit [Ping timeout: 250 seconds]
arup_r has quit [Quit: Leaving]
messysaurus has quit []
messysaurus has joined #ruby
gambl0re has joined #ruby
pen has quit [Ping timeout: 244 seconds]
mjuszczak has quit [Ping timeout: 240 seconds]
Rutix has joined #ruby
Rutix has joined #ruby
ohaibbq has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
mjuszcza_ has quit [Client Quit]
tubuliferous_ has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
northfurr has quit [Quit: northfurr]
lucyinthesky has joined #ruby
houhoulis has quit [Remote host closed the connection]
chichou has quit [Remote host closed the connection]
grenierm has joined #ruby
northfurr has joined #ruby
symm- has joined #ruby
leonmaia has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yeticry has quit [Read error: Connection reset by peer]