<slash_nick>
_blizzy_: shhh, they'll ban you for using windows
kfpratt has quit [Read error: Connection reset by peer]
<_blizzy_>
slash_nick, lol.
bronson has quit [Ping timeout: 272 seconds]
kfpratt has joined #ruby
blackmesa has quit [Quit: WeeChat 1.2]
<sevenseacat>
:o its a caesar cypher?
<Ox0dea>
Nailed it.
bf4 has quit [Ping timeout: 272 seconds]
<sevenseacat>
awesome :D
<Ox0dea>
It's a lot shorter than I'd expected it to be.
<ght>
Question: Does anyone have a single example of calling any method from any XMLRPC-based OAuth2 provider using XMLRPC::Client?
GPrime has joined #ruby
oo_ has quit [Remote host closed the connection]
<ght>
We've been calling XMLRPC-based API providers for years using XMLRPC::Client.new2(), but those were all using classic APIs, not OAuth2 APIs.
<ght>
From this provider, we can reteive the "code" on user authorization, use RestClient to retreive an access_token using the code, and use RestClient again to update the access_token, utilizing refresh_token
_blizzy_ has quit [Read error: Connection reset by peer]
<ght>
But with a known-good working access_token, we cannot call any XMLPRC-based method successfully. RestClient wants to pass the paramaters as a hash no matter what options we set, and XMLRPC::Client.new() or .new2() always fail with "premature end of file" on the .call() statement
nfk has quit [Quit: yawn]
enebo has joined #ruby
nobitanobi has joined #ruby
bruno- has joined #ruby
meph has quit [Quit: Leaving.]
mcclurmc has joined #ruby
_blizzy_ has joined #ruby
oo_ has joined #ruby
zacstewa_ has quit [Remote host closed the connection]
ninja-maid-robot has quit [Quit: brb everynyan]
yqt has quit [Ping timeout: 255 seconds]
<meatchicken>
if I'm in a method call within a block, can I access the block within that method?
<Ox0dea>
meatchicken: There are numerous ways to do so.
<Ox0dea>
You can explicitly declare the method to take a block by prefixing the last parameter with an ampersand.
<Ox0dea>
And then you just refer to it by name within the method.
howdoicomputer has joined #ruby
pothibo has quit [Quit: pothibo]
<Ox0dea>
Alternately, `proc` and `Proc.new`, when called without providing an explicit block, will instead use the one passed into the method.
<slash_nick>
Ox0dea: i interpreted that as more like something do; method_call; end.... inside of def method_call, can I access the "something" block?
aamador has joined #ruby
<meatchicken>
slash_nick, that's what I meant
<Ox0dea>
Oh, I see.
<meatchicken>
thanks Ox0dea though
juanca_ has quit [Remote host closed the connection]
<slash_nick>
meatchicken: why don't you pass what you need from the block to the method?
<meatchicken>
reason being -> I want to grab the binding of the block inside the method
<slash_nick>
if the method depends on something from the block, inject said dependency
juanca_ has joined #ruby
drewo has joined #ruby
Mekkis has joined #ruby
<meatchicken>
I'll give that a shot - I had reasons for not passing the stuff I need explicitly to the method though
bruno- has quit [Ping timeout: 248 seconds]
<meatchicken>
thanks folks
oo_ has quit [Ping timeout: 256 seconds]
<slash_nick>
meatchicken: i guess it's a pre-existing method and you don't want to change it if you don't need to?
ninja-maid-robot has joined #ruby
<meatchicken>
slash_nick, messing around with creating a gem, I don't want the user to have to pass in the dependency manually
Brom has joined #ruby
hunt3r has quit []
oo_ has joined #ruby
weemsledeux has joined #ruby
hahuang65 has quit [Ping timeout: 264 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
Muhannad has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
_blizzy_ has joined #ruby
<Ox0dea>
meatchicken: Um... you could use ObjectSpace?
CorySimmons has joined #ruby
<Ox0dea>
Definitely overkill, though. It'd be better to restructure the API such that you don't need access to a block from within itself.
renderful has joined #ruby
dkphenom has joined #ruby
aryaching has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<slash_nick>
meatchicken: it's kinda hard to picture what you're up to...
hunt3r has joined #ruby
<Ox0dea>
?xy
<ruboto>
it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
towski_ has quit [Remote host closed the connection]
<Ox0dea>
Sorry, I didn't remember it being that condescending.
renderful has quit [Ping timeout: 244 seconds]
howdoicomputer has quit [Ping timeout: 276 seconds]
oo_ has joined #ruby
<slash_nick>
Ox0dea: happens to me all the time with "helpa" in ror
<sevenseacat>
its truthful though.
<sevenseacat>
how would you reword it?
<slash_nick>
if there's a friendly version and a rude version, i happen to pick the rude one
GPrime has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
<slash_nick>
although, that wasn't too condescending at all
aamador has quit [Ping timeout: 276 seconds]
rails480 has joined #ruby
phutchins1 has joined #ruby
stardiviner has joined #ruby
rubie has joined #ruby
djbkd has quit [Remote host closed the connection]
juanca_ has quit [Remote host closed the connection]
djbkd has joined #ruby
skade has quit [Read error: Connection reset by peer]
bonhoeffer has joined #ruby
<bonhoeffer>
anyone know how to use the ruby driver to delete a record with mongo
<bonhoeffer>
i.e. Mongo::Client.new(‘…)[“entries”].find.first.remove <— doesn’t work
rails480 has quit [Client Quit]
<bonhoeffer>
the standard way is to operate on a Mongo::Collection::View
CorySimmons has quit [Quit: Bye!]
<bonhoeffer>
like: result = artists.find(:name => 'Björk').delete_one
<bonhoeffer>
but i want artists.find.first.delete_one
bf4 has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
<demophoon>
When saving a hash as yaml out to disk is there anything that I can do to stop the built-in yaml deserializer from converting symbols (and other ruby objects) to !ruby/sym key: value?
fabrice31 has quit [Ping timeout: 252 seconds]
Mekkis has joined #ruby
<slash_nick>
demophoon: what is "!ruby/sym key: value"?
rbennacer has quit [Remote host closed the connection]
* demophoon
creating a gist with repro.. one moment slash_nick
sharpmachine has quit [Ping timeout: 246 seconds]
<slash_nick>
my laptop will die in a moment, but it'll help someone else to help ya out
juanpablo_ has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
kfpratt has quit [Read error: Connection reset by peer]
Mekkis has quit [Client Quit]
<Ox0dea>
demophoon: What would you like it to do instead?
Spami has quit [Quit: This computer has gone to sleep]
<ght>
Question: No matter what I set my content_type header to in my RestClient.post statement, it is assing the parameters as a hash. I am attempting to interact with an XMLRPC API endpoint.
<ght>
Anyone know how to force plaintext passing of parameters in RestClient?
tuelz has joined #ruby
<ght>
I have tried a content_type of xml, 'application/xml', text
<demophoon>
sure? except i don't want to have to iterate through a massive object to stringify all the keys that might be symbols or other things. i didn't know if there was a flag i could pass into the yaml deserializer to stop it from doing the conversion
<ght>
I have restclient verbose logging enabled so I can see what its passing
mary5030 has joined #ruby
juanpablo_ has quit [Ping timeout: 265 seconds]
<ght>
It's passing them like this: params[limit]=1000¶ms[page]=0
<tuelz>
I have an array of string and I want to match a regex against those strings and return true if any matches, whats the cleanest way I can do that
Mekkis has joined #ruby
<Ox0dea>
>> %w[foo bar baz].any? { |word| word[/ba/] }
<Ox0dea>
The sequence predicates are already awesome, but being able to combine them with case equality is just <3.
daynaskully has quit [Quit: quit]
<Ox0dea>
nobu doesn't seem to agree. :/
<axisys>
how do I get a list of all unix env variables that ruby know? like ENV['USER']
scruple has quit [Ping timeout: 265 seconds]
<tuelz>
is it possible to interpolate inside %w[]?
<Ox0dea>
tuelz: You need %W.
kfpratt has quit [Read error: Connection reset by peer]
<tuelz>
ahh, of course, thanks
<Ox0dea>
axisys: >> ENV.keys
Mekkis has joined #ruby
<sevenseacat>
Ox0dea: seems people like the idea of your patch
weemsledeux has quit [Ping timeout: 264 seconds]
<axisys>
Ox0dea: sweet! thanks
kfpratt has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
emptyflask has joined #ruby
bonhoeffer has quit [Read error: Connection reset by peer]
bonhoeffer has joined #ruby
<Ox0dea>
sevenseacat: It has its proponents, to be sure, but matz has ignored his being assigned to it. Hopefully nobu is just waiting for matz to chime in on it.
gambl0re has joined #ruby
ivanskie has joined #ruby
freerobby has quit [Quit: Leaving.]
sarkyniin has quit [Read error: Connection reset by peer]
<Ox0dea>
demophoon: Serialization is about being able to faithfully restore the thing later. Why have special keys if you'll only be able to get them as a string at the other end?
yayfoxes_ has joined #ruby
sarkyniin has joined #ruby
<axisys>
which ruby ENV key holds the username of `who am i`? it does not change with sudo su -
<demophoon>
Ox0dea: Because i'm reading and saving configuration files using ruby just to modify the content for another application that doesn't know how to read !ruby/sym in the saved file
<axisys>
eam: linux
<eam>
it should change, then
<Ox0dea>
axisys: ENV['SUDO_USER'] looks to be the one you want.
<axisys>
may be sudoers file prevents the change with
tubuliferous_ has quit [Ping timeout: 252 seconds]
<eam>
axisys: you want to approximate the behavior of `who` from ruby, as in knowing the owner of the controlling terminal and not the actual current uid?
<axisys>
eam: right
<stoodfarback>
"Done installing documentation for libv8 after 0 seconds" ... as if.
<Ox0dea>
demophoon: It seems a very simple solution to your problem would be to just use string keys in the first place.
<eam>
you can turn the uid into a username with getpwuid() from etc
digifiv5e is now known as Guest59643
<Ox0dea>
demophoon: That returns a hash with string keys unless you're using the special :symbol: syntax in the YAML file.
<Ox0dea>
The problem, then, is that you're using symbol keys when updating that hash; just don't do that?
<eam>
some more clever implementations will try that operation on fd 0, 1 and 2 (stdin, out and err)
<demophoon>
Ox0dea: oh, i guess the configuration file i'm loading in is using the :symbol: syntax :\
<axisys>
system("who am i") works
shadoi has quit [Quit: Leaving.]
<axisys>
eam: ^
<eam>
sure, or you could just put the whole script into there :)
<axisys>
eam: I do not want to rely on etc module
<eam>
etc is core
<eam>
you don't need to install a gem
<axisys>
eam: it is?
<axisys>
oh ok
Mekkis has quit [Client Quit]
Pupeno has quit [Ping timeout: 256 seconds]
tubuliferous_ has joined #ruby
mcclurmc has quit [Ping timeout: 256 seconds]
Mekkis has joined #ruby
charliesome has quit [Quit: zzz]
<Ox0dea>
demophoon: Serialize to JSON, parse the result back into a hash, then seriaize that to YAML?
<demophoon>
Ox0dea: anyhow, thanks for the help. I'm going to keep digging.
<demophoon>
Ox0dea: ah, i could try that
Guest59643 has quit [Changing host]
Guest59643 has joined #ruby
<Ox0dea>
It'll work. JSON doesn't support anything fancy.
dgutierrez1287 has quit [Remote host closed the connection]
Guest59643 is now known as guyz
dgutierrez1287 has joined #ruby
emptyflask has quit [Quit: leaving]
<Ox0dea>
It's a little heavy-handed, but not so terrible if you've got deep nesting.
Alayde has quit [Ping timeout: 248 seconds]
mary5030 has quit [Remote host closed the connection]
Mekkis has quit [Client Quit]
<demophoon>
Ox0dea: yeah, thats what i'm worried about by doing it any other way. I've got an unknown number of levels that this config file can be. Thanks again :)
<Ox0dea>
Happy to help.
gaboesquivel has joined #ruby
oo_ has quit [Remote host closed the connection]
<Ox0dea>
It's easy enough to deep-convert a hash's keys to strings, but you might as well take advantage of the fact that JSON provides the semantics for doing so.
<Ox0dea>
Well, "from" sounds like it would "generate" a File, so to speak, whereas it's the case that it already exists and just needs to be looked up.
iwaffles has quit [Quit: iwaffles]
charliesome has joined #ruby
bf4 has joined #ruby
<Ox0dea>
"Create a file from" vs "find the file for".
<eam>
I mean, it does generate a file object. It's just not clear to me that the method is a constructor is all
oo_ has joined #ruby
bking39116 has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kfpratt has quit [Read error: Connection reset by peer]
kfpratt has joined #ruby
sarkyniin has quit [Ping timeout: 255 seconds]
sharpmachine has joined #ruby
nobitanobi has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
<baweaver>
too bad Ox0dea isn't online...
Aswebb_ has joined #ruby
<sevenseacat>
hot damn.
<baweaver>
>> *?`..?{
<ruboto>
baweaver # => /tmp/execpad-8a29cf644539/source-8a29cf644539:2: syntax error, unexpected .., expecting :: or '[' or ...check link for more (https://eval.in/390173)
Carnage\ has quit [Client Quit]
psyprus has quit [Ping timeout: 248 seconds]
<baweaver>
>> [*?`..?{]
<ruboto>
baweaver # => ["`", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", ...check link for more (https://eval.in/390174)
pgatt has joined #ruby
RobertBirnie has quit [Read error: Connection reset by peer]
<baweaver>
>> [*?`..?{][1..-2]
<ruboto>
baweaver # => ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", ...check link for more (https://eval.in/390175)
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
sharpmachine has joined #ruby
<Ox0dea>
baweaver: Do you know why I had to extract the 26 out as a variable?
<baweaver>
so just a ternary in there to leave spaces and other characters alone
<baweaver>
rotation
<Ox0dea>
Right, but why not in-place?
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<baweaver>
not sure
<Ox0dea>
Me neither. :)
<baweaver>
optimized perlisms?
baweaver_ has joined #ruby
<Aeyrix>
lmao
<baweaver>
hm, have I now...
<baweaver>
odd
<baweaver>
laptop must have connected in my bag
<Aeyrix>
hah
<Aeyrix>
someone's impersonating baweaver
<Aeyrix>
m o d s
<Aeyrix>
o
<Aeyrix>
d
<Aeyrix>
s
<baweaver>
Same network area
<baweaver>
aaand it didn't go to sleep
<Aeyrix>
they've hijacked your wifi
<Ox0dea>
I take offense at these being considered Perlisms. Non-alphanumeric Perl mostly just takes advantage of the fact that you can eval the results of a gsub.
<baweaver>
good luck with that one
auzty has joined #ruby
roolo has joined #ruby
balazs_ has quit [Ping timeout: 255 seconds]
devoldmx_ has joined #ruby
<baweaver>
short of hardware / firmware hacks, people aren't getting in the front door of that one
devoldmx has quit [Read error: Connection reset by peer]
<Aeyrix>
I get actual internet soon :D
sharpmachine has quit [Ping timeout: 248 seconds]
devoldmx_ has quit [Read error: Connection reset by peer]
<baweaver>
shoot, well that destroyed a nail....
<Aeyrix>
?
devoldmx has joined #ruby
<baweaver>
wasn't paying attention and jammed my hand against something
LiquidInsect has quit [Ping timeout: 264 seconds]
<Ox0dea>
Just paint over it?
<baweaver>
makes guitar annoying to play for a few weeks
nobitanobi has joined #ruby
<Aeyrix>
I haven't played mine for a while.
<Aeyrix>
:<
baweaver_ has quit [Ping timeout: 248 seconds]
<baweaver>
classical here, mostly fingerstyle
<Ox0dea>
There will be blood.
<Aeyrix>
Electric here, mostly funk.
<mhb>
haha
devoldmx has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
<Aeyrix>
Neither.
<baweaver>
cheeky bugger too that one.
<Aeyrix>
Mine's super long atm and desparately needs a cut.
<sphex>
well then. I don't get it. :/ oh well.
devoldmx has joined #ruby
<Aeyrix>
I look like I have a lion's mane.
<Aeyrix>
sphex: What don't you get about iT?
<Aeyrix>
Why do I keep making that mistake?
drefined has joined #ruby
j4cknewt has joined #ruby
radialneon has quit [Remote host closed the connection]
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<Ox0dea>
Aeyrix: That was about 140WPM.
<Aeyrix>
Oh.
<Aeyrix>
:^)
<Ox0dea>
We should race. :)
fabrice31 has joined #ruby
<Aeyrix>
Ox0dea: I'm on a nonstandard keyboard atm.
<Aeyrix>
So I'll be slower and less accurate than usual.
renderful has joined #ruby
sarkyniin has quit [Ping timeout: 252 seconds]
tagrudev has joined #ruby
devoldmx has joined #ruby
<Ox0dea>
Aeyrix: Do you normally use an Advantage?
gix has quit [Ping timeout: 252 seconds]
<Aeyrix>
I normally use a Macbook keyboard.
chipotle_ has joined #ruby
hotpancakes has joined #ruby
Alina-malina has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
Alina-malina has joined #ruby
devoldm__ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has quit [Ping timeout: 264 seconds]
nobitanobi has quit [Remote host closed the connection]
Rickmasta has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
devoldm__ has quit [Read error: Connection reset by peer]
<shevy>
baweaver ooooh rock groups!
<shevy>
Boston - more than a feeling! \o/ \o~
renderful has quit [Ping timeout: 248 seconds]
chipotle has quit [Ping timeout: 264 seconds]
gauke has joined #ruby
gix has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
juanpablo_ has joined #ruby
devoldmx has joined #ruby
jhooker has joined #ruby
charliesome has quit [Quit: zzz]
bluOxigen has joined #ruby
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<sphex>
def test; 2; end; 1 + test { };
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sphex>
don't the brackets have higher precedence than the "+"?
juanpablo_ has quit [Ping timeout: 246 seconds]
jhooker has quit [Ping timeout: 248 seconds]
gambl0re has quit [Ping timeout: 248 seconds]
<sphex>
since they associate with "test", not the result of the "+" operator...
zacstewart has quit [Ping timeout: 248 seconds]
devoldmx has quit [Read error: Connection reset by peer]
kfpratt has quit [Read error: Connection reset by peer]
<flughafen>
hey everybody
kfpratt has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
* flughafen
is back from scotland
_ht has joined #ruby
<Aeyrix>
yo
zacstewart has joined #ruby
devoldmx has joined #ruby
NightMonkey has quit [Ping timeout: 244 seconds]
<flughafen>
yo Aeyrix
<Aeyrix>
How was Scotland?
<flughafen>
fun, but short
fsvehla has joined #ruby
<Aeyrix>
Where'd you go? North or South?
<shevy>
sphex yeah. Do you see a problem in the above code?
devoldmx has quit [Read error: Connection reset by peer]
<shevy>
flughafen wow so you DO still fly!
<shevy>
Aeyrix are you happy that the scots remained in the british empire?
devoldmx has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
<Aeyrix>
shevy: It's for their own good.
jfarmer has quit []
<flughafen>
shevy: not through BER
<Aeyrix>
Scotland has no bargaining power with the European Union. If they left GB, they'd be out in the cold and that's a real problem.
<Aeyrix>
There's a waiting list around the world for countries wanting to become a part of the EU.
<Aeyrix>
Scotland would have to just wait in line if they left.
<sevenseacat>
around the world? not just in europe? >_>
<Aeyrix>
Mhm.
<sphex>
shevy: no, it's just that I *think* the documentation is wrong, but I'm not sure... now that I think about it, maybe they just mean that the "grouping" of brackets is more important during parsing than operator precedences altogether.
<shevy>
Australia will be assimilated one day as well! We are the BORG, resistance is futile.
devoldmx has quit [Read error: Connection reset by peer]
<shevy>
hmm might be the wrong idiom
<Aeyrix>
*shrugs*
jeanlinux has joined #ruby
<Aeyrix>
Some Australians want it to become a republic, which I think is a dreadful idea.
devoldmx has joined #ruby
<Aeyrix>
Cutting ties like that nowadays just doesn't work at all.
<shevy>
sphex if it helps, I always think of blocks to methods just as an extra argument; in the code above, no code would be put into the {} and there is no yield-handling, so it's an empty arg-passing that just gets discarded; 2 is return always
<sevenseacat>
I don't know what we would achieve by that
<Aeyrix>
Unless you're, say, Saudi Arabia or something, with massive export power.
<Aeyrix>
sevenseacat: "independence"
<shevy>
sevenseacat you'd get a new head of the state!
NightMonkey has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<shevy>
Aeyrix I don't know anything about Australia except that it is (1) hot (2) has weird alien animals like that kangaroo thingy or ... what are those animals called that eat eucalyptus... hmm
<Aeyrix>
Koalas.
<Aeyrix>
Australia's chief export is racism.
devoldmx has joined #ruby
<shevy>
and they were founded by pirates!
<sevenseacat>
yeah but in practical terms, that means nothing
<shevy>
hehe
<Aeyrix>
sevenseacat: Independence, or being founded by pirates?
Melite has joined #ruby
<sevenseacat>
founded by convicts, not pirates
<shevy>
arrrrr
<sevenseacat>
get it right, geez
<Aeyrix>
Nah it was pirates.
<Aeyrix>
Illegal people on a boat - pirates.
<Aeyrix>
:^)
<sevenseacat>
j/k
<shevy>
you are a pirate cat
<Aeyrix>
heh
funfunctor has joined #ruby
<funfunctor>
g'day
roolo has quit [Remote host closed the connection]
<Aeyrix>
Yo.
<sevenseacat>
sup.
<Aeyrix>
shevy: Kangaroo is pretty tasty.
<Aeyrix>
I'd put it above beef.
revath has joined #ruby
devoldmx_ has joined #ruby
<funfunctor>
I already know how to program, I am looking for something that is as dense as possible to learn ruby quickly..
<shevy>
32bit, I have no idea, has anyone in ruby code needed to know that?
<funfunctor>
Integer is arbitrary while Int is machine sized in the case of Haskell.
amclain has quit [Quit: Leaving]
<shevy>
well the whole of Ruby is arbitrary :-)
LiquidInsect has joined #ruby
<sphex>
funfunctor: all arithmetic appears to be arbitrary precision, you don't have to worry about it. the results are "coerced" as needed.
<sevenseacat>
yeah we dont care about that kind of stuff
<funfunctor>
Do signed int's wrap when they overflow in ruby or is that never get to runtime?
Xeago has quit [Remote host closed the connection]
sharpmachine has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<funfunctor>
sphex: ok so its all dynamically typed then?
<shevy>
nah, overflow... I guess the worst that can happen is when you like allocate or use a million string objects for a hash as a key
<funfunctor>
any idea what type inference formalism that is based on?
devoldmx has joined #ruby
<sphex>
yeah. hurry up, you're wasting time with this integer stuff. you're not learning fast enough.
<funfunctor>
lol
sdwrage has quit [Quit: This computer has gone to sleep]
<shevy>
funfunctor is there any? if you try to add incompatible objects via + then an error happens
<shevy>
>> 1 + '2'
<ruboto>
shevy # => String can't be coerced into Fixnum (TypeError) ...check link for more (https://eval.in/390195)
<sevenseacat>
this is all answered in the docs, you know
<funfunctor>
I already skimmed though the stuff.. nothing special, I know python, ada, haskell, c, c++, etc..
<shevy>
good! ruby is very similar to python
maletor has joined #ruby
SOLDIERz has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
I just tried 1 + '2' in python
<shevy>
TypeError: unsupported operand type(s) for +: 'int' and 'str'
arescorpio has quit [Quit: Leaving.]
<shevy>
\o/
<Aeyrix>
shevy: e
<Aeyrix>
ye
<Aeyrix>
won't work
<funfunctor>
shevy: yes objects enumerated from different classes have different types, I should hope that is compile time :)
devoldmx has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
<shevy>
both actually give a TypeError, they even agree on the name :)
<sevenseacat>
'compile time'?
<funfunctor>
ok, so (+) is typically overloaded then
<funfunctor>
sevenseacat: "before evaluation"
<Ox0dea>
~ $ python2 -c "print('1' < 2)"
<shevy>
nah, you just have objects that will be compatible
<Ox0dea>
False
<sphex>
funfunctor: it reminds me of Scheme and Lisp's numerical towers. the arithmatic operators will yield a value of type needed to represent it. numeric values are immutable, so you always get a new one with a possibly different type when doing arithmetic.
RegulationD has quit [Ping timeout: 264 seconds]
<funfunctor>
actually, is ruby lazy or strict evaluation?
devoldmx has quit [Read error: Connection reset by peer]
zacstewart has quit [Ping timeout: 256 seconds]
<funfunctor>
can you control strictness, for example in Haskell as a example again, data Foo = Foo { a :: Int, b :: !Int }
devoldmx has joined #ruby
zacstewart has joined #ruby
kfpratt has joined #ruby
<funfunctor>
gives us b being strict while a is lazy
Hobogrammer has quit [Ping timeout: 250 seconds]
sharpmachine has quit [Ping timeout: 264 seconds]
<Ox0dea>
It kinda seems like you're here to subtly gloat (?) about having read the first few chapters of a Haskell book.
<funfunctor>
and so Foo (4+3) (1+2) will give you the type Foo (4+3) 3
sandstrom has joined #ruby
aapole has quit [Ping timeout: 250 seconds]
<sevenseacat>
funfunctor: I suggest getting a basic ruby tutorial, because your questions dont make much sense.
devoldmx has quit [Read error: Connection reset by peer]
<funfunctor>
Ox0dea: no, I can pick another language if you like
User458764 has joined #ruby
devoldmx has joined #ruby
<sevenseacat>
a basic ruby tutorial, and opening irb.
chinmay_dd has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
<funfunctor>
sevenseacat: my question about evaluation is fairly important in terms of efficient implementation, if my class methods are strictly evaluating types all the way down to the value level all the time then it could be important to be aware of this
kstuart has quit [Quit: WeeChat 1.2]
Rollabunna has joined #ruby
<sevenseacat>
ruby has no type checking.
robbyoconnor has quit [Ping timeout: 256 seconds]
<Ox0dea>
It does.
<sphex>
funfunctor: if you know python/perl/lisp, then.. just assume it's going to work like them. types are associated with values only, there are no lexical type annotations anywhere in the language AFAIK.
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<funfunctor>
sevenseacat: I have that open on the other screen, basics isn't hard, I am more interested in some of the finer details
<sevenseacat>
not in the sense funfunctor means
<sevenseacat>
thats why the questions make no sense
aryaching has quit [Ping timeout: 248 seconds]
Olipro has quit [Ping timeout: 252 seconds]
<funfunctor>
"sevenseacat: ruby has no type checking." sounds completely wrong to me
arup_r has joined #ruby
<Ox0dea>
>> (1..Float::INFINITY).lazy.map { |x| x * 2 }.take(10).force
<funfunctor>
you can say ruby is dynamically typed or type inferred sure
kfpratt has joined #ruby
<flughafen>
ooooh infinity!
<sevenseacat>
sigh
devoldmx has joined #ruby
<Radar>
Can't tell if trolling or asking legitimate questions.
* funfunctor
looks up the force method
<Ox0dea>
It... forces evaluation?
<Ox0dea>
Read the next chapter in your Haskell book. :P
<sevenseacat>
I think a bit of both. thinks they're too cool to look up a tutorial
kfpratt has quit [Read error: Connection reset by peer]
<sevenseacat>
and wants to impress with fancy questions
<Aeyrix>
Ox0dea: nah it uses
<Aeyrix>
force push
<sevenseacat>
that arent at all relevant
<Ox0dea>
He's certainly not here to learn Ruby, in my opinion.
<funfunctor>
why does everything think everything is a troll these days.. Eternal September has destroyed the internet
devoldmx has quit [Read error: Connection reset by peer]
<Aeyrix>
Ox0dea: maybe we should show him
<Aeyrix>
your code golf
<Aeyrix>
:^)
<Ox0dea>
It's not golf.
<sphex>
yeah.. if you already know python, start from there. haskell is not a similar language at all.
<Aeyrix>
Ox0dea: Fine, your code badminton.
devoldmx has joined #ruby
<funfunctor>
I only picked haskell randomly
<funfunctor>
gezzz
<funfunctor>
its not a game
kies^ has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Ping timeout: 248 seconds]
kies has quit [Ping timeout: 264 seconds]
djellemah_ is now known as djellemah
<funfunctor>
I can use python as a point of reference or lua, would that be better?
devoldmx_ has quit [Ping timeout: 264 seconds]
<Ox0dea>
Did you ask these sorts of entirely inapplicable questions when you were learning Python?
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
damncabbage has joined #ruby
<sphex>
If I knew Haskell I would *never* shut up about it.
<shevy>
funfunctor why do you want to use python :(
<Aeyrix>
It seems that way with functional programming.
<funfunctor>
sphex thanks for your direct responses
kfpratt has joined #ruby
* Aeyrix
looks at sevenseacat and Radar.
<Radar>
`Hi.
<sevenseacat>
hello.
<Aeyrix>
We're talking about how much you like to tell people you like Elixir.
<shevy>
oh damn 2 Australians are online now
<Aeyrix>
:^)
<Aeyrix>
shevy: 3
<shevy>
hmm
<funfunctor>
shevy: I don't really care, each thing has its own purposes
devoldmx has quit [Read error: Connection reset by peer]
* Radar
is clearly clueless about software because he didn't know what BNF was
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Aeyrix>
Binary Notation Floatation.
<shevy>
back naur for... something
<Radar>
funfunctor: Please take the time to read through the resources we have linked you to.
Xeago has joined #ruby
devoldmx has joined #ruby
<shevy>
or backus, what a weird name anyway
<sevenseacat>
backhaus normal form or some shit.
<sphex>
funfunctor: yeah, perl/python/lua/lisp and smalltalk are a lot more similar to ruby, especially WRT value semantics
emilkarl has joined #ruby
<funfunctor>
Aeyrix: no, Backus–Naur Form
<funfunctor>
Aeyrix: the syntactic formalism
<shevy>
Aeyrix see how you get corrected mercilessly? :D
<Ox0dea>
funfunctor: How do you type that fancy dash?
<shevy>
alright let's blow it up...
<shevy>
funfunctor what is a monad
<sevenseacat>
aw shit
<shevy>
I don't see the dash :( must be unicode
<Aeyrix>
shevy: I pulled my guess out of the air.
<shevy>
hehe
<funfunctor>
is this going to degenerate into a trolling session?
<Aeyrix>
Yes.
devoldmx has quit [Remote host closed the connection]
intyl has quit [Ping timeout: 246 seconds]
<damncabbage>
shevy: :|
<funfunctor>
shevy: its unicode, I can never spell it so I copy and pasted it
<sphex>
funfunctor: ruby is very expression-oriented. most compound constructs start with a keyword and end with "end". then what really matters is operator precedences. just read the doc/syntax bits, you're gonna have a hard time finding more succinct documentation than that.
<shevy>
I remember I once wanted to write my own programming language... then I realized that I have to understand things such as Backus Naur... bison... those kind of things. That was so boring!
devoldmx has joined #ruby
<Ox0dea>
funfunctor: This is IRC, mate; you could've just used a hyphen.
<funfunctor>
no idea why you would call your child Naur
<Ox0dea>
matz considered calling his language Coral.
<djellemah>
Ox0dea: the 4th one :-O
<baweaver>
that I actually understand that Ox0dea
<Ox0dea>
baweaver: Hm?
<baweaver>
I was teaching Monoids to Scala newbies yesterday
<shevy>
Mongoids?
<Aeyrix>
wtf
devoldmx_ has quit [Read error: Connection reset by peer]
<shevy>
cool that you teach stuff to people - and get paid for it!
devoldmx_ has joined #ruby
<funfunctor>
sphex: thanks again for the direct answers, guess I'll just grok though it all and perhaps be back if anything else 'special' comes to mind but things seem well documented.
<damncabbage>
Ox0dea: Your burrito and spacesuit are both partial; expect them both to blow up in your face without warning.
<sphex>
funfunctor: alright, np.
devoldmx_ has quit [Read error: Connection reset by peer]
funfunctor has left #ruby [#ruby]
devoldmx has joined #ruby
acke has joined #ruby
User458764 has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andikr has joined #ruby
Aswebb_ has quit [Ping timeout: 255 seconds]
iszak has joined #ruby
zacstewart has quit [Ping timeout: 248 seconds]
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
i8igmac has quit [Ping timeout: 256 seconds]
Channel6 has quit [Quit: Leaving]
<sphex>
shevy: BTW, there's a trick to implementing parsing easily. recursive descent can support most language constructs straightforwardly. but operator precedence stumbles most people, but there's a really simple way to do it. look up "pratt parser". the main loop is just a few line of code, it's table-based and really fast.
<sphex>
and operators can be added/modified dynamically
devoldmx_ has quit [Read error: Connection reset by peer]
jtdoncas has joined #ruby
devoldmx has joined #ruby
<shevy>
hmm
devoldmx has quit [Read error: Connection reset by peer]
yardenbar has joined #ruby
devoldmx has joined #ruby
jas02 has joined #ruby
peter_paule has joined #ruby
howdoi has joined #ruby
<Aeyrix>
[16:24:29] funfunctor (~edward@promim2.lnk.telstra.net) left the channel
<Aeyrix>
> telstra
<Aeyrix>
he's an aussie
devoldmx_ has joined #ruby
zacstewart has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<Radar>
evidenced by his "g'day" as he joined, too
khebbie has joined #ruby
<Aeyrix>
South Africans say that too, a bit.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Aeyrix>
ime
<shevy>
huh
<shevy>
aussies are weird
<Aeyrix>
Yeah I know.
User458764 has joined #ruby
devoldmx has joined #ruby
Bertg has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
jas02_ has joined #ruby
<sphex>
they use the word "cunt" so much that they need to qualify it now
<shevy>
just take Crocodile Dundee!
devoldmx has quit [Read error: Connection reset by peer]
jas02 has quit [Ping timeout: 248 seconds]
jas02_ is now known as jas02
devoldmx has joined #ruby
<sevenseacat>
sphex: I dont think that word is appropriate for this channel.
revath has joined #ruby
arturaz has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
peter_paule has quit [Ping timeout: 276 seconds]
devoldmx has joined #ruby
dseitz has joined #ruby
karols has joined #ruby
<sphex>
welp. I've been naughty.
karols has quit [Max SendQ exceeded]
yfeldblum has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<shevy>
yeah
nirix has joined #ruby
workmad3 has joined #ruby
<Aeyrix>
( ͡° ͜ʖ ͡°)
riotjones has joined #ruby
hunt3r has quit []
devoldmx_ has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 256 seconds]
troulouliou_dev has quit [Quit: Leaving]
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has quit [Read error: Connection reset by peer]
Xeago has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
djbkd has joined #ruby
devoldmx has joined #ruby
zacstewart has quit [Ping timeout: 246 seconds]
mister_solo has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
damncabbage has left #ruby [#ruby]
niemcu has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
DexterLB has joined #ruby
jph98 has joined #ruby
Atomic has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
zacstewart has joined #ruby
devoldmx has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
gauke has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
peter_paule has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
freezevee has joined #ruby
eGGsha has joined #ruby
Sinami has quit [Quit: Leaving]
fabrice31 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
jenrzzz has joined #ruby
<freezevee>
hi guys, I am trying to get a service working with systemd in ubuntu running a ruby script that parses data from web sites and then displays them on a mini-api in sinatra. While it runs successfully, I get random errors. Can someone please take a look ? https://github.com/chrisvel/apc_ups_api
robbyoconnor has joined #ruby
matp has quit [Remote host closed the connection]
<_mh_>
freezevee: "random errors" ?
kfpratt has joined #ruby
devoldmx_ has joined #ruby
drewo has joined #ruby
solars has joined #ruby
<ddv>
freezevee: lol
peter_paule has quit [Ping timeout: 246 seconds]
devoldmx has quit [Read error: Connection reset by peer]
fabrice31 has quit [Remote host closed the connection]
<freezevee>
_mh_: first of all I execute manually systemctl start ups_parser.service
fabrice31 has joined #ruby
balazs has joined #ruby
<sevenseacat>
"look at my entire app to fix my random unspecified errors"
devoldmx_ has quit [Remote host closed the connection]
devoldmx has joined #ruby
<_mh_>
freezevee: without a specific description on what errors you get from your ruby script ... we can't help you, I'm afraid.
<freezevee>
_mh_: sorry, it takes time to think and write !
Musashi007 has quit [Quit: Musashi007]
<shevy>
freezevee this cat is not in a friendly mood right now
<ddv>
freezevee: you might want to put a sleep 1 in that loop because it could block the main thread due to 100% cpu usage
Rollabunna has joined #ruby
<freezevee>
_mh_: actually it is my first service and I wonder If it is normal that i don't get the terminal prompt back
devoldmx has quit [Read error: Connection reset by peer]
<ddv>
freezevee: oh you already have a sleep
devoldmx_ has joined #ruby
jph98 has quit [Quit: jph98]
<shevy>
props for being able to use systemd in the first place though
<freezevee>
_mh_: that means If I execute systemctl start ups_parser.service & then I get a pid and everything is ok
jtdoncas has quit [Ping timeout: 248 seconds]
<_mh_>
freezevee: Well, it's usually _your_ job to make sure that the whole thing detaches properly from the executing terminal
<sevenseacat>
shevy: you wouldnt be either if you were trying to debug the code I'm debugging
<ddv>
great he ignores me
<shevy>
hehe
<shevy>
ddv it's because of your nick, it's so short and innocent
drewo has quit [Ping timeout: 264 seconds]
<freezevee>
_mh_: should I do this *inside* the ruby script or in systemd ? I mean, systemd runs everything in background or I must do this by myself with Thread, PRocess or whatever
Lucky___ has joined #ruby
devoldmx has joined #ruby
balazs has quit [Ping timeout: 246 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
<_mh_>
freezevee: also what ddv said. Plus, Why do you generate IO objects with IO.popen that you don't use? And yes, inside your ruby script, look at Process#daemon.
<freezevee>
ddv: sorry man I don't ignore you,
stan has joined #ruby
<shevy>
poor ddv
<ddv>
he doesn't deamonize his program
<ddv>
so he should use Type=simple
<ddv>
it does not fork
isxek has quit [Quit: Page closed]
krz has joined #ruby
zacstewart has quit [Ping timeout: 265 seconds]
<shevy>
you guys all seem to be systemd experts
<_mh_>
ddv: so systemd can handle programs taht don't demonize on it's own?
devoldmx has quit [Read error: Connection reset by peer]
fp- has joined #ruby
<ddv>
yes
<_mh_>
that's kinda need.
<_mh_>
neat
juanpablo_ has joined #ruby
sharpmachine has quit [Ping timeout: 248 seconds]
devoldmx has joined #ruby
<fp->
is there anyone who can tell me why local_time (github.com/basecamp/local_time) keeps giving me time that's 4 hours in the future?
Rollabunna has quit [Ping timeout: 248 seconds]
devoldmx_ has quit [Ping timeout: 264 seconds]
devoldmx has quit [Read error: Connection reset by peer]
<freezevee>
_mh_: so systemd doesn't have any multitasking processing by its own ?
devoldmx has joined #ruby
<freezevee>
_mh_: I thought that the O/S is doing all the job
revath has quit [Read error: Connection reset by peer]
railsraider has joined #ruby
<_mh_>
freezevee: did you follow the conversation? ddv did just point out that systemd can handle non-daemonizing processes if you put type=simple.
revath has joined #ruby
<_mh_>
gnargh, too early for proper english.
devoldmx has quit [Read error: Connection reset by peer]
<freezevee>
_mh_: what do you suggest ?
devoldmx has joined #ruby
<ddv>
lol
<freezevee>
_mh_: I mean, what would you do personally ?
<sphex>
freezevee: I'm guessing it does it itself if you ask it to. I don't know about systemd in particular, but in general, it can be useful when daemon-type programs fork themselves only after they are ready to handle requests, etc. that way the other services can get started once their dependencies are ready.
juanpablo_ has quit [Ping timeout: 246 seconds]
sandstrom has joined #ruby
Xeago has joined #ruby
<sphex>
freezevee: try the type=simple thing, c'mon!
zacstewart has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
<_mh_>
freezevee: what ddv said, both of his pointers. Plus get rid of the pipe = IO.popen if you don't need it. You can worry about handling daemonizing once you have mastered your script.
lolmaus has joined #ruby
olistik has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
devoldmx has quit [Read error: Connection reset by peer]
dhjondoh has joined #ruby
<_mh_>
freezevee: and some error output would really help understand where exactly you are hanging, right now we are just stabbing at the dark.
<freezevee>
_mh_: last time I asked someone mocked at me and told me that ruby daemonizing is BS
devoldmx has joined #ruby
<freezevee>
_mh_: so I am trying to follow the best practise
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<freezevee>
_mh_: second one is that with "&" it fails after some executions with an error systemd[1]: Failed to start Ups data parser.
robbyoconnor has quit [Ping timeout: 246 seconds]
<shevy>
yay systemd error!
Guest85 has joined #ruby
Guest85 has left #ruby [#ruby]
revath has joined #ruby
<_mh_>
freezevee: so you are asking unix questions and not ruby questions? And maybe both would be fixed using type=simple instead of type=forking as ddv suggested?
<shevy>
hey
<freezevee>
shevy: I see the status and it executes 10 times and then fails without a reason
<shevy>
systemd
<shevy>
question
<shevy>
:-)
<sphex>
freezevee: daemons "fork" a sub-process, and then the parent process terminates. for these, systemd can safely wait for the parent process to terminate. then there are processes that don't do that. for these, systemd must not wait. both are OK, but it has to know which one it is.
<freezevee>
shevy: should I leave the service as is and convert the ruby script to a daemon ?
devoldmx_ has joined #ruby
<ddv>
freezevee: we are not going to debug your program for you, don't you think thats pretty rude to just dump a github url?
sandstrom has quit [Quit: My computer has gone to sleep.]
msgodf has joined #ruby
<shevy>
I dunno, it's your script and code? I can not relate to it, I don't use systemd for instance; but you can easily run ruby as a daemon, I do this to get regular data from a remote website for instance
<freezevee>
ddv: noone requested that
astrobun_ has quit [Remote host closed the connection]
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
<shevy>
aha!
<shevy>
so the evil mocker was apeiros!
<apeiros>
shevy: I wasn't even participating in that discussion
<flughafen>
shevy has 3194 alias to fix that issue
devoldmx has quit [Ping timeout: 264 seconds]
<shevy>
damn
<shevy>
so the evil mocker is still unidentified
* shevy
peers at flughafen suspiciously.
<sevenseacat>
lol
<shevy>
flughafen actually I don't have that many ruby scripts that I want to run in the background... I think at least 98% are just "do a task, then exit" things
<apeiros>
shevy: I don't see any mocking going on. that's why I ask them.
devoldmx_ has quit [Read error: Connection reset by peer]
<sphex>
oh gawd. as there been mocking? I thought this channel was a safe space...
devoldmx has joined #ruby
<ddv>
are we talking about mocking as in testing or just mocking in general
<freezevee>
I love this place
zacstewart has quit [Ping timeout: 276 seconds]
Aswebb_ has joined #ruby
<sevenseacat>
I think freezevee complained to apeiros.
<freezevee>
and I love sevenseacat
<apeiros>
sphex: it's my intention to get there
<shevy>
we have to identify the evil
<_mh_>
freezevee: could you please just try the suggestions given, refer to systemd documentation on what type=simple means ?
allomov has joined #ruby
<apeiros>
sevenseacat: no, I just saw them saying that they got mocked. and I remembered being present when they asked this the first time. so I wanted to know whether I failed at op duties.
devoldmx_ has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat>
ah okay
<freezevee>
_mh_: sure I will
devoldmx has quit [Read error: Connection reset by peer]
genpaku has quit [Ping timeout: 255 seconds]
<freezevee>
_mh_: but asking around in irc, forums etc. I get totally different opinions so finally I don't know what to do
chipotle_ has quit [Ping timeout: 255 seconds]
<ddv>
freezevee: opinion?
avahey has quit [Quit: Connection closed for inactivity]
<ddv>
freezevee: your program doesn't fork
<ddv>
that is a FACT
<ddv>
so you use Type=simple with systemd
<freezevee>
_mh_: If you see the previous git commits, I daemonized the scripts with a gem and then I got told that it's bs to do that, just try upstart or systemd
devoldmx_ has quit [Read error: Connection reset by peer]
<sphex>
freezevee: you said you wanted to understand, but you're gonna have to participate a little bit in this... :p
devoldmx has joined #ruby
pwnz0r has joined #ruby
<freezevee>
well my main issue is confusion
bttf has quit [Ping timeout: 252 seconds]
genpaku has joined #ruby
whoojemaflip has quit [Ping timeout: 252 seconds]
<sevenseacat>
it sound like decision paralysis
Miron has quit [Ping timeout: 252 seconds]
<freezevee>
decision attack
<_mh_>
freezevee: I'm sorry, while there are a lot of things that are best done the one way or another, programming often has numerous solutions. And people have different levels of knowledge. So, getting multiple opinions is common ...
<freezevee>
like panic attack
<sevenseacat>
you want everyone to agree on something for you so you can then go and implement it
<sevenseacat>
when there's ten viable ways to do the same thing
<sevenseacat>
the decision falls on you to pick one
<ddv>
you just implement all solutions that way you can't go wrong
<shevy>
yay
<freezevee>
no but when you get somewhere and it takes you days (due to inexperience) you can't just ditch it and start over with another solution
<_mh_>
sevenseacat: even better put.
devoldmx has quit [Read error: Connection reset by peer]
<_mh_>
does every other request for help have to turn into meta discussions about answers? :/
<freezevee>
anyway, I got enough good suggestions here that I should try
<sevenseacat>
yes, you should.
<sevenseacat>
_mh_: and how did that make you feel?
<sphex>
freezevee: maybe we could pick a way for you by voting? I guess you shouldn't fork since it's not needed in the script itself and systemd does not require it, but that's just my opinion I guess. but what if the channel voted on it?
<_mh_>
freezevee: good luck finding one that suits you. Am sure you'll get through to one that works for you.
<shevy>
_mh_ I blame systemd
<_mh_>
sevenseacat: I'm no fan of meta discussions ;)
devoldmx_ has quit [Read error: Connection reset by peer]
<sevenseacat>
sometimes they're important to determine a direction
Miron has joined #ruby
<freezevee>
thanks, I got enough feedback
<sevenseacat>
but usually it's rehashing the same old shit
<_mh_>
shevy: No experience with it, but what you hear around the net it seems sensible to blame systemd to just be on the safe side.
robbyoconnor has joined #ruby
devoldmx has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
<_mh_>
sevenseacat: yeah, that's why I dislike them. Sometimes they are important, but most of the time, it's the same stuff in an endless loop.
zacstewart has joined #ruby
wildroman2 has joined #ruby
<sevenseacat>
yeeeeeeep
avelldiroll has quit [Ping timeout: 252 seconds]
<sevenseacat>
ah well. all solved for now.
Guest85 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<freezevee>
it must be bothering when someone is reading everything in an irc room
hotpancakes has joined #ruby
<freezevee>
but If you connect only for a few minutes, it's ok
Miron has joined #ruby
<sevenseacat>
well yeah, if you're the type to turn up, ask your question, get your help and leave, its fine for you :P
opalraava has quit [Ping timeout: 252 seconds]
cbednarski has quit [Ping timeout: 252 seconds]
opalraava has joined #ruby
kstuart has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
Xeago has quit [Remote host closed the connection]
workmad3 has joined #ruby
revath has left #ruby [#ruby]
cbednarski has joined #ruby
RazorX has quit [Read error: Connection reset by peer]
<freezevee>
sevenseacat: I wish I could help others
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
<sevenseacat>
then stick around, see what shakes out.
<freezevee>
but my experience is not in a level that I could do so yet
RazorX has joined #ruby
<freezevee>
I am reading SO questions and then stare the sky
<sevenseacat>
you can learn just by observing
<freezevee>
maybe, but then practice time is lost
<freezevee>
so I am trying to create things, mostly for myself
<_mh_>
freezevee: and also gather experience by seeing that there's often not just one answer. Often, the way people approach problems thrown at them is also something to learn from.
kies has joined #ruby
<freezevee>
_mh_: of course, it's programming but there are best practices and standards too
lessless has joined #ruby
<_mh_>
in my opinion one of the most important skills of a programmer: the method to approach an error you have no idea where it comes from.
Pupeno has joined #ruby
<sevenseacat>
+1
devoldmx has joined #ruby
<freezevee>
_mh_: this is analytical skills and comes with experience
devoldmx_ has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
<sevenseacat>
some of it
jeanlinux has joined #ruby
<sevenseacat>
some of it comes from critical thinking of error messages
<sevenseacat>
some of comes from just typing the error into google
anisha has joined #ruby
hotpancakes has quit [Ping timeout: 265 seconds]
<freezevee>
but there is also the chance to turn into a shitty programmer who writes code that works and noone understands
<_mh_>
lol
<sevenseacat>
you mean, like Ox0dea ? *runs*
<freezevee>
like some project euler problems which run in 10ms and 1 hour, just different code from different programmers
<_mh_>
freezevee: that's usually the type that blindly follows "standards".
<sevenseacat>
oh, shitty - no hes not shitty
workmad3 has quit [Ping timeout: 248 seconds]
devoldmx_ has joined #ruby
<_mh_>
sevenseacat: Ox0dea showed ingeniouity in his admittedly alienating piece of code two days ago.
_ixti_ has joined #ruby
<sevenseacat>
oh he does it all the time
<_mh_>
agreed
senayar has joined #ruby
<sevenseacat>
today he wrote a caesar cipher without using alphanumeric characters
<freezevee>
good coding is art
<_mh_>
heck. I need to read my backlog
<sevenseacat>
yesterday or the day before it was fizzbuzz
El3k0n has joined #ruby
coderhs has joined #ruby
<freezevee>
I know noone cares about it, but this is the type of programmer that I want to become
devoldmx_ has quit [Read error: Connection reset by peer]
<_mh_>
saw the fizzbuzz thing. Was very impressive.
<sevenseacat>
we all care about our skills
<freezevee>
that's why I usually ask things here like a 10 yr old
coderhs has quit [Read error: Connection reset by peer]
kfpratt has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
<ddv>
if you care about your skills you are already above the codemonkeys
<sevenseacat>
yep.
devoldmx has quit [Ping timeout: 246 seconds]
<sevenseacat>
was just about to say, we wouldn't even be here if we didnt care
<_mh_>
codemonkey seems to be a very sought after job in big companies, though...
<freezevee>
anyway, I am stopping the fluency here
<freezevee>
and thanks
devoldmx_ has quit [Remote host closed the connection]
jeanlinux has quit [Ping timeout: 256 seconds]
User458764 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kfpratt has joined #ruby
devoldmx has joined #ruby
astrobunny has joined #ruby
<sevenseacat>
I know people hate me always talking about elixir, but I recently started learning it, and part of me doing so is hanging out in #elixir-lang. for a long time I understood very little. then I started understanding a little bit. now I can answer some (very simple) questions. levelling up skills.
<shevy>
Ox0dea see? look at sevenseacat!
<_mh_>
sevenseacat: hmm, elixir?
zacstewart has quit [Ping timeout: 256 seconds]
<shevy>
the mystical elixir that turns the cat into a genius-cat
<sevenseacat>
I promise I'll stop mentioning elixir.
blackmesa has joined #ruby
psy_ has quit [Ping timeout: 256 seconds]
ta has quit [Remote host closed the connection]
<sevenseacat>
but I find it more interesting than ruby lately >_>
<_mh_>
sevenseacat: am actually just curious.
<shevy>
:(
devoldmx has quit [Read error: Connection reset by peer]
<_mh_>
I find it always important to explore new programming languages.
<ddv>
sevenseacat: write a book about it :)
<sevenseacat>
_mh_: is a pretty new functional programming language, on the erlang vm. syntax is a lot like ruby.
devoldmx has joined #ruby
stardiviner has quit [Ping timeout: 244 seconds]
<sevenseacat>
ddv: ;) ;) ;)
<ddv>
:)
<_mh_>
it always revolutionizes the way you write and structure your code.
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sphex>
holy ****. Kernel is included in every class, and all those "builtins functions" are actually self method calls?
<_mh_>
those two years of haskell... I wouldn't want to miss the experience for my ruby code.
<sevenseacat>
sphex: aye.
Scroff has joined #ruby
white_bear has joined #ruby
emilkarl has quit [Quit: emilkarl]
psy_ has joined #ruby
<_mh_>
sevenseacat: Made me curious. Going to have a look at it when I find time. Thanks for the pointer
<sevenseacat>
strictly speaking, I think Kernel is included in Object
<sphex>
it all makes sense now. methods and Constants. there's nothing else.
mike___1234 has joined #ruby
<_mh_>
for now though... back to office routine and meetings. afk
zacstewart has joined #ruby
<sevenseacat>
so you can still have BasicObject without it
<maloik>
yay, rails 423 + squeel is bugged :(
hotpancakes has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
vdamewood has quit [Quit: Life beckons.]
arup_r has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
hotpancakes has joined #ruby
chthon has joined #ruby
devoldmx has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
ralku has joined #ruby
einarj has joined #ruby
<sphex>
Ox0dea: okay yeah.. I think I get it now WRT Kernel methods. an object's class and superclass both end up with Object as a parent, and include Kernel stuff. and that must be what makes those Kernel methods available both directly in the class' body and in the method bodies...
<sphex>
took me long enough
pwnz0r has quit [Remote host closed the connection]
<sphex>
apeiros: thanks for that clarification, it was confusing me
troulouliou_dev has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
avelldiroll has joined #ruby
devoldmx_ has joined #ruby
abuzze has quit []
hotpancakes has quit [Ping timeout: 248 seconds]
dumdedum has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<Ox0dea>
sphex: You can use Object#method and Method#owner to figure out where exactly things are coming from.
<Ox0dea>
>> b = BasicObject; b.methods.map { |m| b.method(m).owner }.uniq
devoldmx has quit [Read error: Connection reset by peer]
micmus has joined #ruby
devoldmx has joined #ruby
fabrice31_ has joined #ruby
peter_paule has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GreatSUN has joined #ruby
<GreatSUN>
hi all
devoldmx has joined #ruby
n008f4g_ has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
<adaedra>
I'd prefer a smaller sun today.
<Ox0dea>
Small things can be great.
eGGsha has joined #ruby
Aswebb_ has quit []
<sphex>
Ox0dea: oh yeah.. thanks for the infos.
devoldmx_ has joined #ruby
<Ox0dea>
Sure thing.
<GreatSUN>
can someone of you guys tell me if there is an option to find out which version of a gem matches the current installed ruby version via gem command without trying to install ?
Alina-malina has joined #ruby
Scrofff has joined #ruby
Scroff has quit [Ping timeout: 248 seconds]
Scroff has joined #ruby
devoldm__ has joined #ruby
<shevy>
GreatSUN I think many gems won't have that information
devoldmx_ has quit [Read error: Connection reset by peer]
matp has joined #ruby
CloCkWeRX has quit [Ping timeout: 246 seconds]
<shevy>
a .gemspec file is often used to create a .gem file
zacstewart has quit [Ping timeout: 255 seconds]
<Ox0dea>
Gems can specify a required Ruby version in their .gemspecs, but most don't.
krz has quit [Read error: Connection reset by peer]
<shevy>
in that .gemspec file, the gem author can specify certain dependencies and requirements, for instance:
<shevy>
s.rubygems_version = "2.4.8"
devoldmx has quit [Ping timeout: 264 seconds]
<shevy>
individual versions of gems can be specified such as by doing:
devoldm__ has quit [Read error: Connection reset by peer]
<shevy>
s.add_dependency 'foobar', '>= 0.0.6' # this will require at least version 0.0.6 or higher
devoldmx has joined #ruby
<ytti>
i think encouraged use is add_runtime_dependence
<ytti>
dependency
TheHodge has joined #ruby
<Ox0dea>
shevy: The question was about Ruby's version.
ralku is now known as ralku[away]
<shevy>
Ox0dea talk to him not me ok?
Scrofff has quit [Ping timeout: 246 seconds]
<adaedra>
õ_o
<Ox0dea>
Not sure what that was about, but all right.
<shevy>
because we have had similar problems in the past
<sevenseacat>
shevy: Ox is pointing out that you asked a different question than was asked
<sevenseacat>
*you answered
devoldmx_ has joined #ruby
vdamewood has joined #ruby
<shevy>
I don't feel this to be the case in any way
devoldmx has quit [Read error: Connection reset by peer]
psy_ has quit [Ping timeout: 244 seconds]
<adaedra>
then ask to precise the question
<shevy>
you do that if you got a problem adaedra; I don't have that problem in the slightest
lsmola has joined #ruby
zacstewart has joined #ruby
<adaedra>
>_>
psy_ has joined #ruby
abuzze has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
Dreamer3 has quit [Quit: Leaving...]
devoldmx has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kfpratt has quit [Ping timeout: 264 seconds]
devoldmx has quit [Read error: Connection reset by peer]
Dreamer3 has joined #ruby
langlands has joined #ruby
Musashi007 has joined #ruby
hemanth has joined #ruby
devoldmx has joined #ruby
jas02 has left #ruby [#ruby]
kfpratt has joined #ruby
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
shoutsid has joined #ruby
senayar has quit [Remote host closed the connection]
axl_ has joined #ruby
ralku[away] is now known as ralku
devoldmx has joined #ruby
krz has joined #ruby
peter_paule has quit [Ping timeout: 252 seconds]
whiteline has quit [Read error: Connection reset by peer]
devoldm__ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has quit [Ping timeout: 256 seconds]
whiteline has joined #ruby
devoldm__ has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
devoldmx has joined #ruby
ahmetkapikiran has joined #ruby
senayar has joined #ruby
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
GnuYawk has quit [Quit: WeeChat 1.0]
charliesome has quit [Client Quit]
devoldmx has joined #ruby
rubie has quit [Remote host closed the connection]
phale has joined #ruby
<phale>
hello fellow rubyists
<phale>
what are we programming today?
devoldmx has quit [Read error: Connection reset by peer]
devoldm__ has joined #ruby
charliesome has joined #ruby
devoldmx_ has quit [Ping timeout: 246 seconds]
lkba_ has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
skade has joined #ruby
charliesome has quit [Client Quit]
devoldm__ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
MrJiks has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
workmad3 has joined #ruby
<yorickpeterse>
morning
<adaedra>
greetings yorickpeterse
<GreatSUN>
ok guys
devoldmx_ has quit [Read error: Connection reset by peer]
<GreatSUN>
I just had a meeting, so sorry for not answering
devoldmx has joined #ruby
<GreatSUN>
but the main thing I saw in your messages was, that a .gemspec file might help
<phale>
I have a thinkpad
<GreatSUN>
but to be able to access this, I would have to have the gem somewhere on my disk and not in a gemrepo, right?
_joes_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
mello has quit [Ping timeout: 252 seconds]
<adaedra>
GreatSUN: what are you trying to do, exactly?
iwishiwerearobot has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
Rollabunna has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
devoldmx has joined #ruby
iwishiwerearobot has quit [Client Quit]
TinkerTyper has quit [Ping timeout: 244 seconds]
<phale>
hes trying to act cool by becoming a gem developer
<phale>
i understand him
<Ox0dea>
GreatSUN: You can do `gem list -ra '^rake$'` to get a list of every version of rake, then, for instance, `gem spec -rv 0.4.8 rake` to get Rake v0.4.8's specification.
<adaedra>
-_-
devoldmx has quit [Read error: Connection reset by peer]
marr has joined #ruby
devoldmx has joined #ruby
<Ox0dea>
It's definitely not a good idea, but it would nevertheless be nice if something like this existed.
<Ox0dea>
"Tell me which is the most recent version of this gem I can use with my current Ruby."
startupality has joined #ruby
<Ox0dea>
It's regrettable that such a thing should ever be necessary, but the world is not a perfect place.
freezevee has quit []
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpablo_ has joined #ruby
CloCkWeRX has joined #ruby
devoldmx_ has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
Xeago has quit [Remote host closed the connection]
TinkerTyper has joined #ruby
Xeago has joined #ruby
hotpancakes has quit [Ping timeout: 272 seconds]
wallerdev has quit [Quit: wallerdev]
devoldm__ has joined #ruby
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jbw has joined #ruby
Xeago_ has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
sharpmachine has joined #ruby
devoldm__ has quit [Read error: Connection reset by peer]
auzty has quit [Quit: Leaving]
<ddv>
Ox0dea: provide a patch if you find it regrettable
devoldmx has joined #ruby
peter_paule has joined #ruby
Karpah has joined #ruby
juanpablo_ has quit [Ping timeout: 255 seconds]
phale has left #ruby ["Leaving"]
<Ox0dea>
ddv: Pardon? I can't patch the fact that not everybody uses the most up-to-date version of the software they use.
platzhirsch has joined #ruby
devoldmx_ has quit [Ping timeout: 246 seconds]
<ddv>
Ox0dea: nice straw man you put up there
kstuart has quit [Quit: WeeChat 1.2]
wallerdev has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
olistik has quit [Remote host closed the connection]
wallerdev has quit [Client Quit]
balazs has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
Alina-malina has quit [Ping timeout: 272 seconds]
devoldmx has joined #ruby
<Ox0dea>
I suspect you've misinterpreted something I've said.
sevenseacat has quit [Ping timeout: 276 seconds]
dfockler has joined #ruby
last_staff has joined #ruby
micmus has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
devoldmx_ has joined #ruby
shoutsid has quit []
devoldmx has quit [Read error: Connection reset by peer]
Pupeno_ has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
doertedev has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
zacstewart has quit [Ping timeout: 264 seconds]
balazs has quit [Ping timeout: 250 seconds]
dfockler has quit [Ping timeout: 246 seconds]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
codecop has quit [Quit: Išeinu]
devoldmx has quit [Read error: Connection reset by peer]
sharpmachine has quit [Ping timeout: 256 seconds]
xrlabs has joined #ruby
peter_paule has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
futilegames has joined #ruby
howdoicomputer has joined #ruby
Marisa has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
ralku has quit [Ping timeout: 272 seconds]
zacstewart has joined #ruby
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby
Xeago_ has quit [Remote host closed the connection]
devoldmx_ has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
astrobunny has joined #ruby
<txdv>
shevy: i do reside in germany
<txdv>
im just running a server at my parents place cause the internet is cheap and good as fuck
devoldmx has quit [Read error: Connection reset by peer]
<txdv>
100/100mbit for 15 euros a month
devoldmx has joined #ruby
hotpancakes has quit [Ping timeout: 252 seconds]
<iszak>
txdv: watch out for the ToS
devoldmx has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
* djellemah
falls on floor laughing. 1m/8m ADSL for 50 euros per month over here.
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
JohnBat26 has joined #ruby
Xeago has joined #ruby
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
tvw has joined #ruby
mister_s_ has joined #ruby
jeanlinux has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
mister_solo has quit [Ping timeout: 250 seconds]
eGGsha has joined #ruby
howdoicomputer has quit [Quit: WeeChat 1.2]
olistik has joined #ruby
Pwnna has quit [Ping timeout: 252 seconds]
howdoicomputer has joined #ruby
howdoicomputer has quit [Client Quit]
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
devoldmx_ has joined #ruby
sgambino has joined #ruby
zacstewart has quit [Ping timeout: 250 seconds]
devoldmx has quit [Read error: Connection reset by peer]
<txdv>
iszak: terms of service?
<yorickpeterse>
100/100 for 50/mnth :<
<yorickpeterse>
though it's fiber
<txdv>
i can get 500/150 for 25 euros
Guest85 has quit [Ping timeout: 272 seconds]
<ddv>
I have 500/500 for 55 euros
<txdv>
wow
rubie has joined #ruby
<txdv>
what country?
<txdv>
korea?
devoldmx has joined #ruby
<txdv>
or a google city?
<ddv>
netherlands
devoldmx_ has quit [Read error: Connection reset by peer]
<txdv>
i live like 5 km away from the netherlands
zacstewart has joined #ruby
howdoicomputer has joined #ruby
<bnagy>
I hate you all
<bnagy>
love from Kathmandu
khorne has joined #ruby
<GreatSUN>
Ox0dea: thanks, that helped a lot
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<Ox0dea>
GreatSUN: I'm looking into how best to do it with the RubyGems API.
<txdv>
ddv: what provider?
astrobunny has quit [Ping timeout: 264 seconds]
<ddv>
vodafone fiber
howdoicomputer has quit [Client Quit]
devoldmx has quit [Read error: Connection reset by peer]
revath has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
VictorBjelkholm has quit [Read error: Connection reset by peer]
ta has joined #ruby
sdothum has joined #ruby
revath has joined #ruby
howdoicomputer has joined #ruby
bruno- has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
A205B064 has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
mister_solo has joined #ruby
howdoicomputer has quit [Client Quit]
<theahindle>
bundler is to ruby what composer is to PHP?
howdoicomputer has joined #ruby
jimms has joined #ruby
charliesome has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<bnagy>
is composer a cancerous blight?
<theahindle>
No :P
skade has quit [Quit: Computer has gone to sleep.]
charliesome has quit [Client Quit]
mister_s_ has quit [Ping timeout: 246 seconds]
devoldmx has quit [Read error: Connection reset by peer]
howdoicomputer has quit [Client Quit]
devoldmx has joined #ruby
startupality has quit [Quit: startupality]
KetaPan has joined #ruby
<adaedra>
that's pretty subjective
bruno- has quit [Ping timeout: 252 seconds]
pandaant has joined #ruby
RegulationD has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
Melite has quit [Quit: Leaving]
VictorBjelkholm has joined #ruby
devoldmx has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
oo_ has quit [Remote host closed the connection]
Indian has joined #ruby
jesterfraud has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
lolmaus has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
peter_paule has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
zacstewart has quit [Ping timeout: 256 seconds]
pandaant has quit [Quit: Lost terminal]
Spami has joined #ruby
devoldmx_ has quit [Ping timeout: 246 seconds]
Spami has quit [Client Quit]
Rollabunna has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
KetaPan has left #ruby [#ruby]
withnale_ has joined #ruby
devoldmx has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
zacstewart has joined #ruby
Pwnna has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
peter_paule has quit [Ping timeout: 248 seconds]
devoldmx has joined #ruby
Rollabunna has quit [Ping timeout: 255 seconds]
blackmesa has quit [Quit: WeeChat 1.2]
vasilakisfil_ has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
howdoicomputer has joined #ruby
devoldmx has joined #ruby
_joes_ has joined #ruby
charliesome has joined #ruby
peter_paule has joined #ruby
User458764 has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Quit: Musashi007]
<yorickpeterse>
theahindle: they're similar yes
devoldmx has quit [Read error: Connection reset by peer]
Ox0dea has quit [Ping timeout: 244 seconds]
devoldmx has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Olipro has joined #ruby
charliesome has quit [Client Quit]
User458764 has joined #ruby
Mighty has joined #ruby
devoldmx_ has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
lordkryss has joined #ruby
fsvehla has quit [Quit: fsvehla]
devoldmx_ has quit [Read error: Connection reset by peer]
devoldm__ has joined #ruby
Pupeno_ is now known as Pupeno
Pupeno has quit [Changing host]
Pupeno has joined #ruby
revath has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 272 seconds]
devoldm__ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
revath has joined #ruby
eGGsha has joined #ruby
charliesome has joined #ruby
devoldmx_ has joined #ruby
blackmesa has joined #ruby
charliesome has quit [Client Quit]
fsvehla has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
krz has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
devoldmx has quit [Read error: Connection reset by peer]
sharpmachine has joined #ruby
devoldmx has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
stoodfarback has quit [Ping timeout: 272 seconds]
skade has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 256 seconds]
skade has joined #ruby
revath has left #ruby [#ruby]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<shevy>
txdv ah ok; for some reason I thought you were northeast of germany
Xeago has quit [Read error: Connection reset by peer]
devoldmx has quit [Read error: Connection reset by peer]
<txdv>
shevy: i live in the most west possible spot in germany
devoldmx has joined #ruby
<shevy>
oh, le france
Xeago has joined #ruby
bruno- has joined #ruby
<txdv>
in germany
<txdv>
dude
<txdv>
:D
<adaedra>
mmh?
<txdv>
well maybe second
<txdv>
aachen
<adaedra>
They got Alsace and Lorraine again?
<shevy>
oh
devoldmx has quit [Read error: Connection reset by peer]
<txdv>
yeah, the sneaky nazis did it again adaedra
<shevy>
Lorraine... I don't think I have read that name before
devoldmx has joined #ruby
<shevy>
I only know Lothringen :D
<adaedra>
txdv: they did not wait WW2 to do that.
<txdv>
poland still doesnt have a europ
<shevy>
not many ruby hackers from poland here; more from the Ukraine than from poland
devoldmx_ has joined #ruby
ItSANgo has joined #ruby
<txdv>
why is ruby more popular in ukraine than in poland?
<adaedra>
Poland prefers perl
<shevy>
dunno, but they also have had some euroruby conf or so, which then got cancelled when they had the problem with russia
allomov has quit [Remote host closed the connection]
lessless has quit [Max SendQ exceeded]
skade has quit [Quit: Computer has gone to sleep.]
diegoviola has joined #ruby
devoldm__ has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
DoubleMalt has joined #ruby
zacstewa_ has joined #ruby
Scroff has quit [Read error: Connection reset by peer]
zacstewart has quit [Ping timeout: 246 seconds]
<judofyr>
isn't solnic from Polan?
Scrofff has joined #ruby
<arup_r>
shevy: how many cats you now have ?
RegulationD has joined #ruby
mdw has joined #ruby
blackmesa has joined #ruby
devoldmx has joined #ruby
devoldmx_ has quit [Ping timeout: 246 seconds]
<judofyr>
Ox0dea: yeah, I was lucky with my initials.
<Ox0dea>
judofyr: It's much more than your initials, though.
<shevy>
arup_r only one hear; but 3 in the flat of my parents, and they can climb over rooftops so it's not far away, perhaps 60 metres via roof
<shevy>
*here
but3k4 has joined #ruby
<judofyr>
Ox0dea: the other way around is cooler though: being able to spell your name with elements because they're named after you
<shevy>
judofyr you are in Norway?
<judofyr>
shevy: yes
devoldmx_ has joined #ruby
<shevy>
cool
felixrsmith has quit [Quit: Konversation terminated!]
skade has joined #ruby
<judofyr>
"Holmium" is named after Stockholm IIRC, not a distant cousin of mine :(
zacstewart has joined #ruby
<judofyr>
shevy: how so?
zacstewa_ has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 246 seconds]
devoldm__ has quit [Ping timeout: 276 seconds]
devoldmx_ has quit [Read error: Connection reset by peer]
<shevy>
dunno, I don't seem to see many from norway; lots of hackers in general from Germany; quite many from the UK and also Sweden... but norway and finland hmm
serivich has joined #ruby
devoldmx_ has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
ldnunes has joined #ruby
<judofyr>
Aslak (of Cucumber fame) is from Norway :)
<tobiasvl>
Norway here o/
<judofyr>
and tobiasvl of course!
RegulationD has quit [Ping timeout: 265 seconds]
<tobiasvl>
of course!!!
<judofyr>
never forget tobiasvl
devoldmx_ has quit [Read error: Connection reset by peer]
<tobiasvl>
how can anyone forget me
peteykun has joined #ruby
peter_paule has quit [Ping timeout: 252 seconds]
<judofyr>
I was actually tab-ing "rolfb", but he's maybe not IRC-ing at the moment
<shevy>
weird
<shevy>
I thought tobiasvl is from germany
devoldmx has joined #ruby
<tobiasvl>
weird indeed
<shevy>
must be the name "Tobias" that tricked me
mikecmpb_ has joined #ruby
skade has quit [Client Quit]
dionysus69 has quit [Quit: dionysus69]
<ljarvis>
hai
ralku has joined #ruby
<judofyr>
hai ljarvis
<ljarvis>
ohai judofry
<ljarvis>
how's things?
<judofyr>
fine fine!
<judofyr>
working hard (or hardly working)
chinmay_dd has quit [Remote host closed the connection]
<ljarvis>
:)
mikecmpbll has quit [Ping timeout: 276 seconds]
devoldmx has quit [Read error: Connection reset by peer]
<ljarvis>
How's the nim?
devoldmx has joined #ruby
<judofyr>
slowly working on Bob, but haven't got much progress lately
<judofyr>
also been playing with C++ and OpenGL lately
Xeago has quit [Remote host closed the connection]
Rollabunna has joined #ruby
<ljarvis>
C++ after Nim. That's a true tragedy story there
devoldmx_ has joined #ruby
howdoicomputer has quit [Ping timeout: 264 seconds]
<judofyr>
different use-cases though :)
devoldmx has quit [Read error: Connection reset by peer]
skade has joined #ruby
Xeago has joined #ruby
<judofyr>
I pretty much have to finish Bob in order to speed up the compilation of my C++ project though :)
devoldmx has quit [Read error: Connection reset by peer]
Guest85 has joined #ruby
devoldmx has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
<judofyr>
next step for Bob is to implement the actually "updating from a dependency database". which is kinda tricky because I need to (1) find files that have changes (2) run commands and (3) handle changes from the commands
stoodfarback has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
michael_mbp has quit [Excess Flood]
renderful has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
<judofyr>
immediate mode is a very nice way to handle GUIs
tkuchiki_ has quit [Remote host closed the connection]
<judofyr>
I've actually been thinking about experimenting with a JavaScript approach
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rubie has quit [Remote host closed the connection]
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
frem has quit [Quit: Connection closed for inactivity]
DaniG2k has quit [Quit: leaving]
<judofyr>
oh, and I tried to add Skia (2D drawing library used in Google Chrome) to my C++ project: it requires 700MB of source code and eventually took 1.7GB after compilation.
michael_mbp has joined #ruby
<judofyr>
(that is, the whole folder. haven't checked how big the library actually is)
<judofyr>
pretty crazy
devoldmx_ has quit [Read error: Connection reset by peer]
shoutsid has joined #ruby
Scroff has joined #ruby
devoldmx has joined #ruby
Xeago has joined #ruby
skade has joined #ruby
juanpablo_ has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
mdw has joined #ruby
<shevy>
wow
<shevy>
1.7 gb
<shevy>
what is that
<shevy>
java?!?!
devoldmx has quit [Read error: Connection reset by peer]
<judofyr>
it bundles everything
lxsameer has quit [Remote host closed the connection]
y0da has joined #ruby
<judofyr>
it builds liblua, libnanomsg
devoldmx has joined #ruby
<judofyr>
libjsoncpp
<judofyr>
libjpeg
<judofyr>
libwebp
<judofyr>
1GB of compiled files
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
Scrofff has quit [Ping timeout: 276 seconds]
<judofyr>
statically compiled libraries wo-hoo!
but3k4 has quit [Ping timeout: 264 seconds]
devoldmx has quit [Read error: Connection reset by peer]
langland_ has joined #ruby
freerobby has joined #ruby
devoldmx has joined #ruby
<apeiros>
judofyr: bobs readme has "Depenedency"
blackmesa has quit [Ping timeout: 276 seconds]
abyss__ has quit [Ping timeout: 244 seconds]
<judofyr>
apieros: yeah. dependencies on Linux is a bit different I guess
abyss has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<shevy>
you mean depenedencies
juanpablo_ has quit [Ping timeout: 246 seconds]
<apeiros>
judofry: oh, so they're called depenedence there? :)
<shevy>
depentencies
<apeiros>
TIL ;-p
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
senayar has joined #ruby
<shevy>
judofyr the swiss are a very correct people, so this typo is like a mortal offence!
langlands has quit [Ping timeout: 246 seconds]
mister_solo has quit [Ping timeout: 264 seconds]
ralku is now known as ralku[away]
blackmesa has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<judofyr>
I haven't got automatic Text Replacement to work after tab-completion, so I actually have to write "apieros" out by hand
<shevy>
oh yeah
<shevy>
the greek apieros dude
<shevy>
he hasn't been here in ages
<shevy>
wait... judofyr you actually mean, you did indeed mispell apeiros back then?
<judofyr>
shevy: I've been misspelling apieros for years
<ljarvis>
:)
<ljarvis>
apieros and judofry
<ljarvis>
and some guy called inkjet
devoldmx has quit [Read error: Connection reset by peer]
<tobiasvl>
don't people tab complete
<judofyr>
#ruby-lang/2010-01-01_irc.freenode.net.txt: 223:22:33 Judofyr: right apieros?
devoldmx has joined #ruby
Guest85 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<judofyr>
ah, inkjet
<ljarvis>
tobiasvl: it's a running joke now
<ljarvis>
judofyr: rip
<judofyr>
#ruby-lang/2010-12-15_irc.freenode.net.txt: 18:20 Judofyr: inkjet *is* a nice one though
<ljarvis>
into the history of awful aliases he goes
<judofyr>
jlarvis works
devoldmx has quit [Read error: Connection reset by peer]
<ljarvis>
:D
<shevy>
wow
<shevy>
5 years ago
<shevy>
even from a channel that no longer exists, thanks to jhass!
<judofyr>
2010-01-01 is actually the oldest log I have on this machine
chipotle has joined #ruby
krz has joined #ruby
dgutierrez1287 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<judofyr>
so yeah, apieros might be even older
devoldmx has joined #ruby
<judofyr>
actually: 22:33 Judofyr: erihk: we're good at nick mutilations here
<judofyr>
so yeah, it's even older
<shevy>
lol
<shevy>
good old erikh
<shevy>
he was the ruby-midi guy or? the one with the keyboard
chinmay_dd has joined #ruby
atomical_ has joined #ruby
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<judofyr>
dunno
houhouli_ has quit [Remote host closed the connection]
<judofyr>
I liked him thoug
<judofyr>
though*
<ljarvis>
erik is cool. He's gone the way of the gopher
atomical has quit [Ping timeout: 248 seconds]
devoldmx has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
eGGsha has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
devoldmx has quit [Read error: Connection reset by peer]
zotherstupidguy has joined #ruby
devoldmx has joined #ruby
djellemah has quit [Quit: Leaving]
djellemah has joined #ruby
devoldmx_ has joined #ruby
tvw has quit [Remote host closed the connection]
poikon has quit [Quit: Connection closed for inactivity]
Jackneill has joined #ruby
sharpmachine has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
<judofyr>
oh well
hotpancakes has joined #ruby
aamador has joined #ruby
ndrei has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
k3asd` has quit [Ping timeout: 255 seconds]
skade has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
allomov has joined #ruby
devoldmx_ has joined #ruby
sharpmachine has quit [Ping timeout: 248 seconds]
pandaant has joined #ruby
startupality has quit [Quit: startupality]
ralku[away] is now known as ralku
hotpancakes has quit [Ping timeout: 276 seconds]
devoldmx_ has quit [Read error: Connection reset by peer]
blackmesa has quit [Quit: WeeChat 1.2]
devoldmx has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 272 seconds]
devoldmx has joined #ruby
JDiPierro has joined #ruby
sgambino has joined #ruby
Jackneill has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
ta has quit [Remote host closed the connection]
devoldmx has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Jackneill has joined #ruby
tflat has quit []
Xeago has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<yorickpeterse>
amazed nobody messed up my name so far
<yorickpeterse>
(that I can remembeR)
devoldmx has joined #ruby
nofxx has quit [Ping timeout: 264 seconds]
mister_solo has joined #ruby
ralku is now known as ralku[away]
Igorshp has quit [Remote host closed the connection]
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
GarethAdams has quit [Ping timeout: 252 seconds]
<jhass>
that's because it's so long that everybody is like "oh fck it, there must be tab com... oh hey it works!"
Jackneill has quit [Remote host closed the connection]
<yorickpeterse>
all planned
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
Indian has quit [Ping timeout: 244 seconds]
<Ox0dea>
2015-06-29 10:05:03 consmans oops also yorikpeterse and sevenseacat
<shevy>
yorik!
sdwrage has joined #ruby
<pontiki>
"if you need something screwed up, call shevy" ??
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
allomov_ has joined #ruby
SOLDIERz has joined #ruby
senayar_ has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
ralku[away] is now known as ralku
<shevy>
hey
<shevy>
my ruby code usually works!
devoldmx has joined #ruby
senayar has quit [Read error: Connection reset by peer]
<txdv>
i want to see your .bash_aliases file
<shevy>
I can assure you that it is way too boring to read
<bougyman>
my code only works for me
<bougyman>
if someone else tries to run it... never.
<shevy>
for instance, one alias is "rb" which is an alias to "ruby"
<pontiki>
now there's security
<txdv>
shevy: you got 5k of them
<txdv>
of course a single one is boring
Rollabunna has joined #ruby
m4rCsi has quit [Quit: No Ping reply in 180 seconds.]
<txdv>
the accumultaion of so many is the interesting part
<pontiki>
i have an alias "gacp"
<shevy>
it just grows over a time span of +10 years txdv!
GarethAdams has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
m4rCsi has joined #ruby
devoldmx has joined #ruby
<bougyman>
shevy: same, here.
<bougyman>
but I still don't have too many.
<shevy>
\o/
<bougyman>
most recently added: alias рвьш='hdmi'
<shevy>
yeah, new additions here slowed down tremendously
allomov has quit [Ping timeout: 264 seconds]
<bougyman>
for when my kbd is in ru-mode.
Brom has quit [Quit: Brom]
freerobby has quit [Quit: Leaving.]
<txdv>
lol bougyman
<txdv>
so basically the russian letters which happen to be there
<Ox0dea>
alias ws="(tr '\na-z' '\0-\32' | od -An -td1 -w1 | paste -sd + | bc) <<<"
<txdv>
"рвьш" is probably nonsense
<txdv>
what does paste do
devoldmx_ has joined #ruby
<shevy>
the russians should adopt latin character set
howdoicomputer has joined #ruby
Xeago has quit [Remote host closed the connection]
<bougyman>
txdv: yeah, when I unsuspend sometimes my laptop monitor is all black and the hdmi doesn't engage, so i'm typing 'in the blind'
Igorshp has joined #ruby
chinmay_dd has quit []
<bougyman>
I was so frustrated one day, typing hdmi over and over again
devoldm__ has joined #ruby
Xeago has joined #ruby
<bougyman>
.til I realized i'd been typing рвьш
kobain has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
Rollabunna has quit [Ping timeout: 272 seconds]
<shevy>
hehe
devoldm__ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<pontiki>
better living through aliases
peteykun has quit [Quit: Leaving]
Scrofff has joined #ruby
devoldmx_ has quit [Ping timeout: 256 seconds]
<Ox0dea>
My one prints its argument's "word sum".
howdoicomputer has quit [Ping timeout: 255 seconds]
rbennacer has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<Ox0dea>
I compulsively add up words throughout the day, and I like to be able to quickly check that I got it right.
ahmetkapikiran has quit [Quit: ahmetkapikiran]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
tkuchiki_ has joined #ruby
phutchins1 has quit [Ping timeout: 250 seconds]
<Ox0dea>
This is a little neurotic, but I actually don't use that alias; my command_not_found_handle() does the same thing.
a346 has joined #ruby
Scroff has quit [Ping timeout: 246 seconds]
devoldmx has quit [Read error: Connection reset by peer]
ta has joined #ruby
devoldmx has joined #ruby
RegulationD has joined #ruby
devoldmx_ has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has quit [Read error: Connection reset by peer]
khebbie has joined #ruby
rubie has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
ahmetkapikiran has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
devoldmx has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
xrlabs has quit [Quit: This computer has gone to sleep]
RegulationD has quit [Ping timeout: 255 seconds]
Xeago has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
rubie has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
freerobby has joined #ruby
futilegames has joined #ruby
allomov_ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 248 seconds]
ralku is now known as ralku[away]
Guest85 has joined #ruby
jeanlinux has quit [Remote host closed the connection]
tvb has joined #ruby
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
avahey has joined #ruby
El3k0n has joined #ruby
malconis has joined #ruby
El3k0n has quit [Read error: Connection reset by peer]
futilegames has quit [Client Quit]
dorei has quit []
allomov has joined #ruby
Igorshp has quit [Ping timeout: 264 seconds]
tkuchiki_ has joined #ruby
ralku[away] is now known as ralku
futilegames has joined #ruby
Igorshp has joined #ruby
zacstewa_ has joined #ruby
sankaber has joined #ruby
anisha has quit [Ping timeout: 256 seconds]
zacstewart has quit [Read error: Connection reset by peer]
victortyau has joined #ruby
y0da has quit [Read error: Connection reset by peer]
but3k4 has joined #ruby
intyl has joined #ruby
j4cknewt has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
balazs has joined #ruby
rbennacer has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 252 seconds]
ta has quit [Remote host closed the connection]
jhooker has joined #ruby
railsraider has quit [Quit: railsraider]
dblessing has joined #ruby
griffindy has joined #ruby
arup_r has quit [Remote host closed the connection]
j4cknewt has quit [Ping timeout: 264 seconds]
jimms has joined #ruby
balazs has quit [Ping timeout: 248 seconds]
_joes_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
lolmaus has quit [Remote host closed the connection]
sharpmachine has joined #ruby
lolmaus has joined #ruby
failshell has joined #ruby
bmurt has joined #ruby
momomomomo has joined #ruby
swills has joined #ruby
tsvenson has quit [Quit: Leaving]
<judofyr>
this image I'm working on has *negative* (gray-scale) color values
senayar_ has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
<judofyr>
(it's actually an output from an electron microscope)
<judofyr>
how is that even legal in TIFF?
<judofyr>
everything seems to be legal in TIFF
hotpancakes has joined #ruby
blueOxigen has joined #ruby
casadei_ has joined #ruby
lva_ has joined #ruby
sharpmachine has quit [Ping timeout: 264 seconds]
cashnguns has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
lva_ has quit [Remote host closed the connection]
chthon has quit [Ping timeout: 244 seconds]
Akagi201 has joined #ruby
anisha has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
Akagi201_ has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
kfpratt has quit [Ping timeout: 276 seconds]
senayar has joined #ruby
bullcitydev has joined #ruby
GitGud has quit [Ping timeout: 272 seconds]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jlast has joined #ruby
khebbie has joined #ruby
jlast has quit [Read error: Connection reset by peer]
xrlabs has joined #ruby
jlast_ has joined #ruby
gamename has joined #ruby
CloCkWeRX has joined #ruby
lxsameer has quit [Ping timeout: 248 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
kfpratt has joined #ruby
dgutierrez1287 has joined #ruby
Akagi201 has quit [Ping timeout: 264 seconds]
eggoez has quit [Ping timeout: 246 seconds]
allomov has quit [Remote host closed the connection]
Rollabunna has joined #ruby
krz has quit [Ping timeout: 244 seconds]
jpfuentes2 has joined #ruby
gamename has quit [Remote host closed the connection]
Aryasam has joined #ruby
eGGsha has joined #ruby
gamename has joined #ruby
eggoez has joined #ruby
dgutierrez1287 has quit [Ping timeout: 272 seconds]
sevenseacat has joined #ruby
zacstewart has joined #ruby
tkuchiki_ has joined #ruby
zacstewa_ has quit [Ping timeout: 252 seconds]
Rollabunna has quit [Ping timeout: 248 seconds]
Rollabunna has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brain_shim has joined #ruby
havenwood has joined #ruby
chthon has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby
Rickmasta has joined #ruby
startupality has joined #ruby
howdoicomputer has joined #ruby
<yorickpeterse>
ho ho ho, hacking YARD's linking system
ferr has quit [Read error: Connection reset by peer]
<yorickpeterse>
so I can embed my own {fooobar} links
<yorickpeterse>
one day I'm going to regret this
dhjondoh has quit [Quit: dhjondoh]
jerius has joined #ruby
skade has joined #ruby
<jhass>
your last sentence lacks the "in" in front
<Darkwater>
ininin
Pupeno has quit [Quit: Leaving...]
juanpablo_ has joined #ruby
gamename has quit [Remote host closed the connection]
<shevy>
infront
gamename has joined #ruby
arup_r_ has joined #ruby
enebo has joined #ruby
<shevy>
judofyr cool, what kind of electron microscope? cryo-electronmicoscopy? on organic samples?
_kfpratt has joined #ruby
Oka has quit []
howdoicomputer has quit [Ping timeout: 272 seconds]
krz has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
<platzhirsch>
Default way of having a ruby server run at startup on Linux? init.d?
bnizzle has joined #ruby
juanpablo_ has quit [Ping timeout: 276 seconds]
Kellin has quit [Ping timeout: 248 seconds]
bubbys has quit [Ping timeout: 265 seconds]
<adaedra>
init.d, systemd, upstart, launchd, whatever floats your system
Kellin has joined #ruby
oddjob001 has joined #ruby
<shevy>
ack
<oddjob001>
hey all. how can I get the last line of output from an external command? Say you are simply running something like dir, or some command that gives ouput. How do I grab just the last line of that? Its not in a file
<shevy>
oddjob001 result = `dir`
<shevy>
last line, you can split that
<shevy>
on "\n"
<shevy>
then .last
startupality has quit [Ping timeout: 246 seconds]
<oddjob001>
ah so just split on the last /n because that would get me everything after it
shredding has quit [Ping timeout: 272 seconds]
Muhannad has quit [Ping timeout: 272 seconds]
<oddjob001>
yes ok. thanks shevy
JDiPierro has quit [Remote host closed the connection]
konsolebox has quit [Quit: Leaving]
<shevy>
yeah kinda; you may have to add a bit more code though perhaps, for instance, if that command fails, or does not exist, then handling result takes a bit more code
<adaedra>
you can use each_line instead of split
<shevy>
What I do often is to use this too: 2>&1, such as: result = `ruby -v 2>&1`
nobitanobi has quit [Remote host closed the connection]
shadoi has joined #ruby
zacstewart has quit [Ping timeout: 265 seconds]
hotpancakes has quit [Ping timeout: 252 seconds]
eggoez has quit [Ping timeout: 256 seconds]
chouhoul_ has quit [Ping timeout: 250 seconds]
radialneon has joined #ruby
_kfpratt has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
kfpratt has quit [Read error: Connection reset by peer]
startupality has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
vyorkin has joined #ruby
renderful has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ebbflowgo has quit [Read error: Connection reset by peer]
allomov has joined #ruby
ebbflowgo has joined #ruby
dfockler has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
heyimwill has joined #ruby
jamesaxl has joined #ruby
<shevy>
hanmac what's up with ya, haven't read from you in years
zacstewart has joined #ruby
<failshel_>
im trying to test if a file is ruby code or not. i tried 'file foo' but that says its ASCII text. is there a way to test a file to figure out if it's ruby code or not? its for a git pre-commit
failshel_ is now known as failshell
<judofyr>
failshell: try to parse it with the parser gem
<judofyr>
wait
<jhass>
or simply whitelist on name/extension
_kfpratt has quit [Read error: Connection reset by peer]
<judofyr>
there's also a Ruby-flags which checks for syntax
einarj has quit [Remote host closed the connection]
skade has joined #ruby
<judofyr>
ruby -c
eggoez has joined #ruby
<judofyr>
ruby -c foo.rb # => Syntax OK
revath has joined #ruby
kfpratt has joined #ruby
<shevy>
\o/
<judofyr>
doesn't mean it *actually* is a Ruby file though
<judofyr>
(as intended by the author)
<failshell>
yeah it says a regular file has a correct syntax
vyorkin has quit [Read error: Connection reset by peer]
<Kully3xf_>
thanks for the help on my last problem, now I have a question I'm not sure if it's possible, but each one of the jobs I'm spawing in the loop takes 30+ minutes, if I have to do 40 of them that's too long
sandstrom has quit [Quit: My computer has gone to sleep.]
<Kully3xf_>
how can I make it so instead of a loop, it spawns them all as individual jobs
<frenda>
Ox0dea: I don't know! its developer are from Brazil; It's an opensource crowdfunding platform like www.indiegogo.com
jhooker has quit [Ping timeout: 248 seconds]
ndrei has quit [Ping timeout: 252 seconds]
<frenda>
I think it means sth in ES
jhooker has joined #ruby
<jhass>
frenda: you'll probably be fine with the system ruby, though they seem to test only against 2.2.2
mister_solo has joined #ruby
langland_ has quit [Ping timeout: 256 seconds]
<frenda>
huh?
<frenda>
I asked about best process to install ruby on Fedora!
<jhass>
frenda: but I'd try the system (= package manager) ruby and replace the bundle install step with bundle install --deployment --without development test
zacstewart has quit [Remote host closed the connection]
tacotaco_ has joined #ruby
blueOxigen has quit [Ping timeout: 252 seconds]
tacit7 has joined #ruby
woodruffw has joined #ruby
sankaber has quit [Read error: Connection reset by peer]
<frenda>
jhass: Ah, What happens whith your replacement code?
bluOxigen has joined #ruby
<frenda>
`bundle install --deployment --without development test`
sankaber has joined #ruby
Regulati_ has joined #ruby
ndrei has joined #ruby
<jhass>
the --without stuff only skips installing a whole bunch of deps you ain't gonna need in production
jude90 has quit [Quit: Page closed]
<frenda>
I prefer guys here to use `` when you drop a code!
<jhass>
--deployment makes it so you don't install dependencies to a local site dir
rubie has joined #ruby
<jhass>
er, don't install them system wide but to a local site dir I meant to write
<jhass>
frenda: and then you have people who copy them when running it ;)
sandstrom has joined #ruby
rcvalle has joined #ruby
howdoicomputer has joined #ruby
<jhass>
mmh, meh, actually their Gemfile even forces 2.2.2
revdan has joined #ruby
anisha has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 250 seconds]
prestorium has quit [Ping timeout: 256 seconds]
<frenda>
They will give an error in their machine; then they solve it, next time, they won't copy it! though I hate copy-pasting codes!
Zai00 has quit [Quit: Zai00]
vyorkin has joined #ruby
<jhass>
oh, but fedora 22 already has 2.2.2 <3
<shevy>
faster than debian!
<frenda>
2.2.2 --> this the version on my machine
iamninja has quit [Read error: Connection reset by peer]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeanlinux has joined #ruby
dumdedum has quit [Ping timeout: 256 seconds]
heftig_ is now known as heftig
<frenda>
shevy: Fedora is more cutting edge!
<shevy>
I sorta don't really know actually, I ended up compiling from source like an idiot :(
<shevy>
but using ruby scripts \o/
<txdv>
why is fedora more cutting edge?
ndrei has quit [Remote host closed the connection]
<frenda>
Moving on the edge of technology!
ta has joined #ruby
<frenda>
txdv: They are usually the first to test new technologies
Agoldfish has joined #ruby
IanV0rn2341 is now known as IanV0rn2341[away
<txdv>
As in? the most recent versions of software?
langland_ has joined #ruby
<txdv>
i thought ubuntu was
<jhass>
txdv: you're trolling again...
<navs__>
yea hence the name, they use versions of software you probably havent heard of
howdoicomputer has quit [Ping timeout: 252 seconds]
Aryasam has quit [Ping timeout: 252 seconds]
<frenda>
I mean technologies, not new update! to have new updates instantly, I think Archlinux is the best
ralku is now known as ralku[away]
<navs__>
gentoo is best linux
momomomomo has quit [Ping timeout: 276 seconds]
<jhass>
?ot
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<navs__>
?ot
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
chinmay_dd has joined #ruby
langlands has quit [Ping timeout: 276 seconds]
<txdv>
jhass: no, im not
ndrei has joined #ruby
<txdv>
i use ubuntu because the ruby packages are newer than on debian!
<jhass>
txdv: no arguing
momomomomo has joined #ruby
griffindy has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
jerius has quit [Quit: /quit]
<txdv>
jhass: you are speaking false words and i can't even defend myself against that
<txdv>
:(
<txdv>
stop opressing me
[H]unt3r has joined #ruby
<jhass>
!mute txdv
<jhass>
take it elsewhere
DoubleMalt has quit [Remote host closed the connection]
bakednotfried has joined #ruby
bakednotfried has joined #ruby
<frenda>
jhass: I used dnf (default package manager) to install ruby --> Total download size: 4.1 M Installed size: 13 M |||| I doubt it is a complete version of ruby; Is 4MB normal?!
ndrei has quit [Remote host closed the connection]
<jhass>
frenda: we'll find out, just proceed for now
<adaedra>
dnf? sounds like fedora, they love to split things in small packages
<miah>
sounds like its compressed
bhorn1 has quit [Read error: Connection reset by peer]
<miah>
the download size being 4mb, the installed size being 13mb
NeverDie has joined #ruby
<miah>
i will say that my ruby 2.2.2 build is 85mb. but maybe the fedora package has split things up into like, ruby-dev, ruby-doc, etc.
<shevy>
I am unaware of differences between these two
The_Phoenix has quit [Read error: Connection reset by peer]
<shevy>
I shall vigorously note down the differences into a new file \o/
j4cknewt has quit [Remote host closed the connection]
<Senjai>
Good morning ruby
zacstewart has joined #ruby
DroidBurgundy has quit [Ping timeout: 248 seconds]
fabrice31 has quit [Ping timeout: 256 seconds]
<shevy>
nobody says hi... hi Senjai!
<Senjai>
I always say hi? Or do you mean back?
Spami_ has joined #ruby
<Senjai>
Occassionally I get a bregruding nod from jhass.
<eam>
shevy: WHAT'S UP
baweaver has quit [Remote host closed the connection]
<jhass>
THE SKY OR ELSE WE ALL WOULD MOSTLY LIKELY BE DEAD
rbennacer has quit [Remote host closed the connection]
<jhass>
uhm, I mean
<jhass>
hi
judofyr has joined #ruby
<adaedra>
:o
podman has joined #ruby
howdoicomputer has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
uber has joined #ruby
<shevy>
eam dunno, not much up yet... working on some biology thing (biopython has Restriction.EcoRI.site # => 'GAATTC' which I find pretty cool, -> http://biopython.org/DIST/docs/cookbook/Restriction.html#mozTocId101269 ) ... and comparing different ruby style guides... which will take a while before it's finished ...
ferr has quit [Ping timeout: 265 seconds]
olistik has joined #ruby
<judofyr>
shevy: what kind of bio are you doing?
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
abbe_ is now known as abbe
zacstewart has quit [Remote host closed the connection]
zacstewart has joined #ruby
bmurt has quit [Ping timeout: 265 seconds]
rdar has quit [Ping timeout: 255 seconds]
<eam>
shevy: neat. I'm writing a blog 'cuz Senjai reminded me I've been super slacking
<eam>
(it's about ruby and Timeout)
* Senjai
cracks the wip
yfeldblum has joined #ruby
<eam>
I see what you did there
<eam>
it is indeed a WIP
<Senjai>
I totally wish that was an intentional spelling error
jpfuentes2 has joined #ruby
<eam>
we'll just pretend it was and credit you for cleverness
<Senjai>
lgtm
* Senjai
is clever, bow
howdoicomputer has quit [Ping timeout: 265 seconds]
rbennacer has joined #ruby
jpfuente_ has quit [Ping timeout: 252 seconds]
rubie has joined #ruby
towski_ has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 246 seconds]
[H]unt3r has quit []
pengin has joined #ruby
DCameronMauch has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
blackmesa has joined #ruby
Tarkers34 has joined #ruby
<phat4life>
eam: what are you using to blog
khebbie has joined #ruby
<phat4life>
currenlty, im use jekyll, but it doesn't have all of what i need
blue_deref has joined #ruby
<Tarkers34>
Hello all...can I mix and index and a regex to manipulate a string?
<Tarkers34>
*an index
sharpmachine has left #ruby [#ruby]
revath has joined #ruby
<apeiros>
Tarkers34: that's a bit vague
shinnya has quit [Ping timeout: 246 seconds]
<jhass>
Tarkers34: post your input and the output you desire, use gist.github.com if that takes more than 3 lines of text
bffff_ has quit [Quit: Connection closed for inactivity]
casadei_ has joined #ruby
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
<eam>
phat4life: company blog so not my choice, and it does use jekyll
<shevy>
for quick one-liners demo purpose, ruboto is awesome
hotpancakes has joined #ruby
jpfuentes2 has quit [Ping timeout: 264 seconds]
<phat4life>
eam: i am hosting my jekyll blog on github pages, i have a heroku backend ednpoint for sendgrid, i am also going to use heroku for elastic searc
<Tarkers34>
judofyr yeah ruboto is fun. I think github is working on some sort of irc killer...might be cool. Pastebin will literally loose all of their custom overnight x,D
<phat4life>
eam: but i need to write a ruby plugin to index everything
<judofyr>
Tarkers34: there's Gitter.im
<Tarkers34>
that's the one
<judofyr>
I want Github to focus on creating a better mailing list system
<judofyr>
although I guess Discourse is taking over that
<Senjai>
phat4life: use aws man
<Senjai>
or digital ocean
<phat4life>
that costs money
<Senjai>
Like $5-10 a month
<phat4life>
github pages is free
<eam>
if it were up to me I'd just use markdown and a makefile
MatthewsFace has joined #ruby
<Senjai>
eam: <3
<Senjai>
eam: A coworker does that
dopie has quit [Quit: This computer has gone to sleep]
<phat4life>
well, i have a layout that just has json of all the content i want to index
<Senjai>
eam: I want a bit more heavy of a blog so.. yeah.
MatthewsFace has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<miah>
i use jekyll
<phat4life>
is there an alternative to jekyll that stores the markdown fiels in a db?
MatthewsFace has joined #ruby
<miah>
why would you want the db dependency?
jlast has joined #ruby
<miah>
simple html text is great, because my webserver can load it all into memory
<phat4life>
i guess if you wanted a rails backend
<eam>
or not even copy it into memory, with zero-copy
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<miah>
indeed
<eam>
filesystems are great databases for reading (not so much for writing)
senayar has quit []
Igorshp has quit [Remote host closed the connection]
jhooker has joined #ruby
<judofyr>
writing is fine as well. searching on the the other hand.
[H]unt3r has joined #ruby
<phat4life>
yeah searching, paginating, tagging
<phat4life>
archives
<eam>
judofyr: writing a file to a filesystem is going to be much slower than inserting a row into a table
<miah>
you can have all that without rails
<eam>
(or unlinking a file)
<phat4life>
right
<phat4life>
but doing that stuff with purely jekyll, not as easy
<miah>
eh
<judofyr>
eam: that only means your database doesn't store things on disk
<eam>
judofyr: nope
ivanskie has joined #ruby
s2013 has joined #ruby
<eam>
judofyr: it's because a posix filesystem specifies all sorts of serialization points
<eam>
whereas a sql database does not
<miah>
my site has archiving and tagging. i don't care about search because Google does that already.
<eam>
eg rename() is an atomic operation
<judofyr>
eam: and how does a database ensure persistence, if not by writing to the disk?
<miah>
plus my site loads in less than a second
<phat4life>
miah: i want ajax type ahead though
<eam>
judofyr: it writes to disk, but there is not a file-per-row datastructure
rbennacer has quit [Remote host closed the connection]
<judofyr>
eam: ooooh. writing a *new* file. sure.
zacstewart has quit [Ping timeout: 256 seconds]
<judofyr>
creating a file
<eam>
it's the object creation that's expensive in a filesystem
<eam>
yeah
<judofyr>
that's different from writing to it ;)
<judofyr>
(in my head)
<eam>
yup
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 244 seconds]
<phat4life>
my page would load faster, if facebook, twitter, didn't load the share buttons via an iframe
olistik has quit [Remote host closed the connection]
<phat4life>
is there a better way to do that?
<miah>
i dont have any javascript on my site =)
<judofyr>
remove facebook/twitter buttons
<phat4life>
aside from that
phizzbuzz has quit [Remote host closed the connection]
<eam>
judofyr: for large, high throughput volumes it's common to split up filesystems for this reason -- serialization on link/unlink can become the long pole
<miah>
somebody has probably written better 'buttons'
<Kully3xf_>
what is a subcommand
<eam>
I had one particular case where I broke up a multi-TB volume into 10 parts spread across loopback-mounted filesystems
<eam>
massive throughput increase
emptyflask has joined #ruby
<Kully3xf_>
if I run something in a loop or by it self it works/but when I run it as threads it fails because it cannot find hte subcommand
<eam>
workload was mostly tempfile related
sbhatore has joined #ruby
pgatt has quit [Quit: Connection closed for inactivity]
revdan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wildroman2 has quit [Remote host closed the connection]
yokel has quit [Ping timeout: 255 seconds]
<judofyr>
Kully3xf_: dunno. there's no concept in Ruby of "subcommands". must come from a package/gem you use?
genpaku has quit [Ping timeout: 264 seconds]
<miah>
Kully3xf_: gist?
<Kully3xf_>
yea I think you're right
<Kully3xf_>
I think it's a chef thing
zacstewart has joined #ruby
revdan has joined #ruby
atom3 has quit [Ping timeout: 276 seconds]
<judofyr>
if it's chef, then I'm out. I have no idea how that works :)
genpaku has joined #ruby
yokel has joined #ruby
rbennacer has joined #ruby
hahuang65 has joined #ruby
atom3 has joined #ruby
ItSANgo has quit [Ping timeout: 255 seconds]
Kully3xf has joined #ruby
<miah>
#chef, but also just gist and ask question i know chef =)
jlast has quit [Remote host closed the connection]
balazs_ has joined #ruby
howdoicomputer has joined #ruby
msnyon has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
langland_ has quit [Ping timeout: 244 seconds]
Scroff has quit [Ping timeout: 244 seconds]
paulcsmith has joined #ruby
Kully3xf_ has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Remote host closed the connection]
momomomomo_ has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
msnyon has joined #ruby
woodruffw has quit [Quit: And then he took off.]
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
<Tarkers34>
guys any idea how I can select the contents of a match but not the flanking characters? AfooA #=> "foo". See here http://rubular.com/r/RlcA4Gjcip I'd like :three to be selected, not /:three/
woodruffw has joined #ruby
<Tarkers34>
I could gsub! away those slashes but I'm just wondering if it can be selected
Jackneill has joined #ruby
hotpanca_ has joined #ruby
thiagovsk has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
balazs_ has quit [Ping timeout: 276 seconds]
ndrei has joined #ruby
lkba has quit [Read error: Connection reset by peer]
Kully3xf_ has joined #ruby
lkba has joined #ruby
lkba_ has joined #ruby
revdan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<oddjob001>
can someone help me figure out how to pull 2.1.4.27 out of this? or a regex that will always and only pull number dot number dot and anything after that until the whitespace? http://pastebin.com/eywFNPP1 - I assume its some form of select, but I cant seem to find a regex to work
<ruboto>
pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Tarkers34>
shevy: Devon UK :)
rubie has quit []
brettnem has joined #ruby
jcoe has joined #ruby
<Tarkers34>
yourself
<Tarkers34>
?
RegulationD has quit [Ping timeout: 246 seconds]
<shevy>
central europe, austria, vienna
RegulationD has joined #ruby
<shevy>
lots of ruby programmers from the UK here
bullcitydev has joined #ruby
<theahindle>
oi oi
kies^ has quit [Ping timeout: 276 seconds]
<Tarkers34>
shevy: always good haha. I do like that about programming though. especially github collaboration. Just no predudices at all about culture/religion w/e. it's nice.
tacit7 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
ItSANgo_ has joined #ruby
bluOxigen has joined #ruby
woodruffw has quit [Ping timeout: 256 seconds]
Alayde has joined #ruby
emptyflask has left #ruby [#ruby]
pandaant has quit [Remote host closed the connection]
<Tarkers34>
is there a += operator in ruby? I don't think there is...surprising, ruby's normally so concicse. Do you have to say a = a + b?
<oddjob001>
that seems all out of order to me vs how windows is atually displaying it
thang has joined #ruby
<jhass>
wat
<jhass>
it's like it's spawning two processes that start outputting...
<oddjob001>
does that make any sense to you ?
<oddjob001>
ya
NeverDie has quit [Ping timeout: 265 seconds]
<oddjob001>
i dont get it one bit either lol
<oddjob001>
chalk it up to windows
benlieb_ has quit [Quit: benlieb_]
<jhass>
well, that makes output non deterministic
jcoe has joined #ruby
<havenwood>
oddjob001: If it's unsigned: scan /(?:\d\.)+\d/
yossarian has joined #ruby
<oddjob001>
ya. so in that case i cant assume i have certain lines to use. however, to answer the previous question yes. the only output I care about is the 2.1.4.27 which will always be the only line that starts with a number. so I at least have something to work with
<eam>
oddjob001: does Facter::Core::Execution.exex capture stderr as well as stdout?
<eam>
that would likely be the source of the ordering difference
chthon has quit [Ping timeout: 244 seconds]
<oddjob001>
eam: good question. i doubt it does capture stderr.
<havenwood>
oddjob001: (One or more digit then period pairs followed by a trailing digit.)
DCameronMauch has quit [Quit: Leaving...]
woodruffw has quit [Read error: Connection reset by peer]
rehat has joined #ruby
<havenwood>
oddjob001: #=> ["2.1.4.2"]
<eam>
oddjob001: I suspect it does, and I suspect some of those lines are stderr and some are stdout
benlieb_ has joined #ruby
<oddjob001>
havenwood: let me give that a try. I am just lurning ruby gud and was using this atrocity. newdrivers = Facter::Core::Execution.exec("qaucli -iscsi -dv").lines.select {|v| v=~ /([0-9][\.][0-9][\.][0-9][\.][0-9]{1,})/}
_blizzy_ has quit [Ping timeout: 255 seconds]
<oddjob001>
LOL
<wasamasa>
ouch
<oddjob001>
so yea learning how to program has made me decide I f'ing hate regex. for now.
<wasamasa>
replace [0-9] with \d
<wasamasa>
and [\.] with \.
<wasamasa>
{1,} is +
<wasamasa>
also, why do you group the entire thing
Rollabunna has quit [Ping timeout: 248 seconds]
<eam>
oddjob001: hating regex is healthy. You'll love it again when you go to parse text using non-regex utilities
<wasamasa>
I'm pretty sure #lines is deprecated
<oddjob001>
because its my 5th time ever using regex :)
<wasamasa>
=~ looks like perl
<wasamasa>
I've seen foo[/regex/] more often
<oddjob001>
i thought .lines was same as each_line?
<oddjob001>
havenwood: worked perfect. thank you
paulcsmith has quit [Remote host closed the connection]
<oddjob001>
havenwood: wait a sec though. that cuts off the last number
paulcsmith has joined #ruby
upsell5 has joined #ruby
nwhirschfeld has quit [Quit: No Ping reply in 210 seconds.]
<havenwood>
oddjob001: Using?: /(?:\d\.)+\d/
<havenwood>
oddjob001: oh
<havenwood>
oddjob001: right, more than one digit in a row, sec
<oddjob001>
ya. should expect 2.1.4.27 - returns 2.1.4.2
<havenwood>
oddjob001: So I guess: /(?:\d+\.)+\d+/
<upsell5>
I have a number like: 1920099 that I need to convert to 19200.99 how can I do that?
<upsell5>
i.e. last 2 digits are decimal place
<havenwood>
oddjob001: One or more digits followed by a period at least once, with a trailing one or more digits.
Musashi007 has joined #ruby
<oddjob001>
havenwood: I think that should work. i dont know all instances of drivers I would have out there. in laymens I basically need a regex that grabs a new line that starts with a digit (it will always be the only line that starts with a digit) and then stop when it gets to the first whitespace
jackjackdripper has joined #ruby
psy_ has quit [Read error: Connection reset by peer]
<oddjob001>
well the regex does, but i can make new lines and then apply the regex t it
<havenwood>
oddjob001: Yeah, I should have looked at the output before proposing solutions. >.>
<oddjob001>
its ok
howdoicomputer has quit [Ping timeout: 248 seconds]
<havenwood>
Wheee, Ruby!
samleb has joined #ruby
major_ma1ors is now known as major_majors
psy_ has joined #ruby
<oddjob001>
so if I can just .lines it. Ill have "2.1.4.27 (STOR wx64)\n" So i thinka better solution would be to find any line that starts with a digit and grab everything after that until the first whitespace
pengin has quit [Remote host closed the connection]
<oddjob001>
because what if I get a driver that is 12.22.4.12
<oddjob001>
that being said. would it be easier to take the entire output as a string and always look for number.number.number.number - or to take each line of the ouptut and trying to ten only grab num.num.num.num and end at whitespace
Kully3xf has joined #ruby
axl_ has quit [Ping timeout: 245 seconds]
axl__ is now known as axl_
MuffinPimp has quit [Read error: Connection reset by peer]
nobitanobi has quit []
MuffinPimp_ has joined #ruby
MuffinPimp_ is now known as MuffinPimp
santana has joined #ruby
moted has quit [Ping timeout: 244 seconds]
prestorium has joined #ruby
Kully3xf_ has quit [Ping timeout: 250 seconds]
withnale_ has quit [Ping timeout: 250 seconds]
<oddjob001>
my only constant is that it will be num.num.num.num - but I dont know how many numbers will be in each
Indian has quit [Ping timeout: 244 seconds]
armyriad has quit [Ping timeout: 244 seconds]
armyriad has joined #ruby
Indian has joined #ruby
<oddjob001>
havenwood: Im thinking your (?:\d+\.)+\d+ will work regardless of how many physical numbers are in each set, ya?
Kully3xf_ has joined #ruby
<havenwood>
oddjob001: The + means one or more, so yup. Try it in irb or pry or better yet write some Minitest tests or specs!
DCameronMauch has joined #ruby
<oddjob001>
i just tested it out on rubular with about 20 different varieties. seems to handle it all. thanks much!
brettnem has quit [Quit: brettnem]
towski_ has joined #ruby
serivich has joined #ruby
Xeago has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
yqt has joined #ruby
Kully3xf has quit [Ping timeout: 276 seconds]
frenda has joined #ruby
<havenwood>
oddjob001: The `()` is a group and the `?:` makes it a non-capture group. The `\d` is a digit and the `\.` period has to be escape since it has special meaning unescaped.
<frenda>
Hi, How can I run ruby in terminal of linux?
<upsell5>
havenwood: is it possible to force it to always have 2 digits after teh decimal?
<Senjai>
frenda: what.
<havenwood>
upsell5: Always in what since?
jlast has joined #ruby
<upsell5>
19200.fdiv(100) gives me 192.0
<frenda>
When run below command, I get this error: bash: bundle: command not found
<havenwood>
frenda: `ruby -e "ruby code here"` or `irb` for a REPL.
<frenda>
`bundle install --deployment --without development test`
<upsell5>
i want 192.00 (it is a price)
<havenwood>
frenda: gem install bundle
<havenwood>
frenda: Rather: gem install bundler
howdoi has quit [Quit: Connection closed for inactivity]
bubbys has joined #ruby
<oddjob001>
havenwood: thanks. i got most of that but the ?: is what was confusing until i read about it. it works great. tyvm
NeverDie has joined #ruby
<havenwood>
oddjob001: yw
<frenda>
havenwood: Isn't available package manager! should I do it by `gem`?
<havenwood>
frenda: Yeah: gem install bundler
<frenda>
ok, thanks
k3asd` has quit [Ping timeout: 250 seconds]
<havenwood>
no prob
Scroff has joined #ruby
<havenwood>
upsell5: So you want a String as a result?
<havenwood>
upsell5: Or BigDecimal?
<upsell5>
bigdecimal
NeverDie_ has quit [Ping timeout: 248 seconds]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
lordkryss has quit [Quit: Connection closed for inactivity]
JDiPierro has quit [Remote host closed the connection]
<havenwood>
err, that's not right
<havenwood>
upsell5: Wait, this is money?
<havenwood>
upsell5: Are you doing calculations or just printing it?
<yorickpeterse>
fuck, there's kids playing in an inflatable pool behind my apartment
<yorickpeterse>
I want an inflatable pool too :<
<yorickpeterse>
but I can't fit anything on my balcony
yossarian has quit [Quit: And then he took off.]
<shevy>
yorickpeterse go over to them and play; tell them you'll write some ruby scripts for them if they'll let you :)
woodruffw has joined #ruby
Spami_ has quit [Quit: Leaving]
Jackneill has quit [Remote host closed the connection]
<havenwood>
yorickpeterse: get a pickup and a tarp
<havenwood>
yorickpeterse: show them how to pool in style
<upsell5>
havenwood: i will be doing both
<upsell5>
so calculations then :)
revath has quit [Quit: Leaving.]
<yorickpeterse>
shevy: that would get me a free ticket to the local police department
<yorickpeterse>
havenwood: don't have a driver's license
<yorickpeterse>
nor the money for a pickup :P
<havenwood>
yorickpeterse: Get a salvage, engine optional.
<yorickpeterse>
heh
pengin has joined #ruby
revath has joined #ruby
rbennacer has quit [Remote host closed the connection]
<havenwood>
no wheels
<havenwood>
or jacked up on cinder blocks might be nice flare
yqt has quit [Ping timeout: 252 seconds]
olistik has quit [Remote host closed the connection]
<dfockler>
tarp off your balcony and turn it into a hottub
rbennacer has joined #ruby
<shevy>
lol
Musashi007 has quit [Quit: Musashi007]
<shevy>
may be rather unlikely that you'll get lots of great suggestions pertaining to your balcony here yorickpeterse
<havenwood>
upsell5: So Floats are completely out of the question. BigDecimal, Rational or Integers are options.
<yorickpeterse>
shevy: I'm not surprised
olistik has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
Jackneill has joined #ruby
Scroff has quit [Remote host closed the connection]
mcclurmc has quit [Ping timeout: 256 seconds]
<upsell5>
bigdecimal is always good for pricing right?
Musashi007 has joined #ruby
<yorickpeterse>
No
lkba has joined #ruby
* saaki
invoices a zillion dollars
hinbody has quit [Quit: leaving]
<yorickpeterse>
For pricing you'll want to store numbers in the most accurate form possible, but you might not need BigDecimal for that
woodruffw has quit [Ping timeout: 252 seconds]
<yorickpeterse>
at least in Ruby a Fixnum will overflow automatically when needed
NeverDie_ has joined #ruby
Scroff has joined #ruby
<eam>
just be careful what kind of math you do to it
djbkd has joined #ruby
<upsell5>
my product feed has numbers, like: 1920000
<eam>
personally I'd stick to BigDecimal to avoid accidental errors
<upsell5>
the last 2 are the decimals
Spami has joined #ruby
lkba_ has quit [Ping timeout: 248 seconds]
hotpanca_ has quit [Ping timeout: 248 seconds]
<yorickpeterse>
upsell5: that's not a bigdecimal
jeanlinux has quit [Ping timeout: 256 seconds]
<eam>
it could be!
atomical has joined #ruby
<yorickpeterse>
and there's no reason to store that in a bigdecimal either unless it _has_ to be a bigdecimal
<eam>
yorickpeterse: there are a ton of valid reasons to
NeverDie has quit [Ping timeout: 264 seconds]
<upsell5>
yorickpeterse: true
zendrix has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
hotpancakes has joined #ruby
samleb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bubbys has quit [Ping timeout: 264 seconds]
serivich has quit [Ping timeout: 265 seconds]
vyorkin has quit [Quit: WeeChat 1.2]
kies^ has joined #ruby
Xeago has quit [Remote host closed the connection]
Marisa_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
malconis has quit [Read error: Connection reset by peer]
cepokop has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
wallerdev_ has joined #ruby
PatrickHoward has joined #ruby
momomomomo has joined #ruby
micmus has quit [Ping timeout: 250 seconds]
ryba has joined #ruby
AlphaAtom has joined #ruby
revath has quit [Read error: Connection reset by peer]
malconis has joined #ruby
graydot has joined #ruby
nateberkopec has joined #ruby
GBrawl has joined #ruby
eGGsha has joined #ruby
revath has joined #ruby
cepokop has quit []
langlands has joined #ruby
einarj has joined #ruby
failshell has joined #ruby
Indian has quit [Ping timeout: 246 seconds]
failshel_ has joined #ruby
peter_paule has joined #ruby
chipotle has quit [Quit: cheerio]
woodruffw has joined #ruby
zacstewart has quit [Remote host closed the connection]
choke has joined #ruby
failshell has quit [Read error: Connection reset by peer]
kirun has joined #ruby
lessless has joined #ruby
einarj has quit [Ping timeout: 264 seconds]
Marisa_ has quit [Read error: Connection timed out]
zacstewart has joined #ruby
Marisa_ has joined #ruby
anisha has joined #ruby
phutchins1 has joined #ruby
bubbys has joined #ruby
olistik has quit [Remote host closed the connection]
baweaver has joined #ruby
mike___1234 has quit [Ping timeout: 252 seconds]
ddv has joined #ruby
samleb has joined #ruby
soulcake has quit [Max SendQ exceeded]
ddv has quit [Changing host]
ddv has joined #ruby
Muhannad has quit [Ping timeout: 246 seconds]
soulcake has joined #ruby
anisha has quit [Client Quit]
soulcake has quit [Max SendQ exceeded]
blackmesa has quit [Ping timeout: 246 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
c_nick has joined #ruby
sarkyniin has joined #ruby
micmus has joined #ruby
<c_nick>
In Sinatra how can we do a dynamic table rendering on click you change the contents of the table
mike___1234 has joined #ruby
howdoicomputer has joined #ruby
sarkyniin has quit [Client Quit]
sarkyniin has joined #ruby
<jhass>
c_nick: how's sinatra relevant to that question? sounds like frontend work
iamninja has joined #ruby
Oka has joined #ruby
sross07 has joined #ruby
stacktracer has quit [Quit: leaving]
soulcake has joined #ruby
Musashi007 has quit [Ping timeout: 264 seconds]
soulcake has quit [Max SendQ exceeded]
JDiPierro has joined #ruby
samleb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
multi_io_ has quit [Ping timeout: 246 seconds]
dopie has joined #ruby
<shevy>
c_nick probably via a javascript action
upsell5 has quit [Quit: upsell5]
multi_io has joined #ruby
momomomomo_ has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
IanV0rn2341 is now known as IanV0rn2341[away
soulcake has joined #ruby
baweaver has quit [Remote host closed the connection]
kfpratt has joined #ruby
workmad3 has joined #ruby
c_nick has quit [Ping timeout: 252 seconds]
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo_ is now known as momomomomo
yardenbar has joined #ruby
soulcake has quit [Max SendQ exceeded]
bruno- has joined #ruby
hinbody has joined #ruby
jhooker has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
eGGsha has quit [Read error: Connection reset by peer]
blueOxigen has joined #ruby
jhooker has joined #ruby
jeanlinux has joined #ruby
c_nick has joined #ruby
Ox0dea has quit [Ping timeout: 264 seconds]
aef has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
kerrizor has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
<c_nick>
jhass: Yes indeed frontend work but wanted to know how I can get that achieved through Sinatra+haml, couldnt find a tutorial or an article on it will continue to search
howdoicomputer has quit [Ping timeout: 252 seconds]
<jhass>
c_nick: with some javascript, likely
last_staff has joined #ruby
bradleyprice has joined #ruby
chouhoul_ has joined #ruby
hotpancakes has quit []
JoshL has joined #ruby
ivanskie has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
Alayde has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
tonyhb has joined #ruby
eGGsha has joined #ruby
zacstewart has quit [Ping timeout: 255 seconds]
baweaver has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 244 seconds]
frenda has left #ruby [#ruby]
<c_nick>
hmm jhass yes i need to try on that
ryba has quit [Ping timeout: 264 seconds]
stoodfarback has quit [Ping timeout: 256 seconds]
tonyhb has quit [Read error: Connection timed out]
zacstewart has joined #ruby
<sbhatore>
hey! what does a function starting with _(underscore) convey or when is it used ?
<jhass>
sbhatore: got some context? looks like gettext on first glance, which is rarely used in ruby land
sandstrom has quit [Quit: My computer has gone to sleep.]
<jbourassa>
Hey Ruby friends. I’m trying to figure out of Array#each is thread safe — say two threads are iterating the same array, is the result going to be as expected? Otherwise said, where’s the iterator current value saved?
zacstewart has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
Indian has joined #ruby
<adaedra>
There's no #shift for string? Disapointing.
tonyhb_ has quit [Ping timeout: 264 seconds]
mcclurmc has quit [Remote host closed the connection]
Papierkorb has joined #ruby
sarkyniin has quit [Ping timeout: 265 seconds]
benlieb_ has joined #ruby
<adaedra>
slice!(0) does the job
<ljarvis>
jbourassa: well, is the array modified in another read or is it readonly?
momomomomo_ has quit [Quit: momomomomo_]
<ljarvis>
s/read/thread/
<jbourassa>
It is not — it’s only being iterated on.
wallerdev_ has joined #ruby
<ljarvis>
then I'm not sure I understand your question
<ljarvis>
if the array isn't ever modified, it'll contain the same contents across all threads
Eiam_ has joined #ruby
<jbourassa>
Yes, of course. I’m curious about the iterator pointer — or whatever keeps track of where an iterator is at.
brettnem has joined #ruby
Hobogrammer has quit [Ping timeout: 256 seconds]
zacstewart has joined #ruby
<jbourassa>
(I’m not sure about Ruby’s implemenation of Array, my question might be more about Enumerable)
mrmargolis has quit [Remote host closed the connection]
mrmargolis has joined #ruby
<adaedra>
ljarvis: I think the question is to know if the iterator when doing #each is internal to the array (so shared) or not
<jbourassa>
^ Exactly, thank you :)
<ljarvis>
right, thanks adaedra
<ljarvis>
jbourassa: you could test this pretty easily
<jhass>
jbourassa: it's on the stack of the #each call
<ljarvis>
:(
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
langlands has joined #ruby
Alayde has joined #ruby
RegulationD has joined #ruby
maletor has joined #ruby
<jbourassa>
jhass: pardon my non-understanding — that means that multiple `#each` on the same Array will _not_ share the pointer. Correct?
yqt has quit [Ping timeout: 276 seconds]
<jhass>
correct, keep in mind that each is a regular method call
<adaedra>
Doing parallel #each as long as you don't modify the array should be safe
jenrzzz has joined #ruby
rbennace_ has joined #ruby
langland_ has joined #ruby
graydot has joined #ruby
pfish has joined #ruby
<jhass>
you can picture it as being a less naive version of i = 0; while i < size; yield self[i]; end;
<yorickpeterse>
the only thing really enjoying the weather is my lemon tree
<mantas322>
grrrrr!
<yorickpeterse>
pretty sure that thing grew more in the past few days than in the past year
<sphex>
hey. is there an easy way to make a class "writable"? e.g. if I could just define a "write" method, and then include a mixin to get "puts", "printf", "putc", etc.
grey_beard has joined #ruby
zendrix has quit [Read error: Connection reset by peer]
<nofxx>
sphex, there's not such a thing as class not writable in ruby
howdoicomputer has quit [Ping timeout: 265 seconds]
mcclurmc has joined #ruby
s2013 has quit [Client Quit]
zendrix has joined #ruby
<nofxx>
can you freeze a class?
<ljarvis>
...
vickleton has quit [Remote host closed the connection]
failshel_ is now known as failshell
<ljarvis>
clearly that's not even close to what they were asking
<jhass>
sphex: I think that's pretty much the contract for IO
<yorickpeterse>
mantas322: np
<nofxx>
sphex, check isntance_method, class_method, or even reopening the class
<sphex>
nofxx: I just mean a class that behaves like a writable I/O stream
wildroman3 has joined #ruby
ht__ has quit [Client Quit]
s2013 has joined #ruby
mantas322 has quit [Client Quit]
<yorickpeterse>
IIRC you can extend IO
<yorickpeterse>
and define your own "write"
djbkd has joined #ruby
<nofxx>
sphex, ah, beg yr pardon
<yorickpeterse>
but I might be mistaken
<sphex>
nofxx: hey, np!
hanmac has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wildroman2 has quit [Ping timeout: 264 seconds]
<sphex>
yorickpeterse, jhass: oh ok. I'm gonna try that. thanks
dopie has joined #ruby
dede has joined #ruby
<havenwood>
nofxx: FREEZE ALL THE THINGS \o/
<havenwood>
>> String.freeze; class String; def to_i; 0 end end
<ruboto>
havenwood # => can't modify frozen class (RuntimeError) ...check link for more (https://eval.in/390656)
zacstewart has quit [Ping timeout: 265 seconds]
s2013 has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
<nofxx>
havenwood, haha, nice ;)
<ljarvis>
should create a gem called frozen
NeverDie_ has joined #ruby
s2013 has joined #ruby
<ljarvis>
which just freezes shit
djbkd has joined #ruby
<nofxx>
subzero... Subzero.come_here(Class)
<nofxx>
subzero... Subzero.come_here(Class).jab
<eam>
>> ObjectSpace.each_object &:freeze
<ruboto>
eam # => /tmp/execpad-b8d206430359/source-b8d206430359:1:in `p': can't modify frozen Hash (RuntimeError) ...check link for more (https://eval.in/390658)
<stonecolddevin>
except scorpion does that
<nofxx>
stonecolddevin, ouch!
<ljarvis>
semantics
<nofxx>
they are cousins stonecolddevin
jpfuentes2 has quit [Ping timeout: 276 seconds]
<ljarvis>
gpl
<ljarvis>
...
<ljarvis>
wrong one
<nofxx>
the best named gem ever is 'jesus' the web interface of god for the mankind
<nofxx>
charlock holmes is funny too
vickleton has joined #ruby
<shevy>
I don't know
<shevy>
if I install jesus, what do I get?
<yorickpeterse>
nothing
<shevy>
damn
<shevy>
not even jesus on rails?
NeverDie has quit [Ping timeout: 246 seconds]
revoohc has quit [Quit: revoohc]
<shevy>
I wonder why weird names seem to dominate gems
<shevy>
like sinatra
<shevy>
gem install phuby
Rickmasta has joined #ruby
<shevy>
failed with a "php is missing!" message :(
<eam>
shevy: have I told you about my rules for naming a ruby gem?
bmurt has quit []
mrmargol_ has joined #ruby
dgutierrez1287 has joined #ruby
mrmargolis has quit [Read error: Connection reset by peer]
<eam>
1) figure out what your gem does. This gem prints text. 2) Figure out a clever angle three abstractions removed. For example:
rodfersou has quit [Remote host closed the connection]
<eam>
a) writers print text b) Hemmingway is a writer c) Hemmingway was fond of six toed cats
<eam>
so the gem's name is six-toes
<nofxx>
creative names are nice. the only naming prob with gem is that there's no enforce on the rules naming to require rules.. I mean, ppl write foo-bar gem and require 'foo_bar' for isntance.
<shevy>
eam lol
<yorickpeterse>
according to the thermostat in my attic it's 34C somewhere in my roof (the temperature sensor for some reason is in my roof)
jerius has quit [Quit: /quit]
<yorickpeterse>
:<
<eam>
the more oblique the references the better a rubyist you are
<shevy>
yorickpeterse 27°C here
diegoviola has quit [Quit: WeeChat 1.2]
<eam>
wow you both must be freezing
nfk has quit [Quit: yawn]
<bougyman>
40C here
<eam>
102 over here
<bougyman>
that's the same, isn't it?
<eam>
yeah about ;)
<bougyman>
a bit cooler
zacstewart has joined #ruby
<adaedra>
32 here
<bougyman>
103-104 here.
<bougyman>
(in stupid Farenheit)
<bougyman>
Farenheit should be banned.
txdv has quit [Ping timeout: 265 seconds]
<nofxx>
agree
<adaedra>
what's a farenheit
<eam>
I climed up in my attic to replace a broken attic fan a few summers ago, and I brought an infrared thermostat gun with me
hagebake has quit [Quit: No Ping reply in 180 seconds.]
<eam>
it was 73C
<havenwood>
adaedra: something about burning books
dgutierrez1287 has quit [Ping timeout: 244 seconds]
<eam>
(165F)
<adaedra>
oh ok
hagabaka has joined #ruby
<eam>
attics get hot
jpfuentes2 has joined #ruby
<adaedra>
oh, bits of rain announced sunday
hinbody has quit [Ping timeout: 244 seconds]
AlphaAtom has joined #ruby
<yorickpeterse>
eam: what the fuck
<eam>
yorickpeterse: I lost 10lb of water weight that day, even though I drank over a gallon of water
<adaedra>
brb dying
<eam>
I had my wife stand by in case I passed out, it was unbearable
bullcitydev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam>
"if I don't reply don't come in after me just dial 911"
JDiPierro has quit [Remote host closed the connection]
A205B064 has quit [Remote host closed the connection]
<eam>
the fan I installed that day keeps it closer to 50C
Kully3xf_ has quit [Ping timeout: 276 seconds]
failshell has quit []
<yorickpeterse>
I'm probably going to stock up on an extra fan this weekend
<yorickpeterse>
and create a little whirldwind
<yorickpeterse>
hopefully that at least keeps things a bit cool
dopie has quit [Quit: This computer has gone to sleep]
<dudedudeman>
facasb
<dudedudeman>
... sorry. wrong window and i was attemping to do some keystrokes
<adaedra>
\o
mrmargol_ has quit [Ping timeout: 246 seconds]
<dudedudeman>
i'm a big fan of alt+d in a browser window lol
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kinduff has joined #ruby
kinduff has joined #ruby
<eam>
158F you'll die eventually. I was going up for about 10-15 minutes at a time
<kinduff>
Is it possible to stop `gets` user input in anyway (in a while or loop)?
<ljarvis>
kinduff: interupt?
momomomomo has quit [Quit: momomomomo]
<kinduff>
yes
<ljarvis>
interrupt*
<ljarvis>
no i mean, hit control-c
<kinduff>
Not by the user, whithin the script
<ljarvis>
huh?
Guest69107 has quit [Ping timeout: 246 seconds]
<ljarvis>
could you provide some background?
howdoicomputer has quit [Ping timeout: 248 seconds]
<kinduff>
Got a Thread with a sleep method inside, after the sleep a variable changes. If this variable changes, `gets` should be interrupted. My `gets` is inside a loop that breaks if var from Thread changes.
<kinduff>
I'm looking for a way to break it and interrupt the `gets` before the next loop iteration
mrmargolis has quit [Remote host closed the connection]
Guest69107 has joined #ruby
<kinduff>
Or could a `gets` be interrupted inside a Thread?
klaas has quit [Read error: Connection reset by peer]
marr has quit [Read error: Connection reset by peer]
warreng has quit [Ping timeout: 256 seconds]
Shidash has quit [Ping timeout: 256 seconds]
skmp has quit [Ping timeout: 256 seconds]
prasselpikachu has quit [Excess Flood]
uber has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
<eam>
kinduff: but, you really should use IO.select
prasselpikachu has joined #ruby
Janusz1 has joined #ruby
marr123 is now known as marr
paulcsmith has joined #ruby
whippythellama has quit [Quit: WeeChat 1.2]
<kinduff>
eam: thanks!
guyz has quit [Ping timeout: 256 seconds]
slash_nick has quit [Ping timeout: 256 seconds]
skmp has joined #ruby
<eam>
raising in another thread is essentially like dropping in a goto randomly
warreng has joined #ruby
KetaPan has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
Shidash has joined #ruby
dopie has joined #ruby
digifiv5e has joined #ruby
chipotle has joined #ruby
paulcsmith has quit [Client Quit]
digifiv5e is now known as Guest1094
benlieb_ has quit [Quit: benlieb_]
<Eroc>
Is there a way to do something like eval to execute arbitrary code, but to specify what subset of Ruby is considered valid? Specifically, I don't want people to be able to use System or something like that. I'd also like to avoid having to create a parser. Any ideas?
jenrzzz_ has quit [Ping timeout: 276 seconds]
<havenwood>
Eroc: What do you need to parse in particular?
[H]unt3r_ has quit []
zacstewa_ has joined #ruby
casadei has joined #ruby
zendrix has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
uber has joined #ruby
<havenwood>
Eroc: You just want a syntax check?
<Eroc>
Logical expressions. I want to have a hash that represents some context, but then it would just be operations on that. Here's an example: "context[:foo][:bar] == 'baz'"
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Eroc>
havenwood: Yes, a syntax check, but I want the universe of what can be evaluated minimized. So, no system calls, no logging, etc.
<Eroc>
I want to eval something in a safe way.
momomomomo_ has joined #ruby
<Eroc>
And seriously restrict what the user does and does not have access to.
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo_ is now known as momomomomo
<Eroc>
And also make a few convenience methods available to the user.
fantasti` has quit [Remote host closed the connection]
<havenwood>
Eroc: So you want to check the syntax of the script and exit without executing?
jobewan has quit [Quit: Leaving]
fantasti` has joined #ruby
<Eroc>
No, if it is valid and within the subset of Ruby that I consider safe, then I want to execute it.
sshuff has quit [Quit: Leaving]
dented42 has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
<zenspider>
zomg it's been hours! what'd I miss!?!?!
<eam>
Eroc: unlikely to be an effective approach outside of an academic exercise; it's pretty easy to break out of limits
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider>
Eroc: you can use a combination of ruby_parser + sexp_processor to write a validator
<Eroc>
eam: Any ideas on a safe way to write this? I'm thinking I might need to define my own Ruby-like language for the expressions and write a parser for it.
kfpratt has joined #ruby
enebo has quit [Quit: enebo]
benlieb_ has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sepp2k has quit [Quit: Leaving.]
<Eroc>
I agree that calling eval itself is probably going to be pretty messy and error-pront.
<Eroc>
"prone"
<havenwood>
Eroc: Why are you doing this?
<zenspider>
you don't even need to use eval if you don't want to, given my suggestion above
fsvehla has quit [Quit: fsvehla]
<Eroc>
I am implementing a workflow system and each node in the workflow needs a series of conditions that determine what the next step in the workflow is. Each condition looks at data gathered previously in the workflow to make the determination.
AlphaAtom has joined #ruby
<Eroc>
zenspider: Missed your comment. I'll check those out.
workmad3 has joined #ruby
howdoicomputer has quit [Ping timeout: 246 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 264 seconds]
jbourassa has quit [Quit: jbourassa]
vickleton has quit [Ping timeout: 256 seconds]
kaleido has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jpfuentes2 has joined #ruby
mcclurmc has joined #ruby
howdoicomputer has joined #ruby
irb1 has joined #ruby
Eroc has quit [Quit: leaving]
haasn` is now known as haasn
<irb1>
hello all
danman has quit [Quit: danman]
<irb1>
anyone have experience with the rest-client gem?
<Senjai>
?use irb1
<ruboto>
irb1, Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
Muhannad has quit [Ping timeout: 265 seconds]
<irb1>
i am am trying to set the correct http headers using a cookie value but with no luck