skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d5sx43 has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 260 seconds]
exadeci has joined #ruby
JDiPierro has quit [Remote host closed the connection]
citrusfizz has joined #ruby
d5sx43 has joined #ruby
<dopie>
:Gwrite | :GCommit -m "work in progress | :Gpush
edwinvdgraaf has quit [Remote host closed the connection]
<dopie>
I can do something like that
<dopie>
:Gwrite | :GCommit -m "work in progress" | :Gpush
thomcom has joined #ruby
d5sx43 has quit [Client Quit]
Yzguy has quit [Read error: Connection reset by peer]
weemsledeux has joined #ruby
freerobby has joined #ruby
cschneid_ has quit [Remote host closed the connection]
freerobby has quit [Client Quit]
<Ox0dea>
/part #vim
Vertroa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dopie>
Not an editor command: :Gcommit -m "WIP" | :GPush
<dopie>
errr
<dopie>
wrong channel
jbrhbr has quit [Quit: Leaving.]
dlitvak has joined #ruby
dlitvak has quit [Remote host closed the connection]
<Ox0dea>
Majora_: The board should be a flat, nine-element array whose elements represent either an as yet unplayed cell or a played one, for which there are two possibilities in the latter case.
dlitvak has joined #ruby
<Ox0dea>
The ternary number 201120102 represents a win for player 2.
<Ox0dea>
And also that player 1 is maybe retarded.
<Ox0dea>
shevy: That reminded me of proposals to have `enddd` be equivalent to `end end end`.
<Ox0dea>
Which subsequently reminded me of Lisp's `cadddr`.
dkam_______ has joined #ruby
gambl0re has quit []
rodfersou has quit [Quit: leaving]
Lucky__ has joined #ruby
<kspencer>
grr I don't know whether its a timeout issue or a agent issue, but I can't grab data via script, but I can via browser, and I'm making my bot send what it has to, the only thing is its grabbing at a doctype that shouldn't be there, considering :layout => false etc.
dkam_______ has quit [Ping timeout: 265 seconds]
<Ox0dea>
kspencer: Er, you're obviously not making your bot send what it has to.
<Ox0dea>
The data you send is the server's only means of determining whether you're a browser or a bot.
choke has quit [Ping timeout: 265 seconds]
ta0 has quit [Ping timeout: 265 seconds]
guacamol_ has joined #ruby
colegatron has joined #ruby
KineticX has joined #ruby
choke has joined #ruby
<Ox0dea>
kspencer: I'd advise using your browser's developer console to see what all's being sent.
<Ox0dea>
Chromium's "Copy as cURL" is pretty nifty.
guacamole has quit [Ping timeout: 265 seconds]
arescorpio has joined #ruby
baweaver has joined #ruby
kgirthofer has quit [Ping timeout: 272 seconds]
hannelita has quit [Remote host closed the connection]
neanderslob_ has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
casadei has quit [Remote host closed the connection]
<ruboto>
diegoviola, "Best" and "better" are subjective. Try to use a different term.
choke has quit [Ping timeout: 265 seconds]
<diegoviola>
"I don't know what I'm talking about", is that more subjective?
<diegoviola>
just kidding
janebootydoe has joined #ruby
<Ox0dea>
Date should probably have #pred, but even if it did, #prev_day is more intention-revealing.
<Ox0dea>
Are you looking for critique of your format string or something?
<darix>
also it is pretty short already
<diegoviola>
yes
<al2o3-cr>
(Date.today-1).strftime("%F") shorter don't know if it's better :P
<chipotle>
this is a stupid question but i'm thinking of rewriting my drupal 7 personal site in http://nanoc.ws or maybe even http://jekyllrb.com, both of which are static frameworks. does that mean i can't have any dynamic content on it, like a block that shows "top posters" or "recent comments" etc? what about comments? can i integrate disquis or facebook comments on the site? if so, is there a way to have dynamic blocks like the ones i've mentioned?
choke has joined #ruby
<chipotle>
it's my first ruby website, i thought nanoc or jekyll would be good places to start. if it goes well (i don't like drupal 8 and i'm doing less and less work with drupal 7), i wanted to convert another site i have that has a module called organic groups, which is basically like a facebook group where users can post to, like a forum, but somewhat differently, to a ruby framework but i assume using nanoc and jekyll are out, so that leaves me with sinatra or
<chipotle>
RoR?
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
hannelita has quit [Ping timeout: 240 seconds]
<ceej>
evening! Is there a better way to get the value of number? https://repl.it/BcWt/0
vikas027 has joined #ruby
<Ox0dea>
ceej: Are you on Ruby 2.3?
<darix>
diegoviola: %F ;)
<darix>
but it isnt saving you that much
Jardayn has quit [Quit: Leaving]
<ceej>
Ox0dea: we will be soon
<Ox0dea>
ceej: You could use Hash#dig if you were.
atomical_ has joined #ruby
<Ox0dea>
That'd be `hash.dig(*keys)` in your example.
<diegoviola>
ty
DLSteve has joined #ruby
<ceej>
whoa... now I've got to go through all the changes.... what would you do in version 2.2?
<Ox0dea>
ceej: Without #dig, you could say `keys.reduce(hash, :[])`.
roshanavand has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 265 seconds]
infinitone has quit [Remote host closed the connection]
casadei has joined #ruby
bkxd has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
cmolenda has joined #ruby
guacamole has joined #ruby
dorei has quit [Ping timeout: 260 seconds]
m3troX has joined #ruby
underplank has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
dorei has joined #ruby
<chipotle>
darix: thanks. but what about having blocks that updated based on info, like top posts, most recent posts, top comments? is that possible with with nanoc or jekyll
hxegon is now known as hxegon_AFK
guacamol_ has quit [Ping timeout: 265 seconds]
underplank has quit [Client Quit]
gambl0re has joined #ruby
marr has quit [Ping timeout: 250 seconds]
Contigi777 has quit [Quit: Leaving]
agentmeerkat has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
certainty has joined #ruby
Rickmasta has joined #ruby
underplank has joined #ruby
guacamole has quit [Ping timeout: 265 seconds]
m3troX1 has joined #ruby
<darix>
chipotle: sure. but you would probably grab that via JS if you use discourse for comments.
m3troX has quit [Ping timeout: 245 seconds]
<darix>
chipotle: checkout how we use it
Rickmasta has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
cmolenda_ has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
cmolenda_ has quit [Remote host closed the connection]
CorySimmons has joined #ruby
xelkarin has quit [Quit: WeeChat 1.1.1]
roshanavand has joined #ruby
cmolenda has quit [Ping timeout: 265 seconds]
davedev24 has joined #ruby
davedev2_ has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
kgirthofer has joined #ruby
SCHAAP137 has joined #ruby
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<diegoviola>
I wonder why this returns an empty array when I put that code inside the import method
<diegoviola>
when it doesn't have any methods I get data
pietr0 has quit [Quit: pietr0]
<kspencer>
Ox0dea: I have every bit of into, and I still get the doctype thing
ixti has quit [Quit: WeeChat 1.3]
<kspencer>
info*
symbol_ has joined #ruby
chimche has quit [Quit: Leaving.]
bricker has quit [Ping timeout: 260 seconds]
duckpuppy has joined #ruby
hxegon_AFK has quit [Quit: BRB]
Prominent has joined #ruby
<Ox0dea>
kspencer: I won't trouble you to be more specific about what you're doing just yet, but it might be the case that you're forgetting to send some kind of session cookie along with your request.
smactive has quit [Remote host closed the connection]
choke has quit [Ping timeout: 265 seconds]
<al2o3-cr>
diegoviola: you might wanna change your passwd pdq
<Ox0dea>
If you're really sending exactly the same data as your browser, the server has no choice but to send you back the same response.
choke has joined #ruby
roshanavand has quit [Remote host closed the connection]
bb010g has quit [Quit: Connection closed for inactivity]
decoponio has quit [Quit: Leaving...]
baweaver has joined #ruby
dkam_______ has joined #ruby
yfeldblum has joined #ruby
duckpuppy has quit [Ping timeout: 246 seconds]
lemur has joined #ruby
roshanavand has joined #ruby
antgel has quit [Ping timeout: 265 seconds]
mjuszczak has quit []
chipotle has joined #ruby
user083 has quit [Ping timeout: 276 seconds]
KineticX has joined #ruby
chimche has joined #ruby
user083 has joined #ruby
<diegoviola>
I'm using mechanize in order to download some xls file, the output it's returning is just plain HTML
<diegoviola>
how should I parse this?
<al2o3-cr>
diegoviola: nokogiri?
<al2o3-cr>
Oga?
gatman has quit []
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mfb2_ has quit [Remote host closed the connection]
<Ox0dea>
diegoviola: Please change your password.
symbol_ has quit [Quit: WeeChat 1.1]
lemur has quit [Ping timeout: 255 seconds]
dkam_______ has quit [Ping timeout: 276 seconds]
KineticX has quit [Ping timeout: 240 seconds]
mistermo_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
underplank has quit [Quit: underplank]
user083 has quit [Ping timeout: 272 seconds]
user083_ has joined #ruby
foureight84_ has joined #ruby
Majora_ has joined #ruby
<diegoviola>
ok
<diegoviola>
how should I parse that data though?
<Majora_>
Ox0dea: Sorry I just read your messages.
scripore has joined #ruby
<diegoviola>
is parsing HTML a PITA?
choke has quit [Ping timeout: 265 seconds]
govg has quit [Ping timeout: 276 seconds]
choke has joined #ruby
mistermo_ has quit [Ping timeout: 265 seconds]
ertertert has joined #ruby
<ertertert>
Hello !
<ertertert>
I'm having some trouble to setup React.rb with Rails, basically I followed the guide, but I have this weird issue : "Could not obtain ExecJS runtime context"
saneax_AFK is now known as saneax
<ertertert>
I can't seem to find anything anywhere on this issue, like no one ever had this one before me ?
chimche has quit [Quit: Leaving.]
saneax is now known as Guest47321
<Ox0dea>
Wow, that is weird.
<chipotle>
darix: looking now
mary5030 has quit [Remote host closed the connection]
<ertertert>
I really have no idea where to search for some useful info, could it mean that I'm somehow missing ExecJS ?
dlitvak has joined #ruby
bricker has joined #ruby
<Ox0dea>
ertertert: The phrase "runtime context" doesn't even appear in the source tree for either project. :<
<shevy>
most rails users are on #rubyonrails
<chipotle>
but if create dynamic blocks that updated based on whatever info i give it (like top comments, top posts, recent posts etc), is it now getting silly to use a static framework like jekyll adn nano at this point? should i just use RoR, sinatra or some other dynamic ruby framework?
<ertertert>
shevy oh thanks I was looking for it
<ertertert>
Ox0dea I know weird huh? searching for it on google with quotes, litterally return 0 result
foureight84_ has quit [Quit: Be back later ...]
<Ox0dea>
ertertert: Yeah, I saw that too.
wolffles has joined #ruby
CorySimmons has quit [Quit: Bye!]
<Ox0dea>
Can you say whether you're doing anything a little unorthodox?
<ertertert>
Calling render_component trigger the error apparently
ertertert is now known as mardina
<chipotle>
Drakx: cool site! are you a photographer too?
smactive has joined #ruby
mardina is now known as testtest
<chipotle>
Drakx: https://discuss.pixls.us/ is this page a table? or it's using disquis? i'm a bit confused?
testtest is now known as zerjh
roshanavand has quit [Remote host closed the connection]
<Ox0dea>
zerjh: You don't have v8 installed.
<Ox0dea>
Gotta get your vegetables.
<zerjh>
(sorry I'm fighting with NickServ)
craysiii has quit [Quit: Leaving.]
usershell has joined #ruby
stannard has joined #ruby
<zerjh>
But I have NodeJS available so it should work, and ExecJS should trigger "can't find JS runtime" if it can't find V8 or so
craysiii has joined #ruby
craysiii has quit [Max SendQ exceeded]
<Ox0dea>
Very strange.
<zerjh>
NO I know, you 're probably right actually, does rails execute itself in a "virtual" environment like cygwin ? if so, it might not find my windws nodejs
iateadonut has joined #ruby
usershell has quit [Remote host closed the connection]
craysiii has joined #ruby
zerjh is now known as ertertert
SCHAAP137 has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<ertertert>
(yes I'm executing on Windows)
<Ox0dea>
I know.
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<diegoviola>
is html painful to parse?
renatosilva has joined #ruby
cmolenda has joined #ruby
dfockler has joined #ruby
bb010g has joined #ruby
davedev2_ has joined #ruby
KineticX has joined #ruby
<Ox0dea>
ertertert: It's hard to say why it's not complaining sooner; that error does seem to be coming from the renderer.
<Ox0dea>
Some kind of lazy evaluation, perhaps. It doesn't actually try to *use* v8 until it absolutely has to.
whippythellama has quit [Ping timeout: 240 seconds]
<ertertert>
But I don't get what EXACTLY it's complaining abiyt
<ertertert>
about *
<ertertert>
It's not like I could install v8 itself, or can I ?
<Ox0dea>
That's basically a synonym for Node.
<ertertert>
Yeah so I do have it
davedev24 has quit [Ping timeout: 260 seconds]
<Ox0dea>
You just don't have everything wired together properly.
<Ox0dea>
Did it get installed somewhere weird?
KineticX has quit [Ping timeout: 276 seconds]
<ertertert>
Default path
<ertertert>
And it's in my PATH
<Radar>
ertertert: What OS?
choke has quit [Ping timeout: 265 seconds]
<Derailed>
Hi everyone! Is there a tool for Ruby that will take a project (Rails, in this case), and give me a list of all the modules and classes defined in that project (bonus if it includes the path to the file it's defined in)
dlitvak has quit [Remote host closed the connection]
usershell has joined #ruby
dlitvak has joined #ruby
shadoi has quit [Quit: Leaving.]
choke has joined #ruby
<Majora_>
How do you send PM's to people?
<Majora_>
o.o
bricker has quit [Ping timeout: 250 seconds]
<Ox0dea>
Majora_: I hesitate to tell you. :P
<Majora_>
Ox0dea: Lol don't you trust me?
Majora_ is now known as Darmani
<Ox0dea>
Derailed: The trouble there is that Ruby is a ridiculously dynamic language. Modules and classes can be created all sorts of ways that static analysis just can't pick up on.
daivyk has quit [Quit: ZZZzzz…]
<Radar>
?xy Derailed
<ruboto>
Derailed, it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<Ox0dea>
You can, of course, let Ruby do the introspection for you: ObjectSpace.each_object(Module) + some_module.const_get(:Foo)
dlitvak has quit [Remote host closed the connection]
<Ox0dea>
Recur as necessary. :P
usershell has quit [Remote host closed the connection]
<Derailed>
Ox0dea, yeah. 'grep class' and 'grep module' sure won't hit the spot for me :-)
<Ox0dea>
Derailed: You should upgrade. :P
<Ox0dea>
But yeah, even `ag` wouldn't suffice.
usershell has joined #ruby
<Darmani>
Ox0dea: Remember how you asked me yesterday about what my unknown knowns are?
<Darmani>
You asked me something like that.
<Derailed>
ruboto, for slightly more context: I am reading, and documenting a very large amount of undocumented ruby code (over 25 separate interrelated rails projects). I'm looking for good ways of visualizing their various structures. And a clear list of Modules/Classes seems like a good place to do some inspection
djbkd has joined #ruby
<Ox0dea>
?bot Derailed
<ruboto>
Derailed, I don't know anything about bot
<diegoviola>
Radar: I didn't meant for you to feel that way
<diegoviola>
I'm honestly don't know what to do with this
<havenwood>
diegoviola: It's just an IRC etiquette thing. See the rule! ^
sigurding_ has joined #ruby
<diegoviola>
if it were me I'd print it and burn it as some type of gesture
<Radar>
diegoviola: Show us the code?
<diegoviola>
XML is just awful
<diegoviola>
havenwood: ok
janebootydoe has quit [Quit: Leaving]
<Derailed>
But let me rephrase my general question: given a running ruby process ('rails console'), can I introspect it and see all the modules that are loaded, all the classes that are defined in those modules, and maybe (bonus again) in which files they're defined? is Ox0dea's suggestion of playing with ObjectSpace.each_object(Module) the right direction?
<diegoviola>
I have to parse this and insert the data on the db
<havenwood>
Derailed: Maybe give something along these lines a try: $LOAD_PATH.grep(/\/lib\z/).map { |path| File.basename(path.rpartition('/').first) }
<Ox0dea>
Derailed: It'll get you the list, not so much the associations.
<diegoviola>
there are multiples columns and such, but the output is just confusing to me
usershell has joined #ruby
<Ox0dea>
Derailed: The ObjectSpace + #const_get approach, to clarify.
TheHodge has quit [Quit: Connection closed for inactivity]
<Derailed>
Cheers. I'll dig in and see if I can come up with something that will work for me. Thanks!
<Radar>
diegoviola: Ok, so what you want to do is to find all the text from the first row.
govg has quit [Ping timeout: 260 seconds]
<Radar>
diegoviola: .css("table tr td").map(&:text) should get you that
<Radar>
Those are your keys.
<Radar>
Then you want to iterate through the rest of the rows and create hashes from that data.
ur5us has quit [Remote host closed the connection]
craysiii has quit [Remote host closed the connection]
juddey has joined #ruby
hxegon has quit [Quit: BRB]
choke_ has joined #ruby
craysiii has joined #ruby
craysiii has quit [Max SendQ exceeded]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
craysiii has joined #ruby
duckpuppy has quit [Ping timeout: 272 seconds]
xargs has joined #ruby
genpaku has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
genpaku has joined #ruby
choke has quit [Ping timeout: 265 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
hxegon has joined #ruby
arup_r has joined #ruby
Rodya_ has joined #ruby
FLeiXiuS` has joined #ruby
GriffinHeart has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
colegatron has quit [Ping timeout: 245 seconds]
dfockler has quit [Ping timeout: 256 seconds]
mdw has joined #ruby
trautwein has joined #ruby
hxegon has quit [Ping timeout: 246 seconds]
hxegon has joined #ruby
smbenfield has quit [Ping timeout: 246 seconds]
<FLeiXiuS`>
Does OptsParser always execute first regardless of ruby being linear?
jake_g has joined #ruby
<jake_g>
n
tubuliferous_ has quit [Ping timeout: 245 seconds]
<FLeiXiuS`>
Nvm - i'm an idiot.
<Ox0dea>
FLeiXiuS`: That said, Ruby does provide the means to execute "non-linearly" via BEGIN.
smactive has quit [Remote host closed the connection]
<jake_g>
Hi. I have a class that I want to instantiate and return other classes based on the arguments that its given. Is this an anti pattern? Right now, I’m trying to have `initialize` return an instance of a different class but it doesnt seem to be working.
<Ox0dea>
jake_g: You'll have to redefine your class's singleton class's #new method.
mdw has quit [Quit: Sleeping Zzzzz]
Jackneill has joined #ruby
hxegon has quit [Ping timeout: 240 seconds]
<jake_g>
Ox0dea: Sorry, I dont think I fully understand what you mean by the class’s singleton. Do you mean override `self.new` than returning a different class in the initialize method?
tagrudev has joined #ruby
<Ox0dea>
jake_g: Just so.
GriffinHeart has quit [Remote host closed the connection]
choke has joined #ruby
GriffinHeart has joined #ruby
colegatron has joined #ruby
jas02 has joined #ruby
hannelita has joined #ruby
krzkrz has joined #ruby
Xeago has joined #ruby
krz has quit [Read error: Connection reset by peer]
tmtwd has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
hannelita has quit [Ping timeout: 240 seconds]
choke has quit [Ping timeout: 265 seconds]
SOLDIERz has joined #ruby
<jake_g>
Ox0dea: I got the specs passing but I’m not sure its “good code”. Do you have a minute to look at this class?
<jake_g>
Some things that feel weird: 1) overriding `.new` I guess because I’ve never done it before. 2) Passing `params` all over the plase
certainty has joined #ruby
tubuliferous_ has joined #ruby
<jake_g>
Ox0dea: ^^ (Forgot to ping you in the first message, sorry if you already saw it)
dorakyura has joined #ruby
<Ox0dea>
jake_g: I mean, that's the basic shape of a Factory.
<Ox0dea>
`params` is kind of all over the place, though.
hinbody has joined #ruby
<jake_g>
Would it be alright to put it in a class variable?
certainty has quit [Ping timeout: 245 seconds]
GriffinHeart has quit [Remote host closed the connection]
blackgoat has quit [Quit: WeeChat 1.3]
ur5us has joined #ruby
<Ox0dea>
Would that make sense?
cmolenda has quit [Remote host closed the connection]
choke has quit [Ping timeout: 265 seconds]
Xeago has quit [Remote host closed the connection]
phatypus has joined #ruby
<jake_g>
Seems like it would give me access to it everywhere without having to pass it around but I’ve never worked with class variables before so I’m not entirely sure what implications/side effects I need to be aware of
<Ox0dea>
#report_class only needs `params` for :scope_option, but then #name_only? needs all of `params`, and #report_class needs #name_only?. :/
phatypus has quit [Client Quit]
howdoi has joined #ruby
Guest24140 has quit [Ping timeout: 252 seconds]
<Ox0dea>
Well, but these classes you're returning don't inherit from CustomReportFactory, so they wouldn't be able to see its class variables.
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
andikr has joined #ruby
<jake_g>
I gotta run (was just messing with stuff during an airport layover). Thanks for the help! Definitely learned some stuff tonight :D
<jake_g>
Thanks a ton
zast has quit [Remote host closed the connection]
<Ox0dea>
jake_g: My pleasure! Have a safe trip.
krzkrz has quit [Ping timeout: 240 seconds]
jake_g has quit [Quit: jake_g]
mdw has joined #ruby
aadam21 has joined #ruby
krzkrz has joined #ruby
emilkarl has joined #ruby
GriffinHeart has joined #ruby
jbrhbr has joined #ruby
firstdayonthejob has joined #ruby
ta has joined #ruby
tmtwd has joined #ruby
rocfig has joined #ruby
ruby-lang158 has joined #ruby
bluOxigen has joined #ruby
ruby-lang158 has quit [Client Quit]
vikaton has quit [Quit: Connection closed for inactivity]
rippa has joined #ruby
framling has quit [Ping timeout: 245 seconds]
usershell has quit [Remote host closed the connection]
nixmaniack has joined #ruby
solars has joined #ruby
dpg_ has quit [Ping timeout: 264 seconds]
rocfig has quit [Quit: This computer has gone to sleep]
rocfig has joined #ruby
dotix has joined #ruby
ohaibbq has joined #ruby
mistermocha has joined #ruby
brunto has joined #ruby
HANJIN has joined #ruby
mary5030 has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
brunto_ has joined #ruby
brunto has quit [Ping timeout: 260 seconds]
mistermocha has quit [Ping timeout: 255 seconds]
dpg_ has joined #ruby
dn` has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
choke has joined #ruby
KnownSyntax has quit [Remote host closed the connection]
aadam21 has quit [Ping timeout: 246 seconds]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
phatypus has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
Bloomer has quit [Remote host closed the connection]
choke has quit [Read error: Connection reset by peer]
rsc___ has quit [Quit: rsc___]
bkxd has quit [Ping timeout: 255 seconds]
Mon_Ouie has joined #ruby
kies^ has quit [Ping timeout: 246 seconds]
dorakyura has quit [Ping timeout: 256 seconds]
ziyadb has quit [Quit: Connection closed for inactivity]
dpg_ has quit [Ping timeout: 260 seconds]
TomyWork has joined #ruby
roshanavand has joined #ruby
wolffles has quit [Quit: wolffles]
arup_r has quit [Remote host closed the connection]
matp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
Hello
arup_r has joined #ruby
SCHAAP137 has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
arup_r has joined #ruby
roshanavand has quit [Remote host closed the connection]
arup_r has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
gagrio-brb has joined #ruby
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
cmolenda has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
nixmaniack has quit []
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
devbug has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
certainty has joined #ruby
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
choke has joined #ruby
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
<adaedra>
First &. used \o/
<Ox0dea>
\o/
arup_r has quit [Read error: Connection reset by peer]
dlitvak has joined #ruby
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
cmolenda has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
toretore has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
firstdayonthejob has quit [Ping timeout: 246 seconds]
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
elaptics`away is now known as elaptics
arup_r has joined #ruby
phatypus has quit [Quit: .>]
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
Xeago has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 256 seconds]
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
Xeago has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
djbkd has quit []
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
arup_r has quit [Read error: Connection reset by peer]
iateadonut has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
nerium has quit [Quit: nerium]
arup_r has quit [Read error: Connection reset by peer]
HiggerNate has joined #ruby
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
GriffinHeart has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
HiggerNate has quit [K-Lined]
arup_r has joined #ruby
dn`_ has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
certainty has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
certainty has joined #ruby
dn` has quit [Ping timeout: 245 seconds]
dn`_ is now known as dn`
usershell has joined #ruby
choke has quit [Ping timeout: 265 seconds]
arup_r has quit [Client Quit]
tmtwd has quit [Ping timeout: 260 seconds]
conta has joined #ruby
m8 has joined #ruby
Xeago has joined #ruby
duckpuppy has joined #ruby
Xeago has quit [Remote host closed the connection]
Jet4Fire has quit []
certainty has quit [Ping timeout: 240 seconds]
benjohn has joined #ruby
vondruch has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
rkazak has joined #ruby
edwinvdgraaf has joined #ruby
usershell has quit [Remote host closed the connection]
rsc___ has joined #ruby
ohaibbq has quit [Remote host closed the connection]
ohaibbq has joined #ruby
ruby-lang466 has joined #ruby
juddey has quit [Ping timeout: 250 seconds]
rocfig has quit [Quit: This computer has gone to sleep]
lipoqil has joined #ruby
<ruby-lang466>
football_team = [] 5.times do |i| puts "Please enter a UK football team:" team = gets.chomp if i.even? football_team << team.upcase else football_team << team.downcase end end puts football_team
antgel has joined #ruby
sandstrom has joined #ruby
iateadonut has joined #ruby
baweaver has joined #ruby
terlar has joined #ruby
steffkes has joined #ruby
ohaibbq has quit [Ping timeout: 265 seconds]
<Ox0dea>
ruby-lang466: Well done.
sandstrom has quit [Client Quit]
ruby-lang466 has quit [Ping timeout: 252 seconds]
sandstrom has joined #ruby
sandstrom has quit [Client Quit]
einarj has joined #ruby
sandstrom has joined #ruby
aadam21 has joined #ruby
baweaver has quit [Ping timeout: 255 seconds]
jbrhbr has quit [Quit: Leaving.]
antgel has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
krzkrzkrz has joined #ruby
sandstrom has quit [Read error: Connection reset by peer]
antgel has joined #ruby
krzkrz has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
Xeago has quit [Remote host closed the connection]
pink_vampire has quit [Read error: Connection reset by peer]
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
pink_vampire has joined #ruby
Bloomer has joined #ruby
roshanav_ has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
auzty has quit [Quit: Leaving]
Rodya_ has quit [Quit: Leaving...]
Bloomer has quit [Ping timeout: 256 seconds]
Snowy has joined #ruby
mark2 has joined #ruby
astrobun_ has quit [Remote host closed the connection]
Snowy has quit [Read error: Connection reset by peer]
Snowy_ has joined #ruby
dionysus69 has joined #ruby
tmtwd has joined #ruby
antgel has quit [Ping timeout: 276 seconds]
dlitvak has joined #ruby
TakumoKatekari is now known as Takumo
coffeecupp has joined #ruby
antgel has joined #ruby
tvw has joined #ruby
cmolenda has joined #ruby
cmolenda has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
crdpink has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
zeroDivisible has joined #ruby
dlitvak has quit [Ping timeout: 255 seconds]
DoubleMalt has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
dwfait has joined #ruby
crdpink has joined #ruby
jschmid has joined #ruby
patchedmonkey has joined #ruby
crdpink has quit [Client Quit]
crdpink has joined #ruby
roshanav_ has joined #ruby
patchedmonkey has quit [Client Quit]
roshanavand has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
spectra has joined #ruby
<pontiki>
hi
symm-_ has quit [Ping timeout: 264 seconds]
nertzy has joined #ruby
rsc___ has quit [Ping timeout: 265 seconds]
Xeago has quit [Remote host closed the connection]
joonty has joined #ruby
zenlot1 is now known as zenlot
aadam21 has quit [Ping timeout: 256 seconds]
bigkevmcd has quit [Quit: Outta here...]
mwilly has joined #ruby
mwilly has left #ruby [#ruby]
mwilly has joined #ruby
mwilly has left #ruby [#ruby]
terlar has quit [Quit: WeeChat 1.3]
lxsameer has joined #ruby
lxsameer has joined #ruby
marr has joined #ruby
roshanav_ has quit [Remote host closed the connection]
steffkes has quit [Ping timeout: 260 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
al2o3-cr has joined #ruby
coffeecupp has quit [Quit: Leaving]
sandstrom has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has left #ruby [#ruby]
dwfait has quit [Remote host closed the connection]
sandstrom has joined #ruby
cornerma1 has joined #ruby
leslie has quit [Quit: Have you ever tried to eat a clock? It's very time consuming.]
cmolenda has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
badeball_ is now known as badeball
Xeago has joined #ruby
cornerman has quit [Ping timeout: 272 seconds]
cornerma1 is now known as cornerman
joonty has quit [Quit: Leaving]
joonty has joined #ruby
tmtwd has quit [Ping timeout: 264 seconds]
tvw has quit [Ping timeout: 255 seconds]
cmolenda has quit [Ping timeout: 250 seconds]
exadeci has quit [Quit: Connection closed for inactivity]
rodfersou has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
tvw has joined #ruby
bkxd has joined #ruby
dwfait has joined #ruby
FernandoBasso has joined #ruby
<TomyWork>
I'm looking for a regex test/explain page for ruby. https://regex101.com/ this page is quite nice and it supports PCRE. is that close enough?
roshanav_ has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
tagrudev has quit [Quit: This computer has gone to sleep]
gruz0 has joined #ruby
matp has joined #ruby
Xeago has quit [Remote host closed the connection]
choke has joined #ruby
tvw has joined #ruby
baweaver has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
baweaver has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
aadam21 has quit [Ping timeout: 256 seconds]
futilegames has joined #ruby
dlitvak has joined #ruby
roshanavand has quit [Remote host closed the connection]
futilegames has quit [Client Quit]
roshanavand has joined #ruby
<TomyWork>
jhass man 42 life
<jhass>
why not 5?
<toretore>
No manual entry for life
Bloomer has joined #ruby
karapetyan has joined #ruby
roshanavand has quit [Remote host closed the connection]
bricker has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: Ex-Chat]
<TomyWork>
jhass because life is not a file
<TomyWork>
even though it's an anagram thereof
<jhass>
"all things happen in fives, or are divisible by or are multiples of five, or are somehow directly or indirectly appropriate to 5."
Bloomer has quit [Ping timeout: 260 seconds]
<TomyWork>
is that a mathematical term?
Coldblackice has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
j_mcnally has joined #ruby
karapetyan has quit [Remote host closed the connection]
j_mcnally has quit [Client Quit]
maikowblue has joined #ruby
Xeago has quit [Remote host closed the connection]
Rickmasta has joined #ruby
Rickmasta has quit [Client Quit]
Xeago has joined #ruby
chipotle has quit [Quit: cheerio]
chipotle has joined #ruby
Xeago has quit [Remote host closed the connection]
<jhass>
it's the law of fives
lxsameer has quit [Quit: Leaving]
<jackcom>
there is a ruby tutorial?
<apeiros>
jackcom: no
<apeiros>
nobody ever wrote any tutorial or other introductory material for ruby.
choke has quit [Ping timeout: 265 seconds]
<jackcom>
then how can i learn ruby?
<jackcom>
apeiros:
yfeldblum has quit [Remote host closed the connection]
schfkt has joined #ruby
<apeiros>
you can't. ruby is for people who're born as ruby experts.
yfeldblum has joined #ruby
<jackcom>
:) apeiros my IQ is 159
<jackcom>
i can do everything easily apeiros
<apeiros>
obviously the use of google requires a higher IQ
roshanavand has joined #ruby
<jackcom>
apeiros: what is your IQ then?
<apeiros>
πe12
<jackcom>
hahahahaha fish?
<jackcom>
only 12?
<jackcom>
hahahaha
DonOtreply has quit [Quit: DonOtreply]
<apeiros>
I thought 159 is sufficient to read scientific notation. but then again, that'd require knowledge, not intelligence.
<jackcom>
yeah
<jackcom>
ok
<jackcom>
apeiros:
<apeiros>
jackcom: what did we tell you about lines consisting only of a nick?
<TomyWork>
so in PCRE, there's the "s" modifier (PCRE_DOTALL). That's missing in Ruby and its "m" modifier behaves a little like it, with \A and \Z serving as replacements for ^ and $ in multiline strings.
cmolenda has quit [Remote host closed the connection]
<jackcom>
what you mean? apeiros
<TomyWork>
i'm putting this regex in a json so i want to avoid backslashes. is there a way to do that?
<apeiros>
jackcom: I mean that I'll kick you if you do it again.
<TomyWork>
i.e. a way to make ^ and $ really match the string's ends
roshanavand has quit [Ping timeout: 260 seconds]
<jackcom>
:( i just want learn ruby. that is all
<apeiros>
jackcom: then start putting that IQ159 brain of yours to use.
<TomyWork>
one does not learn ruby by discussing IQ with apeiros
<apeiros>
TomyWork: no, ^$ are defined to mean start/end of line, there's no modifier to change that
<TomyWork>
ok
<adaedra>
TomyWork: what you want is \A and \z.
<TomyWork>
what's the difference between uppercase and lowercase \z?
<TomyWork>
rubular gives me the same result
<apeiros>
TomyWork: whether or not a newline after it is accepted or not
<norc>
TomyWork: Not using Debian because getting Ruby to work with gems and dependencies with any external package management system sucks.
Cork has quit [Ping timeout: 256 seconds]
<TomyWork>
norc ubuntu comes with an ancient ruby so i'm not going to use that anyway
<TomyWork>
I'm looking for a dependency-less approach
certainty has joined #ruby
<darix>
TomyWork: ugh
<TomyWork>
so basically I get a package that requires bash and a libc, if anything at all
azgil has quit [Quit: Leaving]
<darix>
norc: it is actually a relative easy problem. as you can just hook onto the gem metadata
arup_r has joined #ruby
Cork has joined #ruby
duckpuppy has joined #ruby
jackcom has joined #ruby
<jackcom>
.
<TomyWork>
has anyone here ever used omnibus? do i need to create a gem from my ruby project in order to turn it into an omnibus package?
JakFrist has joined #ruby
freerobby has joined #ruby
<m1dnight_>
Hi guys. Ive been trying to get Jekyll to work on my server (ubuntu 14.04) (ruby2.0) but a strange thing is happening. It seems that after isntalling jekyll (gem install --user jekyll) it keeps asking for dependencies manually.
binaryplease has quit [Quit: WeeChat 1.3]
arup_r has quit [Ping timeout: 260 seconds]
<m1dnight_>
So stuff like `addressable` or `multipart-post` and stuff.
<m1dnight_>
I have puth the path to my gems in my path so thats okay.
<m1dnight_>
I have installed 5 of them in the meanwhile but i think its going to be a long list..
<ruboto>
m1dnight_, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<pontiki>
m1dnight_: fyi, there's a #jekyll channel, too
<m1dnight_>
I know, but this was a ruby problem :>
karapetyan has quit [Ping timeout: 246 seconds]
<pontiki>
naturally enough, i suppose. no one in #jekyll could possibly know anything about installing it or ruby
chebyte has joined #ruby
<chebyte>
hi there, I just finished my last project, it's https://beerpay.io , a simple way to monetize your github opensource projects, please check it, https://beerpay.io
<chebyte>
if you have suggestion, please let me know
jmignault has joined #ruby
<ddv>
chebyte: spam
babblebre has joined #ruby
<ddv>
chebyte: looks nice tho
B1n4r10 has joined #ruby
kalopsian has quit [Ping timeout: 256 seconds]
hannelita has quit [Remote host closed the connection]
dotix has quit [Remote host closed the connection]
uri___ has joined #ruby
arup_r has joined #ruby
bricker has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
uri_ has quit [Ping timeout: 264 seconds]
sandstro_ has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
uri___ has quit [Quit: --]
casadei has joined #ruby
uri_ has joined #ruby
lacuna has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
ta has joined #ruby
deuterium has quit [Read error: Connection reset by peer]
<TomyWork>
is there a way to package up a ruby, say from RVM?
gruz0 has quit [Quit: This computer has gone to sleep]
bricker has quit [Quit: Lost terminal]
<adaedra>
You're still debianing?
<TomyWork>
yes
<adaedra>
For in-house things?
<TomyWork>
yes
pandaant has joined #ruby
<TomyWork>
and i dont want RVM on the target system :)
<adaedra>
I suggest you to use ruby-install and install a ruby to a static location, like /opt/your-package/ruby
<TomyWork>
I'm afraid it will kill the gitlab running on the same user account
<adaedra>
The cleaner, I think, would be to create a suffixed version (i.e. installs as ruby23, gem23, etc) and use the alternative system to make it the default implementation
<TomyWork>
adaedra ah, can i tell that to install to /home/me/my/build/path/opt/mypackage/bin/{ruby,gem,erb,...} and it will still work when i package it up and it ends up in /opt/mypackage/bin/{ruby,gem,erb,...}?
<TomyWork>
i dont want to make that ruby available system-wide
<adaedra>
ah
cmolenda has quit [Remote host closed the connection]
<TomyWork>
i want to put it into my package and install it all as one big blob
<adaedra>
Where do your package install your project files?
<TomyWork>
/opt/mypackage/src
<havenwood>
TomyWork: Yeah, movable isn't enabled by default but you can build Ruby to be with ruby-install: ruby-install --latest ruby -- --enable-shared
Mia has quit [Ping timeout: 250 seconds]
<TomyWork>
i havent settled on that name though
iateadonut has left #ruby [#ruby]
<havenwood>
TomyWork: The --enabled-shared is a Ruby specific configuration you can use when building yourself, or RVM has a --movable flag.
mwilly has quit [Ping timeout: 240 seconds]
<TomyWork>
can i just grab the ruby from RVM then?
<havenwood>
TomyWork: Yup, just build with --movable and you should be fine.
govg has quit [Quit: leaving]
jgpawletko has joined #ruby
<havenwood>
TomyWork: The binaries are movable as well.
<TomyWork>
oh i need to rebuild either way? well in that case i'll use ruby-install :)
SCHAAP137 has quit [Remote host closed the connection]
<havenwood>
Yeah, RVM does not default to movable so you'd have to rebuild.
aufi has quit [Quit: Konversation terminated!]
choke has joined #ruby
sandstrom has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
j_mcnally has joined #ruby
aadam21_ has joined #ruby
vondruch has quit [Ping timeout: 250 seconds]
sandstrom has joined #ruby
mjuszczak has joined #ruby
tubuliferous_ has joined #ruby
mistermocha has joined #ruby
vondruch has joined #ruby
cmolenda has joined #ruby
Encapsulation has joined #ruby
underplank has quit [Quit: underplank]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
aadam21 has quit [Ping timeout: 256 seconds]
choke has quit [Read error: Connection reset by peer]
jas02 has quit [Quit: jas02]
davejlong has joined #ruby
choke has joined #ruby
polishdub has joined #ruby
Makorak has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
chimche has joined #ruby
beanHolez has joined #ruby
Mon_Ouie has joined #ruby
dEPy has quit [Quit: (null)]
sandstrom has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
<TomyWork>
can i tell ruby-install not to use sudo?
sandstrom has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
<ljarvis>
point it somewhere that doesn't require permission?
gruz0 has joined #ruby
<TomyWork>
i'm giving it a relative --install-dir
<havenwood>
TomyWork: Don't use sudo and the default --install-dir will be ~/.rubies.
<ljarvis>
weird, you have write permission?
<TomyWork>
Installing dependencies for ruby 2.2.1
jbrhbr has joined #ruby
JohnT has joined #ruby
shinnya has joined #ruby
<havenwood>
TomyWork: You can --no-install-deps but if installing deps takes sudo...
sandstrom has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
atomical has joined #ruby
weemsledeux has joined #ruby
gagrio-brb has quit [Remote host closed the connection]
UtkarshRay has joined #ruby
sandstrom has quit [Read error: Connection reset by peer]
<TomyWork>
so now i have this: ruby-install-"$ruby_install_version"/bin/ruby-install --install-dir "$build_target_directory" --no-install-deps ruby 2.2.1 -- --enable-shared
sandstrom has joined #ruby
<TomyWork>
it didn't fail yet :)
gruz0 has quit [Client Quit]
<TomyWork>
and it's past the configure stage so i guess it's ok
huyderman has quit [Remote host closed the connection]
tvw has joined #ruby
Xeago has quit [Remote host closed the connection]
choke_ has joined #ruby
ricer2_g4H4 has quit [Ping timeout: 240 seconds]
symbol has joined #ruby
choke has quit [Ping timeout: 265 seconds]
choke has joined #ruby
karapetyan has joined #ruby
usershell has joined #ruby
beanHolez has quit [Remote host closed the connection]
Xeago has joined #ruby
Makorak has quit [Remote host closed the connection]
jrvlima has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
terlar has quit [Ping timeout: 276 seconds]
<TomyWork>
"./ruby: error while loading shared libraries: libruby.so.2.2: cannot open shared object file: No such file or directory" ok so it didn't work :)
choke_ has quit [Ping timeout: 265 seconds]
<TomyWork>
that's after installing the resulting package on an unrelated machine
JohnT has quit [Read error: Connection reset by peer]
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke_ has joined #ruby
carraroj has quit [Ping timeout: 255 seconds]
Xeago has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 240 seconds]
ricer2_g4H4 has joined #ruby
beanHolez has joined #ruby
<TomyWork>
havenwood --enable-shared didnt make it movable, i'm afraid. got another idea?
choke has quit [Ping timeout: 265 seconds]
synthroid has quit [Remote host closed the connection]
choke has joined #ruby
lacuna has quit [Remote host closed the connection]
choke__ has joined #ruby
singalaut has joined #ruby
Xeago has joined #ruby
choke_ has quit [Ping timeout: 265 seconds]
ta0 has quit [Ping timeout: 264 seconds]
uri_ has quit [Quit: --]
theunraveler has joined #ruby
flugel_girl has quit []
theunraveler has quit [Quit: (null)]
beanHolez has quit [Remote host closed the connection]
cholq has left #ruby ["Leaving..."]
akem has quit [Quit: Bye]
choke has quit [Ping timeout: 265 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
uri_ has joined #ruby
hobodave has joined #ruby
hanneli has joined #ruby
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
rocfig has joined #ruby
aupadhye has joined #ruby
theunraveler has joined #ruby
[Butch] has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
JakFrist has joined #ruby
hannelita has quit [Ping timeout: 260 seconds]
JakFrist has quit [Client Quit]
<TomyWork>
./configure --help lists "--enable-load-relative", which sounds promising
<TomyWork>
"resolve load paths at run time"
Xeago has quit [Remote host closed the connection]
theunraveler is now known as theunraveler_
theunraveler_ is now known as theunraveler
platzhirsch has joined #ruby
jackcom has quit [Ping timeout: 240 seconds]
dhollinger has joined #ruby
inukshuk_ has joined #ruby
jackcom has joined #ruby
inukshuk_ has quit [Client Quit]
jbrhbr has quit [Quit: Leaving.]
theunraveler has quit [Quit: (null)]
theunraveler has joined #ruby
<jackcom>
i can do webcam hijacking with ruby? shevy
mfb2 has quit [Read error: Connection reset by peer]
podman has joined #ruby
dotix has joined #ruby
mikecmpbll has joined #ruby
mfb2 has joined #ruby
<ljarvis>
gtfo
<adaedra>
:o
slawrence00 has joined #ruby
slawrence00 has quit [Client Quit]
* platzhirsch
hijacks jackcom
<TomyWork>
since you can write native extensions in C, you can do everything in ruby that you can do in C... provided you write a little C first :P
slawrence00 has joined #ruby
lacuna has joined #ruby
<jackcom>
get the fuck out :x
<jackcom>
TomyWork: i know c already
<ljarvis>
jackcom: watch your language
<TomyWork>
:D
DonOtreply has joined #ruby
<ljarvis>
jackcom: nobody here is going to help you do something malicious, so please take it elsewhere
<jackcom>
my language is English
<ljarvis>
if you have some Ruby code you want help with, ask away
<platzhirsch>
DFTT
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mikecmpbll>
seeing as a hash is basically an indexed array, is there some data structure that i can have multiple indexes?
<jackcom>
lol i will watch my pet, because i will do journey ljarvis
<ljarvis>
that doesn't even make sense
<adaedra>
we do not have the same English I see
<ljarvis>
mikecmpbll: huh?
<TomyWork>
mikecmpbll an array is an indexed array
dotix has quit [Ping timeout: 240 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
<TomyWork>
mikecmpbll a hash is basically an associative array
momomomomo_ has quit [Quit: momomomomo_]
<mikecmpbll>
with arbitrary objects as indexes*
<TomyWork>
you're looking for the equivalent of a C++ multimap
<mikecmpbll>
TomyWork: probably, sounds about right
RTG` has quit [Ping timeout: 255 seconds]
<TomyWork>
maybe that term helps you search for a solution. i dont know one
jrvlima has joined #ruby
choke__ has quit [Read error: Connection reset by peer]
RTG` has joined #ruby
<mikecmpbll>
TomyWork: ta
<jackcom>
ljarvis: anyway you can do it?
palantir has quit [Ping timeout: 240 seconds]
<ljarvis>
jackcom: do what?
roshanavand has quit [Remote host closed the connection]
<jackcom>
webcam hj
<ljarvis>
jackcom: no.
<jackcom>
anyway, you have knowledge of that?
<ljarvis>
Again, nobody here is going to help you do something malicious, so please take this question elsewhere, jackcom
choke has joined #ruby
mikecmpbll has quit [Quit: Page closed]
<adaedra>
Aaaah, the cool kids who just want to show off during recess because they can "hack".
The_Phoenix has joined #ruby
eljimmy has joined #ruby
<adaedra>
Hello, eljimmy!
<adaedra>
You did it! :p
Mon_Ouie has quit [Ping timeout: 240 seconds]
<eljimmy>
success!
<canton7>
ah, I recognise the nick jackcom...
brunto has quit [Ping timeout: 245 seconds]
duckpupp1 has joined #ruby
<jackcom>
thanks canton7
<jackcom>
where we meet?
<ljarvis>
?ot
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
duckpuppy has quit [Ping timeout: 276 seconds]
axsuul has joined #ruby
<jackcom>
:(
jackcom has left #ruby [#ruby]
seaworthy has joined #ruby
seaworthy has quit [Changing host]
seaworthy has joined #ruby
<tubbo>
eljimmy: you made it!
edwinvdgraaf has quit [Ping timeout: 240 seconds]
sandstrom has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
nertzy has joined #ruby
davejlong has quit [Remote host closed the connection]
<eljimmy>
indeed, i am here to soak up all the ruby knowledge.
dlitvak has quit [Remote host closed the connection]
govg has joined #ruby
Skelz0r has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
lacuna has quit [Remote host closed the connection]
HANJIN has joined #ruby
davejlong has joined #ruby
amoeba_ has quit [Quit: Leaving]
lacuna has joined #ruby
choke has quit [Ping timeout: 265 seconds]
JDiPierro has quit [Remote host closed the connection]
rakm has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
gambl0re has quit [Ping timeout: 276 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
baweaver has quit [Ping timeout: 240 seconds]
momomomomo_ has joined #ruby
momomomomo_ has quit [Client Quit]
colegatron has quit [Ping timeout: 240 seconds]
DonOtreply has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
diego2 has joined #ruby
stevenxl has quit [Ping timeout: 246 seconds]
dotix has joined #ruby
dotix has quit [Changing host]
dotix has joined #ruby
singalaut has left #ruby ["WeeChat 1.4-dev"]
diego2 is now known as diegoviola
roshanavand has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
lacuna has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 264 seconds]
jschmid has quit [Ping timeout: 250 seconds]
colegatron has joined #ruby
rkazak has joined #ruby
ta has quit [Remote host closed the connection]
uri_ has quit [Quit: --]
synthroid has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
rkazak has quit [Client Quit]
synthroid has quit [Read error: No route to host]
uri_ has joined #ruby
wolffles has joined #ruby
synthroid has joined #ruby
benjohn has quit [Remote host closed the connection]
Makorak has joined #ruby
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
rkazak has joined #ruby
<wolffles>
so i cant figure out how to do a range for .gsub … “hEllo”.gsub(/[A..Z]/,’0’) #? is it even possible
choke has joined #ruby
<havenwood>
wolffles: /[A-Z]/
spooq|2 has joined #ruby
eboaz has quit [Read error: Connection reset by peer]
<havenwood>
wolffles: Read the docs, it goes on from here: Within a character class the hyphen (-) is a metacharacter denoting an inclusive range of characters.
<DylanJ>
Hey what's happening when I do Hash({x: 1})? How come I can call Hash() like a function?
<diegoviola>
this code doesn't return hello world, but when I change that method to 'foo' it works
nertzy has quit [Quit: This computer has gone to sleep]
<diegoviola>
this just blows my mind
guacamole has joined #ruby
choke_ has quit [Ping timeout: 265 seconds]
theunraveler has quit [Quit: (null)]
guacamol_ has quit [Ping timeout: 260 seconds]
beanHolez has joined #ruby
zast has quit [Remote host closed the connection]
griffindy has joined #ruby
<diegoviola>
any ideas?
<Ox0dea>
diegoviola: It's a run-of-the-mill name collision.
iamvery has joined #ruby
usershell has quit [Remote host closed the connection]
FernandoBasso has quit [Quit: Leaving]
beanHolez has quit [Client Quit]
<jbrhbr>
it's interesting that his binding doesn't win though
choke has joined #ruby
mjuszczak has quit []
<diegoviola>
name collision with what?
<Ox0dea>
With the method called #import from Rake::DSL.
<diegoviola>
ah
<diegoviola>
interesting
<Ox0dea>
It is a little strange that yours doesn't win, but metaprogramming will do that.
<diegoviola>
how can I find out next time if the method names is colliding with something else?
mjuszczak has joined #ruby
<jbrhbr>
something that seems like it should obviously run doesn't run? :)
<diegoviola>
yeah sure
<diegoviola>
I need to open my eyes more
<jbrhbr>
i wonder if you could load the task and check .source_location
<diegoviola>
sorry about that
<diegoviola>
what is that
<diegoviola>
lol
<jbrhbr>
diegoviola: i wasn't criticizing you, i'm sympathetic to all intuition that is violated by magic
<Ox0dea>
diegoviola: task(:default) { p method(:import) }
RegulationD has joined #ruby
<ceej>
I'm trying to figure out the best way to fix this hash method, right now it returns an empty Hash instead of nil if the key doesn't exist https://code.hackerearth.com/d1596aM
geekbri has joined #ruby
<diegoviola>
jbrhbr: thanks for saying that, I had already too much criticism (and in a bad way) from my client
<diegoviola>
but I don't mind criticism
Bloomer has joined #ruby
Mon_Ouie has joined #ruby
<diegoviola>
people should be able to express themselves however they want to :)
<diegoviola>
Ox0dea: ok let me try that cocde
<diegoviola>
code
darkf has quit [Quit: Leaving]
<Ox0dea>
> let me try that coc
<Ox0dea>
(Sorry.)
<diegoviola>
I really like working with Ruby, even though I can be a slow programmer at times
<diegoviola>
lmao
aryaching has quit [Ping timeout: 250 seconds]
<diegoviola>
I think my brain is just slow at times
<diegoviola>
#<Method: Object(Rake::DSL)#import>
<diegoviola>
Ox0dea: ok I see you were right
<diegoviola>
thanks for your help
kies^ has quit [Ping timeout: 272 seconds]
choke_ has joined #ruby
choke has quit [Read error: Connection reset by peer]
dorakyura has quit [Ping timeout: 256 seconds]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mooe has joined #ruby
guacamol_ has joined #ruby
Bloomer has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
devbug has quit [Ping timeout: 260 seconds]
sandstrom has joined #ruby
choke has joined #ruby
guacamole has quit [Ping timeout: 255 seconds]
<ceej>
I don't see a way of being able to make it return nil with the current implementation
lipoqil has quit [Quit: Connection closed for inactivity]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke_ has quit [Read error: Connection reset by peer]
guacamol_ has quit [Ping timeout: 240 seconds]
niemcu has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Lewix has quit [Quit: WeeChat 1.3]
ricer2_g4H4 has quit [Ping timeout: 260 seconds]
ekinmur has joined #ruby
bkxd has quit [Ping timeout: 245 seconds]
choke_ has joined #ruby
choke has quit [Read error: Connection reset by peer]
HANJIN has quit [Quit: HANJIN]
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
dlitvak has quit [Remote host closed the connection]
Makorak has joined #ruby
tvw has quit []
tvw has joined #ruby
ricer2_g4H4 has joined #ruby
jackjackdripper has joined #ruby
Zackio has quit [Ping timeout: 244 seconds]
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke_ has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
choke has joined #ruby
JakFrist has joined #ruby
karapetyan has quit [Remote host closed the connection]
wolffles has quit [Quit: wolffles]
karapetyan has joined #ruby
marsjaninzmarsa has joined #ruby
amclain has joined #ruby
Zackio has joined #ruby
bricker has quit [Ping timeout: 264 seconds]
mary5030 has quit [Remote host closed the connection]
RegulationD has quit []
chadhs has joined #ruby
tvw has quit [Remote host closed the connection]
jackjackdripper1 has quit [Quit: Leaving.]
robbyoconnor has quit [Ping timeout: 276 seconds]
marsjaninzmarsa has quit [Excess Flood]
jackjackdripper has joined #ruby
smactive has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
kies^ has joined #ruby
choke_ has joined #ruby
underplank has joined #ruby
choke has quit [Read error: Connection reset by peer]
dlitvak has joined #ruby
smactive has quit [Ping timeout: 276 seconds]
Lucky__ has joined #ruby
tectonic has joined #ruby
dotix has quit [Remote host closed the connection]
arup_r has joined #ruby
B1n4r10 has quit [Ping timeout: 265 seconds]
JakFrist has quit [Remote host closed the connection]
JakFrist has joined #ruby
yos7ph has joined #ruby
davejlong has quit [Remote host closed the connection]
baweaver has joined #ruby
spstarr has joined #ruby
<Mon_Ouie>
You can't have x[foo] be nil and also have x[foo][bar] = 4 insert an entry in a hash that is created automatically
<spstarr>
Question, how do I match a hash's key string? for example: if I have a key with php__fpm_node_# (where # can be 0, 1, 2, 3, 4, 5... etc) can I check if the hash key has a match of any of those?
geekbri has quit []
frem has joined #ruby
<Mon_Ouie>
You can manually check using #has_key? if the entry exists already or return a copy of the hash with no default value if you don't need to keep it
<spstarr>
ie myHash["php__fpm_node_\d+".match?]
bricker has joined #ruby
<spstarr>
#has_key .. looking how to use it
kadoppe has quit [Ping timeout: 250 seconds]
<spstarr>
if i can use has_key to regexp match
<Mon_Ouie>
spstarr: There's no way to do what you want expect iterating over the whole hash
marsjaninzmarsa has joined #ruby
<ceej>
I guess I can't use reduce
<Mon_Ouie>
except*
juddey has joined #ruby
choke_ has quit [Ping timeout: 265 seconds]
Guest21018 is now known as Asher
Channel6 has joined #ruby
<spstarr>
myHash.has_key() can this take a regex?
davejlong has joined #ruby
kadoppe has joined #ruby
imperator has left #ruby ["Leaving"]
<spstarr>
hmm
<spstarr>
i just wanted to use defined? myHash[this_key_regex_#] if true then good else boo
<spstarr>
or maybe contains?
momomomomo has joined #ruby
davejlong has quit [Client Quit]
<spstarr>
or maybe I just get the key string and then compare with contains
choke has joined #ruby
<spstarr>
so: defined? myHash.key.include? "this_key_string_" ?
<spstarr>
that might work
eljimbo has quit [Quit: This computer has gone to sleep]
<ceej>
Ox0dea: that code I added only works one level deep.... can you see a good way to return nil and not and empty hash like a typical Hash object if the key doesn't exist
yfeldblum has joined #ruby
<Ox0dea>
ceej: Mon_Ouie explained why you can't have and eat your cake here.
choke has joined #ruby
<Ox0dea>
If you wish to support arbitrary depth, each nonexistent key *has* to spring into existence with a new Hash as its value.
Bloomer has joined #ruby
mistermocha has quit [Remote host closed the connection]
carraroj has quit [Ping timeout: 264 seconds]
<ceej>
ah, I see... I didn't know he was talking to me... my bad.. so I will have to come up with another solution
nfk|laptop has joined #ruby
mistermo_ has quit [Ping timeout: 250 seconds]
<Ox0dea>
Well, you could use a Hash without a default value, but then you get to write the recursion yourself.
bkxd has quit [Ping timeout: 264 seconds]
underplank has quit [Quit: underplank]
<ceej>
ye, so I think my original solution should work... where I build the hash using recursion
<Ox0dea>
ceej: Alternatively, you could wrap what you've got and just return `nil` for keys that evaluate to the empty Hash. It's not like that's a valid value, right?
tectonic_ has joined #ruby
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
<Ox0dea>
tekkkz: Don't be root.
bkxd has joined #ruby
djbkd has joined #ruby
<Ox0dea>
Never mind. Looks like things are just being loaded in the wrong order.
skcin7 has joined #ruby
mdw has joined #ruby
mistermocha has joined #ruby
marsjaninzmarsa has joined #ruby
tectoni__ has joined #ruby
tectonic has quit [Ping timeout: 264 seconds]
nertzy has joined #ruby
choke has quit [Ping timeout: 265 seconds]
jbrhbr has quit [Quit: Leaving.]
jbrhbr has joined #ruby
Guest90991 is now known as saneax_AFK
bkxd has quit [Ping timeout: 265 seconds]
<tekkkz>
im not
<tekkkz>
um running as my normal user
Snowy has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tectonic_ has quit [Ping timeout: 250 seconds]
synthroid has quit [Remote host closed the connection]
cschneid_ has joined #ruby
choke has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
Snowy has quit [Remote host closed the connection]
skade has joined #ruby
JohnT has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
haraigoshi has joined #ruby
gusTester has joined #ruby
jschmid has joined #ruby
Melpaws has joined #ruby
Melpaws1 has quit [Ping timeout: 245 seconds]
Limix has quit [Quit: Limix]
Snowy has quit [Ping timeout: 255 seconds]
<tekkkz>
Ox0dea, any other idea?
<Ox0dea>
tekkkz: Be nice. :P
ekinmur_ has joined #ruby
<tekkkz>
Ox0dea, sorry, what do you mean? im trying to be polite all the time .. ?
webstral has quit [Ping timeout: 240 seconds]
<Ox0dea>
tekkkz: You're using msf for good, you say?
Vertroa_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<tekkkz>
what does "for good" means?
arup_r has quit []
choke_ has joined #ruby
ekinmur has quit [Ping timeout: 245 seconds]
DonOtreply has joined #ruby
jackjackdripper1 has joined #ruby
choke has quit [Ping timeout: 265 seconds]
framling has joined #ruby
JakFrist has joined #ruby
jackjackdripper has quit [Ping timeout: 240 seconds]
<xargs>
I believe for the foreseeable future
j_mcnally has joined #ruby
chipotle has quit [Quit: cheerio]
mjuszczak has quit []
DonOtreply has quit [Ping timeout: 276 seconds]
<tekkkz>
Ox0dea, i know what you meant :D sure, only for good reasons. I need to check the security of my phone
<Ox0dea>
I believe you. /s
<tekkkz>
thanks. so you can help me fixing the issue?
choke_ has quit [Ping timeout: 265 seconds]
synthroid has joined #ruby
Yzguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DonOtreply has joined #ruby
Guest38819 is now known as eljimmy
radgeRayden has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
radgeRayden has joined #ruby
axl__ has joined #ruby
dotix has joined #ruby
psy_ has joined #ruby
bluOxigen_ has quit [Ping timeout: 250 seconds]
choke has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
axl_ has quit [Ping timeout: 276 seconds]
axl__ is now known as axl_
kirun has joined #ruby
jschmid has quit [Ping timeout: 260 seconds]
DonOtreply has quit [Quit: DonOtreply]
dotix has quit [Ping timeout: 256 seconds]
jschmid has joined #ruby
krzkrzkrz has quit [Quit: WeeChat 1.2]
nfk|laptop has quit [Quit: yawn]
AdeelEB has joined #ruby
rrichardsr3 has joined #ruby
<AdeelEB>
Hi folks, I got an interesting issue I observed today and just wondering if it is an actual bug or not. Thought I'd try here before doing anything else
ympeg has joined #ruby
Yzguy has joined #ruby
choke has quit [Ping timeout: 265 seconds]
hanneli has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
tvw has joined #ruby
yos7ph has quit [Quit: Leaving]
babblebre has joined #ruby
<AdeelEB>
The httpdate method in time.rb expected two digits for the day part of the date. But the RFC says it can be 1 or 2 digits.
<AdeelEB>
And the method raises an Error if a date is passed with a single digit date
Limix has joined #ruby
mistermocha has quit [Remote host closed the connection]
choke has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
mjuszczak has joined #ruby
mostlybadfly has joined #ruby
<Ox0dea>
AdeelEB: The single digit must be preceded by a space.
pink_vampire has quit [Ping timeout: 240 seconds]
choke has quit [Read error: Connection reset by peer]
jschmid has quit [Ping timeout: 264 seconds]
choke has joined #ruby
baweaver has quit [Remote host closed the connection]
<ruboto>
yetitwo, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
mjuszczak has quit [Max SendQ exceeded]
<yetitwo>
^ error output from terminal
<yetitwo>
i'm running ubuntu 15.10 server
<yetitwo>
fresh install
jbrhbr has quit [Quit: Leaving.]
baweaver has joined #ruby
mjuszczak has joined #ruby
choke has quit [Ping timeout: 265 seconds]
<yetitwo>
@ruboto: ah, kk. wilco in the future.
kobain has quit [Ping timeout: 240 seconds]
<Ox0dea>
AdeelEB: 1123 is updated by 2616, and Time.httpdate observes the latter. I'm not sure what other information you could be looking for.
<yetitwo>
I installed ruby-dev
choke has joined #ruby
<yetitwo>
and running `apt-get install ruby2.1-dev` returns that it's already installed and latest
mistermocha has quit [Ping timeout: 250 seconds]
Yzguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjuszczak has quit [Client Quit]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea>
> The compiler failed to generate an executable file.
<yetitwo>
i guess that makes sense... the typical server wouldn't be a build environment
jgpawletko has quit [Quit: jgpawletko]
<Ox0dea>
"You have to install development tools first." is also quite telling.
tekkkz has left #ruby ["Leaving"]
<Ox0dea>
That's really the one that did it.
underplank has joined #ruby
<yetitwo>
ah, kk
ruby-lang314 has joined #ruby
<yetitwo>
yup. it worked now.
<yetitwo>
thank you!
<Ox0dea>
The other error message sometimes crops up when you try to build in a directory where you don't have write access.
<Ox0dea>
Happy to help. :)
Bloomer has joined #ruby
ruby-lang314 has quit [Client Quit]
<AdeelEB>
Ox0dea: Thanks, I think I get it. They expanded on 1123 but made it 2 Digits for day. Thanks!
crudo has joined #ruby
karapetyan has joined #ruby
<Ox0dea>
AdeelEB: Sure thing. Just to reiterate, the day can be 1DIGIT if you're using asctime() format and precede said digit with a space.
<ceej>
Ox0dea: sorry, just saw your response. how do you mean wrap it?
cmolenda has quit [Remote host closed the connection]
Limix has quit [Quit: Limix]
<Ox0dea>
ceej: Disregard. It's probably a bad idea. :P
<Ox0dea>
The more explicit approach via recursion is probably best.
<ceej>
lol.. k :)
Bloomer has quit [Ping timeout: 276 seconds]
nertzy has joined #ruby
bkxd has joined #ruby
Cohedrin has joined #ruby
dotix has joined #ruby
akkad has quit [Excess Flood]
choke has quit [Ping timeout: 265 seconds]
<crudo>
hey guys, how are you all!? anybody here is using puma? having issues with memory? why his heap/physical memore doesnt reduce anytime, is this a normal issue of puma? i've tried set some environments of ruby gc.c like RUBY_GC_MALLOC_LIMIT but without success, GC runs but memory arent free'ed , dont know what to do about, just restarting here, i'm not a ruby developer, is a case where the developers are not rel
dotix has quit [Client Quit]
<crudo>
easing the objects? leak?
<Cohedrin>
what?
<Cohedrin>
what is your question
<Cohedrin>
you're having issues with memory?
karapetyan has quit [Remote host closed the connection]
choke has joined #ruby
mjuszczak has quit []
AdeelEB has quit [Quit: Page closed]
<crudo>
yeap, server memory always incrase and never reduces in puma. i saw some large objects in redis but dont know if have any clue with puma
chimche has quit [Quit: Leaving.]
spooq|2 has joined #ruby
KineticX has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
dpg_ has joined #ruby
j_mcnally has joined #ruby
kobain has joined #ruby
hxegon is now known as hxegon_AFK
jackjackdripper1 has quit [Quit: Leaving.]
Makorak has joined #ruby
dlitvak_ has joined #ruby
karapetyan has joined #ruby
dopie_ has quit [Quit: Lost terminal]
dopie has joined #ruby
makenoise has quit []
chimche has joined #ruby
akkad has joined #ruby
choke has quit [Ping timeout: 265 seconds]
pricees has joined #ruby
pricees has left #ruby [#ruby]
pricees has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
chipotle has joined #ruby
jschmid has joined #ruby
choke has joined #ruby
dlitvak has quit [Ping timeout: 264 seconds]
freerobby has quit [Quit: Leaving.]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
Vertroa has joined #ruby
Makorak has quit [Ping timeout: 272 seconds]
Vertroa has quit [Client Quit]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<diegoviola>
so I have this crappy code where I'm taking a XLS+HTML document and converting it to CSV and then parsing that and storing the data on the DB
<diegoviola>
instead of saving the CSV in a file, how can I pass the content of the CSV to my read_csv function?
chimche has quit [Quit: Leaving.]
prestorium has quit [Quit: Leaving]
eljimmy has quit [Quit: Leaving]
JDiPierro has quit [Remote host closed the connection]
<adaedra>
ljarvis: that's the verify, it's a one time thing
<ljarvis>
yes i know
Makorak has joined #ruby
<ljarvis>
might not want to use that password?
<Ox0dea>
It's not a password.
<adaedra>
it's a verify token.
cholq has quit [Client Quit]
<ljarvis>
ah right ok
<ljarvis>
the last time i reg'd was too long ago apparently
tockitj has quit [Ping timeout: 272 seconds]
choke has joined #ruby
<diegoviola>
do you suggest I just take the array from the HTML table and use that to fill the data in the db?
<ljarvis>
diegoviola: of course
<diegoviola>
ok
<diegoviola>
what was I thinking?
<diegoviola>
overworking makes me do stupid things
<diegoviola>
I blame my boss
Limix has joined #ruby
<Ox0dea>
As long as you don't blame you, everything will be okay.
<atmosx>
diegoviola: you work as a programmer?
<diegoviola>
atmosx: sure
<atmosx>
diegoviola: cool
<diegoviola>
atmosx: I have a boss that keeps insisting I do things ASAP all the time
<ljarvis>
?ot
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
mistermo_ has joined #ruby
<ljarvis>
diegoviola: we've discussed this
<ljarvis>
a million times
<diegoviola>
ljarvis: yes, sorry
<diegoviola>
but calm down
<ljarvis>
seriously, I'm close to just out right banning you fron this channel
<ljarvis>
you don't learn no matter how many times you've been told
Xeago has joined #ruby
<diegoviola>
ok I'll stop, but no need to be threatening
roshanavand has joined #ruby
<ljarvis>
so, please let this be the final time.
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jbrhbr has joined #ruby
Bloomer has joined #ruby
<diegoviola>
final time for offtopic you mean?
<diegoviola>
or
<toretore>
lol
<diegoviola>
you are being vague
<Ox0dea>
This guy.
<ljarvis>
You may discuss your Ruby code here, of course. But the offtopic talk about shitting on your boss/employers needs to stop. It's absolutely toxic and I won't have it
<Ox0dea>
I vote ljarvis for mod.
<diegoviola>
ok sorry about that
uri_ has joined #ruby
<ljarvis>
thank you
jschmid has joined #ruby
<shevy>
lol
ivanskie has joined #ruby
<diegoviola>
I didn't meant to talk bad of anyone
<toretore>
two years ago i had some sympathy when you kept on talking about your work situation
<havenwood>
ooh, didn't realize eval.in had added 2.3, nice!
dlitvak_ has quit [Remote host closed the connection]
<adaedra>
some time ago
<havenwood>
makes sense but TIL
<adaedra>
its creator (don't remember the name) was talking about it when they did it
dlitvak has joined #ruby
<Ox0dea>
charliesome.
<shevy>
can ruboto not be changed to use that?
<havenwood>
adaedra: charliesome
<ljarvis>
shevy: yes, bug apeiros
<adaedra>
shevy: yes, it's a config to change, but apparently apeiros didn't do it ¯\_(ツ)_/¯
<shevy>
ok!
<havenwood>
it's already been done
<havenwood>
apeiros already did it!
RTG` has quit [Ping timeout: 245 seconds]
<havenwood>
(just hasn't been deployed)
<Ox0dea>
23>> RUBY_VERSION
<ljarvis>
apeiros mentioned he was doing some stuff but the new version isn't up and running yet
rrichardsr3 has quit [Quit: He who dares .... wins.]
<Ox0dea>
I believe he's waiting to unveil it once all the other new hotness is ready.
tectonic has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
choke has quit [Ping timeout: 265 seconds]
ta0 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
RTG` has joined #ruby
<adaedra>
havenwood: deployment of just adding 2.3 as default should not be really blocking, even with ruboto 2 electric boogaloo around the corner :/
jackjackdripper has joined #ruby
ekinmur has joined #ruby
<Ox0dea>
Cheddars can't be boozers.
chipotle has quit [Quit: cheerio]
choke has joined #ruby
mistermocha has quit [Remote host closed the connection]
KineticX has quit [Remote host closed the connection]
nertzy has quit [Quit: This computer has gone to sleep]
karapetyan has quit [Remote host closed the connection]
baweaver has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
choke has quit [Read error: Connection reset by peer]
choke_ has joined #ruby
underplank has quit [Read error: Connection reset by peer]
mjuszczak has quit []
SenpaiSilver has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
ympeg has quit [Ping timeout: 246 seconds]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
niemcu has quit [Ping timeout: 245 seconds]
SenpaiSilver has joined #ruby
guacamol_ has joined #ruby
mjuszczak has joined #ruby
chipotle has joined #ruby
ympeg has joined #ruby
guacamole has quit [Ping timeout: 250 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wldcordeiro has joined #ruby
pawnbox_ has joined #ruby
pawnbox has quit [Ping timeout: 272 seconds]
karapetyan has quit [Ping timeout: 260 seconds]
Wsewolod has quit [Read error: Connection reset by peer]
ekinmur has joined #ruby
casadei has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 265 seconds]
choke has joined #ruby
choke_ has quit [Read error: Connection reset by peer]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zenlot1 has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has quit [Remote host closed the connection]
zenlot has quit [Ping timeout: 256 seconds]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ekinmur has joined #ruby
dlitvak has joined #ruby
j_mcnally has joined #ruby
guacamole has joined #ruby
shadoi1 has joined #ruby
theunraveler has joined #ruby
niemcu has joined #ruby
skcin7_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
guacamol_ has quit [Ping timeout: 245 seconds]
dlitvak_ has joined #ruby
ta0 has quit [Ping timeout: 260 seconds]
shadoi has quit [Ping timeout: 260 seconds]
ekinmur has quit [Ping timeout: 240 seconds]
Limix has quit [Quit: Limix]
dlitvak has quit [Ping timeout: 260 seconds]
[Butch] has quit [Quit: I'm out . . .]
nfk|laptop has joined #ruby
<Melpaws>
i need a little help trying to clean up an array. I've tried a few things including reject, . I need to remove the "\n" from any elements. Is it possible or do i have to use something like gsub?
<ljarvis>
compact.map(&:strip) should do what you want
<Melpaws>
thank you both!
Coldblackice has quit [Ping timeout: 264 seconds]
dlitvak_ has quit [Ping timeout: 255 seconds]
<ljarvis>
there's only one of me but you're welcome
<ljarvis>
from us both
<Melpaws>
lol
chimche has quit [Quit: Leaving.]
mistermocha has joined #ruby
<ljarvis>
ruboto and `derpy are merely slaves to my commands
<Melpaws>
sorry - saw the derpy there link the url . guesing that's a bot :)
<ljarvis>
correct :)
<`derpy>
Go on, take all the credit, these doc links are generating themselves automatically.
<Melpaws>
lol
* ljarvis
was waiting for something like that
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
choke has joined #ruby
benlieb has quit [Quit: benlieb]
<adaedra>
What do you mean, "predictable"?
<ljarvis>
:P
axl_ has quit [Quit: axl_]
chimche has joined #ruby
Limix has joined #ruby
webstral has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
mfb2_ has joined #ruby
djbkd has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Darmani has joined #ruby
mjuszczak has quit []
<Darmani>
Hello my pretties<3
djbkd has joined #ruby
skcin7 has joined #ruby
snguyen has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
chimche has quit [Client Quit]
retnah has joined #ruby
djbkd has joined #ruby
underplank has joined #ruby
guacamol_ has joined #ruby
choke has quit [Ping timeout: 265 seconds]
<benlieb>
Any ruby mine users out there? I’m trying to use it for the first time and it can’t find ruby! It’s looking for a ruby “sdk”, but nothing I’ve given it can find the ruby interpreter. I use ruby-install, ruby-version, and chruby
<benlieb>
I’ve used Vim for 12 years and eveyone tells my modern IDEs are better
<benlieb>
Just spent an hour trying to get RM to find ruby, hm...
aadam21 has quit [Remote host closed the connection]
Gnut has joined #ruby
choke has joined #ruby
guacamole has quit [Ping timeout: 265 seconds]
mistermocha has quit [Remote host closed the connection]
zapata has quit [Quit: WeeChat 1.3]
peeja has quit [Ping timeout: 250 seconds]
akem has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Gnut has quit [Client Quit]
<benlieb>
That comment says “Although there's no official support for chruby , with RubyMine 8 chruby works without any hacks, the only gotcha is that you have to manually add the rubies.” The problem I was having was figuring out how to manually add the rubies..
<benlieb>
any suggestions?
skade has quit [Read error: Connection reset by peer]
<adaedra>
Preferences, Languages, Ruby.
tectonic has quit [Ping timeout: 272 seconds]
<adaedra>
I suggest you do it from the home screen rather than from a project to do it globally.
Gnut has joined #ruby
<adaedra>
You just click +, and select the 'ruby' binary for each version.
mistermocha has joined #ruby
<adaedra>
benlieb: ^
<benlieb>
I’ve been selecting: /Users/blieb/.rubies/ruby-2.2.3/bin/ruby
<Gnut>
More of a subjective question, but where do I go about handling data transformations when writing a gem?
mistermo_ has joined #ruby
<adaedra>
benlieb: and it doesn't work?
<benlieb>
It hasn’t been, but I had been trying from a project
<benlieb>
lemme try via preferences
Bloomer has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
mistermocha has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benlieb>
When I hit ‘apply’ in the ruby sdk and gems pane, it says “no ruby interperter configured for the project'
<benlieb>
That’s under ‘default settings'
mjuszczak has joined #ruby
roshanavand has joined #ruby
wldcordeiro has quit [Ping timeout: 246 seconds]
<adaedra>
mh, show me?
<benlieb>
also happens in preferences > ruby sdk and gems
duckpupp1 has joined #ruby
sandstrom has joined #ruby
<adaedra>
Ah, I see it
<adaedra>
Lol, RubyMine.
<adaedra>
Open a project and set it then, apparently there's a bug ¯\_(ツ)_/¯
<benlieb>
hm
Bloomer has quit [Ping timeout: 265 seconds]
solocshaw has joined #ruby
mistermo_ has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
nofxx has joined #ruby
nofxx has quit [Client Quit]
roshanavand has quit [Ping timeout: 264 seconds]
<adaedra>
Also, for your initial statement: if you're happy with your vim, keep it.
mjuszczak has quit [Ping timeout: 276 seconds]
choke has quit [Ping timeout: 265 seconds]
robbyoconnor has joined #ruby
sankaber has joined #ruby
robbyoconnor has quit [Client Quit]
cantaberry has quit [Ping timeout: 260 seconds]
sankaber has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 260 seconds]
<diegoviola>
isn't that offtopic talk
cantaberry has joined #ruby
Makorak has quit [Remote host closed the connection]
Dimik has joined #ruby
Xeago has quit [Remote host closed the connection]
colegatron has joined #ruby
sankaber has joined #ruby
weemsledeux has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
choke has joined #ruby
<Ox0dea>
diegoviola: Shall I phone the authorities?
Channel6 has quit [Ping timeout: 240 seconds]
<shevy>
oh!
<shevy>
adaedra emacs forever!
<diegoviola>
Ox0dea: if you want
<adaedra>
shevy: get away with your trolling.
<Ox0dea>
!cops These folks are discussing a Ruby IDE in #ruby!
snguyen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra>
benlieb: got it working?
elaptics`away is now known as elaptics
<benlieb>
adaedra: It seems to not give that error in the preferences > ruby sdk, so maybe
<benlieb>
it looks like a bug to me.
<adaedra>
yeah, same.
<adaedra>
RubyMine has some.
<adaedra>
Mine tries to use OS X's ruby (2.0) with my 2.2 gems, go figure.
<benlieb>
I’m not familiar enough with the ide to know if it’s working. It says it can’t find some gems etc. The app is over a year old, and all the gems are definitely installed
<benlieb>
so we’ll see.
Snowy has joined #ruby
<benlieb>
If this is off-topic, sorry, btw. Sometimes it’s hard to tell
<adaedra>
Did you select the right ruby (green check) in the ruby sdk preferences?
<benlieb>
adaedra: ewe that’s scary
<adaedra>
?
<benlieb>
the 2.2 gems w 2.0 ruby
<adaedra>
ah yes
scripore has joined #ruby
baweaver has joined #ruby
Snowy has quit [Remote host closed the connection]
<adaedra>
Check if the right ruby is selected, then do a `Tools > bundler > install` run to try things
Snowy has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
wldcordeiro has joined #ruby
underplank has quit [Read error: Connection reset by peer]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jbrhbr has quit [Quit: Leaving.]
<benlieb>
adaedra: I don’t see a tools > bundler
<adaedra>
Oh.
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<benlieb>
using 8.3
<adaedra>
8.0.3?
<benlieb>
oh, yeah that’s right
<adaedra>
:)
<adaedra>
I've got the same and I definitely have a Bundler item in tools menu
<benlieb>
guess it’s not working then :|
<adaedra>
Try quitting and reloading RubyMine, it helped me in the past
<diegoviola>
how can you guys be offtopic and not me
<diegoviola>
:(
choke has quit [Ping timeout: 265 seconds]
<adaedra>
how can other people read what they're told and not you
<apeiros>
Ox0dea: 2.3 in ruboto is ready. the new ops plugin isn't yet. but it's currently under testing and once it's deemed "bugfree enough" (which should be within the next 48h) I'll gradually replace ruboto.
underplank has joined #ruby
blackmesa has joined #ruby
j_mcnally has joined #ruby
<Ox0dea>
apeiros: Sounds good! Please tell me you've included vote-kicks?
<apeiros>
Ox0dea: no
<Ox0dea>
Shame.
<apeiros>
Ox0dea: the work was mostly replacing cinch and providing a proper ban handler
<apeiros>
i.e. one which can juggle bans and is easier to use
choke has joined #ruby
<Ox0dea>
Right, I remember.
<apeiros>
juggle bans because our banlist is too short :(
<Ox0dea>
What's wrong with Cinch?
<apeiros>
troubles on large channels if you want account names all the time
<adaedra>
Ox0dea: it's written in ruby.
<adaedra>
:p
<apeiros>
and some other issues which mostly stem from its model of "1+ thread per message"
<adaedra>
benlieb: no better?
gluec_ has quit [Remote host closed the connection]
jbrhbr has joined #ruby
<benlieb>
adaedra: I still dont’ see bundler and it still says it’s missing gems. My guess is that this means something’s funky with the ruby path, or the gem path etc. I think chruby probably changes those
Gadgetoid has quit [Ping timeout: 272 seconds]
<adaedra>
é_è
<benlieb>
I’m going to have to set this up slowly, since I’m at work, and I can’t justify spending too much time at once not getting anything done.
dorakyura has quit [Ping timeout: 256 seconds]
skcin7 has joined #ruby
<benlieb>
Which is basically why I’ve stayed with vim so long… lol
<adaedra>
that will be difficult to work with without having direct view on it, sorry
<adaedra>
It's strange that it complains about missing gems and not give you the menu for that