<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
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]
<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
<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]
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:
<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.
<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:
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>
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: 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)
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…]
<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
<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 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…]
<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…]
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).
<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?
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...
<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]