havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
<arahael> *profilers
<arahael> droptone: be sure that you are optimising the correct spot.
<droptone> arahael: Checking them out now, thank you.
<Ox0dea> droptone: Can it be processed incrementally, or do you absolutely need all of it all at once?
davedev24 has quit [Remote host closed the connection]
nando293921 has quit [Quit: Lost terminal]
<droptone> Well, I'm here with pen and paper attempting to reduce the amount of data queried from the API, but that doesn't seem to matter regarding the CPU spikes
Dry_Lips has quit [Ping timeout: 246 seconds]
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Qommand0r has joined #ruby
<droptone> be it little data or lots of data, while the app is executing it seems to hog the CPU at times.
triangles2 has quit [Quit: Leaving]
freerobby has joined #ruby
nando293921 has joined #ruby
<Ox0dea> You've got us flying blind here, mate. :/
<droptone> Right, sure, well I don't need to get that in-depth with the code, I'll start with this profiler.
<droptone> Thank you though.
<Ox0dea> Seems a good bet.
<droptone> What do you mean by "massive reads"?
<Ox0dea> No worries.
<arahael> droptone: it'd be very interesting to know which functions are hogging the cpu ;) a profiler can help identify if you need to jmprove your algorithm or if microoptimisation will work.
<droptone> Just reading massive amounts of data?
<droptone> From disk? From the network?
<Ox0dea> Either.
<droptone> ok
ur5us has quit [Remote host closed the connection]
<arahael> Ox0dea: why would readin data in itself be a problem? you're trading cpu time for responsiveness.
Dry_Lips has joined #ruby
Dry_Lips has joined #ruby
<droptone> Ox0: Do you have a recommendation on a specific profiler you prefer to use?
<Ox0dea> droptone: ruby-prof is decent.
<droptone> ok
<Ox0dea> arahael: It's just that I suspect droptone is doing blocking reads, which are notorious bottlenecks.
william3 has quit [Ping timeout: 260 seconds]
mjuszczak has quit []
bronson has joined #ruby
baweaver has quit [Ping timeout: 268 seconds]
binaryplease1 has joined #ruby
<arahael> Ox0dea: compared to non-blocking, sure. but not compared to reading little bits of it at a time, in a blockig way, surely?
<droptone> Well, I can say this. The way the app executes is, in a simplified way, it loads the user profile from the database, it then calls API provider 1 and receives a lot of data (depending on the customer)
<droptone> The API provider basically sends back pages of data, and during the page load the CPU is actually pretty low.
<droptone> 1-3.7% based on top output.
binaryplease has quit [Ping timeout: 240 seconds]
Dry_Lips has quit [Ping timeout: 250 seconds]
<droptone> The spikes are occurring at 2 points - 1) when writing to disk, and 2) when reviewing the data provided from the API, which is stored in a big hash and compared against a DB entry for that data.
<droptone> The DB runs on a non-local RDS instance
<droptone> I know you're flying blind here, but just in case anything about this description sticks out.
<arahael> droptone: sampling can be very misleading (especially if it's just top), but those two points could be candidates for pusshing into a queue for saving and reviewing by a saving thread and reviewing thread. still, i'd first check a profiler.
bronson has quit [Ping timeout: 252 seconds]
Ebok has joined #ruby
<droptone> For example, say there's a category called "cats" returned form the API, potentially thousands of cats are stored in a hash and then a loop where each cat is analyzed and the "last_updated" value is compared against the one stored on file in the DB for that entry
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
Dry_Lips has joined #ruby
<droptone> ok, I'll just go to the profile and report back.
impermanence has quit [Ping timeout: 268 seconds]
cdg has quit [Remote host closed the connection]
Rodya_ has joined #ruby
cdg has joined #ruby
<arahael> droptone: keep in mind, Ox0dea seems to be far more experienced in ruby than i am. i'm giving language-neutral advice.
<droptone> gotcha.
A124 has quit [Quit: '']
<droptone> Yes, Ox0dea is kind of socrates of #ruby
<arahael> awesome :)
A124 has joined #ruby
r0b3rt has quit [Ping timeout: 250 seconds]
mjuszczak has joined #ruby
binaryplease1 is now known as binaryplease
Rodya_ has quit [Ping timeout: 246 seconds]
wilbert has joined #ruby
* Fernando-Basso bows before Ox0dea's might
<droptone> wise
yfeldblum has quit [Ping timeout: 260 seconds]
* droptone brings frankincense and mur in tribute
victortyau has quit [Quit: Textual IRC Client: www.textualapp.com]
FooMunki has quit [Quit: FooMunki]
bob434 has joined #ruby
hyperdrive has quit [Ping timeout: 246 seconds]
wilbert has quit [Ping timeout: 240 seconds]
fedexo has joined #ruby
mlakewood has joined #ruby
ta__ has joined #ruby
SilverKey has quit [Quit: Halted.]
moeabdol has joined #ruby
erict has joined #ruby
SilverKey has joined #ruby
wjb has joined #ruby
SilverKey has quit [Client Quit]
chouhoulis has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
<droptone> Apparently mur is spelled "myrrh." Learn something every day.
ta__ has quit [Ping timeout: 276 seconds]
<arahael> i was wondering what what was.
jpcody has joined #ruby
jpcody has quit [Client Quit]
chouhoulis has quit [Ping timeout: 244 seconds]
imperator has joined #ruby
<droptone> You couldn't tell by the "frankincense" ahead of it?
kareeoleez has joined #ruby
maletor has joined #ruby
bradleyprice has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<neha-> he prob isnt christian
Dry_Lips has quit [Ping timeout: 246 seconds]
<droptone> Guess not.
Rodya_ has joined #ruby
Aviio has quit [Remote host closed the connection]
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
Dry_Lips has joined #ruby
Rodya_ has quit [Read error: Connection reset by peer]
Rodya__ has joined #ruby
baweaver has joined #ruby
dnewkerk_ has joined #ruby
tristanp has joined #ruby
James123 has quit [Quit:]
dnewkerk has quit [Ping timeout: 260 seconds]
dnewkerk_ is now known as dnewkerk
RegulationD has joined #ruby
mesamoo has joined #ruby
dnewkerk has quit [Client Quit]
tristanp has quit [Remote host closed the connection]
Durin_ has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
Durin_ has quit [Client Quit]
Es0teric has quit [Quit: Computer has gone to sleep.]
weemsledeux has joined #ruby
A124 has quit [Quit: '']
kareeoleez has quit [Remote host closed the connection]
Durin_ has joined #ruby
A124 has joined #ruby
yfeldblum has joined #ruby
A124 has quit [Client Quit]
A124 has joined #ruby
northrup has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Durin_ has quit []
crime has quit [Ping timeout: 250 seconds]
cdg has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
Aviio has joined #ruby
wjb has quit [Quit: Leaving]
william3 has joined #ruby
Guest95761 has quit [Read error: Connection reset by peer]
zast has joined #ruby
davedev24 has joined #ruby
kareeoleez has quit [Remote host closed the connection]
kareeoleez has joined #ruby
w1lson has joined #ruby
charliesome has joined #ruby
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
<w1lson> Hey guys I tried following the instructions here to setup rbenv https://gorails.com/setup/osx/10.11-el-capitan everything worked but ruby -v still gives me 2.0.0
Emmanuel_Chanel has joined #ruby
valetudo has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
<arahael> well, i'm christian but "mur" is totally different to "myrrh", besides, frankincense has a number of uses and many references.
aces1up has joined #ruby
<arahael> plus, i'm deaf.
rkazak has joined #ruby
<droptone> ahh, there you go
<arahael> "mur" looks like it could be similar to "muir", but "myrrh" looks similar to "moorrah"
mjuszczak has quit []
<droptone> Well in my entire life I've never heard anyone say frankincense without saying myrrh after.
impermanence has joined #ruby
william3 has quit [Ping timeout: 260 seconds]
<droptone> And where I'm from myrrh is pronounced "mur"
<droptone> "Mer"
<droptone> Rolling phonetic
<droptone> Damn, why isn't this EC2 dashboard accurately reflecting disk IO
vdamewood has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aces2up has joined #ruby
aces1up has quit [Ping timeout: 252 seconds]
Emmanuel_Chanel has joined #ruby
<aces2up> hello was wondering if someone could help me with class_eval, not to used to using it with me code here : http://codepad.org/taXbp6Ag
noService has joined #ruby
impermanence has quit [Ping timeout: 276 seconds]
Ven has joined #ruby
Ven has left #ruby [#ruby]
maletor has quit [Quit: Computer has gone to sleep.]
terminalrecluse has joined #ruby
noService has quit [Ping timeout: 246 seconds]
Moosashi has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
kareeoleez has quit [Remote host closed the connection]
A124 has quit [Quit: '']
william3 has joined #ruby
diegoaguilar has joined #ruby
A124 has joined #ruby
daed has quit [Quit: .]
w1lson has quit [Ping timeout: 244 seconds]
Moosashi has quit [Quit: Moosashi]
northrup has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polysics has quit [Remote host closed the connection]
william3 has quit [Ping timeout: 260 seconds]
ta__ has joined #ruby
kareeoleez has joined #ruby
yfeldblum has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
chouhoulis has joined #ruby
aces2up has quit []
ta__ has quit [Ping timeout: 250 seconds]
noobsu has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Moosashi has joined #ruby
weemsledeux has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
<droptone> has anyone seen a scenario where they declare their logger with "daily" set, and you have an app that's say, cron'd every hour, and yet despite the daily specification it never generates a new file?
william3 has joined #ruby
<droptone> and you have your host set to sync to an NTP server so you know your time is good
Weavel has quit [Quit: Few women admit their age. Few men act theirs.]
<droptone> ?
mesamoo has quit [Quit: Konversation terminated!]
<droptone> It literally just writes to the same file every single time, for weeks at a time.
<droptone> even though every time it executes the logger.new decleration includes the same filename but "daily" set
Aviio has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
william3 has quit [Ping timeout: 260 seconds]
noobsu has quit []
LoneHerm_ has joined #ruby
al2o3-cr1 has joined #ruby
al2o3-cr is now known as Guest60308
Moosashi has quit [Quit: Moosashi]
al2o3-cr1 is now known as al2o3-cr
Guest60308 has quit [Ping timeout: 268 seconds]
jaguarmagenta has joined #ruby
ur5us has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
cdg has joined #ruby
jaguarmagenta has quit [Ping timeout: 268 seconds]
impermanence has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fedexo has quit [Ping timeout: 250 seconds]
impermanence has quit [Client Quit]
LoneHerm_ has joined #ruby
<arahael> droptone: figures. 'rh' must be silent, then.
baweaver has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Rodya__ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
Dry_Lips has quit [Ping timeout: 250 seconds]
bkxd has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x77686d has quit [Quit: x77686d]
Rodya_ has quit [Ping timeout: 260 seconds]
Dry_Lips has joined #ruby
Dry_Lips has joined #ruby
bronson has joined #ruby
william3 has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
zacstewart has quit [Ping timeout: 260 seconds]
_blizzy_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
william3 has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
<agent_white> Evenin'
elifoster has quit [Ping timeout: 260 seconds]
A124 has quit [Ping timeout: 246 seconds]
A124 has joined #ruby
arescorpio has joined #ruby
_blizzy_ has quit [Ping timeout: 260 seconds]
jpcody has joined #ruby
jpcody has quit [Client Quit]
rkazak has joined #ruby
chouhoulis has joined #ruby
benlieb has joined #ruby
FailBit has joined #ruby
kareeoleez has joined #ruby
william3 has joined #ruby
mlakewood has quit [Quit: mlakewood]
rkazak_ has joined #ruby
rkazak has quit [Ping timeout: 276 seconds]
rkazak_ is now known as rkazak
coyo has joined #ruby
karapetyan has joined #ruby
polysics has joined #ruby
william3 has quit [Ping timeout: 244 seconds]
kareeoleez has quit [Ping timeout: 244 seconds]
tristanp has joined #ruby
ta__ has joined #ruby
tubuliferous has quit [Ping timeout: 252 seconds]
karapetyan has quit [Ping timeout: 244 seconds]
benlieb has quit [Quit: benlieb]
polysics has quit [Ping timeout: 276 seconds]
blandflakes has joined #ruby
blandflakes has quit [Client Quit]
w1lson has joined #ruby
The_Phoenix has joined #ruby
ta__ has quit [Ping timeout: 246 seconds]
wald0 has joined #ruby
tubuliferous has joined #ruby
Aviio has joined #ruby
wald0 has quit [Ping timeout: 240 seconds]
SCHAAP137 has quit [Quit: Leaving]
wald0 has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
davedev24 has quit []
benlieb has joined #ruby
tubuliferous has quit [Ping timeout: 260 seconds]
benlieb_ has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
emilford has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
benlieb has quit [Ping timeout: 276 seconds]
benlieb_ is now known as benlieb
benlieb has quit [Quit: benlieb]
kareeoleez has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
chipotle has quit [Max SendQ exceeded]
hxegon has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
william3 has joined #ruby
tristanp has quit [Remote host closed the connection]
rbennacer has joined #ruby
hxegon has quit [Client Quit]
smathy is now known as smathy_afk
chipotle has joined #ruby
jordanm has joined #ruby
william3 has quit [Ping timeout: 244 seconds]
Dimik1 has joined #ruby
iaglium has joined #ruby
vdamewood has quit [Ping timeout: 276 seconds]
hxegon has joined #ruby
ixti has quit [Quit: WeeChat 1.4]
mlakewood has joined #ruby
stannard has joined #ruby
flashpoint9 has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
davee_ has joined #ruby
Chagel has quit [Ping timeout: 276 seconds]
zacstewart has joined #ruby
tubuliferous has joined #ruby
kareeoleez has joined #ruby
braincras has quit [Quit: bye bye]
pawnbox has quit [Ping timeout: 260 seconds]
stannard has quit [Ping timeout: 240 seconds]
flashpoint9 has quit [Ping timeout: 268 seconds]
stardiviner has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v2.4 Beta Build (2016/04/23-1) 32 Bit]
noService has joined #ruby
Tempesta has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
jroggeman has joined #ruby
coyo has quit [Ping timeout: 276 seconds]
noService has quit [Ping timeout: 244 seconds]
jroggeman has quit [Quit: leaving]
braincrash has joined #ruby
bob434 has joined #ruby
bkxd has joined #ruby
agentmeerkat has joined #ruby
imperator has quit [Quit: Leaving]
ledestin has joined #ruby
bob434 has quit [Client Quit]
bkxd has quit [Ping timeout: 244 seconds]
Moosashi has joined #ruby
bklane has quit [Quit: Leaving...]
kareeoleez has joined #ruby
Moosashi has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
zacstewart has quit [Ping timeout: 276 seconds]
rkazak has quit [Quit: Sleep.....ing....]
polysics has joined #ruby
agentmeerkat has quit [Ping timeout: 250 seconds]
kareeoleez has quit [Ping timeout: 246 seconds]
agentmeerkat has joined #ruby
ledestin has quit [Ping timeout: 240 seconds]
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ta__ has joined #ruby
polysics has quit [Ping timeout: 260 seconds]
Rixius has quit [Ping timeout: 276 seconds]
kareeoleez has joined #ruby
Rixius has joined #ruby
gix has quit [Ping timeout: 276 seconds]
ta__ has quit [Ping timeout: 250 seconds]
rkazak has joined #ruby
kareeoleez has quit [Ping timeout: 276 seconds]
gix has joined #ruby
nanoz has joined #ruby
zacstewart has joined #ruby
R3DH4 has joined #ruby
duncannz has joined #ruby
jaguarmagenta has joined #ruby
tristanp has joined #ruby
FailBit has left #ruby ["WeeChat 0.4.2"]
lkba has joined #ruby
tristanp has quit [Remote host closed the connection]
w1lson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kareeoleez has joined #ruby
jaguarmagenta has quit [Ping timeout: 250 seconds]
mlakewood has quit [Quit: mlakewood]
LoneHerm_ has quit [Remote host closed the connection]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest81548
diego1 is now known as diegoviola
william3 has joined #ruby
w1lson has joined #ruby
w1lson has quit [Client Quit]
kareeoleez has quit [Ping timeout: 276 seconds]
Guest81548 has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
darkxploit has joined #ruby
baweaver has joined #ruby
stardiviner has quit [Ping timeout: 260 seconds]
william3 has quit [Ping timeout: 260 seconds]
skweek has quit [Ping timeout: 246 seconds]
duncannz has quit [Remote host closed the connection]
kareeoleez has joined #ruby
lxsameer has joined #ruby
moeabdol has quit [Ping timeout: 268 seconds]
rkazak has quit [Quit: Sleep.....ing....]
baweaver has quit [Ping timeout: 250 seconds]
kareeoleez has quit [Ping timeout: 252 seconds]
Dimik1 has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
Alina-ma- has joined #ruby
Amnez777- has joined #ruby
Cohedrin_ has joined #ruby
agentmeerkat has quit [Ping timeout: 250 seconds]
Cohedrin has quit [Ping timeout: 250 seconds]
Amnez777 has quit [Ping timeout: 260 seconds]
Alina-malina has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 252 seconds]
Dimik1 has joined #ruby
Alina-malina has joined #ruby
stardiviner has joined #ruby
smathy_afk is now known as smathy
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wald0 has quit [Quit: Lost terminal]
Alina-ma- has quit [Ping timeout: 240 seconds]
Amnez777 has joined #ruby
Amnez777- has quit [Ping timeout: 276 seconds]
kareeoleez has joined #ruby
bkxd has joined #ruby
<pragmatism> If I want to kick off another process (a system command to execute a bash script), how would I do that so it doesn't block the main thread in the MRI?
<pragmatism> System and `` both block.
<pragmatism> I know the reactor pattern is one option here, but I don't want to have to refactor my small application.
<pragmatism> Kernal::fork?
<droptone> arahael, Ox0dea: I finished executing an instance of my application with ruby-prof monitoring it.
<droptone> This output though, I'm not sure how useful this is.
<droptone> I'm going to gist this output.
hxegon has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
moeabdol has joined #ruby
<droptone> Theree's the ruby-prof output.
<droptone> How can I see from this output why my app hogs the CPU while executing?
polysics has joined #ruby
elifoster has joined #ruby
tildes_ has joined #ruby
polysics has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
w1lson has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
ruby-lang015 has joined #ruby
kareeoleez has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
zacstewart has quit [Ping timeout: 268 seconds]
The_Phoenix has joined #ruby
nanoz has quit [Quit: <3]
kareeoleez has quit [Ping timeout: 276 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
Fezzler has joined #ruby
hk238 has joined #ruby
RegulationD has joined #ruby
naftilos76 has joined #ruby
kareeoleez has joined #ruby
Cohedrin has joined #ruby
arescorpio has quit [Quit: Leaving.]
CloCkWeRX has joined #ruby
ruby-lang210 has joined #ruby
SilverKey has joined #ruby
sillytime is now known as serioustime
<ruby-lang210> Novice ruby programmwrote here
RegulationD has quit [Ping timeout: 260 seconds]
<ruby-lang210> Anyone want to collab?
Cohedrin_ has quit [Ping timeout: 276 seconds]
kareeoleez has quit [Ping timeout: 276 seconds]
lkba has quit [Ping timeout: 276 seconds]
<ruby-lang210> Hello
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
crameth has joined #ruby
crameth has quit [Max SendQ exceeded]
kareeoleez has joined #ruby
crameth has joined #ruby
crameth has quit [Remote host closed the connection]
ruby-lang210 has quit [Ping timeout: 250 seconds]
william3 has joined #ruby
tristanp has joined #ruby
kareeoleez has quit [Ping timeout: 252 seconds]
william3 has quit [Ping timeout: 244 seconds]
fedexo has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
kareeoleez has joined #ruby
rbennacer has quit [Remote host closed the connection]
PedramT has joined #ruby
greister has quit [Ping timeout: 246 seconds]
solocshaw has joined #ruby
kareeoleez has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
tristanp has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
_blizzy_ has joined #ruby
cdg has quit [Ping timeout: 268 seconds]
moeabdol has quit [Ping timeout: 268 seconds]
<ruby-lang015> I’m currently getting more experience with Ruby threads, but something doesn’t make sense
_blizzy_ is now known as Guest26371
<ruby-lang015> When Jim run this script, https://www.youtube.com/watch?v=fK-N_VxdW7g&t=12m3s, he gets a race condition, and the output is usually about half of the 1_000_000 ‘expected' outcome. When I run it, it works fine
PedramT has quit [Ping timeout: 276 seconds]
rbennacer has quit [Ping timeout: 268 seconds]
Guest26371 has quit [Client Quit]
_blizzy_ has joined #ruby
_blizzy_ has left #ruby [#ruby]
diegoaguilar has quit [Ping timeout: 252 seconds]
ruby999 has joined #ruby
moeabdol has joined #ruby
<ruby999> anyone want to talk about Ruby threads? Confused about something. Halp
`tim` has joined #ruby
tax has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
moeabdol has quit [Ping timeout: 244 seconds]
kareeoleez has joined #ruby
`tim` is now known as justbleed
solocshaw has quit [Ping timeout: 250 seconds]
tubuliferous has quit [Ping timeout: 250 seconds]
kareeoleez has quit [Ping timeout: 260 seconds]
Musashi007 has joined #ruby
elaptics`away is now known as elaptics
Musashi007 has quit [Client Quit]
tristanp has joined #ruby
Mia has quit [Ping timeout: 252 seconds]
polysics has joined #ruby
Moosashi has joined #ruby
nhhc has joined #ruby
tristanp has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
polysics has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
greister has joined #ruby
zast has quit [Remote host closed the connection]
tristanp has joined #ruby
ta_ has joined #ruby
tristanp has quit [Remote host closed the connection]
Aviio_ has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 252 seconds]
Aviio has quit [Ping timeout: 252 seconds]
PedramT has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
kareeoleez has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
ruby-lang015 has quit [Ping timeout: 250 seconds]
nanoz has joined #ruby
ruby999 has quit [Ping timeout: 250 seconds]
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 268 seconds]
kareeoleez has quit [Ping timeout: 246 seconds]
terminalrecluse has joined #ruby
<arahael> droptone: can't help now, but notice that you have a crazy number of calls to activerecord things.
sarbs has quit [Read error: Connection reset by peer]
<arahael> droptone: so that's where i would focus.
jaguarmagenta has joined #ruby
chipotle has quit [Quit: cheerio]
ramfjord has joined #ruby
terminalrecluse has quit [Max SendQ exceeded]
terminalrecluse has joined #ruby
Moosashi has quit [Quit: Moosashi]
Fezzler has quit [Quit: Leaving]
tildes has quit [Remote host closed the connection]
<droptone> arahael: thank you. Yes, the active record calls are necessary to compare the objects returned form the API to the objects stored on file.
<arahael> droptone: the REXML could be expensive too. so focus on the architecture surrounding the activerecord and REXML stuff. sorry can't help further but you now know exactly what code is taking a while.
tildes_ has quit [Remote host closed the connection]
<droptone> Would it improve exeuction time to make one big query to load all DB records instead of querying them one at a time as needed?
tildes has joined #ruby
jaguarmagenta has quit [Ping timeout: 268 seconds]
<arahael> droptone: maybe consider hashing the activerecord objects or convert them to a chea[er object esrlier? also consider optimising activerecord as well.
<droptone> hmm
<droptone> what od you mean hasing the activerecord objects?
Moosashi has joined #ruby
<droptone> So here's the basic gist of how my application works.
<droptone> A) It begins by loading thousands of objects from a remote API
<droptone> B) It then compares the last_updated value of these objects to the last_updated value of the object on file, which is stored in an RDS MySQL DB
Moosashi has quit [Client Quit]
<arahael> droptone: as some ORM layers will only load each property on demand. consider loading the whole object at once in the same sql.
rippa has joined #ruby
<droptone> C) if the last_updated doesn't match, it assumes an update has occurred and it pushes the object to another API provider, thus pushing the updated information
<droptone> ok
<droptone> So you think it would be less expensive to simply make one large query to load all objects on file and stick them in a hash
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
`tim` has joined #ruby
<droptone> ok, now what do you mean regarding the REXML piece?
<arahael> droptone: maybe. i dont know active record but i would definitely investigate that area.
`tim` is now known as justbleed
william3 has joined #ruby
<arahael> droptone: REXML stood out a little in the profile output. probably a distraction.
moeabdol has joined #ruby
moeabdol has quit [Client Quit]
<pragmatism> Anyone looking for the answer to my question: exec() or fork would have worked.
kareeoleez has joined #ruby
<arahael> droptone: activerecord is the mian thing to investigate. also consider what stafes you can pipeline for concurrent processing.
LoneHerm_ has joined #ruby
baweaver has joined #ruby
<arahael> droptone: anyway, i'm out. good luck ;)
Es0teric has joined #ruby
<arahael> *stages (not stafes...)
moeabdol has joined #ruby
<droptone> arahael: thanks for the help
william3 has quit [Ping timeout: 244 seconds]
<arahael> droptone: last thing: whenn you do make changes, run the profiler again so you can be certain of the improvement.
The_Phoenix has joined #ruby
<droptone> ok
yfeldblum has joined #ruby
kareeoleez has quit [Ping timeout: 276 seconds]
<droptone> arahael: One last question if your'e still here or when you get back, 15% of my %self is .to_i, I do liberally use .to_i to ensure values are integers for comparison purposes
baweaver has quit [Ping timeout: 276 seconds]
<droptone> should I comb througha nd eliminate those unless absolutely needed, or is to_i ignored when Ruby detects an integer
Alina-malina has quit [Ping timeout: 250 seconds]
<arahael> droptone: that i don't know. i usually ignore built'ins unless i'm optimising a specific method.
Amnez777 has quit [Ping timeout: 276 seconds]
<droptone> ok
rkazak has joined #ruby
yfeldblum has quit [Remote host closed the connection]
kareeoleez has joined #ruby
bronson has joined #ruby
rkazak has quit [Ping timeout: 240 seconds]
kareeoleez has quit [Ping timeout: 240 seconds]
The_Phoenix has quit [Ping timeout: 250 seconds]
bronson has quit [Ping timeout: 252 seconds]
nando293921 has quit [Ping timeout: 250 seconds]
<shevy> droptone I think we can find out from the C source
sandelius has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
rkazak has joined #ruby
The_Phoenix has joined #ruby
kareeoleez has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
The_Phoenix has quit [Changing host]
The_Phoenix has joined #ruby
<shevy> ok so the various .to_* methods seem to be specific to the class at hand... e. g. Float#to_i is different than String#to_i including the implementation
tristanp has joined #ruby
<shevy> String#to_i delegates towards b_str_to_inum
baweaver has joined #ruby
skade has joined #ruby
<shevy> I guess it always tries to convert without further check
<nofxx> shevy, clever
<shevy> let me see for Integer#to_i actually
Ebok has quit [Quit: This computer has gone to sleep]
<shevy> oh
<shevy> lol
<nofxx> problably returns self?
<shevy> lol yeah sorta
<shevy> static VALUE int_to_i(VALUE num) { return num; }
<shevy> ok so that is by far the simplest implementation :)
kareeoleez has quit [Ping timeout: 260 seconds]
<shevy> String#to_i seems to be the biggest
The_Phoenix has quit [Ping timeout: 246 seconds]
mitt3ns has joined #ruby
<arahael> droptone: in that case, i might suggest checking the callers of to_i, some profilers can do this, not sure about ruby though.
agent_white has quit [Disconnected by services]
mitt3ns is now known as agent_white
<droptone> ok
dc2 has joined #ruby
vdamewood has joined #ruby
justbleed has quit [Ping timeout: 260 seconds]
Amnez777 has joined #ruby
Alina-malina has joined #ruby
polysics has joined #ruby
pawnbox_ has joined #ruby
CloCkWeRX has left #ruby [#ruby]
duncannz has joined #ruby
xingped has quit [Ping timeout: 276 seconds]
w1lson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polysics has quit [Ping timeout: 240 seconds]
kareeoleez has joined #ruby
w1lson has joined #ruby
navneet has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
ta_ has joined #ruby
kareeoleez has quit [Ping timeout: 240 seconds]
duncannz has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 250 seconds]
pawnbox_ has quit [Remote host closed the connection]
PedramT has quit [Ping timeout: 244 seconds]
PedramT has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
<shevy> is anyone familiar with python decorators? would they fit into ruby?
PedramT has quit [Remote host closed the connection]
Xeago has joined #ruby
PedramT has joined #ruby
kareeoleez has joined #ruby
InexpensiveCompu is now known as whyamievenhere
yardenbar has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
Xeago has quit [Ping timeout: 246 seconds]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
w1lson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has joined #ruby
william3 has joined #ruby
PedramT has quit [Ping timeout: 250 seconds]
toretore has joined #ruby
chouhoulis has quit [Remote host closed the connection]
william3 has quit [Ping timeout: 260 seconds]
noService has joined #ruby
opentux has joined #ruby
rbennacer has joined #ruby
Spami has joined #ruby
noService has quit [Ping timeout: 240 seconds]
ssiris has quit [Quit: End of Line]
rbennacer has quit [Ping timeout: 244 seconds]
jaguarmagenta has joined #ruby
foobartest has joined #ruby
<opentux> .
Moosashi has joined #ruby
The_Phoenix has joined #ruby
foobartest has quit [Remote host closed the connection]
foobartest has joined #ruby
<opentux> .
<arahael> shevy: I'm not sure. I doubt it.
<arahael> shevy: What are you wanting them for?
Spami has quit [Quit: This computer has gone to sleep]
foobartest has quit [Remote host closed the connection]
djbkd has quit [Quit: Leaving...]
foobartest has joined #ruby
<Zarthus> with `extend`/`include` and 'static' methods (for lack of knowing the proper term) I'm pretty sure you've already got decorators in ruby
foobartest has quit [Remote host closed the connection]
<arahael> Zarthus: It depends on what he wants them for. Decorators in python are quite differnet to a mixin.
pawnbox has quit [Remote host closed the connection]
<arahael> Zarthus: Essentially, a decorator is a function that takes a function and returns a function. If applied to a method on the class, it does the same thing *before* the method is bound to the class.
<arahael> That said, ruby has other approaches - and for the user, they do sometimes look 'python decorator like'. Eg, Rake's desc methods.
<Zarthus> I'm not sure how that differs from ruby mixins, it seems totally possible to program something similar to that (albeit a little bit more difficult, but there's the possibility of gemming that)
<shevy> arahael not sure, I don't really know how they work but I read that python users praise them
<arahael> shevy: They're sometimes elegant for certain python patterns.
<Zarthus> the problem I've often found with decorators/annotations is that people start making them for everything, and you end up having 1-5 decorators per methos
<Zarthus> method*
Moosashi has quit [Quit: Moosashi]
<arahael> Zarthus: Indeed.
<arahael> Zarthus: Except, in python, they're not an annotation, though they can be used as such.
polysics has joined #ruby
<arahael> My favorite python decorator is probably mock.patch.
<arahael> Which patches the runtime for the duration of the call. Used heavily in unit tests.
<Zarthus> they definitely do have their uses
bkxd has joined #ruby
TheHodge has joined #ruby
<arahael> Anyway.
<arahael> shevy: In python, before we had decorator syntax, the old way was to do it manually.
<arahael> shevy: ie, def foo(): ...; followed by foo = thedecorator(foo)
jaguarma_ has joined #ruby
lxsameer has quit [Quit: WeeChat 1.4]
polysics has quit [Ping timeout: 260 seconds]
BTRE has quit [Read error: Connection reset by peer]
jaguarmagenta has quit [Ping timeout: 244 seconds]
BTRE has joined #ruby
vdamewood has quit [Quit: Life beckons.]
bkxd has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
arup_r has joined #ruby
<arup_r> Ox0dea: Hi..
mrmortondk has quit [Quit: Textual IRC Client: www.textualapp.com]
<arup_r> actually splitting the line on 1 space .. is breaking :( because there is some rows which are separated on single space also.. https://gist.github.com/aruprakshit/2fff4f0643f5a6fc4b524084ba5e32b3#file-input-txt-L110
<arup_r> as I can't split the line on space, what should be the other ways to get those data from each row..
ta_ has quit [Ping timeout: 250 seconds]
rkazak has quit [Quit: Sleep.....ing....]
<baweaver> what's the context there?
<arahael> arup_r: Is line 110 supposed to be significant there?
<baweaver> it's the one space line that breaks something in there
<toretore> lolunix
<arup_r> baweaver: I am trying to fetch username, IP and login time from each row
<arahael> baweaver: Where's that one-space?
<baweaver> on line 110
<baweaver> he has a regex below that matches 2+ spaces
<baweaver> but that's below a ways
<arahael> Well, line 110 ends with _four_ spaces.
pawnbox has joined #ruby
<baweaver> one of the columns doesn't though
<arahael> Well, there's indeed only one space between "Mon" and "Apr", and a few other columns in it.
<arahael> But I'm at loss to see how it differs from say, line 109.
<arup_r> arahael: I thought each column is 2 space, and splited the lines. But line# 110 is not because IP and login timehas 1 space between them
<arahael> arup_r: Weird, for me it shows as two spaces there.
<arup_r> :(
tax has quit [Ping timeout: 250 seconds]
<arup_r> and gist also screwed my code indentation.. but that's ok for now.
<baweaver> mixing tabs and spaces does that
<arup_r> point is I can't split it one space, then all data will be broken.. so what is the next idea.. if any..
Dimik1 has quit [Ping timeout: 260 seconds]
<arahael> arup_r: Perhaps a more flexible regexp, then. Perhaps split on any space?
pawnbox has quit [Ping timeout: 260 seconds]
terminalrecluse has joined #ruby
Devalo has joined #ruby
terminalrecluse has quit [Client Quit]
p0p0pr37_ has joined #ruby
<toretore> arup_r: what is the information you want to get at in this output?
<arup_r> toretore: added the expected output from the code https://gist.github.com/aruprakshit/2fff4f0643f5a6fc4b524084ba5e32b3
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
p0p0pr37 has quit [Ping timeout: 252 seconds]
p0p0pr37_ is now known as p0p0pr37
william3 has joined #ruby
ledestin has joined #ruby
Emmanuel_Chanel_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 252 seconds]
<Ox0dea> arup_r: I don't know why Apple hates users, but here's the problem: https://github.com/unofficial-opensource-apple/adv_cmds/blob/master/last/last.c#L172
<arup_r> I am running code in EC2 server. Not in appple. Apple don't support many options with `last`
<Ox0dea> They used two spaces as the initial delimiter just as some sort of tease, apparently.
<Ox0dea> Oh, right.
william3 has quit [Ping timeout: 260 seconds]
Jackneill has joined #ruby
<arup_r> I am testing code in EC2 ,, I have no other chioce
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
Tempesta_ has joined #ruby
<arup_r> I can see controlled output by running, `last -i | column -c 5` ... but no idea if it can break the code still in future
antgel has joined #ruby
<toretore> Ox0dea: it's as impossible to parse on my arch
<Ox0dea> toretore: Yeah, doesn't look promising. :/
dgncn has quit [Excess Flood]
<Ox0dea> Clever people do really stupid shit sometimes.
<toretore> it's meant for human consumption, not for machines
<toretore> like most unix commands, unfortunately :(
<Ox0dea> ¿Por que no las dos?
Pupeno has quit [Remote host closed the connection]
Tempesta has quit [Ping timeout: 252 seconds]
<Ox0dea> *los
firstdayonthejob has joined #ruby
<toretore> "yeah just pipe things together, that's the beauty of unix!"
<arahael> Arguably. On the plus side, the source data is pretty well documented.
dgncn has joined #ruby
<toretore> but even that has many variants
<Ox0dea> I suspect arup_r doesn't feel like writing a utmp parser.
duderonomy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
intro_coder has joined #ruby
<arup_r> Ox0dea: what is that? :)
<arahael> Ox0dea: I'd do it in C, really. But I just noticed that /var/log/wtmp doesn't exist on mac os x.
nanoz has quit [Quit: <3]
<toretore> there's a perl version here that might help: http://www.hcidata.info/wtmp.htm
<arahael> Not since 10.5
bronson has joined #ruby
<Ox0dea> arup_r: The system that feeds `last`, give or take.
<arup_r> :(
<arahael> See 'man utmpx'
ur5us has quit [Remote host closed the connection]
elifoster has quit [Ping timeout: 244 seconds]
jaguarmagenta has joined #ruby
duderonomy has joined #ruby
Dimik has quit [Ping timeout: 250 seconds]
the_drow has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
<baweaver> arup_r: Ox0dea: I made something fun
<baweaver> (?<name>.+) +(?<term>[\w\/\d]+) +(?<ip>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) +(?<login_date_time>(?<login_day>[A-Z][a-z]{2}) (?<login_month>[A-Z][a-z]{2}) +\d+ +(?<login_time>\d{2}:\d{2})( +- +(?<login_end_time>\d{2}:\d{2}) +\((?<login_duration>\d{2}:\d{2})\))?)
<arup_r> :D
<Ox0dea> Saints preserve us.
jaguarma_ has quit [Ping timeout: 246 seconds]
Aviio_ has quit [Remote host closed the connection]
<baweaver> put that in rubular with the data above
<arahael> I hope that is only used in english locales.
<baweaver> If it's not you'd need to rewrite it anyways.
Moosashi has joined #ruby
Pupeno has joined #ruby
<toretore> baweaver: <term> is sometimes "system boot" on my machine :)
<baweaver> ssssshhhhhh
<baweaver> don't ruin the magic
yeticry has quit [Read error: Connection reset by peer]
<baweaver> anyways, could be fixed to compensate for that
jaguarmagenta has quit [Remote host closed the connection]
<toretore> and the last part is sometimes replaced with "down" or "still logged in" or other random things, sometimes separated with a - and other times not :P
<baweaver> main point is that extracts the data
<baweaver> more comprehensive input equals more confounded and complicated regex to match
Chagel has joined #ruby
<arahael> baweaver: On my system, this is one of my lines:
<arahael> arahael pts/0 ip-30-71-192-203 Fri Apr 8 15:08 - 17:58 (1+02:50)
<toretore> sometimes login_duration is (1+14:48)
<arahael> toretore: That. :)
<toretore> right, that ^
<baweaver> you're missing the point
<arahael> Also:
<arahael> reboot system boot 3.16.0-4-amd64 Mon Apr 4 11:50 - 17:46 (20+05:56)
<baweaver> you can find edge cases anywhere on it
<Ox0dea> arahael: Here's a silly implementation of decorators in Ruby from a while back: https://eval.in/558675
<arahael> baweaver: As they say: "You now have two problems"
<baweaver> the point is even at that you'd end up rewriting the program for other architectures
<toretore> baweaver: i'm just taking the opportunity to rant about shitty unix tools
<baweaver> arahael: you'd have two problems either way
<arahael> baweaver: No, because I'd be using the documented source data file.
<baweaver> even if you completely forego regex you'd have to append your tokenizer logic to compensate for the same issues
<arahael> baweaver: Nope. import <utmpx.h>, and deal with it. Yeah, I'd do it in C (or C++), not Ruby.
<baweaver> now if last were sane and did a \t delim...
antgel has quit [Ping timeout: 252 seconds]
<baweaver> I don't think in C/C++/Sys Libs
Lomex has joined #ruby
p0p0pr37 has quit [Ping timeout: 244 seconds]
<baweaver> primarily because I don't have a need to know them.
<arahael> It's helpful to know them.
<baweaver> It's helpful to know a lot of things
<arahael> True, that.
tomphp has joined #ruby
<baweaver> but time is not a forgiving thing, and some helpful things are more immediately relevant
<baweaver> in my case I'm typically doing Javascript/Ruby/Scala/Spark
p0p0pr37 has joined #ruby
fedexo has quit [Ping timeout: 276 seconds]
tomphp has quit [Client Quit]
<intro_coder> hello everyone...is anyone able to help me to identify errors in my code? it's about sinatra and active record..
<baweaver> So learning syscalls and libs isn't high on my practicality wishlist. Not disregarding potential usefulness, just saying that they're not quite my thing.
<baweaver> !gist
<baweaver> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<baweaver> post your code up there
<baweaver> naturally though if I end up that low level and find these things I'll learn it, but that's not in the immediate future.
<baweaver> hence the regex/tokenization.
intro_coder has quit [Quit: Page closed]
<arahael> baweaver: In thiat case, I'd probably split it on arbitrary sapce.
<arahael> baweaver: And join the second and third columns together until you have the expected number of columns.
<baweaver> opentux: rubular.com
<baweaver> lets you see it as you build it
<opentux> It returns me a true value only when the params or payload as one or more space
<baweaver> arahael: fair.
<opentux> baweaver, i've already tried. & It worked on rubular
Aviio has joined #ruby
<opentux> but it doesn't work on my laptop...
<opentux> I solved the problem thanks
<arahael> Anyway...
marr has joined #ruby
torandu_ has quit [Ping timeout: 240 seconds]
<arahael> toretore: How would you do something like that for non-unix machines?
<Ox0dea> >> 'is it weird how saying sentences backwards creates backwards sentences saying how weird it is'.split.reverse * ' '
<ruby[bot]> Ox0dea: # => "is it weird how saying sentences backwards creates backwards sentences saying how weird it is" (https://eval.in/558676)
<arahael> And by which, we mean: Windows, presumably.
Aviio has quit [Remote host closed the connection]
* baweaver tries to think of other non-unix machines that aren't windows
Mia has joined #ruby
<arahael> baweaver: Well, there's Android. And iOS (I think)
Mia has quit [Changing host]
Mia has joined #ruby
<baweaver> well, unless you want the fun differences between GNU, POSIX, and other implementations.
tomphp has joined #ruby
<Ox0dea> Android isn't Unix?
<baweaver> Pretty sure it is
<arahael> Ox0dea: Indeed.
<Zarthus> huh
<Ox0dea> arahael: Are you sure?
polysics has joined #ruby
torandu has joined #ruby
<baweaver> What's it running on?
<arahael> No, Android runs Linux, which is a kernel, and is not Unix.
<Zarthus> >> 'some stuff'.split * ' '
<baweaver> point is they're derivatives.
<Zarthus> :<
<Zarthus> is that just a lazy syntax for #join?
<baweaver> Zarthus: have to be authenticated.
A124 has quit [Ping timeout: 250 seconds]
<Zarthus> I am.
<baweaver> also, don't do that in actual code
Axy has joined #ruby
<baweaver> I'd guess iOS is based on BSD in some form
<baweaver> but not sure.
<arahael> baweaver: It's probably based on Darwin in some way.
<baweaver> let's preface that with non-unix-like
<toretore> arahael: no idea, i'm just saying that the output is shitty, which is also true for most othe unix commands. yet people go on about the "unix philosophy" and how you can pipe things together
<Ox0dea> Plan 9.
<Zarthus> baweaver: don't do that in case your type is not what you expect, i presume?
<toretore> most unix systems are held together with the programming equivalent of duct tape
<baweaver> it's obscure
mikecmpbll has joined #ruby
<arahael> baweaver: However, unless they've changed it in recent years, you couldn't even fork() or do true concurrency.
<Zarthus> yeah I imagined that was the reason
<Ox0dea> Zarthus: Except you caught on almost immediately.
<arahael> toretore: True enough, on both points.
<baweaver> best not to have to explain things to some people
<baweaver> and ignore Ox0dea being evil :P
<Ox0dea> I'm being earnest just now.
<Ox0dea> I think String#* is fine. :<
<baweaver> yeah, evil
<Ox0dea> I like the part where I meant Array#*.
<Ox0dea> Zarthus: Ignore me.
<Zarthus> hehehe
<baweaver> joking in any case
opentux has quit [Quit: Leaving.]
A124 has joined #ruby
<Zarthus> I like using Ox0dea's examples as a method to avoid bad code
<Zarthus> the problem is the moment he drops a piece of useful code I will identify it as trickery of some sort!
Mia has quit [Ping timeout: 252 seconds]
<baweaver> Just remember, he's been known to drop gems like this:
polysics has quit [Ping timeout: 250 seconds]
<baweaver> >> $_=$$/$$;@_=->_{_==''?_:[*?`..?{]['. !#% & , :;<= >@_ `'=~/#{_[$.]}/]+@_[_[$_..-$_]]};_=->&_{_}[&:"#{@_['@%<#']}"];_[_[_[_['',@_['!: @@']],@_[' <!%@_=>@']][-$_-$_],@_['!=<@_']+?_+@_['&%_'],(''<<(_=$_+$_)**_**(_+$_)/(_+$_)-$_)+@_[',;%']],@_['<%`']]
<ruby[bot]> baweaver: # => 2016-04-24 08:39:36 +0000 (https://eval.in/558678)
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Zarthus> i hope you got that from your internet history and not your memort
<Zarthus> memory*
<baweaver> wasn't from history
Chunlea has quit [Ping timeout: 260 seconds]
<Zarthus> so long as it is not implying the latter, I am okay with that.
<baweaver> try figuring out how that works
<Zarthus> Oh, I do
<baweaver> plenty of little tricks in there
yfeldblum has joined #ruby
<Zarthus> it's called voodoo
<baweaver> https://gist.github.com/baweaver/ecc68d8588f906b4df54 - here's the cheat sheet.
<Zarthus> the thing that frightens me the most is that I'm seeing backticks in there
ta_ has joined #ruby
Moosashi has quit [Quit: Moosashi]
<Zarthus> making me assume it's also using shell for some part
<Ox0dea> Not at all.
<baweaver> it's not
tomphp has joined #ruby
<baweaver> that part is a non-alphanumeric to character translation set iirc
<Zarthus> feels like reading assembly
<Ox0dea> Not at all.
<baweaver> >> ?a
<ruby[bot]> baweaver: # => "a" (https://eval.in/558680)
Chunlea has joined #ruby
<Ox0dea> It's more like reading the lambda calculus.
<Ox0dea> But... harder?
<Ox0dea> Noisier, certainly.
<baweaver> rambda
<baweaver> like lambda but nastier with horns
<Ox0dea> I love it.
tomphp has quit [Client Quit]
navneet has quit [Ping timeout: 276 seconds]
<baweaver> Ox0dea: wanna know my new team name?
<Ox0dea> baweaver: Is it another fantastic acronym?
<baweaver> LAMBDA
<Zarthus> baweaver: Did you write that gist yourself?
<baweaver> Logging and Monitoring Based Data Analytics
<Zarthus> Do you have the time spent on deciphering that?
Tempesta_ is now known as Tempesta
<Ox0dea> baweaver: I like.
<baweaver> Zarthus: as opposed to wishing it translated
<baweaver> Zarthus: or hitting Ox0dea with a wet noodle until he does it for me?
RegulationD has joined #ruby
<Ox0dea> Zarthus: It took him, like, five minutes, as I recall.
<Zarthus> I'm just gauging how crazy the people in #ruby are
<Ox0dea> He got rather good at it and seems to have maintained most of his sanity.
<baweaver> Ox0dea: you assume I had any to start with
<Ox0dea> baweaver: My mistake.
<Zarthus> anyways, thanks guys. My food just got cold because this conversation was interesting and I didn't eat it fast enough
ta_ has quit [Ping timeout: 250 seconds]
<Ox0dea> Zarthus: It's just an esoteric form of puzzle, really; since when are games the exclusive domain of crazies?
<baweaver> My magic missile begs to differ.
tomphp has joined #ruby
Nahra has joined #ruby
* Ox0dea refrains from misinterpreting.
RegulationD has quit [Ping timeout: 252 seconds]
<baweaver> roll for initiative
LoneHerm_ has quit [Remote host closed the connection]
<baweaver> >> random(20)
<ruby[bot]> baweaver: # => undefined method `random' for main:Object ...check link for more (https://eval.in/558681)
<baweaver> >> rand(20)
<ruby[bot]> baweaver: # => 17 (https://eval.in/558682)
Trynemjoel has quit [Quit: Quitting]
Tempesta has quit [Quit: See ya!]
Trynemjoel has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
aydintd has quit [Ping timeout: 250 seconds]
tessi has joined #ruby
bkxd has joined #ruby
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
william3 has joined #ruby
william3 has quit [Remote host closed the connection]
Tempesta has joined #ruby
william3 has joined #ruby
Emmanuel_Chanel_ has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
moeabdol has joined #ruby
noService has joined #ruby
arup_r has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> hmm
lxsameer has joined #ruby
lxsameer has joined #ruby
dgncn has quit [Excess Flood]
dgncn has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
noService has quit [Ping timeout: 260 seconds]
isxek has joined #ruby
siaw has joined #ruby
bkxd has joined #ruby
zacstewart has joined #ruby
bronson has joined #ruby
cpup has quit [Ping timeout: 244 seconds]
cpup has joined #ruby
william3 has quit [Remote host closed the connection]
crameth has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
LoneHerm_ has joined #ruby
Lomex has quit [Remote host closed the connection]
LoneHerm_ has quit [Ping timeout: 252 seconds]
doublemalt__ has joined #ruby
ghoti has quit [Remote host closed the connection]
doublemalt_ has quit [Ping timeout: 252 seconds]
william3 has joined #ruby
symm- has joined #ruby
Lomex has joined #ruby
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
Chagel has quit [Ping timeout: 252 seconds]
polysics has joined #ruby
Emmanuel_Chanel has joined #ruby
lkba has joined #ruby
mdw has joined #ruby
polysics has quit [Ping timeout: 276 seconds]
<shevy> Zarthus pizza!
bkxd has quit [Ping timeout: 244 seconds]
<Zarthus> shevy: as in the toppings?
charliesome has joined #ruby
bkxd has joined #ruby
ta_ has joined #ruby
tomphp has joined #ruby
blt has joined #ruby
Devalo has quit [Remote host closed the connection]
<shevy> food that gets cold!
Emmanuel_Chanel has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
Lomex has quit [Remote host closed the connection]
hk238 has joined #ruby
<shevy> cool... one slice of that is as big as a regular pizza here
Weavel has joined #ruby
valetudo has quit [Ping timeout: 246 seconds]
anisha_ has joined #ruby
<apeiros> dat facial expression
<shevy> like looking at old code
<apeiros> almost. like looking at old code you have to modify for some reason
lkba has quit [Ping timeout: 268 seconds]
<Ox0dea> She's performing the doctor-recommended procedure for keeping one's head from asploding.
yfeldblum has quit [Ping timeout: 276 seconds]
nofxx has quit [Ping timeout: 268 seconds]
karapetyan has quit [Remote host closed the connection]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
karapetyan has joined #ruby
mitt3ns has joined #ruby
agent_white has quit [Disconnected by services]
mitt3ns is now known as agent_white
davee_ has quit [Quit: Leaving]
moeabdol has quit [Ping timeout: 268 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
SCHAAP137 has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slackbotgz has joined #ruby
cpup has quit [Ping timeout: 250 seconds]
moeabdol has joined #ruby
karapetyan has quit [Remote host closed the connection]
rgtk has joined #ruby
cpup has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
anisha_ has quit [Quit: This computer has gone to sleep]
gigetoo has quit [Ping timeout: 260 seconds]
moeabdol has quit [Ping timeout: 244 seconds]
sandelius has joined #ruby
Spami has joined #ruby
PedramT has joined #ruby
agent_white has quit [Quit: brb]
blackgoat has joined #ruby
william3 has quit [Remote host closed the connection]
Lomex has joined #ruby
ur5us has joined #ruby
PedramT has quit [Ping timeout: 260 seconds]
Yeomra has quit [Quit: WeeChat 1.4]
william3 has joined #ruby
ta_ has joined #ruby
noway_ has joined #ruby
<kareeoleez> has anyone been working with puma and capistrano ?
Spami has quit [Quit: This computer has gone to sleep]
<kareeoleez> I just deployed my project and I can't start puma or rails server
<kareeoleez> rails server returns help and puma says a log path does not exist
blaxter has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
Chagel has joined #ruby
RegulationD has joined #ruby
Devalo has joined #ruby
baweaver has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
moeabdol has joined #ruby
mikecmpbll has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
RegulationD has quit [Ping timeout: 244 seconds]
Devalo has quit [Ping timeout: 250 seconds]
slackbotgz has quit [Remote host closed the connection]
kam270 has joined #ruby
karapetyan has joined #ruby
kam270 has quit [Read error: Connection reset by peer]
noway_ has quit [Quit: Leaving]
blt has quit [Quit: WeeChat 1.4]
mdw has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer has quit [Quit: Leaving]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
tomphp has joined #ruby
Emmanuel_Chanel has joined #ruby
karapetyan has quit [Remote host closed the connection]
SCHAAP137 has quit [Ping timeout: 268 seconds]
PedramT has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
tessi has quit [Quit: tessi]
PedramT_ has joined #ruby
PedramT has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 276 seconds]
Lomex has quit [Remote host closed the connection]
tessi has joined #ruby
SCHAAP137 has joined #ruby
ur5us has quit [Remote host closed the connection]
harry111 has joined #ruby
PedramT_ has quit [Remote host closed the connection]
PedramT has joined #ruby
william3 has quit [Remote host closed the connection]
<harry111> hi
harry111 has quit [Client Quit]
pawnbox has joined #ruby
naftilos76 has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 276 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
william3 has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
moeabdol has joined #ruby
PedramT has quit [Ping timeout: 240 seconds]
william3 has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
polysics has joined #ruby
william3 has joined #ruby
crameth has quit [Quit: crameth]
postmodern has quit [Quit: Leaving]
zacstewart has joined #ruby
polysics has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
baweaver has joined #ruby
zacstewart has quit [Ping timeout: 268 seconds]
ren has joined #ruby
ren has quit [Client Quit]
tlaxkit has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
yeticry has quit [Ping timeout: 244 seconds]
berserk_ren has joined #ruby
pawnbox has joined #ruby
karapetyan has quit [Remote host closed the connection]
yeticry has joined #ruby
crameth has joined #ruby
rahult has joined #ruby
berserk_ren has quit [Client Quit]
crime has joined #ruby
berserk_ren has joined #ruby
berserk_ren has quit [Client Quit]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandelius has joined #ruby
tomphp has joined #ruby
diegoaguilar has joined #ruby
spider-mario has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
LoganG has quit [Ping timeout: 250 seconds]
blackgoat has quit [Quit: WeeChat 1.4]
charliesome has joined #ruby
tk__ has joined #ruby
GodFather has joined #ruby
william3 has quit [Remote host closed the connection]
tildes has joined #ruby
bob434 has joined #ruby
polysics has joined #ruby
berserk_ren has joined #ruby
berserk_ren has quit [Client Quit]
erict has quit [Ping timeout: 250 seconds]
berserk_ren has joined #ruby
berserk_ren has quit [Client Quit]
berserk_ren has joined #ruby
bob434 has quit [Client Quit]
berserk_ren has quit [Client Quit]
GodFather has quit [Ping timeout: 260 seconds]
berserk_ren has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
william3 has joined #ruby
diegoaguilar has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome_ has joined #ruby
codecop has joined #ruby
stannard has joined #ruby
berserk_ren has quit [Quit: Leaving]
berserk_ren has joined #ruby
charliesome has quit [Ping timeout: 260 seconds]
berserk_ren has quit [Client Quit]
berserk_ren has joined #ruby
Qommand0r has quit [Quit: Exiting...]
crameth has quit [Quit: crameth]
IrishGringo has joined #ruby
charliesome has joined #ruby
crameth has joined #ruby
karapetyan has joined #ruby
charliesome_ has quit [Ping timeout: 252 seconds]
solocshaw has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
william3 has quit [Remote host closed the connection]
berserk_ren has quit [Quit: Arrrgh!]
charliesome_ has joined #ruby
charliesome has quit [Ping timeout: 250 seconds]
Snowy has joined #ruby
karapetyan has quit [Remote host closed the connection]
zacstewart has joined #ruby
RegulationD has joined #ruby
Devalo has joined #ruby
Kilobyte22 has quit [Quit: ZNC - 1.6.0 - http://znc.in]
zacstewart has quit [Ping timeout: 260 seconds]
weemsledeux has joined #ruby
Kilo`byte has joined #ruby
valetudo has joined #ruby
freerobby has joined #ruby
berserk_ren has joined #ruby
galuszkak has joined #ruby
<galuszkak> hi! I have a question about accessing variables in templates in Jekyll. how to have something like site[en].myvariable ?
RegulationD has quit [Ping timeout: 268 seconds]
dretnx has joined #ruby
berserk_ren has quit [Client Quit]
jhack has joined #ruby
Kilo`byte has quit [Client Quit]
berserk_ren has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
Kilo`byte has joined #ruby
kith has joined #ruby
stannard has quit [Remote host closed the connection]
Ebok has joined #ruby
<Fernando-Basso> galuszkak: Is site[en] already resolving to something?
tessi has quit [Quit: tessi]
tessi has joined #ruby
j3r0 has quit [Ping timeout: 268 seconds]
charliesome_ has quit [Ping timeout: 276 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
antgel has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
bob434 has joined #ruby
<Fernando-Basso> I set variables the front mater simply doing myvar: 'my val'.
skade has joined #ruby
<Fernando-Basso> and then I do something like {% if post.myvar == 'some val' %} ... {% endif %}
Tempesta has quit [Changing host]
Tempesta has joined #ruby
charliesome has joined #ruby
GodFather has joined #ruby
charliesome has quit [Client Quit]
shazaum_ has joined #ruby
edwinvdgraaf has joined #ruby
<galuszkak> Fernando-Basso: I probably make mistake. I meant site[site.lang].myvariable
<galuszkak> where site.lang is for example en
<galuszkak> it doesn't work for me and I'm not sure why (probably because my poor knowledge of jekyll and ruby
Gasher has joined #ruby
moeabdol has joined #ruby
araujo has quit [Ping timeout: 276 seconds]
Pupeno has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 276 seconds]
polysics_ has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
Pupeno has joined #ruby
polysics has quit [Ping timeout: 276 seconds]
nanoz has joined #ruby
sandelius has joined #ruby
<galuszkak> Fernando-Basso: sorry for bothering I solved it. I just overwrite this key with something else. Didn't pay attention. Apologise for wasting your time :)
<Fernando-Basso> I'm glad it worked.
nhhc has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 252 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Aviio has joined #ruby
Aviio has quit [Remote host closed the connection]
<Fernando-Basso> The initialize method does not show up in MyClass.methods(false) nor in MyClass.instance_methods(false). Why?
freerobby has quit [Quit: Leaving.]
cpup has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
Emmanuel_Chanel has quit [Remote host closed the connection]
cajone has quit [Remote host closed the connection]
cpup has joined #ruby
cajone has joined #ruby
kareeoleez has quit [Remote host closed the connection]
Devalo has joined #ruby
DEA7TH has joined #ruby
charliesome has joined #ruby
spider-mario has quit [Remote host closed the connection]
Abhijit has joined #ruby
<Abhijit> hi
DEA7TH has quit [Quit: DEA7TH]
spider-mario has joined #ruby
<Abhijit> i am trying to convert input text file array into variable array here https://gist.github.com/abhijitnavale/35b8c466d0bc562de15ae682c699bb97 but i get error syntax error, unexpected end-of-input, expecting keyword_end for line 12 and 15
shazaum_ has quit [Quit: Leaving]
<Fernando-Basso> You closed the `do` block and not the if block.
<Abhijit> if block is closed after "i++"
<Fernando-Basso> You forgot to close the `do` block then.
<Abhijit> :-)
dc3 has joined #ruby
darkf has quit [Quit: Leaving]
<Abhijit> there are two "end" one before i++ and one after. first ends do second ends if
<Fernando-Basso> That is one of the few things I dislike about ruby.
<Abhijit> what?
spider-mario has quit [Remote host closed the connection]
<Fernando-Basso> I strongly believe that endif; enddo; endfor would be more readable and less error prone.
<Abhijit> right.
spider-mario has joined #ruby
nanoz has quit [Quit: <3]
<Fernando-Basso> Anyway, I do believe you need another `end`.
<Abhijit> ok
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dc2 has quit [Ping timeout: 244 seconds]
william3 has joined #ruby
ferr has joined #ruby
<Fernando-Basso> Also, i++ is wrong.
<Fernando-Basso> You'll have to do i += 1
william3 has quit [Ping timeout: 260 seconds]
iMadper has quit [Remote host closed the connection]
<Abhijit> yeah
<Fernando-Basso> There are some other problems as well, but you'll fix them as you get those `end` working.
<Abhijit> Fernando-Basso, why its wrong and not just another way?
<Fernando-Basso> Ruby doesn't support the ++ or -- syntax.
charliesome has quit [Ping timeout: 240 seconds]
diegoaguilar has quit [Remote host closed the connection]
<Fernando-Basso> for incremeting and decrementing. Not for postfix operations neither for prefix operations.
<Fernando-Basso> ++i or i-- is invalid in ruby.
<Abhijit> ok
<apeiros> well, you can do ++i, it just won't increment.
<apeiros> >> i = ++5
<ruby[bot]> apeiros: # => 5 (https://eval.in/558718)
<apeiros> it's unary +/- in that case.
<Abhijit> hmm
<Abhijit> word = Array.new is it right for "Dynamic" multideminsional array?
charliesome has joined #ruby
baweaver has joined #ruby
<apeiros> Array.new will just create an empty array.
triangles has joined #ruby
crdpink has joined #ruby
<apeiros> if you don't pass any argument to Array.new, you should just use [] instead
<Abhijit> ok
baweaver has quit [Ping timeout: 250 seconds]
crdpink2 has quit [Ping timeout: 268 seconds]
bradleyprice has joined #ruby
Snowy has quit [Remote host closed the connection]
<hackeron> hi there, I'm trying to talk to a serial controller, the instructions say that byte 6 is the high byte checksum - s=(byte)SUM(2;5) CRC_H=0b1000_s7_s6_s5_s4 -- any ideas how to calculate this?
rbennacer has joined #ruby
Devalo has quit []
<apeiros> hackeron: whats SUM(2;5) supposed to do?
freerobby has joined #ruby
rbennacer has quit [Remote host closed the connection]
<hackeron> apeiros: I'm not sure, it is what the instructions say: https://www.dropbox.com/s/3212f6s3dw0vvvl/Screen%20Shot%202016-04-24%20at%2019.33.05.png?dl=0
idle_task has joined #ruby
<hackeron> apeiros: but I am guessing maybe adding the values of bytes 2 to 5?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hackeron> (binary values)
idletask has quit [Ping timeout: 276 seconds]
rbennacer has joined #ruby
<apeiros> then 6. and 7. would be identical. that doesn't seem to make sense.
zast has joined #ruby
freerobby has quit [Client Quit]
<hackeron> apeiros: yeh, that's what I'm thinking, hmmm - but you have CRC_H=0b1000_s7_s6_s5_s4 and CRC_L=0b1000_s3_s2_s1_s0 - not quite sure what that means
<apeiros> you can get the numerical value of a byte in ruby using either .ord, or .unpack("C*"). the latter is useful to get multiple byte's values at once.
symm-_ has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
symm-_ has quit [Client Quit]
bruce_lee has joined #ruby
Azure|dc has joined #ruby
Azure has quit [Ping timeout: 246 seconds]
MauBot77 has joined #ruby
BlaDe^ has joined #ruby
MauBot77 has quit [Remote host closed the connection]
<BlaDe^> hi all, trying to debug a build script which is ruby.... i'm getting: in `join': no implicit conversion of nil into String (TypeError)
<BlaDe^> from: File.join(cache_base, *group_id.split('.'), artifact_id, version)
rbennacer has quit [Ping timeout: 240 seconds]
iaglium has quit [Quit: ZNC 1.6.1+deb1 - http://znc.in]
rbennacer has joined #ruby
<BlaDe^> can I get a stacktrace or similar, easily?
<hackeron> apeiros: thank you, something like this? < '10E0'.unpack("C*").inject(:+) -- let me try that for both checksum values and see what happens, heh
shinnya has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<apeiros> hackeron: yes
<hackeron> apeiros: I think the chechsum might be duplicated because they need 8 bytes
moeabdol has quit [Ping timeout: 260 seconds]
<apeiros> they'd better leave on as null then IMO
nemoNoboru has joined #ruby
<apeiros> BlaDe^: by default, ruby gives you a backtrace on unrescued exceptions. if you don't get one, you did something to prevent it.
<apeiros> BlaDe^: but since you already know the expression - check which of the values is nil
<hackeron> apeiros: heh, I will send them some feedback if I get this working :)
sdothum has joined #ruby
<BlaDe^> apeiros: yeah, i'm just using puts to debug it but going backwards will take me a while, was wondering if there was a "set -x" or equivalent like bash has
tk__ has quit [Quit: ばいばい]
<BlaDe^> version is nil, dunno why yet ;) passes for 40 other dependencies
iaglium has joined #ruby
CausaMortis has joined #ruby
<BlaDe^> scratch that... found it. Thanks apeiros :)
<Fernando-Basso> ruby -w may help some times.
siaw has quit [Read error: Connection reset by peer]
<BlaDe^> good to know, next time i'll test that
emilford has joined #ruby
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
Guest38 has joined #ruby
n008f4g_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
bahar has quit [Ping timeout: 250 seconds]
symm- has joined #ruby
siaw has joined #ruby
emilford has quit [Ping timeout: 268 seconds]
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
hiyosi_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Abhijit has quit [Quit: Bye.]
hiyosi has joined #ruby
<hackeron> apeiros: doesn't seem to respond to that :( - but it says the checksum needs to be 1 byte, the sum is 3 bytes, hmmm - any ideas?
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
flashpoint9 has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 244 seconds]
spider-mario has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Ping timeout: 250 seconds]
IrishGringo has quit [Ping timeout: 260 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hxegon has joined #ruby
william3 has joined #ruby
jrafanie has joined #ruby
xlegoman has joined #ruby
william3 has quit [Ping timeout: 244 seconds]
crdpink2 has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
crdpink has quit [Ping timeout: 276 seconds]
crdpink2 has quit [Client Quit]
crdpink2 has joined #ruby
<hackeron> apeiros: oh wait, I get it, I need to get the "high byte" of the integer - any ideas how to do that?
<Fernando-Basso> if initialize is an instance method, why doesn't MyClass.instance_methods list it?
flashpoint9 has joined #ruby
rbennacer has quit [Remote host closed the connection]
idle_task is now known as idletask
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
tildes has joined #ruby
<eam> hackeron: 32 or 64bit integer?
rbennacer has joined #ruby
<hackeron> eam: 32bit, so I have 214 - 3 bytes - I need to get the high and low byte of this integer
antgel has quit [Ping timeout: 276 seconds]
nando293921 has joined #ruby
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shum has joined #ruby
freerobby has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
<eam> >> x = 2**25; [x >> 8, x >> 24]
<ruby[bot]> eam: # => [131072, 2] (https://eval.in/558779)
tubuliferous has joined #ruby
<hackeron> eam: no wait, I think it's 8bit, hmm
freerobby has quit [Client Quit]
<eam> hackeron: if it's 8 bit it's only one byte
<eam> you can use & to mask parts, and >> to shift off the right side
<hackeron> eam: hmm, when I do serial.write(214) - it returns 3
nanoz has joined #ruby
<eam> that means you wrote three bytes
sandelius has joined #ruby
mdw has joined #ruby
<eam> you're passing a Fixnum to write() ?
<hackeron> eam: yeh, the documentation say to write 2 bytes - the high and low hbyte, hmm
noService has joined #ruby
banister has joined #ruby
william3 has joined #ruby
<eam> hackeron: write() is converting the fixnum 1 into a string, this is probably not what you want
<eam> you're essentially doing write("1")
crameth has quit [Quit: crameth]
<eam> hackeron: you'll want to modify your number 214 according to your rules (take high and low byte) and then write that resulting string
<eam> the high byte of 214 is zero, the low byte of 214 is 214
<eam> so if you want to write the high byte, then low byte, it sounds like you want: write 0.chr + 214.chr
william3 has quit [Ping timeout: 244 seconds]
<hackeron> eam: ah, I see - that's where I am confused - how would I get that and do I write like serial.write(0x214)?
<eam> how do you get which part?
<hackeron> eam: how did you get 0 and 214?
GodFather has quit [Ping timeout: 260 seconds]
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jhack has quit [Quit: jhack]
<eam> how big can an 8 bit integer be?
<eam> what's 2**8?
beatdown has joined #ruby
<eam> 214 is smaller than this, which means the entire value rests within the first 8 bits of the integer
<eam> which means the low byte is 214, and all others are zero
noService has quit [Quit: leaving]
<eam> >> 214 & 0xff
<ruby[bot]> eam: # => 214 (https://eval.in/558794)
<eam> & 0xff sets all bites in the number to zero, except the lowest 8
<eam> >> (1024 + 214) & 0xff
<ruby[bot]> eam: # => 214 (https://eval.in/558795)
jaguarmagenta has joined #ruby
<eam> if I set a higher bit (power of two, 2**10) the & 0xff will mask it off
spectra has quit [Ping timeout: 260 seconds]
smoose has quit [Remote host closed the connection]
<hackeron> eam: ah, ok, I need to read up a bit more eabout it like 0xff - but that makes sense thank you :) - but for some reason still not getting any response :(
smoose has joined #ruby
<eam> well, that's just to obtain the low bit
<eam> er, the low byte
<eam> you have to do something different to get the high byte
<eam> what kind of device are you talking to?
<eam> ok so, the first line -- you're not writing a "start byte" of 0x02
<eam> you need to write 0x02.chr
Chagel has quit [Ping timeout: 250 seconds]
<eam> write(0x02) writes out a byte with a value of 50
<eam> write(0x02.chr) writes out a byte with a value of 2
<hackeron> eam: added .chr - still no response from the controller, hmm and thank you didn't know that :)
<hackeron> added .chr for start and end byte
chouhoulis has joined #ruby
<hackeron> probably doing the checksum wrong, hmm
<hackeron> not quite sure what s=(byte)SUM(2;5) CRC_H=0b1000_s7_s6_s5_s4 means
<eam> hackeron: the reason is, "2" is a character with a value of 50 (ascii)
x77686d has joined #ruby
rgtk has quit [Ping timeout: 252 seconds]
<hackeron> eam: I see, so does it need to be 2.chr or 0x02.chr?
<eam> they're the same
<eam> >> 2 == 0x02
<ruby[bot]> eam: # => true (https://eval.in/558802)
<eam> 0x is just a way to write hexadecimal
<eam> which only matters once you have more than one digit
bronson has joined #ruby
<hackeron> ah :) - I thought 0x02 ould do the convertion, so good to know I need .chr :)
<eam> yeah, .chr takes any integer in ruby and converts it to the string representing the ordinal value
<eam> the thing to remember is that write() only takes strings (byte buffers)
<hackeron> makes sense - any ideas what I'm doing wrong in the checksum though?
edwinvdgraaf has joined #ruby
<eam> so if you give it a non-string it'll try to stringify it and that won't be what you want
darkxploit has quit [Quit: Leaving]
<hackeron> ah, I see
rbennacer has quit [Remote host closed the connection]
victortyau has joined #ruby
Tharbakim has quit [Ping timeout: 276 seconds]
<eam> ok looking at this doc - it doesn't just want the high or low bytes
<eam> it wants you to perform a checksum on them
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
<hackeron> eam: hmm? - it says checksum high byte and checksum low byte - for byte 6 and 7
flashpoint9 has quit [Remote host closed the connection]
Tharbakim has joined #ruby
hxegon has joined #ruby
<hackeron> eam: and it's saying to sum, so I just did '10E0'.unpack("C*").inject(:+).ord which I guess is wrong, heh
<eam> ah ok good, you're familiar with pack/unpack
<eam> it says CRC, are you familiar with CRC?
<hackeron> eam: to some extent, heh - but I'm guessing that's wrong :P
<hackeron> I'm not
bronson has quit [Ping timeout: 252 seconds]
<eam> do they perhaps give a concrete example of a formatted message?
rbennacer has joined #ruby
<hackeron> eam: nope, just those instructions and nothing else :( - I will ask them for one
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
flashpoi_ has joined #ruby
william3 has joined #ruby
polysics_ has quit [Remote host closed the connection]
Cyrus has quit [Ping timeout: 246 seconds]
beawesomeinstead has quit [Ping timeout: 260 seconds]
w1lson has joined #ruby
rkazak has joined #ruby
beawesomeinstead has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Ping timeout: 240 seconds]
<hackeron> eam: I'm guessing the instructions are not really enough to go by?
<eam> they might be, I'm just not familiar with that notation
william3 has quit [Remote host closed the connection]
<hackeron> eam: yeh -- s=(byte)SUM(2;5) CRC_H=0b1000_s7_s6_s5_s4 -- what the hell, lol?
william3 has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
edwinvdgraaf has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> you'll need to know what kind of function that's describing
<eam> btw
<eam> '10E0'.unpack("C*").inject(:+).ord
spectra has joined #ruby
<eam> this isn't going to give you the integer value of '10E0'
<eam> '10E0' would be 809840689
naftilos76 has joined #ruby
moeabdol has joined #ruby
<hackeron> eam: since they asked to sum ascii, I figured I will sum the binary representation of the ascii characters?
gizmore has joined #ruby
<eam> yes, but it sounds like you'll be doing a checksum on them not just adding them together
<eam> your original value to extract the high byte from is '10E0', aka 809840689
<eam> the high byte is '1', aka ordinal value 49
roelof has joined #ruby
rbennacer has quit [Remote host closed the connection]
zacstewart has joined #ruby
<eam> (probably, we're getting into endianness -- I'm assuming this is just left to right)
<roelof> hello, I have a problem. I have to find the number closest to zero where if the distance is the same the positive number must be outputted
<hackeron> lol, fun times :) - and what would the low byte be?
<eam> >> '10E0'.unpack("C*") == [809840689 & 0xff, (809840689 >> 8 & 0xff), (809840689 >> 16 & 0xff), (809840689 >> 24 & 0xff)]
<ruby[bot]> eam: # => true (https://eval.in/558810)
<roelof> the first is not a problem. I can do this with : temp = temp.inject(temp.shift) { |number, solution| if solution.to_i.abs > number.to_i.abs then number else solution end }
<eam> '1' is 49, '0' is 48
RegulationD has joined #ruby
<roelof> how can I change this so the postive number is outputted when the input is ["5", "-5", 10] as a example
moeabdol has quit [Quit: WeeChat 1.4]
<hackeron> eam: so I should try p serial.write('1'.chr + '0'.chr)?
rbennace_ has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
<eam> well, you should figure out what the checksum function is
jonr22 has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 260 seconds]
<hackeron> eargh, no resopnse to that either, hmm
jonr22 has joined #ruby
moeabdol has joined #ruby
Pupeno has quit [Remote host closed the connection]
tvon has quit [Quit: Peace out, y'all!]
n008f4g_ has quit [Ping timeout: 250 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
Yiota has joined #ruby
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
banister has joined #ruby
Yiota has quit [Client Quit]
zacstewart has joined #ruby
<roelof> nobody ?
bahar has joined #ruby
bahar has joined #ruby
Cyrus has joined #ruby
spider-mario has quit [Remote host closed the connection]
Cyrus is now known as Guest58430
w1lson has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
baweaver has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
victortyau has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest38 has joined #ruby
aswen has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
<Zarthus> roelof: loop over the stay, store the highest number in a variable?
<roelof> Zarthus: I do not have to find the higest one , I have to find the number which is closets to zero. That is what the inject is doing.
<roelof> but when there are 2 numbers which are equal distance to zero. I have to store the positive number
<roelof> or do I misunderstood you /
<roelof> ?
<Zarthus> the same approach applies, but instead you check the difference?
<benzrf> list.min_by(&:abs) perhaps?
<Zarthus> >> a = 6; [7,8,9,2,3,4,5].each { |i| a = i.abs > a ? a : i.abs }; a
<Zarthus> if I understand your issue correctly
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Zarthus> there's ways to optimize that, but if the result is wrong (2 in this case; ruby[bot] has problems seeing me being logged in :<) maybe I misunderstood
<roelof> Zarthus: moment, I will fire up a repl
<roelof> it seems to work : when I do a = 6; [7,8,9,2,3,4,-2].each { |i| a = i.abs > a ? a : i.abs }; a . it still gives 2 instead of -2 :)
jaguarmagenta has quit [Remote host closed the connection]
<Zarthus> roelof: store just i, not i.abs then
n008f4g_ has joined #ruby
<al2o3-cr> roelof: what's up with benzrf solution?
<Zarthus> problem is you'll also need to call a.abs then
<Fernando-Basso> Hi.
<roelof> the solution seems to work except when all numbers are negative : a = 6; [-7,-8,-9,-4,-3,-4,-2].each { |i| a = i.abs > a ? a : i }; a
<roelof> then it gives -4 as answer where -2 is the right one
PedramT has joined #ruby
<al2o3-cr> >> [-7,-8,-9,-4,-3,-4,-2].min_by(&:abs) roelof ????
<ruby[bot]> al2o3-cr: # => /tmp/execpad-c8b80aec3167/source-c8b80aec3167:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/558818)
<al2o3-cr> >> [-7,-8,-9,-4,-3,-4,-2].min_by(&:abs) #roelof ????
<ruby[bot]> al2o3-cr: # => -2 (https://eval.in/558819)
<al2o3-cr> >> [7,8,9,2,3,4,-2].min_by(&:abs)
<ruby[bot]> al2o3-cr: # => 2 (https://eval.in/558820)
PedramT has quit [Remote host closed the connection]
<roelof> al2o3-cr: that seems to work on all cases
<al2o3-cr> roelof: yeah, benzrf told you this 10 line back :P
mjuszczak has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
PedramT has joined #ruby
bob434 has joined #ruby
w1lson has joined #ruby
<benzrf> :)
bob434 has quit [Client Quit]
<roelof> benzrf: I apolize then
Xeago has joined #ruby
w1lson has quit [Client Quit]
solocshaw has quit [Ping timeout: 276 seconds]
roelof has quit [Quit: Page closed]
Xeago has quit [Remote host closed the connection]
benlieb has joined #ruby
bronson has joined #ruby
sandelius has joined #ruby
Yiota has joined #ruby
flashpoi_ has quit [Remote host closed the connection]
Yiota has quit [Client Quit]
bronson has quit [Ping timeout: 252 seconds]
polysics has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
Matthew_ has left #ruby [#ruby]
al2o3-cr has quit [Ping timeout: 276 seconds]
KensoDev has joined #ruby
Spami has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
polysics has quit [Ping timeout: 276 seconds]
solocshaw has joined #ruby
kareeoleez has joined #ruby
edwinvdgraaf has joined #ruby
shayan_ has joined #ruby
Ishido has joined #ruby
jaguarmagenta has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
<shevy> let's all apolize
victortyau has joined #ruby
tribals has joined #ruby
<tribals> hi folks!
<tribals> how to clear `*.o` files for built native extensions for all bundled gems?
fedexo has joined #ruby
kirun has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
kareeoleez has quit [Remote host closed the connection]
kareeoleez has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
<tribals> in project i currently worked on gems directory gorges about half a GB, i thin it is too much
skade has joined #ruby
dekonix has joined #ruby
kareeoleez has quit [Ping timeout: 250 seconds]
R\w\C has joined #ruby
rbennace_ has quit [Remote host closed the connection]
R\w\C has quit [Client Quit]
<shevy> huh
<shevy> half a gig
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dretnx has quit [Quit: Page closed]
dekonix has quit [Quit: Leaving]
<tribals> shevy: yep
<apeiros> hackeron: ah, I get it. I guess you solved it by now?
<shevy> a trivial way would be via Dir['**/**/*.o'] or something like that (probably test in irb first), then just File.delete() on the results there
edwinvdgraaf has quit [Remote host closed the connection]
PedramT has quit [Remote host closed the connection]
ljames has quit []
Cohedrin has joined #ruby
w1lson has joined #ruby
<adaedra> tribals: a simple `find` in the folder should do it, I guess
Cohedrin_ has joined #ruby
<adaedra> something like `find ~/.gem -name '*.o' -delete`
Cohedrin has quit [Ping timeout: 250 seconds]
<adaedra> (or any other directory in place of ~/.gem)
rbennacer has joined #ruby
w1lson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
w1lson has joined #ruby
smathy has joined #ruby
PedramT has joined #ruby
Dimik has joined #ruby
<tribals> thank you all
ixti has joined #ruby
mjuszczak has quit []
douglass_ has left #ruby [#ruby]
polysics has joined #ruby
rbennacer has quit [Ping timeout: 240 seconds]
al2o3-cr has joined #ruby
Devalo has joined #ruby
rbennacer has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
cdg_ has joined #ruby
skweek has joined #ruby
lxsameer has joined #ruby
elifoster has joined #ruby
flashpoint9 has joined #ruby
freerobby has joined #ruby
polysics has quit [Ping timeout: 252 seconds]
hxegon has joined #ruby
tessi has quit [Quit: tessi]
cdg has quit [Ping timeout: 250 seconds]
Underdogg has joined #ruby
cdg_ has quit [Ping timeout: 250 seconds]
mhib has joined #ruby
CausaMortis has quit [Ping timeout: 250 seconds]
shinnya has quit [Ping timeout: 276 seconds]
_ht has quit [Ping timeout: 268 seconds]
_ht has joined #ruby
RegulationD has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
anisha_ has joined #ruby
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
baweaver has joined #ruby
jrafanie has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
rbennace_ has joined #ruby
aswen has quit [Ping timeout: 276 seconds]
baweaver has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
sandelius has joined #ruby
smathy_afk is now known as smathy
rbennacer has quit [Ping timeout: 276 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
bradleyprice has quit [Remote host closed the connection]
PedramT has quit [Remote host closed the connection]
weemsledeux has joined #ruby
bradleyprice has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
bradleyprice has quit [Remote host closed the connection]
PedramT has joined #ruby
tribals has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
jaguarma_ has joined #ruby
berserk_ren has quit [Ping timeout: 244 seconds]
<shevy> does anyone happen to know if we have a survey specifically only for ruby people e. g. who write ruby code, what editor is the most prevalent one?
dmr8 has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
flashpoint9 has quit [Remote host closed the connection]
axion_ has quit [Ping timeout: 244 seconds]
siaw_ has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
siaw has quit [Ping timeout: 250 seconds]
siaw_ is now known as siaw
lxsameer has quit [Ping timeout: 240 seconds]
al2o3-cr has quit [Quit: WeeChat 1.4]
nanoz has quit [Quit: <3]
flashpoint9 has joined #ruby
al2o3-cr has joined #ruby
johnny56_ has quit [Quit: WeeChat 1.4-dev]
mdw has joined #ruby
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
Redfoxmoon has joined #ruby
<Redfoxmoon> ... how do I solve 'ld: -f may not be used without -shared'? appending -shared to the makefile makes it crash with a whole heap of undefined references
ule has joined #ruby
<ule> I'm studying ruby here and finally got to Procs and Lambdas
<ule> trying to figure out these idea
n008f4g_ has joined #ruby
jaguarmagenta has joined #ruby
edwinvdgraaf has joined #ruby
arashb has joined #ruby
tildes has quit [Ping timeout: 276 seconds]
jaguarma_ has quit [Ping timeout: 240 seconds]
moeabdol has quit [Ping timeout: 276 seconds]
jrafanie has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
cj has quit [Ping timeout: 260 seconds]
Gasher has quit [Ping timeout: 240 seconds]
_ht has quit [Ping timeout: 260 seconds]
<shevy> ule yeah it is not the easiest; but Proc.new and lambda {} is fairly similar, so understand one and you have the other covered too in one strike
xlegoman has quit [Quit: xlegoman]
xlegoman_ has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
edwinvdgraaf has quit [Ping timeout: 268 seconds]
_ht has joined #ruby
Cohedrin has joined #ruby
davedev24 has joined #ruby
tvon has joined #ruby
<tvon> Does anyone have an opinion on a great example of a json api client in ruby?
<tvon> e.g., the github api gem or something along those lines.
Cohedrin_ has quit [Ping timeout: 240 seconds]
navneet has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dh64 has joined #ruby
deadnull has joined #ruby
flashpoint9 has joined #ruby
charliesome has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
bronson has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
arashb has quit [Remote host closed the connection]
berserk_ren has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
polysics has joined #ruby
lxsameer has joined #ruby
n008f4g_ has quit [Ping timeout: 260 seconds]
solars has joined #ruby
optimaleatscout_ is now known as the-eat-scout
mdw has quit [Quit: Sleeping Zzzzz]
william3 has quit [Remote host closed the connection]
polysics has quit [Ping timeout: 240 seconds]
ruby-lang227 has joined #ruby
bob434 has joined #ruby
mhib has quit [Ping timeout: 240 seconds]
polysics has joined #ruby
william3 has joined #ruby
LoneHermit has joined #ruby
baweaver has joined #ruby
moeabdol has joined #ruby
shayan_ has quit [Quit: shayan_]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
jaguarma_ has joined #ruby
naftilos76 has quit [Ping timeout: 268 seconds]
jaguarmagenta has quit [Ping timeout: 250 seconds]
mdw has joined #ruby
navneet has quit [Ping timeout: 260 seconds]
crime has quit [Ping timeout: 250 seconds]
william3 has quit [Remote host closed the connection]
ropeney has quit [Read error: Connection reset by peer]
wilbert has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
william3 has joined #ruby
charliesome has joined #ruby
perturbation has joined #ruby
bradleyprice has joined #ruby
chouhoulis has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
tessi has joined #ruby
chouhoulis has joined #ruby
brianpWins has quit [Quit: brianpWins]
w1lson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mexis has joined #ruby
w1lson has joined #ruby
Don_John has joined #ruby
Don_John has quit [Client Quit]
deadnull has quit [Ping timeout: 250 seconds]
brianpWins has joined #ruby
bradleyprice has quit [Ping timeout: 260 seconds]
tildes has joined #ruby
pawnbox has quit [Remote host closed the connection]
PedramT has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
perturbation has quit [Ping timeout: 276 seconds]
perturbation has joined #ruby
brianpWins has quit [Ping timeout: 276 seconds]
victortyau has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tessi has quit [Quit: tessi]
rubie has joined #ruby
<shevy> hmm do we still have $SAFE ?
tildes has quit [Ping timeout: 268 seconds]
tax has joined #ruby
<rubie> hi all: im wondering if there is a more elegant way to parse a JSON api. The problem is if I dont get back a field I'm querying for, I dont want to error out. So i have some extra ogic to make sure its there first, just trying to find something simpler. Here is what I mean https://gist.github.com/anonymous/e25683e35199336250617c10bb65d112
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
Ebok has quit [Ping timeout: 244 seconds]
spider-mario has quit [Remote host closed the connection]
victortyau has joined #ruby
tomphp has joined #ruby
GodFather has quit [Ping timeout: 252 seconds]
<smathy> rubie, are you using ruby 2.3 yet?
djbkd has joined #ruby
spider-mario has joined #ruby
wilbert has quit [Ping timeout: 276 seconds]
Ebok has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby
SilverKey has joined #ruby
Devalo has quit [Remote host closed the connection]
<rubie> smathy: no not on this particular project
tlaxkit has quit [Quit: ¡Adiós!]
<smathy> rubie, ok I've commented in your gist with how I do these sorts of things.
<rubie> smathy: thanks!
lxsameer has quit [Ping timeout: 260 seconds]
<smathy> rubie, you should feel free to use parens and && if you prefer not to rely on operator precedence (which I'll admit the majority of people prefer not to).
shum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<smathy> rubie, note also that I assign even if givenName and familyName are falsey (ie. nil), so it's slightly different to your code because both `firstname` and `lastname` will be `defined?` (although falsey still) in my example whereas in yours they won't be `defined?`
<smathy> rubie, I avoid using `defined?` tests, but if you're using those then be warned.
sdothum has joined #ruby
nerium has joined #ruby
rbennace_ has quit [Remote host closed the connection]
karapetyan has joined #ruby
sdothum has quit [Client Quit]
tax has quit [Ping timeout: 260 seconds]
johnny56 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
sdothum has joined #ruby
spider-mario has quit [Remote host closed the connection]
Rodya_ has joined #ruby
SilverKey has quit [Quit: Halted.]
berserk_ren has quit [Ping timeout: 244 seconds]
w1lson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flashpoint9 has quit [Remote host closed the connection]
spider-mario has joined #ruby
flashpoint9 has joined #ruby
gigetoo has joined #ruby
IrishGringo has joined #ruby
skade has joined #ruby
s1kx has joined #ruby
pawnbox has joined #ruby
bobbycvi has joined #ruby
benlieb has quit [Quit: benlieb]
JagaJaga has joined #ruby
RegulationD has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 260 seconds]
sdothum has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
flashpoint9 has quit [Remote host closed the connection]
solars has quit [Ping timeout: 250 seconds]
flashpoint9 has joined #ruby
chipotle has quit [Quit: cheerio]
codecop has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
w1lson has joined #ruby
<jokke> hi
AustinMatherne has quit [Quit: leaving]
w1lson has quit [Client Quit]
AustinMatherne has joined #ruby
<jokke> is it possible to pass a scope or `self` to block.call?
<jokke> *proc
banister has joined #ruby
w1lson has joined #ruby
Gasher has joined #ruby
<adaedra> &ri instance_exec
Rodya_ has joined #ruby
flashpoint9 has quit [Ping timeout: 276 seconds]
william3 has quit [Remote host closed the connection]
<jokke> oh
<jokke> cool
djbkd has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
<jokke> thank you
<jokke> work's like a charnm
<jokke> *charm
karapetyan has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
cdg has joined #ruby
spider-mario has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
spider-mario has joined #ruby
Rodya_ has joined #ruby
pawnbox has joined #ruby
sneakerhax has joined #ruby
n008f4g_ has joined #ruby
jazzonmymind has quit [Quit: peace]
cpup has quit [Ping timeout: 276 seconds]
gizmore has quit [Ping timeout: 268 seconds]
Gasher has quit [Read error: Connection reset by peer]
w1lson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
cpup has joined #ruby
baweaver has quit [Remote host closed the connection]
bradleyprice has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
tomphp has joined #ruby
sdothum has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
karapetyan has joined #ruby
Pupeno has joined #ruby
duderonomy has joined #ruby
william3 has joined #ruby
nerium has quit [Quit: nerium]
AustinMatherne has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 250 seconds]
w1lson has joined #ruby
w1lson has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
aef has joined #ruby
AustinMatherne has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
w1lson has joined #ruby
jaguarmagenta has joined #ruby
william3 has quit [Ping timeout: 260 seconds]
william3 has joined #ruby
jaguarma_ has quit [Ping timeout: 252 seconds]
Devalo has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cpup has quit [Ping timeout: 244 seconds]
nerium has joined #ruby
tomphp has joined #ruby
cpup has joined #ruby
sdothum has joined #ruby
Cohedrin_ has joined #ruby
rubie has quit []
Gasher has joined #ruby
TomyLobo has quit [Ping timeout: 246 seconds]
Cohedrin has quit [Ping timeout: 250 seconds]
sdothum has quit [Client Quit]
pawnbox has joined #ruby
LoneHermit has quit [Remote host closed the connection]
IrishGringo has joined #ruby
Jackneill has quit [Remote host closed the connection]
ruby-lang227 has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
pawnbox has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
bronson has joined #ruby
sdothum has joined #ruby
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
ur5us has joined #ruby
jterra_ has quit [Quit: leaving]
Moosashi has joined #ruby
tomphp has quit [Ping timeout: 246 seconds]
pwnwell is now known as crowell
bronson has quit [Ping timeout: 252 seconds]
w1lson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
w1lson has joined #ruby
william3 has quit [Remote host closed the connection]
w1lson has quit [Client Quit]
w1lson has joined #ruby
freerobby has quit [Quit: Leaving.]
skade has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
hxegon has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
w1lson has quit [Client Quit]
sdothum has joined #ruby
Yiota has joined #ruby
pawnbox has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dmr8 has quit [Quit: Leaving]
JagaJaga has quit [Ping timeout: 260 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
sdothum has quit [Read error: Connection reset by peer]
w1lson has joined #ruby
erict has joined #ruby
Cohedrin has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
bob434 has joined #ruby
sdothum has joined #ruby
Devalo has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 240 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bob434 has quit [Client Quit]
Cohedrin_ has quit [Ping timeout: 260 seconds]
bob434 has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
bob434 has quit [Client Quit]
bob434 has joined #ruby
diego1 has joined #ruby
diego1 is now known as diegoviola
sphex has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
IrishGringo has quit [Ping timeout: 268 seconds]
sphex has joined #ruby
djbkd has joined #ruby
Moosashi has quit [Quit: Moosashi]
Yiota has joined #ruby
w1lson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
IrishGringo has joined #ruby
RegulationD has joined #ruby
elifoster has quit [Ping timeout: 250 seconds]
djbkd has quit [Ping timeout: 246 seconds]
bob434 has quit [Quit: Leaving]
victortyau has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cpup has quit [Ping timeout: 250 seconds]
w1lson has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
bkxd_ has joined #ruby
pawnbox has joined #ruby
arashb has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
Moosashi has joined #ruby
Cohedrin_ has joined #ruby
cpup has joined #ruby
baweaver has joined #ruby
arashb has quit [Remote host closed the connection]
mnrmnaugh is now known as catpoop
Cohedrin has quit [Ping timeout: 250 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
arashb has joined #ruby
benlieb has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
victortyau has joined #ruby
tribals has joined #ruby
<tribals> hi folks
Dry_Lips has quit [Ping timeout: 246 seconds]
sdothum has joined #ruby
sdothum has quit [Client Quit]
xingped has joined #ruby
<tribals> why if specify path like `--path vendor/bundle` sometimes bundler installs gems into `vendor/bundle/ruby/<version>/gems` but sometimes directly into `vendor/bundle/gems`?
Dry_Lips has joined #ruby
Dry_Lips has joined #ruby
cpup has quit [Ping timeout: 240 seconds]
sdothum has joined #ruby
cpup has joined #ruby
LoneHermit has joined #ruby
gregf has quit [Quit: WeeChat 1.4]
tessi has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Moosashi has quit [Quit: Moosashi]
Es0teric has joined #ruby
bkxd_ has quit [Ping timeout: 250 seconds]
Nanuq has quit [Ping timeout: 264 seconds]
<Fernando-Basso> https://eval.in/558960 What is the proper way to change case of strings like in the example? "CORAÇÃO".downcase produces "coraÇÃo".
<benzrf> welcome to improper unicode support~
<benzrf> you'd think it'd be better what with ruby originating in japan
stannard has joined #ruby
Kharma has quit []
<apeiros> Fernando-Basso: use activesupport or one of the unicode gems
IrishGringo has quit [Ping timeout: 246 seconds]
gregf has joined #ruby
gregf has quit [Client Quit]
<toretore> unicode_utils is pretty good
gregf has joined #ruby
A124 has quit [Ping timeout: 250 seconds]
elaptics is now known as elaptics`away
<Fernando-Basso> My god. I have to use a gem to lowercase a string!
isxek has quit [Remote host closed the connection]
<Fernando-Basso> Or I missread.
charliesome has joined #ruby
tessi has quit [Quit: tessi]
slackbotgz has joined #ruby
A124 has joined #ruby
toretore has quit [Ping timeout: 240 seconds]
charliesome has quit [Client Quit]
william3 has joined #ruby
IrishGringo has joined #ruby
<Fernando-Basso> Thank you for activesupport and unicode_utils tips.
<Fernando-Basso> benzrf: Yes, I would.
<Fernando-Basso> It must be impossible to create a perfect programming language.
<Fernando-Basso> No one did so far.
<Fernando-Basso> I don't mean perfect in the sense that I like the way it works. I just mean perfect in the sense that it works.
gregf has quit [Quit: WeeChat 1.4]
<Fernando-Basso> In 2016 I would expect langs like php and ruby to really have perfect unicode support.
charliesome has joined #ruby
charliesome has quit [Client Quit]
alexherbo2 has quit [Ping timeout: 250 seconds]
moeabdol has quit [Ping timeout: 276 seconds]
<apeiros> Fernando-Basso: same. it's a rather sad part in ruby.
nemoNoboru has quit [Remote host closed the connection]
stannard has quit [Remote host closed the connection]
william3 has quit [Ping timeout: 260 seconds]
spider-mario has quit [Remote host closed the connection]
swills has quit [Remote host closed the connection]
skade has joined #ruby
spider-mario has joined #ruby
ddv has quit [Ping timeout: 268 seconds]
polysics has quit [Remote host closed the connection]
LoganG has joined #ruby
ddv has joined #ruby
<weaksauce> unicode is hard to do right.
<Fernando-Basso> In racket, (string-downcse "CORAÇÃO") just works.
nerium has quit [Quit: nerium]
<Fernando-Basso> weaksauce: I don't doubt or deny that.
skweek has joined #ruby
<Fernando-Basso> Just that ruby, being the all might lang it is...
Devalo has joined #ruby
<weaksauce> different language but highlights some of the issues you have to consider https://www.mikeash.com/pyblog/friday-qa-2015-11-06-why-is-swifts-string-api-so-hard.html
Channel6 has joined #ruby
sdothum has joined #ruby
nerium has joined #ruby
swills has joined #ruby
<Fernando-Basso> Two interesting pieces of text to read, it seems!
gregf has joined #ruby
xingped has quit [Quit: Leaving]
<Fernando-Basso> I never studied about how to design or create a programming language. All I know is that it is certainly not easy or simple.
victortyau has quit [Ping timeout: 244 seconds]
swills has quit [Client Quit]
Devalo has quit [Ping timeout: 268 seconds]
IrishGringo has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Remote host closed the connection]
ferr has quit [Quit: WeeChat 1.4]
<smathy> Such a shame that charsets didn't just always have the same offset from upper to lower.
<smathy> ...another one for the "when I'm dictator" list.
_ht has quit [Ping timeout: 260 seconds]
existensil has quit [Quit: WeeChat 0.4.2]
alexherbo2 has joined #ruby
djbkd has joined #ruby
_ht has joined #ruby
_blizzy_ has joined #ruby
existensil has joined #ruby
<apeiros> smathy: not all languages have upper and lower chars in pairs
<apeiros> s/languages/scripts/
pawnbox has joined #ruby
<darix> Fernando-Basso: JFYI: the unicode gem does what you want: Unicode::downcase("CORAÇÃO")
<darix> => "coração"
spider-mario has quit [Remote host closed the connection]
_blizzy_ has quit [Client Quit]
swills has joined #ruby
spider-mario has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 244 seconds]
nerium has quit [Quit: nerium]
KnownSyntax has quit [Ping timeout: 252 seconds]
KnownSyntax has joined #ruby
hxegon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rasi has quit [Quit: WeeChat 1.4]
Rasi has joined #ruby
Rasi has quit [Client Quit]
Rasi has joined #ruby
slackbotgz has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 246 seconds]
Rasi has quit [Client Quit]
Rasi has joined #ruby
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
ta_ has quit [Remote host closed the connection]
<smathy> apeiros, yeah, so those scripts/chars wouldn't have an upper/lower-able flag set or something.
<smathy> ...I suppose it's just as easy to define the offset to the corresponding upper/lower as make the flag.
mlakewood has joined #ruby
kareeoleez has quit [Remote host closed the connection]
Cohedrin has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
w1lson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elifoster has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Es0teric has quit [Quit: Computer has gone to sleep.]
Cohedrin_ has quit [Ping timeout: 260 seconds]
sdothum has joined #ruby
alexherbo2 has quit [Ping timeout: 250 seconds]
brianpWins has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Gasher has quit [Quit: Leaving]
nando293921 has quit [Quit: Lost terminal]
skade has joined #ruby
Rodya_ has quit [Remote host closed the connection]
LoneHermit has quit [Remote host closed the connection]
firstdayonthejob has quit [Quit: WeeChat 1.4]
alexherbo2 has joined #ruby
bronson has joined #ruby
solocshaw has quit [Read error: Connection reset by peer]
solocshaw1 has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
solocshaw1 has quit [Ping timeout: 246 seconds]
Underdogg has quit [Read error: Connection reset by peer]
nando293921 has joined #ruby
Guest59517 has quit [Changing host]
Guest59517 has joined #ruby
Guest59517 is now known as nuck
moeabdol has joined #ruby
matp has quit [Ping timeout: 276 seconds]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
william3 has joined #ruby
matp has joined #ruby
jbd70 has joined #ruby
benlieb has quit [Quit: benlieb]
jbd70 has quit [Client Quit]
spider-mario has quit [Remote host closed the connection]
janebootydoe has joined #ruby
swills has quit [Ping timeout: 240 seconds]
SpeedyPolecat has joined #ruby
_wwwBukoLaycom has joined #ruby
benlieb has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
<SpeedyPolecat> >
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
william3 has quit [Ping timeout: 260 seconds]
diegoviola is now known as Guest65114
zenlot has quit [Ping timeout: 252 seconds]
diego1 is now known as diegoviola
rbr has joined #ruby
bronson has joined #ruby
polysics has joined #ruby
SpeedyPolecat has left #ruby [#ruby]
zenlot has joined #ruby
bronson has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
Guest65114 has quit [Ping timeout: 276 seconds]
polysics has quit [Ping timeout: 246 seconds]
Pupeno has quit [Remote host closed the connection]
tristanp has quit [Remote host closed the connection]
_wwwBukoLaycom has quit [K-Lined]
<Fernando-Basso> For me it is even stranger that 'ção.length is 3 but then 'ção'.upcase returns 'çãO'.
brianpWins has quit [Ping timeout: 260 seconds]
firstdayonthejob has joined #ruby
rkazak has joined #ruby
djbkd has joined #ruby
arashb has quit [Remote host closed the connection]
Pupeno has joined #ruby
RegulationD has joined #ruby
brianpWins has joined #ruby
Spami has joined #ruby
djbkd has quit [Ping timeout: 244 seconds]
Pupeno has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
Cohedrin_ has joined #ruby
blackgoat has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
serioustime is now known as sillytime
Cohedrin has quit [Ping timeout: 276 seconds]
baweaver has joined #ruby
s00pcan_ has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 260 seconds]
diegoviola has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
s00pcan_ has joined #ruby
nando293921 has quit [Quit: Lost terminal]
nando293921 has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
nando293921 has quit [Client Quit]
LoneHerm_ has joined #ruby
bklane has joined #ruby
kirun has quit [Quit: Client exiting]
erict has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Remote host closed the connection]
nando293921 has joined #ruby
ta_ has joined #ruby
n008f4g_ has quit [Ping timeout: 260 seconds]
IrishGringo has joined #ruby
pawnbox has joined #ruby
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
Emmanuel_Chanel has joined #ruby
ramfjord has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
ledestin has joined #ruby
KnownSyntax has quit [Ping timeout: 260 seconds]
diegoviola has quit [Changing host]
diegoviola has joined #ruby
s00pcan_ has quit [Ping timeout: 260 seconds]
jaguarma_ has joined #ruby
jdawgaz has joined #ruby
KnownSyntax has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
n008f4g_ has joined #ruby
s00pcan_ has joined #ruby
Nanuq has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
flashpoint9 has joined #ruby
ensyde has joined #ruby
w1lson has joined #ruby
Robtop__ has joined #ruby
brianpWins_ has joined #ruby
brianpWins has quit [Ping timeout: 260 seconds]
brianpWins_ is now known as brianpWins
firstdayonthejob has quit [Ping timeout: 250 seconds]
brianpWins has quit [Client Quit]
Rodya_ has quit [Ping timeout: 250 seconds]
w1lson has quit [Ping timeout: 244 seconds]
pwnd_nsfw` has quit [Ping timeout: 276 seconds]
LoneHerm_ has joined #ruby
weemsledeux has joined #ruby
Rodya_ has joined #ruby
catpoop has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
mnrmnaugh has joined #ruby
bradleyprice has joined #ruby
cdg has quit [Remote host closed the connection]
darkf has joined #ruby
baweaver has joined #ruby
william3 has joined #ruby
bradleyprice has quit [Ping timeout: 244 seconds]
thesheff17 has joined #ruby
stannard has joined #ruby
Cohedrin has joined #ruby
william3 has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
Cohedrin_ has quit [Ping timeout: 260 seconds]
polysics has joined #ruby
stannard has quit [Ping timeout: 268 seconds]
sillytime is now known as nchambers
Devalo has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
<arahael> Fernando-Basso: looks like they did it the easy way.
polysics has quit [Ping timeout: 276 seconds]
<Ox0dea> They're fixing it.
aeterne has quit [Read error: Connection reset by peer]
<arahael> Fernando-Basso: but that's understandable: the correct way is reaaly, really hadd.
<arahael> Ox0dea: impressive.
<arahael> *hard
<arahael> Fernando-Basso: consider, that the correct capitalisation depends on locale.
Devalo has quit [Ping timeout: 276 seconds]
<Ox0dea> $ ruby -ve "p 'ção'.upcase :lithuanian"
<Ox0dea> ruby 2.4.0dev (2016-04-25 trunk 54753) [x86_64-linux]
<Ox0dea> "ÇÃO"
<Ox0dea> They're just using `:lithuanian` for testing purposes at the moment, I think.
flashpoint9 has quit [Remote host closed the connection]
<arahael> Ox0dea: impressive :) i like it.
<Ox0dea> arahael: So many corner cases!
<Ox0dea> But they got Greek sorted out, so I'm happy. :)
<arahael> Ox0dea: and they won't all be covered! the corner cases will doubtless chage, too!
<Ox0dea> Thanks, Tower of Babel.
bkxd has joined #ruby
<arahael> but, stil., humans are flexible. getting 90% or even 95% there could be good. but these days i pretend that unicode strings are fully opaque.
djbkd has joined #ruby
<arahael> i try to avoid doing anything except bytewise equality.
<arahael> ... and maybe collation.
hxegon has joined #ruby
rbr has quit [Ping timeout: 250 seconds]
djbkd has quit [Ping timeout: 260 seconds]
rahult has joined #ruby
davedev24 has quit [Remote host closed the connection]
<benzrf> >>> 'ção'.upper()
<benzrf> 'ÇÃO'
<benzrf> cmon ruby, python is kickin your ass
postmodern has joined #ruby