<bnagy>
Okasu: also, some Opera dev bitching, 4 years ago, about stuff that has nothing to do with your problem does not support your case
<erikh>
pro tip: all imap implementations are broken
<erikh>
in subtly different ways; the spec is a colossal turd
<erikh>
you used to be able to send exchange into a tailspin with certain search queries
<erikh>
ok. maybe UW imapd isn't broken
<imperator>
my experience with imap is that it fucking sucked
<Okasu>
erikh: i'm noticed that :)
<erikh>
Okasu: if you can use pop3 for this task, it's a *much* simpler spec and usually isn't broken.
<imperator>
gem search -r imap :)
andrewhl has quit [Remote host closed the connection]
<erikh>
imperator: net/imap is in core, but it's little more than an evented shim around the protocol last I checked
<erikh>
err, s/core/stdlib/
<Okasu>
erikh: i
<Okasu>
yeah, but i cant use it for this task :(
<erikh>
ah, phooey.
<erikh>
imperator: oh you might dig this, a friend told me a bunch of board games are available on the ipad, multiplayer too; puerto rico, carcassonne, settlers, a few others that I didn't recognize.
<imperator>
erikh, yep, i'm aware :)
<erikh>
ah, cool
rippa has joined #ruby-lang
<imperator>
ipad is quickly becoming a board gaming platform
<bnagy>
*bored
<erikh>
yeah, I'm excited at the prospect of playing with my old gaming buddies again
acyed has quit [Remote host closed the connection]
<erikh>
seeing as we're all spread out these days.
* imperator
throws a d6 at bnagy
<erikh>
heh
<bnagy>
Okasu: why can't you use pop3, btw?
<erikh>
yeah, I saw some crazy scrabble game where you held your tiles on an iphone
<erikh>
imperator: i'll check those when i'm off my work comp
somethinYellow has quit [Quit: Computer has gone to sleep]
<Okasu>
bnagy: because pop doesn have SEARCH command, and i can't afford to get every mesage in a box every time i check for income
<imperator>
erikh, the latter two are more for live play
<bnagy>
Okasu: but you only need to check for stuff newer than last command
<imperator>
though brettspielwelt's interface is pretty awful; definitely recommend yucata.de if it has the games you prefer
<bnagy>
Okasu: you could just have a STAT loop, no?
<Okasu>
bnagy: to check i need get all uidl then store them somehow, then get all messages and theck uid of ech message to fin new
<Okasu>
uh, i'm gettig sleepy, sorry
<Okasu>
for mistakes
<bnagy>
you don't need to get all messages
<imperator>
erikh, working? at this hour?
<erikh>
imperator: unfortunately yes
<bnagy>
and if the pop3 server supports TOP that's even better
<erikh>
I've been working since 5:30am (it's 9:30pm now)
<Okasu>
bnagy: so how can find messages that contains cmd?
<bnagy>
worst case, retr all messages that are new sine your last check
<bnagy>
which is not going to be many
<bnagy>
best case, TOP all new messages
<Okasu>
bnagy: now i'm check subject, how can i do it with pop without retr all - i don't know
<bnagy>
like I said, you only need to retr NEW messages
<bnagy>
worst case
<Okasu>
bnagy: how can i check which message is new or wich is not? fetch uids of all, then fetch it again, then fetch all messages and check each uid to find new uid
<bnagy>
that's one (retarded) way
<Okasu>
:)
<bnagy>
or you could just cache the number of messages from stat
<bnagy>
or you could just check messages from the tail end until you find the messages that was previously the newest
<bnagy>
if we're assuming that nobody else is deleting pop3 messages from under our nose then the first way should work
<bnagy>
I run that, send an email to my gmail, it shows up (once, cause then it's seen after that)
poga has joined #ruby-lang
<Okasu>
hm, no, something wrong with it, i should think about it later, i can't now
<Okasu>
good night
<bnagy>
:>
poga has quit [Remote host closed the connection]
aprimadi has joined #ruby-lang
kitallis has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
seoaqua has joined #ruby-lang
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
mistym has quit [Remote host closed the connection]
timbleck has joined #ruby-lang
Boohbah has quit [Remote host closed the connection]
Z33K|Lux has quit []
denysonique has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
kyrylo has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
brianpWins has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby-lang
qwerxy has joined #ruby-lang
savage- has quit [Remote host closed the connection]
<youngin>
Good morning!
<youngin>
I'm trying to get this script to export some SQLite data into PostgreSQL - https://gist.github.com/2887228 - but I'm getting: undefined method `to_url' for nil:NilClass (NoMethodError) - anybody know what's wrong?
srbartlett has quit [Remote host closed the connection]
srbartlett has joined #ruby-lang
zz_chrismcg is now known as chrismcg
srbartlett has quit [Ping timeout: 245 seconds]
<youngin>
bnagy: it can't find my 2012-NN-NN.sqlite files or the name of the database?
<youngin>
and forgive me for asking such stupid questions - but will this script export the sqlite data to a postgresql dump file? or attempt to connect to a postgresql database of the same name as the sqlite database?
<youngin>
oh wait i dont have a .pgpass file
Asher has quit [Read error: No route to host]
sora_h is now known as s0ra_h
toretore has joined #ruby-lang
Criztian has joined #ruby-lang
vmoravec has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
<imperator>
i dunno about twitter, too easy to fire off nasty stuff at drunken hours
<imperator>
i think the us marines actually banned it
<shevy>
what about facebook
<shevy>
is that banned as well?
<imperator>
mm, might be, depending on your clearance level
<imperator>
but that has a functional use, keeping in touch with family members, whereas twitter is just dumping random thoughts whenever they occur
<imperator>
which for some people is like, 10 times per hour
aprimadi has quit [Quit: Konversation terminated!]
dasibre has joined #ruby-lang
<zzak>
like its their job
<imperator>
anyhoo, what's up in ruby-land?
<zzak>
you ever get that ticket resolved?
<imperator>
which?
<zzak>
the zlib one
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
zmack_ has joined #ruby-lang
zmack has quit [Read error: Connection reset by peer]
yannis has quit [Quit: yannis]
<imperator>
obviously i forgot to take my geritol this morning, because i don't remember it now
<imperator>
so....i must have resolved it ;)
<imperator>
hm, i'm having one of those "how did this ever work?" moments...
Asher has quit [Quit: Leaving.]
jperry2 has joined #ruby-lang
TheHunter_1039 has joined #ruby-lang
<rue>
Those
dasibre has quit [Remote host closed the connection]
asahi has joined #ruby-lang
<imperator>
well, at least the car is undamaged, so that's something
<rue>
Oh. It probably had an internal combustion engine at some point
<imperator>
rue, had hail storm last night
<imperator>
maybe i should have paid more attention to that ticket that addresses the very issue i'm befuddled by now
<zzak>
zlibwapi?
<imperator>
zzak, i just renamed the dll file i think
dabradley has quit [Ping timeout: 252 seconds]
Asher has joined #ruby-lang
dabradley has joined #ruby-lang
kain has quit [Quit: Sto andando via]
bryancp has joined #ruby-lang
krz has quit [Quit: krz]
gix has quit [Ping timeout: 244 seconds]
jinnko has left #ruby-lang [#ruby-lang]
zz_wasnotrice is now known as wasnotrice
srbartlett has quit [Read error: Connection timed out]
toertore has joined #ruby-lang
srbartlett has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
wasnotrice is now known as zz_wasnotrice
gix has joined #ruby-lang
toretore has quit [Ping timeout: 246 seconds]
dalekurt has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
agile has joined #ruby-lang
woollyams has joined #ruby-lang
dabradley has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
srbartlett has joined #ruby-lang
hynkle has joined #ruby-lang
Asher has quit [Quit: Leaving.]
dabradley has joined #ruby-lang
stardiviner has joined #ruby-lang
enebo has joined #ruby-lang
srbartlett has quit [Ping timeout: 245 seconds]
dfr|mac has joined #ruby-lang
virunga has joined #ruby-lang
rippa has quit [Quit: derp herp]
kain has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
Hakon|mbp has quit [Quit: Leaving...]
jxie has quit [Quit: leaving]
dtang has quit [Quit: dtang]
voker57 has quit [Read error: Connection reset by peer]
brushbox has quit [Quit: Leaving.]
WillMarshall has quit [Quit: Computer has gone to sleep.]
dv310p3r has joined #ruby-lang
hakunin has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.6]
<andrewvos>
Anyone say anything funny while I was gone?
<judofyr>
nope
<Defusal>
this is #ruby-lang not #funny-lang :P
<andrewvos>
Clearly.
<judofyr>
and not #ruby-fun either
<imperator>
no fun allowed here
<rue>
Wait what?
scampbell has joined #ruby-lang
charliesome has quit [Ping timeout: 244 seconds]
<imperator>
alright andrewvos a joke just for you
<imperator>
A naked blonde walks into a bar with a poodle under one arm and a two-foot salami under the other.
<shevy>
SALAMI ABUSE!!!
<imperator>
She lays the poodle on the table. Bartender says,'I suppose you won't be needing a drink.'
<imperator>
Naked lady says
imperator has left #ruby-lang ["Leaving"]
<erikh>
oh man
<erikh>
well played.
<shevy>
you know
<shevy>
I can imagine the bartender... the poodle... and the naked blonde..
<shevy>
but that salami is really giving me a hard time...
<apeiros_>
oh the tension!
futurechimp has quit [Quit: Leaving]
toertore has quit [Ping timeout: 245 seconds]
<erikh>
holy tired
<erikh>
I should have just called in sick today
<andrewvos>
Great, a non-joke.
<erikh>
he got you good
<pbjorklund>
And here I was thinking that sending all parts/joins to another window would never be a problem. I just missed the punchline of a punchlineless joke.
<shevy>
it has something to do with the salami
<judofyr>
and what a salami!
<andrewvos>
shevy: It has no punchline
<shevy>
yeah but most punchlines in jokes are horrible anyway
nevynxxx has joined #ruby-lang
<shevy>
I now have to google for salami jokes ... :(
<theoros>
without doing something like running nohup or whatever
tRAS has joined #ruby-lang
<Defusal>
if the string contains spaces, its executed as a shell command
<matled>
theoros: you want to run the command as a kind of "daemon" process?
<theoros>
matled: basically, yeah.
<theoros>
Defusal: ah, i've been trying to do that but it's been giving me issues
<theoros>
i'll try again
<Defusal>
theoros, doing that is not suggested
<Defusal>
a child process should always have a parent
<theoros>
well it can be a process with a parent of pid 1? :)
<Defusal>
but if you really dont care what happens to the child after its spawned (you don't need to track it or worry about killing it later), you can detach it
<theoros>
i'm keeping track of the pid in a file
<Defusal>
you will also need to trap any signals so that it doesnt get killed if you send those signals to your parent
<judofyr>
I think the double-fork + setsid-trick is useful here
judofyr has quit [Remote host closed the connection]
<theoros>
if i use Process.spawn, aren't i going to have to do more work to get the > /tmp/foo 2>&1 behaviour?
<Defusal>
pids are reused, and i have found they are even reused for threads in other processes, not only processes, so you can check if a pid is alive, but it may belong to another process
<theoros>
seems :out is being ignored?
bfreeman has quit [Quit: bfreeman]
<Defusal>
so you'd then have to check what command the pid was started with and compare that to your application to make sure the pid is your application and not some other process or thread (on *nix)
<Defusal>
and that is messy
<Defusal>
you can try :err=>[:child, :out]
kitallis has quit [Quit: Computer has gone to sleep.]
<Defusal>
just read though the docs for the method, they are very long and complete
<Defusal>
it is pretty flexible
<Defusal>
again, i'd rather suggest you write a long living daemon to spawn and watch such a process
<theoros>
err: [:child, :out] works
<theoros>
i'm sure it would be best to write something to watch this process but, a) this is working, and b) the process isn't running for that long
<theoros>
so as long as its pid in a file can be reasonably used to kill it with TERM, that's fine
wasnotrice is now known as zz_wasnotrice
<Defusal>
ok
<theoros>
thank you for the help :)
<theoros>
i wish i understood the process model way more. one day.
thone_ has quit [Read error: Connection reset by peer]
engel has joined #ruby-lang
<Defusal>
no problem
thone has joined #ruby-lang
jacobwg has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
arooni-mobile has joined #ruby-lang
engel has quit [Quit: bye]
engel has joined #ruby-lang
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
ruurd has joined #ruby-lang
bradland has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
erics has quit [Ping timeout: 240 seconds]
somethinYellow has joined #ruby-lang
jacobwg has quit [Ping timeout: 245 seconds]
msaffitz has joined #ruby-lang
dasibre has joined #ruby-lang
Skif has joined #ruby-lang
somethin1ellow has joined #ruby-lang
somethinYellow has quit [Ping timeout: 245 seconds]
<Defusal>
the possibility of a race condition makes me depressed
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Dreamer3 has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
chrismcg is now known as zz_chrismcg
savage- has joined #ruby-lang
butchanton has joined #ruby-lang
<frem>
I forked sinbook to make it run on JRuby, and added the git repo to my Gemfile. But sinatra-authentication, which depends on sinbook, can't find it. What am I doing wrong? https://gist.github.com/59082b5ee88770f20b62
gsav has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
qwerxy has quit [Ping timeout: 244 seconds]
S2kx has joined #ruby-lang
dtang has joined #ruby-lang
S1kx has quit [Ping timeout: 256 seconds]
somethin1ellow has quit [Quit: Computer has gone to sleep]
cdt has quit [Quit: Ex-Chat]
bradland has quit [Quit: bradland]
pmade has joined #ruby-lang
<pmade>
What happened to the xmp utility and the IRB::XMP library in Ruby 1.9.x?
dtang has quit [Quit: dtang]
andrewhl has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
tRAS has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.6]
ruurd has quit [Ping timeout: 248 seconds]
lsegal has joined #ruby-lang
Constant_ has joined #ruby-lang
akira989_ has joined #ruby-lang
ConstantineXVI has quit [Read error: Connection reset by peer]
gsav has quit [Read error: Connection reset by peer]
akira989 has quit [Ping timeout: 252 seconds]
gsav has joined #ruby-lang
flak has joined #ruby-lang
flak is now known as Guest86477
rippa has quit [Ping timeout: 244 seconds]
bfreeman has joined #ruby-lang
funcuddles has joined #ruby-lang
Guest86477 has quit [Client Quit]
rippa has joined #ruby-lang
<funcuddles>
is there a way to include File class with mruby?
<funcuddles>
or is there a better place to ask mruby questions?
<Defusal>
i didn't even know the source had been made public
<erikh>
a while ago, there are even some libraries for it now.
<Defusal>
it had not yet been the last time i checked
<erikh>
@yukihiro_matz has a lot of mruby tweets.
<Defusal>
that must have been just before it was released
<Defusal>
looking at commit dates
<Defusal>
pretty cool
<erikh>
indeed. looking forward to some hacking on it.
* zzak
already has a commit in mruby
<zzak>
:D
<erikh>
ha nice
<erikh>
doc commit?
<zzak>
mattn is doing some neat stuff with it
<erikh>
he published a mysql driver recently, didn't he?
<funcuddles>
i'm also having problems trying to test writing some bytecode and reloading it, i'm using mrb_load_irb/mrb_dump_irep and while it seems to write to file fine and execute when i load it, nothing happens (code is supposed to print hello world)
<funcuddles>
not sure if i'm using the correct apis though, the doc is kinda sparse
Criztian has quit [Remote host closed the connection]
brunocoelho has joined #ruby-lang
qwerxy has joined #ruby-lang
gregmoreno has joined #ruby-lang
scampbell has quit [Ping timeout: 248 seconds]
brunocoelho has quit [Remote host closed the connection]
zz_wasnotrice is now known as wasnotrice
dreieins has joined #ruby-lang
loincloth has joined #ruby-lang
<loincloth>
howdy
<loincloth>
is zlib a good way to decompress zip files?
qwerxy has quit [Quit: offski]
neocoin has quit [Remote host closed the connection]
<loincloth>
or am i on the wrong track there
<Defusal>
what OS?
neocoin has joined #ruby-lang
<matled>
loincloth: I'd guess zlib is too low level to access zip files. rubyzip looks promising
<loincloth>
mac for dev, ubuntu probably for production
<loincloth>
i found some references to rubyzip, yeah.. something called ZipFile too
<Defusal>
on ubuntu, you can sudo apt-get install unzip
<matled>
do you want to unpack the zip file into the filesystem or read files from the zip file?
Noah_AT has joined #ruby-lang
<loincloth>
just unpack to filesystem
<Defusal>
i just have ruby spawn the unzip utility
solars has joined #ruby-lang
<loincloth>
sure
<Defusal>
for mac, theres probably also an unzip util
<loincloth>
yeah
<loincloth>
could do that.. guess i tend away from shelling out if i can, but not sure that's necessary here
<matled>
in this case I don't see a problem using an external utility, just make sure the files end up in the correct place and don't overwrite existing files
<Defusal>
i feel the same way, but forking a process isnt very expensive, its not worth using a lib for that in my opinion
<Defusal>
yup
<matled>
i.e. create a new directory and let unzip extract all files to this directory
<loincloth>
sure sure.. thx for feedback you two
<Defusal>
yeah, i'd use /tmp/some_new_dir
soahccc is now known as soahccc`
IPGlider has joined #ruby-lang
neocoin has quit [Ping timeout: 265 seconds]
Skif has quit [Remote host closed the connection]
Skif has joined #ruby-lang
scampbell has joined #ruby-lang
havenn has quit [Remote host closed the connection]
S2kx has quit [Ping timeout: 244 seconds]
Hakon|mbp has joined #ruby-lang
funcuddles has quit [Remote host closed the connection]
havenn has joined #ruby-lang
scampbell has quit [Ping timeout: 248 seconds]
Codif has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has joined #ruby-lang
akira989_ has quit [Remote host closed the connection]
<Defusal>
im actually pretty happy with the DRb-type interface i've built so far
<Defusal>
theres one or two things i need to do some more thinking about, but i've made a lot of progress today
<matled>
what compiled programming languages are similar to ruby? for example supporting something similar to blocks. sometimes I miss a programming language performance-wise closer to C but offering a few more of the features of ruby.
<Harzilein>
"A secondary reason for its existence was to give me an excuse to play with Apple's anonymous function extension to C. So, given that, it will only compile on OS X."
<Harzilein>
that statement is not true, i managed to build it with llvm on linux :)
<shevy>
though I guess, big old heavy languages like java can't really evolve much
seoaqua has quit [Quit: Leaving]
toot_ has joined #ruby-lang
fserb has joined #ruby-lang
scampbell has joined #ruby-lang
<Defusal>
frem, C# and Java are no better or worse than each other, they are both verbose C-style languages that come with huge bloated frameworks
saLOUt has joined #ruby-lang
kyrylo has quit [Quit: WeeChat 0.3.7]
slyphon has joined #ruby-lang
qpingu has joined #ruby-lang
<Defusal>
i really wouldn't use either, but if i absolutely had to, it would probably be java, since that has no ties to Microsoft
felipe__ has joined #ruby-lang
fserb has quit [Read error: Connection reset by peer]
fserb has joined #ruby-lang
<zzak>
all bias aside, c# is a really nice language
<Noah_AT>
I am installing RVM and It seems it installed successfully but immediately tried to automatically install yaml-0.1.4 and ruby-1.9.3-p194. Both of these failed and returned errors. I am running a fresh install of Lion and need help troubleshooting this, thanks. http://pastebin.com/Cbp3jDRa
Codif has quit [Remote host closed the connection]
<Defusal>
good luck using it without .Net
<frem>
Defusal: you're doing that thing with the bias again. :)
<Defusal>
no
<Defusal>
.Net is a piece of shi
<Defusal>
i never said C# was a bad languages (many people think it is not)
<Defusal>
Noah_AT, try reading the errors... "configure: error: no acceptable C compiler found in $PATH"
imajes has quit [Excess Flood]
<Defusal>
im going to assume Lion is a OSX distro, in which case i have no clue what you need to install for build utils
<deryl>
which means once again someone hasn't read the rvm website
<deryl>
and just C&P'd shit to their shell
<Defusal>
on linux the package is called build-essential
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
havenn has quit [Remote host closed the connection]
imajes has joined #ruby-lang
<horus_plex>
Defusal: install xcode
<Defusal>
horus_plex: @Noah_AT
<horus_plex>
ah
<horus_plex>
Noah_AT: ^^
scampbell has quit [Ping timeout: 246 seconds]
pmade has left #ruby-lang ["rcirc on GNU Emacs 24.1.50.1"]
<horus_plex>
Noah_AT: specifically, "command line tools"
scampbell has joined #ruby-lang
benanne has joined #ruby-lang
<horus_plex>
Noah_AT: it'll install by default with a standard xcode install. Xcode is now in the app store
<Noah_AT>
oh ok, cool.
havenn has joined #ruby-lang
<horus_plex>
Noah_AT: personally, I user homebrew to install things on OSX
<Noah_AT>
horus_plex so install Xcode and the errors should resolve? I read the errors, I just wasn't sure how to handle them
<Noah_AT>
horus_plex: as opposed to?
<horus_plex>
Noah_AT: That was my next question: How are you installing these? Macports? Source?
<Noah_AT>
horus_plex: do you mean to use homebrew to install the exact packages i need or to install Xcode?
rindolf has joined #ruby-lang
<rindolf>
Hi all.
ryanf has joined #ruby-lang
<horus_plex>
Noah_AT: My bad. I see now. So you're compiling from source?
<Noah_AT>
horus_plex: I used the terminal to install RVM and I was planning on continuing to use it. I understand a lot, but I'm getting a new grip on terminal installs and stuff.
robotmay has joined #ruby-lang
<Defusal>
feels great when everything actually works properly after a long day :)
<horus_plex>
Noah_AT: using a external package system will make your life much easier
<horus_plex>
Noah_AT: which is BTW, heavily written in ruby. ;)
hynkle has quit [Read error: No route to host]
hynkle has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<horus_plex>
Noah_AT: But to use homebrew, you need to install xcode
<horus_plex>
Noah_AT: since some packages will need to be compiled.
yannis has quit [Quit: yannis]
felipe__ has quit [Ping timeout: 265 seconds]
akira989 has joined #ruby-lang
<horus_plex>
Noah_AT: the great thing about homebrew is that you aren't installing anything in your system directories.
<horus_plex>
Noah_AT: you can install new stuff without using "sudo"
<horus_plex>
Noah_AT: which is a no-no to use as far as I'm concerned when it comes to people new at the terminal
<tubbo>
homebrew is the shit
<horus_plex>
Noah_AT: I'll be around. so just holla
<tubbo>
horus_plex: installing stuff to system ONLY makes more sense to me than mixing system/user, since it requires a knowledge of how the PATH variable is read.
jperry2 has quit [Ping timeout: 244 seconds]
<Noah_AT>
horus_plex: thanks. I'll get to it
nofxxx has joined #ruby-lang
nofxx has quit [Ping timeout: 256 seconds]
<tubbo>
i don't think newbies understand $PATH that well, i know i didn't..
jperry2 has joined #ruby-lang
<horus_plex>
tubbo: Yeah. though I feel it's a lesser evil than having them liter their system directories and running "sudo" all willy-nilly
<shevy>
the biggest problem is to assume that newbies are dumb
<shevy>
hmm how is homebrew installing things when they dont install into /usr prefix?
<horus_plex>
shevy: everything is in /usr/local/Cellar
<shevy>
ah I see
<horus_plex>
shevy: binaries are sym linked from local/bin to the Cellar
qwerxy has joined #ruby-lang
<horus_plex>
I don't think its an issue of newbies being considered "dumb" but I'm sure everyone here at some point had to learn through experience
hynkle has quit [Ping timeout: 248 seconds]
<horus_plex>
most people want to get stuff up and running so they can move on. Going through all the details of evenything could lead to a billion tangents and prevent people from reaching their goals
* rindolf
is yak-shaving trying to build ruby packages for Mageia Linux .
yannis has joined #ruby-lang
Hakon|mbp has quit [Ping timeout: 240 seconds]
gja has quit [Quit: This computer has gone to sleep]
<shevy>
hehe
<shevy>
poor yak
<loincloth>
summer yak
hynkle has joined #ruby-lang
wasnotrice is now known as zz_wasnotrice
gouthamvel has joined #ruby-lang
fayimora has joined #ruby-lang
yannis has quit [Quit: yannis]
scampbell has quit [Ping timeout: 246 seconds]
qwerxy has quit [Quit: offski]
<Noah_AT>
horus_plex: do you install yaml and ruby with homebrew or with rvm?
zmack has joined #ruby-lang
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Dreamer3 has joined #ruby-lang
wmoxam has joined #ruby-lang
<horus_plex>
Noah_AT: yes. I did. it installed ruby 1.9.3p194
havenn has quit [Remote host closed the connection]
fserb has quit [Quit: ttyl]
<Noah_AT>
horus_plex: automatically?
fserb has joined #ruby-lang
retro|cz has joined #ruby-lang
<Noah_AT>
horus_plex: isn't there residue in a .rvm directory from when it tried and failed to install yaml and ruby 1.9.3-p194? What do I do with that when I install it via homebrew? Will rvm still let me manage what ruby version each project will be, or do i lose that?
<deryl>
rvm only allows you to control rvm installed rubies. beyond that it just lets you have access to the system's ruby if it has one installed
<deryl>
whatever ruby shows up when you do rvm use system
<deryl>
beyond that, no. if you didn't install it with rvm you can not manage that ruby version using rvm. even with system it just lets you export import gems. thats it
felipe__ has joined #ruby-lang
* tubbo
likes keeping system at 1.8, that way he knows when a gem isn't paying attention to RVM...
<Noah_AT>
deryl: 1.8.7
<deryl>
immaterial
scampbell has joined #ruby-lang
<Noah_AT>
horus_plex: I installed Xcode and got the same "no acceptable C compiler found in $PATH" error
havenn has joined #ruby-lang
Criztian has joined #ruby-lang
<tubbo>
Noah_AT: try using osx-gcc-compiler, it worked for me when ruby 1.9 compilation via LLVM (which is what comes with Xcode now) wasn't an option
<tubbo>
s/compiler/installer
<tubbo>
sorry :D
<tubbo>
it's a .pkg so it's easy to install
krohrbaugh has quit [Quit: Leaving.]
<Noah_AT>
tubbo: Ok, I just tried installing homebrew to install libksba, but it told me to run "brew doctor" and returned these errors: http://pastebin.com/pZ19LeA3
<Noah_AT>
tubbo: do i need to do a restart or something after installing Xcode?
<tubbo>
tubbo: you could try that...but again, osx-gcc-installer worked for me painlessly.
<tubbo>
i don't necessarily think trying to compile ruby with llvm and xcode is a good idea
<tubbo>
because there have been problems with it in the past...
scampbell has quit [Ping timeout: 252 seconds]
engel has quit [Quit: bye]
<Noah_AT>
ok, well now i have a homebrew install with errors (that i would like to fix) and ruby/yaml won't install (which your suggesting to fix with osx-gcc-installer
<horus_plex>
Noah_AT: whew. my bad. Got ambushed in my office
<Noah_AT>
horus_plex: no problem
<tubbo>
ohh ok
<horus_plex>
Noah_AT: run brew doctor
<tubbo>
Noah_AT: i think your "errors" stem from the fact that ruby isn't installed haha
<Noah_AT>
horus_plex: I did, check the pastie
<Noah_AT>
tubbo: I have 1.8.7 installed
<Noah_AT>
tubbo: its the system one
havenn has quit [Remote host closed the connection]
akira989 has quit [Remote host closed the connection]
havenn has joined #ruby-lang
<horus_plex>
Noah_AT: could you re-post. Not seeing the pastie containing the result from 'brew doctor'
<horus_plex>
Noah_AT: though when you install ruby (using: brew install ruby), you have to set your path to prepend the ruby bin directory
Goyo has joined #ruby-lang
<horus_plex>
Noah_AT: ah. So you did in fact install xcode using the Apple installers?
krohrbaugh has joined #ruby-lang
<Noah_AT>
yup, from the app store. I'm running the app now and already noticed it is continuing to install things. I may not have Command Line Tools installed
<Noah_AT>
horus_plex: Ok, Xcode is done and I saw nothing explicitly about Command Line Tools.
<Noah_AT>
horus_plex: ah, wait, I may need to install them manually, one sec
tRAS has quit [Quit: Mother, did it need to be so high?]
<tubbo>
xcode tools installs with xcode iirc
<tubbo>
but i think you can optionally not install xcode
<tubbo>
just the tools
<tubbo>
or at least you used to be able to
casey has joined #ruby-lang
<Noah_AT>
tubbo: Apparently I have to install the CLTools independently. I am doing it now.
casey has quit [Remote host closed the connection]
<Noah_AT>
tubbo: Its a dmg
<horus_plex>
Noah_AT: In the installer make sure "UNIX Development" is checked
<Noah_AT>
horus_plex: thanks, will do
Goyo has quit [Remote host closed the connection]
casey has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
akira989 has joined #ruby-lang
qwerxy has joined #ruby-lang
somethinYellow has quit [Quit: Computer has gone to sleep]
<Noah_AT>
horus_plex: Alright! Installed CLTools and brew doctor passed
<Noah_AT>
horus_plex: .. and… Yaml and Ruby installed successfully via rvm (which I like since everything is isolated and controllable)
gregmore_ has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
zmack has quit [Remote host closed the connection]
gouthamvel has left #ruby-lang [#ruby-lang]
mistym has quit [Remote host closed the connection]
<horus_plex>
Noah_AT: great!
somethinYellow has joined #ruby-lang
sepp2k has quit [Ping timeout: 246 seconds]
<Noah_AT>
horus_plex: , and Tubbo, Thanks for the help!
<tubbo>
np
gregmoreno has quit [Ping timeout: 248 seconds]
<horus_plex>
np
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
somethinYellow has quit [Read error: Operation timed out]
<Noah_AT>
So, now that I have Homebrew, but I am using rvm to manage my ruby versions, what should I use homebrew for? (My main desktop has fedora on it and I'm trying to get a grip on these things)
<horus_plex>
Noah_AT: Homebrew allows you to installed the lastet externally managed packages on OSX
robotmay has quit [Remote host closed the connection]
gsav has joined #ruby-lang
<horus_plex>
Noah_AT: many open source projects have to significantly patched before being useable on OSX
<Noah_AT>
oh, cool. Got it
<horus_plex>
Noah_AT: note that for ruby gems, you use the normal gem installer (gem install rails). Still no need to sudo
somethinYellow has joined #ruby-lang
<Noah_AT>
horus_plex: haha so basically stay away from sudo at all costs
akira989 has quit [Remote host closed the connection]
<tubbo>
Noah_AT: without brew, you'd have to compile everything yourself.
<tubbo>
that means...download the source, run ./configure, then run make/make install or whatever
<tubbo>
shit SUCKS and is error-prone
<Noah_AT>
haha got it
<Noah_AT>
good thing I'm all set then
<tubbo>
yeah you're fine
<horus_plex>
Noah_AT: not exactly. using sudo can have significant consequences if you're not careful. It's simon-says of the unix world
<tubbo>
sudo is totally necessary sometimes
UNIXgod has quit [Changing host]
UNIXgod has joined #ruby-lang
<tubbo>
like when you need to edit /etc/hosts
<Noah_AT>
haha yeah
<Noah_AT>
that I've done a few times
<horus_plex>
Noah_AT, tubbo: this is true.
<Noah_AT>
horus_plex: So, is "gem install rails" on a per-project basis
akira989 has joined #ruby-lang
Boohbah has joined #ruby-lang
<horus_plex>
Noah_AT: as far as I know, no. it'll call the gem binary from the Cellar. You'd have more experience using rvm than me ;)
<tubbo>
Noah_AT: rvm uses this thing called gemsets to manage multiple directories of gems
<Noah_AT>
tubbo: should I create a gem set that is "global"
<tubbo>
Noah_AT: it's basically a glorified automatic symlink tool. when you `cd` into your rails app it can load the gemset for that rails app, which also loads the correct ruby version
<tubbo>
Noah_AT: there already is one! `rvm gemset use global` to access it, then do `gem install ..` to install your packages
<tubbo>
they will be available everywhere that the current ruby version is
<Noah_AT>
haha
sepp2k has joined #ruby-lang
<tubbo>
so 1.9.3-p125's global gemset is different from 1.8.7's gemset
<Noah_AT>
tubbo: awesome, so that is how i go about installing rails
<Noah_AT>
tubbo: got it.
<tubbo>
Noah_AT: yeah what i like to do is keep some gems in global that i use everywhere: rails, capistrano, heroku, bundler and git_tracker
<tubbo>
Noah_AT: the way you set up gemsets to automatically be discovered is create an .rvmrc file in your project dir
gregmore_ has quit [Remote host closed the connection]
<tubbo>
then when you `cd` into it, the gemset/ruby will change
<Noah_AT>
tubbo: cool. Yeah I picked that up from this "How to Use RVM" cast I just watched. Really helpful
<Noah_AT>
tubbo: what does bundler do? I need that for rails right?
havenn has quit [Remote host closed the connection]
fserb has quit [Quit: ttyl]
spuk has quit [Ping timeout: 248 seconds]
felipe__ has quit [Ping timeout: 248 seconds]
rippa has quit [Ping timeout: 248 seconds]
jbwiv has quit [Remote host closed the connection]
toot_ has quit [Quit: Page closed]
tsou_ has joined #ruby-lang
qwerxy has quit [Quit: offski]
msaffitz has quit [Quit: Computer has gone to sleep.]
tsou has quit [Ping timeout: 245 seconds]
fserb has joined #ruby-lang
saLOUt has quit [Ping timeout: 265 seconds]
Rizzle has quit [Ping timeout: 245 seconds]
Carnage\ has quit []
qwerxy has joined #ruby-lang
rhodee has joined #ruby-lang
rhodee has left #ruby-lang [#ruby-lang]
enebo has quit [Read error: Connection reset by peer]
apeiros_ has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 0.3.8]
gregf has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
srbartlett has joined #ruby-lang
toretore has quit [Quit: Leaving]
s0ra_h is now known as sora_h
rindolf has quit [Quit: Leaving]
Noah_AT has left #ruby-lang [#ruby-lang]
seanstickle has joined #ruby-lang
Noah_AT has joined #ruby-lang
Noah_AT has left #ruby-lang [#ruby-lang]
sora_h is now known as s0ra_h
outoftime has quit [Quit: Leaving]
<erikh>
ugh
<erikh>
aws is such a shitpile sometimes
BigFatFatty has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
robotmay has quit [Remote host closed the connection]
<samuelkadolph>
erikh: Why's that?
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby-lang
s0ra_h is now known as sora_h
<rue>
samuelkadolph: Because they have heaped excrement
<samuelkadolph>
lol
cantonic has quit [Ping timeout: 244 seconds]
andrewhl has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
brushbox has joined #ruby-lang
dgs has joined #ruby-lang
vaelen has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
Jake232 has quit [Quit: Computer has gone to sleep.]
bfreeman has joined #ruby-lang
M4g1c5t0rM has joined #ruby-lang
<dgs>
not sure if yaml questions are okay for in here... but Im having a few issues trying to load a yaml file into a ruby array of hashes (that themselves contain an array of hashes)
<dgs>
I can do it verbosely (with each entry in the hash on seperate line), but it's going to be a huge file, so I'm trying to use the {hash: entry, like: this} format
<drbrain>
dgs: don't use colons
<drbrain>
ruby -rpsych -e 'p Psych.load "- { word: and, phrase: Today is hot and sunny}"'
<drbrain>
dgs: you want to use string keys, I promise
<dgs>
k
<Boohbah>
drbrain: what's wrong with symbol keys and new hash syntax?
<drbrain>
Boohbah: it's YAML, not ruby
<Boohbah>
ahh, excuse me then
<drbrain>
Boohbah: as a rule of thumb, if it's user data you probably want to stick with string keys
<drbrain>
it's faster than calling #intern on strings all the time
<Boohbah>
i see, thanks
<drbrain>
Boohbah: if it's configuration settings, symbols will be ever so slightly faster
stamina has joined #ruby-lang
<dgs>
drbrain: awesome. that works =)
<dgs>
thanks
<dgs>
string keys probably save a few hundred keystrokes when creating the yaml file anyways
<dgs>
versus a couple of extra quotes when referring them from ruby
<dgs>
so win-win =)
cantonic has joined #ruby-lang
fgomez has quit [Ping timeout: 245 seconds]
<dgs>
just out of curiousity though, could I have used the {:hash: format,..} style with symbols?
<dgs>
or do you need to drop back to the one record per line method?
<zenspider>
ruby -ryaml -e 'y :blah => 42'
<drbrain>
dgs: I am not a YAML expert, I just saw this: "did not find expected node content while parsing a flow node at line 1 column 4"
<erikh>
samuelkadolph: I'm doing this cache invalidation stuff with cloudfront, they throw an error if you do "too many API calls in a period of time"
<drbrain>
so I think there are restrictions on what the keys can be for "flow nodes"
<erikh>
samuelkadolph: the time between the ability to call looks to be about 5 minutes
<zenspider>
your a flow node
<erikh>
seriously. 5 minutes per API call.
<zenspider>
[sic]
<dgs>
ah, right. me neither apparently =)
<samuelkadolph>
erikh: Hmm, 5 minutes sounds very wrong. I would email them.
<drbrain>
zenspider: I'm a flow node what?
<zenspider>
exactly
<erikh>
samuelkadolph: nah this is documented behavior
fgomez has joined #ruby-lang
fgomez has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
fgomez has joined #ruby-lang
bryancp has joined #ruby-lang
BigFatFatty has left #ruby-lang [#ruby-lang]
s0ra_h is now known as sora_h
sandbags has quit [Read error: Connection reset by peer]
akira989 has quit [Read error: Connection reset by peer]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
akira989 has joined #ruby-lang
jperry2 has joined #ruby-lang
butchanton has quit [Quit: Leaving.]
countdigi has joined #ruby-lang
<countdigi>
is there a way to get around this w/out writing a function?
<countdigi>
slot = drc_name.scan(/-(.*)/)[0][0]
<countdigi>
the [0][0] part
<countdigi>
noob - i am sure in ruby there is a way
butchanton has joined #ruby-lang
<countdigi>
i think i am out of idiom
fserb has quit [Quit: ttyl]
<erikh>
what's wrong with the [0][0] there?
gsav has quit [Read error: Connection reset by peer]
<erikh>
you could use .first.first, but that's going to effectively do the same thing
<countdigi>
just looks too technical :-) lol
<erikh>
it's code
<erikh>
it's supposed to be technical
<countdigi>
yeah fair enough - normally there is a way to make it 'cleaner' but i guess some validation from another is a good enough answer :-)
<countdigi>
tx
<erikh>
anytime
<countdigi>
when i think of the bourne shell alternative i shudder ;-)
kain has quit [Quit: Sto andando via]
<erikh>
should be pretty easy with awk
<countdigi>
what is the first index in scan - for the line number?
<erikh>
so, scan creates subarrays for capture
<erikh>
s
<erikh>
you know, if you just want to strip the leading -, str[1..-1] should be a bit faster
<erikh>
(and easier to read)
<countdigi>
there are multiple - so regex maybe better
<countdigi>
eg: U5877.001.RCH7752-P1-C1
<countdigi>
its an aix p770 pci card basically
mistym has quit [Remote host closed the connection]
<countdigi>
everything left of first - is the io drawer and the other part is the physical slot
<countdigi>
wrote a library earlier to basically "vagrant" a p7 server but now trying to clean it up for the next one :-)
<erikh>
ah I see
<erikh>
hmmm
<countdigi>
this time i am tdding the whole thing
<erikh>
str.split('-', 2).last
<countdigi>
pita but i feel dirty otherwise... dam ruby culture
<countdigi>
ah cool thanks
<Defusal>
mruby is awsome.
<erikh>
that'll split by the first -, create 2 entries only, and take the last item.
<erikh>
basically the same regex.
<erikh>
err, as the regex.
<Defusal>
compiles your code straight to C including only what you use
<Defusal>
:D
<erikh>
niiiiice.
<Defusal>
works great
<countdigi>
tx - refactoring regexes.. badadd man ;-)
<Defusal>
i can see this taking over
<countdigi>
s/dd/ds/
slyphon has joined #ruby-lang
<countdigi>
u know what i mean... god forget the regex ;-)
<Defusal>
once enough library development has been done
<erikh>
I like to avoid regexes when I can. it's usually faster and cleaner
<erikh>
sometimes it doesn't make sense though.
<erikh>
Defusal: yeah, I want to give it a shot.
<erikh>
(library development)
<Defusal>
what libraries you want to work on?
<Defusal>
i have no time, but i'd like to none the less
butchanton has quit [Quit: Leaving.]
jtoy has joined #ruby-lang
<erikh>
oh just some basic stuff, mostly ops-related