Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
spectrum has quit [Ping timeout: 248 seconds]
dunpeal has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dunpeal>
How does RSpec know how many times a method was called, i.e. how does foo.should.receive(:foo) work?
<dunpeal>
Also, can I somehow introspect the arguments with which a method was called during testing?
_defk0n_ has quit [Quit: Its been real!]
_defk0n_ has joined #ruby
_defk0n_ has quit [Remote host closed the connection]
<zenspider>
dunpeal: "introspect the arguments" ?
<zenspider>
what does that mean to you?
<dunpeal>
zenspider: Ideally, get a list of all arguments the method was called with.
<dunpeal>
For example, if foo.bar was called with [[1, 2], [1, 3]]
<dunpeal>
means it was called twice, first time as bar(1, 2), second as bar(1, 3)
CloCkWeRX has left #ruby [#ruby]
<zenspider>
why?
<dunpeal>
zenspider: I'm trying to trace a bug, and need to figure out why a particular external method gets called.
<dunpeal>
and how.
<zenspider>
much cleaner/quicker: class ExternalClass; def external_method; raise "no"; end; end
<zenspider>
you can even alias the old impl to the side and call it under most circumstances
<dunpeal>
"you can even alias the old impl to the side and call it under most circumstances" > not sure I understand this?
TomyLobo has quit [Ping timeout: 250 seconds]
<dunpeal>
also, I'm sort of generally curious about how `foo.should.receive` works under the hood, but not a big deal.
<zenspider>
foo.should returns a monad. receive stores off an expectation in the monad. actual calls to foo are wrapped ... it's a whole bunch of bullshit magic.
<zenspider>
for the alias thing...
<zenspider>
class ExternalClass; alias old_external_method external_method; def external_method(arg); if arg==42 then raise "no" else old_external_method; end; end; end
<dunpeal>
zenspider: ah, thanks.
nankyokusei has joined #ruby
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
_ZerGabriel_ has quit []
nankyokusei has quit [Ping timeout: 246 seconds]
minimalism has joined #ruby
bronson has joined #ruby
arescorpio has joined #ruby
tubuliferous has quit [Ping timeout: 240 seconds]
Fernando-Basso has quit [Quit: WeeChat 1.6]
spectrum has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
enyo has joined #ruby
ajsharma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
h1fuelcell has joined #ruby
enyo has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
sneakerhax has quit [Read error: Connection reset by peer]
h1fuelcell has quit [Ping timeout: 258 seconds]
Fridtjof has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
ruid_ has joined #ruby
sdwrage has joined #ruby
Pumukel has joined #ruby
zipace has quit [Ping timeout: 248 seconds]
Pumukel has quit [Ping timeout: 246 seconds]
sspreitz has quit [Ping timeout: 246 seconds]
nowhere_man has quit [Ping timeout: 252 seconds]
milardovich has quit []
Eiam has quit [Ping timeout: 268 seconds]
sspreitz has joined #ruby
skweek has quit [Ping timeout: 248 seconds]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has joined #ruby
ajsharma has joined #ruby
Dimik has quit [Ping timeout: 258 seconds]
Dimik has joined #ruby
nofxxx has joined #ruby
nofxx has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
Dimik has quit [Ping timeout: 258 seconds]
Illianthe3 has joined #ruby
elevan_ has joined #ruby
Illianthe2 has quit [Remote host closed the connection]
elevan has quit [Remote host closed the connection]
sspreitz has quit [Ping timeout: 258 seconds]
marr has quit [Ping timeout: 258 seconds]
skweek has joined #ruby
bronson has joined #ruby
sspreitz has joined #ruby
LoneHermit has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
h1fuelcell has joined #ruby
duderonomy has quit [Ping timeout: 248 seconds]
h1fuelcell has quit [Ping timeout: 260 seconds]
bogi has joined #ruby
SeepingN has joined #ruby
johnzorn has joined #ruby
Pumukel has joined #ruby
unreal has joined #ruby
arescorpio has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
blackbombay has quit [Ping timeout: 248 seconds]
blackbom1 has joined #ruby
Yacker has joined #ruby
unreal_ has quit [Ping timeout: 250 seconds]
Pumukel has quit [Ping timeout: 246 seconds]
Yacker has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
SeepingN has joined #ruby
Yacker has joined #ruby
bronson has joined #ruby
d34th4ck3r has joined #ruby
LoneHermit has joined #ruby
charliesome has joined #ruby
lune is now known as z64
bronson has quit [Ping timeout: 245 seconds]
kies has quit [Ping timeout: 256 seconds]
Pumukel has joined #ruby
ResidentBiscuit has joined #ruby
LoneHermit has quit [Ping timeout: 256 seconds]
Pumukel has quit [Ping timeout: 246 seconds]
Pumukel has joined #ruby
ResidentBiscuit has quit [Ping timeout: 258 seconds]
h1fuelcell has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
Pumukel has quit [Ping timeout: 250 seconds]
<DTZUZU>
hi anyone know the regex to check a string to see if it contains a url text like... http://www.google.com/image.jpg and then if it does, transform it to .. <img src="http://google.com/image.jpg"> .. ? any help would be much appreciated
optiz0r has quit [Ping timeout: 260 seconds]
h1fuelcell has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
cratchet311 has quit [Remote host closed the connection]
ChubbyBreakfast1 has left #ruby [#ruby]
libastral has quit [Ping timeout: 268 seconds]
pilne has quit [Quit: Quitting!]
houhoulis has quit [Remote host closed the connection]
libastral has joined #ruby
Illianthe2 has joined #ruby
Illianthe3 has quit [Ping timeout: 246 seconds]
skweek has quit [Ping timeout: 260 seconds]
h1fuelcell has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
AliG1000 has joined #ruby
hanmac has quit [Ping timeout: 245 seconds]
<d34th4ck3r>
Hi Everyone!
<adam12>
o/
SeepingN has quit [Read error: Connection reset by peer]
<AliG1000>
I am installing a script from Github. I get as far as 'bundle install'. It fails with a message " **** 'extconf.rb failed **** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details." Which of the 5 mkmf.log files would be a good place to start looking?
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
<adam12>
d34th4ck3r: If I understand this right, even the curl command fails?
ruid_ has quit [Ping timeout: 246 seconds]
<d34th4ck3r>
It does.
<adam12>
AliG1000: Any idea what dependency it fails on?
<d34th4ck3r>
I made sure that my JSON is valid so I’m really not sure why is it a bad request.
<adam12>
d34th4ck3r: Kind of hard to debug without having the other endpoint. Why the gsub of "=" to "" ?
<d34th4ck3r>
just to make sure if that’s not an issue. I doesn’t work either way.
hsagar has joined #ruby
<d34th4ck3r>
I don’t have server side access unfortunately.
<adam12>
I see. This is a capture the flag challenge or something?
<adam12>
This isn't technically a Ruby issue if the curl command is failing
GodFather has quit [Remote host closed the connection]
<d34th4ck3r>
Kinda like that.
<d34th4ck3r>
Yeah! That’s what I’m thinking, but I’m not even sure if it isn’t ruby that’s causing the problem then what else could it possibly be
<d34th4ck3r>
!JSON & !Ruby
<adam12>
I mean, it could be.
<adam12>
I don't know anything about the TOTP implementation.
ur5us has quit [Read error: Connection reset by peer]
<AliG1000>
The start of the message is: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
ur5us has joined #ruby
hanmac has joined #ruby
nullobject has quit [Quit: WeeChat 1.5]
<adam12>
d34th4ck3r: I found a Python solution that is different than yours. Uses HMAC-SHA-512 (which TOTP gem doesn't use), and can specify T0 (whatever that is)
<adam12>
AliG1000: What operating system? and if linux, what distro? and how did you install Ruby?
<adam12>
d34th4ck3r: Nevermind. I thought you were using totp gem, not rotp.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
koldbrutality has joined #ruby
optiz0r has joined #ruby
astrobunny has joined #ruby
braincrash has joined #ruby
nankyokusei has joined #ruby
Rodya_ has joined #ruby
harfangk has joined #ruby
dionysus69 has joined #ruby
hsagar has quit [Quit: hsagar]
HBurks1618 has quit [Quit: HBurks1618]
nankyokusei has quit [Ping timeout: 258 seconds]
gix has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hink has quit [Quit: quit from client]
bronson has joined #ruby
oaklndr1 has quit [Ping timeout: 245 seconds]
gix has joined #ruby
hsagar has joined #ruby
charliesome has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
marchelzo has joined #ruby
eizua has joined #ruby
Hink has joined #ruby
Ohga has left #ruby [#ruby]
Rodya_ has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
Pumukel has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Pumukel has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
blackbom1 has joined #ruby
ur5us has joined #ruby
houhoulis has quit [Remote host closed the connection]
QualityAddict has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
blackbom1 has quit [Ping timeout: 250 seconds]
<al2o3-cr>
DTZUZU: you can extract links with URI.extract
Pumukel has joined #ruby
saneax-_-|AFK is now known as saneax
dionysus69 has quit [Ping timeout: 258 seconds]
blackbom1 has joined #ruby
<zenspider>
one thing I'm really liking about racket's doco is that they say at the bottom when something was added / changed... I read about things like URI.extract and go "when in the fuck did I miss that?!?!"
audibleblink has quit [Read error: No route to host]
audibleblink has joined #ruby
marchelzo has quit [Ping timeout: 245 seconds]
djbkd_ has joined #ruby
xall has quit [Ping timeout: 245 seconds]
dviola has quit [Quit: WeeChat 1.6]
roshanavand has quit [Ping timeout: 258 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd_ has quit [Ping timeout: 246 seconds]
blackbom1 has quit [Ping timeout: 245 seconds]
h1fuelcell has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
testuser1 has joined #ruby
tuxaddicted has joined #ruby
xall has joined #ruby
tubuliferous has joined #ruby
conta has joined #ruby
xall has quit [Ping timeout: 260 seconds]
hsagar has quit [Quit: hsagar]
tubuliferous has quit [Ping timeout: 258 seconds]
Devalo has joined #ruby
Devalo has quit [Ping timeout: 258 seconds]
anna` has left #ruby ["-"]
dionysus69 has joined #ruby
pawnbox has joined #ruby
bronson has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
CloCkWeRX has joined #ruby
Pumukel has joined #ruby
xall has joined #ruby
ResidentBiscuit has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
Pumukel has quit [Ping timeout: 246 seconds]
tuxaddicted has quit [Ping timeout: 250 seconds]
ResidentBiscuit has quit [Ping timeout: 245 seconds]
NeverTired has joined #ruby
pawnbox has quit [Remote host closed the connection]
aidalgol has joined #ruby
lszhu has joined #ruby
aidalgol is now known as Guest15168
pawnbox has joined #ruby
hsagar has joined #ruby
johnzorn has quit [Ping timeout: 265 seconds]
agent_white has joined #ruby
johnzorn has joined #ruby
Guest15168 is now known as aidalgol
Pumukel has joined #ruby
SeepingN has joined #ruby
alan_w has quit [Quit: WeeChat 1.4]
Pumukel has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
yfeldblum has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
d0nn1e has quit [Ping timeout: 250 seconds]
iMadper|eat is now known as iMadper|Qiong
iMadper|Qiong is now known as iMadper|penniles
iMadper|penniles is now known as Madper|Penniless
Pumukel has quit [Ping timeout: 246 seconds]
d0nn1e has joined #ruby
agent_white has quit [Quit: agent_white]
h1fuelcell has joined #ruby
roshanavand has joined #ruby
cyphase has quit [Ping timeout: 240 seconds]
h1fuelcell has quit [Ping timeout: 248 seconds]
woodruffw has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Ping timeout: 252 seconds]
cyphase has joined #ruby
ur5us has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
hanmac has joined #ruby
Pumukel has joined #ruby
CloCkWeRX has joined #ruby
tau has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 264 seconds]
woodruffw has quit [Quit: And then he took off.]
nankyokusei has joined #ruby
Macaveli has joined #ruby
anisha has joined #ruby
elevan_ has quit [Ping timeout: 245 seconds]
biox has quit [Quit: brb servers are ded]
biox has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
CloCkWeRX has quit [Quit: Leaving.]
Macaveli has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
montanonic has quit [Ping timeout: 264 seconds]
eizua has quit [Quit: Leaving]
woodruffw has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
x0f has quit [Ping timeout: 245 seconds]
x0f has joined #ruby
hsagar has quit [Quit: hsagar]
Radar_ is now known as Radar
Radar has quit [Changing host]
Radar has joined #ruby
millerti has quit [Read error: Connection reset by peer]
x0f has quit [Ping timeout: 258 seconds]
dnicole has joined #ruby
Symbiosisz has joined #ruby
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
dnicole_ has joined #ruby
x0f_ has joined #ruby
dnicole has quit [Ping timeout: 258 seconds]
x0f_ has quit [Ping timeout: 246 seconds]
sanych has joined #ruby
rippa has joined #ruby
sanych has quit [Client Quit]
paranoicsan has joined #ruby
ponga has joined #ruby
lacour has quit [Quit: Leaving]
h1fuelcell has joined #ruby
xall has quit [Ping timeout: 246 seconds]
paranoicsan has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
jenrzzz has joined #ruby
ur5us has joined #ruby
dionysus69 has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
zipace has joined #ruby
roshanavand has quit [Ping timeout: 268 seconds]
xall has joined #ruby
paranoicsan has joined #ruby
tubuliferous has joined #ruby
walterheck has joined #ruby
paranoicsan has quit [Client Quit]
jenrzzz has quit [Ping timeout: 258 seconds]
paranoicsan has joined #ruby
Macaveli has joined #ruby
nowz has joined #ruby
kassav has joined #ruby
Pumukel has joined #ruby
tubuliferous has quit [Ping timeout: 268 seconds]
x0f has joined #ruby
oaklndr1 has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 258 seconds]
dionysus69 has joined #ruby
montanonic has joined #ruby
mscs has joined #ruby
pawnbox has quit [Remote host closed the connection]
vuoto has joined #ruby
ferr1 has joined #ruby
yeticry_ has joined #ruby
SpiffTR has joined #ruby
bronson has joined #ruby
yeticry has quit [Ping timeout: 268 seconds]
SpiffTR has quit [Client Quit]
skweek has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
jaiks has quit [Ping timeout: 245 seconds]
tuxaddicted has joined #ruby
Pumukel has joined #ruby
enilsen16 has quit [Quit: enilsen16]
bronson has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
SesMan has joined #ruby
testuser1 has quit [Quit: Leaving.]
Pumukel has quit [Ping timeout: 250 seconds]
wugy has joined #ruby
Pumukel has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
jaiks has joined #ruby
conta has quit [Ping timeout: 252 seconds]
roshanavand has joined #ruby
Pumukel has joined #ruby
ledestin has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
dasher00 has quit [Read error: Connection reset by peer]
astrobunny has quit [Remote host closed the connection]
Madper is now known as Madper|Penniless
astrobunny has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
Pumukel has joined #ruby
ruby-lang696 has joined #ruby
SpiffTR has joined #ruby
ruby-lang696 has quit [Client Quit]
astrobunny has quit [Ping timeout: 268 seconds]
Pumukel has quit [Ping timeout: 250 seconds]
Jackneill has quit [Ping timeout: 264 seconds]
Jackneill has joined #ruby
blackbom1 has joined #ruby
frozengeek has joined #ruby
bronson has joined #ruby
milardovich has joined #ruby
pwnd_nsfw` has joined #ruby
kahvi has joined #ruby
nowz has quit [Remote host closed the connection]
<kahvi>
hello. does ruby have maximum for return value on call stack?
<kahvi>
is there a limit on how much can you return. or is it arbitrarly
<dminuoso>
kahvi: You can return exactly one object.
<dminuoso>
;-)
<kahvi>
lets say you return :symbol, string
<kahvi>
and string is 3k
<zenspider>
yeah... not really
<dminuoso>
kahvi: So your question is whether symbols and strings have a maximum object size?
<dminuoso>
Then yes.
nowhere_man has quit [Ping timeout: 258 seconds]
<dminuoso>
It has nothing to do with returning, returning basically just returns a reference to an object
<kahvi>
my question is will something happen to a string if it is too big
<zenspider>
you can return multiple values and the size of the values doesn't matter
<dminuoso>
Mostly.
<kahvi>
hm ok
<zenspider>
kahvi: no, it's fine. you're only really limited by memory
<dminuoso>
kahvi: Ruby strings are limited to 2**31 -1 or 2**63 - 1 in length.
<dminuoso>
(depending on your target platform)
pwnd_nsfw has quit [Ping timeout: 264 seconds]
<dminuoso>
kahvi: Is that long enough for you?
<kahvi>
ok.thanks guys
<kahvi>
I guess I'll keep on debugging
GeekOfflineNL has joined #ruby
<zenspider>
kahvi: what are you actually dealing with?
<GeekOfflineNL>
good morning
bronson has quit [Ping timeout: 256 seconds]
<kahvi>
I write some file do some postprocessing with external program then read it in a string and return it via function after postprocessing
<zenspider>
kahvi: is this all in pure ruby?
<kahvi>
and for some reason one of top level functions returns shorter string
<kahvi>
no half is java
<kahvi>
but lower level func returns ok
<dminuoso>
kahvi: Everything in Ruby is pass-by-value, and the values are always references (think pointers). So effectively you are just passing and returning pointers around.
<dminuoso>
It really does not matter how large your objects are
<kahvi>
ok. thanks I guess I am missing something more obvious
<zenspider>
kahvi: what type of post-processing? and are encodings involved?
Caius has quit [Ping timeout: 250 seconds]
<kahvi>
java part is actually making an excel from json dumped from ruby via apache poi
<zenspider>
and is windows involved? (line endings can differ too)
<kahvi>
then ruby reads that excel
<kahvi>
no only linux
<zenspider>
kk. how are you reading it?
<kahvi>
name.read
<kahvi>
not sure if there is encoding issue here
<zenspider>
probably not? but who knows... you have so many variables at play
<kahvi>
hm I might check out encodings actually
<zenspider>
are you calling out to external java or are you using jruby to call internally?
<kahvi>
I am using system("LC_ALL=fi_FI.UTF-8 java javathing this and that")
<kahvi>
so it is actually setting specific encoding before java thing
<zenspider>
if it is xlsx, then it SHOULD be utf8, so reading and writing should be fine (assuming ruby >=2)
<kahvi>
but then low level functions returns ok
<zenspider>
*nod*
<zenspider>
can you gist any code?
<kahvi>
no.. it's not mine
<kahvi>
thanks guys
lenwood has joined #ruby
TomyLobo has joined #ruby
Caius has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
<GeekOfflineNL>
on the risk of starting an endless discussion.... question about the use of ruby/rails?
<GeekOfflineNL>
next year i have a project with an intern
<GeekOfflineNL>
he/she needs to write a website to let authorised people make offers and download pdf's with details
<GeekOfflineNL>
there is a complex database structure behindf it, with lots of items depend on selection of other items
<GeekOfflineNL>
different pricing depending on login
astrobunny has joined #ruby
<GeekOfflineNL>
there most also be a wizard to make selection of the right solution items
<GeekOfflineNL>
someone suggested ruby/rails to me.
<GeekOfflineNL>
So the project could be easily maintained in the future by other people then just the creator
<dminuoso>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<GeekOfflineNL>
right or wrong to go with ruby/rails
<dminuoso>
or..
<dminuoso>
I guess it fits here.
<herwin>
I don't think there is a real right or wrong here
marr has joined #ruby
kahvi has quit [Ping timeout: 260 seconds]
<dminuoso>
GeekOfflineNL: I would say avoid rails for such an internship.
NeverTired has quit [Quit: Connection closed for inactivity]
<dminuoso>
Also when I hear people "complex database structure" I think they are overexaggerating.
<dminuoso>
Too many times I have heard the phrase "I have this big table" and it turns out they had only a few hundred thousand rows.
<GeekOfflineNL>
dminuoso, that could be.
pawnbox has quit [Remote host closed the connection]
<GeekOfflineNL>
no it is not the big table. It is more an offer has about 20 diffirent items. But most of them can not be used toghether , while others must be used togheter or it will not work
pawnbox has joined #ruby
<GeekOfflineNL>
also there is different setup, depending on the "wizard" question
<GeekOfflineNL>
currently it is a large XLS, but this is no longer maintainable :-)
<GeekOfflineNL>
to much dependancies, and each version has more "bugs" when released for the first time
<matthewd>
IMO Rails is the best choice, because if you have a relatively inexperienced developer creating something that will then be handed on for others to maintain, the natural railroading towards The Rails Way will be valuable
<GeekOfflineNL>
but, curious..... why not rails ? as a person completely new to ruby, i thought this was kind of needed to do websites?
<zenspider>
GeekOfflineNL: I say rails is fine. Easy to pick up someone to maintain it later if need be
<havenwood>
GeekOfflineNL: It's not needed but it's the most popular choice.
<herwin>
it would depend on how the company works too. if you already use python for everything, rails would probably be a terrible option
<GeekOfflineNL>
zenspider, it will need to be maintained about 2 or 3 times a year
<GeekOfflineNL>
database will be updated monthly, but that's only the data not the structure
<matthewd>
Regardless of whether the Rails Way is the set of decisions a given experienced developer would make (and granting, I have a bias that they're pretty good, overall), I'd much rather have a project that makes predictable design choices
<GeekOfflineNL>
the intern will be HBO (higher ICT education). and it will be his/her end project
koldbrutality has quit [Ping timeout: 245 seconds]
<zenspider>
GeekOfflineNL: rails will be one of the easier choices wrt immediate development and for future maintenance. Lots of resources available.
nowz has joined #ruby
<GeekOfflineNL>
ah oke. My concern was mostly if ruby/rails could do the math, work with multiple connections, and produce the output
h1fuelcell has joined #ruby
<GeekOfflineNL>
i myself used to work mostly with c#/VStudio. But haven't done much work the last few years
tuxaddicted has quit [Ping timeout: 256 seconds]
<GeekOfflineNL>
as i read to tutorials/online resources almost all of them where avout blogs/forum example. But that's most certainly not what i am looking for
koooge has quit [Quit: Leaving...]
koldbrutality has joined #ruby
h1fuelcell has quit [Ping timeout: 252 seconds]
<zenspider>
GeekOfflineNL: I've been doing a bunch of client work in finance in rails... it's fine
<GeekOfflineNL>
thnx zenspider
Chair has joined #ruby
Chair is now known as Couch
manjaro-kde5_ has joined #ruby
djbkd has joined #ruby
djbkd has quit [Client Quit]
trif has left #ruby [#ruby]
lenwood has quit [Ping timeout: 246 seconds]
ur5us has quit [Remote host closed the connection]
aryaching has joined #ruby
roshanavand has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
pawnbox has quit [Remote host closed the connection]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
nankyokusei has joined #ruby
czerasz has joined #ruby
<GeekOfflineNL>
thnx guys, im off now
GeekOfflineNL has quit [Quit: Leaving]
bkxd has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
tubuliferous has joined #ruby
manjaro-kde5_ has quit [Ping timeout: 248 seconds]
conta has joined #ruby
aupadhye has joined #ruby
tubuliferous has quit [Ping timeout: 258 seconds]
xen0fon has quit [Remote host closed the connection]
bronson has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby
jenrzzz has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
czerasz has quit [Ping timeout: 256 seconds]
SHyx0rmZ has joined #ruby
CloCkWeRX has quit [Ping timeout: 265 seconds]
yasm has joined #ruby
yasm has quit [Client Quit]
manjaro-kde5_ has joined #ruby
xen0fon has joined #ruby
iwmrby has joined #ruby
pandaant has joined #ruby
djbkd has joined #ruby
nowhere_man has joined #ruby
_sfiguser has joined #ruby
anisha has quit [Quit: Leaving]
toretore has joined #ruby
CloCkWeRX has joined #ruby
alem0lars__ has joined #ruby
alem0lars__ has quit [Client Quit]
x00r__ has joined #ruby
izaac has quit [Ping timeout: 252 seconds]
izaac has joined #ruby
djbkd has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
xall has quit [Ping timeout: 252 seconds]
Devalo has joined #ruby
pawnbox has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
kassav has quit [Read error: No route to host]
GodFather has joined #ruby
kassav has joined #ruby
manjaro-kde5_ has quit [Ping timeout: 260 seconds]
roshanavand has quit [Ping timeout: 248 seconds]
kassav has quit [Quit: kassav]
kassav_ has joined #ruby
kassav_ is now known as kassav
milardovich has quit []
eggshke has quit [Remote host closed the connection]
Pumukel has joined #ruby
pragmaticus has joined #ruby
cyphase has quit [Ping timeout: 258 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
cyphase has joined #ruby
prestorium has joined #ruby
eggshke has joined #ruby
pandaant has quit [Remote host closed the connection]
yasm has joined #ruby
Devalo has quit [Ping timeout: 258 seconds]
bronson has joined #ruby
bkxd has quit [Ping timeout: 245 seconds]
mradmach1 has quit [Quit: WeeChat 1.4]
anisha has joined #ruby
mradmacher has joined #ruby
Macaveli has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
TomyLobo has quit [Disconnected by services]
vicbtmpefczkdnva has joined #ruby
vicbtmpefczkdnva is now known as fwjxoiqgnaxpueqw
fwjxoiqgnaxpueqw is now known as TomyLobo
xall has joined #ruby
kassav has quit [Quit: kassav]
AndroUser12 has joined #ruby
<AndroUser12>
hello
<AndroUser12>
can someone help me
<AndroUser12>
gem install unf_ext -v '0.0.7.2'
<AndroUser12>
cant install
<AndroUser12>
says headers or something is missing
<AndroUser12>
failed to compile
atomicTrue has joined #ruby
<matthewd>
AndroUser12: Everything shown in the error message is there because someone thinks it will be helpful in diagnosing the problem. Abbreviating that to "or something" is unlikely to produce a very informative answer.
<matthewd>
AndroUser12: Okay, my suggestion would be to use a chruby/rbenv managed ruby instead of system ruby
<AndroUser12>
hmm
<matthewd>
AndroUser12: But your immediate problem is that you don't have everything installed that was present/used to compile your current ruby; you can fix it by installing whatever's missing
<AndroUser12>
i have to delete
<AndroUser12>
reinstall?
<matthewd>
rpm has a "which package provides this file" command, doesn't it?
<AndroUser12>
yes
<matthewd>
If you can find what contains this redhat-hardened-cc1, you should be able to install that
<matthewd>
But yeah, if you're setting up an environment for substantial rubying, I'd suggest switching to a non-system ruby instead
<AndroUser12>
why
<AndroUser12>
installing rpm config
enyo has quit [Ping timeout: 264 seconds]
symm- has joined #ruby
CloCkWeRX has joined #ruby
yasm has quit [Quit: Leaving.]
MrBismuth has quit [Ping timeout: 248 seconds]
<AndroUser12>
haha thanks man
<AndroUser12>
its working :)
yasm has joined #ruby
cyphase has quit [Ping timeout: 240 seconds]
<AndroUser12>
now cant install gem install nokogiri -v '1.6.8'
<AndroUser12>
lol
lolmaus_ has quit [Quit: Connection closed for inactivity]
spectrum has quit [Ping timeout: 265 seconds]
Robtop__ has joined #ruby
cyphase has joined #ruby
yasm has quit [Quit: Leaving.]
<matthewd>
At least you know where to start investigating now :)
h1fuelcell has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 268 seconds]
prestorium has quit [Ping timeout: 265 seconds]
<AndroUser12>
hardened cc1
<AndroUser12>
but i just installed it
<AndroUser12>
so you recommend chruby
<AndroUser12>
?
<AndroUser12>
i need to remove ruby or?
<matthewd>
I personally use rbenv, but that's mostly because I chose it before chruby existed, and I've had no impetus to reconsider. chruby does seem to be a bit more popular these days.
prestorium has joined #ruby
<AndroUser12>
ok
<AndroUser12>
do i need to uninstall ruby first
<AndroUser12>
or?
<matthewd>
Either of them will work with a separately installed/compiled ruby in your home directory, so won't care whether there's a system-installed ruby as well
h1fuelcell has quit [Ping timeout: 248 seconds]
<AndroUser12>
it removed all my scripts
<AndroUser12>
!!!!!!!!!!!!!!!!
<AndroUser12>
tf lol
<AndroUser12>
its good i had it all backed up
<matthewd>
I'm not sure what "it" or "scripts" are in that context
<AndroUser12>
should i remove some gem files
<AndroUser12>
in lib64
<AndroUser12>
that werent removed
<AndroUser12>
?
atomicTrue has left #ruby [#ruby]
Ishido has joined #ruby
minimalism has quit [Quit: minimalism]
<AndroUser12>
no chruby found
tjikkun has joined #ruby
<tjikkun>
say I have arrays a = ['a','b'] and b = ['c', 'd'] and I would like from that input to get output array c = ['a:c', 'a:d', 'b:c', 'b:d'], what would by ruby code need to be?
<herwin>
matthewd: yes, i meants lupine instead of go|dfish
<herwin>
sorry go|dfish ;)
<dminuoso>
tjikkun: It also is very self explanatory in what it does
<tjikkun>
thanks guys!
<dminuoso>
nested maps with string manipulations rarely are :)
Robtop__ has quit [Ping timeout: 260 seconds]
<dminuoso>
tjikkun: For readability you could also use (a ** b)
<dminuoso>
depending on what you prefer
tubuliferous has quit [Ping timeout: 258 seconds]
xall has quit [Ping timeout: 258 seconds]
bkxd has joined #ruby
<tjikkun>
well, it needs to work on ancient ruby
manjaro-kde5_ has joined #ruby
<dminuoso>
Oh wait nevermind that. Thats not what I meant.
<dminuoso>
Looked at the wrong documentation
<dminuoso>
:)
bronson has joined #ruby
rwb has quit [Ping timeout: 246 seconds]
<tjikkun>
well I'll just go with go|dfish's suggestion, but nice to see lot's af friendly help, and kudo's to matthewd for not spoonfeeding ;)
toretore has quit [Ping timeout: 265 seconds]
xall has joined #ruby
SpiffTR has quit [Quit: Leaving.]
pwnd_nsfw has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 265 seconds]
czerasz has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
blackbom1 has joined #ruby
milardovich has joined #ruby
<mguezuraga>
Anybody with a bit of experience with OpenSSL::Cipher::Cipher? I'm trying to understand how a key of 40 bytes gets 'truncated' to 32 bytes
blackbombay has quit [Ping timeout: 265 seconds]
pytuger has quit [Quit: "be back later"]
SpiffTR has joined #ruby
symm- has quit [Quit: Leaving...]
czerasz has quit [Ping timeout: 265 seconds]
blackbom1 has quit [Ping timeout: 246 seconds]
synthroid has joined #ruby
byte512 has joined #ruby
enyo has joined #ruby
sdwrage has joined #ruby
cyphase has quit [Ping timeout: 246 seconds]
marr has quit [Ping timeout: 258 seconds]
lenwood has joined #ruby
TomyLobo has quit [Ping timeout: 246 seconds]
cyphase has joined #ruby
manjaro-kde5_ has quit [Ping timeout: 252 seconds]
rykou has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
gajus has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
gnufied has joined #ruby
nowz has quit [Quit: Leaving]
h1fuelcell has joined #ruby
conta has quit [Ping timeout: 248 seconds]
AlexRussia has joined #ruby
sdothum has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
eggshke has quit []
minimalism has joined #ruby
conta has joined #ruby
conta has quit [Ping timeout: 258 seconds]
dionysus69 has joined #ruby
RedFromage has joined #ruby
SesMan has quit [Ping timeout: 246 seconds]
Pumukel has joined #ruby
anisha has quit [Read error: Connection reset by peer]
d34th4ck3r has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jokke has quit [Remote host closed the connection]
dviola has joined #ruby
x00r__ has joined #ruby
aef has quit [Ping timeout: 258 seconds]
shinnya has joined #ruby
polysics has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
<mguezuraga>
manveru: you're right, 2.4.0 says: 'key must be 32 bytes'. In the end, I'm just wondering how 2.0 is doing to truncate it to 32, since my production systems are running that version
symm- has joined #ruby
cyphase has joined #ruby
<manveru>
good question...
Devalo has joined #ruby
<mguezuraga>
I can assume it's taking the 32 first characters, but I want to be sure
jokke has joined #ruby
<herwin>
try using the first 32 chars of the 40 as key
<herwin>
it should have the same result if it does that internally
Devalo has quit [Remote host closed the connection]
cyphase has joined #ruby
Devalo has joined #ruby
astrobunny has quit [Ping timeout: 250 seconds]
<soahccc>
Is there a way for a ruby script to both be able to accept piped input and receive input from the terminal client? I think this doesn't work? I had a somewhat working solution with curses but the user input was delayed by seconds (I guess curses multiplexes the stdin somehow?)
DLSteve has joined #ruby
<ytti>
arent they both the same
<ytti>
reading from STDIN
pawnbox has quit [Remote host closed the connection]
bkxd has joined #ruby
<raldu_>
soahccc: what exactly is the use case for such a need? just curious
tubuliferous has quit [Ping timeout: 258 seconds]
Devalo has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
<mguezuraga>
updated my gist. Thanks manveru!
<soahccc>
raldu_: I wrote a script that parses our access logs and detects malicious clients based on some heuristics and softbans them (like googles "your network blabla, captcha blabla"). I need some way to control the script (esp. in development) and currently I rely on file based instructions (read a file in the loop and look for instructions)
cyphase has quit [Ping timeout: 256 seconds]
astrobunny has joined #ruby
<soahccc>
ytti: well they kinda do that but in the code it's ARGF vs STDIN
symm- has quit [Ping timeout: 245 seconds]
bkxd has quit [Ping timeout: 265 seconds]
<manveru>
same thing, basically
<manveru>
once your stdin is connected to a pipe, you'd have to switch it back
bronson has quit [Ping timeout: 245 seconds]
<soahccc>
I don't know how curses was able to do that but I guess it does that behind the scenes, that's why there is the delay
<ytti>
soahccc, what, no
<ytti>
soahccc, ARGF either parses argument as file to open or reads STDIN
<manveru>
if you're parsing logfiles, why don't you pass the logfile as argument?
<soahccc>
ytti: what i mean is that curses was able to get user input while it was reading from the pipe
<raldu_>
soahccc: perhaps it read from stderr?
skydiver has joined #ruby
bkxd has joined #ruby
<soahccc>
manveru: yeah I was thinking about that. currently we grep out 90% of the requests which I could do with ruby but this will increase the regexing load by a few times :)
djbkd has joined #ruby
cyphase has joined #ruby
<soahccc>
raldu_: stderr is output?
<manveru>
hm ok
<manveru>
lemme see if i can figure it out, sounds like fun :)
bkxd has quit [Client Quit]
<manveru>
you possibly can use a named pipe
<soahccc>
Unfortunately I scrapped my curses solution (was trying it manually but got the "Errno::ENOTTY: Inappropriate ioctl for device" problem)
<manveru>
well, a pipe is no tty
<ytti>
soahccc, i think i understand what you mean, and it has nothing to do with ARGF
jenrzzz has quit [Ping timeout: 264 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 256 seconds]
synthroid has quit [Ping timeout: 245 seconds]
saslam has quit [Ping timeout: 268 seconds]
lightstalker has quit [Ping timeout: 260 seconds]
<manveru>
soahccc: i think i got it
<manveru>
but not sure how cross-platform it is
lenwood has joined #ruby
synthroid has joined #ruby
lightstalker has joined #ruby
<manveru>
soahccc: your piped file is IO.for_fd(11), and the terminal is IO.for_fd(0)
ferr1 has quit [Quit: WeeChat 1.6]
SpiffTR has joined #ruby
Azure has quit [Ping timeout: 250 seconds]
<soahccc>
manveru: where did you get those magic numbers from? :D
<manveru>
/proc
Illianthe has joined #ruby
<manveru>
yeah, that's not working
Illianthe2 has quit [Ping timeout: 250 seconds]
<manveru>
i'll figure out a better solution :)
<manveru>
my test was with <(echo hi) pipe, but depending on the file, the fd changes
lenwood has quit [Remote host closed the connection]
lenwood has joined #ruby
pawnbox has joined #ruby
creat has quit [Ping timeout: 258 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<manveru>
soahccc: made a little script to figure out wtf is going on
<manveru>
basically, fd 0 changes depending on the thing being piped
<manveru>
if something is piped, /dev/pts/0 moves to fd 1
gajus has quit [Quit: Connection closed for inactivity]
<manveru>
you don't need the sleep, but otherwise i'd have to pipe massive files to try it
<manveru>
i'm sure relying on the fd numbers is a bad pattern, but i'm not sure what better way there is
<soahccc>
manveru: I just realized that curses didn't do shit. I just randomly reads a character from the log input every so often (3-10 seconds) :(
Fernando-Basso has joined #ruby
<manveru>
yeah
<manveru>
curses would treat your file as someone typing in the console if you're unlucky...
<manveru>
also curses is dead, you mean ncurses?
lenwood has quit [Quit: Konversation terminated!]
manjaro-kde5- has joined #ruby
<manveru>
anw, hope my script helps you, it should do everything you need :)
<manveru>
should be fairly safe as long as you run it only on linux
manjaro-kde5- has quit [Client Quit]
manjaro-kde5- has joined #ruby
h1fuelcell has joined #ruby
<soahccc>
manveru: the gem is just called curses, I guess it's the old one :) I try your solution in a sec
AliG1000 has quit []
Rutix has quit []
mikeXsh has joined #ruby
dionysus69 has joined #ruby
<soahccc>
manveru: hmm I guess it works, I'm on OS X and with tty it breaks, I used your debug code at the top but how did you indentify the correct one?
<herwin>
``tricks you should do if you want the whole world to hate you''
Jackneill has joined #ruby
bronson has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
d34th4ck3r has joined #ruby
Jackneill has quit [Remote host closed the connection]
Jackneill has joined #ruby
Jackneill has quit [Remote host closed the connection]
newbie1 has joined #ruby
Jackneill has joined #ruby
pytuger has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
Robtop__ has joined #ruby
insanedreamer has joined #ruby
solocshaw has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 252 seconds]
pwnd_nsfw has joined #ruby
insanedreamer has left #ruby [#ruby]
djbkd has joined #ruby
GodFather has joined #ruby
Robtop__ has quit [Ping timeout: 258 seconds]
mrwn has joined #ruby
nadir|mobile has quit [Quit: Connection closed for inactivity]
djbkd has quit [Ping timeout: 268 seconds]
Pumukel has joined #ruby
Jackneill has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
LoneHerm_ has joined #ruby
coetry has joined #ruby
benlieb has joined #ruby
pwnd_nsfw has quit [Ping timeout: 246 seconds]
Pumukel has quit [Ping timeout: 250 seconds]
LoneHerm_ has quit [Ping timeout: 248 seconds]
benlieb has quit [Client Quit]
Jackneill has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
MrBismuth has joined #ruby
shinnya has quit [Ping timeout: 258 seconds]
Mother has joined #ruby
<Mother>
which javascript book is best suited for ruby?
<Mother>
beginner point of view
<Mother>
for rails i mean
<Mother>
?
kirun has joined #ruby
emilkarl has quit [Quit: emilkarl]
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mguezuraga has quit [Quit: Leaving.]
cyphase has quit [Ping timeout: 258 seconds]
astrobunny has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 248 seconds]
Mother has quit [Ping timeout: 260 seconds]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cyphase has joined #ruby
ishe_ua has quit [Remote host closed the connection]
solocshaw has quit [Quit: solocshaw]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mrwn has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
synthroid has quit [Remote host closed the connection]
gnufied has quit [Ping timeout: 240 seconds]
cats has quit [Quit: BURN HIS HOUSE DOWN]
cats has joined #ruby
benlieb has joined #ruby
polysics has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
GodFather has joined #ruby
Lord_of_Life has quit [Excess Flood]
Pumukel has joined #ruby
enilsen16 has joined #ruby
Lord_of_Life has joined #ruby
jhack has quit [Quit: jhack]
xall has quit [Ping timeout: 264 seconds]
coetry_ has joined #ruby
wugy has quit []
gusrub has joined #ruby
amclain has joined #ruby
SpiffTR has quit [Quit: Leaving.]
millerti has joined #ruby
bronson has joined #ruby
Pumukel has quit [Ping timeout: 256 seconds]
aef has joined #ruby
pawnbox has quit [Remote host closed the connection]
LuckyABA has joined #ruby
pawnbox has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
xall has joined #ruby
IceDragon has joined #ruby
IceDragon is now known as Guest5991
<biox>
quit
Guest5991 is now known as IceDragon
GodFather has quit [Ping timeout: 246 seconds]
enilsen16 has quit [Quit: enilsen16]
kus has joined #ruby
SpiffTR has joined #ruby
enyo has quit [Ping timeout: 264 seconds]
synthroid has joined #ruby
milardovich has joined #ruby
oaklndr1 has joined #ruby
braincrash has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
GodFather has joined #ruby
frozengeek has quit [Quit: frozengeek]
emilkarl has joined #ruby
ajsharma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lolmaus_ has joined #ruby
emilkarl has quit [Client Quit]
tau has joined #ruby
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
Couch has quit [Ping timeout: 250 seconds]
agit0 has quit [Ping timeout: 260 seconds]
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
symm- has joined #ruby
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
yeticry has joined #ruby
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
emilkarl has joined #ruby
yeticry_ has quit [Read error: Connection reset by peer]
emilkarl has quit [Client Quit]
Macaveli has joined #ruby
braincrash has joined #ruby
SpiffTR has quit [Quit: Leaving.]
pwnd_nsfw has joined #ruby
braincrash has quit [Ping timeout: 250 seconds]
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
h1fuelcell has quit [Remote host closed the connection]
learning has joined #ruby
_sfiguser has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
xall has quit [Ping timeout: 256 seconds]
milardovich has quit [Ping timeout: 245 seconds]
duderonomy has joined #ruby
SpiffTR has joined #ruby
skydiver has quit [Ping timeout: 250 seconds]
webopsx has joined #ruby
<c-c>
I have some problems with file-io bound processes
<lupine>
faster discs?
<c-c>
- or, basically a process that keeps on failing because certain files have not hit the disk yet
<c-c>
So my question:
<c-c>
Whats the correct way to loop until file A and file B exist?
<Papierkorb>
naive way: `sleep 1 until File.exist?("a") && File.exist?("b")`
<Papierkorb>
smarter way: Some gem which listens to filesystem changes, may not be portable
learning has quit []
<lupine>
inotify > *
<c-c>
Basically its a Dir.mkdir, and two system mkfifo calls. For some reason these return before the open("/dir/fifo/", "r") can open them, so it returns Errno::EINTR
dunpeal has quit [Quit: leaving]
<lupine>
that sounds posix-violate-y
<c-c>
So, the resulting behaviour the sequence fails about 70% of the time
manjaro-kde5- has quit [Ping timeout: 248 seconds]
<c-c>
*is, that the sequence...
<c-c>
- I assume that Errno::EINTR means that the dir & fifo -files have not been fully created
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ajsharma has joined #ruby
ajsharma has quit [Client Quit]
<al2o3-cr>
c-c: there is File.mkfifo you could use
aremaref has joined #ruby
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<c-c>
al2o3-cr: not on this 2.1
ta has joined #ruby
<al2o3-cr>
ah, yeah 2.3 :(
<c-c>
anyway, the call "system('dir/fifoname')" should be blocking by all reason
<c-c>
uh, system('mkfifo dir/fifoname')
symm has joined #ruby
<c-c>
- Also, the sequence works every time if there are pre-created Dir and fifo-files
<c-c>
(ie. no cleanup from the previous attempt)
symm- has quit [Ping timeout: 258 seconds]
<c-c>
- Also, the two different class instances in two different daemonized processes give the (Errno::EINTR) randomly, so I'm pretty sure its disk io thing
* c-c
saves 20 microseconds per request over a socket, lose 2 days debugging this
<al2o3-cr>
c-c: just rescue then retry
bronson has joined #ruby
milardovich has joined #ruby
SpiffTR has quit [Quit: Leaving.]
LoneHermit has joined #ruby
SpiffTR has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
bronson has quit [Ping timeout: 248 seconds]
enyo has joined #ruby
<c-c>
Testing for File.exists? does not help with Errno::EINTR when open("dir/fifofile", "w"). (or "r")
LoneHermit has quit [Ping timeout: 258 seconds]
tyang_ has joined #ruby
Devalo has joined #ruby
aupadhye has quit [Ping timeout: 246 seconds]
enyo has quit [Ping timeout: 245 seconds]
tyang_ has quit [Read error: Connection reset by peer]
tyang_ has joined #ruby
tyang has quit [Ping timeout: 260 seconds]
pwnd_nsfw has quit [Ping timeout: 252 seconds]
pilne has joined #ruby
pwnd_nsfw has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
<c-c>
Ok, now have it working
Fernando-Basso has quit [Ping timeout: 246 seconds]
pwnd_nsfw` has joined #ruby
bocaneri has quit [Read error: Connection reset by peer]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
<c-c>
The fifo idea: pfifo='/path/name.fifo'; system(pfifo); p = fork do; begin; rd = open(pfifo, 'r'); rescue Interrupt, Errno::EINTR; retry; end; puts rd.gets while !rd.closed?; end; wr = open(pfifo, "w"); pw.puts Time.now while !pw.closed?
<c-c>
Who knows, maybe even wrap the second open in a begin-rescue!
LuckyABA has joined #ruby
Devalo has quit [Ping timeout: 268 seconds]
xall has joined #ruby
h1fuelcell has joined #ruby
last_staff has joined #ruby
Fernando-Basso has joined #ruby
dar123 has joined #ruby
tyang__ has joined #ruby
yasm has joined #ruby
xall has quit [Ping timeout: 256 seconds]
yasm has quit [Client Quit]
h1fuelcell has quit [Ping timeout: 264 seconds]
yasm has joined #ruby
Talltree has quit [Quit: Talltree]
ur5us has joined #ruby
tyang_ has quit [Ping timeout: 268 seconds]
Talltree has joined #ruby
ur5us has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
nowhere_man has quit [Ping timeout: 246 seconds]
nankyokusei has joined #ruby
dunpeal has joined #ruby
<dunpeal>
I have a `puts "foo"` line inside a spec test. When I run it via rspec, "foo" never gets printed, even though other puts calls in methods executed by the spec do get printed normally. What's up?
GodFather has quit [Remote host closed the connection]
<matthewd>
dunpeal: Probably the same thing that caused you to add the line in the first place. Describe that problem instead?
nankyokusei has quit [Ping timeout: 260 seconds]
<c-c>
dunpeal: a process usually has stdin, stdout and stderr - perhaps spec redirects these someplace other than your controlling terminal
pragmaticus has quit [Ping timeout: 250 seconds]
<dunpeal>
matthewd: nothing. I'm putting a bunch of puts calls in that spec to check why it's not exposing a bug.
<dunpeal>
there was no problem with puts to begin with.
<dunpeal>
c-c: any idea where?
kobain has joined #ruby
SpiffTR has quit [Quit: Leaving.]
<matthewd>
dunpeal: Code please
tildes has joined #ruby
jhack has joined #ruby
rippa has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
<dunpeal>
thanks, I found the issue.
<dunpeal>
and yes, rspec doesn't automatically redirect stdout. I was confusing it with some popular Python test runners that do.
Pumukel has joined #ruby
Macrobiotic has joined #ruby
milardovich has quit [Ping timeout: 258 seconds]
troulouliou_div2 has joined #ruby
Pumukel has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
Talltree has quit [Quit: Talltree]
Talltree has joined #ruby
tyang__ has quit [Read error: Connection reset by peer]
tyang_ has joined #ruby
Pumukel has joined #ruby
pawnbox has quit [Remote host closed the connection]
kristofferR has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
pragmaticus has joined #ruby
Pumukel has quit [Ping timeout: 246 seconds]
nowhere_man has joined #ruby
milardovich has joined #ruby
coetry_ has quit [Ping timeout: 260 seconds]
coetry has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
yasm has quit [Quit: Leaving]
Chrish_ has joined #ruby
coetry has joined #ruby
pawnbox has joined #ruby
<Chrish_>
Good evening everyone. I am trying to package my ruby scripts into an executable using OCRA, but I am running into some trouble with RMagick2. What my application does is generate some graphs using the Gruffy gem, which relies on rmagick.
<Chrish_>
When the application is run on another machine it gives the error that RMagick2.so could not be found.
tildes has quit [Ping timeout: 250 seconds]
tildes has joined #ruby
<Chrish_>
How do I go about including the .so file, should I even do so?
cratchet311 has joined #ruby
moei has quit [Quit: Leaving...]
SpiffTR has joined #ruby
Lord_of_Life has quit [Excess Flood]
lacour has joined #ruby
Lord_of_Life has joined #ruby
walterheck has joined #ruby
tildes has quit [Ping timeout: 258 seconds]
[Butch] has joined #ruby
lightstalker has quit [Ping timeout: 258 seconds]
kus has quit [Quit: Konversation terminated!]
<Chrish_>
Google searches don't turn up much, the OCRA docs don't seem to mention it either.
agit0 has joined #ruby
tyang_ has quit [Quit: Leaving]
tyang has joined #ruby
ruid_ has joined #ruby
h1fuelcell has joined #ruby
SpiffTR has quit [Quit: Leaving.]
lightstalker has joined #ruby
agit0 has quit [Client Quit]
blackbombay has joined #ruby
h1fuelcell has quit [Ping timeout: 248 seconds]
doubleemms has quit []
coetry has quit [Ping timeout: 265 seconds]
ResidentBiscuit has joined #ruby
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
ta has quit [Read error: Connection reset by peer]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
GodFather has joined #ruby
blackbombay has quit [Ping timeout: 245 seconds]
milardovich has joined #ruby
siddart_ has joined #ruby
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
frozengeek has joined #ruby
agit0 has joined #ruby
nowhere_man has quit [Ping timeout: 246 seconds]
siddart has quit [Ping timeout: 256 seconds]
troulouliou_div2 has quit [Quit: Leaving]
milardovich has quit [Ping timeout: 250 seconds]
blackbombay has joined #ruby
xall has joined #ruby
LoneHerm_ has joined #ruby
agit0 has quit [Ping timeout: 260 seconds]
enyo has joined #ruby
doubleemms has joined #ruby
LoneHerm_ has quit [Ping timeout: 245 seconds]
<Chrish_>
Is anyone alive in this channel?
<dminuoso>
No.
hahuang65 has joined #ruby
SpiffTR has joined #ruby
emilkarl has joined #ruby
enyo has quit [Ping timeout: 246 seconds]
<Chrish_>
dminuoso: I am confused, is this not the channel where one can ask for help on Ruby matters?
milardovich has joined #ruby
byte512 has quit [Ping timeout: 258 seconds]
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
bronson has joined #ruby
Asher has quit [Quit: Leaving.]
<havenwood>
Chrish_: It's a Holiday lull.
coetry has joined #ruby
<havenwood>
Chrish_: But this is the right place!
Asher has joined #ruby
<havenwood>
Chrish_: Also, library-specific questions typically take longer to get an answer.
djbkd has joined #ruby
pwnd_nsfw has joined #ruby
kus has joined #ruby
oaklndr1 has quit [Quit: Leaving]
d34th4ck3r has quit [Quit: d34th4ck3r]
manjaro-kde5- has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
oaklndr1 has joined #ruby
Asher has quit [Client Quit]
Asher has joined #ruby
Asher has quit [Client Quit]
Asher has joined #ruby
millerti has joined #ruby
djbkd has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
elementaru has joined #ruby
h1fuelcell has quit [Remote host closed the connection]
nadir|mobile has joined #ruby
sdwrage has joined #ruby
gajus has quit [Quit: Connection closed for inactivity]
synthroi_ has joined #ruby
jobingo has joined #ruby
symm has quit [Quit: Leaving...]
hightower3 has quit [Ping timeout: 245 seconds]
synthroid has quit [Ping timeout: 258 seconds]
<jobingo>
Good evening everyone! I have wasted whole post-Christmas day because of Rubygems: I wonder if anyone had some problems with SSL certificates and couldn't install any gems from HTTPS source?
<havenwood>
jobingo: As you probably know, Ruby 2.1 is no longer maintained with bug fixes including new certs and only receives security updates until february
hightower3 has joined #ruby
<jobingo>
Chrish_: I tried everything from this page. The weird thing is I am on Ubuntu and I shouldn't have any problem
<jobingo>
I have had the same problem with Ruby 2.3.3, via rvm
prestorium has quit [Quit: Leaving]
<havenwood>
jobingo: The best option would be to update to the latest Ruby 2.2, 2.3 or 2.4. Try installing the ca-certificates package.
oaklndr1 has quit [Remote host closed the connection]
Illianthe has quit [Remote host closed the connection]
tyang_ has joined #ruby
oaklndr1 has joined #ruby
coetry has quit [Ping timeout: 294 seconds]
crayfishx has quit [Excess Flood]
foption has quit [Remote host closed the connection]
crayfishx has joined #ruby
UserJosh has quit [Ping timeout: 266 seconds]
matp has quit [Excess Flood]
lenwood has joined #ruby
rykou has quit [Quit: WeeChat 1.6]
Pisuke has quit [Max SendQ exceeded]
manjaro-kde5- has quit [Write error: Broken pipe]
tyang has quit [Ping timeout: 245 seconds]
aidalgol has joined #ruby
ibouvousaime has joined #ruby
nettoweb has joined #ruby
Pisuke has joined #ruby
HBurks1618 has left #ruby [#ruby]
emilkarl has quit [Quit: emilkarl]
siddart_ has quit [Quit: WeeChat 1.4]
Yacker has joined #ruby
symm- has joined #ruby
ruid_ has joined #ruby
jobingo has quit [Ping timeout: 260 seconds]
lenwood has quit [Ping timeout: 246 seconds]
walterheck has quit [Ping timeout: 260 seconds]
blackbombay has quit [Ping timeout: 248 seconds]
CloCkWeRX has joined #ruby
unreal has joined #ruby
<machinewar>
gst
unreal_ has quit [Ping timeout: 264 seconds]
<manveru>
gnu smalltalk?
<havenwood>
generalized suffix tree?
<machinewar>
lol 'git status'
<machinewar>
in wrong input
<manveru>
:)
* apeiros
had that aliased to `gs` until ghostscript got installed…
<manveru>
mine's `g st`
<machinewar>
at least it wasn't an accidental vim command
<apeiros>
that'd open the bookmark named 'st'
<machinewar>
that usually throws coworkers off
pry0cc has joined #ruby
<pry0cc>
Hello! Er. Friends.
<pry0cc>
Is anybody here a Mechanize pro?
kus has quit [Quit: Konversation terminated!]
nettoweb has quit [Ping timeout: 260 seconds]
nettoweb1 has joined #ruby
<manveru>
how about you just asking your problem, higher chance of people responding :)
<manveru>
i'd never answer if someone asked for a pro electrician, but i can change a lightbulb nonetheless
<pry0cc>
Okay! So I am writing a very simple script to clone a website. And one of the things it does is call a random url to get the 404 page. The issue however with 404 and Mechanize, is that it throws a Net::HTTPNotFound error, but I want to load that page regardless of whether its a 404 or not. Any suggestions?
<pry0cc>
is there a "mechanize.ignore404" kind of option?
benlieb has quit [Quit: benlieb]
nankyokusei has joined #ruby
<manveru>
that's if you use the Net::HTTP client with mechanize
blackbombay has joined #ruby
<pry0cc>
manveru: so how would I do it differently?
<pry0cc>
can i specify another http client?
<manveru>
well, you should actually get a Mechanize::ResponseCodeError