apeiros_ changed the topic of #ruby to: programming language || ruby-lang.org || Paste >3 lines of text in http://pastie.org || Rails is in #rubyonrails
QaDeS_ has joined #ruby
nari has quit [Ping timeout: 255 seconds]
tommyvyo has joined #ruby
QaDeS__ has quit [Ping timeout: 245 seconds]
perryh_away is now known as perryh
tommyvyo has quit [Client Quit]
robdodson has quit [Quit: robdodson]
dbgster has joined #ruby
moshee has quit [Ping timeout: 255 seconds]
moshee has joined #ruby
ephemerian has quit [Quit: Leaving.]
keymone has quit [Read error: Connection reset by peer]
keymone has joined #ruby
minijupe has quit [Remote host closed the connection]
stephenjudkins has quit [Read error: Connection reset by peer]
Asher has joined #ruby
minijupe has joined #ruby
Tomasso has joined #ruby
stephenjudkins has joined #ruby
strife25 has joined #ruby
otters has joined #ruby
mpereira_ has joined #ruby
niklasb has joined #ruby
fflush has joined #ruby
stephenjudkins has quit [Read error: Connection reset by peer]
liluo has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
gogiel has quit [Ping timeout: 256 seconds]
keymone has quit [Read error: Connection reset by peer]
emmanuel__ has quit [Remote host closed the connection]
<banisterfiend>
lord_daemon: c#
xaq has quit [Remote host closed the connection]
nyrb has joined #ruby
<UdontKnow>
lord_daemon: COBOL. Any bank would pay you a lot for just a little COBOL knowledge
<sam113101>
Hey, I made a "library", a kind of interface to a website (I get a user's information with a single function call, for example), and wonder what would be the best way to "reuse" that. I want to use it in different projects that are not located at the same place. Also, I want every project to work on the same version of the "library". I tried symlinks but it's not quite what I want. Also it's in a git repo.
Asher has joined #ruby
TorpedoSkyline has joined #ruby
eka has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
gogiel has joined #ruby
pama has quit [Read error: Connection reset by peer]
kevinbond has joined #ruby
nfk has quit [Quit: yawn]
keymone has quit [Read error: Connection reset by peer]
ConstantineXVI has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
keymone has joined #ruby
looopy has quit [Remote host closed the connection]
rubish_ has quit [Ping timeout: 248 seconds]
mengu has quit [Remote host closed the connection]
kevinbond has quit [Client Quit]
wallerdev has joined #ruby
liluo has joined #ruby
R3dy has joined #ruby
<R3dy>
Is there a way to iterate throuhg all objects of a given class?
stephenjudkins has quit [Read error: Connection reset by peer]
stephenjudkins has joined #ruby
QaDeS__ has joined #ruby
QaDeS_ has quit [Ping timeout: 245 seconds]
cantonic has quit [Remote host closed the connection]
cantonic has joined #ruby
c0rn has joined #ruby
gogiel has quit [Ping timeout: 248 seconds]
uokesita has joined #ruby
vertroa has joined #ruby
L-----D has joined #ruby
Evixion has quit []
dilbo_shaggins has left #ruby [#ruby]
gogiel has joined #ruby
<ryanf>
sam113101: make it a gem
Hanmac has quit [Read error: Operation timed out]
ConstantineXVI has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<ryanf>
if you use bundler for your projects, you can put it in the gemfile with "gem 'gemname', :path => '/path/to/gem'"
<ryanf>
if not, you can just install it locally
<ryanf>
either way you don't need to put it out publicly if you don't want to
peterhil` has quit [Ping timeout: 248 seconds]
gtuckerkellogg has joined #ruby
robdodson has joined #ruby
subbyyy has quit [Quit: Leaving.]
shiki has joined #ruby
bassplayerdoug has joined #ruby
c0rn has joined #ruby
R3dy has quit [Ping timeout: 240 seconds]
robdodson has quit [Quit: robdodson]
sohocoke has joined #ruby
eka has quit [Remote host closed the connection]
Hanmac has joined #ruby
yoklov has joined #ruby
vertroa has quit [Remote host closed the connection]
pen_isident has quit [Ping timeout: 244 seconds]
peterhil` has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
Asher has joined #ruby
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
td123 has joined #ruby
Asher has quit [Client Quit]
<sam113101>
ryanf: do I need to "bundle install" after this?
Emmanuel_Chanel has joined #ruby
sohocoke has quit [Quit: sohocoke]
<ryanf>
yeah I think so
<ryanf>
so that bundler remembers where to load it from
<sam113101>
how does it work? how does he remember?
h4mz1d has joined #ruby
<ryanf>
it writes a hidden file
<sam113101>
ok ty
zeromodulus has quit [Remote host closed the connection]
davidpk has joined #ruby
zeromodulus has joined #ruby
TorpedoSkyline has quit [Quit: Leaving]
zeromodulus has quit [Ping timeout: 245 seconds]
aether has quit [Ping timeout: 250 seconds]
aether has joined #ruby
fayimora has quit [Quit: Be back in a gifii]
krz has joined #ruby
wallerdev has quit [Quit: wallerdev]
Beakr has left #ruby [#ruby]
R3dy has joined #ruby
newbold has joined #ruby
looopy has joined #ruby
nirakara has joined #ruby
wallerdev has joined #ruby
blischalk has joined #ruby
looopy has quit [Remote host closed the connection]
radic has quit [Disconnected by services]
radic_ has joined #ruby
radic_ is now known as radic
subbyyy has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
pygmael has quit [Read error: Connection reset by peer]
stephenjudkins has quit [Read error: Connection reset by peer]
pygmael has joined #ruby
stephenjudkins has joined #ruby
davidpk has quit [Quit: Computer has gone to sleep.]
looopy has joined #ruby
mdhopkins has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
davidpk has joined #ruby
pu22l3r has joined #ruby
pygmael has quit [Read error: Connection reset by peer]
pygmael has joined #ruby
R3dy has quit [Ping timeout: 245 seconds]
ConstantineXVI has quit [Remote host closed the connection]
newbold is now known as newbold_cloud
<deryl>
usually .bundler/config iirc
Tref has joined #ruby
strife25 has quit [Quit: Computer has gone to sleep.]
neohunter has joined #ruby
<neohunter>
Hello, i want to check if my string have a tweeter username @something and extract it if so. What should i search about to do this?
<any-key>
.include?
zeromodu_ has joined #ruby
<any-key>
or ~=
<neohunter>
any-key but include only tell me if a substrings is present
QaDeS__ has quit [Quit: Ex-Chat]
<neohunter>
i want to extract any twitter username that is on my string
<neohunter>
something like regex @(\w)+
<any-key>
oh, you just said you wanted to "check" to see if it was present
<any-key>
one sec
<neohunter>
any-key: yep, sorry i mean extract, sorry my english is so so =(
stephenjudkins has quit [Read error: Connection reset by peer]
stephenjudkins has joined #ruby
zodiak has quit [Ping timeout: 272 seconds]
zodiak has joined #ruby
busybox42 has joined #ruby
cj3kim has joined #ruby
ipsifendus has joined #ruby
pu22l3r has quit [Remote host closed the connection]
crescendo has quit [Ping timeout: 272 seconds]
nirakara has quit [Ping timeout: 272 seconds]
mpereira has quit [Ping timeout: 272 seconds]
stewart_ has joined #ruby
bobdobbs has joined #ruby
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
stewart_ has left #ruby [#ruby]
<bobdobbs>
hi all. I'm playing with middleman. With middleman, I can edit my stylesheets using sass. How can I pass commandline option to sass from middleman?
nirakara has joined #ruby
<bobdobbs>
I'm using firesass, which requires the use of the '--debug-info' switch, to be passed to sass.
stewart_ has joined #ruby
Progster has joined #ruby
<bobdobbs>
googleing for 'middleman firesass', I find a link here: http://goo.gl/wDLZ8
<shevy>
fireass????
tommyvyo has joined #ruby
<bobdobbs>
This describes a block to use, to deploy the switch I want to use, but I don't know where to use that block
<bobdobbs>
shevy: firesass
nirakara has quit [Ping timeout: 252 seconds]
nikhil_ has joined #ruby
<bobdobbs>
shevy: its a really cool tool. It lets you debug your sass by line number, from firebug
<bobdobbs>
but I just can't quiet figure out how to turn on the neccessary option from middleman
<shevy>
I dont wanna debug my s ass !!!
<shevy>
bob boobs!
tomb_ has quit [Quit: Computer has gone to sleep.]
<shevy>
kidding aside, I never heard of middleman before. I don't think it comes up here often as question, so probably not many people here know it.
azm has quit [Ping timeout: 272 seconds]
ipsifendus has quit [Quit: ipsifendus]
hemanth has quit [Read error: Connection reset by peer]
ConstantineXVI has quit [Remote host closed the connection]
cordoval has joined #ruby
<bobdobbs>
I see
mxweas_ has joined #ruby
mxweas_ has quit [Client Quit]
aruntomar has joined #ruby
stephenjudkins has quit [Read error: Connection reset by peer]
nikhil_ has quit [Ping timeout: 244 seconds]
stephenjudkins has joined #ruby
Solnse has joined #ruby
aruntomar has quit [Ping timeout: 248 seconds]
ipsifendus has joined #ruby
vertroa has joined #ruby
mistergibson has quit [Remote host closed the connection]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
<ryanf>
middleman is cool
<ryanf>
I don't know all that much about it though
<ryanf>
I'm guessing you can configure the sass options in code somewhere
<ryanf>
might need to actually dive into middleman to find the right spot to poke at
<ryanf>
like if you can find the module that adds sass support to middleman, that would be a good place to look.
keanehsiao has joined #ruby
macmartine has quit [Quit: macmartine]
thecreators has quit [Quit: thecreators]
pygmael has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
keanehsiao has quit [Read error: Connection reset by peer]
savage- has quit [Remote host closed the connection]
pygmael has joined #ruby
iamjarvo has quit [Quit: Leaving.]
wookiehangover has quit [Quit: i'm out]
aruntomar has joined #ruby
kenperkins has quit [Quit: Computer has gone to sleep.]
<greyEAX>
i need to read lines from a file and push them into an array. can anyone help me?
<Mon_Ouie>
See IO#readlines (and IO#each_line)
rippa has joined #ruby
Guest81300 has joined #ruby
cordoval has left #ruby [#ruby]
savage- has joined #ruby
wookiehangover has joined #ruby
ananthakumaran has joined #ruby
altious has quit [Read error: Connection reset by peer]
altious has joined #ruby
hemanth has joined #ruby
smooth_penguin has quit [Ping timeout: 245 seconds]
crescendo has joined #ruby
keymone has quit [Read error: Connection reset by peer]
zeromodu_ has quit [Remote host closed the connection]
thecreators has quit [Quit: thecreators]
artm has joined #ruby
shiki has quit [Remote host closed the connection]
hukl has joined #ruby
hukl has quit [Client Quit]
neersighted is now known as neersighted|AFK
TheHunter_1039 has quit [Quit: TheHunter_1039]
ananthakumaran has quit [Quit: Leaving.]
shiki has joined #ruby
shiki has quit [Remote host closed the connection]
artm has quit [Client Quit]
altious has joined #ruby
Progster has quit [Ping timeout: 245 seconds]
L-----D has joined #ruby
stephenjudkins has quit [Read error: Connection reset by peer]
stephenjudkins has joined #ruby
nvez is now known as mnaser
stephenjudkins has quit [Read error: Connection reset by peer]
stephenjudkins has joined #ruby
stephenjudkins has quit [Read error: Connection reset by peer]
stephenjudkins has joined #ruby
h4mz1d has quit [Ping timeout: 245 seconds]
adamkittelson has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
nipra has quit [Ping timeout: 272 seconds]
krishnaveda has joined #ruby
<krishnaveda>
I wanted a project specific rmvrc file... can anyone help please
apeiros_ has joined #ruby
shevy has quit [Ping timeout: 245 seconds]
looopy has quit [Remote host closed the connection]
ipoval has joined #ruby
digitalcakestudi has quit [Quit: Leaving.]
benatwork has quit [Remote host closed the connection]
looopy has joined #ruby
yxhuvud has joined #ruby
AlbireoX_ has joined #ruby
joaoh82 has quit [Remote host closed the connection]
nipra has joined #ruby
Targen has quit [Ping timeout: 252 seconds]
lolmaus has joined #ruby
Solnse has quit []
ABK has joined #ruby
AlbireoX has joined #ruby
tonini has joined #ruby
zeromodulus has joined #ruby
CheeToS has joined #ruby
shevy has joined #ruby
stewart_ has quit [Quit: Leaving.]
nikhil_ has quit [Quit: This computer has gone to sleep]
minijupe has joined #ruby
nikhil_ has joined #ruby
nikhil_ has quit [Client Quit]
cha1tanya has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
kil0byte has quit []
apeiros_ has quit [Remote host closed the connection]
ben225 has quit [Ping timeout: 252 seconds]
crescendo has quit [Ping timeout: 272 seconds]
tomb_ has joined #ruby
ben225 has joined #ruby
cha1tanya has joined #ruby
djdb has joined #ruby
classix has quit [Ping timeout: 245 seconds]
mucker has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
S1kx has quit [Ping timeout: 255 seconds]
ipsifendus has quit [Quit: ipsifendus]
baroquebobcat has joined #ruby
cache_za has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
ben225_ has joined #ruby
ben225 has quit [Ping timeout: 265 seconds]
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
artm has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
timonv has quit [Ping timeout: 272 seconds]
dwon has quit [Remote host closed the connection]
davidpk has quit [Ping timeout: 252 seconds]
davidpk has joined #ruby
bigkevmcd has joined #ruby
looopy has quit [Remote host closed the connection]
AlbireoX has quit [Remote host closed the connection]
shruggar has joined #ruby
gregorg_taf has quit [Read error: Connection reset by peer]
subbyyy has quit [Quit: Leaving.]
apeiros_ has joined #ruby
_md has joined #ruby
daniel_hinojosa has quit [Ping timeout: 255 seconds]
vitor-br has joined #ruby
maesbn has joined #ruby
EzeQL has joined #ruby
cha1tanya has quit [Ping timeout: 255 seconds]
schovi has joined #ruby
yoklov has quit [Quit: computer sleeping]
ggolin has quit [Quit: Leaving]
schovi has quit [Remote host closed the connection]
Solnse has joined #ruby
tonini has quit [Remote host closed the connection]
bambanx has quit [Remote host closed the connection]
yonggu_ has joined #ruby
nirakara has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
tonini has joined #ruby
yonggu has quit [Ping timeout: 260 seconds]
yonggu has joined #ruby
jprovazn has joined #ruby
cha1tanya has joined #ruby
yonggu_ has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
cha1tanya has quit [Ping timeout: 240 seconds]
greyEAX has quit [Remote host closed the connection]
katya^ has joined #ruby
chussenot has joined #ruby
mikepack has quit [Ping timeout: 248 seconds]
greyEAX has joined #ruby
katya has quit [Ping timeout: 255 seconds]
tewecske has joined #ruby
Eldariof-ru has joined #ruby
greyEAX has quit [Client Quit]
greyEAX has joined #ruby
jjxtsys has joined #ruby
davidpk has quit [Quit: Computer has gone to sleep.]
crekev has joined #ruby
Jrz has joined #ruby
foofoobar has joined #ruby
Ryan_V-01 has joined #ruby
<Ryan_V-01>
hey guys, i could use some help refactoring this. its dirty right now and i know theres some good opportunities in here for refactoring, i just don't know where to start. https://gist.github.com/2692369
<bnagy>
ok, I'd replace all the inject({}) with each.with_object({})
<bnagy>
I don't know why you're precalculating the various report methods, just have them as a direct method and do them lazily
<bnagy>
and you take two passes in ranged visits and cumulative visits when I don't think you need to
mfridh has quit [Read error: Operation timed out]
mfridh_ has joined #ruby
<Ryan_V-01>
because right now this is a small portion of 50 lines of hash in the model spanning 3 classes lol (rails)
<bnagy>
ok I know nothing about rails, you just asked how to refactor that code
mohits has joined #ruby
<Ryan_V-01>
yeah, no need to know about rails just imagine a full page of hash
minijupe has quit [Quit: minijupe]
<Ryan_V-01>
the first pass sets the values with the new scope, the second pass sets two values for that initial key value pair. I also planned to make that second pass another method if possible because they all do the exact same thing.
jimeh has quit [Ping timeout: 240 seconds]
nfluxx has joined #ruby
alanp has joined #ruby
heftig has quit [Quit: leaving]
ChampS666 has joined #ruby
CheeToS has left #ruby [#ruby]
deobald_ has joined #ruby
ph^ has joined #ruby
mfridh_ has quit [Ping timeout: 255 seconds]
<bnagy>
for two lines of repeated work I'm not sure it's worth it, but whatever
<banisterfiend>
bnagy: hey bnagx0r
<bnagy>
sup pryboy?
<banisterfiend>
bnagy: pr0n u
mohits has quit [Quit: Leaving.]
<bnagy>
sick. cold.
simao has joined #ruby
<banisterfiend>
bnagy: time to go back to civilization
<bnagy>
pff
<Ryan_V-01>
thanks, I like that each_with_object method. cleaner
bjhaid has joined #ruby
ryanf has quit [Quit: leaving]
nyrb has quit [Remote host closed the connection]
mfridh has joined #ruby
<bnagy>
Ryan_V-01: you don't need to have 'hash' at the end of the blocks with with_object. Also I'm pretty sure you're wrong about needing the two passes :)
wagle has joined #ruby
<wagle>
hi.. what do i install to satisfy the line
A124 has left #ruby [#ruby]
<wagle>
require "ruby_core_source"
<bnagy>
banisterfiend: if I can not travel until july I'll be a happy man. I get lots of work done here. :)
<wagle>
dont see a package
<Ryan_V-01>
i didn't say i was right, i just said i didn't know how to approach it :) mainly because i wanted to have one method that would do that for each of 3 types(and more to come), that just call v.count v.count("distinct user_id")
bluOxigen has joined #ruby
<banisterfiend>
bnagy: dont u feel cornered by the world in some bolt-hole
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
<bnagy>
banisterfiend: wait, don't you live in NZ? :D
hoelzro|away is now known as hoelzro
<banisterfiend>
bnagy: Yeah, same situation
hoelzro is now known as hoelzro|away
gregorg has joined #ruby
<bjhaid>
hi all, please what is the best way to package ruby scripts into a "jar" like format
<bnagy>
Ryan_V-01: make your method take a symbol, like :range and then you can build those keys dynamically
<bnagy>
bjhaid: gems
<bnagy>
Ryan_V-01: should be able to do it all with one method like [:range, :cumulative, :lifetime].each {|sym| do_hash_shit( sym )}
<banisterfiend>
bnagy: do u have any friends who're locals
<bnagy>
although even though it looks uglier it will be easier to use a string as the arg
<bjhaid>
bnagy: my problem is cron doesnt locate some gems in path, so I want to package the scripts such that it includes all the gems, and dump it on cron
<Ryan_V-01>
ah, let me try that out. and i found a few other places to refactor. ill brb
<bnagy>
banisterfiend: yeah a few
<Ryan_V-01>
hah, funny you should say that. I have a tendency to use symbols over strings for that reason alone
krz has quit [Quit: krz]
<Hanmac>
bjhaid did you use rvm?
<bnagy>
bjhaid: sounds like you just need to fix your path :)
banisterfiend is now known as horseman
<horseman>
bnagy: too bad you're married to a western woman or u could be tapping some exotic booty
piotr_ has joined #ruby
<Hanmac>
horseman which one of the four?
<horseman>
Hanmac: wht r u talking about
<bnagy>
uh...yes :< And it's not at all creepy that someone I don't know is all up with my marital situation
<bnagy>
actually nepali women are not exactly what you'd call 'goers'
<horseman>
bnagy: ah quite a conservative culture?
* Hanmac
means the four horseman of Apokalypse
<bnagy>
yeah, arranged marriage is still pretty common
nlc has quit [Quit: Leaving]
<bjhaid>
Hanmac: well I didnt use RVM, I installed RUBY straighaway, its actually oci8 issues here
<bjhaid>
that cron doesnt find
<horseman>
bnagy: what's the dominant religion?
<bnagy>
~90% hindu
<bnagy>
maybe a bit less, the rest pretty much buddhist and then sub 1% for the remaining
saschagehlich has joined #ruby
nfluxx has quit [Quit: nfluxx]
artm has quit [Quit: artm]
<horseman>
bnagy: so they're indian looking? i thought they were kind of tibetan looking?
petercs has joined #ruby
<bnagy>
it's a mix.
zommi has joined #ruby
<horseman>
bnagy: is it near bhutan?
<bnagy>
near-ish, there's a bit of India (sikkim) in between
<apeiros_>
horseman: you never stick to a nick, eh? :D
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
<bnagy>
ahh... maybe I shouldn't ignore NICKS :S
<horseman>
apeiros_: when i talk trash i dont like to be googlable as b4nisterf1end, if possible
<apeiros_>
hehe
nirakara has quit [Quit: cheers]
<bnagy>
bjhaid: you could also just modify the load_path inside your script, if the cron user has some weird cut-down path
<apeiros_>
bnagy: he didn't change his, he joined with a new one
<bnagy>
ok. I am less freaked out now :)
ABK has quit [Ping timeout: 256 seconds]
<apeiros_>
didn't know you were indian, bnagy
<bnagy>
I'm not
<apeiros_>
nepalese?
<bnagy>
hhah no I'm australian
<apeiros_>
ah
<apeiros_>
but you live there?
* apeiros_
missed something
<bnagy>
yeah, my wife works for the int'l red cross here
aether has quit [Remote host closed the connection]
<apeiros_>
I see. and you telecommute or you work for a company there?
<bnagy>
remote work
cha1tanya has joined #ruby
<apeiros_>
nice
igotnolegs has quit [Quit: Computer has gone to sleep.]
<apeiros_>
so western payment with nepalese living costs…
<bnagy>
it is, actually. Hard to find a company that allows remote work without freaking out and over managing / checking
stefanp has joined #ruby
Gavilan has left #ruby [#ruby]
<bnagy>
yeah, pretty much, except the red cross takes care of the living costs
<apeiros_>
aaaah, diablo 3 is sooo gonna kill my progress the coming week-end :D
<apeiros_>
it's unbelievable, I actually finally add unit tests to aaaaancient libraries of mine…
Dratir has joined #ruby
<bnagy>
when are you going to accept that unit tests are just a fad, dude? :)
<apeiros_>
even despite diablo3, there's a good chance I'll release the 'scheduled' gem this week-end
<bnagy>
like pair programming
<Ryan_V-01>
heres were I'm at now. just need to get that dynamic scope method in the block to be set dynamically
<apeiros_>
bnagy: I'm slow at change :-p
<wagle>
how do i get require "ruby_core_source" to resolve in a gem (linecache19-0.5.12)
<graspee>
you could have just posted one line for all of that: "Hi can anyone help me understand this script please? <link>"
kil0byte has joined #ruby
<jackiechan0>
graspee> sorry i see noone chatting here and i tought to ask before posting
TheFuzzball has quit [Disconnected by services]
<graspee>
what do you need to know about this code anyway?
TheFuzzb_ has joined #ruby
<jackiechan0>
graspee> about what i understood it should do this 1) start the handler 2)upload bypassuac-x86.exe 3) upload meterpreter/reverse_tcp payload 4) execute them both 5)
<jackiechan0>
graspee> is that correct? what i need is to change the payload meterpreter/reverse_tcp with a custom file that i chose
<graspee>
so basically you want to hack someone's computer
gtuckerkellogg has joined #ruby
<jackiechan0>
graspee> it's pen testing i have my exams next month
Ryan_V-01 has left #ruby [#ruby]
<jackiechan0>
graspee> i just started to study ruby so i'm not able to customize this script by myself
altious has joined #ruby
ronniy has joined #ruby
<graspee>
what course is this ?
<bnagy>
jackiechan0: I said before, you're better off finding a metasploit specific channel
<jackiechan0>
bnagy> ok, i was looking for a much specific understanding of ruby thanks anyway
<graspee>
you don't really want to understand ruby though
<bnagy>
jackiechan0: but to me it looks like you need an existing session for this to work
bluOxigen has quit [Remote host closed the connection]
<jackiechan0>
bnagy> i already have an existing session !!
bluOxigen has joined #ruby
<graspee>
i'd still like to know what course has exams in penetration testing
Nicke\ has joined #ruby
<graspee>
because it sounds interesting
<bnagy>
graspee: loads
<bnagy>
there are a lot of vocational pentesting certs / courses etc
<rippa>
Eward's Spiked Tentacles of Forced Intrusion
<bnagy>
even some universities offer an applied security thing
<graspee>
thanks
<jackiechan0>
bnagy> at university they do just a little bit, just an introduction
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<krishnaveda>
is there a better way to do this ? if !value.nil? and value.respond_to? :id
<krishnaveda>
shevy: mate suggestions ^^ :)
gtuckerkellogg has joined #ruby
<bnagy>
jackiechan0: the problem with this script is that to understand it I would need to know what metasploit core etc do, like this 'datastore' must be defined / accessed somewhere, from console I guess
<jackiechan0>
bnagy> yeah the objects
fermion has joined #ruby
nfk has joined #ruby
<bnagy>
jackiechan0: so to use a custom payload you can just set that datastore option, BUT unless I'm blind, that reverse-tcp payload never gets used
yekta has quit [Client Quit]
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
<jackiechan0>
bnagy> graspee if it's possible to understand where the script upload these files, i think that could be understood just from the script http://paste.ubuntu.com/986928/
<bnagy>
ohhh unless it's just the connectback for the second cmd shell
<jackiechan0>
bnagy> just this part
<bnagy>
in which case if you change it you won't get your shell :)
<jackiechan0>
bnagy> exactly!! Reverse_tcp connnects back to the second shell
Avishek12 has joined #ruby
<jackiechan0>
bnagy> i need to change reverse_tcp standard that the script provide, with my custom reverse_tcp
<jackiechan0>
bnagy> i need to add an option to the script
gtuckerkellogg has quit [Client Quit]
<bnagy>
just change it in the console then I guess - it only defaults to the metaploit rev-tcp if there isn't a datastore payload set
<bnagy>
but if you don't want the UAC bypass stuff then this script has a ton of unnecessary stuff
ivic has quit [Quit: ivic]
<jackiechan0>
bnagy> i need the UAC bypass
<jackiechan0>
bnagy> what i don't need is that the script upload automatically his standard payload that is detected by anvtivirus
<bnagy>
ok then you don't need to modify this script at all
<bnagy>
oh right, try encoding for that
twinturbo has quit [Ping timeout: 272 seconds]
<jackiechan0>
bnagy> ?
<bnagy>
most AV can't handle even basic metasploit encoding
bluOxigen has quit [Remote host closed the connection]
bluOxigen has joined #ruby
<jackiechan0>
bnagy> metasploit enconding is horrible, every AV that i tested was able to catch it
looksirdroids has quit [Read error: Connection reset by peer]
tvw has joined #ruby
<jackiechan0>
bnagy> i found another way to encode a payload using metasploit enconders + C structure and it works 100%
looksirdroids has joined #ruby
twinturbo has joined #ruby
<bnagy>
hm ok. They must have started paying more attention to metasploit since I last used it. :>
deobald_ has quit [Ping timeout: 260 seconds]
Guedes_out is now known as Guedes
nipra has quit [Ping timeout: 272 seconds]
<bnagy>
anyway the bit you highlighted is only relevant to uploading the uac bypass exe not the rev tcp payload
wagle has joined #ruby
<jackiechan0>
bnagy> yeah a lot, using the standard metasploit framework you can go almost nowhere against a patched system, you need to customize it
iamjarvo has joined #ruby
<jackiechan0>
bnagy> ok cos at least i should understand step by step what this script does so at least i'll be able to do it manually
<jackiechan0>
bnagy> i did that nce that the first meterpreter/reverse_tcp shell is opened
<jackiechan0>
1) start the handler 2)upload bypassuac-x86.exe 3) upload meterpreter/reverse_tcp payload 4) execute them both 5) another meterpreter session is opened 6)get into the new meterpreter sessions 7) run migrate -f 8) meterpreter> getsystem.......
<bnagy>
right, but it's a metasploit question, not a ruby question
<jackiechan0>
but didn't worked, instead the script works 100%
<jackiechan0>
bnagy> ok i'll change chan tnx for helping
<jackiechan0>
sorry for flooding
<bnagy>
session.fs.file.upload_file("%TEMP%\\#{filename}", bpexe) <- that's alllll using metaploit code
<jackiechan0>
bnagy> yeah who wrote metasploit knows what means, they build that right?
Psantos10 has joined #ruby
<bnagy>
yeah, I mean the code is right there, but you'd need to read it :)
<jackiechan0>
;)
kil0byte has quit [Remote host closed the connection]
jackiechan0 has quit [Quit: Sto andando via]
<horseman>
bnagy: what's up
<bnagy>
horseman: meh, killin time, being sick. Can't stomach proper coding today
S1kx has quit [Quit: Leaving]
cha1tanya has joined #ruby
Psantos10 has left #ruby ["Leaving"]
<krishnaveda>
I am getting this page when I try accessing a page from the production server though I dont get this in localhost -> http://pastie.org/3890469
<bnagy>
krishnaveda: sounds like #rubyonrails
<krishnaveda>
bnagy: I accidently posted it here.. open with bothr ooms.. sorry
jimeh has quit [Ping timeout: 250 seconds]
sohocoke has joined #ruby
tomzx has joined #ruby
nipra has joined #ruby
c0rn has quit []
kil0byte has joined #ruby
sandGorgon has joined #ruby
bassplayerdoug has quit [Quit: bassplayerdoug]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
davidcelis has quit [Read error: Connection reset by peer]
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
iamjarvo has quit [Quit: Leaving.]
iocor has quit [Quit: Computer has gone to sleep.]
<horseman>
platzhirsch: believe in yourself and u can do a good job, better than anyone else because it will come from your heart
<horseman>
and what comes from your heart can never be wrong
<platzhirsch>
horseman: #defocus is the other way around :P
<graspee>
unless you are in love with a pig
kylemcgill has quit [Remote host closed the connection]
<graspee>
platzhirsch: you could take two spaces out of line 5!
ken_barber has joined #ruby
<platzhirsch>
graspee: great
<graspee>
it's a start!
<graspee>
and if you change "for i in 1..6" and "end" into "(1..6).each { }" you save 2 characters
<graspee>
wait nvm that last one
<graspee>
you'd have to add |i|
zemanel has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<graspee>
sorry i know i'm not much help. i do like puzzles though
bluenemo has joined #ruby
noodletraveler has quit [Quit: leaving]
<platzhirsch>
graspee: no worries :)
nkbuff has joined #ruby
hemanth has joined #ruby
Codif has joined #ruby
voodoofish has quit [Ping timeout: 265 seconds]
rlankfo has quit [Ping timeout: 272 seconds]
Codif has quit [Remote host closed the connection]
<Tasser>
platzhirsch, Hash.new {|h,k| h[k] = [] }
<Tasser>
platzhirsch, so you can omit line 4
hemanth has quit [Read error: Connection reset by peer]
<graspee>
cool!
<graspee>
nice one, tasser
crankycoder has joined #ruby
troessner has joined #ruby
<platzhirsch>
Tasser: excellent
hemanth has joined #ruby
<Tasser>
graspee, just some default proc
<Tasser>
ommitted in some languages due to speed reasons ;_)
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<platzhirsch>
ah now I found this example on the Hash ruby doc, too
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
ioanpaulpirau has quit [Quit: Page closed]
altious has quit [Ping timeout: 256 seconds]
tomzx has quit [Ping timeout: 252 seconds]
tk___ has joined #ruby
iocor has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
cha1tanya has quit [Ping timeout: 240 seconds]
ConstantineXVI has joined #ruby
hemanth has joined #ruby
flype has joined #ruby
liluo has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
dsgfdsg has joined #ruby
hemanth has joined #ruby
ConstantineXVI has quit [Ping timeout: 272 seconds]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
akem has quit [Quit: Forget progress by proxy. Land on your own moon.]
voodoofish has joined #ruby
Foxandxss has joined #ruby
iamjarvo has joined #ruby
<dsgfdsg>
hello
akem has joined #ruby
<dsgfdsg>
Does anyone know where I can find a complete list of changes to the Ruby core since version 1.6.8 ?
<krishnaveda>
hemanth: kaisa hai bhai /
hemanth has quit [Read error: Connection reset by peer]
jmeeuwen has quit [Read error: Connection reset by peer]
ananthakumaran1 has joined #ruby
artm has joined #ruby
Stelyos has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
jmeeuwen has joined #ruby
<apeiros_>
dsgfdsg: the ruby source contains a NEWS and a CHANGELOG
RubyBaby has joined #ruby
<Stelyos>
hello guys
<apeiros_>
enjoy. it's probably quite a huge list.
<dsgfdsg>
hey Stelyos
tommyvyo has joined #ruby
<RubyBaby>
hi babyes
Morkel has joined #ruby
<RubyBaby>
asl pls
Avishek12 has quit [Ping timeout: 260 seconds]
<RubyBaby>
(and a picture of yourself please)
Avishek12 has joined #ruby
Progster has joined #ruby
geekbri has joined #ruby
cmarques has joined #ruby
carloslopes has joined #ruby
fr0gprince_mac has joined #ruby
behr has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
malcolmva has joined #ruby
Avishek12 has quit [Ping timeout: 260 seconds]
<horseman>
apeiros_: what kind of game is d3? mmo ?
<Dratir>
RPG
foofoobar has quit [Quit: bb]
nicu_ has joined #ruby
jonathanwallace has joined #ruby
nu7hatch has joined #ruby
Resure has quit [Remote host closed the connection]
r0bby has joined #ruby
shruggar has joined #ruby
krusty_ar has joined #ruby
`brendan has joined #ruby
<RubyBaby>
a dirty game...
RubyBaby has quit [Quit: Page closed]
Dratir is now known as Dratir`
dv310p3r has quit [Ping timeout: 272 seconds]
Dratir` is now known as Dratir
<krishnaveda>
apeiros_: who is this rubybaby is he mad ?
robbyoconnor has quit [Ping timeout: 260 seconds]
hemanth has joined #ruby
<krishnaveda>
hemanth: beta :)
shruggar has quit [Ping timeout: 244 seconds]
<bluenemo>
hi guys, i have a local gem (which version is not available on rubygems anymore). i have it in my gemfile via: gem 'paperclip', "3.0.0", :path => '/foo/bar', bundle install / update works fine, however i get for bundle exec thin -e production no such file to load -- paperclip
hemanth has quit [Read error: Connection reset by peer]
fbernier has joined #ruby
hemanth has joined #ruby
nfk has quit [Ping timeout: 265 seconds]
hemanth has quit [Ping timeout: 244 seconds]
hemanth has joined #ruby
cha1tanya has joined #ruby
shruggar has joined #ruby
mrtadis has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
artm has quit [Ping timeout: 272 seconds]
hemanth has joined #ruby
nanderoo has joined #ruby
mrtadis has quit [Max SendQ exceeded]
strife25 has joined #ruby
mrtadis has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
araujo has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
javos has joined #ruby
cordoval has joined #ruby
mrtadis has quit [Ping timeout: 244 seconds]
evangelion has joined #ruby
<evangelion>
hello
hemanth has quit [Read error: Connection reset by peer]
<evangelion>
is it right? some extensions ( like libnet4r ) need ruby to be compiled with "--enable-shared" on amd64 boxes
mrtadis has joined #ruby
hemanth has joined #ruby
eka has quit [Remote host closed the connection]
<Hanmac>
evangelion is libnet4r an native gem or is it allready buided?
<evangelion>
Hanmac: native
<krishnaveda>
Hanmac: dude u know rails ?
emmanuelux has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<sonne>
that's insane indeed, but i guess it implicitly tries to install everything that matches with it
nicoulaj has joined #ruby
<Hanmac>
sonne try apt-get install ruby1.9.1
iocor has joined #ruby
<Hanmac>
or better ruby1.9.1-full
tommyvyo has joined #ruby
<sonne>
ruby1.9.1-full is already the newest version, quoth the package manager
<sonne>
anyway everything is running smoothly now, thanks for your help :)
mrtadis has quit [Max SendQ exceeded]
<Hanmac>
so you have ruby 1.9.1 allready ... if you dont want 1.8 to remove you can use update-alternatives to change where ruby and gem are pointing too
jcromartie has joined #ruby
<sonne>
Hanmac, i erased 1.8 completely before installing 1.9... i never liked 1.8 much anyway, but all ruby based packages in the distribution seem to depend on it
mrtadis has joined #ruby
<shevy>
hehehe
jgarvey has joined #ruby
geekbri has quit [Remote host closed the connection]
ubercore has joined #ruby
asteve has joined #ruby
mrtadis has quit [Ping timeout: 252 seconds]
lorandi has joined #ruby
zii has joined #ruby
mstratman has joined #ruby
<zii>
Why does Nokogiri::XML::Node#dup suck so much and how can I work around its suckagge?
mrtadis has joined #ruby
jrist-afk is now known as jrist
ivic has joined #ruby
cache_za has quit [Ping timeout: 252 seconds]
<Hanmac>
zii it has its own channel #nokogiri
cha1tanya has quit [Ping timeout: 244 seconds]
<zii>
Hanmac, Just noticed.
eka has joined #ruby
sbanwart has joined #ruby
<Muz>
I'm sure that they'd appreciate such a constructively posed question too.
dustybrains has joined #ruby
<shevy>
zii I gave up on nokogiri
<shevy>
or actually
<shevy>
on everything that involves XML in any way
<zii>
Good, well I can't do that right now. :< Job likes docx`es.
cache_za has joined #ruby
<bnagy>
instrument MS Word with win32ole instead! :D
cache_za has quit [Max SendQ exceeded]
ymasory has quit [Quit: Ex-Chat]
mrtadis has quit [Ping timeout: 244 seconds]
noganex has quit [Ping timeout: 244 seconds]
<JonnieCache>
pushing docx into nokogiri by hand aaaaaargggghhhh
<JonnieCache>
good luck
<Hanmac>
bnagy i dont think win32ole works on maybe linux
<zii>
I've got placeholders, just replacing. Still really painful.
javos_ has joined #ruby
mrtadis has joined #ruby
<zii>
The Node#dup gives me tons of headaches, it does something wonderful instead.
albemuth has joined #ruby
cache_za has joined #ruby
noganex has joined #ruby
javos has quit [Ping timeout: 245 seconds]
TheHunter_1039 has joined #ruby
mrtadis has quit [Ping timeout: 245 seconds]
cache_za has quit [Ping timeout: 250 seconds]
adambeynon has joined #ruby
fmcgeough has joined #ruby
nilg` has quit [Remote host closed the connection]
<shevy>
Hanmac do you use debian apt-get to install things?
cha1tanya has quit [Quit: Leaving]
<Hanmac>
shevy normaly yes, but i prefer to search with synaptic
mrtadis has quit [Ping timeout: 250 seconds]
ivic has quit [Quit: ivic]
mrtadis has joined #ruby
nfk has joined #ruby
classix has joined #ruby
<Tasser>
Hanmac, just a frontend ^^
graft has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
<cout>
someone help me!
<cout>
my mine has been infected by years of professional python programming!
<deryl>
if youo're looking for tools to make the commandline a bit easier for you, check out apt-file and apt-cache search (think there is also apt-search but that one i'm not sure on. been awhile)
<cout>
I can no longer use #each and must instead use for..in..do!
<cout>
I am a slave! help!
<shevy>
cout not "mine" but "mind"
<cout>
shevy: thanks :)
<shevy>
I joined #python earlier and was frustrated
<shevy>
+1000 folks there :(
<deryl>
apt-file will tell you what package owns a file and apt-cache search will make searching for a package a bit easier.
graft has joined #ruby
banseljaj is now known as imami|afk
<deryl>
(two of the hardest things people have trouble with, due to all the params that apt-get, apt, and dpkg take)
<deryl>
not sure if that will help you or not, but check em out and see if that simplifies things a bit
mrtadis has quit [Max SendQ exceeded]
bondar has joined #ruby
<cout>
I get confused between dpkg -l and dpkg -L
<shevy>
hehe
<deryl>
it still gets me occasionally :)
mrtadis has joined #ruby
<cout>
and I get annoyed that there's no apt equivalent of dpkg -s
<deryl>
-s does what again?
<cout>
(unless someone has invented one in the last few years or so)
<cout>
iirc it searches for an installed file that matches the given pattern and tells you what package it's in
<deryl>
ahh thats what apt-file does
<rking>
That's -S
<cout>
oh
<rking>
Or apt-file, yep.
digitalcakestudi has joined #ruby
<deryl>
apt-file search /full/path/to/file
<cout>
so apparently I get dpkg -s and dpkg -S mixed up too :)
<cout>
obviously dpkg was never intended to run on a TRS-80
<shevy>
hahaha
<cout>
deryl: oh excellent
<deryl>
tghats what i mean. just so many params, and not always clear which to use. hehe. i like the little helper scripts
<cout>
deryl: I grew up in a world where that didn't exist and the #debian guys told me to use some website to find that out
<DarkFoxDK>
Is there a nice way to handle getting an Array out, when the input is either a single item, or an array of items?
<arturaz>
Array(input)
<deryl>
cout, i started out on linux with SLS Linux (father of Slackware). so happy watching all the tool advancements.
<DarkFoxDK>
I find [input].flatten to be a bit ugly.
<shevy>
fun fact for you cout ... I fiddled around with things, i.e. killed perl. Then I did "apt-get installmesa-common-dev"... and I get a funny error:debconf: Perl may be unconfigured (Can't locate Debconf/Log.pm in @INC
<shevy>
it seems as if dpkg also requires a perl module called "debconf" or something
<deryl>
though now some of them are just way out there on the number of things they can do, all distilled down into one or two apps but with craploads of params
<horseman>
DarkFoxDK: as arturaz said, use Array(input)
<DarkFoxDK>
arturaz: Array(input) does nasty things to hashes... (Should maybe have specified that the input is either a hash or an array of hashes)
<cout>
shevy: that's a shame
mvangala has joined #ruby
<shevy>
hehe
<cout>
I miss the days when things were simple
<shevy>
now I wonder whether I should find out what debconf is or not
<cout>
and computers couldn't do anything useful
<shevy>
because, I myself dont use or need perl
<cout>
we just wrote demos and played outside
<shevy>
:)
<shevy>
and we used to know assembly and C
<rking>
shevy: Debian's scripts are entirely based on Perl. No Perl == No Debian.
<shevy>
horseman I am too afraid to click on your links :(
<horseman>
it's SFW :)
JohnBat26 has quit [Remote host closed the connection]
mnaser has quit [Read error: Connection reset by peer]
mnaser has joined #ruby
mnaser has quit [Changing host]
mnaser has joined #ruby
<shevy>
argh
<shevy>
ImportError: No module named zlib
<shevy>
firefox 12.0 source compilation ... why does everything depend on python these days :(
robert_ has quit [Ping timeout: 244 seconds]
axl_ has joined #ruby
adambeynon has quit [Quit: adambeynon]
Asher has joined #ruby
<shevy>
oh yeah... forgot to compile python with --with-zlib ...
<carloslopes>
shevy: hahaha i was thinking about this past days
<cout>
rking: I really don't know much about llvm; I use libjit
<cout>
rking: I just wasn't sure what llvm stuff you were referring to
<carloslopes>
shevy: at least, a huge number of debian packages depends on python
<cout>
shevy: odd that's not default
<rking>
cout: Only that there is a competitor to gcc out there, is all.
<shevy>
cout yeah, I think I actually broke my zlib instead somehow. oh well, another reason why you guys should never enter the compile-madness ...
<bnagy>
meh, just use xz for everything
<bnagy>
ok dinnertime
ecolitan has joined #ruby
bondar has quit [Ping timeout: 244 seconds]
tk___ has quit [Quit: ばいばい]
kenperkins has joined #ruby
benatwork has joined #ruby
adambeynon has joined #ruby
uris has joined #ruby
bondar has joined #ruby
nirakara has quit [Quit: This computer has gone to sleep]
jackiechan0 has joined #ruby
<Hanmac>
shevy you should more wonder why everything depends on zlib :P
thone_ has joined #ruby
<shevy>
Hanmac I am more the crazy type. I want to compile everything from source, but I dont want to understand it :)
<shevy>
zlib is fairly odd though
pen has quit [Remote host closed the connection]
iocor has quit [Quit: Computer has gone to sleep.]
ivic has joined #ruby
R3dy has joined #ruby
kenperkins has quit [Quit: Computer has gone to sleep.]
thone has quit [Ping timeout: 260 seconds]
Dan4sure_ has joined #ruby
bondar has quit [Remote host closed the connection]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
mpereira has joined #ruby
bondar has joined #ruby
DanBoy has quit [Ping timeout: 265 seconds]
jayunit100 has left #ruby [#ruby]
R3dy has quit [Ping timeout: 240 seconds]
artm has quit [Ping timeout: 248 seconds]
petercs has quit [Ping timeout: 244 seconds]
<shevy>
what annoys me the most is that there are so many different ways to install and compile something
<shevy>
we have GNU autoconfigure, make and cmake. then we have projects like openssl which use their own configure replacement "./config". now we soon have llvm clang rivaling gcc ... then there are projects that decided to use scons instead or waf ...
ananthakumaran has joined #ruby
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
<jeebster>
llvm is the devil
savage- has joined #ruby
<jeebster>
llvm + ruby is a love-hate relationship
iamlacroix has quit [Remote host closed the connection]
<shevy>
hehe
tonini has quit [Remote host closed the connection]
lorandi has quit [Remote host closed the connection]
iocor has joined #ruby
ken_barber1 has joined #ruby
ken_barber1 is now known as ken_barber_
ken_barber has quit [Disconnected by services]
ken_barber_ is now known as ken_barber
bondar has quit [Remote host closed the connection]
ken_barber has quit [Remote host closed the connection]
robert_ has joined #ruby
javos_ has quit [Quit: Leaving...]
<lectrick>
Is there anything like an instantaneous traceroute that shows the path to a destination IP? I'm surprised that TCP/IP does not seem to have this facility built in and that "traceroute" itself is really just a hack
<lectrick>
jeebster: oh, it is only the devil for now. wait a couple years.
altious has joined #ruby
nyrb has joined #ruby
strife25 has quit [Quit: Computer has gone to sleep.]
looopy has quit [Remote host closed the connection]
cache_za has quit [Read error: Connection reset by peer]
ConstantineXVI has joined #ruby
bitri has joined #ruby
nlc has joined #ruby
savage- has quit [Remote host closed the connection]
td123 has quit [Quit: WeeChat 0.3.7]
<carloslopes>
lectrick: i don't know if i understood your question.. but, there are the mtr package.. it has some improvements over traceroute.. take a look
cj3kim has joined #ruby
rippa has joined #ruby
looopy has joined #ruby
td123 has joined #ruby
behr has joined #ruby
adambeynon has quit [Quit: adambeynon]
<lectrick>
carloslopes: thanks for the heads up. will have a look.
gosshedd has quit [Ping timeout: 265 seconds]
<carloslopes>
lectrick: yw
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
Resure has joined #ruby
behr has quit [Ping timeout: 245 seconds]
behr has joined #ruby
platzhirsch has quit [Quit: Leaving.]
sandGorgon has quit [Ping timeout: 252 seconds]
Araxia has quit [Quit: Araxia]
ThatDudeGuy_ has joined #ruby
jprovazn is now known as jprovazn_away
QKO has joined #ruby
sonkei has quit [Quit: WeeChat 0.3.7]
sonkei has joined #ruby
looopy has quit [Remote host closed the connection]
ckrailo has joined #ruby
__jeroen has joined #ruby
davidcelis has quit [Quit: K-Lined]
cads has joined #ruby
<__jeroen>
hi, im trying to install gitlab, but i get some error with carrierwave: Invalid .gemspec format
<__jeroen>
any idea how i can fix this?
looopy has joined #ruby
Vert has quit [Read error: Connection reset by peer]
iamlacroix has joined #ruby
jadon has joined #ruby
artm has joined #ruby
alanp has quit [Remote host closed the connection]
jonathanwallace has quit [Remote host closed the connection]
twinturbo has quit [Quit: twinturbo]
snearch has quit [Quit: Verlassend]
solars has quit [Ping timeout: 260 seconds]
apeiros_ has quit [Remote host closed the connection]
khakimov has joined #ruby
ecolitan has quit [Read error: Connection reset by peer]
foofoobar has joined #ruby
alanp has joined #ruby
baroquebobcat has joined #ruby
jgarvey has quit [Quit: Leaving]
__jeroen has quit [Remote host closed the connection]
R3dy has joined #ruby
macmartine has joined #ruby
LiquidInsect has joined #ruby
jonathanwallace has joined #ruby
bricker88 has joined #ruby
maesbn has quit [Remote host closed the connection]
R3dy has quit [Ping timeout: 252 seconds]
mcwise has joined #ruby
brianpWins has quit [Ping timeout: 245 seconds]
jslvk has joined #ruby
jrist is now known as jrist-scrum
thecreators has joined #ruby
strife25 has joined #ruby
jcromartie has quit [Quit: jcromartie]
davidw has quit [Read error: Operation timed out]
vertroa has quit [Remote host closed the connection]
ken_barber has joined #ruby
moshee has quit [Ping timeout: 245 seconds]
moshee has joined #ruby
mcwise has quit [Ping timeout: 260 seconds]
gosshedd has joined #ruby
azm has joined #ruby
werdnativ has joined #ruby
mikepack has joined #ruby
Jackneill has quit [Ping timeout: 265 seconds]
bondar has quit []
ipoval has joined #ruby
MasterIdler has joined #ruby
jgarvey has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
Morkel has joined #ruby
lkba has joined #ruby
banseljaj is now known as imami|afk
behr has quit [Remote host closed the connection]
saschagehlich has joined #ruby
kil0byte has joined #ruby
chimkan_ has joined #ruby
zastaph has joined #ruby
petercs has joined #ruby
headius has quit [Quit: headius]
kondensatorn has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
<shevy>
wheee
kil0byte_ has quit [Ping timeout: 265 seconds]
<shevy>
Hanmac, what editor are you using?
<Hanmac>
for my gems eclipse, for my testing stuff gedit
krishnaveda has quit [Quit: Page closed]
Resure has quit [Remote host closed the connection]
jrist-scrum is now known as jrist
<shevy>
for C++ also eclipse?
<shevy>
I find it a bit difficult to adjust my brain to vim again :(
chrismcg is now known as zz_chrismcg
pzol has joined #ruby
davidcelis has joined #ruby
kil0byte_ has joined #ruby
strife25 has quit [Quit: Computer has gone to sleep.]
kil0byte has quit [Ping timeout: 248 seconds]
<deryl>
since i committed to *just* using vim, and using Practical Vim ebook, I've gotten to the point where I'm pretty ok with vim these days
oooPaul has joined #ruby
joaoh82 has joined #ruby
<deryl>
now i use just vim on my linux machines, and my MBP. (wish they had a vim for my tablet, i'd use it there too
<shevy>
deryl the keybindings in vim I like
<deryl>
they have a vim in Terminal IDE app but i mean standalone
<deryl>
shevy, yeah getting more and more used to them.
<shevy>
not so sure about the config files and all the config options, I suppose it would be better if I'd use vim every day
<shevy>
how do you work with multiple files in vim though?
cha1tanya has quit [Quit: Leaving]
mcwise has joined #ruby
evangelion has quit [Quit: Leaving]
<deryl>
:e firstr_file
<deryl>
:args app/models/*.rb
<deryl>
opens them uop in buffers
<deryl>
then you can move around to the different buffers. I have it mapped to :b # where # is the num of the buffer with the file, plus i have a vim-buffers plugin
<shevy>
hmm
<shevy>
ok
<shevy>
that's what I am going to learn today
<shevy>
vim buffers
Eldariof-ru has quit [Ping timeout: 244 seconds]
krusty_ar has quit [Read error: Connection reset by peer]
<R3dy>
I get this message: RVM is not a function, selecting rubies with 'rvm use ...' will not work.
maesbn has joined #ruby
<deryl>
nope means you're not loading it correctly and this isn't the rvm channel
sonkei has quit [Quit: WeeChat 0.3.7]
<deryl>
check your .bash_profile or .zshrc if using zsh and make sure you have the rvm sourcing line in place. if its a multi-user i'll wager you're using gnome-terminal. see rvm.io under the gnome-terminal (right side) entry for what to do. take the rest of it to #rvm
<R3dy>
I am use gnome-terminal
<R3dy>
thanks deryl I appreciate it
iocor has quit [Quit: Computer has gone to sleep.]
pazustep has joined #ruby
kenichi has joined #ruby
<deryl>
go into options and enable login shell. see the rvm site for more details
<rking>
Letting encoding issues win is like getting beat up by a declawed kitten.
<shevy>
I could use UTF-8
artm has quit [Quit: artm]
shruggar has joined #ruby
<rking>
shevy: You already kind of are using UTF-8. It has ö as c3b6 in the file.
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
<rking>
shevy: Problem's them rogues. (Though I can't be more specific without the actual data)
<shevy>
hehehe
<shevy>
damn rogues
<rking>
echo ö | recode ISO8859-1..utf8
<rking>
echo ö | recode utf8..utf8
<shevy>
well my main editor is set to the ISO thingy... I could change it to UTF-8
<shevy>
ö
<rking>
The first one says the A-Pilcrow thing.
<rking>
shevy: You must.
<rking>
All good boys and girls do.
<shevy>
ö
<shevy>
I am not seeing anything really
<shevy>
ö
<rking>
shevy: Also echo ö | xxd
<Mon_Ouie>
What's xxd?
<shevy>
0000000: c383 c2b6 0a .....
<rking>
Mon_Ouie: Hexdumper… may be a vim thing.
crodas has quit [Ping timeout: 245 seconds]
<shevy>
indeed, part of vim
<shevy>
rking, how comes you use gentoo and not ... hmm... let's say... debian!
<rking>
shevy: Right.. see that c3? It's the signifier that you're dealing with a multibyte character, not-ASCII.
<rking>
shevy: But if you decode c3 in ISO-8859-1, you'll get the Ã.
alexim has joined #ruby
<shevy>
you know what
<shevy>
those rogues will all die
<shevy>
DIE
<shevy>
DIE!!!
strife25 has joined #ruby
<rking>
shevy: I shelved Debian after a 16-year unbroken chain of installs, and I'm very glad I did. Gentoo is more powerful, and it's easier to know when you're doing something volatile. Re: volatility, Debian gives you the choice between an ancient set of versions or an edge so bleeding that the average aptitude upgrade is likely to leave you with a 2 hour mess on your hands.
<shevy>
hehe
<shevy>
I think the last time I tried gentoo was 5 years ago on an old laptop
Eldariof-ru has joined #ruby
<shevy>
I compiled over night, when I woke up and looked, errors happened and it did not finish. that was frustrating. :(
<Synthead>
anyone here familiar with net-ssh?
havenn has quit [Remote host closed the connection]
<rking>
I still have no clue how it purports to resolve problems. `aptitude install xeyes` ==> `Conflicts. Solution #1: remove libc, grub, apache...?`
brianpWins has joined #ruby
walbert has quit []
<shevy>
hehehe
havenn has joined #ruby
<shevy>
hmm
<shevy>
rking I need to convince my brain to switch to UTF-8
JamieD has joined #ruby
two- has quit [Quit: Computer has gone to sleep.]
<rking>
shevy: I have a baseball bat that should also be effective in convincing said head.
<shevy>
no I need subtle hints
strnx has quit [Excess Flood]
<shevy>
something like "Using UTF-8 will solve all your problems."
cads has quit [Ping timeout: 272 seconds]
<shevy>
perhaps utf8 is not so bad
strnx has joined #ruby
cads has joined #ruby
krz has joined #ruby
shruggar has quit [Ping timeout: 244 seconds]
<dkr>
unicode will help us achieve world peace
albemuth has quit [Read error: Connection reset by peer]
ben225_ has quit [Quit: Computer has gone to sleep.]
krz has quit [Read error: Connection reset by peer]
shadoi1 has joined #ruby
shadoi has quit [Read error: Connection reset by peer]
crodas has joined #ruby
nilg` has joined #ruby
cads has quit [Read error: Connection reset by peer]
iamlacroix has quit [Remote host closed the connection]
kpshek has joined #ruby
robotmay has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
gabi__purcaru has joined #ruby
ramblex has quit [Ping timeout: 252 seconds]
iamlacroix has joined #ruby
<gabi__purcaru>
hello
LyonJT is now known as LyonJTill
<gabi__purcaru>
anyone willing to help a poor newbie? I keep getting an error and can't figure out what's wrong. Here's the code: http://ideone.com/XDGbq
td123 has quit [Read error: Connection reset by peer]
<burgestrand>
gabi__purcaru: what is inside @scrape_url?
Vert has joined #ruby
kirun has joined #ruby
<burgestrand>
gabi__purcaru: you do know that @-prefixed names are instance *variables*?
jwbuurlage has quit [Quit: jwbuurlage]
ghanima has joined #ruby
tilde` has quit [Read error: Connection reset by peer]
<burgestrand>
gabi__purcaru: if you want to call methods, just name them, e.g. url = get_new_url
<gabi__purcaru>
yes, I do
dkissell has quit [Quit: dkissell]
<gabi__purcaru>
scrape_url is a method inside the same class
<rking>
Is there a gem that does ARGV handling with sub-commands? E.g., how there are options to git: git -x -y --global-opts cmd -a -b --cmd-opts
nfluxx has quit [Ping timeout: 272 seconds]
Kwpolska has joined #ruby
crekev has joined #ruby
banseljaj is now known as imami|afk
wvdschel has joined #ruby
wvdschel has quit [Changing host]
wvdschel has joined #ruby
nfluxx has joined #ruby
maesbn has joined #ruby
strife25 has quit [Quit: Computer has gone to sleep.]
nfluxx has quit [Read error: Connection reset by peer]
wvms has joined #ruby
<eph3meral>
once I've forked, how can i, or can i, send signals to each fork?
<eph3meral>
i don't need to share data between the forks, but I can't exit my program anymore using CTRL-c
nfluxx has joined #ruby
Morkel has joined #ruby
<eph3meral>
in my original non-forked version I'm capturing CTRL-c and then running some cleanup methods, I would like to tell each fork to run its respective cleanup method and then exit
timonv has joined #ruby
ghanima has quit [Ping timeout: 244 seconds]
ivic has joined #ruby
_whitelogger has joined #ruby
<eph3meral>
so far my google results are pretty thin on addressing this actual issue/behavior
Kabaka has quit [Quit: Rebooting for kernel update.]
<apeiros_>
eph3meral: sigint is sent to both, parent and child
Natch| has quit [Remote host closed the connection]
<eph3meral>
apeiros_, but if I uncomment the fork, and rerun, it never catches CTRL-c
<eph3meral>
so I can't ever exit unless I just close my terminal
Jake232 has joined #ruby
<eph3meral>
and this is before I've even attempted to personally/manually catch SIGINT and handle it myself (i.e. by doing cleanup)
Shoobdidoo has quit [Remote host closed the connection]
yoklov has joined #ruby
saschagehlich has quit [Ping timeout: 265 seconds]
codezombie has joined #ruby
<eph3meral>
apeiros_, hmm, so if I'm not mistaken, the code you pasted actually doesn't work... at least it doesn't work for me in practice, maybe I'm doing it wrong: http://pastie.org/private/eck77lpreirkqfyhaecgba
abra has quit [Ping timeout: 276 seconds]
werdnativ has quit [Quit: werdnativ]
Natch| has joined #ruby
<eph3meral>
apeiros_, yeah actually I'm not sure why that doesn't work, it looks identical to what you've written
moshef has joined #ruby
ephemerian has joined #ruby
fukushim_ has quit [Quit: Leaving...]
ivic has joined #ruby
artm has joined #ruby
<apeiros_>
eph3meral: if my example works for you (i.e., it's no platform specific issue), then something else goes wrong…
<eph3meral>
ahh, it seems maybe I'm missing the "sleep" at the very end?
fukushima has joined #ruby
ramblex has joined #ruby
<eph3meral>
yes, that must be it actually
<eph3meral>
the parent process needs to stay active somehow, otherwise I think it exits and the forks keep going
<apeiros_>
yes
<apeiros_>
when the parent exits, so will the forks
<apeiros_>
you can use Process.wait
mike3 has joined #ruby
<apeiros_>
or - if you use the fork gem - Fork#wait
<delinquentme>
is this a .rb file which contains ERB code?
pazustep has quit [Remote host closed the connection]
Dr4g has joined #ruby
<delinquentme>
because thats what it looks like ... and if thats the case .. how does this work?
TorpedoSkyline has joined #ruby
jrist is now known as jrist-afk
pydave6357 has quit [Read error: Operation timed out]
Foxandxss has joined #ruby
Guest72290 has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
TorpedoSkyline has quit [Client Quit]
SeanTAllen has joined #ruby
TorpedoSkyline has joined #ruby
MetaCosm has joined #ruby
davidw has joined #ruby
davidw is now known as Guest66906
apok has quit [Remote host closed the connection]
phantasm66 has quit [Quit: *sleeeeep*]
rasbonics has quit [Quit: rasbonics]
_md has quit [Quit: Leaving...]
srid_ has joined #ruby
srid_ has joined #ruby
srid_ has quit [Changing host]
srid_ has joined #ruby
srid_ has quit [Changing host]
fermion has quit [Quit: P]
apok has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
altious has joined #ruby
dotemacs has joined #ruby
chimkan_ has quit [Quit: chimkan_]
iocor has joined #ruby
ctwiz has quit [Ping timeout: 244 seconds]
iocor has quit [Changing host]
iocor has joined #ruby
relix has joined #ruby
ctwiz has joined #ruby
rasbonics has joined #ruby
Eldariof-ru has quit []
robotmay has joined #ruby
albemuth has quit [Quit: Leaving...]
werdnativ has joined #ruby
Deesl has quit [Quit: Leaving...]
yxhuvud has quit [Ping timeout: 250 seconds]
iocor has quit [Quit: Computer has gone to sleep.]
noganex has quit [Ping timeout: 240 seconds]
saschagehlich has joined #ruby
abra has quit [Remote host closed the connection]
andrewh has joined #ruby
noganex has joined #ruby
TheFuzzb_ has quit [Quit: Leaving...]
ghanima has joined #ruby
eugynon has joined #ruby
TheFuzzball has joined #ruby
ctwiz has quit [Ping timeout: 265 seconds]
looopy has quit [Remote host closed the connection]
brianpWins has joined #ruby
dkannan has joined #ruby
showy has joined #ruby
strife25 has joined #ruby
eph3meral has quit [Quit: Leaving]
gmci has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
twinturbo has quit [Quit: twinturbo]
<burgestrand1>
delinquentme: yes, what is strange about it? file endings are just superficial, they don’t matter apart from being conventional
burgestrand1 is now known as burgestrand
<showy>
hi, going through the koans there is a question that im unable to answer... why would i prefer an array of strings instead of an array of symbols if im to use include? ?
phantasm66 has joined #ruby
LBRapid has quit [Ping timeout: 252 seconds]
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
<burgestrand>
you might as well just make a sinatra.exe and put ruby code in it; it would be a bit funny, but perfectly valid
<burgestrand>
or distribute all your ruby projects with .pdf
Bosma has quit [Quit: Lost terminal]
LBRapid has joined #ruby
looopy has joined #ruby
<burgestrand>
showy: because "require" itself works in strings and not symbols
<burgestrand>
possibly?
workmad3 has quit [Ping timeout: 272 seconds]
andrewhl has joined #ruby
apok has quit [Quit: apok]
SPYGAME has quit [Ping timeout: 252 seconds]
ctwiz has joined #ruby
eywu has quit [Ping timeout: 272 seconds]
wargasm has joined #ruby
tvw has joined #ruby
Guedes is now known as Guedes_out
jrist-afk is now known as jrist
fbernier has quit [Ping timeout: 272 seconds]
albemuth has joined #ruby
zastaph has quit []
robotmay has quit [Remote host closed the connection]
<showy>
sym == sym is better that string == string
fr0gprince_mac has quit [Ping timeout: 256 seconds]
<showy>
array.include? being array a collection of symbols wouldn'et be faster ?
zommi has quit [Remote host closed the connection]
<carloslopes>
showy: sure.. but require needs a string as argument..
<apeiros_>
I didn't see showy mentioning require…
djmitche has joined #ruby
Progster has quit [Ping timeout: 244 seconds]
<showy>
i dont get the require argument
<apeiros_>
he said include?, which is an Array/Enumerable method
<showy>
apeiros: thx
<carloslopes>
apeiros_: he said require before :)
wvdschel_ has joined #ruby
<apeiros_>
and yes showy, ary_of_syms.include?(sym) would be faster than ary_of_str.include?(str)
<apeiros_>
carloslopes: when?
<djmitche>
I'm trying to diagnose some ssl verify errors, and I can't find docs or source for the OpenSSL::X509::StoreContext object that is passed to the verify_callback
<apeiros_>
carloslopes: not doubting it, just can't see it in my backlog…
<carloslopes>
apeiros_: sorry, i saw burgestrand answering this 'showy: because "require" itself works in strings and not symbols' and talk about this too :/
<showy>
apeiros_: my initial question was about the koans.. in the symbols (about_symbols) , they collect symbols converted to strngs Symbols.all_symbols.map { |x| x.to_str } , and make questioning myself why would i do that
<apeiros_>
showy: I don't know the koans or the context, sorry.
<showy>
i c
<showy>
thx anyway
iocor has joined #ruby
kpshek has joined #ruby
sungnyc has quit [Quit: Leaving]
exchgr has joined #ruby
kevinbond has joined #ruby
eph3meral has joined #ruby
<djmitche>
I guess .methods is my friend :(
elake has joined #ruby
ben225 has quit [Quit: Computer has gone to sleep.]
etank has quit [Ping timeout: 248 seconds]
francisfish has quit [Remote host closed the connection]
Watcher7 has quit [Read error: Connection reset by peer]
<Na_Klar>
more or less ..
<apeiros_>
no
<Na_Klar>
well, okay
<apeiros_>
its internal implementation is.
<apeiros_>
but that doesn't matter.
<apeiros_>
not for this anyway.
<Na_Klar>
apeiros_: why the 0x hexa-decimal sign at the beginning of the string?
<apeiros_>
it's not a string. I asked you whether you have a string or a number.
<Na_Klar>
ic
<apeiros_>
0xff.class # => Fixnum
ben225 has quit [Quit: Computer has gone to sleep.]
<Na_Klar>
yap
<apeiros_>
0xff # => 255
<apeiros_>
if you have a string like "\x15\n\xD4\x00", there's nothing you need to do at all. just write it.
<Na_Klar>
yea
indian has joined #ruby
chson has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Leaving...]
Dan4sure_ is now known as DanBoy
<Na_Klar>
apeiros_: what does the "*" do?
jlogsdon has quit [Remote host closed the connection]
<apeiros_>
tells pack to process as many integers as there are left in the array.
<Na_Klar>
ic
andrewh has quit [Ping timeout: 272 seconds]
<Na_Klar>
apeiros_: why did you assume that I need unsigned big-endian?
<apeiros_>
23:52 Na_Klar: How do I write hexa-decimal values to a file? It makes no sence to write "150AD4" but I need "\x15\x0A\xD4" ..
darkmethod has joined #ruby
joaoh82 has quit [Remote host closed the connection]
ben225 has joined #ruby
ben225 has quit [Client Quit]
altious has quit [Quit: Leaving]
<Na_Klar>
apeiros_: ah I see .. so my fault. In fact I need a little-endian byte order. \xFE\xFF is FFFE
<Na_Klar>
that
<Na_Klar>
sry
<Tasser>
Na_Klar, pack/unpack I'd say
<apeiros_>
check pack docs then
<Na_Klar>
ok
<apeiros_>
I never needed anything but N
<Na_Klar>
apeiros_: I write a code to re-write some wave files. the data blocks are little-endian .. not completely sure about the headers ..
DRCALKIN has joined #ruby
<apeiros_>
sorry, gotta get to sleep. n8
apeiros_ has quit [Remote host closed the connection]
looopy has joined #ruby
ben225 has joined #ruby
darkmethod has left #ruby ["Leaving..."]
locriani has quit [Remote host closed the connection]
ubercore has quit [Quit: Computer has gone to sleep.]
piotr__ has quit [Ping timeout: 272 seconds]
andyl has quit [Quit: WeeChat 0.3.0]
dv310p3r has quit [Ping timeout: 272 seconds]
mdhopkins has joined #ruby
AlbireoX has joined #ruby
n_mouse has joined #ruby
Lexer has joined #ruby
joaoh82 has joined #ruby
Lexer has left #ruby ["Leaving"]
mike has joined #ruby
mike is now known as Guest13696
Xylo1 has joined #ruby
Xylo has quit [Ping timeout: 272 seconds]
<delinquentme>
so I want to append a hash to a hash of hashes
KensoDev has quit [Remote host closed the connection]
notwen has joined #ruby
bashdy has quit [Quit: bashdy]
<delinquentme>
in a similar manner to [[],[]] << [] == [[],[],[]]
<delinquentme>
I've got multiple KV pairs
<canton7>
delinquentme, give us a trivial example? right now I don't know whether you want to merge the two, or add the second under a key in the first
Gavilan has joined #ruby
n_mouse has left #ruby ["Leaving"]
<delinquentme>
canton7, [ {"paper_name":"A"}, {"paper_name":"B"} ] and I'd like to add a {"paper_name":"C"}
<delinquentme>
the : should be => but yeah
andrewhl has quit [Quit: andrewhl]
<canton7>
delinquentme, so it's an array of hashes? not a hash of hashes like you said?
<delinquentme>
so the end product would be: [ {"paper_name":"A"}, {"paper_name":"B"},{"paper_name":"C"} ]
<delinquentme>
correct
<canton7>
a = [ {"paper_name":"A"}, {"paper_name":"B"}]; a << {"paper_name":"C"}
Foxandxss has joined #ruby
<delinquentme>
yeap lol so it was <<
<delinquentme>
tanks !
<canton7>
:)
Guest13696 has quit [Quit: WeeChat 0.3.7]
perlsyntax has joined #ruby
mike3 has joined #ruby
<delinquentme>
canton7, any advice on when to use hashes vrs arrays?
jchauncey has joined #ruby
<delinquentme>
My first guess would be " How do you plan to retrieve it"
<delinquentme>
index vrs key
<canton7>
hashes are for relationships between keys and values; arrays are for ordered (or unordered) sets of data
nyrb has quit [Remote host closed the connection]
Foxandxss has quit [Ping timeout: 248 seconds]
krusty_ar has quit [Quit: No Ping reply in 180 seconds.]
krusty_ar has joined #ruby
aruntomar has quit [Quit: Leaving]
Vainoharhainen has joined #ruby
RORgasm has quit [Remote host closed the connection]
Xylo1 has quit [Quit: Leaving.]
d3c has joined #ruby
krusty_ar has quit [Remote host closed the connection]
zii has quit [Ping timeout: 244 seconds]
havenn has joined #ruby
kirun has quit [Quit: Client exiting]
robotmay has joined #ruby
mxweas_ has quit [Quit: Computer has gone to sleep.]
jeebster has quit [Quit: Leaving.]
froy has quit [Ping timeout: 256 seconds]
Vainoharhainen has quit [Quit: Leaving...]
mxweas_ has joined #ruby
testing has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
Foxandxss has joined #ruby
mxweas_ has quit [Client Quit]
jgarvey has quit [Quit: Leaving]
<CannedCorn>
hey guys
<CannedCorn>
is there a way to convert time from a 64bit int into a time object in ruby
Squarepy has quit [Quit: Leaving]
chimkan_ has quit [Quit: chimkan_]
Foxandxss has quit [Ping timeout: 244 seconds]
chimkan_ has joined #ruby
DRCALKIN has quit [Quit: Leaving]
raul782 has joined #ruby
ramblex has quit [Ping timeout: 250 seconds]
solars has quit [Ping timeout: 256 seconds]
chimkan_ has quit [Remote host closed the connection]
chimkan_ has joined #ruby
etehtsea has quit []
<Tasser>
CannedCorn, try Time.new
Ontolog has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
CannedCorn has quit [Ping timeout: 245 seconds]
blacktulip has quit [Remote host closed the connection]
DRCALKIN has joined #ruby
Deesl has joined #ruby
timonv has quit [Remote host closed the connection]
ken_barber has quit [Ping timeout: 245 seconds]
Deesl has quit [Changing host]
Deesl has joined #ruby
elake has quit [Read error: Operation timed out]
_JamieD_ has quit [Quit: _JamieD_]
_JamieD_ has joined #ruby
_JamieD_ has quit [Client Quit]
showy has joined #ruby
indian has quit [Read error: Operation timed out]
mikepack has quit [Ping timeout: 265 seconds]
greyEAX has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
minijupe has quit [Quit: minijupe]
Foxandxss has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
d3c has quit [Read error: Connection reset by peer]
greyEAX has joined #ruby
minijupe has joined #ruby
davidpk has quit [Quit: Computer has gone to sleep.]
looopy has quit [Remote host closed the connection]
chimkan___ has joined #ruby
thecreators has quit [Quit: thecreators]
looopy has joined #ruby
chimkan___ has quit [Remote host closed the connection]
nyrb has joined #ruby
chimkan___ has joined #ruby
lord_daemon has joined #ruby
lord_daemon has quit [Changing host]
lord_daemon has joined #ruby
stewart_ has joined #ruby
testing has joined #ruby
chimkan_ has quit [Ping timeout: 245 seconds]
danheberden has quit [Quit: oh noes]
nari has joined #ruby
nobitanobi has joined #ruby
MasterIdler_ has joined #ruby
MasterIdler_ has quit [Client Quit]
<nobitanobi>
Given a string object like "Hi my name is John (aka Johnator)" -- What is the easiest way to get what is between the parentheses in Ruby? Using Regex?
<Na_Klar>
if I do not file.flush (when writing) the buffer (RAM) gets filled. How can I check how much data in the buffer is?
Ontolog has quit [Remote host closed the connection]
macmartine has quit [Quit: macmartine]
Ontolog has joined #ruby
danheberden has joined #ruby
danheberden has quit [Excess Flood]
yoklov has quit [Quit: computer sleeping]
CoverSlide has quit [Read error: Connection reset by peer]
danheberden has joined #ruby
MasterIdler has quit [Ping timeout: 252 seconds]
macmartine has joined #ruby
nari has quit [Ping timeout: 252 seconds]
Ontolog has quit [Ping timeout: 265 seconds]
ephemerian has quit [Quit: Leaving.]
nyrb has quit [Remote host closed the connection]
mdhopkins has quit [Quit: mdhopkins]
chimkan___ has quit [Read error: Connection reset by peer]
chimkan__ has joined #ruby
chimkan__ has quit [Remote host closed the connection]
elake has joined #ruby
chimkan_ has joined #ruby
kil0byte has joined #ruby
minijupe has quit [Quit: minijupe]
iamjarvo has joined #ruby
mikeg has joined #ruby
uris has quit [Quit: leaving]
strife25 has quit [Quit: Computer has gone to sleep.]
Ttech is now known as [__]
[__] is now known as Ttech
LyonJT has joined #ruby
ben225 has quit [Ping timeout: 248 seconds]
tomzx has joined #ruby
Beoran has quit [Ping timeout: 244 seconds]
perryh_away is now known as perryh
nu7hatch has left #ruby [#ruby]
headius has quit [Quit: headius]
Deesl has quit [Read error: Connection reset by peer]
petercs has quit [Quit: Leaving.]
Nicke\ has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
rbanffy has quit [Read error: Operation timed out]
froy has joined #ruby
jrgifford has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
<showy>
nobitanobi: str[/\(.*\)/]
Beoran has joined #ruby
xyzodiac has joined #ruby
bluenemo has quit [Quit: leaving]
RudyValencia has joined #ruby
xyzodiac has quit [Quit: WeeChat 0.3.7]
xyzodiac has joined #ruby
moshee has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
peterhil` has quit [Ping timeout: 260 seconds]
Dratir has joined #ruby
baroquebobcat has quit [Ping timeout: 244 seconds]
ben225 has joined #ruby
nari has joined #ruby
albemuth has quit [Read error: Connection reset by peer]
IPGlider has quit []
ph^ has quit [Remote host closed the connection]
subbyyy has joined #ruby
subbyyy has quit [Max SendQ exceeded]
kenperkins has quit [Read error: Operation timed out]
duck_puncher has left #ruby [#ruby]
subbyyy has joined #ruby
cbuxton1 has quit [Quit: Leaving.]
cbuxton has joined #ruby
headius has joined #ruby
albemuth has joined #ruby
fbernier has joined #ruby
strife25 has joined #ruby
rorrego has quit [Quit: Ex-Chat]
oooPaul has quit [Quit: Ciao for now!]
mengu has quit [Remote host closed the connection]