<jackjackdripper>
I'm getting no such file or directory when I call ruby from an app. I tested it in a bash script and the I see the same issue. Permissions are ok and the ruby $PATH is not a symlink
<Ox0dea>
jackjackdripper: Would you mind elaborating on "call ruby from an app"?
ValicekB has quit [Ping timeout: 244 seconds]
s2013 has joined #ruby
<jackjackdripper>
so my test was I created a bash script calling /usr/bin/ruby /script/file/path
<jackjackdripper>
i'm getting /usr/bin/ruby: No such file or directory --
myztic has quit [Quit: Leaving]
<jackjackdripper>
the file exist
FooMunki has joined #ruby
myztic has joined #ruby
<Ox0dea>
Clearly not.
<Ox0dea>
Computers cannot lie.
<jackjackdripper>
file /usr/bin/ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<jackjackdripper>
output /usr/bin/ruby: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
<Ox0dea>
jackjackdripper: It's the /script/filepath that doesn't exist.
paulcsmith has joined #ruby
Kyuujitsu has quit [Ping timeout: 250 seconds]
<jackjackdripper>
thanks for the direction indeed file can not see the script even if it is there
Kyuujitsu has joined #ruby
sevenseacat has joined #ruby
eggoez has quit [Ping timeout: 240 seconds]
ttilley has joined #ruby
ttilley has quit [Changing host]
ttilley has joined #ruby
<Ox0dea>
jackjackdripper: You mean you can run `stat /script/file/path` and not get an error, but `/usr/bin/ruby /script/file/path` errors? I doubt that very much.
ValicekB has joined #ruby
Kyuujitsu has quit [Ping timeout: 250 seconds]
dopie has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kyuujitsu has joined #ruby
j4cknewt has joined #ruby
mjuszczak has joined #ruby
<havenwood>
Ox0dea: JRuby 9k can settle things for us:
<havenwood>
size.times 304.000 i/100ms
<havenwood>
each_index 304.000 i/100ms
<jackjackdripper>
Ox0dea no it fails on both. dos2unix seem to have fixed it. file was just given to me to test he might have his dev environment in win
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
<Ox0dea>
jackjackdripper: Erm... huh? You used `dos2unix` on the filename?
<havenwood>
about 50% faster than my CRuby, which are within margin-of-error either way
freerobby has joined #ruby
chills42 has quit [Remote host closed the connection]
mjuszczak has quit [Client Quit]
<Ox0dea>
havenwood: Aye, it's negligible no matter how you slice it, but I rarely reach for #each_index and I couldn't say why.
<eam>
Ox0dea: sounds like he had an unprintable character in his script
<havenwood>
Ox0dea: yeah, good point
sinkensabe has joined #ruby
<Ox0dea>
eam: I don't see how that'd lead to ENOENT?
<eam>
when the script looks like /usr/bin/ruby<unprintable non-whitespace>
Kyuujitsu has quit [Ping timeout: 250 seconds]
<eam>
kinda common issue
eggoez has joined #ruby
Kyuujitsu has joined #ruby
<eam>
I see it happen a lot when copying/pasting from various encodings, webpages -> editor, etc
rbennacer has joined #ruby
<eam>
echo -e "\r/usr/bin/ruby /tmp/script.rb" | sh
djbkd has quit [Remote host closed the connection]
icebourg has joined #ruby
sinkensabe has quit [Ping timeout: 246 seconds]
rbennacer has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
davedev2_ has quit []
Kyuujitsu has quit [Ping timeout: 250 seconds]
zacstewart has joined #ruby
Anne has quit [Remote host closed the connection]
ModernMan has joined #ruby
devoldmx has joined #ruby
Kyuujitsu has joined #ruby
<ModernMan>
Does anybody know how to get Rubocop to ignore empty methods with parentheses at the end? We have to put them and it rather sucks that it complains. I looked at the default.yml they provide but didn't see it
dopie has quit [Quit: This computer has gone to sleep]
<Ox0dea>
ModernMan: You're going against a well-established and perfectly logical convention; that you're finding this painful is a feature.
<ModernMan>
It destroys readability
nisstyre has joined #ruby
alveric__ has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
nisstyre has quit [Changing host]
nisstyre has joined #ruby
alveric_ has quit [Ping timeout: 240 seconds]
Kyuujitsu has quit [Ping timeout: 250 seconds]
Kyuujitsu has joined #ruby
Vile` has quit [Ping timeout: 244 seconds]
Kyuujitsu has quit [Ping timeout: 240 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24 has joined #ruby
hashrocket has joined #ruby
mjuszczak has joined #ruby
Kyuujitsu has joined #ruby
Vile` has joined #ruby
pl1ght has quit [Ping timeout: 244 seconds]
<Inside>
hey guys
<Inside>
what do you all recommend for writing simple gui toolkits in ruby?
Kyuujitsu has quit [Ping timeout: 244 seconds]
Vile` has quit [Remote host closed the connection]
<Ox0dea>
Inside: JavaScript.
<Inside>
:|
<Inside>
I don't mean toolkits
<Inside>
I mean 'simple guis' herpderp
Kyuujitsu has joined #ruby
avitzurel has joined #ruby
eggoez has quit [Ping timeout: 246 seconds]
<Ox0dea>
I was being completely serious.
<Inside>
I don't get it
|\|370 has joined #ruby
<Inside>
Sorry
<Inside>
I meant windows desktop gui applications
<Ox0dea>
But why?
jtdoncas has quit [Ping timeout: 244 seconds]
<Inside>
I'm writing a simple program which sits on a computer at work and then when it detects a new row in the database it prints a label
<Inside>
needs to have an interface so that people can go and re-print a label in case the printer crapped out or something
_seanc_ has joined #ruby
tmtwd has joined #ruby
<mozzarella>
cool
<Ox0dea>
Inside: Well, if doing it with the world's simplest Rack app doesn't take your fancy, Ruby ships with Tk.
<Inside>
Ox0dea: the thing is that it automatically prints the label
sdwrage has quit [Quit: This computer has gone to sleep]
<Inside>
unless you can give me an idea of how a rackapp would work in this case?
<Inside>
(I'm.. thoroughly not a developer)
braincrash has quit [Quit: bye bye]
sdwrage has joined #ruby
<Inside>
I'm essentially just doing system('foxit.exe /t "label.pdf" "DYMO LabelWriter 450" ') at the moment ;)
yfeldblum has quit [Remote host closed the connection]
<Ox0dea>
Inside: And what're you currently doing when that returns nil?
<Inside>
absolutely jack nothing
Vile`` has joined #ruby
ducklobster has joined #ruby
theery has joined #ruby
eggoez has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
<Ox0dea>
Well, you could write the result to a "status file" and poll it with JavaScript, then present a button that requests '/go_again' or some such.
<Inside>
ah
braincrash has joined #ruby
<Inside>
I see what you mean now, yes
texasmade has joined #ruby
yfeldblum has joined #ruby
<Ox0dea>
It's not great, but it'd probably suffice for something as simple as what you've said you need.
pl1ght has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
bronson_ has joined #ruby
rehat has joined #ruby
theery has quit [Ping timeout: 265 seconds]
<Inside>
so why rack?
dopie has joined #ruby
darkf has joined #ruby
<Ox0dea>
It doesn't get any simpler without becoming painful.
arescorpio has joined #ruby
<pontiki>
who needs more the netcat?
blue_deref has quit [Quit: bbn]
<pontiki>
than*
njr has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
<Inside>
I mean all I really need is to.. serv up a single static html file and then listen to a get/post/etc that prompts the system call to print a label
<Inside>
oh wait
<Ox0dea>
Inside: Aye, that's what Rack'll give you.
<Inside>
well, I guess the server can just sit there in the background polling the database constantly
<rehat>
hi, new to ruby. I want to do a do while loop and I don't know what the preferred way of doing this. Should I use begin end while condition or just a loop do end and break out of the loop?
<Ox0dea>
rehat: That's essentially a stylistic choice.
Ropeney has joined #ruby
<rehat>
ok cool thanks
Kyuujitsu has quit [Ping timeout: 260 seconds]
_seanc_ has quit [Quit: _seanc_]
<Ox0dea>
rehat: The former is a "true" do-while, but the meat is at the bottom, which isn't so great.
Kyuujitsu has joined #ruby
theery has joined #ruby
j_mcnall_ has joined #ruby
hashrocket has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
n_blownapart has joined #ruby
Kyuujitsu has quit [Ping timeout: 252 seconds]
Kyuujitsu has joined #ruby
sinkensabe has quit [Ping timeout: 250 seconds]
Soda has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
zacstewart has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
Feyn has quit [Ping timeout: 264 seconds]
dimasg has joined #ruby
ModernMan has quit [Quit: Page closed]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tempesta has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
tkuchiki has joined #ruby
michael_mbp has joined #ruby
knu has quit [Ping timeout: 246 seconds]
railswebdev has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
baweaver has quit [Remote host closed the connection]
gix has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
baweaver has joined #ruby
Kyuujitsu has quit [Ping timeout: 264 seconds]
benlovell has joined #ruby
djbkd has joined #ruby
gix has joined #ruby
n_blownapart has quit [Quit: Leaving]
hahuang65 has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
leesharma has quit [Ping timeout: 255 seconds]
benlovell has quit [Ping timeout: 250 seconds]
icebourg has quit []
Kyuujitsu has joined #ruby
atomical has joined #ruby
arup_r has joined #ruby
sargas has joined #ruby
sargas has quit [Max SendQ exceeded]
sargas has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
Kyuujitsu has joined #ruby
saddad has quit [Ping timeout: 264 seconds]
towski_ has joined #ruby
bmurt has quit []
<Radar>
Does anyone know of a Nanoc 4 + Sass guide that I could follow to get started with it?
Kyuujitsu has quit [Ping timeout: 250 seconds]
Kyuujitsu has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<aceRacer>
hi all. I have a quesrtion. its more of an implementation based question
pawnbox has quit [Remote host closed the connection]
<Ox0dea>
aceRacer: Fire away.
h4ckurate has quit [Client Quit]
<aceRacer>
...typing
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
h4ckurate has joined #ruby
<Ox0dea>
Preparation is key.
chipotle has quit [Read error: Connection reset by peer]
Kyuujitsu has quit [Ping timeout: 246 seconds]
<aceRacer>
Presently in the rails application the database part is being handled by ActiveRecord. But then not everything would be done using a mysql database. like messaging. I would like to save them to mysql as well as redis, so redis will be like a middle tier database :P with maybe 20 recent messages per user. Now the thing is, previously I had wrapped the redis-rb library in a module with...
<aceRacer>
...methods like fetch, create, remove but the problem was I was using zset all the time, but for this feature I need a list. but I don't want to write the same methods again
pawnbox has joined #ruby
<bnagy>
?rails aceRacer
<ruboto>
aceRacer, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
Kyuujitsu has joined #ruby
<aceRacer>
aw.... :(
<pipework>
Luckily your OS probably has copy and paste functionality!
<pipework>
dem clipboards.
tmtwd has quit [Read error: Connection reset by peer]
<aceRacer>
haha
<apeiros>
great, my AD throttles my requests… every 3rd request takes 20s…
bigkevmcd has quit [Quit: Outta here...]
Channel6 has quit [Quit: Leaving]
* pipework
imagines all the funny things "AD" could mean
mistym- has joined #ruby
ledestin has joined #ruby
mistym- is now known as mistym
mistym has quit [Changing host]
mistym has joined #ruby
<apeiros>
pipework: in IT context, most often activedirectory
pawnbox has quit [Read error: Connection reset by peer]
CustosLimen has quit [Read error: Connection timed out]
krz has joined #ruby
kwd has joined #ruby
<apeiros>
funny, activedirectory isn't a rails thing :D
Vile`` has quit [Ping timeout: 272 seconds]
pawnbox has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vile` has joined #ruby
Kyuujitsu has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
pawnbox has quit [Read error: Connection reset by peer]
CustosLimen has joined #ruby
TvL2386 has joined #ruby
schaerli has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 255 seconds]
khebbie has quit [Remote host closed the connection]
khebbie has joined #ruby
sameerynho has joined #ruby
Kyuujitsu has joined #ruby
schaerli has joined #ruby
pawnbox has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
blaines has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
doertedev has quit [Quit: Lost terminal]
schaerli has quit [Ping timeout: 264 seconds]
avahey has quit [Quit: Connection closed for inactivity]
pawnbox_ has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
rehat has quit [Remote host closed the connection]
h4ckurate has quit [Remote host closed the connection]
h4ckurate has joined #ruby
Kyuujitsu has quit [Ping timeout: 272 seconds]
Kyuujitsu has joined #ruby
qiukun has quit [Quit: qiukun]
oo_ has quit [Remote host closed the connection]
<minmax>
?ruboto
<ruboto>
I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
oo_ has joined #ruby
<minmax>
?who's ruboto
<ruboto>
I don't know anything about who
GriffinHeart has joined #ruby
<Ox0dea>
?nobody
<ruboto>
apeiros is nobody
solars has joined #ruby
pawnbox_ has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
wheresmyjetpack has quit [Quit: Konversation terminated!]
doertedev has joined #ruby
rdark has joined #ruby
Philipp__ has joined #ruby
michael_mbp has quit [Excess Flood]
GriffinHeart has quit [Remote host closed the connection]
pawnbox has joined #ruby
Kyuujitsu has quit [Ping timeout: 264 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
Kyuujitsu has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
qiukun has joined #ruby
Trynemjoel has joined #ruby
_ht has joined #ruby
michael_mbp has joined #ruby
busterarm has quit [Ping timeout: 265 seconds]
towski_ has quit [Remote host closed the connection]
Kyuujitsu has quit [Ping timeout: 244 seconds]
Kyuujitsu has joined #ruby
busterarm has joined #ruby
ndrei has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
leat has quit [Remote host closed the connection]
leat has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
Kyuujitsu has joined #ruby
TomyWork has joined #ruby
Lucky__ has quit [Ping timeout: 260 seconds]
devbug_ has quit [Read error: Connection reset by peer]
ayonkhan has joined #ruby
DoubleMalt has joined #ruby
pkh has joined #ruby
lampshades has quit []
pawnbox has quit [Remote host closed the connection]
ayonkhan has quit []
Iskarlar has joined #ruby
andikr has joined #ruby
sinkensabe has joined #ruby
bigkevmcd has joined #ruby
AlexRussia has joined #ruby
<baweaver>
Ox0dea: you on?
<Ox0dea>
baweaver: I was just about to step out for a few. Whatcha got?
Kyuujitsu has quit [Ping timeout: 244 seconds]
<baweaver>
Curious where in the world you found ?c
roolo has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 265 seconds]
astrobunny has quit [Remote host closed the connection]
jatb has quit [Ping timeout: 244 seconds]
CustosLimen has quit [Ping timeout: 265 seconds]
<Ox0dea>
I don't recall its ever being terribly uncommon?
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver>
trying to find where it's defined / hiding at.
<baweaver>
more of a curiosity really.
<Ox0dea>
baweaver: In parse.y?
Iskarlar has quit [Client Quit]
sinkensabe has quit [Ping timeout: 255 seconds]
Kyuujitsu has joined #ruby
qiukun has quit [Quit: qiukun]
workmad3 has joined #ruby
cschneid has joined #ruby
<baweaver>
ruby source reminds me what a C newbie I am
<Ox0dea>
What's strange is I'm reasonably certain I remember exactly when and where I first encountered the syntax.
<Ox0dea>
It was the same instance wherein I learned of Hash#invert.
<baweaver>
I'd never seen it until I ran into that one case in your non-an programs
<Ox0dea>
I'm sure it's significantly more common in older code.
qiukun has joined #ruby
roo7 has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
nhhagen has joined #ruby
<Ox0dea>
I learned of Hash#invert and ?c in the same video of a Japanese fellow showing off his brainfuck interpreter. The vagaries I'm able to recall are as yet insufficient to help me find the damned thing again. :/
<Ox0dea>
Christ, that must've been eight-ish years ago.
workmad3 has quit [Ping timeout: 255 seconds]
* Ox0dea
steps out.
<baweaver>
Not a problem
<baweaver>
grepping through all the ruby gems I have installed to find it
<adaedra>
Hi
<baweaver>
low
<bnagy>
I used to use it all the time in 1.8
<bnagy>
and ~never since :)
<baweaver>
I don't intend to use it either
<baweaver>
just knowing what and why it is was driving me up a bit of a wall
marr has joined #ruby
CustosLimen has joined #ruby
charliesome has quit [Quit: zzz]
omfgtora_ has joined #ruby
alveric__ has joined #ruby
<Ox0dea>
I'm of the opinion that characters should be distinct from strings, but I suppose that's just the C talking.
devoldmx has joined #ruby
<Ox0dea>
It's not of much consequence given that Ruby cleverly handles strings of length less than 23.
Kyuujitsu has quit [Ping timeout: 260 seconds]
lsmola has joined #ruby
eladmeidar has joined #ruby
<pipework>
Ox0dea: at least we have support for unicode and both IO and String has support for #chars, but yeah it's not a datatype.
Kyuujitsu has joined #ruby
_blank has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
jonee has quit [Ping timeout: 260 seconds]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
>> '%c' % 'ab' # pipework: Except sometimes sorta.
<ruboto>
Ox0dea, I'm terribly sorry, I could not evaluate your code because of an error: Curl::Err::ConnectionFailedError:Couldn't connect to server
omfgtora has joined #ruby
<pipework>
Ox0dea: I don't know what that's supposed to do, sorry. :(
<Ox0dea>
>> '%c' % 'ab'
<ruboto>
Ox0dea # => %c requires a character (ArgumentError) ...check link for more (https://eval.in/411632)
tubuliferous_ has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
<Ox0dea>
>> '' << 97 # Also this.
<Ox0dea>
apeiros: ruboto is on the fritz.
apofis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
omfgtora_ has quit [Ping timeout: 260 seconds]
yh has joined #ruby
clamstar has quit [Ping timeout: 252 seconds]
schaerli has quit [Ping timeout: 246 seconds]
verto has quit [Ping timeout: 265 seconds]
<ruboto>
Ox0dea, I'm terribly sorry, I could not evaluate your code because of an error: Curl::Err::ConnectionFailedError:Couldn't connect to server
Criten has quit [Remote host closed the connection]
senayar has joined #ruby
Criten has joined #ruby
verto has joined #ruby
tubuliferous_ has quit [Ping timeout: 265 seconds]
Renich has joined #ruby
Kyuujitsu has quit [Ping timeout: 256 seconds]
MrButh has joined #ruby
Iskarlar has joined #ruby
h4ckurate has quit [Quit: h4ckurate]
Kyuujitsu has joined #ruby
clamstar has joined #ruby
<MrButh>
teach me your ways you magical ruby developers you! teach me!
baweaver has quit [Remote host closed the connection]
djbkd has quit [Quit: My people need me...]
workmad3 has joined #ruby
<adaedra>
Only the bravest ones can be taught the holy ways
anisha has joined #ruby
pkh has quit [Ping timeout: 246 seconds]
keeguon has joined #ruby
arup_r has quit []
apofis has joined #ruby
arup_r has joined #ruby
charliesome has joined #ruby
<MrButh>
I commeth from a far away land of the Processor of Hypertext known to the common folk as PHP, where must my browser travel to gain the riches of your knowledge in Ruby and Ruby on Rails?
Tempesta has quit [Read error: Connection timed out]
<Ox0dea>
Being in there for the tests feels a little cheap on account of having found and suggested the fix(es) for the bug, but I'll take it.
<adaedra>
It's a good start
lxsameer_ is now known as lxsameer
<Ox0dea>
adaedra: I've got four outstanding proposals that I stand vehemently behind, but they've all died. :/
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<adaedra>
RIP
<Ox0dea>
C'est la mort.
<MrButh>
oh my holy gosh, I am getting advice from a famous Ruby'er! Thanks dude!
<adaedra>
:D
<Ox0dea>
I pretty much run into a use case for #grep-like #any? and #all? on a daily basis, and then I 0x5adface.
Kyuujitsu has quit [Ping timeout: 240 seconds]
<adaedra>
Looks like you need some 0xC0FEE
ndrei has quit [Ping timeout: 260 seconds]
<adaedra>
C0FFEE*
omegamike has joined #ruby
sameerynho has quit [Ping timeout: 246 seconds]
Kyuujitsu has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
glenn_ has joined #ruby
minotep has joined #ruby
Mendenhall has joined #ruby
omegamike has quit [Ping timeout: 250 seconds]
Kyuujitsu has quit [Ping timeout: 240 seconds]
Kyuujitsu has joined #ruby
astrobunny has joined #ruby
pawnbox has joined #ruby
Pumukel has joined #ruby
benlovell has joined #ruby
Iskarlar has joined #ruby
<MrButh>
cool read Ox0dea, thanks
yh has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
dented42 has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Iskarlar has quit [Client Quit]
<Ox0dea>
MrButh: Sure thing. I thought you might enjoy the style, if nothing else.
<Ox0dea>
Zen and all that.
railswebdev has joined #ruby
joonty has joined #ruby
joonty has quit [Client Quit]
Iskarlar has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
Kyuujitsu has quit [Ping timeout: 265 seconds]
Kyuujitsu has joined #ruby
<MrButh>
does anyone here work as a Ruby developer somewhere?
<sevenseacat>
most of us likely do.
<pipework>
quite a lot of us do
oo_ has quit [Remote host closed the connection]
<MrButh>
awesome, if I was to be interested in being a Ruby developer, at what point in my online training should I start looking for work? Like what tasks will I need to know how to accomplish or something?
bayed has joined #ruby
<MrButh>
or goals
<sevenseacat>
MrButh: well you said you come from PHP, take your answer to the same question for PHP, and str_replace Ruby for PHP in it
Mendenhall has quit [Ping timeout: 244 seconds]
<MrButh>
lol, nice.
yh has joined #ruby
<sevenseacat>
(I would have said gsub, but, yknow, dont know ruby yet)
Kyuujitsu has quit [Ping timeout: 260 seconds]
|\|370 has joined #ruby
Kyuujitsu has joined #ruby
<MrButh>
is anyone working on something in their company or outside that I can contribute to?
<pipework>
MrButh: github.com
<adaedra>
:D
arup_r has quit [Remote host closed the connection]
<Ox0dea>
MrButh: How many new moons have hitherto illuminated your path to Ruby enlightenment?
yh has quit [Ping timeout: 246 seconds]
xcesariox has joined #ruby
helpa-bot has joined #ruby
Kyuujitsu has quit [Ping timeout: 244 seconds]
|\|370 has quit [Ping timeout: 260 seconds]
<yorickpeterse>
morning
<pawnbox>
Hey guys! Could you tell me something about rubyspec project? What exactly it is?
helpa-bot has quit [Remote host closed the connection]
<pipework>
A project to specify ruby
<pipework>
Interestingly enough, it's executable.
helpa-bot has joined #ruby
Lildirt has quit [Ping timeout: 252 seconds]
khebbie has quit [Remote host closed the connection]
helpa-bot has quit [Remote host closed the connection]
helpa-bot has joined #ruby
<pawnbox>
Is it currently maintained?
pkh has joined #ruby
<sevenseacat>
yes.
<pipework>
pawnbox: Have you attempted to look it up for yourself?
pkh has quit [Max SendQ exceeded]
helpa-bot has quit [Remote host closed the connection]
helpa-bot has joined #ruby
pkh has joined #ruby
bffff_ has quit [Quit: Connection closed for inactivity]
<pawnbox>
So i was reading the blog posted on the site and guy said he's ending the project
khebbie has joined #ruby
senayar has quit [Remote host closed the connection]
Ox0dea has quit [Disconnected by services]
Ox0dea has joined #ruby
senayar has joined #ruby
nhhagen has quit [Read error: Connection reset by peer]
<pipework>
And did you google it?
Royalb15 has joined #ruby
Lildirt has joined #ruby
helpa-bot has quit [Remote host closed the connection]
<sevenseacat>
why would you do that?
helpa-bot has joined #ruby
<sevenseacat>
i mean, information on the internet is never out of date, is it
Iskarlar has quit [*.net *.split]
benlovell has quit [*.net *.split]
minotep has quit [*.net *.split]
Tempesta has quit [*.net *.split]
rdark has quit [*.net *.split]
aceRacer has quit [*.net *.split]
joneshf-laptop has quit [*.net *.split]
Mia has quit [*.net *.split]
njr has quit [*.net *.split]
avitzurel has quit [*.net *.split]
FooMunki has quit [*.net *.split]
myztic has quit [*.net *.split]
s00pcan has quit [*.net *.split]
Rinzlit1 has quit [*.net *.split]
mkosaki has quit [*.net *.split]
jgpawletko has quit [*.net *.split]
shellie_ has quit [*.net *.split]
helpa has quit [*.net *.split]
sevin has quit [*.net *.split]
swills has quit [*.net *.split]
tsvenson has quit [*.net *.split]
lampd1 has quit [*.net *.split]
emdub has quit [*.net *.split]
ZYPP has quit [*.net *.split]
adam| has quit [*.net *.split]
dont-panic has quit [*.net *.split]
monsieurp has quit [*.net *.split]
chuy has quit [*.net *.split]
chihhsin has quit [*.net *.split]
AnoHito has quit [*.net *.split]
Dopagod has quit [*.net *.split]
_5moufl has quit [*.net *.split]
shadeslayer has quit [*.net *.split]
nlsun has quit [*.net *.split]
mrsolow has quit [*.net *.split]
Kharma has quit [*.net *.split]
graft has quit [*.net *.split]
shortdudey123 has quit [*.net *.split]
iszak has quit [*.net *.split]
BraddPitt has quit [*.net *.split]
oz has quit [*.net *.split]
Darkwater has quit [*.net *.split]
RTG` has quit [*.net *.split]
yie has quit [*.net *.split]
adzuci has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
brainslug has quit [*.net *.split]
systemd0wn has quit [*.net *.split]
cescalante has quit [*.net *.split]
phreakocious has quit [*.net *.split]
ashleyhindle has quit [*.net *.split]
MisterRusty has quit [*.net *.split]
irk_ has quit [*.net *.split]
martinbjeldbak has quit [*.net *.split]
ThaiWood has quit [*.net *.split]
C0deMaver1ck_ has quit [*.net *.split]
Nirgali42 has quit [*.net *.split]
Killerkeksdose has quit [*.net *.split]
olblak has quit [*.net *.split]
drzel_ has quit [*.net *.split]
bmn_ has quit [*.net *.split]
justinmcp has quit [*.net *.split]
shawnacscott has quit [*.net *.split]
Biohazard_ has quit [*.net *.split]
peterhu has quit [*.net *.split]
wmoxam has quit [*.net *.split]
petridish has quit [*.net *.split]
apeiros has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
madhatter has quit [*.net *.split]
nirix has quit [*.net *.split]
rikai has quit [*.net *.split]
pleiosaur has quit [*.net *.split]
Flipez has quit [*.net *.split]
scottstamp has quit [*.net *.split]
EnergyCoffee has quit [*.net *.split]
drager has quit [*.net *.split]
ec\_ has quit [*.net *.split]
MuffinPimp has quit [*.net *.split]
spacemud has quit [*.net *.split]
kenichi has quit [*.net *.split]
<pipework>
nice netsplit
quimrstorres has joined #ruby
wookiehangover has quit [Ping timeout: 246 seconds]
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
<pipework>
So I'm trading freenode's splits for handling availability on my lonesome?
Kyuujitsu has joined #ruby
skade has joined #ruby
Iskarlar has joined #ruby
benlovell has joined #ruby
minotep has joined #ruby
Tempesta has joined #ruby
rdark has joined #ruby
aceRacer has joined #ruby
joneshf-laptop has joined #ruby
Mia has joined #ruby
njr has joined #ruby
avitzurel has joined #ruby
myztic has joined #ruby
FooMunki has joined #ruby
s00pcan has joined #ruby
Rinzlit1 has joined #ruby
mkosaki has joined #ruby
jgpawletko has joined #ruby
shellie_ has joined #ruby
sevin has joined #ruby
swills has joined #ruby
tsvenson has joined #ruby
lampd1 has joined #ruby
emdub has joined #ruby
adam| has joined #ruby
ZYPP has joined #ruby
dont-panic has joined #ruby
monsieurp has joined #ruby
chihhsin has joined #ruby
Nirgali42 has joined #ruby
cescalante has joined #ruby
MisterRusty has joined #ruby
Kharma has joined #ruby
RTG` has joined #ruby
AnoHito has joined #ruby
Skelz0r has joined #ruby
BraddPitt has joined #ruby
graft has joined #ruby
mrsolow has joined #ruby
Killerkeksdose has joined #ruby
yie has joined #ruby
bmn_ has joined #ruby
C0deMaver1ck_ has joined #ruby
ashleyhindle has joined #ruby
oz has joined #ruby
shadeslayer has joined #ruby
apeiros has joined #ruby
Biohazard_ has joined #ruby
scottstamp has joined #ruby
kenichi has joined #ruby
chuy has joined #ruby
justinmcp has joined #ruby
ThaiWood has joined #ruby
drzel_ has joined #ruby
irk_ has joined #ruby
pleiosaur has joined #ruby
rikai has joined #ruby
dostoyevsky has joined #ruby
petridish has joined #ruby
Flipez has joined #ruby
iszak has joined #ruby
phreakocious has joined #ruby
MuffinPimp has joined #ruby
peterhu has joined #ruby
adzuci has joined #ruby
nirix has joined #ruby
spacemud has joined #ruby
shawnacscott has joined #ruby
martinbjeldbak has joined #ruby
Darkwater has joined #ruby
madhatter has joined #ruby
brainslug has joined #ruby
drager has joined #ruby
wmoxam has joined #ruby
shortdudey123 has joined #ruby
nlsun has joined #ruby
EnergyCoffee has joined #ruby
_5moufl has joined #ruby
Dopagod has joined #ruby
systemd0wn has joined #ruby
olblak has joined #ruby
ec\_ has joined #ruby
khebbie has quit [Ping timeout: 260 seconds]
tanath has joined #ruby
ruboto has joined #ruby
nhhagen has joined #ruby
Tempesta has quit [Max SendQ exceeded]
Tempesta has joined #ruby
<apeiros>
Ox0dea: seems it had a thread overload
tanath has left #ruby [#ruby]
* apeiros
crosses fingers for less drama this week
<apeiros>
working on the update
senayar has quit [Remote host closed the connection]
yh has quit [Ping timeout: 260 seconds]
senayar has joined #ruby
<adaedra>
?drama
<ruboto>
I don't know anything about drama
Kyuujitsu has quit [Ping timeout: 240 seconds]
Kyuujitsu has joined #ruby
<Ox0dea>
rbx>> RUBY_ENGINE
wookiehangover has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
<yorickpeterse>
Ox0dea: eval.in only supports cruby
<Ox0dea>
apeiros: I trust you're not interested in interfacing with another evaluator?
<yorickpeterse>
pawnbox: there's a fork of RubySpec at github.com/ruby/rubyspec
Ox0dea has quit [Read error: No route to host]
<yorickpeterse>
The original one is no longer maintained
<adaedra>
Good bye Ox0dea
Ox0dea has joined #ruby
<Ox0dea>
Hello, adaedra.
<adaedra>
:)
<Ox0dea>
Linux 4.1.4 doesn't like me. :(
<adaedra>
Ah, I'm still at 4.1.3
<Ox0dea>
I suppose it could be systemd 224, but I'd rather it wasn't.
yh has joined #ruby
Kyuujitsu has quit [Ping timeout: 246 seconds]
<yorickpeterse>
still on 4.0
charliesome has quit [Quit: zzz]
<yorickpeterse>
every time I upgrade something breaks so I'm waiting it out to mature a bit
<Ox0dea>
Sage advice, to be sure.
Rinzlit2 has joined #ruby
jonee has joined #ruby
niko has quit [Ping timeout: 608 seconds]
OrbitalKitten has joined #ruby
Nimf has joined #ruby
yh has quit [Ping timeout: 252 seconds]
Rinzlit1 has quit [Ping timeout: 265 seconds]
<tbuehlmann>
is there a more idiomatic way to write the following? /(#{Regexp.escape(some_string)})/i
michael_mbp has quit [Excess Flood]
pyon has quit [Ping timeout: 250 seconds]
<yorickpeterse>
Not more idiomatic per se
ndrei has joined #ruby
<yorickpeterse>
but you can write Regexp.new(Regexp.escape(some_string), Regexp::IGNORECASE)
<jhass>
don't need the capture group, just check the entire match
<bougyman>
Regexp.new(Regexp.escape("food"), 'i')
<yorickpeterse>
but that's not really any better
<bougyman>
=> /food/i
<bougyman>
dunno that's idiomatic.
<bougyman>
just different and more verbose.
oo_ has joined #ruby
<bougyman>
and doesn't have your captures, though if your capturing the whole regexp captures are kinda pointless.
apfeluser has joined #ruby
Mendenhall has joined #ruby
<Ox0dea>
Unless you prefer to say $1 instead of $~.
nik0 has joined #ruby
<jhass>
I prefer none of both
michael_mbp has joined #ruby
<jhass>
tbuehlmann: depending on your usecase for constructing that thing in the first place there might be alternatives
htmldrum has quit [Ping timeout: 244 seconds]
<Ox0dea>
jhass: You wanted "neither", I suspect.
aceRacer has quit [Quit: ChatZilla 0.9.91.1 [Firefox 39.0/20150629114848]]
<tbuehlmann>
jhass, I'm sure there is
withnale____ has joined #ruby
Zai00 has joined #ruby
nolic has joined #ruby
<gregf_>
or prolly %r{food}i
<tbuehlmann>
writing a highlight method that simply highlights certain strings in a string
cambridge has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
<tbuehlmann>
having this right now: input.to_s.gsub(/(#{Regexp.escape(highlight)})/i, '<strong class="highlight">%s</strong>' % '\1')
<Ox0dea>
tbuehlmann: Zalgo is coming for you.
<Ox0dea>
The <center> cannot hold.
scorp007 has joined #ruby
Violentr has joined #ruby
<jhass>
mmh, I wish there would be a case ignore version for .gsub(String) { }
<jhass>
*ignoring
<Ox0dea>
heftig: Why the hard dependency on LLVM 3.5?
Trynemjoel has joined #ruby
TvL2386 has quit [Ping timeout: 252 seconds]
<scorp007>
In the C API, does rb_rescue get called only after any in-script rescue blocks are checked? I.e. is it the outer-most handler, or inner most?
<scorp007>
I think I'm seeing it get called before the script handler gets a chance.
<scorp007>
I called rb_rescue2 with the top-level exception class to implement an "unhandled exception filter" in my embedding
<bougyman>
rescues are called from the most specific to the least, innermost to outermost when equal specificity.
soc42 has joined #ruby
<scorp007>
bougyman: that's what I'd guess, but it seems like the script isn't getting a chance to run? Here's what's happening:
RegulationD has joined #ruby
<bougyman>
which exception is it?
<bougyman>
some aren't handled by a bare rescue.
<bougyman>
like files not existing and certain other io ones.
<scorp007>
debug.rb has a require 'readline' in a rescue block. They filter for LoadError. I don't have readline on my system, so a LoadError is raised
<Ox0dea>
Also SyntaxError.
<tbuehlmann>
thanks for the input
<scorp007>
but debug.rb handles it by itself
<bougyman>
right.
unshadow has joined #ruby
<scorp007>
problem is, before debug.rb gets a chance to handle it, I get called.
<scorp007>
which I don't want to be
<bougyman>
huh?
<bougyman>
is this a threading thing?
<scorp007>
I want debug.rb to handle it -- not propagate it up to me
<scorp007>
no threading
<scorp007>
I don't think
<bougyman>
so what's in rescue LoadError's block?
Trynemjoel has quit [Ping timeout: 250 seconds]
<scorp007>
a graceful fallback (debug.rb is part of the standard lib)
pawnbox has quit [Read error: Connection reset by peer]
<scorp007>
they hand-roll their own readline if the native module isn't available
frem has quit [Quit: Connection closed for inactivity]
<scorp007>
My entire script runs under one big rescue, catching all exceptions:
safeforge has quit [Remote host closed the connection]
|\|370 has joined #ruby
duncannz has quit [Ping timeout: 264 seconds]
safeforge has joined #ruby
Kyuujitsu has joined #ruby
|\|370 has quit [Ping timeout: 244 seconds]
<Ox0dea>
yorickpeterse: If you're using an ext filesystem, tune2fs will tell you how many inodes are free and thus capable of holding another assets directory.
c0m0 has joined #ruby
Kyuujitsu has quit [Ping timeout: 246 seconds]
Kyuujitsu has joined #ruby
<Ox0dea>
s/holding/pointing to/, I suppose, and I'm sure there exist similar tools for other filesystems.
OrbitalKitten has joined #ruby
pawnbox has joined #ruby
izabera has joined #ruby
yh has joined #ruby
hmnhf has quit [Quit: Konversation terminated!]
<izabera>
hi guys, i have a problem with a program written in ruby and i know that this is not the right place but i'd appreciate a pointer in the right direction
quimrstorres has quit [Remote host closed the connection]
<izabera>
i tried installing rhc for openshift and i get this error /usr/lib/ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'highline' (~> 1.6.11) - did find: [highline-1.7.2] (Gem::LoadError)
chthon has joined #ruby
astrobunny has quit [Remote host closed the connection]
quimrstorres has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
izabera: probably something missing from the program's specification. if you're not a ruby programmer, you might get better advice directly from the program's authors
j4cknewt has quit [Remote host closed the connection]
nolic has joined #ruby
oo_ has joined #ruby
rubytor has joined #ruby
<izabera>
i'll try
<izabera>
the program's author is red hat...
<shevy>
can you publish the source? if you have access to .gemspec you can rebuild the gem with a different specification too
<tsunamie>
can someone help me, I do't know how to added the entry I parse out of the file into the Master template I define above under the array of packages
<adaedra>
you may want to save result of JSON.parse in a variable
<izabera>
stupid question: why would i want or need to learn ruby?
<[k->
what kind of response do you want?
Phoop has joined #ruby
<izabera>
idk
<izabera>
i'm just chatting
nhhagen has quit [Remote host closed the connection]
<izabera>
people here have been nice before
<MrButh>
ruby developers get paid better than others
<MrButh>
I believe it's one of the top
<[k->
humans aren't good with broad scope
<izabera>
ok better pay is a good point
<izabera>
let me narrow the scope: i'm a programmer and i'm good at c
<izabera>
and c like languages
<MrButh>
but hey, real question... so I installed the latest ruby and ruby-dev and yet when I try to gem install rails it fails with a "failed to build gem native extension." error
<izabera>
all i'm reading on the web is "ruby is good as a first language"
<[k->
dynamicnism allows you to do metaprogramming easily and abstracts(?) the chore of repeating things
<[k->
duck typing allows you to hide implementatiom
Musashi007 has quit [Quit: Musashi007]
<[k->
details
<[k->
you don't need an ide for Ruby
schaerli_ has joined #ruby
<[k->
you can use Ruby for quick prototyping
<[k->
expressiveness reduces pain of imperativeness
<izabera>
you're good
eggoez has joined #ruby
sarkyniin has joined #ruby
<[k->
if you wouldn't mind, join me in haskell land!
sameerynho has joined #ruby
schaerli has quit [Ping timeout: 272 seconds]
<izabera>
haskell is an alien language that i'm physically unable to learn
sarkyniin has quit [Client Quit]
<[k->
you have to give it a few tries
<shevy>
:)
sinkensabe has quit [Remote host closed the connection]
<shevy>
way to waste time!
<[k->
i did too, and it becomes clearer each time
<shevy>
no problem
<shevy>
ruby can be clear on the first try
<[k->
ruby idioms like 5.times {} are incredibly expressive and it abstracts away the loop
<apeiros>
but yeah, no idea what happened with ruboto
<Takumo>
yeah, where is ruboto?
<[k-_>
you took ruboto away!
<apeiros>
yorickpeterse: no. use strptime.
<apeiros>
you use parse if you have no clue about the format and don't care if it gets it wrong.
<yorickpeterse>
apeiros: that only works if you know the format beforehand, or at least can guarantee it
Nimf has quit [Read error: Connection reset by peer]
<apeiros>
and with iso8601 dates, you use iso8601
<Ox0dea>
Inconceivable.
Askilada has joined #ruby
<apeiros>
yorickpeterse: if you don't know the format, you probably do something wrong.
<apeiros>
and Takumo gave a format
<sunslide>
hi guys, this is something fairly simple I can't seem to get straight.. I have some strings with wildcards ('*' throughout the string) and trying to compare it with another string.. not exactly regular expressions and I'm not sure how to use it with the /string/ syntax of Regexp.. anyone? it's pretty much says that "*Hello*World*" should match "yey Hello w00t World" to put simply
<Takumo>
indeed, I'm expecting only ISO8601
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
<shevy>
long live ISO!
jonee has joined #ruby
qiukun has quit [Quit: qiukun]
<apeiros>
though, seems ruby doesn't like +0000, wants +00:00…
<[k-_>
/^#{str.gsub /*/, ".*?"}$/
<[k-_>
look how good i am in regexp!
nhhagen has joined #ruby
<sunslide>
woah dude
<Ox0dea>
[k-_: target of repeat operator is not specified: /*/
<Ox0dea>
Look how shit you are at regex. :P
<yorickpeterse>
ヽ( >∀<)ノ
minotep has joined #ruby
<[k-_>
/^#{str.gsub /\*/, ".*?"}$/
<[k-_>
tada! magnifique!
<Ox0dea>
[k-_: Isn't `.*?` redundant?
baroquebobcat has joined #ruby
<[k-_>
it will backtrack a lot otherwise
wpp has joined #ruby
<Ox0dea>
But pathological regexen are best regexen.
nolic has quit [Quit: Lost terminal]
<centrx>
Your boxen have dysentary
<Ox0dea>
Needed more cowbell.
<sunslide>
so "yey Hello World yey" =~ /^#{"*Hello*World*".gsub /\*/, ".*?"}$/ ?
<sunslide>
or is it the other way around?
<Ox0dea>
sunslide: Either will do.
<Ox0dea>
Ruby loves you.
<sunslide>
getting 0 :(
<centrx>
All hail Ruby
<[k-_>
.match if you want captures
<Ox0dea>
sunslide: That means it matched at the first character.
<sunslide>
no captures just 0/1
<centrx>
sunslide, 0 is true
<sunslide>
oh, did it
<sunslide>
cool
leafybasil has quit [Ping timeout: 244 seconds]
<[k-_>
-1 is false
<Ox0dea>
[k-_: Stahp.
<Ox0dea>
This is not #javascript.
<centrx>
confusing
jtdoncas has joined #ruby
<centrx>
Ruby forgive him
<sunslide>
confusing indeed
<[k-_>
in javascript, 0 is false
<Ox0dea>
sunslide: It doesn't actually return -1 on a failure to match.
<Ox0dea>
It'll return nil.
<centrx>
In Javascript, all is false!
<[k-_>
SUCH TYPE MISMATCH!
<Ox0dea>
String#=~ returns the index at which the first match occurred, or nil in the case of no matches.
<Ox0dea>
It makes plenty of sense.
<sunslide>
yes it does
<sunslide>
thank you all!
<jhass>
alright, opinion poll: do you prefer "foo #{bar 'baz'}" or "foo #{bar "baz"}"
<[k-_>
do you want captures?
<Ox0dea>
jhass: The former is obviously easier for a human being to quickly parse.
<[k-_>
jhass: error, unexpected baz
<sunslide>
hmm nope the index is good enough
<jhass>
[k-_: nope, method call to bar, passing the string "baz"
gagrio has quit [Ping timeout: 250 seconds]
<[k-_>
i meant the """"
<jhass>
[k-_: it's valid, try it
<Ox0dea>
[k-_: You're lost without ruboto, mate. :P
<[k-_>
ruby can do what now?
<Ox0dea>
All the things.
<[k-_>
i know %q((((())))) works
<[k-_>
but """""""" too?
michael_mbp has quit [Excess Flood]
<Ox0dea>
There are only two or three constructs you can't interpolate; it's beautiful madness.
<Ox0dea>
"foo" "bar" is concatenation.
dimasg has joined #ruby
michael_mbp has joined #ruby
<[k-_>
but "foo" baz "}" isnt!
<jhass>
[k-_: it's "foo #{"baz"}"
<Ox0dea>
[k-_: You still haven't installed SL4A, have you?
<[k-_>
what is that?
<Ox0dea>
Scripting Layer 4 Android.
<Ox0dea>
Ruby on your phone.
<Ox0dea>
You need it. :P
<[k-_>
it's so big and fat
<[k-_>
ruby is fat
<MrButh>
is it?
<Ox0dea>
>> Time.now.year
<[k-_>
ghc is fatter tho, i think
abreu has joined #ruby
<jhass>
apeiros: I know you're in the prefer " camp like me, what about inside interpolation ^ ?
pawnbox has quit [Remote host closed the connection]
<apeiros>
jhass: still "
baroquebobcat has quit [Quit: baroquebobcat]
<apeiros>
jhass: though when strings get noisy, I tend to use %{}
<apeiros>
ok, still no ruboto
<apeiros>
bad ruboto, bad. no botsnack.
<[k-_>
irb(main):001:0> bar = ->_ { _ }
<[k-_>
irb(main):002:0> "foo #{bar "baz"}"
<[k-_>
irb(main):003:0> "foo #{bar.call "baz"}"
<[k-_>
=> "foo baz"
<[k-_>
:OOOOOOOO
<Ox0dea>
[k-_: "Fatter" is a kindness there.
<Ox0dea>
~ $ for pkg in ruby ghc; do pacman -Qql $pkg | xargs stat -c '%s' | paste -sd + | bc; done
<Ox0dea>
22154401
<Ox0dea>
943818984
<Ox0dea>
Like, holy shit.
<[k-_>
haskell platform?
<[k-_>
or bare minimum
ruboto has joined #ruby
<Ox0dea>
[k-_: That's almost a gig.
<jhass>
I'm kinda split, I do think using ' is easier to read there, but it does violate the prefer " rule
livathinos has joined #ruby
<Ox0dea>
jhass: I'm phoning the authorities.
<[k-_>
jhass: english uses "quote 'in a quote'"
<jhass>
the rule is self set, I'm the authority :P
<Ox0dea>
[k-_: And British English flips them.
<Ox0dea>
Yay, standardization!
<apeiros>
I wonder what killed ruboto. log says nothing :-/
avril14th has quit [Remote host closed the connection]
rideh has joined #ruby
<ElShafei>
Is there any good reference to show how to design and implement Mobile Back-end using RoR ?
<[k-_>
oh, it's the example!
<jhass>
?rails ElShafei
<ruboto>
ElShafei, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<ElShafei>
Thank You :-)
rideh has quit [Client Quit]
<Ox0dea>
[k-_: Would you prefer being able to write native Ruby like that?
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Toska has joined #ruby
TaxtacalJackl has joined #ruby
jtdoncas has quit [Quit: WeeChat 1.1.1]
rafaelabreu has joined #ruby
<[k-_>
too bad ruby isn't equiped for composing!
<[k-_>
map(["a"]) { |_| "b" }
<[k-_>
(irb):2:in `method_missing': stack level too deep (SystemStackError)
<[k-_>
it doesnt work :(
tkuchiki has joined #ruby
<Toska>
Does anyone know if it's possible to use the Dir[] syntax to get only directories and files with a proper extension? I am trying Dir[File.join('somepath', '**/*')] and would like to return only directories or files ending in .md or .txt
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-_>
Dir["*.md"]?
<[k-_>
im not sure how glob patterns work though
<Toska>
That would get me only md files
<Toska>
It's something like:
<Toska>
Dir['/path/**/*.{md,txt}'] but this only gets me the files, not subdirectories
sdwrage has joined #ruby
nolic has joined #ruby
cambridge has joined #ruby
<[k-_>
directories and (files with proper extension)?
<Ox0dea>
Toska: That should do it.
<nolic>
exit
<Toska>
Hrm, let me take another look
<nolic>
oups
<Toska>
Perhaps I am missremembering what I had and put the correct syntax here!
nolic has quit [Client Quit]
<adaedra>
oui oups
dimasg has quit [Quit: leaving]
ElShafei has quit [Quit: Leaving]
dimasg has joined #ruby
<Ox0dea>
[k-_: That map() works fine for me?
Igorshp has joined #ruby
<[k-_>
in irb?
<Ox0dea>
[k-_: `_` is special in irb.
Askilada has quit [Read error: Connection reset by peer]
<Ox0dea>
Toska: I think you must be misinterpreting your results.
<Toska>
Ox0dea: Naw, it looks by the docs it's not possible.
<Toska>
Ox0dea: Not in one call anyhow.
<Ox0dea>
Toska: I'm doing it right now!
<[k-_>
why doesnt it work :(
<[k-_>
it worked for you and ruboto
<Toska>
Ox0dea: And you are getting back something like this: ['a_directory', 'a_file_with.md']?
<Toska>
Ox0dea: I am only getting back files named with .md, directories completely excluded
<[k-_>
Ox0dea: if i dont do the map on a new line, it works
<Ox0dea>
Toska: Ah, my apologies, I didn't realize it was your desire to do something so strange. :P
<Toska>
Ox0dea: Haha, no worries.
<[k-_>
if i do it on a separate line, it breaks
<[k-_>
Ox0dea: can you confirm?
<Ox0dea>
Toska: Are you certain you need the directories as well?
malconis has joined #ruby
<sunslide>
OK, might be that it's not the trick for me :( any chance there are *wildcards* in ruby and not regexps?
<Ox0dea>
[k-_: I'm sure it's somehow to do with defining a top-level #method_missing.
<sunslide>
or a flag I could give Regexp to behave as a wildcard and not a full-scale regex?
malconis has quit [Remote host closed the connection]
<[k-_>
Ox0dea: but you said it works for you!
<Toska>
Ox0dea: Well, I am still trying to figure the best way to go about what I am doing, part of me says I should have directories, the other part says I can simplify this since I implicitely have the directories with the file names. But my task seems like it would be better suited having the directories act as a sort of container object.
<Ox0dea>
[k-_: Because I did it all on one line.
alveric__ has quit [Remote host closed the connection]
cambridge has quit [Quit: cambridge]
Guest50 has joined #ruby
malconis has joined #ruby
<[k-_>
well then you did not confirm it then!
<Toska>
Ox0dea: I am building a proxy into some files that are basically the site documentation, so the url matches the file name, but I want a navigation that matches the file structure.
<[k-_>
how could you! ;-;
nateberkopec has joined #ruby
<Ox0dea>
Toska: Seems reasonable enough, but the subdirectories are still available to you from the results of that glob.
<Toska>
Ox0dea: For sure, and that's the way I think it's going to be best to approach it from. I have subclassed the Pathname class and created an obeject for each file, shouldn't be too hard to simplify this a bit.
minmax has quit [Quit: WeeChat 0.4.3]
rafaelabreu has joined #ruby
tmtwd has joined #ruby
<Toska>
Ox0dea: Oh I hadn't even thought of doing it that way, smart! Thanks!
<Ox0dea>
Happy to help.
<[k-_>
such reflection
SpecialBlue has joined #ruby
havenwood has joined #ruby
<[k-_>
much powerful
Musashi007 has joined #ruby
<[k-_>
izabera: ^
<izabera>
o.o
<izabera>
looks like dogescript
<MrButh>
ok, so I did "bin/rails server" but I don't see anything to show the server is running like node.js does. Is it suppose to have something?
<Ox0dea>
Smells like a troll.
<adaedra>
?rails MrButh
<ruboto>
MrButh, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<[k-_>
izabera: hmm?
khebbie has quit [Remote host closed the connection]
<MrButh>
I can't talk in rubyonrails though
<Ox0dea>
?rails MrButh
<ruboto>
MrButh, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Ox0dea>
Read the thing this time. :P
wpp has quit []
<adaedra>
Ox0dea: too many words.
sgambino has joined #ruby
<[k-_>
izabera: ruby is a reflective language
<Ox0dea>
[k-_: izabera was commenting on your diction, not Method#to_proc.
<heftig>
Ox0dea: hm? on rubinius?
<Ox0dea>
Oui.
<heftig>
as opposed to?
<Ox0dea>
The latest?
<heftig>
llvm 3.6 removes the old JIT and only has MCJIT
<[k-_>
that's why i dont look at other's ruby code!
<adaedra>
not all of them
Muhannad has joined #ruby
<[k-_>
s/r's/rs'
<havenwood>
dkakoti: the easy pickings often get done quickly but if you read a lot of code you'll find stuff!
<shevy>
@@colour = "colour"
<shevy>
aaah the beauty of class variables
<adaedra>
yuck
rbennacer has joined #ruby
<[k-_>
look, haskell is only just behind ruby!
Muhannad has quit [Read error: Connection reset by peer]
Vile` has quit [Ping timeout: 246 seconds]
<dkakoti>
@Ox0dea thanks lot
<Ox0dea>
shevy: Module variables are slightly more defensible.
benlovell has joined #ruby
<shevy>
this is the original code http://pastie.org/10329493 - it is funny in that the variable name in itself is written in UK english, but it may include the US english variant
<dkakoti>
@havenwood u r rit.
<Ox0dea>
Wat.
lannonbr has joined #ruby
<adaedra>
If you're about saving letters, you can drop the @ too
<havenwood>
dkakoti: I'd suggest reviewing documentation to find examples that don't work to fix. Or places to improve. That's really helpful and gets you up to speed on the code while you're doing it.
<adaedra>
Ox0dea: so if I don't like JavaScript, it can only be because I read things saying I should not like it?
silkfox has joined #ruby
<Ox0dea>
adaedra: Well, let's get right down to the thing; what don't you like about JavaScript?
rbennacer has quit [Remote host closed the connection]
<[k-_>
YES, YES!
djcp has joined #ruby
<havenwood>
Javascript has kidnapped us and the Stockholm syndrome is setting in...
* [k-_
bookmarks
<Ox0dea>
[k-_: It's so good.
<Ox0dea>
Reginald Braithwaite : JavaScript :: Tom Stuart : Ruby
<[k-_>
Reginald Braithwaite to javascript :: tom stuart to ruby
<Ox0dea>
Thanks, math guy.
MatrixBridge has joined #ruby
<[k-_>
i dont understand the ::
<Ox0dea>
"as".
<adaedra>
Ox0dea: A messy and incomplete library, no proper support for hashes, and the fucked-up object system
<yorickpeterse>
[k-_: it's for those too cool to just write English
<yorickpeterse>
adaedra: EM6 has a Map
TaxtacalJackl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
adaedra: Very insightful.
<adaedra>
Yeah, EM6
<yorickpeterse>
and prototype OO is pefectly fine
<adaedra>
We're far from here
<yorickpeterse>
However, prior to ES6 there wasn't really a proper message passing system
<[k-_>
Ox0dea: how many bookmarks do you have
<yorickpeterse>
I _think_ ES6 now has a method_missing of sorts
<[k-_>
yay, metaprogramming in ES6!
<[k-_>
fun!
jgpawletko has quit [Quit: jgpawletko]
tkuchiki has quit [Remote host closed the connection]
jgpawletko has joined #ruby
<Ox0dea>
yorickpeterse: Firefox has had noSuchMethod() for ages.
paulcsmith has joined #ruby
whippythellama has joined #ruby
<yorickpeterse>
Ox0dea: since when is Firefox the standard?
<yorickpeterse>
oh right, it isn't
<[k-_>
i was surprised that an impure function could be turned into a pure one easily
<havenwood>
Elm or Clojurescript?
<Ox0dea>
[k-_: It's all about hiding what you did.
<ebarrett>
chrisseaton: here?
<[k-_>
javascript
<[k-_>
Ox0dea: elaborate?
jeremy04 has quit [Remote host closed the connection]
dc has quit []
<Ox0dea>
Wrapping the impurities to expose a pure interface?
jeremy04 has joined #ruby
<[k-_>
SUCH CLEVER!
<adaedra>
Ox0dea: but if I read you, we should just follow the crowd and do what is most popular?
M-mistake has joined #ruby
M-prosodyContext has joined #ruby
<Ox0dea>
adaedra: Ad hominem means you lose.
<[k-_>
that is why we should learn haskell!
<shevy>
haskell is not used for real things
<Ox0dea>
Haskell was used to send a burrito to the moon in a spacesuit.
<adaedra>
Ox0dea: nonono, you misread, I react to "Being on an inevitable bandwagon into the future, for better or worse"
<havenwood>
And that burrito was awarded a PhD.
<[k-_>
haskell is used for real things
tkuchiki has joined #ruby
<Ox0dea>
adaedra: If you don't realize that JavaScript is the dominant language with which software has begun to eat the world, I can only advise you to remove the blindfold, bud.
<yorickpeterse>
?offtopic
<ruboto>
this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<yorickpeterse>
yay I get to use it
<Ox0dea>
That burrito's name? Moonad I.
<[k-_>
facebook uses it to check for abusive messages
<adaedra>
meh.
turb0 has quit [Quit: Lost terminal]
surs has joined #ruby
surs has quit [Changing host]
surs has joined #ruby
casadei_ has joined #ruby
<shevy>
facebook itself is massive abuse!
<adaedra>
Ox0dea: I'm curious to see where you read I don't see that.
<[k-_>
shevy: just like unusable ruby code!
<shevy>
Ox0dea but javascript only won because javascript has the bigget possible market :(
hoey__ is now known as hoey
<atmosx>
[k-_: hoh do you know? :-P
<atmosx>
s/hoh/how
<Ox0dea>
shevy: Aye, we've been doomed to this fate from the start.
<[k-_>
know what?
<atmosx>
that fb uses haskell
<Ox0dea>
shevy: Better to get to know this inevitable devil, no?
<shevy>
the empire must strike back
<[k-_>
they made a blog post?
<atmosx>
[k-_: oh, I'll google it
<Ox0dea>
shevy: We can't rebuild the past.
<shevy>
the weak man adjusts to the world
<shevy>
the strong man adjusts the world to himself
<[k-_>
that's why the world hardly changes
prefixed has joined #ruby
<Ox0dea>
shevy: A worthless platitude, I'm sure you realize.
<shevy>
as you may have noticed [k-_
<yorickpeterse>
Ox0dea: we might not be able to rebuild the past, but we can change the future
<shevy>
Ox0dea did not write that javascript was used to fly to the moon - it was haskell :)))
<yorickpeterse>
Whatever happend in the past is not an excuse for the general sorry state of scripting in the browsers
krz has joined #ruby
<Ox0dea>
yorickpeterse: Gonna stop using a browser any time soon?
<yorickpeterse>
That's not just limited to JS being poop, but also JS being the only language
sameerynho has quit [Quit: Leaving]
<yorickpeterse>
webassembly is pretty interesting
<yorickpeterse>
might solve that problem
<[k-_>
people are making apps in javascript, brackets, atom
<adaedra>
Yeah, but it's not because some people are doing it that everyone has too
<adaedra>
And it's not because lots of people use JavaScript that I have to like it
Royalb15 has quit [Quit: Leaving]
<adaedra>
Dark future we have if we're doomed to only one language
skyrocker has joined #ruby
skyrocker has left #ruby [#ruby]
<shevy>
php
<Ox0dea>
adaedra: Why is that "dark"?
<shevy>
well it may be easy to create a new programming language, but hard to create a good one
<Ox0dea>
adaedra: Would it not be great if all of humanity were able to communicate with itself?
gagrio has quit [Ping timeout: 260 seconds]
chinmay_dd has joined #ruby
<Ox0dea>
> The Tower of Babel did nothing wrong.
<adaedra>
Ox0dea: you can't please everyone with only one language.
<Ox0dea>
adaedra: Communication is about pleasure?
<[k-_>
adaedra: that is why no one likes math
<adaedra>
Some people do, [k-_
gard has joined #ruby
<shevy>
[k-_ haskell dudes love math
<[k-_>
math! yay!
<yorickpeterse>
dat sin()
<yorickpeterse>
omg dem curves
decoponio has joined #ruby
<yorickpeterse>
Is that a parabole in your pants or are you just happy to see me?
<yorickpeterse>
ok break time
<Ox0dea>
Parabola + hyperbole = parabole?
<adaedra>
break;
jeremy04_ has joined #ruby
krandi has joined #ruby
andikr has quit [Ping timeout: 244 seconds]
scottschecter has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
<chrisseaton>
ebarrett: hello
jeremy04 has quit [Ping timeout: 256 seconds]
gagrio has joined #ruby
<Ox0dea>
adaedra: I think you accidentally terminated our discussion prematurely.
hal_9000 has joined #ruby
<adaedra>
goto fail;
spider-mario has joined #ruby
<adaedra>
Ox0dea: I respected yorickpeterse's break time
aryaching has quit [Ping timeout: 264 seconds]
<Ox0dea>
In that case, I trust you'll remember to clarify your position when he gets back.
<[k-_>
such sin, much curve
riotjones has quit [Remote host closed the connection]
<[k-_>
sin2 x + cos2 x = 1!
<Ox0dea>
Euler's identity is better.
krandi has quit [Ping timeout: 250 seconds]
<adaedra>
Ox0dea: I have some work to do, and it's more suited for offtopic. Later maybe.
arup_r has quit []
<Ox0dea>
What a disappointingly abrupt change of heart, but okay.
<adaedra>
Sorry for having things to do.
<Ox0dea>
inorite
danzilio has joined #ruby
<[k-_>
ultimately, functional is the best
<Ox0dea>
[k-_: Church > Turing, you say?
dorei has joined #ruby
danzilio has quit [Client Quit]
<[k-_>
yea
<Ox0dea>
Heathen.
<[k-_>
or something like that
<[k-_>
i meant the paradigm
<[k-_>
the paradigm!
TvL2386 has quit [Quit: Ex-Chat]
chills42 has quit [Remote host closed the connection]
symm- has joined #ruby
danzilio has joined #ruby
<ebarrett>
hey chris
<ebarrett>
am i right in thinking jruby wont work with the new graal repos?
tenderlove has joined #ruby
<ebarrett>
chrisseaton: "This version of JRuby is built against Graal 0.7 b
<ebarrett>
ut you are using it with version 0.9-dev - either update Graal or use with (-J)-original to disable Graal and ignore this error
<ebarrett>
"
dgutierrez1287 has quit [Remote host closed the connection]
j_mcnally has joined #ruby
<chrisseaton>
Hmm I thought I disabled that message
<chrisseaton>
What commit are you on?
<yorickpeterse>
Ox0dea: errr parabola apparently
<yorickpeterse>
dang it I keep ruining my jokes
tagrudev has quit [Remote host closed the connection]
acovrig has joined #ruby
<acovrig>
I have an object (item.start.dateTime) that returns ‘2006-04-20 11:00:00 -0400’; I would like to compare it to 3 vars (month, day, year); (is the item.start.dateTime the same as those 3 vars); what is the best way to do that?
<centrx>
prefixed, yeah I'm not sure what the first 3 are for, the last 3 are the user permissions
<domgetter>
prefixed: I don't understand your question. Can you elaborate on what you're trying to understand?
eL_bAmba has quit [Quit: Saliendo]
<centrx>
prefixed, I thought the first 3 might be the group permissions, but it might also be various special bits that can be set on a file, special options
<centrx>
prefixed, 100 is not really a common group permission
aryaching has quit []
<prefixed>
yes
BTRE has joined #ruby
<domgetter>
are you trying to understand what the number means in general? Or what the particular numbers mean that you get back?
kies^ has joined #ruby
<prefixed>
i don't understand why there are six digits. i've never seen 6 digits before + it doesn't conform to any other permissions stylings i've ever seen
sevenseacat has quit [Quit: .]
<centrx>
prefixed, The stat(2) that the Ruby docs refer to is the C stat function, not the command-line stat command - http://linux.die.net/man/2/stat
myztic has quit [Ping timeout: 265 seconds]
<domgetter>
prefixed: ah okay. 6 digits can happen for something like "100644" if it's just a normal file
lannonbr has joined #ruby
hahuang61 has quit [Ping timeout: 252 seconds]
<domgetter>
for example, git stores permission levels for saved files and keeps track of whether its a file, a directory, or an executable
<domgetter>
and 100644 will be a non-executable file. the 100 means not executable
speaking1ode has quit [Quit: Lost terminal]
<adaedra>
o.O
lordkryss has quit [Quit: Connection closed for inactivity]
_blank has joined #ruby
<domgetter>
oh nevermind, 100 doesn't mean that. its the 644 part that means its not executable
<adaedra>
I prefer that
<adaedra>
what does ls -l says about your file, domgetter ?
<prefixed>
this is really annoying
<domgetter>
adaedra: it says 'ls' is not recognized as an internal or external command, operable program or batch file.
safeforge has joined #ruby
<domgetter>
prefixed: what do you need the result of #mode for?
<adaedra>
aaaaaaaaaah Windows.
<prefixed>
I am doing some file diffing based on a certain file information
<domgetter>
adaedra: :P
countryHick has joined #ruby
omfgtora_ has quit [Ping timeout: 256 seconds]
djstorm has joined #ruby
<adaedra>
Who expects Windows to work like other systems?
surs has quit [Quit: WeeChat 0.3.7]
<platzhirsch>
Best way to check if [array_of_exceptions] includes the current exception e.cause?
<tsunamie>
hi guys when I try to do a loop when opening files usig something like this packages.each do |key, value| file = File.read('$key/$key-$value.json') end it states that no such file or folder exists. I note that in the error the variables are in there and not the values
<tsunamie>
how do I gte it to resolve the values?
RandyT has joined #ruby
_cball has quit [Remote host closed the connection]
Rollabunna has joined #ruby
<adaedra>
read up on string interpolation
<tsunamie>
adaedra, it's not a string it's a hash from a json
j4cknewt has quit [Remote host closed the connection]
<adaedra>
'$key/$key-$value.json' <= this is a string, and you are trying to do string interpolation.
<domgetter>
prefixed: You can just do File.stat(path).mode.to_s(8)
<tsunamie>
adaedra, so what is the right way of doing it. I keep asking and I keep getting told to learn Ruby. I really don't feel like this is helpful
<adaedra>
no, indeed, learning ruby is not helpful to code in ruby, you're right.
gwendall has quit []
<tsunamie>
adaedra, you know what I mean
ndrei has joined #ruby
<domgetter>
>> key = "app"; value = "model"; "#{key}/#{key}-#{value}.json"
Hounddog has quit [Read error: Connection reset by peer]
Miphix has joined #ruby
<domgetter>
tsunamie: one way to to string interpolation is to have #{} inside double quotes, and putting whatever ruby code you want to execute inside the {}
Rollabunna has quit [Ping timeout: 244 seconds]
<domgetter>
so, "Hello, #{name}" will put "Hello, Bill" if name = "Bill". You can put any Ruby code in there though. >> "2 + 2 = #{2 + 2}"
|\|IGGER was banned on #ruby by ChanServ [|\|IGGER!*@*]
|\|IGGER was kicked from #ruby by ChanServ [Banned: Racism.]
<BraddPitt>
there we go
<Aria>
Thank you! Was just getting there.
jpfuentes2 has quit [Ping timeout: 250 seconds]
<adaedra>
Too slow
<adaedra>
You still get a cookie
<adaedra>
?cookie Aria
<ruboto>
Aria, here's your cookie:
<Aria>
Aw, thanks. I like cookies.
prettiestPony11 has joined #ruby
chinmay_dd has quit [Read error: Connection reset by peer]
railsraider has quit [Ping timeout: 256 seconds]
Igorshp has quit [Read error: Connection reset by peer]
hectortrope has quit [Ping timeout: 264 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
MVPhelp_ has joined #ruby
<kallisti5>
ayone have the time to review this pull request? https://github.com/ruby/ruby/pull/984 should be pretty simple. No change / impact to any platforms except Haiku.
<havenwood>
mm, though last letter should be same repeated
<havenwood>
also non-ASCII <- adaedra
<adaedra>
I don't know in which ISO-8859 it is
mikecmpbll has quit [Ping timeout: 240 seconds]
withnale____ has quit [Quit: Be back later ...]
yalue has joined #ruby
<raz>
so, El Capitan is shipping with a broken Ruby (no gem installation possible). is any high profiler rubyist around to blog about it so apple possibly takes their foot outta their mouth before the official release?
failshell has quit [Remote host closed the connection]
j4cknewt has joined #ruby
<adaedra>
what do you mean by "no gem installation possible"?
<mistym>
raz: What's broken? Did you file a radar?
NeverDie has joined #ruby
<havenwood>
raz: I haven't tried El Capitan yet. What happens when you: sudo gem install
<raz>
adaedra: their new "rootless" security theater prevents even root from writing to /usr/bin
<raz>
so "sudo gem install" bombs out
<raz>
for gems that have executables
<adaedra>
let me guess: it tries to install to /usr/bin and gets blocked by rootless
<mistym>
Ahhh, right
dudedudeman has quit [Quit: Leaving.]
<adaedra>
aaaaaand ninja'd
<havenwood>
ah
<mistym>
Did you file a radar?
acovrig_ has joined #ruby
tenderlove has quit [Quit: Leaving...]
dudedudeman has joined #ruby
<raz>
mistym: i typed a description of my problem into vim and saved it to /dev/null
<raz>
that's about equivalent, right?
<havenwood>
raz: They should switch to a --user-install default.
<adaedra>
raz: curiosity, what does ruby -v says
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
<kallisti5>
we've had rootless for some time in Haiku. We have a user-install to fix it
chthon has quit [Ping timeout: 244 seconds]
<raz>
adaedra: i don't have el cap myself, i just got this filed as a bug against a gem of mine on github
Zai00 has quit [Quit: Zai00]
<adaedra>
Oh
Rollabunna has joined #ruby
acovrig has quit [Ping timeout: 250 seconds]
acovrig_ is now known as acovrig
<raz>
adaedra: the user reproduced it with another gem as well, so...
<mistym>
I'm in the dev beta program, I'll file a radar then
* raz
predicts a lot of gems will get similar bug reports after the release of el kap ;)
<adaedra>
then do user-install in the meantime or use rbenv/chruby/rvm/whatever
<raz>
mistym: thanks!
<raz>
adaedra: yes that's what i told the user. it's still a problem if el cap gets released like this tho.
fractalis has quit [Ping timeout: 250 seconds]
last_staff has joined #ruby
<raz>
s/if/when/
<raz>
hence someone like yehuda or so should blog about it
<adaedra>
They would have to change system gem path
stan has quit [Ping timeout: 244 seconds]
dopie has joined #ruby
<adaedra>
Or "If you're a dev disable rootless lol"
<raz>
well, most devs probably run on rbenv anyway
fractalis has joined #ruby
<raz>
this is more for the poor sobs who believe the "gem install foo" lie that is still percolated on so many github READMEs ;)
icebourg has quit [Read error: Connection reset by peer]
pengin has joined #ruby
<workmad3>
raz: does your github readme say to use `sudo gem install`? ;)
benlovell has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
fantazo has joined #ruby
<raz>
workmad3: no it doesn't.. if it wanted to be honest the install-section would have to span 3 pages
k3asd` has joined #ruby
<raz>
try "gem install foo", haha, just kidding, try with sudo, but that will probably also not work
yqt has quit [Ping timeout: 250 seconds]
r_baron has joined #ruby
voidnoid has joined #ruby
<raz>
followed by an elaborate excursion about ruby version managers, sandboxes, bundler, shell search paths and why so many kids love golang
<workmad3>
raz: hehe :) you should write those 3 sections, stick it up on a blog somewhere and then campaign to have the README templates for gems replace 'how to install' sections with a link to the article...
Rollabunna has quit [Ping timeout: 244 seconds]
<raz>
workmad3: that's be just sad on so many levels :/
jbw has quit [Ping timeout: 272 seconds]
<adaedra>
or about gem install --user-install
<raz>
adaedra: why is that not the default?
<adaedra>
Depends on the systems
<raz>
why?
<adaedra>
echo 'gem: --user-install' | sudo tee -a /etc/gemrc
* raz
doesn't speaks japanese but has a hunch someone on these japanese mailing lists is a huge troll
nzst has quit [Ping timeout: 264 seconds]
icebourg has joined #ruby
icebourg has quit [Client Quit]
imfilp has joined #ruby
<miah>
planning on switching to a linux laptop before next osx release. that was the plan last time too, but my laptop from work is now old enough for something new =)
<chrisseaton>
ebarrett: I've pushed a patch that just removes that check for now - it does weird things on both branches
voidnoid has left #ruby [#ruby]
<shevy>
raz lol how can you know there is a troll if you can not identify what he writes :)
<raz>
adaedra: well, it should simply be the default. which everyone can conclude by thinking for all of 3 seconds about it.
tubuliferous_ has joined #ruby
<raz>
shevy: i can spot him by his influence on core decisions.. such as something like --user-install apparently existing but not being the default ;)
<raz>
also: bundler
<raz>
that can only be an elaborate prank, right?
<shevy>
bundler came after gem
<shevy>
from the rails corner
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<raz>
oh god, i'll just stop now ;)
<raz>
just came here to report the el kap issue
yfeldblum has joined #ruby
<havenwood>
raz: gem i -g
swills has quit [Read error: Connection reset by peer]
BTRE has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
pawnbox has quit [Remote host closed the connection]
allcentury has quit [Quit: WeeChat 1.2]
* havenwood
tries to resist the urge to install El Capitan
tubuliferous_ has quit [Ping timeout: 264 seconds]
tjohnson has joined #ruby
<miah>
install Mandrake linux for a similar result
pawnbox has joined #ruby
bhorn1 is now known as bhorn1|lunch
sshuff is now known as sshuff|gone
<raz>
it's sad that scripting languages have been broken everywhere for so long that nobody even expects the distro version to work anymore
<shevy>
that is to be expected
<shevy>
debian eliminates mkmf by default for instance
chenillen_ has joined #ruby
skade has quit [Ping timeout: 272 seconds]
<raz>
well i'd argue the languages should have long adapted by now
<shevy>
adapted to what precisely? You can avoid distributions from crippling a language how?
<raz>
i mean, ruby is a tiny bit better off than python.. but still a trainwreck by every metric
thiagovsk has quit [Quit: Connection closed for inactivity]
isale-eko has joined #ruby
<raz>
shevy: by defaulting to installing to the home-directory, which should have been the default since the start anyway
swgillespie has joined #ruby
<shevy>
nope, this would also break the debian way
xfbs has joined #ruby
<raz>
?
skade has joined #ruby
<chrisseaton>
ebarrett: a simpler way to use Graal is from graal-compiler just do ../jvmci/jdk1.8.0_51/product/bin/java
jhack has quit [Remote host closed the connection]
mdavid613 has quit [Quit: Leaving.]
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
swills has joined #ruby
k3asd` has quit [Ping timeout: 256 seconds]
<havenwood>
raz: Arch, Fedora, FreeBSD, etc etc have nice Ruby packages. Brightbox Ruby packages are the best bet on Ubuntu. OS X folk tend to Homebrew, Pkgsrc, Macports or Fink - all of which have Ruby packages.
mdavid613 has joined #ruby
gheegh has quit [Ping timeout: 246 seconds]
wldcordeiro_ has joined #ruby
rbennacer has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
raz: You pretty much have to wander into CentOS-land to find Ruby 1.8 these days. But they live in the ancient past so what do you expect?
nhhagen has joined #ruby
<raz>
havenwood: i'd have to go on a really elaborate rant from here, so... i'll just go on the balcony instead and hope someone will poke apple before their release elcap ;)
<havenwood>
raz: Luckily no Python 2/3-like divide in Ruby, and they aim to keep it that way.
<havenwood>
raz: Yeah, that'd be nice!
<havenwood>
raz: Fingers crossed.
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Contigi has quit [Quit: Leaving]
<havenwood>
Always nice to be able to install gems.
CorySimmons has quit [Quit: Bye!]
keeguon has quit [Ping timeout: 246 seconds]
BTRE has joined #ruby
pawnbox has quit [Remote host closed the connection]
mjuszczak has joined #ruby
pawnbox has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
loplin has joined #ruby
ascarter has joined #ruby
rideh has joined #ruby
snockerton has joined #ruby
chenillen_ has quit [Quit: chenillen_]
<havenwood>
Is there another shortcut to pass the -X+T flag to irb if you don't have the env flag set or is there a better way?: ruby -X+T -S irb
jbw has joined #ruby
thatsnotjack has quit [Remote host closed the connection]
<havenwood>
^ that's easy enough but just curious
<snockerton>
are there any unique ways to set a null value in ruby? trying to pass a key/value in rbvmomi and nil or "" are not working
<Criten>
snockerton: nil should owrk
<Criten>
qoek*
<Criten>
work*...
thatsnotjack has joined #ruby
<ericwood>
yeah, need an example
yqt has joined #ruby
failshell has joined #ruby
gard has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
mjuszcza_ has joined #ruby
paulcsmith__ has joined #ruby
paulcsmith_ has quit [Read error: Connection reset by peer]
Igorshp has quit [Remote host closed the connection]
<snockerton>
line 9, need to set :deviceName to nil
Igorshp has joined #ruby
mjuszczak has quit [Ping timeout: 272 seconds]
<ericwood>
nil should work
<snockerton>
could be a rbvmomi type issue
quimrsto_ has joined #ruby
<ericwood>
yeah seems more like an issue with that lib
quimrstorres has quit [Read error: Connection reset by peer]
<snockerton>
when i set deviceName to nil, the response is that deviceName is missing...
railsraider has quit [Quit: railsraider]
<ericwood>
definitely an issue with the lib then
gambl0re has joined #ruby
j_mcnally has joined #ruby
jhack has joined #ruby
gard has joined #ruby
jbw has quit [Ping timeout: 244 seconds]
pengin_ has joined #ruby
jbw has joined #ruby
<snockerton>
dang, only 9 ppl in that channel
nzst has joined #ruby
yeticry has quit [Ping timeout: 255 seconds]
|\|IGG3R has joined #ruby
<|\|IGG3R>
Why are ruby developers paid more than other developers?
psy_ has quit [Quit: Leaving]
<Sou|cutter>
they aren't
yeticry has joined #ruby
<notfowl>
Hi guys
psy_ has joined #ruby
pengin has quit [Ping timeout: 246 seconds]
<|\|IGG3R>
Ruby on Rails engineers are paid more than others. The average salary for a Ruby on Rails developer is 125k whereas other developers are paid ~90k
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
sarmiena_: Why such an old OpenSSL? You should probably update OpenSSL and update to Ruby 2.1.6.
<renanoronfle>
jhass, tks i not remember that :)
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
<sarmiena_>
havenwood: actually i am on 2.1.6 … reading about ssl right now. i’m on ubuntu 12.04. going to upgrade openssl, but want to avoid the guessing game part of this issue. just trying to verify that th problem is with the version of openssl. or perhaps the bug still exists? i can’t seem to get info on it
jatb has joined #ruby
<havenwood>
sarmiena_: You definitely need to update OpenSSL to a secure version. Then build Ruby against it. (Beware if you're using rbenv to build that you must update ruby-build because it ships its own OpenSSL instead of using your package manager's).
troulouliou_div2 has quit [Remote host closed the connection]
rehat has quit [Read error: Connection reset by peer]
<sarmiena_>
havenwood: ok. yeah right now this server is firewalled & does no inbound WAN access. also, i’m using RVM & figured it might be using some other package other than my distro’s.
postmodern has quit [Quit: Leaving]
<sarmiena_>
any examples on how to make RVM use my distro’s openssl?
<sarmiena_>
to be redundant, you’re saying use autolibs to install openssl instead of having ubuntu do it
<sarmiena_>
then rebuild the ruby
<sarmiena_>
*the* ruby. similar to *the* google
atmosx has joined #ruby
avitzurel has quit [Ping timeout: 265 seconds]
<havenwood>
sarmiena_: Well, I'd probably enable autolibs just to make sure you have the packages you need. Then ensure you are on the latest OpenSSL. And build the latest TINY version of Ruby 2.1 or Ruby 2.2.
<havenwood>
sarmiena_: So Ruby 2.1.6 or 2.2.2.
<sarmiena_>
ok
cpruitt has joined #ruby
pengin_ has joined #ruby
ledestin has joined #ruby
pengin_ has quit [Remote host closed the connection]
<havenwood>
sarmiena_: Then restart all your services using OpenSSL - easiest way is to reboot.
chinmay_dd has quit [Ping timeout: 246 seconds]
DLSteve has joined #ruby
avitzure_ has quit [Ping timeout: 264 seconds]
<sarmiena_>
ack. been online for like 400 days haha
rehat has joined #ruby
<sarmiena_>
i think the universe might implode if i reboot
arturmartins has joined #ruby
freerobby has quit [Quit: Leaving.]
towski_ has joined #ruby
pengin has quit [Ping timeout: 240 seconds]
khebbie has joined #ruby
docmur_ has joined #ruby
<docmur_>
I'm trying to install redmine on debian, I've trying to do the bundle install --without postgesql but I keeping getting
<docmur_>
this error: Redmine requires Bndler 1.5.0 or higher (you're using 1.1.4 however when I run gem update bundler I get
<docmur_>
nothing to updatre
rakm has joined #ruby
quimrsto_ has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 250 seconds]
shadoi has quit [Quit: Leaving.]
pyon has joined #ruby
chinmay_dd has joined #ruby
reset has joined #ruby
yh has joined #ruby
Trynemjoel has joined #ruby
graydot has quit [Quit: graydot]
maq has joined #ruby
<Sou|cutter>
docmur_: could be the first bundler found in your PATH isn't the latest one
<Sou|cutter>
`gem list | grep bundler` does this show a bundler >= 1.5.0 ?
<docmur_>
oh wow I did have two installed, I would of thought upgrading it would of replaced the first one
aryaching has quit []
yqt has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
jackjackdripper has joined #ruby
shadoi has joined #ruby
pengin has joined #ruby
yh has quit [Ping timeout: 255 seconds]
Silox| has joined #ruby
docmur_ has quit [Quit: Lost terminal]
Lucky__ has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
safeforge has quit [Remote host closed the connection]
gambl0re has quit [Read error: Connection reset by peer]
RegulationD has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
pawnbox has joined #ruby
gambl0re has joined #ruby
tkuchiki has quit [Ping timeout: 272 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
swgillespie has joined #ruby
Trynemjoel has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yh has joined #ruby
freerobby has joined #ruby
baweaver has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
arturmartins has quit [Quit: Leaving...]
swgillespie has quit [Client Quit]
<scorp007>
does ruby have a fixnum that is 64 bit?
<Ox0dea>
scorp007: Do you mean independent of the environment?
<chris2>
perhaps on a 128-bit machine ;)
sarmiena_ has quit [Quit: sarmiena_]
wldcordeiro_ has quit [Ping timeout: 252 seconds]
quimrstorres has joined #ruby
freerobby has quit [Client Quit]
<scorp007>
I mean on Win64, for example.
<scorp007>
I can assume an environment.
freerobby has joined #ruby
<scorp007>
I see things like FIX2INT, FIX2ULONG, but not FIX2ULONGLONG
<chris2>
long is not 64 bit?
<scorp007>
not on windows.
<scorp007>
long remains the same on win32/64
<scorp007>
long long is 64bit
dopie has joined #ruby
<Ox0dea>
Utter madness.
<scorp007>
does MRI have an FIX2ULONGLONG or something like that?
<chris2>
llp64 madness
centrx has joined #ruby
djbkd has joined #ruby
<scorp007>
aside from that, no workaround?
<scorp007>
I see thigns like #if SIZEOF_OFF_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
<adaedra>
LPCWSTR
<adaedra>
:p
<scorp007>
so it does check for long long on the platform. Any way to get a fix to that?
<Ox0dea>
scorp007: NUM2LL().
<scorp007>
adaedra: not with strings.
<scorp007>
Hmmm
<Ox0dea>
scorp007: Yes, it checks for HAVE_LONG_LONG in several places.
jbw__ has joined #ruby
<scorp007>
NUM2LL uses bignum for 64bit numbers?
<scorp007>
or fix?
<scorp007>
I'd like to avoid bignum if I can, for 64bit.
Lucky__ has quit [Read error: Connection reset by peer]
<chris2>
a value below 2**63 is fixnum
<Ox0dea>
chris2: Wrong.
<chris2>
modulo sign bit
fractalis has quit [Ping timeout: 272 seconds]
<Ox0dea>
Right.
pengin has quit [Remote host closed the connection]
nzst has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
jbw_ has quit [Ping timeout: 246 seconds]
<scorp007>
they just get transparently converted at runtime between the two?
<Ox0dea>
Yes.
<chris2>
yeah
<Ox0dea>
Fixnums are tagged pointers; you can't ask Ruby to squeeze a bit pattern into too small a space.
graydot has joined #ruby
yh has quit [Ping timeout: 246 seconds]
<scorp007>
oh ok
<scorp007>
ok then. NUM2ULL looks like what I'll use.
<scorp007>
works for any numeric type
<scorp007>
thx all
<Ox0dea>
scorp007: You're aware that you might get Bignums, though?
pengin has joined #ruby
<scorp007>
yes, aware, but not much I can do
<scorp007>
perf isn't super critical here, just nice to have
jackjackdripper has quit [Quit: Leaving.]
last_staff has quit [Ping timeout: 265 seconds]
jackjackdripper has joined #ruby
<Ox0dea>
libgmp is pretty heavily optimized, for what that's worth.
pietr0 has joined #ruby
khebbie has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 252 seconds]
ascarter has joined #ruby
arturmartins has joined #ruby
redjack1964 has quit [Read error: Connection reset by peer]
Lucky__ has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 246 seconds]
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 244 seconds]
casadei_ has quit []
tubuliferous_ has joined #ruby
Chau has joined #ruby
sanguisdex has quit [Quit: Leaving.]
bradleyprice has quit [Read error: Connection reset by peer]
bradleyprice has joined #ruby
gambl0re has quit [Read error: Connection reset by peer]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has quit [Remote host closed the connection]
skade has quit [Ping timeout: 246 seconds]
carlosoliveira has joined #ruby
tubuliferous_ has quit [Ping timeout: 250 seconds]
sanguisdex has joined #ruby
sanguisdex has left #ruby [#ruby]
rakm has joined #ruby
baweaver has joined #ruby
krz has quit [Quit: WeeChat 1.2]
<snockerton>
i'm building a service which monitors a message queue. what's the best way to do a long-running process in ruby? i.e. a graceful infinite loop
<snockerton>
is doing `while !stop? do` a bad way?
baweaver has quit [Remote host closed the connection]
skade has joined #ruby
<snockerton>
stop = true
mbeasley_ has joined #ruby
<centrx>
snockerton, I would have a process that runs ever 1 minute or X seconds, using something like delayed_job
<centrx>
*every
<centrx>
snockerton, but while loop is fine
<centrx>
snockerton, You want to make sure it handles exits gracefully, using signals
<Ox0dea>
snockerton: What's the stop condition?
<snockerton>
while loop works as long as ruby doesn't crash
<snockerton>
Ox0dea: specific error handlers
<Ox0dea>
begin; ...; rescue x; ...; rescue y; ...; end
<Antiarc>
snockerton: You want either a sleep or a blocking socket read in there
<Antiarc>
Otherwise you're just going to burn 100% CPU very efficiently
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dabradley has quit [Ping timeout: 244 seconds]
imfilp has quit [Quit: Connection closed for inactivity]
baweaver has joined #ruby
Guest50 has joined #ruby
Trynemjoel has joined #ruby
jmhmccr has joined #ruby
gambl0re has joined #ruby
dabradley has joined #ruby
rakm has joined #ruby
platzhirsch has left #ruby [#ruby]
Trynemjoel has quit [Ping timeout: 245 seconds]
leesharma has quit [Ping timeout: 244 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<miah>
sup
Trynemjoel has joined #ruby
baweaver has quit [Remote host closed the connection]
musl has quit [Quit: WeeChat 1.1.1]
baroquebobcat has quit [Quit: baroquebobcat]
musl has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 244 seconds]
loplin has quit [Remote host closed the connection]
<BraddPitt>
hello
dblessing has quit [Ping timeout: 265 seconds]
skade has quit [Read error: No route to host]
skade has joined #ruby
phutchins has joined #ruby
Musashi007 has joined #ruby
last_staff has joined #ruby
nzst has joined #ruby
<phutchins>
hi, anyone seen "certificate verify failed" errors when trying to connect to a mongo host using the native mongo driver in jruby?
<phutchins>
I've got one box from which everything seems to work just fine and another from which it gives me these errors... From my digging it seems that on the client side i do no thave the right CA file loaded for jruby maybe?
<phutchins>
But it's not clear... From the mongo side I see these: ERROR: SSL: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate unknown
<phutchins>
which is not turning up a lot on google :(
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
<miah>
one of the more common ssl issues tends to be the hostname not resolving to the same thing as entered in the ssl certificate
OrbitalKitten has joined #ruby
symm- has joined #ruby
prestorium has quit [Ping timeout: 260 seconds]
Lucky__ has quit [Ping timeout: 246 seconds]
Cust0sLim3n has joined #ruby
CustosLimen has quit [Read error: Connection reset by peer]
khebbie has quit [Remote host closed the connection]
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
juanpaucar has quit [Remote host closed the connection]
solars has quit [Ping timeout: 272 seconds]
gambl0re has quit [Ping timeout: 265 seconds]
chills42 has quit [Remote host closed the connection]
khebbie has joined #ruby
yh_ has joined #ruby
dabradley has quit [Quit: WeeChat 0.4.2]
gambl0re has joined #ruby
railsraider has joined #ruby
dabradley has joined #ruby
EllisTAA has joined #ruby
blackmesa has joined #ruby
bradleyprice has quit [Remote host closed the connection]
wldcordeiro_ has joined #ruby
kadoppe has quit [Ping timeout: 252 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
n_blownapart has joined #ruby
bazbing81 has joined #ruby
Rollabunna has joined #ruby
RobertBirnie has quit [Ping timeout: 255 seconds]
Trynemjoel has quit [Ping timeout: 250 seconds]
troyready has quit [Quit: Leaving]
kadoppe has joined #ruby
railsraider has quit [Quit: railsraider]
RobertBirnie has joined #ruby
khebbie has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
dgutierrez1287 has joined #ruby
bradleyprice has joined #ruby
lordkryss has joined #ruby
baroquebobcat has joined #ruby
Synthbread has joined #ruby
DoubleMalt has joined #ruby
Rollabunna has quit [Ping timeout: 255 seconds]
chills42 has joined #ruby
arooni-mobile has joined #ruby
<shevy>
issues issues issues
chills42 has quit [Remote host closed the connection]
rakm has joined #ruby
unsymbol has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
chills42 has joined #ruby
dgutierrez1287 has quit [Ping timeout: 272 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeremy04_ has quit [Read error: Connection reset by peer]
dfockler has quit [Remote host closed the connection]
jeremy04 has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
centrx has joined #ruby
Cust0sLim3n has quit [Ping timeout: 244 seconds]
unsymbol has joined #ruby
frem has joined #ruby
juanpaucar has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
hashrocket has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
leesharma has joined #ruby
bradleyprice has joined #ruby
bradleyprice has quit [Remote host closed the connection]
EllisTAA has quit [Quit: EllisTAA]
acovrig has quit [Ping timeout: 272 seconds]
shlomo has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
railsraider has joined #ruby
<Ox0dea>
shevy: Issue trackers are not soapboxes.
rideh^ has quit [Quit: zap]
<ericwood>
the mozilla one always seems to be :P
<shevy>
lol
<ericwood>
when was the last time someone actually stood on a soap box to voice an opinion btw
<ericwood>
I never see soap in boxes these days
prestorium has joined #ruby
<miah>
dry detergent still comes in boxes, but they are not really strong enough to stand on
<ericwood>
you'd need quite a few of those to voice an opinion effectively
<Ox0dea>
miah: Aren't they? I'm sure I've stood on a detergent box at some point.
<ericwood>
I'd rather stand on a milk crate tbh. or ladder
blackmesa has quit [Ping timeout: 260 seconds]
acovrig has joined #ruby
acovrig has quit [Client Quit]
<miah>
ericwood: +1
<miah>
last time i stood on a soap box; it was full of soap and i was much younger
<miah>
would not try again
rideh has joined #ruby
<Ox0dea>
Dissenters will be scoured.
<miah>
lol
[Butch] has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
yqt has joined #ruby
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
Trynemjoel has joined #ruby
Cust0sLim3n has joined #ruby
arooni-mobile has quit [Quit: Leaving]
lsmola has quit [Ping timeout: 256 seconds]
j4cknewt has quit [Remote host closed the connection]
cpruitt has quit [Ping timeout: 246 seconds]
DoubleMalt has quit [Remote host closed the connection]
cpruitt has joined #ruby
EllisTAA has joined #ruby
Trynemjoel has quit [Ping timeout: 250 seconds]
Igorshp_ has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
tmtwd has quit [Ping timeout: 260 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Trynemjoel has joined #ruby
Musashi007 has quit [Quit: Musashi007]
tkuchiki has joined #ruby
dblessing has joined #ruby
xfbs has joined #ruby
tmtwd has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
Vile` has quit [Ping timeout: 246 seconds]
doertedev has quit [Quit: Lost terminal]
baweaver has joined #ruby
<shevy>
so many build tools ... GNU autoconfigure, make, cmake, scons, waf ... the latter two in python. Nothing in ruby I guess
blackmesa has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
Vile` has joined #ruby
<mozzarella>
uh, rake?
tvw has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
EllisTAA has quit [Quit: EllisTAA]
baweaver has quit [Remote host closed the connection]
freerobby has joined #ruby
baweaver has joined #ruby
<shevy>
ah yes
railsraider_ has joined #ruby
Kyuujitsu has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Client Quit]
daynaskully has joined #ruby
shlomo has quit [Quit: WeeChat 1.2]
railsraider has quit [Ping timeout: 255 seconds]
railsraider_ is now known as railsraider
chills42 has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
myztic has joined #ruby
chouhoulis has quit [Remote host closed the connection]
unsymbol has quit [Ping timeout: 250 seconds]
<Ox0dea>
shinobi__: Note well that a Proc is only created from a block if you explicitly refer to it rather than simply yielding to it.
Igorshp has joined #ruby
arup_r has joined #ruby
failshell has joined #ruby
gemmy__ has quit [Quit: leaving]
gregf has joined #ruby
unsymbol has joined #ruby
baweaver has quit [Remote host closed the connection]
hinbody has quit [Quit: leaving]
systemd0wn has quit [Ping timeout: 265 seconds]
douglasssss has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 245 seconds]
Neon has joined #ruby
davedev2_ has joined #ruby
juanpaucar has joined #ruby
mdavid613 has quit [Quit: Leaving.]
baweaver has joined #ruby
Trynemjoel has joined #ruby
gamename has quit [Remote host closed the connection]
davedev__ has joined #ruby
<Neon>
Let's say I have a file named foo.txt. Now I have a Ruby program running that has this file opened like f = File.open('foo.txt'). Another application on the system now deletes and recreates that file and I need Ruby to reopen the file, but how can I find out if the file has been recreated? My File object returns false on .closed? and always true for .eof? after the file recreation and after writing contents into the new file
<Neon>
so it does neither complain about the old fd to not exist anymore nor does it automatically open the new file.
gamename has joined #ruby
davedev24 has quit [Ping timeout: 246 seconds]
k3asd` has joined #ruby
rakm has joined #ruby
r_baron has quit [Quit: Page closed]
<imperator>
Neon, what platform?
<Neon>
imperator, Debian Squeeze
<imperator>
i think the inode would change
cschneid_ has joined #ruby
<atmosx>
Neon: that sounds awful, do you wanna elaborate a bit maybe we can find a better solution
mdavid613 has joined #ruby
<imperator>
yeah, personally i would lock the file
amystephen has joined #ruby
<atmosx>
imperator: I'd create a copy :-/
davedev2_ has quit [Ping timeout: 256 seconds]
<imperator>
or that
<imperator>
atmosx, what happens if the file is replaced before the copy finishes?
<Neon>
Well, it's a logfile I want to watch and wait until the application that writes to it appends a line of a specific pattern. The problem is that the application automatically archives the logfile and creates a new one (on the same path) on day change.
rideh has quit [Quit: zap]
<Neon>
So it might happen that I start watching the logfile on day 1 and will never go on, because the application writes the wanted line on day 2 in the recreated file and the old one I've opened in Ruby will be eof forever.
gamename has quit [Ping timeout: 265 seconds]
<Neon>
A case-specific solution for that would be a time check of course, but I couldn't believe that Ruby can't notice if a file has been deleted. I mean the file descriptor (OS-wise) should become invalid, shouldn't it?
pengin has quit [Remote host closed the connection]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Antiarc>
The file isn't fully deleted until all handles to it are closed, the FD is still valid, it's just not associated with that name anymore
<Antiarc>
If you execute lsof after deleting the file but while ruby still has a handle to it, you'll see it show up as still open but marked as deleted
xfbs has quit []
<Antiarc>
(this is why you have to rotate logs after deleting files to reclaim the space used by them)
<atmosx>
imperator: good question, well if that's even remotely plausible you should lock the file
<Antiarc>
rather, you have to reopen any handles to those filenames
Alayde has quit [Ping timeout: 260 seconds]
graydot has quit [Quit: graydot]
systemd0wn has joined #ruby
<Neon>
I just noticed I could compare the modification timestamp of f.stat <-> File.stat(f.path)
sarmiena_ has joined #ruby
Rollabunna has joined #ruby
bmurt has quit []
<Neon>
Or even the creation time, so I can statically buffer one for performance.
Trynemjoel has quit [Ping timeout: 250 seconds]
<atmosx>
Neon: or use guard and run the script whenever the file changes
dopie has quit [Quit: This computer has gone to sleep]
davedev24 has joined #ruby
<Antiarc>
that's a good point, something like rb-inotify should let you see when that happens
<Antiarc>
then you could just reopen the file
<atmosx>
Antiarc: so you don't have to actually lock the file, the sysetm does that for you
rodfersou has quit [Quit: leaving]
Trynemjoel has joined #ruby
cnngimenez has joined #ruby
davedev__ has quit [Ping timeout: 264 seconds]
<Neon>
Antiarc, oh yeah, rb-inotify looks useful.
solars has joined #ruby
<Neon>
I could also let it watch for changes so I don't have to use a loop with delay.
Firzen has joined #ruby
<Antiarc>
then you could just reopen the file
<Antiarc>
bah
<Antiarc>
I hate when I alt-tab-up-enter into the wrong window
Alayde has joined #ruby
Neon has quit [Disconnected by services]
Firzen is now known as Neon
Rollabunna has quit [Ping timeout: 272 seconds]
M-mistake has quit [Quit: node-irc says goodbye]
<Neon>
Had a disconnect so I missed everything between my last message and me joining as Firzen.
M-mistake has joined #ruby
<Antiarc>
All you missed was me fat-fingering a message :)
shadoi has quit [Quit: Leaving.]
shadoi has joined #ruby
jamo_ has quit [Ping timeout: 244 seconds]
Iskarlar has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
crimson_penguin has joined #ruby
bazbing81 has quit [Quit: leaving]
rbennacer has joined #ruby
bazbing81 has joined #ruby
shadoi has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
<crimson_penguin>
so I'm trying to use active record, and I've got something that mostly works, except it breaks when it automatically runs the count query before my real one, because I need a custom column from the select statement in my where statement
<crimson_penguin>
is there any way around that?
bazbing81 has left #ruby [#ruby]
bhorn1|lunch is now known as bhorn1
_joes__ has quit [Ping timeout: 264 seconds]
bhorn1 is now known as bhorn1|away
freedrull has quit [Ping timeout: 244 seconds]
user1138 has joined #ruby
freedrull has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
imperator has left #ruby ["Leaving"]
<notfowl>
!rails alert
<notfowl>
Warning warning
systemd0wn has quit [Ping timeout: 250 seconds]
systemd0wn has joined #ruby
Iskarlar has quit [Client Quit]
jamo_ has joined #ruby
freerobby has joined #ruby
Jarboe has joined #ruby
mjuszczak has quit []
unsymbol has quit [Ping timeout: 256 seconds]
omegamike has quit [Remote host closed the connection]
bradleyprice has joined #ruby
Synthbread has quit [Quit: Leaving]
unsymbol has joined #ruby
jpfuentes2 has joined #ruby
Jackneill has quit [Ping timeout: 244 seconds]
failshell has quit []
jmhmccr has quit [Quit: Connection closed for inactivity]
<jhass>
notfowl: if you don't want to be helpful, maybe just say nothing and only listen instead
<Ox0dea>
"Speak only that you would improve the silence."
ldnunes has quit [Quit: Leaving]
<jhass>
crimson_penguin: you would be better in showing some code, though the folks over at #RubyOnRails naturally have more experience with AR related stuff
<crimson_penguin>
jhass: thank you! I'll ask over there then
<Ox0dea>
scpike: What's up?
RobertBi_ has joined #ruby
<scpike>
Ox0dea: just looking for any experienced thoughts. I've got a bunch of home-grown ruby scripts doing ETL that I might want to put some more structure around
doodleha_ has quit []
<Ox0dea>
scpike: I've enjoyed using it the few times that I have.
quimrstorres has joined #ruby
diegoviola has joined #ruby
<scpike>
Ox0dea: thanks, I'll definitely check it out then!
<Ox0dea>
scpike: You might find using it in conjunction with Transproc to be doubly pleasant.
Neon has quit [Quit: Leaving]
<scpike>
Ox0dea: woa, this looks mind-bending
<scpike>
I have to do some reading
RobertBirnie has quit [Ping timeout: 246 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
dopie has joined #ruby
<Ox0dea>
Kiba + Transproc has temporarily broken my habit of using shell pipelines for data manipulation at least twice now.
jackjackdripper has quit [Ping timeout: 260 seconds]
<scpike>
Ox0dea: `csvkit` has changed my life
<scpike>
almost literally
<Ox0dea>
I know that guy.
baroquebobcat has joined #ruby
<scpike>
really awesome stuff
Iskarlar has joined #ruby
<Ox0dea>
Pretty handy, to be sure.
<Ox0dea>
I think I'm thinking of a different csvfoo, though.
rubytor has quit [Remote host closed the connection]
Kyuujitsu has joined #ruby
<shevy>
nah, that instance was in code that I adopted from someone else, in cgi-exceptions. since I could change the code, I simply added a disabler component for now
tubuliferous_ has joined #ruby
<shevy>
life is too short to fix bugs written by other people!
codecop has quit [Remote host closed the connection]
<Ox0dea>
MRI says "nothing there, bro", but it was lying.
charliesome has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
Kyuujitsu has quit [Ping timeout: 240 seconds]
musl has joined #ruby
Kyuujitsu has joined #ruby
hashrocket has joined #ruby
polpak has quit [Quit: leaving]
<banister>
Ox0dea cool
ledestin has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
pengin has joined #ruby
spider-mario has quit [Remote host closed the connection]
gard has quit [Ping timeout: 264 seconds]
<Ox0dea>
banister: You'll note charliesome had to go through all sorts of machinations to get anything to stick, and I haven't figured out how to port the magic to >2.1 yet. :/
<Ox0dea>
Nakada-san has gone to considerable effort to make FrozenCore *really* internal.
bricker has quit [Quit: leaving]
edenc has quit [Changing host]
edenc has joined #ruby
<banister>
Ox0dea ruby i < 1.9.3 was much cooler
<Ox0dea>
Confirmed.
<banister>
i wrote a bunch of neat little tricks that i dont think are possible anymore
<Ox0dea>
banister: I trust you remember evil-ruby?
<Ox0dea>
symm-: Sage advice notwithstanding, what exactly did you muck with in the registry to "fix" command line arguments?
<symm->
one of these days.
<symm->
one sec
<symm->
"D:\Tools\Ruby21\bin\ruby.exe" "%1" %*
<symm->
it should be this ^ but was this:
lordkryss has quit [Quit: Connection closed for inactivity]
hahuang61 has joined #ruby
<symm->
"D:\Tools\Ruby21\bin\ruby.exe" "%1"
<symm->
so args werent being passed along
<Ox0dea>
Lovely. :P
<shevy>
windows makes my heart warm and fuzzy
<baweaver>
I developed Ruby on Windows for a few years
<shevy>
building dams?
<baweaver>
I still wake up at night in cold sweat
Muhannad has quit [Remote host closed the connection]
icebourg has quit []
<baweaver>
Never again
ereslibre has quit [Ping timeout: 272 seconds]
<Ox0dea>
baweaver: I spent a solid twenty minutes trying various keywords (and even some hiragana) on b.hatena.ne.jp, but I couldn't find the video. :(
jtdoncas has joined #ruby
<baweaver>
Ah not a problem, I was just wondering where it came from more than anything
dopie has quit [Quit: This computer has gone to sleep]
<Ox0dea>
That doesn't make it completely inaccessible, though, which is what you seem to be after.
<scorp007>
hmm, maybe I can just instantiate an Object, and define some singleton methods on it?
<Ox0dea>
A fool's errand in this language, I might add.
tuelz has quit [Ping timeout: 246 seconds]
<scorp007>
that would allocate an anonymous class on my behalf (singleton class)
<scorp007>
and point that object's class to it
<Unicorn|>
Ok, so you left me thoroughly confused. Lets say this is a game. how can I make variable A increase by 1 when G is pressed? while 1 require 'io/console'; c = STDIN.getch; if c = 'G';A + 1 = A;end; end
<Unicorn|>
And I know there is no end to the while loop
<Ox0dea>
Unicorn|: You need to learn Ruby first.
jpfuentes2 has joined #ruby
<zenspider>
scorp007: what do you actually want to do at the 10k foot level?
<Ox0dea>
> There are millions of thousand-story buildings.
<scorp007>
zenspider: I'm building an object model in Ruby for my application.
Yzguy has joined #ruby
<zenspider>
Unicorn|: learn the difference between = and == to start
leesharma has quit [Ping timeout: 246 seconds]
<scorp007>
zenspider: so that ruby can manipulate my application through classes, methods, etc.
<zenspider>
scorp007: yes. that's called programming in an OO language
<zenspider>
done
Kyuujitsu has quit [Ping timeout: 244 seconds]
<Ox0dea>
!next
leesharma has joined #ruby
<zenspider>
trying to make the CPU execute instructions to manipulate memory and calculate results
<zenspider>
have fun with that. I was motivated to help. not so much now.
<Ox0dea>
Hey, gals! How do I open some of the logic gates in my CPU?
<dfockler>
You pick the lock
baweaver has joined #ruby
<Ox0dea>
dfockler: I've only got these NAND and NOR keys; will they suffice?
<dfockler>
You'll need an XNOR key
al2o3-cr has joined #ruby
bmurt has joined #ruby
<symm->
don't open all the gates or you will be overwhelmed with logic