beanish has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
donofrio has quit [Remote host closed the connection]
beanish has joined #ruby
`7hr34t_hvntr has joined #ruby
<`7hr34t_hvntr>
hello
Guest82829 has joined #ruby
<`7hr34t_hvntr>
how would i have ruby do an exec call if im on linux using sh
<`7hr34t_hvntr>
ruby -e /bin/sh OR ruby exec foo
<`7hr34t_hvntr>
couldnt find the syntax
Guest82829 has quit [Ping timeout: 256 seconds]
<elomatreb>
`7hr34t_hvntr: Do you mean an actual exec (i.e. replacing the process) or do you want a subprocess?
Guest82829 has joined #ruby
amar has joined #ruby
ciscam has quit [Ping timeout: 264 seconds]
ciscam has joined #ruby
karapetyan has joined #ruby
Guest82829 has quit [Ping timeout: 264 seconds]
amar has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
karapetyan has quit [Ping timeout: 260 seconds]
Guest82829 has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
Guest82829 has quit [Ping timeout: 240 seconds]
p4p0l0 has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 255 seconds]
beanish has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
wontruefree has quit [Quit: bye]
Guest82829 has joined #ruby
`7hr34t_hvntr has quit [Ping timeout: 268 seconds]
Guest82829 has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
rivalomega has quit [Remote host closed the connection]
Guest82829 has joined #ruby
apparition has joined #ruby
JamJam_kid has joined #ruby
Guest82829 has quit [Ping timeout: 260 seconds]
icarus has joined #ruby
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 264 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
starseed0000 has quit [Ping timeout: 265 seconds]
Guest82829 has joined #ruby
tty has quit [Quit: tty]
Guest82829 has quit [Ping timeout: 248 seconds]
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 268 seconds]
cschneid has joined #ruby
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 264 seconds]
_whitelogger has joined #ruby
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 264 seconds]
cschneid has quit [Ping timeout: 264 seconds]
Guest82829 has joined #ruby
cschneid has joined #ruby
Guest82829 has quit [Ping timeout: 256 seconds]
chongtxtx has quit [Ping timeout: 256 seconds]
chongtxtx has joined #ruby
mike11 has joined #ruby
Guest82829 has joined #ruby
ldepandis has joined #ruby
cschneid has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
Guest82829 has quit [Ping timeout: 245 seconds]
zwliew has joined #ruby
karapetyan has quit [Ping timeout: 268 seconds]
Guest82829 has joined #ruby
dj1300 has joined #ruby
roamingdog has joined #ruby
Yxhuvud has quit [Read error: Connection reset by peer]
Yxhuvud has joined #ruby
Guest82829 has quit [Ping timeout: 245 seconds]
dviola has quit [Quit: WeeChat 2.1]
roamingdog has quit [Remote host closed the connection]
Guest82829 has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
Guest82829 has quit [Ping timeout: 255 seconds]
cschneid has joined #ruby
EvilJStoker has quit [Ping timeout: 255 seconds]
EvilJStoker has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
Guest82829 has joined #ruby
apparition has quit [Quit: Bye]
Guest82829 has quit [Ping timeout: 260 seconds]
Guest82829 has joined #ruby
alem0lars has quit [Quit: Leaving]
rivalomega has joined #ruby
Guest82829 has quit [Ping timeout: 260 seconds]
reber has joined #ruby
rivalomega has quit [Ping timeout: 265 seconds]
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 276 seconds]
Guest82829 has joined #ruby
karapetyan has joined #ruby
cschneid has joined #ruby
Guest82829 has quit [Ping timeout: 276 seconds]
karapetyan has quit [Ping timeout: 276 seconds]
cschneid has quit [Ping timeout: 256 seconds]
Guest82829 has joined #ruby
dionysus69 has joined #ruby
Guest82829 has quit [Ping timeout: 264 seconds]
nvh^ has joined #ruby
mike11 has quit [Quit: Leaving.]
nvh^ has quit [Client Quit]
hph^ has joined #ruby
amar has joined #ruby
Guest82829 has joined #ruby
roamingdog has joined #ruby
solocshaw has joined #ruby
Guest82829 has quit [Ping timeout: 260 seconds]
apeiros has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 256 seconds]
Guest82829 has joined #ruby
claudiuinberlin has joined #ruby
`7hr34t_hvntr has joined #ruby
Guest82829 has quit [Ping timeout: 256 seconds]
ldepandis has quit [Ping timeout: 248 seconds]
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 245 seconds]
schleppel has joined #ruby
p4p0l0 has joined #ruby
Guest82829 has joined #ruby
workmad3 has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
biberu has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
JamJam_kid has quit [Ping timeout: 264 seconds]
<zenspider>
I love it when people ask a question with zero intent of clarifying anything or even wanting an answer... *sigh*
Guest82829 has joined #ruby
zwliew has quit [Quit: Connection closed for inactivity]
Guest82829 has quit [Ping timeout: 248 seconds]
cschneid has joined #ruby
biberu has quit []
cschneid has quit [Ping timeout: 265 seconds]
Guest82829 has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
biberu has joined #ruby
p4p0l0 has quit [Remote host closed the connection]
Guest82829 has quit [Ping timeout: 256 seconds]
clemens3 has joined #ruby
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 256 seconds]
apparition has joined #ruby
Guest82829 has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
amar has quit [Remote host closed the connection]
amar has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
Guest82829 has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
Guest82829 has quit [Ping timeout: 260 seconds]
conta has joined #ruby
Guest82829 has joined #ruby
karapetyan has quit [Remote host closed the connection]
Guest82829 has quit [Ping timeout: 265 seconds]
gigetoo has joined #ruby
Guest82829 has joined #ruby
ur5us has joined #ruby
amelliaa has joined #ruby
Guest82829 has quit [Ping timeout: 245 seconds]
p4p0l0 has joined #ruby
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 245 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
Guest82829 has joined #ruby
karapetyan has joined #ruby
<eising>
So, I have a super-weird issue with Bundler. One of my gems apparently has a dependency, which I've included in my Gemfile. But keeps throwing Bundler::GemNotFound even though I can see the actual gem being installed
Guest82829 has quit [Ping timeout: 276 seconds]
`7hr34t_hvntr has quit [Ping timeout: 245 seconds]
<eising>
nevermind. It resolved itself. How weird...
Guest82829 has joined #ruby
conta has quit [Quit: conta]
ciscam has quit [Ping timeout: 260 seconds]
Guest82829 has quit [Ping timeout: 276 seconds]
ciscam has joined #ruby
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 276 seconds]
Guest82829 has joined #ruby
workmad3 has joined #ruby
Guest82829 has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
conta has joined #ruby
hobbes has joined #ruby
Guest82829 has joined #ruby
hobbes has quit [Client Quit]
Guest82829 has quit [Ping timeout: 260 seconds]
nowhereman_ has quit [Ping timeout: 245 seconds]
p0p0pr37 has quit [Ping timeout: 264 seconds]
jnollette has quit [Ping timeout: 250 seconds]
Guest82829 has joined #ruby
dreamthese has quit [Remote host closed the connection]
dreamthese has joined #ruby
za1b1tsu has joined #ruby
jnollette has joined #ruby
Guest82829 has quit [Ping timeout: 248 seconds]
jamesaxl has joined #ruby
p4p0l0 has quit [Remote host closed the connection]
Guest82829 has joined #ruby
beefjoe has joined #ruby
Guest82829 has quit [Ping timeout: 245 seconds]
ciscam has quit [Ping timeout: 240 seconds]
weird_error has joined #ruby
ciscam has joined #ruby
jnollette has quit [Remote host closed the connection]
jnollette has joined #ruby
rivalomega has joined #ruby
Guest82829 has joined #ruby
chongtxtx has quit [Ping timeout: 245 seconds]
rivalomega has quit [Ping timeout: 255 seconds]
Guest82829 has quit [Ping timeout: 264 seconds]
chongtxtx has joined #ruby
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 256 seconds]
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 264 seconds]
Zaab1t has joined #ruby
BaroMeter has joined #ruby
BaroMeter has quit [Client Quit]
Guest82829 has joined #ruby
psychicist__ has joined #ruby
amelliaa has quit [Quit: -]
ciscam has quit [Ping timeout: 255 seconds]
Guest82829 has quit [Ping timeout: 264 seconds]
ciscam has joined #ruby
Cthulu201 has quit [Ping timeout: 240 seconds]
Guest82829 has joined #ruby
RougeR has joined #ruby
nowhereman_ has joined #ruby
shinnya has joined #ruby
Guest82829 has quit [Ping timeout: 255 seconds]
maiz has joined #ruby
FernandoBasso has joined #ruby
Guest82829 has joined #ruby
Cthulu201 has joined #ruby
weird_error has quit [Quit: weird_error]
Guest82829 has quit [Ping timeout: 248 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
Guest82829 has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
<FernandoBasso>
When would I use <<-LARACROFT ...\nLARACROFT sort of comment/docstring in ruby? Couldn't find some in my local installed stuff to get a feeling.
karapetyan has quit [Remote host closed the connection]
p4p0l0 has joined #ruby
nowhereman_ has quit [Ping timeout: 245 seconds]
Guest82829 has quit [Ping timeout: 256 seconds]
Guest82829 has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
AJA4350 has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
p4p0l0 has quit [Remote host closed the connection]
matheusoliveira has joined #ruby
<matheusoliveira>
Good morning
workmad3 has joined #ruby
Guest82829 has joined #ruby
<apeiros>
FernandoBasso: that's neither a comment nor a docstring. that's an actual string.
<apeiros>
and you'd use it whenever they're more convenient than the alternatives.
<FernandoBasso>
Not even a heredoc or herestring?
<apeiros>
it is called heredoc, yes
<FernandoBasso>
All right, thanks.
beefjoe has quit [Ping timeout: 245 seconds]
karapetyan has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
Guest82829 has quit [Ping timeout: 264 seconds]
ciscam has quit [Ping timeout: 240 seconds]
Guest82829 has joined #ruby
ciscam has joined #ruby
jottr_ has joined #ruby
Guest82829 has quit [Ping timeout: 268 seconds]
bmurt has joined #ruby
fmcgeough has joined #ruby
Guest82829 has joined #ruby
codymj has joined #ruby
* FernandoBasso
is finally installing pry
elementaru_ is now known as elementaru
<FernandoBasso>
"It is currently not as powerful as tools like SLIME for lisp, but that is the general direction Pry is heading." <-- That is a great goal!
<matheusoliveira>
Yes, it is.
RougeR has quit [Ping timeout: 256 seconds]
Guest82829 has quit [Ping timeout: 256 seconds]
<FernandoBasso>
I believe it has, or will have good integration with emacs and vim then.
* FernandoBasso
reading
Guest82829 has joined #ruby
dionysus69 has joined #ruby
Guest82829 has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 265 seconds]
Guest82829 has joined #ruby
DLSteve has joined #ruby
Guest82829 has quit [Ping timeout: 268 seconds]
roamingdog has joined #ruby
ciscam has quit [Ping timeout: 264 seconds]
ciscam has joined #ruby
Guest82829 has joined #ruby
roamingdog has quit [Ping timeout: 260 seconds]
beefjoe has joined #ruby
Guest82829 has quit [Ping timeout: 245 seconds]
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 256 seconds]
jottr_ has joined #ruby
Guest82829 has joined #ruby
Guest82829 has quit [Ping timeout: 276 seconds]
cyberg has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
GodFather has quit [Ping timeout: 256 seconds]
Guest82829 has joined #ruby
Dbugger has joined #ruby
jottr_ has quit [Ping timeout: 276 seconds]
apparition has quit [Quit: Bye]
Guest82829 has quit [Ping timeout: 268 seconds]
RougeR has joined #ruby
karapetyan has quit [Remote host closed the connection]
Guest82829 has joined #ruby
InfinityFye has joined #ruby
InfinityFye has left #ruby [#ruby]
Guest82829 has quit [Ping timeout: 268 seconds]
konsolebox has quit [Ping timeout: 256 seconds]
maiz has quit [Quit: WeeChat 2.0.1]
konsolebox has joined #ruby
maiz has joined #ruby
Guest82829 has joined #ruby
soniya29 has joined #ruby
face has quit [Ping timeout: 248 seconds]
soniya29 has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dbugger has quit [Remote host closed the connection]
Guest82829 has joined #ruby
za1b1tsu has joined #ruby
za1b1tsu has quit [Ping timeout: 245 seconds]
Guest82829 has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
cschneid has joined #ruby
conta has quit [Quit: conta]
Guest82829 has joined #ruby
karapetyan has quit [Ping timeout: 256 seconds]
codymj has quit [Read error: Connection reset by peer]
codymj has joined #ruby
cadillac_ has quit [Ping timeout: 260 seconds]
Guest82829 has quit [Ping timeout: 276 seconds]
rivalomega has joined #ruby
cschneid has quit [Ping timeout: 260 seconds]
cadillac_ has joined #ruby
gheegh has joined #ruby
Guest82829 has joined #ruby
rivalomega has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
weird_error has joined #ruby
<gheegh>
theoretical question.. I have a list of about 200K records that I need to access.. it takes about 500 MB to store the entire file (in JSON format). I'm considering breaking it into a number of smaller files, zipped, (like 65k files).. and then retrieve each file from the disk and get teh record in question.. is this a terrible idea.. if it's in a gem?
<gheegh>
the goal is to reduce the IO of storing all this in a file.. if i have to laod the entire file each time, tha'ts a lot of IO
Guest82829 has quit [Ping timeout: 256 seconds]
<gheegh>
anyone have thoughts?
<havenwood>
gheegh: Say more about what you're accessing them for? How are they used?
<havenwood>
gheegh: Does it need to be stored as JSON?
<gheegh>
i'm working on a research project that is realted to Twitter usernames.. i'm retrieiving mentions in a stream... and processing the user account.. the "cache" is the verified users.. about 200K that are likley to be hit.. i'd like to hit this cache isntead of retrieving their account from teh API
<gheegh>
no, itdoesn't need to be stored as json
<gheegh>
i'm working in hashes
beanish has joined #ruby
<gheegh>
if the cache lookup fails, then i'll look up the account
<havenwood>
gheegh: Keys are Strings? What are the values?
<gheegh>
part of the thing I want to do is compress it.. so it doesn't take up so much space on disk
<havenwood>
gheegh: It comes from a day when space was at a premium.
<gheegh>
its 42 MB compressed, about 500MB uncompressed
Guest82829 has joined #ruby
<havenwood>
gheegh: mmm
<havenwood>
gheegh: is it disk or memory you're worried about?
<gheegh>
memory really.. but IO as well
<gheegh>
as it can gate performance loading a 500MB file each time I look up things from disk..
<havenwood>
gheegh: The advantage of a DB like DBM is you don't have to deserialize all the values at once, just the ones you're using.
<gheegh>
which happens sevearl times per second
<havenwood>
gheegh: Try DBM :-)
<gheegh>
but i have to load it into memorY?
<gheegh>
I thought files were essentailly atomic unless there is some sort of cursor
<gheegh>
loaded or not
<gheegh>
?
<havenwood>
gheegh: With DBM, each value is independently serialized.
<gheegh>
ok
<havenwood>
gheegh: You only deserialize those you fetch.
Zaab1t has quit [Quit: Zaab1t]
weird_error has quit [Quit: weird_error]
<gheegh>
OK
<gheegh>
i'll play with it.. thanks
dj1300 has quit [Ping timeout: 260 seconds]
<havenwood>
Ruby also ships with SDBM and GDBM. Lots of DBMs.
Guest82829 has quit [Ping timeout: 264 seconds]
<apeiros>
gheegh: alternative question - why not store it in something like sqlite?
<gheegh>
the thought was to limit IO
<havenwood>
gheegh: SDBM would be smaller disk size. Serializing to Msgpack would be faster and smaller too.
<gheegh>
and break it into a lot of smaller files
<apeiros>
that's something databases do
<havenwood>
gheegh: Sqlite is fantastic for reads.
<apeiros>
after all, IO is a major source of performance. so there have been quite a couple of people spending quite some time to work on reducing IO with databases.
<gheegh>
yeah
<gheegh>
I'll try all o the options
<apeiros>
and unless you always have to process all data, something like sqlite can help a ton in reducing IO.
<gheegh>
i really just want to retrieve 1 record at a shot
<gheegh>
and have the minimal amount of IO and memory used
<gheegh>
and disk to a lesser extent
<apeiros>
yeah. as said, that's something DBs traditionally try to excel at.
<gheegh>
ok.. i'll try them
<gheegh>
thanks guys
<apeiros>
of course, the way you process the data will too have a great influence.