<injekt>
3 letter .io domains that are not registered
<erikh>
hmm
justinmcp_ has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 272 seconds]
foca has joined #ruby-lang
glebm has joined #ruby-lang
<erikh>
oh wow
krohrbaugh has quit [Ping timeout: 252 seconds]
<erikh>
filter is tits
<erikh>
it just cleared it from my buffers
<erikh>
so hot
<erikh>
like, all the old stuff too
zzak_ has joined #ruby-lang
<injekt>
\o/
krombr has joined #ruby-lang
melter_ has joined #ruby-lang
jovy88 has quit [Read error: Connection reset by peer]
bca_ has joined #ruby-lang
jtoy_ has joined #ruby-lang
pygmael has joined #ruby-lang
ikrima has quit [Ping timeout: 264 seconds]
musl_ has quit [Read error: Connection reset by peer]
tonni has quit [Ping timeout: 264 seconds]
melter has quit [Ping timeout: 264 seconds]
bougyman has quit [Ping timeout: 264 seconds]
_ko1 has quit [Ping timeout: 264 seconds]
wnd has quit [Ping timeout: 264 seconds]
tdy has quit [Ping timeout: 264 seconds]
priodev has quit [Ping timeout: 264 seconds]
narya_ has quit [Ping timeout: 264 seconds]
kalleth has quit [Ping timeout: 264 seconds]
flori has quit [Ping timeout: 264 seconds]
gianlucadv has quit [Ping timeout: 264 seconds]
sn0wb1rdz has quit [Ping timeout: 264 seconds]
pygmael_ has quit [Ping timeout: 264 seconds]
justinmcp has quit [Ping timeout: 264 seconds]
foca_ has quit [Ping timeout: 264 seconds]
cyndis has quit [Ping timeout: 264 seconds]
Guest15922 has quit [Ping timeout: 264 seconds]
beawesomeinstead has quit [Ping timeout: 264 seconds]
jtoy has quit [Ping timeout: 264 seconds]
xuser has quit [Read error: Connection reset by peer]
zzak has quit [Ping timeout: 264 seconds]
priodev has joined #ruby-lang
gianlucadv has joined #ruby-lang
nyuszika7h has quit [Read error: Connection reset by peer]
jovy88 has joined #ruby-lang
sn0wb1rdz has joined #ruby-lang
nyuszika7h has joined #ruby-lang
cyndis_ is now known as cyndis
<injekt>
man I wish I had time to port more of my work stuff to go
<erikh>
like what?
<erikh>
rails stuff?
<erikh>
is there a good rails-y framework out there yet?
<injekt>
erikh: yeah, I'm porting our csv importer right now and I'd like to do some other bits, not everything but just the stuff I feel would benefit from it
<erikh>
resque in go
<erikh>
that would be... very nice
<injekt>
erikh: not sure, I know of one that's quite popular but it's not so rails-y
<erikh>
oh and make it use rabbit while you're at it
<erikh>
becuase lol redis
<injekt>
:D
<injekt>
I'm using redis.go at work
<injekt>
for some stuff
<erikh>
it's good for a k/v store. it's not a f'n queue
<erikh>
and it's very good at being a single point of failure
<erikh>
aka -- it's a great cache, not a great database
<injekt>
yup
<injekt>
erikh: beego is the popular web framework
<erikh>
interesting
<erikh>
injekt: where can I get a list of popular go packages?
<erikh>
want to see what's out there already.
<injekt>
erikh: http://gowalker.org/ is quite nice for searching packages across multiple platforms
<erikh>
very neat. thanks!
<erikh>
we should probably take this to the go channel, heh
<injekt>
:D
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
gianlucadv has quit [Ping timeout: 264 seconds]
priodev has quit [Ping timeout: 264 seconds]
<injekt>
anyone here on windows and can help me out?
<gnufied>
so ^ gem is completely unrelated, isn't it?
<gnufied>
I suggest make one gem
r0bgleeson has joined #ruby-lang
<gnufied>
it is already just a wrapper over js libraries frankly.
<gnufied>
such gems have tendency of getting out dated very quickly
<gnufied>
you will have to update the gem each time they release new js files
Domon has quit [Remote host closed the connection]
<gnufied>
I don't know why would I make two gem!
roadt_ has joined #ruby-lang
Domon has joined #ruby-lang
kstuart has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
beiter has left #ruby-lang [#ruby-lang]
<dkannan>
gnufied: separation of concerns
<dkannan>
gnufied: the socialite-source gem is only concerned with tracking the javascript library
<dkannan>
ideally their versions will match
<dkannan>
but the socialite gem will integrate into other frameworks
<dkannan>
eg. i can have socialite-rails and socialite-sinatra
<dkannan>
but i will only have a single gem. socialite for now
roadt has quit [Ping timeout: 272 seconds]
<dkannan>
and release management is also easier
<dkannan>
socialite and socialite-source have move seperately
<dkannan>
in my app the api for socialite gem remains the same
<gnufied>
but the only reason you are making this gem is because you want to expose this via sproket asset pipelining
xxaM has quit [Remote host closed the connection]
<gnufied>
otheriwse, I would just copy the js files and keep them somewhere public and load
benlovel1 has quit [Ping timeout: 264 seconds]
<dkannan>
yes. but i like the fact that i can have a socialite-sinatra gem in future
<gnufied>
YAGNI
<dkannan>
or even have a coffee version of the js file in the socialite-source gem
xxaM has joined #ruby-lang
<gnufied>
perhaps sinatra people like copying plain js files
<dkannan>
maybe. but i making the gem for myself :-)
<dkannan>
and i do not like copying files
<dkannan>
* automate all the things *
Criztian has quit [Remote host closed the connection]
<dkannan>
and i like that the concerns are separate.
<dkannan>
if i do not want the rails integration i will only require socialite-source
<dkannan>
ie. one step above copying the file
<dkannan>
eg. i was thinking of only adding rails sprockets integration
<dkannan>
a sinatra person can use socialite-source
beawesomeinstead has joined #ruby-lang
<gnufied>
I see your point and disagree nonetheless. seems overkill for something simple. :-)
<gnufied>
it may have something to do with my experience that, often times I start using a gem that wraps a library and then I end up throwing gem out when it quickly gets outdated
<gnufied>
if you indeed want to support other frameworks, then you should think about how are you going to support other pipelining frameworks
<gnufied>
do those frameworks need even a gem like this?
<gnufied>
for example, If I had to use socialite with jammit what would I do?
<dkannan>
gnufied: create a gem called jammit-socialite which uses socialite-source
<gnufied>
there won't be a need.
<dkannan>
gnufied: no need. but IMO it will be good-to-have
<gnufied>
with jammit you are going to need plain js/css files
<gnufied>
as in thats their philosphy,
<gnufied>
what you propose seems like a solution designed around sprockets which is inherently rails and then hoping it will work with other frameworks/tools as well. :-)
<dkannan>
hmm. so in the library. Socialite::Source.bundled_minimized_path will give me a plain js file
<dkannan>
sorry if the text was bold-ed
<dkannan>
eh. capitalized
<dkannan>
gnufied: i get what you are saying
sepp2k has joined #ruby-lang
<dkannan>
i am not extracting the gem but am making the decision beforehand
<gnufied>
cool. just my 2 pence.
<dkannan>
gnufied: much appreciated :-)
swav has quit [Ping timeout: 255 seconds]
swav has joined #ruby-lang
ndrst has quit [Ping timeout: 256 seconds]
poga has joined #ruby-lang
machuga|away is now known as machuga
poga has quit [Remote host closed the connection]
Domon has quit [Remote host closed the connection]
poga has joined #ruby-lang
poga has quit [Remote host closed the connection]
poga has joined #ruby-lang
ndrst has joined #ruby-lang
krombr has quit [Ping timeout: 268 seconds]
jovy88 has quit [Read error: Connection reset by peer]
jovy88 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
<Aloysius1>
I have a YAML question maybe y'all can help with.
<Aloysius1>
I have a YAML file containing data. (Field1:Data1, Field2:Data2, etc.)
<Aloysius1>
And another YAML file containing a map (Field1:FieldA, Field2:FieldB, etc.)
dezasseis has joined #ruby-lang
<Aloysius1>
I'm trying to take the data file and the map file and end up with (FieldA:Data1, FieldB:Data2, etc.)
erpuds has quit [Quit: erpuds]
<Aloysius1>
This seems like it should be really simple. (Assume that there's no nesting or sub objects.)
roadt_ has quit [Ping timeout: 272 seconds]
<Aloysius1>
Like maybe using a "map". But I'm drawing a blank for some reason.
kbsa__ has joined #ruby-lang
zmike123 has joined #ruby-lang
pskosinski has joined #ruby-lang
kbsa has quit [Quit: kbsa]
cofin has quit [Quit: cofin]
_musl_ has quit [Quit: WeeChat 0.4.0]
musl has joined #ruby-lang
dhruvasagar has joined #ruby-lang
plurt has joined #ruby-lang
mrsolo has joined #ruby-lang
<eam>
Aloysius1: ret={}; data_thing.each do |k,v|; ret[ map_thing[ k ] ] = v; end ?
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
<Aloysius1>
Yeah...lol...need more sleep. My confusion stemmed from not putting spaces after my colons in the YAML file. "It's all coming out as a string!" Duh.
<Aloysius1>
Thanks, eam.
MaddinXx has quit [Remote host closed the connection]
barttenbrinke has quit [Ping timeout: 276 seconds]
nXqd has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
swav has joined #ruby-lang
swav has quit [Remote host closed the connection]
erpuds has joined #ruby-lang
<matti>
zzak_: :)
mistym_lunch is now known as mistym_scanning
Gabri has joined #ruby-lang
<zzak_>
thank you!
<rue>
eam: It would be useful in some cases. On the other hand, it’s good to have an ‘immutable’ way of constructing a Hash
jovy88 has quit [Read error: Connection reset by peer]
Gabri has quit [Remote host closed the connection]
jovy88 has joined #ruby-lang
nXqd has quit [Ping timeout: 276 seconds]
nXqd has joined #ruby-lang
engel has joined #ruby-lang
<Aloysius1>
Havenwood: OK, I don't think " Hash[data.values.zip(map_thing.values)]" is going to work because the point is to map the values from "data" to the values from "map"--but where the keys in both agree. I can't guarantee that all keys match or are in the same order.
<yorickpeterse>
zzak_: so you're going to be a true Ruby rockstar ninja god now
<eam>
rue: immutable as in unchanging semantics? It's just odd to have all these almost equivalent methods
vlad_starkov has quit [Remote host closed the connection]
<eam>
very confusing for someone learning ruby -- impossible to create a proper heirarchy of functionality
* eam
whine
swav has joined #ruby-lang
swav has quit [Remote host closed the connection]
cofin has joined #ruby-lang
saarinen has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
xcombelle has joined #ruby-lang
swav has joined #ruby-lang
xuser_ has quit [Changing host]
xuser_ has joined #ruby-lang
<xuser_>
eam: Hash.new lets you set a default value for your keys
blacktulip has quit [Remote host closed the connection]
<eam>
Hash.new is something else entirely -- a third thing
<eam>
anyway, I mention it because the docs lie, and say Hash[] is " Equivalent to the literal {}"
voker57 has joined #ruby-lang
<eam>
but I don't understand why what the docs describe, that the two are equivalent, isn't actually the case
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
plurt has quit [Quit: Computer has gone to sleep.]
zomgbie_ has quit [Ping timeout: 256 seconds]
<rue>
Equivalent ≠ same
barttenbrinke has joined #ruby-lang
<apeiros>
because Hash[a, b, c, d] is equivalent to {a => b, c => d} - and as rue says - it's equivalent. not the same.
zomgbie has joined #ruby-lang
<eam>
they do not have Equivalent functionality
<eam>
the calling convention differs significantly
<apeiros>
dude
<rue>
Can’t help it if you define your own words… :P
<apeiros>
equivalent literally means "equal in value". and they *are* equal in value.
<apeiros>
you might want to get a dictionary.
<Aloysius1>
OK, is there an elegant way to get a hash from a hash#map? "data.map do |k,v| [map[k]=>v] end" gives an array, of course.
arturodz has joined #ruby-lang
<apeiros>
Aloysius1: Hash::[]
<apeiros>
which you've been told, I think
<apeiros>
(unless that doesn't qualify as "elegant way" in your book)
<darix>
apeiros: i think might miss "*"
<darix>
he might..
<apeiros>
darix: no
<apeiros>
oh, wait, look at the do block
<arturodz>
hi everybody
<apeiros>
Aloysius1: not [map[k]=>v]
<apeiros>
just [map[k],v]
<apeiros>
otherwise you generate an array of arrays of hashes
<Aloysius1>
Right. I noticed that.
<arturodz>
I would like to know your opinion about the best way to set up a glue code. I am using ruby to connect a between a ms sql database and salesforce. Is there any gem that can help me with this?
<Aloysius1>
First three lines are incoming yaml, second three are how I want the outgoing fields to map, third three should be the output.
cmaxw_ has joined #ruby-lang
<Aloysius1>
I might just be wrong and there isn't a super-slick one-line way to do it.
<apeiros>
eam: yeah, right, "let me make some contrived example which has nothing to do with what was said to prove that I'm right!!!"
<apeiros>
eam: whatever dude. I have no patience for this.
<apeiros>
Aloysius1: just Hash[data.map { |k,v| [map[k],v] }]
<apeiros>
no * needed
<apeiros>
Hash::[] accepts either Hash[a,b,c,d] (which is not what you have, but which would need *), or Hash[[a,b],[c,d]] (which is what you have and does not need *)
towski has quit [Read error: Connection reset by peer]
<apeiros>
darix: no, just drop the * and the flatten
<apeiros>
no need for those
<darix>
apeiros: i let you optimize it
<darix>
mine works
<darix>
going back to my stuff.
<apeiros>
p output == Hash[input.map { |k,v| [mapping[k], v]}]
<apeiros>
>= 1.8.7 required, though. pre 1.8.7 can't do that.
lguardiola_ has joined #ruby-lang
<eam>
apeiros: uh, it's not contrived it's the way this discussion started
<eam>
what's your problem dude
krohrbaugh has quit [Quit: Leaving.]
<apeiros>
you. but thankfully participation is optional and I opted to get out. have a nice day.
mytrile has joined #ruby-lang
<eam>
the weird thing is, for a newbie, that Hash[a.zip(b)] works, but { a.zip(b) } doesn't
<rue>
OK.
<eam>
anyway I'll submit a patch for the docs I guess
robbyoconnor has quit [Ping timeout: 256 seconds]
saarinen has quit [Quit: saarinen]
pskosinski_ has joined #ruby-lang
pskosinski has quit [Disconnected by services]
pskosinski_ is now known as pskosinski
vlad_starkov has joined #ruby-lang
<andrewvos>
So Dart looks kind of meh
vlad_starkov has quit [Ping timeout: 252 seconds]
<rue>
andrewvos: Largely because it is.
<rue>
Usability of Javascript combined with all the pizazz of Java
<andrewvos>
rue: I looked at the "reverse text" example and saw they used a StringBuffer and a loop and was like "I want this to die"
<andrewvos>
:(
<andrewvos>
):
slash_nick has quit [Ping timeout: 246 seconds]
<andrewvos>
I started learning Lisp yesterday, and then promptly found out that the web frameworks were kind of lacking.
<andrewvos>
Feel like I want to learn something new, but if it doesn't have nice package management like Ruby and isn't easy to learn, then to hell with it.
<rue>
andrewvos: I like coffeescript okay…
<andrewvos>
Me too
<zzak_>
andrewvos how are you learning?
<andrewvos>
zzak_: Well I would like it to be with an online eval kind of thing
<zzak_>
break out of your comfortzone
<andrewvos>
zzak_: Oh do you mean with lisp?
<havenwood>
andrewvos: How about Closure with Noir for a Lisp webframework?
<zzak_>
yeah
<andrewvos>
zzak_: Well i was just playing with code
rdg has joined #ruby-lang
<andrewvos>
havenwood: I am kind of religious with staying away from anything JVM
<zzak_>
theres plenty of online REPL's for lisp-likes
<rue>
Clojure
<havenwood>
andrewvos: ahh
<rue>
Also ClojureScript
<andrewvos>
havenwood: I know it may sound stupid but that's just me
slash_nick has joined #ruby-lang
<andrewvos>
Wait Closure, erm. That's not JVM is it :)
<havenwood>
rue: I keep making that mistake, Clojure, Clojure - I'll still probably get it wrong a few more times. :(
vlad_starkov has joined #ruby-lang
<andrewvos>
Whdo they sound the same sheesh
<andrewvos>
Why*
<injekt>
andrewvos: land of lisp book was pretty good if i remember right
<rue>
LOL
<andrewvos>
zzak_: I got plt-racket (or whatever it's called) installed and was playing in there
<havenwood>
Isn't there a Clojure on .Net?
<injekt>
andrewvos: learn haskell
<andrewvos>
injekt: I was just thinking that!
<rue>
No, there’s F#
<andrewvos>
injekt: I started it a while ago
<andrewvos>
injekt: Oh but I gave up when I had to compile things I think
<injekt>
andrewvos: learn you a haskell is one of the best programming books I've ever read for learning
<andrewvos>
injekt: Yeah I read most of that
<zzak_>
andrewvos: just pick something and go for it
<injekt>
and Go for it
<andrewvos>
injekt: It is great
<injekt>
:D
<zzak_>
who cares how useful or easy it is
<injekt>
damn straight
<andrewvos>
injekt: why don't you Go **** yourself hahahaha
<injekt>
learn vb6
<injekt>
andrewvos: :D
<andrewvos>
injekt: I know vb6 :)
<injekt>
andrewvos: me too! first language
<andrewvos>
injekt: I also started with vb6
<andrewvos>
injekt: Yeah I know I saw you mention it recently
<andrewvos>
hehe
<injekt>
andrewvos: damn right, packet sniffing all the fools
<andrewvos>
hahaha
<andrewvos>
good memory
<injekt>
andrewvos: my first program was a winsock packet sniffer for 'hacking' a chat service
<andrewvos>
zzak_: I do like lisp. Maybe I should make a bundler for lisp as a start
<andrewvos>
injekt: Why did you do that?
<injekt>
andrewvos: becaue I was an asshole
<andrewvos>
haha cool
vlad_starkov has quit [Ping timeout: 256 seconds]
<andrewvos>
My first real program was landscape design software, which I sold :)
Swimming_Bird has joined #ruby-lang
Swimming_Bird has quit [Max SendQ exceeded]
<andrewvos>
And then I made this thing to watch Unreal Tournament matches I think
Swimming_Bird has joined #ruby-lang
<injekt>
well that makes me even more of a silly asshole noob who didn't know what to write so wrote something that fucked with nice people
<andrewvos>
hehe
<injekt>
UT <3
<Swimming_Bird>
i'm trying to include a module into enumerable to extend it. i can't figure out how to make that work though
<andrewvos>
haha yeah
<andrewvos>
good game
<andrewvos>
gg gg
<injekt>
Swimming_Bird: it wont work
<andrewvos>
gl hf => gg
<Swimming_Bird>
injekt: why not? it works with other vanilla modules, is it because it's written in C?
retro_ has quit [Ping timeout: 246 seconds]
<Swimming_Bird>
I can open it up and monkeypatch it, i just like to put core class exnensions into modules so that you can see them in the ancestor list
<injekt>
Swimming_Bird: I'm trying to remember why that won't work, but I remember someone else having this issue
<injekt>
hold up let me check
<zzak_>
andrewvos: a lot of bundlers dependency resolution is based on tsort, or uses tsort
<erikh>
my first program was a bot for counter-strike servers
<erikh>
server-side, not an aimbot
<erikh>
well, ok. that was my first open source program
<erikh>
I made a bbs editor and a small program to hang up my modem ages before then
nertzy2 has quit [Ping timeout: 255 seconds]
<erikh>
in pascal and assembler!
hakunin has quit [Remote host closed the connection]
<erikh>
both thanks to the BBS community and the fact that borland worked great if you put it in a zip file and sent it to others
chessguy has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
<erikh>
also I just pooped and feel great
krohrbaugh has joined #ruby-lang
wmoxam has quit [Ping timeout: 257 seconds]
mucker has joined #ruby-lang
yalue has quit [Quit: Leaving]
<injekt>
\o/
mistym_scanning is now known as mistym_away
<erikh>
injekt: dominikh sent me a PR where he cleaned up a bunch of my code
<erikh>
<3 this guy
<injekt>
erikh: yup I noticed, I wasn't sure on some of the channel select stuff and don't really have the authority so mentioned it to dom, next min he opens the pull req
mistym_away is now known as mistym
barttenbrinke has quit [Remote host closed the connection]
<injekt>
he's pretty damn good with go, luckily he's sleeping so wont see me compliment him
<erikh>
s/with go//
<erikh>
but details
<injekt>
psh
<erikh>
he's a good coder
<erikh>
give credit where it's due
<injekt>
yeah but he's a bad person so it counters it
<injekt>
:D
<erikh>
he's just german is all
<erikh>
can't fault him for that.
<injekt>
very much so
<injekt>
this csv mapper is nassttyy looking
<erikh>
yeah, my proxy code is getting there too
<erikh>
about to start from the top
<erikh>
right now my issue is, if the cache expires, it waits another CacheExpiration seconds before it tries again
mbj has joined #ruby-lang
pkrnj has joined #ruby-lang
cstrahan has quit [Ping timeout: 276 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
vlad_starkov has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 264 seconds]
Kip_ has joined #ruby-lang
<drbrain>
injekt: pong
Kip_ has left #ruby-lang [#ruby-lang]
kip3242321 has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
headius has quit [Quit: headius]
kip3242321 has quit [Client Quit]
voker57 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
KipTheKlous has joined #ruby-lang
<KipTheKlous>
hi
_carloslopes has quit [Remote host closed the connection]