<Guest9632>
but it's giving me a really crappy error
<Guest9632>
stackoverflow is no help
<Guest9632>
windows 10
blackjid has quit [Max SendQ exceeded]
jonnie has joined #ruby
cmoneylulz has joined #ruby
blackjid has joined #ruby
robbyoconnor has quit [Ping timeout: 265 seconds]
willardg has joined #ruby
<Guest9632>
d
<Guest9632>
d
<Guest9632>
d
<Guest9632>
dd
<Guest9632>
Your Gemfile lists the gem sqlite3 (>= 0) more than once. You should probably keep only one of them. While it's not a problem now, it could cause errors if you change the version of just one of them later. Fetching gem metadata from https://rubygems.org/.......... Fetching version metadata from https://rubygems.org/.. Resolving dependencies.... Using rake 10.4.2 Using i18n 0.7.0 Installing json 1.8.3 with native extensions Gem::Ex
<Ox0dea>
You're everything a decent netizen shouldn't be.
diegoaguilar has joined #ruby
justicefries has joined #ruby
bruce_lee has quit [Ping timeout: 240 seconds]
<imperator>
Guest9632, you're using the ruby installer for windows right?
<EllisTAA>
Radar: the other day they asked me to wriet a method that told whether a string of parentheses is balanced e.g. “)(“ would you say that’s just as stupid
<Radar>
yes
<EllisTAA>
lp;
<Radar>
These crap coding interviews need to stop.
<Radar>
Pair with people on real problems for 30mins and see how they go
<Radar>
It's getting utterly ridiculous.
Motoservo has quit [Read error: Connection reset by peer]
<EllisTAA>
would u be down to pair sometime this week?
<EllisTAA>
meh nvm
<Radar>
"Here, let me prove how smart I am by proposing an unrealistic problem with unrealistic restrictions"
<Radar>
why nvm?
<EllisTAA>
i assumed u r busy
<Radar>
pah
<Radar>
I likely have time this Saturday
<EllisTAA>
what kind of question would u ask in a pairing session?
<Radar>
I've got a reminder in now to see if you've got that sorted by Friday this week.
<Radar>
pipework: hah. I don't even know when I'm available most of the time :OP
<pipework>
Radar: :D
dopie has quit [Ping timeout: 256 seconds]
rbennacer has quit [Remote host closed the connection]
<Radar>
Next Tuesday is a public holiday here so that some horses can run around in circles.
AccordLTN is now known as AccordLT
Feyn has joined #ruby
rshetty has joined #ruby
workmad3 has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
saddad has quit [Read error: No route to host]
<shevy>
you australians are so weird!
jonnie has joined #ruby
saddad has joined #ruby
<lemur>
sounds like a roundabout way to get time off Radar
<Radar>
lemur: nuck nuck nuck
<Radar>
oops, sorry nuck!
lemur is now known as baweaver
saddad has quit [Read error: No route to host]
<baweaver>
every time.
benlieb has joined #ruby
rshetty has quit [Remote host closed the connection]
saddad has joined #ruby
p1k has joined #ruby
Motoservo has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
pontiki_ is now known as pontiki
<pipework>
The biggest difference between Australians and Americans seems to be that us Americans prefer to make the things that can kill you, Australia just has them naturally occurring everywhere.
jonnie has quit [Ping timeout: 250 seconds]
<pontiki>
lol, so true, pipework
favadi has joined #ruby
FrankD has joined #ruby
moeabdol has joined #ruby
<shevy>
koalas riding on kangaroos swinging deadly spears
<Coraline>
Don't forget the drop bears.
<pipework>
Coraline: And please, don't neglect the hoop snakes. They really hate that.
<Coraline>
Of course
bigmac_ has quit [Ping timeout: 265 seconds]
<Coraline>
But see both of those things are totally plausible given the variety of Australian animals that actually do want to eat you.
<Ox0dea>
I agree with the end of the shortref: booo.
PaulCapestany has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
trosborn has joined #ruby
p1k has joined #ruby
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
jonnie has joined #ruby
gix has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
gix has joined #ruby
rshetty has quit [Remote host closed the connection]
m3_del has joined #ruby
rshetty has joined #ruby
m3_del has quit [Remote host closed the connection]
m3_del has joined #ruby
chipotle has joined #ruby
jamto11 has joined #ruby
m3_del has quit [Ping timeout: 246 seconds]
HANJIN has joined #ruby
finisherr has left #ruby [#ruby]
paracr4ck has quit [Quit: Leaving]
saddad has quit [Read error: No route to host]
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
janelleb has quit [Ping timeout: 268 seconds]
psy_ has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
vdamewood has joined #ruby
shinenelson has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest3843
krz has joined #ruby
saddad has joined #ruby
Guest3843 has quit [Ping timeout: 246 seconds]
speaking1ode has quit [Ping timeout: 240 seconds]
speaking1ode has joined #ruby
jamto11 has quit [Remote host closed the connection]
spuk has quit [Ping timeout: 256 seconds]
nemo_ has joined #ruby
d34th4ck3r has quit [Quit: zzz]
freerobby1 has quit [Quit: Leaving.]
Soda has joined #ruby
RegulationD has joined #ruby
Gnomethrower is now known as J5
J5 is now known as Gnomethrower
inteq has quit [Ping timeout: 256 seconds]
tubuliferous_ has quit [Ping timeout: 256 seconds]
rshetty has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 250 seconds]
inteq has joined #ruby
bruce_lee2 has quit [Changing host]
bruce_lee2 has joined #ruby
bruce_lee2 is now known as bruce_lee
gambl0re has quit [Ping timeout: 265 seconds]
sanjayu has joined #ruby
rshetty has joined #ruby
alcipir has joined #ruby
SuzieQueue has quit [Ping timeout: 246 seconds]
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
arup_r has joined #ruby
workmad3 has joined #ruby
alcipir has quit [Ping timeout: 265 seconds]
saddad has quit [Ping timeout: 264 seconds]
arescorpio has quit [Quit: Leaving.]
krz has quit [Ping timeout: 252 seconds]
jamto11 has joined #ruby
alcipir has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
unclouded has quit [Read error: No route to host]
workmad3 has quit [Ping timeout: 265 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
greedo has quit [Ping timeout: 260 seconds]
alcipir has quit [Ping timeout: 256 seconds]
Ox0dea has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cheerio]
moeabdol has joined #ruby
jonnie has quit [Ping timeout: 264 seconds]
zarubin has joined #ruby
toy has joined #ruby
m3_del has joined #ruby
moeabdol has quit [Ping timeout: 265 seconds]
eminencehc has joined #ruby
zarubin has quit [Ping timeout: 250 seconds]
favadi has joined #ruby
jenrzzz has joined #ruby
m3_del has quit [Ping timeout: 255 seconds]
arup_r has quit [Ping timeout: 255 seconds]
nisstyre has joined #ruby
arup_r has joined #ruby
alcipir has joined #ruby
eminencehc has quit [Ping timeout: 246 seconds]
kp666 has joined #ruby
CloCkWeRX has left #ruby [#ruby]
agent_white has joined #ruby
Contigi has joined #ruby
<agent_white>
Evenin' folks
tubuliferous_ has joined #ruby
ishikawa91 has quit [Quit: Connection closed for inactivity]
alcipir has quit [Ping timeout: 255 seconds]
jamto11 has quit [Remote host closed the connection]
krazyj has quit [Quit: krazyj]
Contigi777 has quit [Ping timeout: 240 seconds]
nisstyre has quit [Changing host]
nisstyre has joined #ruby
skade has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
favadi has quit [Ping timeout: 260 seconds]
psy_ has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby
bruno- is now known as Guest44439
cwong_on_irc1 has joined #ruby
cwong_on_irc1 has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
cwong_on_irc1 has joined #ruby
trosborn has quit [Quit: trosborn]
p1k has quit [Ping timeout: 240 seconds]
cwong_on_irc has quit [Ping timeout: 250 seconds]
Guest44439 has quit [Ping timeout: 272 seconds]
swgillespie has joined #ruby
trosborn has joined #ruby
pledgeshield has joined #ruby
timonv has joined #ruby
brt has quit [Ping timeout: 255 seconds]
krz has joined #ruby
sameerynho has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
lxsameer has quit [Ping timeout: 256 seconds]
badhatter has quit [Remote host closed the connection]
howdoi has joined #ruby
maletor has joined #ruby
greedo has joined #ruby
ruby-lang437 has joined #ruby
brt has joined #ruby
dhjondoh has joined #ruby
ta has quit [Remote host closed the connection]
chipotle has joined #ruby
ruby-lang437 has quit [Ping timeout: 246 seconds]
alcipir has joined #ruby
vdamewood has quit [Read error: Connection reset by peer]
vdamewood has joined #ruby
skade has quit [Read error: Connection reset by peer]
alcipir has quit [Ping timeout: 250 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
pledgeshield has quit []
Cyther has quit [Quit: Leaving]
pledgeshield has joined #ruby
mollusk_ has quit [Ping timeout: 260 seconds]
lxsameer_ has joined #ruby
krz has quit [Ping timeout: 252 seconds]
sameerynho has quit [Ping timeout: 246 seconds]
chrissonar has joined #ruby
d34th4ck3r has joined #ruby
nemo_ has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
skade has joined #ruby
jonnie has joined #ruby
arup_r has quit [Ping timeout: 260 seconds]
Meeh has joined #ruby
moeabdol has joined #ruby
djbkd has quit [Quit: Leaving...]
<djellemah>
I'm trying out some ideas related to thread-safe memoisation and single assignment. There are (of course) some interesting interactions between memoisation and .freeze. Anybody know of gem(s) which override .freeze to achieve something useful? TIA.
arup_r has joined #ruby
brt has quit [Ping timeout: 265 seconds]
zarubin has joined #ruby
lxsameer_ has quit [Ping timeout: 265 seconds]
m3_del has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
moeabdol has quit [Ping timeout: 264 seconds]
Meeh has quit [Ping timeout: 260 seconds]
lxsameer_ has joined #ruby
vdamewood has quit [Quit: Life beckons.]
VeryBewitching has quit [Quit: Konversation terminated!]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
zarubin has quit [Ping timeout: 272 seconds]
arup_r has quit [Max SendQ exceeded]
arup_r has joined #ruby
arup_r has quit [Remote host closed the connection]
certainty has joined #ruby
arup_r has joined #ruby
alcipir has joined #ruby
haxrbyte has joined #ruby
m3_del has quit [Ping timeout: 252 seconds]
Meeh has joined #ruby
alcipir has quit [Ping timeout: 252 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has quit [Quit: Leaving...]
benlieb has quit [Quit: benlieb]
<certainty>
moin
devbug has quit [Remote host closed the connection]
alcipir has joined #ruby
p1k has joined #ruby
tagrudev has joined #ruby
polysics has quit [Ping timeout: 260 seconds]
dhjondoh has quit [Quit: dhjondoh]
Or1on has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<agent_white>
\o
htmldrum has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
skcin7 has joined #ruby
codecop has joined #ruby
skcin7_ has quit [Ping timeout: 246 seconds]
trosborn has quit [Quit: trosborn]
rehat has quit [Remote host closed the connection]
dhjondoh has joined #ruby
dhjondoh has quit [Client Quit]
Ox0dea has joined #ruby
<Ox0dea>
djellemah: Could you clarify?
Pupp3tm4st3r has joined #ruby
p1k has quit [Ping timeout: 260 seconds]
<Ox0dea>
Are you wanting to thaw an object and modify it while presenting a "frozen" facade?
skade has quit [Quit: Computer has gone to sleep.]
Salehi has joined #ruby
dhjondoh has joined #ruby
benlieb has joined #ruby
kerunaru has joined #ruby
CloCkWeRX has quit [Ping timeout: 264 seconds]
trosborn has joined #ruby
p1k has joined #ruby
<djellemah>
Ox0dea: Part of it is: def some_value; @some_value ||= calculate_the_value; end doesn't work with a frozen object - obviously. But in sense there's no reason it shouldn't work because memoisation doesn't change the state of the object, it just caches a calculated value based on the state of the object.
grambo has quit [Quit: Leaving]
<Ox0dea>
djellemah: That's a reassignment, though?
<Ox0dea>
I'm missing this relationship you're seeing between frozen objects and memoization.
RegulationD has joined #ruby
bluOxigen has joined #ruby
symm- has joined #ruby
workmad3 has joined #ruby
trautwein has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
dhjondoh has joined #ruby
<Ox0dea>
djellemah: Sorry, I see where I derped; you want to be able to invoke #instance_variable_set on frozen objects, if I'm not mistaken.
alcipir has quit [Ping timeout: 252 seconds]
pledgeshield has quit []
<djellemah>
Ox0dea: Yup, that's pretty much it. With some additional wrinkles cos, well, I'm trying out ideas ;-)
aganov has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
riotjon__ has quit [Quit: Leaving...]
<Ox0dea>
djellemah: Aye, I can appreciate that particular itch.
<Ox0dea>
Fiddle lets you muck about in an object's raw memory, and from there it's just a matter of flipping the FL_FREEZE flag.
mengu has quit [Client Quit]
<Ox0dea>
I should also clarify that `^= 8` actually toggles the flag; you'll want `&= -9` for idempotent thawing.
trosborn has quit [Quit: trosborn]
p1k has quit [Ping timeout: 260 seconds]
alcipir has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
Feyn has quit [Quit: Leaving]
<djellemah>
The real-world driver is I that at one point I had to parallelize several queries in an existing codebase. I tried using .freeze to see if there was any thread-unsafety in the execution paths, but there was memoisation.
* djellemah
reads about Fiddle
chipotle has quit [Quit: cheerio]
moeabdol has joined #ruby
dhjondoh1 has joined #ruby
krazyj has joined #ruby
krazyj has quit [Client Quit]
kraljev11 has joined #ruby
dhjondoh1 has quit [Client Quit]
symm-_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 260 seconds]
sl33k has joined #ruby
dhjondoh has quit [Ping timeout: 264 seconds]
Fredrich010 has quit [Ping timeout: 255 seconds]
jonnie has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
favadi has joined #ruby
krz has joined #ruby
bigkevmcd has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
karapetyan has quit [Ping timeout: 260 seconds]
relix has joined #ruby
chipotle has joined #ruby
firstdayonthejob has joined #ruby
tkuchiki has quit [Remote host closed the connection]
jerry_tao has joined #ruby
tkuchiki has joined #ruby
p1k has joined #ruby
Salehi has quit [Ping timeout: 240 seconds]
beauby has quit [Ping timeout: 260 seconds]
george2 has left #ruby [#ruby]
m3_del has joined #ruby
alcipir has quit [Ping timeout: 268 seconds]
Salehi has joined #ruby
benlieb has quit [Quit: benlieb]
m3_del has quit [Ping timeout: 272 seconds]
kies^ has quit [Ping timeout: 256 seconds]
andikr has joined #ruby
vondruch has quit [Ping timeout: 268 seconds]
keen________ has joined #ruby
jas02 has joined #ruby
p1k has quit [Read error: Connection timed out]
p1k has joined #ruby
Rollabunna has joined #ruby
keen_______ has quit [Ping timeout: 240 seconds]
sl33k has quit [Quit: sl33k]
baweaver has quit [Remote host closed the connection]
Macaveli has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
ta has joined #ruby
agent_wh1te has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_wh1te is now known as agent_white
jas02 has quit [Quit: jas02]
agent_white has quit [Changing host]
agent_white has joined #ruby
matcouto has joined #ruby
krz has quit [Ping timeout: 240 seconds]
beauby has joined #ruby
jonnie has joined #ruby
dikaio has quit [Quit: ........]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
ta has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
ta has joined #ruby
p1k has quit [Ping timeout: 264 seconds]
karapetyan has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
lubarch has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
sdwrage has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jerry_tao has quit [Ping timeout: 250 seconds]
TomyWork has joined #ruby
gagrio has joined #ruby
skade has joined #ruby
charliesome has joined #ruby
jerry_tao has joined #ruby
alcipir has joined #ruby
krz has joined #ruby
yie has quit [Remote host closed the connection]
Gnomethrower is now known as uphoria
troulouliou_div2 has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
yardenbar has joined #ruby
CatMartyn has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
alcipir has quit [Ping timeout: 252 seconds]
astrobunny has joined #ruby
ruurd has joined #ruby
solenoids has quit [Ping timeout: 268 seconds]
futilegames has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
ledestin has quit [Read error: Connection reset by peer]
<norc>
(I want to define the pattern for each house number variant extra, so its easier to find and change if need be)
blizzy has quit [Read error: Connection timed out]
Rollabun_ has joined #ruby
Rollabunna has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
<apeiros>
norc: matching house number formats? aaaahahahahaha, good luck.
bruno- has joined #ruby
<apeiros>
house numbers are seriously fucked up. even in my own tiny country which is otherwise heavily regulated.
bruno- is now known as Guest93503
Xeago has joined #ruby
astrobunny has joined #ruby
blizzy has joined #ruby
trautwein has quit [Read error: Connection reset by peer]
bonemind has joined #ruby
trautwein has joined #ruby
<norc>
apeiros: It is actually specific to just the city we operate in. :)
blizzy has quit [Max SendQ exceeded]
<apeiros>
there's plenty of cities with more people than my whole country :)
<norc>
apeiros: I mean yeah, in reality there is a few more exceptions, but I was just wondering whether this way of compositing a regex is a good idea.
pwnd_nsfw has joined #ruby
<apeiros>
norc: you can also compose regex. i.e. you don't have to use string parts.
beauby has joined #ruby
<apeiros>
>> a = /foo/; b = /bar/; c = /#{a}|#{b}/ # works
<apeiros>
TomyWork: a tool to support our git workflow
<TomyWork>
ah
<TomyWork>
so you're not using git-flow?
<apeiros>
stuff like ensuring that each branch has an owner, no feature branch gets too old, no work is performed on pure merge branches etc.
<apeiros>
no
<norc>
apeiros: I am so amazed now. For such a long time I refused to use slightly larger regular expressions because of maintenance - being able to compose them like that makes them manageable it seems.
<apeiros>
norc: for larger expressions, //x is also very helpful
<TomyWork>
our team might soon(tm) be deciding on a workflow, so i'd be interested in yours :)
<apeiros>
allows multiline regex and comments in them
<TomyWork>
so far i only know git-flow and "meh, we'll just release master once in a while"
<apeiros>
TomyWork: iirc we're relatively close to git-flow.
m3_del has joined #ruby
<norc>
apeiros: Also a nice tip thanks. :)
<apeiros>
TomyWork: we're still working on finding our workflow, but for the moment it's roughly like this:
<apeiros>
TomyWork: we the following branch types: base, release, epic, sprint, feature, bug. I think base/epic/sprint might become a single type. we have a branch naming convention which is mostly PREFIX-TICKET-OWNER-DESCRIPTION.
CrazyEddy has quit [Remote host closed the connection]
<TomyWork>
not PREFIX/....?
<apeiros>
prefix identifies the branch type, single letter. e.g. f- for feature. ticket is the redmine ticket number. owner is the initials of the owner. e.g. SR for me. description is just a free form descriptive text. so a branch might be f-1234-SR-new-mail-texts
<apeiros>
we create one or more new acceptance branch from a base branch (usually master). we merge all features which are ready to be tested and release that to our acceptance env. an accepted feature will go into the epic branch the feature belongs to and the feature branch gets deleted.
ibouvousaime has joined #ruby
<apeiros>
once the deadline for an epic hits, epic goes into a release branch, gets staged, tested and then merged into master
Pumukel has quit [Ping timeout: 240 seconds]
<apeiros>
I'm pretty sure I left out tons, but that's about the outline of how we organized our workflow.
Xeago has quit [Remote host closed the connection]
<apeiros>
one thing I'd love to find is a way to archive tags. we only tag versions (releases), and we already have >500.
Pupp3tm4_ has joined #ruby
colegatron has joined #ruby
Feyn has quit [Quit: Leaving]
sepp2k has joined #ruby
Xeago has joined #ruby
workmad3 has joined #ruby
Pupp3tm4st3r has quit [Ping timeout: 250 seconds]
<colegatron>
sorry, I am not used to ruby, only treaking vagrantfile. can someone tell me (or point me to any doc) the difference between variables 'aws' and 'override' in this piece of code: https://paste.debian.net/318131/ ?
futilegames has joined #ruby
Pumukel has joined #ruby
Xeago has quit [Remote host closed the connection]
<apeiros>
colegatron: they're both local variables. they're arguments the block passed to the `provider` method takes.
jgt has joined #ruby
Xeago has joined #ruby
pwnd_nsfw has quit [Remote host closed the connection]
<colegatron>
apeiros: mmm ok, I thought override was some kind of reserved word
<apeiros>
no. and if it was, it could not occur there.
vdamewood has joined #ruby
trosborn has quit [Quit: trosborn]
Coldblackice has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
<colegatron>
apeiros: ok, makes sense. I think I will need to find time for a very-quick-tutorial-and-overview of ruby. but I am not going to develop on it, only to understand what I read. any advice about a light-but-complete tutorial?
<apeiros>
not really. but I think understanding ruby (and most languages actually) without having written it is quite hard
pwnd_nsfw has joined #ruby
foooobear has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
gregoriokusowski has joined #ruby
favadi has joined #ruby
alcipir has joined #ruby
spider-mario has joined #ruby
ajb is now known as ajb-
ajb- is now known as ajb
alcipir has quit [Ping timeout: 252 seconds]
al2o3-cr has joined #ruby
ajb is now known as ajb-
ajb- is now known as ajb
ajb is now known as ZucchiniZa
ZucchiniZa is now known as ajb
nfk|laptop has quit [Quit: yawn]
zipace has quit [Changing host]
zipace has joined #ruby
ldnunes has joined #ruby
Igorshp has joined #ruby
dionysus69 has joined #ruby
Xeago has quit [Remote host closed the connection]
but3k4 has joined #ruby
<nemo_>
nemo
<adaedra>
ah, seems we found nemo.
zapata has quit [Ping timeout: 240 seconds]
<schaary>
hey - I have two strings: a = "abcdefg" and b = "1234" and I'm looking for a effective way to produce c = "abc1234" - so I want to replace the suffix of a with b. I know, that b is always shorter than a. Ideas?
jerry_tao has quit [Quit: jerry_tao]
AxonetBE has joined #ruby
<apeiros>
schaary: and what's the rule for the offset in a to start with b?
<apeiros>
so that the string remains at the same length?
<AxonetBE>
what is the best solution to save hardware information of our users and make queries on this info?
<AxonetBE>
inserting this info as a string object in a mysql column seems not a good idea for me as we can't easy query this values?
trautwein has joined #ruby
Xeago has joined #ruby
<schaary>
apeiros: the end of b "starts" at the end of a - when both string have the same length, then c = b
<apeiros>
ok, still not sure I understand this right, but assuming I do:
<apeiros>
>> a = "abcdefg" and b = "1234"; a[-b.length..-1] = b; a
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yardenbar has quit [Ping timeout: 255 seconds]
unshadow has joined #ruby
<unshadow>
So, I made this: https://gist.github.com/bararchy/2662376a0a0858362f61 to benchmark hash functions, it seems HMAC is much better (time wise) then md5 and sha256 with long strings (8,000 char length and up), do you guys know of a better hash function then HMAC ?
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
unclouded has joined #ruby
<adaedra>
Wasn't md5 supposed to be in the bottom of the trash bin
m3_del has joined #ruby
Rollabun_ has quit [Remote host closed the connection]
<unshadow>
adaedra: it seems that for short strings it does a nice job (again, time wise, not security)
<skinux>
How do I fix the Gem installation error about SSL?
skinux has quit [Quit: Leaving]
millerti has joined #ruby
<norc>
workmad3: Oh I know. It just gave me the impression that if a lambda is an object of Proc, that the behavior is the same.
bryanray has joined #ruby
tomaz_b has quit [Quit: Leaving]
krz has quit [Quit: WeeChat 1.2]
jas02 has joined #ruby
unsymbol has joined #ruby
gregf_ has quit [Quit: Lost terminal]
sdothum has joined #ruby
Ropeney has joined #ruby
ferr has joined #ruby
<workmad3>
norc: yeah, it's not the best way to have proc/lambda differences IMO... but it does lend more to the idea that you should focus on behaviour rather than whether an object is of class X or Y in ruby, IMO :)
TPBallbag has quit [Remote host closed the connection]
JammyHammy has quit [Read error: Connection reset by peer]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
p0wn3d has joined #ruby
gregf_ has joined #ruby
aspiers has joined #ruby
Xeago has joined #ruby
JammyHammy has joined #ruby
subscope has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 256 seconds]
TPBallbag has joined #ruby
TPBallbag has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 252 seconds]
TPBallbag has joined #ruby
Xeago has joined #ruby
Icey has joined #ruby
syath has joined #ruby
alcipir has joined #ruby
Soda has joined #ruby
moss has quit [Ping timeout: 240 seconds]
<flughafen>
ahhoy
skade has joined #ruby
shredding has quit [Quit: shredding]
alcipir has quit [Ping timeout: 260 seconds]
shredding has joined #ruby
Cantaberry has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
hmsimha has quit [Ping timeout: 265 seconds]
ndrei has joined #ruby
alcipir has joined #ruby
Pupp3tm4_ has quit [Remote host closed the connection]
Rinzlit has joined #ruby
_5moufl has quit [Ping timeout: 240 seconds]
m3_del has joined #ruby
_5moufl has joined #ruby
vigintas has quit [Ping timeout: 244 seconds]
Rinzlit_ has quit [Ping timeout: 246 seconds]
wprice has joined #ruby
platzhirsch has quit [Remote host closed the connection]
vdamewood has quit [Quit: Life beckons.]
Fredrich010 has quit [Read error: Connection reset by peer]
chrislotix has joined #ruby
Fredrich010 has joined #ruby
m3_del has quit [Ping timeout: 240 seconds]
adamholt has joined #ruby
moss has joined #ruby
Guest15 has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
tkuchiki has joined #ruby
rshetty has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 252 seconds]
Fredrich010 has quit [Read error: No route to host]
pathrocle has joined #ruby
Fredrich010 has joined #ruby
tk__ has joined #ruby
rshetty has joined #ruby
Guest15 has quit [Max SendQ exceeded]
gagrio_ has joined #ruby
gagrio_ has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 244 seconds]
yqt has joined #ruby
TPBallbag has quit [Ping timeout: 250 seconds]
nemo_ has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
TPBallbag has joined #ruby
dionysus69 has joined #ruby
Cantaberry has quit [Ping timeout: 260 seconds]
shredding has quit [Ping timeout: 272 seconds]
workmad3 has quit [Quit: Lost terminal]
yfeldblum has quit [Ping timeout: 240 seconds]
Cantaberry has joined #ruby
atomical has joined #ruby
Cantaberry has quit [Client Quit]
emilkarl has quit [Quit: emilkarl]
Macaveli has joined #ruby
synthroid has joined #ruby
civil_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
gusTester has joined #ruby
<colegatron>
apeiros: tnx. sorry for the delay ;-) I'll read a book when I've more time. tnx
colegatron has quit [Quit: Page closed]
TPBallbag has quit [Remote host closed the connection]
vigintas has joined #ruby
Fredrich010 has quit [Read error: Connection reset by peer]
Fredrich010 has joined #ruby
nfk|laptop has joined #ruby
vigintas1 has joined #ruby
terlar has joined #ruby
vigintas has quit [Ping timeout: 246 seconds]
vigintas1 is now known as vigintas
benlovell has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Remote host closed the connection]
karapetyan has joined #ruby
closer has quit [Ping timeout: 272 seconds]
closer has joined #ruby
brt has joined #ruby
<norc>
I have a string and want to split it the first time a non numerical character is encountered if it starts with numerical characters, or the first time a numerical character is encountered if it starts with non-numerical characters.
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rwilcox has quit [Client Quit]
ruurd has joined #ruby
<norc>
It seems like some part consumes the end of the string before \z is reached, but I cant figure out why
trautwein has joined #ruby
sankaber has joined #ruby
yashinbasement has quit [Ping timeout: 240 seconds]
gusTester has left #ruby [#ruby]
astrobunny has quit [Remote host closed the connection]
RegulationD has joined #ruby
Igorshp has quit [Remote host closed the connection]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<norc>
Ok yeah nevermind. This is not what backreferences are. :-)
mary5030 has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
mary5030_ has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
inteq has quit [Remote host closed the connection]
sanjayu has joined #ruby
TPBallbag has joined #ruby
tkuchiki has quit [Remote host closed the connection]
astrobunny has joined #ruby
<jhass>
norc: yup, backreference are not for reusage of a pattern but for expecting an already happened match to appear again. Check http://regexcrossword.com/ for some practice ;)
jonnie has quit [Ping timeout: 250 seconds]
rshetty has joined #ruby
tlarevo has joined #ruby
tlarevo has quit [Remote host closed the connection]
AxonetBE has quit [Quit: AxonetBE]
rshetty has quit [Read error: Connection reset by peer]
rshetty_ has joined #ruby
jamto11 has joined #ruby
Xeago has quit [Remote host closed the connection]
TPBallbag has quit [Ping timeout: 250 seconds]
ruurd has quit [Quit: ZZZzzz…]
Igorshp has joined #ruby
ruby-lang198 has joined #ruby
failshell has joined #ruby
rshetty_ has quit [Read error: Connection reset by peer]
<norc>
jhass: Heh. It is extremely interesting that you can use the backreference inside the same regex though.
<norc>
I mean I can see this being handy another way
cwong_on_irc1 has quit [Quit: Leaving.]
rbennacer has quit []
rshetty has joined #ruby
crime has joined #ruby
<norc>
I shall take a look at that website tonight thanks. :)
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
dionysus69 has quit [Remote host closed the connection]
alcipir has quit [Ping timeout: 260 seconds]
ruby-lang198 has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
shredding has joined #ruby
allcentury has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ldnunes_ has joined #ruby
toy has quit [Quit: Leaving...]
alcipir has joined #ruby
blaxter has quit [Quit: foo]
brt has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
tomaz_b has joined #ruby
ldnunes has quit [Ping timeout: 265 seconds]
dopamean_ has quit [Ping timeout: 260 seconds]
alcipir has quit [Ping timeout: 272 seconds]
sanjayu has quit [Quit: Leaving]
sanjayu has joined #ruby
Asher has joined #ruby
prateekp has joined #ruby
<prateekp>
/msg NickServ identify rajnigandha18
<jhass>
prateekp: new password day \o/
dionysus69 has quit [Ping timeout: 240 seconds]
failshell has quit [Remote host closed the connection]
<prateekp>
does the gem total downloads the correct metric
<prateekp>
because when i push a new version, the downloads increases each time
prateekp has quit [Disconnected by services]
prateekp_ has joined #ruby
<canton7>
pragmatism, protip: set your irc client to authenticate using sasl, so you don't have to type the nickserv identify by hand (and risk sending everyone your password ;)
<prateekp_>
hello
diegoaguilar has joined #ruby
<canton7>
prateekp_, ^ rather
<prateekp_>
hmm yeah
<prateekp_>
sorry for that mistake
<jhass>
prateekp_: you did realize you pasted your password to the channel?
<prateekp_>
hmm the password was bit wrong, so its k
<prateekp_>
ok*
Xeago has joined #ruby
<jhass>
let me guess, swap n & j?
<prateekp_>
haha
<prateekp_>
not exactly
Chau has joined #ruby
prateekp has joined #ruby
prateekp was kicked from #ruby by ChanServ [Banned: Ban evasion]
<prateekp_>
:)
<prateekp_>
anyways
<prateekp_>
it will pass out in the logs
<yorickpeterse>
I'd still change your password
<jhass>
seriously change it
<prateekp_>
how to change it
<prateekp_>
?
<prateekp_>
i got it
<Pupp3tm4st3r>
hi
subscope has joined #ruby
dionysus69 has joined #ruby
<Pupp3tm4st3r>
maybe someone can help me
dionysus69 has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
<jhass>
Pupp3tm4st3r: contact the author of the script, you have a case the author didn't expect/handle. Nothing we can do about
<Pupp3tm4st3r>
jhass: I already did that - no reaction
lkba has joined #ruby
treehug88 has joined #ruby
<Pupp3tm4st3r>
I had the hope someone here would say: aaah thats obviously this or that
<Pupp3tm4st3r>
;)
chopin has joined #ruby
nemo_ has joined #ruby
<jhass>
well, the obvious part is that hash['log']['pages'][0]['endedDateTime'] is nil
<jhass>
run it with -v3 for some debug output
Rickmasta has joined #ruby
<prateekp>
jhass: govt_official helped me save my password
<prateekp>
:)
<prateekp>
thanks govt
<prateekp>
:)
<Pupp3tm4st3r>
unfortunately verbosity doesn´t give any useful hints.. (just shows the used script with parameters and then again the error)
<Pupp3tm4st3r>
maybe the author will read my posted issue someday...
everbot has quit [Ping timeout: 250 seconds]
<Pupp3tm4st3r>
but thanks :)
<jhass>
prateekp: make sure to also change all other accounts you used the same password for
CloCkWeRX has left #ruby [#ruby]
<prateekp>
ok jhass
<jhass>
and yeah, get a proper client and do SASL auth so this can't happen again ;)
chopin has quit [Ping timeout: 240 seconds]
umgrosscol has joined #ruby
<prateekp>
hmm right
akkad has quit [Excess Flood]
<yorickpeterse>
good ol' hunter2
rshetty has quit [Remote host closed the connection]
dravine_ has joined #ruby
baroquebobcat has joined #ruby
prateekp has quit [Quit: Page closed]
dopamean_ has joined #ruby
platzhirsch has joined #ruby
dravine has quit [Ping timeout: 268 seconds]
dravine_ is now known as dravine
akkad has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
<crime>
i wish the webchat would regex that sort of thing in the input area
dionysus69 has quit [Quit: dionysus69]
<yorickpeterse>
well it does
<yorickpeterse>
it just shows as ******* for others
<yorickpeterse>
:>
mary5030_ has quit [Remote host closed the connection]
centrx has joined #ruby
sanjayu has quit [Ping timeout: 246 seconds]
rodfersou is now known as rodfersou|lunch
mary5030 has joined #ruby
stardiviner has quit [Ping timeout: 260 seconds]
chopin has joined #ruby
FernandoBasso1 has quit [Quit: Leaving]
nfk|laptop has joined #ruby
caliostro has joined #ruby
lotherk has quit [Remote host closed the connection]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has quit [Ping timeout: 240 seconds]
chopin has quit [Ping timeout: 252 seconds]
tubuliferous_ has quit [Ping timeout: 260 seconds]
nemo_ has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
dmitch has joined #ruby
nertzy has joined #ruby
sanjayu has joined #ruby
govg has joined #ruby
Igorshp has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt has quit [Ping timeout: 252 seconds]
gregf has joined #ruby
last_staff has quit [Quit: last_staff]
arup_r has quit [Quit: Leaving]
lnx has joined #ruby
Igorshp has joined #ruby
mordocai has joined #ruby
tubuliferous_ has joined #ruby
forgot has quit [Remote host closed the connection]
unshadow has quit [Quit: leaving]
dopie has quit [Ping timeout: 256 seconds]
DarkBushido has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
bangir has joined #ruby
solocshaw has joined #ruby
fschuindt has joined #ruby
<FooTek>
good morning everyone ☺
<fschuindt>
good morning
benlovell has joined #ruby
bruno- has joined #ruby
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
bruno- is now known as Guest86387
Motoservo has joined #ruby
<fschuindt>
there's a clever way to do it?: expected_structure[expected_structure.index("BUDGET_YEARS")] = project_budget_years (I want to replace the element with value "BUDGET_YEARS" by the project_budget_years value)
AccordLT has quit []
baroquebobcat has quit [Quit: baroquebobcat]
mag42c has quit [Quit: mag42c]
ruurd has quit [Quit: ZZZzzz…]
dfinninger has joined #ruby
tomaz_b has quit [Quit: Leaving]
alcipir has quit [Ping timeout: 252 seconds]
<jhass>
don't see anything beyond using another datastructure
mag42c has joined #ruby
tk__ has quit [Quit: ばいばい]
AccordLTN has joined #ruby
Motoservo has quit [Ping timeout: 268 seconds]
alexdunn1 has joined #ruby
nemo_ has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
nemo_ has quit [Remote host closed the connection]
darkf_ has joined #ruby
Jardayn has joined #ruby
Xeago has joined #ruby
alcipir has joined #ruby
kies^ has joined #ruby
darkf has quit [Ping timeout: 240 seconds]
I has joined #ruby
Channel6 has joined #ruby
I is now known as Guest49770
pdoherty has joined #ruby
jonnie has joined #ruby
tno has joined #ruby
dionysus69 has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Fredrich010 has quit [Read error: Connection reset by peer]
weemsledeux has joined #ruby
momomomomo has joined #ruby
Fredrich010 has joined #ruby
atomical has joined #ruby
segfalt has joined #ruby
atomical has quit [Client Quit]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
marens_ is now known as marens
TPBallbag has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
baroquebobcat has joined #ruby
Guest49770 has quit [Quit: This computer has gone to sleep]
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
jgt has joined #ruby
jayforsythe has joined #ruby
psy_ has joined #ruby
<jayforsythe>
Question: Are blocks objects?
Pupeno has quit [Remote host closed the connection]
ruurd has joined #ruby
ta has quit [Remote host closed the connection]
rippa has joined #ruby
jayforsythe has quit [Client Quit]
Pupeno has joined #ruby
skweek has quit [Ping timeout: 268 seconds]
pathrocle has quit [Remote host closed the connection]
<apeiros>
sounds more like they want natural sorting
Rickmast_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
FooTek has quit [Ping timeout: 255 seconds]
<apeiros>
which - again - reminds me that I still have not released my sorting gem with natural sorting included.
yqt has quit [Ping timeout: 256 seconds]
ef__ has quit [Remote host closed the connection]
<jhass>
upcoming world record attempt: listing the most items apeiros hasn't released yet
<apeiros>
ah right, I remember why. I still don't know how I want to set up a generic API for transliteration.
<adaedra>
jhass: :')
<apeiros>
jhass: does "updated" count against "released"?
<apeiros>
because I did release the sorted gem.
<mrgrieves>
jhass: that won't do the trick if I have 13 and 12 where I want 13 to be max
dorei has joined #ruby
<apeiros>
oh, actually "sorting"
<jhass>
so natural sorting indeed
TPBallbag has joined #ruby
<jhass>
mrgrieves: ^ got a term to google there
roxtrongo has joined #ruby
<apeiros>
mrgrieves: I think there are gems which implement natural sorting.
pu22l3r has joined #ruby
shinenelson has quit [Quit: Connection closed for inactivity]
<mrgrieves>
thanks guys let me take a look
<apeiros>
?guys mrgrieves
<ruboto>
mrgrieves, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
baroquebobcat has quit [Quit: baroquebobcat]
benlovel1 has quit [Quit: leaving]
DoubleMalt has quit [Remote host closed the connection]
towski_ has joined #ruby
bronson has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
blaxter has joined #ruby
baweaver has quit [Remote host closed the connection]
Renich has joined #ruby
towski_ has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 250 seconds]
malconis has quit [Read error: Connection reset by peer]
malconis_ has joined #ruby
dravine_ has joined #ruby
dravine has quit [Ping timeout: 240 seconds]
dravine_ is now known as dravine
norc has quit [Ping timeout: 246 seconds]
blaxter has quit [Ping timeout: 240 seconds]
jas02 has quit [Quit: jas02]
synthroid has quit [Remote host closed the connection]
aufi has quit [Quit: Konversation terminated!]
cwong_on_irc has joined #ruby
rodfersou|lunch is now known as rodfersou
rehat_ has joined #ruby
aspiers has quit [Ping timeout: 250 seconds]
willardg has joined #ruby
danieli has joined #ruby
agentmee1kat has quit [Quit: Lost terminal]
stannard has joined #ruby
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kaleido has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
lubarch has joined #ruby
tubuliferous_ has quit [Ping timeout: 256 seconds]
I has joined #ruby
I is now known as Guest7725
p1k has quit [Ping timeout: 272 seconds]
diegoaguilar has quit [Ping timeout: 256 seconds]
bricker has joined #ruby
northfurr has joined #ruby
DoubleMalt has joined #ruby
dfinninger has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
roxtrongo has quit [Remote host closed the connection]
Zai00 has joined #ruby
krazyj has joined #ruby
skweek has joined #ruby
Motoservo has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
varunwachaspati has joined #ruby
pdoherty has quit [Ping timeout: 268 seconds]
tkuchiki has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
blaxter has joined #ruby
karapetyan has joined #ruby
lkba has joined #ruby
popsikle has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
dfinninger has joined #ruby
TheNet has joined #ruby
blaxter has quit [Ping timeout: 268 seconds]
[Butch] has joined #ruby
diegoaguilar has joined #ruby
<TheNet>
does anyone know if open-uri verifies ssl certs by default?
devoldmx has joined #ruby
beauby has joined #ruby
atomical has joined #ruby
spcmastertim has joined #ruby
^mg^ is now known as mg^
futilegames has quit [Quit: futilegames]
matp has quit [Remote host closed the connection]
Pupp3tm4st3r has quit [Remote host closed the connection]
T1loc has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
mrtomme has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
<havenwood>
skinux: For JRuby-specific questions there's a #jruby channel.
alcipir has quit [Ping timeout: 265 seconds]
<skinux>
Oh...didn't know that.
jonnie has quit [Ping timeout: 240 seconds]
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krazyj has quit [Quit: krazyj]
jonnie has joined #ruby
<skinux>
It actually sounds good, because a lot of people don't like Java and love Ruby. So if I can use Ruby and also have the benefit of using JavaFX/Swing GUI development that would be pretty cool.
momomomomo has joined #ruby
<centrx>
It sure dang would!
Igorshp has quit [Remote host closed the connection]
colegatron has joined #ruby
<skinux>
When I mentioned Jython vs Python, it's because Jython is Python implemented on JVM, but instead of "Object" in Jython you have to use "PyObject"
blackmesa has joined #ruby
<skinux>
Therefore, it's not completely using Python on JVM because in Python you wouldn't put "Py" before "Object"
<havenwood>
skinux: Rails for example runs quite well on JRuby. It's real Ruby.
<skinux>
Okay, so no syntax and type name changes because it's using JVM...?
djbkd has joined #ruby
<colegatron>
Hi people. Maybe you can help me. I am not used to ruby, but it is a pure ruby problem: I have this code : https://paste.debian.net/318179/ and I want to know if passing the 'override' variable to each config.vm.define block I can set up a different override.ssh.username inside every vm.define block and expect each block use the right username value
Igorshp has joined #ruby
<colegatron>
wow. one long line. sorry.
<colegatron>
Hope I explained it well
towski_ has joined #ruby
TheNet has quit [Remote host closed the connection]
<apeiros>
why is it that pastie.debian.net wants a client cert? o0
<jhass>
apeiros: doesn't here
<jhass>
apeiros: sounds like your NSA proxy was messed up :P
shinenelson has joined #ruby
<havenwood>
The website "paste.debian.net" requires a client certificate.
<colegatron>
uh? really?
<jhass>
not here
<apeiros>
oh, right, paste, not pastie.
<adaedra>
works for me without cert
<apeiros>
havenwood: you shouldn't use the messed up nsa proxy either then!
<adaedra>
(Firefox)
<jhass>
colegatron: I only see one override variable, so I don't quite follow your question
<apeiros>
yeah, it works without cert, but it asks for one
simi has quit [Ping timeout: 240 seconds]
<caliostro>
what do u think about byebug?
<jhass>
caliostro: it integrates well into pry-byebug
<colegatron>
jhass: tnx for the answer. Let me explain: I see the config.provider gets the aws and override variables as arguments
<caliostro>
jhass, ok
moeabdol has quit [Ping timeout: 256 seconds]
TPBallbag has quit [Read error: Connection reset by peer]
<colegatron>
and seems the override variable does not changes during all the vagrant.configure("2") block.
alcipir has joined #ruby
TPBallbag has joined #ruby
<colegatron>
I need, on every config.vm.define set a different username to each server
ruurd has quit [Quit: ZZZzzz…]
<jhass>
colegatron: you might be better up in #vagrant
cyle has quit [Ping timeout: 246 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<colegatron>
jhass, they did not answer. this is a ruby language question, not about vagrant :)
<atmosx>
hello
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cyle has joined #ruby
Guest5455 has joined #ruby
<colegatron>
my question is: if I rewrite line 52 into : config.vm.define :tribasedev, autostart: false do |tribasedev, override| I understand I am going to pass the override variable to that block
<colegatron>
is my assumption right?
Guest5455 has left #ruby [#ruby]
Guest5455 has joined #ruby
Guest5455 has left #ruby [#ruby]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest5455 has joined #ruby
Guest5455 has left #ruby [#ruby]
Guest5455 has joined #ruby
<Guest5455>
greet
<colegatron>
jhass: is my assumption right?
<skinux>
Umm...does JRuby Windows installer install JRuby as 'ruby' or 'jruby' by default? Because I just installed JRuby and I already had Ruby installed.
atomical has joined #ruby
<jhass>
colegatron: that's specific to what vagrant does, so not a ruby question
<jhass>
colegatron: vagrant decides what arguments are available there
<jhass>
you only decide to give them a name or not
phutchins has joined #ruby
<colegatron>
jhass: but override is there (it is used on config.provider block), so I can pass it to the config.vm.define or not, right?
ldnunes_ has quit [Quit: Leaving]
<jhass>
colegatron: no, that's not a valid assumption
ldnunes_ has joined #ruby
<jhass>
colegatron: .define and .provider are different methods, they can and not unlikely behave differently
<colegatron>
oh, sorry, I see, you are right.
alcipir has quit [Ping timeout: 240 seconds]
<colegatron>
jhass: yup, it is not a ruby question, my fault :-) thank you anyway
<jhass>
no worries, yw
joonty has quit [Quit: joonty]
rshetty has joined #ruby
jgt has quit [Ping timeout: 246 seconds]
Macaveli has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
<Guest5455>
is there any site that has a complation of ambiguity in ruby lyntax?
Macaveli has quit [Max SendQ exceeded]
joonty has joined #ruby
<Guest5455>
i would be very thankul is sb knows one
Macaveli has joined #ruby
blackoperat has joined #ruby
ruurd has joined #ruby
<shevy>
don't think there is any single resource for that
eminencehc has joined #ruby
blackoperat has quit [Max SendQ exceeded]
Zai00 has quit [Ping timeout: 260 seconds]
<Guest5455>
thanks , i won't mind if they are dispernd on the net
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
hxegon has joined #ruby
blackoperat has joined #ruby
pietr0 has joined #ruby
blackoperat has quit [Max SendQ exceeded]
eminencehc has quit [Remote host closed the connection]
AxonetBE has joined #ruby
phutchins has quit [Ping timeout: 246 seconds]
<Guest5455>
any one?
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
konrath has joined #ruby
<centrx>
Huh?
crime has quit [Quit: Connection closed for inactivity]
rshetty has quit [Remote host closed the connection]
Ox0dea has joined #ruby
<shevy>
Guest5455 ambiguity will result whenever there is more than one way to do something. so we have {} for blocks and hashes, we have do/end and {} for blocks ... we need to distinguish between ? used as ternary, method name and now also that strange .?bla thing
<shevy>
there was once a cool twitter message about the ruby parser
dionysus69 has quit [Ping timeout: 250 seconds]
<shevy>
I can't find it right now
synthroid has quit [Remote host closed the connection]
eminencehc has joined #ruby
<shevy>
perhaps eam remembers
<Guest5455>
shevy , i was actually on it before gettin on the channel; what i have been lookng for is (ideall) a site that tells what are the ambiguity of ruby , and how the parer overcmes them
<shevy>
I have had surprises when I had (made up now) things such as: if ! foo.include? 'bla' and ble.select {|e| e < 5 } && false or yodeldodel > 1 # this is also totally made up
<Ox0dea>
>> class Hash; alias +@ invert; end; +{a: 1, b: 2}
<agent_white>
Cool to see Ruby questioning that regardless!
tercenya has quit [Ping timeout: 240 seconds]
<shevy>
agent_white not if fixing results in trade offs or side effects that are orthogonal. it's funny because matz complained about C++ complexity and explained the ruby philosophy in 2003, and many changes that happened in the last ~13 years are really really strange ... like the -> operator ... http://www.artima.com/intv/ruby.html
workmad3 has quit [Ping timeout: 240 seconds]
Puck6633 has quit [Ping timeout: 240 seconds]
<Guest5455>
Ox0dea, no sir i wantd to nive an exampe of a less-nspected case
<Ox0dea>
Guest5455: But there's no ambiguity in your example.
<Guest5455>
Ox0dea, thanks sir, but how?
joonty has quit [Quit: joonty]
northfurr has quit [Ping timeout: 252 seconds]
brt has joined #ruby
<shevy>
moty66 what does "translate" mean
<shevy>
do you want to translate this into spanish
<moty66>
I18n
blackoperat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blaxter has joined #ruby
Igorshp has quit [Remote host closed the connection]
<shevy>
unicode!
<Guest5455>
Ox0dea, what abou L.getInt /e/ -5
<moty66>
i tried to use I18n.t but I don't know how to add these strings in the en.yml file
jgt has joined #ruby
<shevy>
Guest5455 what should this be, that's invalid
<rnelson0>
Hi all. I'm trying to write a ruby gem, probably very poorly, but even before worrying about implementation details, I'm struggling with a class name that doesn't appear to be recognized in all files. Gist at https://gist.github.com/rnelson0/8570f2706d48fa8bed04
<pard>
i have been doing it as a mere sourc of inocme
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<apeiros>
zotherstupidguy: with a little math and wday, that should be trivial
dravine has quit [Ping timeout: 264 seconds]
dravine_ is now known as dravine
<zotherstupidguy>
apeiros thanks of the hint ;)
<apeiros>
depending on what you define start/end of a week, the math may be more or less involved.
<drbrain>
zotherstupidguy: get the week number from today and the target week
<drbrain>
I think it is #cweek
<zotherstupidguy>
dbrain example?
simi has joined #ruby
alexdunn1 has quit [Ping timeout: 252 seconds]
<pard>
i believe being scptic is the way to go ; the reason i joind this hannel is i've recenly been very scepitc about whether ruby might treat some cod e in an other way than i do
<apeiros>
drbrain: need to check the year too, though
nemo__ has joined #ruby
<drbrain>
ah, yeah ↑
<apeiros>
but yes, that's probably easier than using wday
<apeiros>
is cweek iso8601? in that case, .year won't cut it
<apeiros>
ah well, .strftime("%G%V") both and compare that.
<apeiros>
hm, docs don't tell which week standard cweek uses.
dravine_ has joined #ruby
Chau has quit [Quit: Leaving]
Zai00 has quit [Ping timeout: 260 seconds]
<Ox0dea>
pard: You pay sufficiently distant attention to detail as to have it be the likelier cause of any syntactic troubles you might run into. :P
nemo_ has quit [Ping timeout: 250 seconds]
<Ox0dea>
> For all its power, the computer is a harsh taskmaster. Its programs must be correct, and what we wish to say must be said accurately in every detail.
Pumukel has quit [Ping timeout: 246 seconds]
<Ox0dea>
If you write code like you've been writing here, you're gonna have a bad time.
dfinninger has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pard>
Ox0dea, you're right, looks like my typo's have a higher prob to get on me than any other thnig :)
Igorshp has joined #ruby
dravine has quit [Ping timeout: 256 seconds]
dravine_ is now known as dravine
tedstriker has quit [Quit: Anti-Fraping status set.]
v4n has joined #ruby
<pard>
sorry for all the typo's, i was on a touch dev and it was causing all the crap i wrote
alexdunne has joined #ruby
skinux_ has joined #ruby
<pard>
thanks :)
<pard>
thanks all
pard has quit [Quit: Leaving]
Zai00 has joined #ruby
Blaguvest has joined #ruby
radgeRayden has joined #ruby
synthroid has joined #ruby
<zotherstupidguy>
funny thing, in arab countries start of the week is sunday not monday :)
bonemind has quit [Remote host closed the connection]
<adaedra>
Isn't it also the case of some english-speaking countries?
barhum2013 has joined #ruby
ruurd has joined #ruby
<zotherstupidguy>
adaedra, name one?
skinux has quit [Ping timeout: 265 seconds]
<apeiros>
usa
nemo_ has joined #ruby
alexdunne has quit [Ping timeout: 268 seconds]
lkba has quit [Remote host closed the connection]
<zotherstupidguy>
really!! i didnt know tht
<apeiros>
not sure, but I think so
<zotherstupidguy>
i think not
diegoaguilar has joined #ruby
<adaedra>
That's what I was reading.
ruurd has quit [Client Quit]
skweek has quit [Ping timeout: 246 seconds]
nemo__ has quit [Ping timeout: 252 seconds]
<adaedra>
I found a map once, can't find it
<zotherstupidguy>
sure!
<adaedra>
"Although this is the international standard, countries such as the United States still have their calendars refer to Sunday as the start of the seven-day week." - http://www.timeanddate.com/calendar/days/
ruurd has joined #ruby
troyready has joined #ruby
Fredrich010 has quit [Remote host closed the connection]
<adaedra>
apeiros: for the horror to manage? Leap years, leap seconds, to start with.
<apeiros>
as shown by the map, usa indeed has sunday as start of week.
jgpawletko has joined #ruby
<Wompy>
/msg nickserv register josjs wompy
ruurd has quit [Quit: ZZZzzz…]
<apeiros>
leap years are trivial. leap seconds are a matter of definition. i.e. whether you have an "idealized" time or using actual time (which can be confusing because the diff between two dates with time 00:00:00 can have a single second offset due to leap seconds)
<adaedra>
Wompy: Try again
Wompy has quit [Quit: Leaving...]
Igorshp has quit [Remote host closed the connection]
hxegon has joined #ruby
<adaedra>
\o
<eam>
and you can never tell time more than 6 mo in advance with 1s precision if you're using leap second adjusted time
<apeiros>
right
<apeiros>
dst falls into the same category of annoyance as leap seconds - not predictable.
jonnie has quit [Ping timeout: 246 seconds]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
also means that some datetimes are ambiguous (before or after dst change?)
Igorshp has joined #ruby
<apeiros>
and that's an actual problem. we had inserts fail with the error "ambiguous time"
northfurr has quit [Quit: northfurr]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has quit [Remote host closed the connection]
davedev24 has joined #ruby
<eam>
yup, subject to the whim of law
v4n has quit [Ping timeout: 240 seconds]
Igorshp has joined #ruby
<eam>
was it 2007 when the US passed a law changing when DST occured?
<eam>
that was a fun year
<apeiros>
there's countries where dst start is defined by the president each year.
<apeiros>
fun too.
<apeiros>
means you have to keep your tzinfo file up to date :)
djbkd has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 260 seconds]
<eam>
that's terrible
Igorshp has quit [Remote host closed the connection]
<Ox0dea>
~ $ pacman -Si tzdata | grep Date
<Ox0dea>
Build Date : Sun 04 Oct 2015 06:05:57 AM EDT
<Ox0dea>
It's gonna be okay.
Zai00 has quit [Quit: Zai00]
<Ox0dea>
(Probably.)
<apeiros>
anyway, most issues when dealing with time is a matter of definition. like "adding 1 hour" - does that mean that the hour indicator of the clock changes by 1 no matter the duration? or the time 3600s later, accounting for dst, leap seconds etc.?
karapetyan has quit [Remote host closed the connection]
<eam>
until the next bit of legislation, presuming you don't need to tell adjusted time further out than whenever the next law is passed )
<eam>
:)
<apeiros>
and the silly thought some people harbor that "months" is a duration unit. it's not. it's an interval.
karapetyan has joined #ruby
<Ox0dea>
>> -> x {}::[] rescue $!
<eam>
but time itself has scaling issues, what with its dependence on the velocity of the earth
<ruboto>
Ox0dea # => #<ArgumentError: wrong number of arguments (0 for 1)> (https://eval.in/457299)
blackmesa has quit [Ping timeout: 255 seconds]
rshetty has quit [Remote host closed the connection]
<Ox0dea>
eam: Do you know where to put the missing argument there?
jxs_ has joined #ruby
Xiti has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
<Ox0dea>
It looks like it's permitting two separate calls to #call.
mag42c has quit [Ping timeout: 272 seconds]
_blizzy_ has joined #ruby
<Ox0dea>
That is, two separate calls in the same "sequence point", for lack of a better term.
<eam>
no clue
<Ox0dea>
Be that way.
`based_pdev` has joined #ruby
howdoicomputer has joined #ruby
<eam>
>> z = -> x {}; z::[] rescue $!
jxs_ has quit [Client Quit]
<ruboto>
eam # => #<ArgumentError: wrong number of arguments (0 for 1)> (https://eval.in/457300)
<eam>
what exactly is ::[]
cyle has quit [Ping timeout: 265 seconds]
<drbrain>
.call
<Ox0dea>
Oh, I only pestered you because I recalled you being intimately familiar with Ruby's wonkiness in this area. :< My bad.
<drbrain>
Ox0dea: you put it after []
jimms has joined #ruby
<Ox0dea>
drbrain: Not inside?
mag42c has joined #ruby
`based_pdev` has quit [Read error: Connection reset by peer]
<drbrain>
apparently?
<drbrain>
I get a SyntaxError if I put it inside []
<drbrain>
but I'm still not sure if I'm reading this correctly
<apeiros>
Ox0dea: you defined the proc to take an arg
<apeiros>
and since it's a lambda, it wants that arg
baweaver has quit [Remote host closed the connection]
<Ox0dea>
This language, honestly.
<drbrain>
because of the :: (.)
<drbrain>
syntax so complex it looks simple
<apeiros>
heh, yeah
bruno- is now known as Guest52453
<apeiros>
whitequark had a story to tell in that regard
<apeiros>
so sad he left ruby :(
roxtrongo has joined #ruby
Citocrate has quit [Quit: Leaving]
willardg has joined #ruby
bb010g has joined #ruby
northfurr has quit [Client Quit]
mollusk_ has joined #ruby
sepp2k has quit [Quit: Leaving.]
Guest86387 has quit [Read error: Connection reset by peer]
skcin7 has joined #ruby
<Ox0dea>
drbrain: Sure, I knew about :: being an alternate method invocation operator.
<Ox0dea>
That `proc.(foo)` is another way to say `proc.call(foo)` is what cluttered my thinking.
<banister>
apeiros what language is whitequark using now?
<apeiros>
banister: no idea. that guy moves so fast :D
<banister>
apeiros how do you know he left? curious
<apeiros>
Ox0dea: ah well, .() != .[] :)
v4n has joined #ruby
<Ox0dea>
Indeed not.
Xiti has joined #ruby
<drbrain>
Ox0dea: me too
<apeiros>
banister: he's not in #ruby anymore. iirc he said something in that direction. I don't think he completely left it. but it's only a small side thing for him as far as I understood.
<apeiros>
but in case of proc, .() == .[]()
dnomyar has joined #ruby
Oatmeal has joined #ruby
Oatmeal has quit [Max SendQ exceeded]
<apeiros>
hm, actually [*args] and .[](*args) are not equivalent. former can't take a block. latter can.
skade has joined #ruby
darthdeus has joined #ruby
Oatmeal has joined #ruby
Oatmeal has quit [Max SendQ exceeded]
saddad has joined #ruby
Soda has quit [Remote host closed the connection]
* Ox0dea
has been nerd-sniped.
<Ox0dea>
There probably aren't any good reasons to pass a block to Fixnum#+, though.
dfinning_ has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
gizmore has joined #ruby
djbkd has quit [Remote host closed the connection]
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cwong_on_irc has quit [Read error: Connection reset by peer]
cwong_on_irc has joined #ruby
northfurr has joined #ruby
ta has joined #ruby
caliostro has quit [Remote host closed the connection]
Sceko has joined #ruby
Rollabunna has quit [Quit: Leaving...]
stan has quit [Ping timeout: 250 seconds]
<apeiros>
Ox0dea: nerd-sniped?
brt has joined #ruby
nertzy has joined #ruby
<Ox0dea>
!xkcd 356
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
<shevy>
Ox0dea is no longer communicating with us earthly people
skade has quit [Quit: Computer has gone to sleep.]
_blizzy_ has quit [Read error: Connection reset by peer]
northfurr has quit [Quit: northfurr]
sl33k has joined #ruby
danneu has joined #ruby
User458764 has quit [Read error: Connection reset by peer]
darkf has quit [Quit: Leaving]
User458764 has joined #ruby
jackjackdripper has joined #ruby
hectortrope has joined #ruby
malconis_ has quit [Read error: Connection reset by peer]
p0wn3d has quit [Ping timeout: 260 seconds]
troulouliou_div2 has quit [Read error: Connection reset by peer]
big|bad|wolf has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
Coldblackice has joined #ruby
<Eiam_>
hmm, I have an array of true & false values. I want to check if any value in the array is true. I could do [true,false,false].include?(true) . I could also do a set like [true,false] & [true]. However, since I want to drop that into an if, the second could return [] which would be true, which isn't what I'd like. It feels like I should be able to have .any? do this for me, but it requires a write a block which seems silly to say [true,false,false].any?{
<Eiam_>
|x| x}
<Eiam_>
am I missing some more obvious way to do this ?
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam>
ruby has a warmer mouthfeel, perl has fruity overtones and php pairs well with dog turds
dfinninger has quit [Remote host closed the connection]
<shevy>
lol
<oddjob>
hey all. question. How can I check if a return has two strings, but only check if both strings exist? Example. foobar.include? "apple" && "orange" - My issue is sometimes apple or orange wont exist, so it will return true
<linocisco>
shevy, if slower, why should we use? sorry for idiot question
<shevy>
linocisco if speed matters, use C not java
ruby-lang186 has joined #ruby
<jhass>
oddjob: "a return"?
<shevy>
if it does not, why bother with details that are irrelevant to solve any given problem
dmolina has joined #ruby
dionysus69 has joined #ruby
dmolina has quit [Client Quit]
yfeldblum has joined #ruby
<bootstep>
Hi, is there a way in ruby to parse a date time string without a timezone into a datetime with a specified timezone, autodetecting DST?
dfinninger has joined #ruby
<oddjob>
jhass: sorry. the "return" is from a command that is executed and processed. I was still speaking in my own terms, not ruby ;(
<Dairenn>
eam: Hah
dionysus69 has quit [Client Quit]
<jhass>
oddjob: so what's the ruby term?
pwnd_nfsw has joined #ruby
djbkd has quit [Remote host closed the connection]
<ruby-lang186>
can you modify a class @hash value in a class method? for some reason im having trouble...
<jhass>
?code ruby-lang186
<ruboto>
ruby-lang186, We can't help you without your code, please post it to https://gist.github.com
<oddjob>
jhass: its just a function that is returning a long string
<oddjob>
jhass: oh, thats it? I just have to use the include on both sides?
<jhass>
sure
momomomomo has quit [Quit: momomomomo]
<oddjob>
jhass: .include? "foo" && "bar" that would only work if I knew they would always both exist?
<bootstep>
ie. I want something like DateTime.parse "2015-08-1 10:00", "Europe/Rome" to result into "2015-08-1 10:00 CEST" and DateTime.parse "2015-12-25 10:00", "Europe/Rome" to result into "2015-12-25 10:00 CET"
<ruboto>
jorb, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<Ox0dea>
jfk: That works, but are you sure it's what you're wanting to do?
bootstep has quit [Quit: Page closed]
p0wn3d has joined #ruby
<Ox0dea>
`@@klass` will only be the most recent subclass when the exit handler runs.
devoldmx has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
<jfk>
Ox0dea: Yeah. I'm not sure. I just wanted to see how methods could potentially be run automatically. This seems to be one way...
subscope has joined #ruby
<Ox0dea>
jfk: It's how virtually all of the unit testing libraries do their thing, at any rate.
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheNet has quit [Quit: Leaving...]
IChoseSomethingE has joined #ruby
prestorium_ has joined #ruby
bricker has joined #ruby
jfk has left #ruby [#ruby]
Musashi007 has joined #ruby
prestorium has quit [Ping timeout: 256 seconds]
spuk has joined #ruby
<dnomyar>
retry
blue_deref has joined #ruby
cdg has joined #ruby
eminencehc has quit [Remote host closed the connection]
<Ox0dea>
__goto__
whippythellama has quit [Ping timeout: 240 seconds]
beauby has joined #ruby
<agent_white>
Any list of a few ruby gems that I should checkout for learning 'proper' layout of a gem? I've just seen many do things different ways... /lib/gemname.rb files only having "'requires'" inside, other doing something different... blahblahblah. Just looking for a few gems to mimick for good gem structure :)
<apeiros>
agent_white: none. use guides.rubygems.org
karapetyan has joined #ruby
momomomomo has quit [Quit: momomomomo]
lxsameer has quit [Ping timeout: 250 seconds]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
as for good gem structure - care about the result. my paradigm is that any individual require will require all its dependencies on its own. i.e. require 'foo/bar' will always mean you can use all of Foo::Bar without an additional require.
<agent_white>
apeiros: Thank you :) I've followed that but it doesn't go as 'into it' as I'm aiming.
<agent_white>
apeiros: Ahhh okey doke!
<apeiros>
s/gem structure/require structure/
agent_white has quit [Quit: Lost terminal]
stamina has quit [Ping timeout: 250 seconds]
pathrocle has joined #ruby
agent_white has joined #ruby
mag42c has quit [Quit: mag42c]
<apeiros>
since autoloading is now threadsafe and no longer on the deprecation list, I also started experimenting with top levels autoloading sublevels. but mostly for things where it'd actually be costly to pre-require.
momomomomo has joined #ruby
<agent_white>
apeiros: Crap. Restarted my window manager and lost the chat. WOuld you mind re-pasting what you just said?
<apeiros>
autoloading limits exploration quite a bit. stuff only appears once it's used.
<apeiros>
irclog ;-p
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<agent_white>
apeiros: Ahhh I hope I got it going with irssi... shame on me if not. :P
blackmesa has joined #ruby
mag42c has joined #ruby
p0wn3d has quit [Ping timeout: 250 seconds]
eminencehc has joined #ruby
moei has quit [Quit: Leaving...]
EllisTAA has quit [Quit: EllisTAA]
<agent_white>
apeiros: Yeah I'm just noticing that my code for this IRC bot... is not good. I'm passing instances to modules and it's ugly looking. Thinking my whole structure needs to be fixed (starting with not 'requiring' mixins and figuring where to 'include' instead?) -- Probably makes no sense, I'm terrible at explaining things. https://github.com/jakenotjacob/vapebot -- Here's my code if you care to peek.
trabulmonkee has joined #ruby
<agent_white>
I just know that the fact I have to pass the 'primary' class instance to each module shows I'm doing things VERY wrong.
<apeiros>
agent_white: with my old style I'd have all the requires you currently have in vapebot.rb too. with my new style I'd use autoloading. I'm not sure yet whether I like that.
<agent_white>
apeiros: Ah alrighty :) Yeah I have no preference at all... just was trying to figure out the best way to do it, dove into a buncha github projects and found a few that did it this way so I followed.
binaryplease has quit [Quit: WeeChat 1.3]
vigintas has quit [Ping timeout: 244 seconds]
dmitch has joined #ruby
<agent_white>
apeiros: Awesome! Just what I was loooking for. I appreciate the help :))
mary5030 has quit [Remote host closed the connection]
Motoservo has joined #ruby
g105b has joined #ruby
<agent_white>
Also, on that note... this project is basically to make a factoid bot for a channel. Have some authorized users who can add factoids, and mask factoids usable for authorized users(prolly one group, 'admin' or whatnot)/everyone else. Would SQlite even be overkill since there's not too many relations involved?
niemcu has joined #ruby
vF3hNGxc47h8 has joined #ruby
<agent_white>
I was aiming towards just using `sdbm` since it's built-into ruby, and a simple key-value lookup seems like it's suffice...
yfeldblum has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
northfurr has joined #ruby
<apeiros>
agent_white: sqlite is barely ever overkill
nemo_ has quit [Remote host closed the connection]
davedev24 has quit []
<agent_white>
apeiros: That's what I was balancing... I know, as it's namesake says, it's VERY lightweight. But just was unsure if relations were even needed... hell I could store it in a text file I spose ;P Just wasn't sure the 'best fit'
<apeiros>
best fit is what takes the least effort.
jgpawletko has joined #ruby
<apeiros>
it's not bad if it's not actually a good choice. it helps encountering issues with least-effort solutions. helps you with your choices in the future.
baweaver has joined #ruby
diegoaguilar has joined #ruby
crdpink has joined #ruby
cyle has joined #ruby
ahegyi has quit [Ping timeout: 240 seconds]
ibouvousaime has quit [Ping timeout: 265 seconds]
crdpink2 has quit [Ping timeout: 246 seconds]
<agent_white>
Good deal :) I'll tinker a bit more with the sqlite gem. Just was turned off by having to use SQL queries directly.
syath has quit [Quit: WeeChat 1.2]
K1MOS has joined #ruby
moei has joined #ruby
K1MOS is now known as moos3
<apeiros>
oh with sqlite, I'd use at least sequel (not necessarily the orm)
yqt has joined #ruby
maletor has quit [Ping timeout: 264 seconds]
ibouvousaime has joined #ruby
XxionxX has joined #ruby
baroquebobcat has joined #ruby
Limix has joined #ruby
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
<agent_white>
So far I've just used sql directly... not fun :P That's why I was looking into using sdbm instead.
agent_white is now known as farpend
yashinbasement has joined #ruby
farpend is now known as darfk
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
<ytti>
darfk, use sequel, it's greeeeat
g105b has quit [Quit: Page closed]
uber has quit [Ping timeout: 240 seconds]
darfk is now known as agent_white
<agent_white>
ytti: /me sips coffee
New_to_Ruby has joined #ruby
axl_ has joined #ruby
<New_to_Ruby>
Hello
axl_ has quit [Client Quit]
<jhass>
hi
crime has joined #ruby
<New_to_Ruby>
How are you <jhass>?
<jhass>
no need for smalltalk ;)
Ulfalizer has quit [Quit: zZ]
alexdunne has joined #ruby
<crime>
shoot, I hear smalltalk made quite the influence on ruby
<adaedra>
No need for <> either.
centrx has quit [Remote host closed the connection]
<adaedra>
crime: nice.
arup_r has quit [Quit: Leaving]
<crime>
;)
ibouvousaime has quit [Ping timeout: 256 seconds]
stamina has joined #ruby
<apeiros>
crime: #ruby-offtopic is the smalltalk channel. though I guess there's #smalltalk too. but no idea whether you can have smalltalk there…
<crime>
i was just trying to be punny for a moment
roxtrongo has quit [Remote host closed the connection]
<New_to_Ruby>
Sorry. I'm starting my 2nd week of teaching myself Ruby and have a question. Is it possible to add variables if I used $stdin.gets.chomp.to_i to get the input? The code I have treats them like strings.
neohunter has joined #ruby
ivanskie has joined #ruby
cyle has quit [Ping timeout: 250 seconds]
arthurix has joined #ruby
<crime>
New_to_Ruby: you could do like: while line = @stdin.gets.chomp.to_i puts line end
<crime>
but .to_i should convert those strings into integers already
prestorium_ is now known as prestorium
cyle has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<New_to_Ruby>
That's what I thought, crime. When I puts " You gave me #{x} and #{y}. Together they equal #{x + y}." it isn't adding the user inputs.
<crime>
could you paste your code on pastebin or something and show me?
baweaver has joined #ruby
<New_to_Ruby>
Ha
<New_to_Ruby>
yeah
<New_to_Ruby>
sorry
<crime>
or github or wherever
<New_to_Ruby>
un momento
<crime>
yeah np, itd just be easier to see it
<agent_white>
apeiros: Oh woops, misread your response. So you would recommend sqlite at least?
mag42c has joined #ruby
<apeiros>
agent_white: I would recommend using sequel if you use sqlite.
baroquebobcat has quit [Quit: baroquebobcat]
<apeiros>
sequel is a database adapter
<ruby-lang993>
New_to_Ruby, you can also use rubyfiddle.com for small-scale code, I use it a lot
northfurr has quit [Quit: northfurr]
baroquebobcat has joined #ruby
jpfuentes2 has joined #ruby
<agent_white>
apeiros: Oh!!! Thought you were sounding it out haha. I'll look into it, thank you! Prior to that though, was it a 'decent' idea to checkout a key-val store like sdbm? Or was I aiming for trouble?
<crime>
repl.it is really cool, similar functionality
QORRiE has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
<shevy>
takes quite a while for me to load up repl.it compared to e. g. gist or pastie
<apeiros>
agent_white: as said, go for least effort.
<apeiros>
if you think sdbm will be less effort than sqlite, then go for it. try it.
<Ox0dea>
New_to_Ruby: Do you have something with which to hit yourself
<Ox0dea>
+?
<shevy>
haha
<shevy>
take a cat
<New_to_Ruby>
There are a few empty beer bottles to my left.
<Ox0dea>
New_to_Ruby: Grab one.
blackoperat has joined #ruby
<New_to_Ruby>
Done
eminencehc has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy>
here is the problem - no beer
<Ox0dea>
New_to_Ruby: You have committed the cardinal sin of posting an image of text. Do you know what you must do?
otherj has joined #ruby
<crime>
block out the haters?
<New_to_Ruby>
Did I mention I started a week ago?
<apeiros>
repent and repost
opensource_ninja has quit [Quit: opensource_ninja]
<apeiros>
(as text, oc)
<Ox0dea>
New_to_Ruby: In all seriousness, you weren't converting your strings when you got "12", and you were when you got 3; what changed?
eminencehc has quit [Remote host closed the connection]
<ruby-lang993>
New_to_ruby, post your code from your text editor to Rubyfiddle so we can see you changed in your code
<ruby-lang993>
posting the outputs from powershell doesnt show what you changed in your code
<shevy>
oh dear
synthroid has quit []
jgpawletko has quit [Quit: jgpawletko]
<New_to_Ruby>
You see, here's the thing. I kind of updated and saved in the editor before pasting it in fiddler. I couldn't tell you what changed. So, new guy mistake. Lesson learned.
djbkd has quit [Remote host closed the connection]
<Ox0dea>
New_to_Ruby: I'm asking you to retroactively solve the mystery.
<ruby-lang993>
Crtl + Z?
<New_to_Ruby>
Okay
djbkd has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<New_to_Ruby>
Holy canoli. I didn't think the editor would go back that far.
<crime>
the power of ropes
<New_to_Ruby>
I definitely did not convert the strings to integers
<crime>
aha!
<Ox0dea>
New_to_Ruby: But then you did, right?
<crime>
we've all done it before
lfox has joined #ruby
<New_to_Ruby>
I did, 0x0dea.
<ruby-lang993>
Tune in next week to see how Sherlock solves his next mystery of string interpolation
<Ox0dea>
New_to_Ruby: How did you do it?
howdoicomputer has quit [Ping timeout: 246 seconds]
<crime>
Ox0dea has got that socratic method down so tight
<New_to_Ruby>
But then I tried defining a method called input because typing $stdin.gets.chomp.to_i for each variable was a pain. That didn't work. http://rubyfiddle.com/riddles/f26ac/2
DoubleMalt has quit [Remote host closed the connection]
<New_to_Ruby>
Imagine how much quicker I could progress if the editor wasn't giving me crap. I've probably spent a 1/3 of my time on issues that weren't issues.
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
djbkd has joined #ruby
<crime>
i use nano and rubocop and irb and thats it. it CAN be done
momomomomo has joined #ruby
umgrosscol has quit [Remote host closed the connection]
<New_to_Ruby>
I started with vim, which I loved. Is Komodo reliable?
subscope has joined #ruby
symm- has joined #ruby
codecop has quit [Quit: Išeinu]
symm-_ has quit [Ping timeout: 260 seconds]
<ruby-lang993>
https://c9.io, I use this to practice, Cloud IDE
spcmastertim has quit [Quit: Leaving]
<ruby-lang993>
since i can't install an IDE at my work computer
ibouvousaime has joined #ruby
davedev2_ has joined #ruby
<New_to_Ruby>
That cloud ide looks cool. I'll give that a try.
jimms has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
<New_to_Ruby>
Thus far I've tried Sublime, vim, and notepad++.
colegatron has quit [Ping timeout: 246 seconds]
<crime>
if you like vim and can use it easily, that's a good choice
<crime>
lots of plugins and advanced functionality
northfurr has joined #ruby
<crime>
but ultimately its about comfort
opensource_ninja has joined #ruby
sp4rrow has joined #ruby
Miron has quit [Ping timeout: 246 seconds]
<agent_white>
I got pink dsa/pbt keycaps last week for my keyboard :) Very comfy.
davedev24 has quit [Ping timeout: 246 seconds]
phutchins has joined #ruby
_blizzy_ has joined #ruby
northfurr has quit [Client Quit]
Miron has joined #ruby
<New_to_Ruby>
Maybe you can clear something up for me. What's a better way of doing this? https://eval.in/457382
<shevy>
New_to_Ruby you are asking for user input 3 times
howdoicomputer has joined #ruby
<shevy>
you don't use any methods
<karapetyan>
simples way convert integer to array? each digit to separate element of array?
<Ox0dea>
New_to_Ruby: I suspect you are being taught Ruby by somebody who hates Ruby. :P
<New_to_Ruby>
Oh. When I originally tried to run the code I didn't have the argv.clear and was recieving a message stating 'gets' was an undefined method. I Googled the message and found someone on stackoverflow who said gets looked at argv before user input.
<riceandbeans>
I have like ['foo', 'bar', 'baz'].map(&:inspect).join(',')
<Ox0dea>
riceandbeans: Why?
<apeiros>
New_to_Ruby: gets is actually ARGF.gets. you probably want to explicitly use $stdin.gets
<riceandbeans>
but it's coming out as 'foo','bar','baz'
<riceandbeans>
I want 'foo,bar,baz'
<New_to_Ruby>
I originally went through Code Academy, then read Why's_, and am now going through Learn Ruby the hard way. 0x0dea.
<New_to_Ruby>
Outside of googling error messages, you are the first people I've come to with questions.
<danneu>
riceandbeans: consider just using a csv serializer
<Ox0dea>
The problem is that riceandbeans is invoking #inspect for no apparently good reason.
<danneu>
classic mistake: 'csv is easy, i'll just write my own serializer'
<danneu>
^ look for the meta joke
arthurix_ has joined #ruby
uber has quit [Ping timeout: 260 seconds]
<apeiros>
Ox0dea: if ruby is the new php, and the new ruby will be as much more polished as ruby is more polished than php, then I won't complain about that :D
shock_one has quit []
<adaedra>
I've got a very good serializer: File.open('/dev/null', 'w')
<apeiros>
adaedra: isn't that a lossy compressor?
<riceandbeans>
I don't understand what inspect is
<apeiros>
the compression rate is awesome, though
lfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<riceandbeans>
so I don't understand why I'm using it incorrectly
<adaedra>
apeiros: who cares, it's webscale!
<agent_white>
riceandbeans: A wat... ["foo", "bar"].join(",")
<agent_white>
Is that what you want?
<Ox0dea>
>> ['foo'.length, 'foo'.inspect.length] # riceandbeans: Why the difference?
<New_to_Ruby>
So, 0x0dea. What would you suggest I use to learn Ruby?
<Ox0dea>
agent_white: Yes.
<Ox0dea>
New_to_Ruby: Get a proper environment and do the Koans.
<danneu>
riceandbeans: inspect was actually a good strategy. i recommend your original solution so that you can assume each csv column is wrapped in '"'
<danneu>
inspect escapes inner quotes for you
<adaedra>
I was confused for a second: "But, CSVs are with ;", then I remembered.
<agent_white>
riceandbeans: Think smaller. You have an array of strings, you wanna join them together with a comma. Thus, the above.
<Ox0dea>
danneu: riceandbeans specifically mentioned their desire not to have quoted strings in the result.
arthurix has quit [Ping timeout: 240 seconds]
<danneu>
fun times with CSV
<New_to_Ruby>
I will do that. Seriously, thanks people. It's been a humbling, terrifying experience coming here.
<New_to_Ruby>
I'm going to go and spend some time with KOANS.
<Ox0dea>
danneu: The customer is always right, especially when they don't know how wrong they are.
<Ox0dea>
New_to_Ruby: Honest question: why all caps there?
freerobby has joined #ruby
<crime>
New_to_Ruby: we are always willing to help someone willing to learn
<riceandbeans>
so I should take out the inspect and just do .join?
<Ox0dea>
?try riceandbeans
<ruboto>
riceandbeans, Why don't you try it and see for yourself?
<danneu>
riceandbeans: what is the end goal here?
<Ox0dea>
danneu: Chaos.
<agent_white>
riceandbeans: I answered you already above, too.
<danneu>
i recommend array.join(',') if you're not the one that ever has to parse it
<apeiros>
riceandbeans: I'm somewhat amazed at "I came up with foo.map(&:inspect)" combined with "I don't know what inspect is" - how did you think of using inspect in the first place then, not knowing what it is? o0
<New_to_Ruby>
0x0dea I visited the Koans site and before typing that message the last thing I saw was "WITH THE NEO RUBY KOANS".
benlovell has quit [Ping timeout: 255 seconds]
<ruby-lang993>
New_to_ruby, also visit codewars
<Ox0dea>
New_to_Ruby: But it's not in all caps...
<New_to_Ruby>
Thanks, crime. I may be back after spending a few days with Koans.
<ruby-lang993>
its like game version of giving programming challenges you can practice
<riceandbeans>
apeiros: I said, I had no idea, thus I googled 'stackoverflow ruby convert array to comma delimited string'
eminencehc has joined #ruby
<New_to_Ruby>
0x0dea It was in all caps in one place on their site, which is what I saw. So that's how I typed it.
<apeiros>
oh, copypasta. I see.
<crime>
New_to_Ruby: I'm sure I speak for the whole channel when I saw you are welcome anytime, the koans are a lot of fun too if you keep your head up
skcin7 has joined #ruby
<Ox0dea>
/part #php
<riceandbeans>
apeiros: when has copypasta ever failed before? :P
<ruby-lang993>
You can choose to view the solutions to a problem anytime, but the site shames you and makes you forfeit honor, so you feel extra motivated to solve the problem of your own accord
<danneu>
riceandbeans: look at the two examples to see why .inspect was used
<banister>
>> a = []; a.push(a); a.flatten.count
<ruboto>
banister # => tried to flatten recursive array (ArgumentError) ...check link for more (https://eval.in/457397)
treehug88 has quit [Remote host closed the connection]
<apeiros>
particularly funny was the one where the robots evaluated what constituted to be human, and concluded that by all going definitions, they were human.
<crime>
ugh
<crime>
i like the perliness
<Ox0dea>
Me too. <3
<crime>
but i dont like that I didnt think of that
<Ox0dea>
Me neither. :(
<jhass>
crime: you insert more than single letters, so the indexes of your target shift
<Ox0dea>
jhass: Mutable strings are bad, you say?
momomomomo has quit [Quit: momomomomo]
<crime>
oh
<apeiros>
mutable strings are love, mutable strings are life.
<jhass>
Ox0dea: maybe, didn't fully make up my mind yet
<adaedra>
yay for mutability?
<Ox0dea>
It's a hard problem.
<crime>
so should I work from the back then?
<jhass>
immutable strings are slow
axl_ has joined #ruby
elaptics`away is now known as elaptics`
<jhass>
crime: or build a target array to join
_blizzy_ has quit [Read error: Connection reset by peer]
<crime>
i feel stupid doing these problems
<crime>
but i guess thats the point
IChoseSomethingE has quit [Quit: IChoseSomethingE]
<jhass>
>> 'Tomorrow is going to be raining'.each_char.map.with_index {|c, i| "aeiou".include?(c.downcase) ? i+1 : c }.join
blackoperat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
petricore has joined #ruby
petricore has quit [Client Quit]
<ericwood_>
but it's beautiful :')
<danneu>
crime: in my experience people have a harder time writing easy to understand code than they do golfing code into one-liners
<jhass>
could be an interesting code golf variant actually, write programs that hit a defined runtime as close as possible without using sleep or anything like that
Igorshp has quit [Read error: Connection reset by peer]
snockerton has quit [Read error: Connection reset by peer]
Igorshp_ has joined #ruby
<jhass>
but you're only allowed a busy loop or Time.now, not both
snockerton has joined #ruby
skinux_ has quit [Ping timeout: 265 seconds]
<crime>
i gotcha
<crime>
dont worry
<crime>
oh wait
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<crime>
whatever lemme write it first
<crime>
i'll fix it after
lfox has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
subscope has joined #ruby
eminencehc has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
skade has quit [Read error: No route to host]
devoldmx has quit [Remote host closed the connection]
baweaver has joined #ruby
subscope has quit [Client Quit]
poguez_ has joined #ruby
zarubin has joined #ruby
skade has joined #ruby
<yxhuvud>
jhass: hmm. speaking of crystal, just got my earley parser to correctly recognize input. (yeah, it is not very useful until the recognized items can be made into a syntax tree, but still)
zarubin has quit [Client Quit]
devoldmx has joined #ruby
<crime>
mm
subscope has joined #ruby
eminencehc has joined #ruby
<crime>
jhass I'm stuck
<crime>
I have my list of the first 20 primes and all that
roxtrongo has joined #ruby
<jhass>
I never said I'm sure it's solvable :P
<crime>
but it dumps them all in the first second
<crime>
well it is
<crime>
obviously
<crime>
if you can say it you can do it
<Ox0dea>
Wat.
terminalrecluse has joined #ruby
<crime>
thats turing, baby
<jhass>
the idea was more to make the computation of each prime so expensive that it takes as close to 5 seconds as possible
<crime>
oh
<Ox0dea>
crime: The Halting Problem would like a word with you.
<crime>
I was trying to attach an enumerator to Time.now.sec
<crime>
which does not work icymi
baweaver has quit [Ping timeout: 260 seconds]
subscope has quit [Client Quit]
allcentury has quit [Ping timeout: 260 seconds]
sdwrage has joined #ruby
eminencehc has quit [Remote host closed the connection]
<crime>
without sleep this is pretty hard
skinux_ has joined #ruby
<Ox0dea>
crime: Use base-1.
eminencehc has joined #ruby
SamGerber has quit [Quit: Leaving]
<Ox0dea>
And this: /^1?$|^(11+?)\1+$/
kies^ has quit [Ping timeout: 272 seconds]
<waxjar>
crime, when you're done, can you square a circle for me? >:)
northfurr has quit [Quit: northfurr]
<crime>
I speak perl and *that* befuddles me
<jhass>
I guess I'd try to construct something that iterates through 1..n where n is chosen so that it the iteration takes 5 seconds - the time it takes to check each for prime
<apeiros>
Ox0dea: prime number detecting regex? that one's fun
<workmad3_>
waxjar: be specific - it's squaring a circle with straight-edge & protractor that's provably impossible :P
snockerton has quit [Quit: Leaving.]
<Ox0dea>
apeiros: That's the one.
<jhass>
then track an index and a counter for the prime
workmad3_ is now known as workmad3
<jhass>
repeat 20 times
<Ox0dea>
crime: Use that regex and something *way* more complicated than "1" as your tally mark.
<apeiros>
Ox0dea: took me a bit until I figured how it worked :)
<ruby-lang996>
well im having trouble an input method that checks for a valid user entry working the first entry but not accepting it after i call back on itself after...
<drbrain>
zenspider: I guess, I'd not encountered that until you mentioned it
<zenspider>
only will affect ppl using stock ruby (only me?). :)
<zenspider>
-n works
mengu has quit []
hakunin has joined #ruby
<drbrain>
probably
dopamean_ has quit [Ping timeout: 240 seconds]
hakunin has left #ruby [#ruby]
<zenspider>
it was blocking my release process for ruby_parser
<zenspider>
seems fine now
Guest7725 has quit [Quit: This computer has gone to sleep]
karapetyan has quit [Remote host closed the connection]
<Fire-Dragon-DoL>
syntax question! I noticed there are some classes that allow you to do: YourClass(foo) (call the class like a method), how to recreate that behavior?
<pipework>
Fire-Dragon-DoL: They're just methods.
<zenspider>
def Float(n); ... end
<Fire-Dragon-DoL>
pipework: mh but they also allow you to do YourClass.new(somestuff) or YourClass.someclassmethod
hakunin has joined #ruby
<pipework>
Fire-Dragon-DoL: two separate objects.
baweaver has joined #ruby
h99h9h88 has joined #ruby
hakunin has left #ruby [#ruby]
<workmad3>
Fire-Dragon-DoL: you can have a method with the same name as a constant, ruby can figure out the difference
<Fire-Dragon-DoL>
workmad3: oh thanks, wasn't aware of that
<workmad3>
(constant takes precedence though)
<Fire-Dragon-DoL>
I thought they would conflict
h99h9h88_ has joined #ruby
sdwrage has joined #ruby
<workmad3>
Fire-Dragon-DoL: it's fairly common to call a method with a name like Foobar a 'constant method', but they're no different from any other method
<Fire-Dragon-DoL>
ok, I thought there was a secret syntax like operator overloading inside the class itself
<workmad3>
Ox0dea: chained comparisons were fun :)
<ruby-lang996>
program ideas for a beginner to test my skills?
atomical has joined #ruby
<shevy>
go write what you need to solve ruby-lang996
<zenspider>
fairly common? I've _never_ heard that term
<zenspider>
ruby-lang996: exercism.io
<pipework>
Me neither.
baroquebobcat has joined #ruby
bb010g has joined #ruby
h99h9h88 has quit [Ping timeout: 265 seconds]
<Fire-Dragon-DoL>
ruby-lang996: web scraper: get every information of a website of your choice, organize it into files (like json files) and output some stats in another json
h99h9h88_ has quit [Ping timeout: 250 seconds]
<workmad3>
zenspider: hmm, fair enough... not as common as I thought then (I've encountered it in a few places though, trying to remember where)
<zenspider>
and it isn't precedence either. the method MUST be invoked with parens. it's just syntax
<zenspider>
(syntax that bugs me, for the record)
<ruby-lang996>
exercism.io ya?
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ruby-lang996>
Fire-Dragon-DoL - sounds fun. no idea how to go about doing that but ill dive in :p
<workmad3>
zenspider: heh :) ok, I take the hint... it's too late in the day for me to be on IRC and I should shut up :)
popsikle has quit [Remote host closed the connection]
<zenspider>
not hinting that at all... just being pedantic because of ruby_parser
<Fire-Dragon-DoL>
ruby-lang996: few suggestions for Gemfile: HTTParty, nokogiri, optionally ActiveSupport
prestorium has quit [Quit: Leaving]
Rickmasta has joined #ruby
dfinninger has quit [Remote host closed the connection]
<Fire-Dragon-DoL>
ruby-lang996: if you feel into database stuff you can always try ActiveRecord, but it's not really in the scope of the excercise, and saving JSON file (JSON.pretty_generate) allows you to deal more with Ruby
dfinninger has joined #ruby
devoldmx has quit [Remote host closed the connection]
inteq has quit [Remote host closed the connection]
weemsledeux has joined #ruby
fschuindt has quit [Ping timeout: 240 seconds]
stannard has quit [Remote host closed the connection]
tkuchiki has joined #ruby
atomical has quit [Max SendQ exceeded]
whippythellama has quit [Quit: WeeChat 1.3]
dfinninger has quit [Ping timeout: 250 seconds]
brt has quit [Quit: peace]
zipace has quit [Ping timeout: 244 seconds]
atomical has joined #ruby
maletor has joined #ruby
alexdunne has joined #ruby
uber has quit [Ping timeout: 260 seconds]
towski_ has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
baroquebobcat has quit [Quit: baroquebobcat]
Kruppe has quit [Ping timeout: 240 seconds]
jobewan has quit [Remote host closed the connection]
Kruppe has joined #ruby
p0wn3d has joined #ruby
rbennacer has quit [Remote host closed the connection]
hakunin has joined #ruby
_blizzy_ has quit [Ping timeout: 246 seconds]
mordocai has quit [Remote host closed the connection]
alexdunne has quit [Ping timeout: 244 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
alcipir has joined #ruby
jgpawletko has joined #ruby
GnuYawk has quit [Ping timeout: 240 seconds]
rakm has joined #ruby
freerobby has quit [Quit: Leaving.]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang996 has quit [Ping timeout: 246 seconds]
diegoaguilar has quit [Remote host closed the connection]
arthurix has joined #ruby
eminencehc has quit [Remote host closed the connection]
alcipir has quit [Ping timeout: 272 seconds]
atlascoder has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cyle has quit [Ping timeout: 272 seconds]
arthurix_ has quit [Ping timeout: 260 seconds]
trosborn has joined #ruby
danneu has quit [Ping timeout: 264 seconds]
torpig has quit [Ping timeout: 264 seconds]
GGMethos has quit [Ping timeout: 264 seconds]
Guest81 has joined #ruby
atlascoder has quit [Client Quit]
uber has joined #ruby
danneu has joined #ruby
<Guest81>
Hi - can I get a hand with writing Rake "rule" tasks ? does someone have a few minutes spare?
weemsledeux has joined #ruby
skade has quit [Read error: No route to host]
pu22l3r has quit [Ping timeout: 240 seconds]
torpig has joined #ruby
GGMethos has joined #ruby
M-Technic has quit [Quit: Reconnecting]
M-Technic has joined #ruby
rbowlby has quit [Remote host closed the connection]
tno has quit [Remote host closed the connection]
gregoriokusowski has joined #ruby
Y_Ichiro has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
<crime>
if I want [1,2] == [2,1] to be true? how can I tell if an array is the same set as another array
<ruboto>
baweaver # => uninitialized constant Set (NameError) ...check link for more (https://eval.in/457441)
* baweaver
sighs
<Ox0dea>
If `n` is a "descending number", then there is no solution; otherwise, find the point at which the number first "ascends" and swap the culprits.
<bigmac__>
are there any cuda gpu modules for ruby that are working
<baweaver>
I was just going off of their code there
<crime>
Ox0dea: thanks, didnt know you could do that
swgillespie has joined #ruby
<Ox0dea>
crime: Virtually any object can have its own #[] method; it's just another operator, really.
RegulationD has quit [Remote host closed the connection]
<shevy>
\o/
rehat has joined #ruby
<shevy>
here is how you can define it crime: class Foo; def [](arguments_go_in_here)
alcipir has joined #ruby
<crime>
so []= then too
chipotle has joined #ruby
<Ox0dea>
Indeed.
<crime>
and =, ==?
<Ox0dea>
No, not assignment.
<baweaver>
honestly though it'd likely be cheaper to make a list of all possibilities
<baweaver>
instead of going through every number
<Ox0dea>
But #== and #===, absolutely.
yqt has quit [Ping timeout: 264 seconds]
<Ox0dea>
Or, y'know, do it right?
_blizzy_ has quit [Ping timeout: 240 seconds]
<crime>
baweaver: I thought about that, but it's going against other solutions on codewars, and I havent looked at them yet but I want mine to appear clever
h99h9h88 has quit [Ping timeout: 244 seconds]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
dpulliam has joined #ruby
<baweaver>
crime: bad idea
pu22l3r has joined #ruby
<baweaver>
clever is evil
<crime>
think so?
pu22l3r has quit [Remote host closed the connection]
<crime>
ah, perl has survived on clever for almost 30 years though
<Ox0dea>
The optimal solution involves proving you know how to divide and multiply by ten.
<baweaver>
it causes you to make obscure and impossible to reason about code for the sake of being clever
pu22l3r has joined #ruby
<crime>
that DOES sound like perl
<baweaver>
so pretty much perl
<crime>
yeah
GnuYawk has joined #ruby
<crime>
lol
<baweaver>
clever people get fired a lot faster
<Ox0dea>
Whether a sufficient understanding of orders of magnitude is "too clever" is, I suppose, a matter for some debate.
<baweaver>
Ox0dea: was referring to their comment of wanting to appear clever
<Ox0dea>
I think they weren't necessarily using the term as we understand it.
ICantCook has quit [Quit: bye]
<Ox0dea>
I suspect they actually wanted "smart".
terminalrecluse has joined #ruby
ICantCook has joined #ruby
<crime>
>> a = [1,2]; b = [3,4]; a[0],a[1],b[0],b[1] = b[0],b[1],a[0],b[1]