<ljarvis>
probably exists somewhere in a java program too
<r0bglees0n>
yeah but it'd be like pRoDuCePreSeNtEr
Cakey has joined #ruby-lang
rubas has left #ruby-lang [#ruby-lang]
Rubatharisan has joined #ruby-lang
<yorickpeterse>
apeiros: ha! actually it is
<yorickpeterse>
ljarvis: so I had it under `analyze` and the root command would call that as a convenience way
<yorickpeterse>
but I want to get rid of that so it's the root command
<yorickpeterse>
However, I don't want to break compatibility
<r0bglees0n>
yolo
Elico has joined #ruby-lang
<yorickpeterse>
but hm, might have to look into that again
<yorickpeterse>
apeiros: this presenter is pretty lol, though I'm now moving stuff into separate classes (now that it actually works and is worth doing that
melter has quit [Quit: Client exiting]
Rubatharisan has left #ruby-lang [#ruby-lang]
<yorickpeterse>
hm, there's some drug dealing going on to the left
Raycaster has joined #ruby-lang
<yorickpeterse>
darn smokers
imjacobclark has joined #ruby-lang
<r0bglees0n>
lol
<r0bglees0n>
left of your laptop?
<yorickpeterse>
Yeah desk next to me
<r0bglees0n>
ahh
<yorickpeterse>
CTO is stealing smokes from a co-worker it seems
<r0bglees0n>
hehe
Rubasdotorg has joined #ruby-lang
soba has quit [Ping timeout: 248 seconds]
relix has joined #ruby-lang
mistym has joined #ruby-lang
<Rubasdotorg>
Hi guys, is it possible for a ruby shell script to connect remote mysql DB?
<yorickpeterse>
but yeah, config can still be wrong somewhere else
<Rubasdotorg>
is my config wrong?
<r0bglees0n>
that doesn't really matter here yorick, but sure. it's an adapter.
melter has joined #ruby-lang
<yorickpeterse>
Rubasdotorg: might want to be careful with those stacktraces, they contain credentials
<r0bglees0n>
it seems likely
<yorickpeterse>
at least the user and host
simi has joined #ruby-lang
kirin` has quit [Ping timeout: 272 seconds]
rahul_j has quit [Quit: rahul_j]
<Rubasdotorg>
yorickpeterse: It's not a production server :)
kirin` has joined #ruby-lang
<yorickpeterse>
ah ok
<Rubasdotorg>
Access denied for user 'rubathar_kitchen'@'users48.kollegienet.dk' (using password: YES) (Sequel::DatabaseConnectionError) - the weird part here, the first is my username to the db and after @ it's my ISP host
<r0bglees0n>
ah
<r0bglees0n>
you probably can only connect from localhost?
<Rubasdotorg>
maybe that's the problem...
francisfish has joined #ruby-lang
<Rubasdotorg>
but as mentioned earlier, I have software that runs locally connecting remotely
jsrn has joined #ruby-lang
<r0bglees0n>
try mysql2://, so you hit a different adapter
<r0bglees0n>
but it looks like some kind of misconfiguration
<Rubasdotorg>
i tried with mysql2 alswell same error
<Rubasdotorg>
btw, guys it's nice of you to point out that the pastebin contains credentials :) That makes me trust you even more ;)
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
<yorickpeterse>
we're actually pirate scumbags
<Rubasdotorg>
r0bglees0n: now the question is, is it a misconfiguration in my debian or in ruby?
<Rubasdotorg>
yorickpeterse: haha seems like we are in the same boat ;)
<yorickpeterse>
does it work if you use the mysql commandline?
<yorickpeterse>
so
<yorickpeterse>
mysql -u USER -h HOST --password=PASSWORD
RoxasShadowRS has quit [Ping timeout: 272 seconds]
<Rubasdotorg>
nope comes up with ERROR 1045 (28000): Access denied for user 'rubathar_kitchen'@'users48.kollegienet.dk' (using password: YES)
<yorickpeterse>
Then it looks like your server config is borken
RoxasShadowRS has joined #ruby-lang
francisfish has quit [Ping timeout: 272 seconds]
<Rubasdotorg>
my host is a webhost with remote db access (running cPanel)
mykoweb_ has joined #ruby-lang
mykoweb has quit [Ping timeout: 272 seconds]
Cakey has quit [Ping timeout: 246 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
<yorickpeterse>
could be that dbeaver tunnels in to something in order to connect
<yorickpeterse>
or has some otherwise special setting
<Rubasdotorg>
but Navicat does aswell, and so does Sequel Pro (Mac)
<Rubasdotorg>
but yeah maybe they have a special setting.. :)
<yorickpeterse>
hm
<yorickpeterse>
any special characters in the password?
<Rubasdotorg>
nope charcs and numbers
<Rubasdotorg>
no foreign chars
judofyr has joined #ruby-lang
<Rubasdotorg>
is maybe my local mysql configuration?
patriciomacadden has quit [Ping timeout: 246 seconds]
<yorickpeterse>
hard to tell, I would not be surprised if it's like a one-character typo but it's hard to tell
<whitequark>
d4rkr4i: your code on line 2 is equivalent to block_given?(bar(option, &block))
<yorickpeterse>
Lewix: eh, what?
<mistym>
d4rkr4i: block_given? is a method. The way you're calling it with the bar() method call on the same line is ambiguous, and Ruby is trying to pass it as an argument to block_given?
<whitequark>
and an empty if body
<yorickpeterse>
what kind of data? Summarize what? etc
iliketurtles has joined #ruby-lang
<d4rkr4i>
whitequark: oops. I meant bar(option, block). Let me check with that.
mykoweb has joined #ruby-lang
iliketurtles has quit [Excess Flood]
<d4rkr4i>
mistym: oh
Alexis_Evo has left #ruby-lang [#ruby-lang]
iliketurtles has joined #ruby-lang
iliketurtles has quit [Excess Flood]
tom025 has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
<Lewix>
yorickpeterse: a gems to deal with data
<d4rkr4i>
mistym: yes. you were absolutely right. Calling bar on line 2 in separate line makes it work. :)
senj has joined #ruby-lang
<d4rkr4i>
mistym: also, I can change that too def foo(option, &block); bar(option, &block); end in that example, if i am not wrong.
CaptainJet has quit [Read error: No route to host]
havenwood has joined #ruby-lang
<mistym>
d4rkr4i: Yes, the block argument will just be nil in that case, so that works fine
<d4rkr4i>
mistym: calling why doesn't calling bar(option, block) work inside foo? I thought `block` there will be treated as a proc and in bar definition, it will be referenced as block by & operator.
julweber has quit [Remote host closed the connection]
<d4rkr4i>
s/calling why/calling
CaptainJet has joined #ruby-lang
<d4rkr4i>
s/calling why/why *
<d4rkr4i>
damn
jeff_r has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
<d4rkr4i>
oh. read the doc again. doubt cleared.
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
yfeldblum has joined #ruby-lang
ashwilson has joined #ruby-lang
francisfish has joined #ruby-lang
ashwilson has quit [Client Quit]
vpretzel_ has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 252 seconds]
mykoweb has quit [Ping timeout: 240 seconds]
__butch__ has quit [Quit: Leaving.]
jtw has quit []
imjacobclark has joined #ruby-lang
__butch__ has joined #ruby-lang
vpretzel has quit [Ping timeout: 272 seconds]
lfox has joined #ruby-lang
judofyr has joined #ruby-lang
imjacobclark has quit [Ping timeout: 248 seconds]
iliketurtles has joined #ruby-lang
mykoweb has joined #ruby-lang
iliketurtles has quit [Excess Flood]
iliketurtles has joined #ruby-lang
iliketurtles has quit [Remote host closed the connection]
judofyr has quit [Ping timeout: 248 seconds]
jsrn has joined #ruby-lang
machuga|away is now known as machuga
hahuang65 has joined #ruby-lang
tylersmith has joined #ruby-lang
mbj has quit [Quit: leaving]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
lfox has quit [Quit: ZZZzzz…]
dik_dak has joined #ruby-lang
imjacobclark has joined #ruby-lang
mykoweb has quit [Ping timeout: 252 seconds]
d4rkr4i has quit [Ping timeout: 260 seconds]
ebetancourt has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
d4rkr4i has joined #ruby-lang
ebetancourt has joined #ruby-lang
ebetancourt has quit [Max SendQ exceeded]
ahmedelgabri has quit []
d4rkr4i1 has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
kfpratt has quit [Remote host closed the connection]
kfpratt has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
d4rkr4i has quit [Ping timeout: 253 seconds]
robmiller has quit [Quit: robmiller]
huma has joined #ruby-lang
robbyoconnor has joined #ruby-lang
MichD is now known as michd
apeiros has quit [Ping timeout: 272 seconds]
kfpratt has quit [Ping timeout: 260 seconds]
mykoweb has joined #ruby-lang
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
fijimunk1i has joined #ruby-lang
kfpratt has joined #ruby-lang
phansch has joined #ruby-lang
fijimunkii has quit [Ping timeout: 260 seconds]
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
vlad_starkov has joined #ruby-lang
robbyoconnor has quit [Read error: Connection reset by peer]
gabriham_lincoln has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
fijimunk1i has quit [Ping timeout: 260 seconds]
mykoweb has quit [Ping timeout: 272 seconds]
__butch__ has joined #ruby-lang
loincloth has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
vlad_starkov has joined #ruby-lang
bjh13 has quit [Quit: leaving]
RobertBi_ has joined #ruby-lang
apeiros has joined #ruby-lang
robbyoconnor has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 245 seconds]
jsrn has quit [Quit: Leaving]
jsrn has joined #ruby-lang
momomomomo has joined #ruby-lang
julweber has joined #ruby-lang
bjh13 has joined #ruby-lang
crudson has left #ruby-lang [#ruby-lang]
<yorickpeterse>
Lewix: "data" is a pretty abstract term
rtlong has joined #ruby-lang
Squarepy has quit [Quit: Leaving]
julweber has quit [Remote host closed the connection]
jtw has joined #ruby-lang
apeiros has quit [Read error: Connection reset by peer]
francisfish has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
iliketurtles has joined #ruby-lang
iliketurtles has quit [Excess Flood]
iliketurtles has joined #ruby-lang
brooks has joined #ruby-lang
Pupeno_w_ has joined #ruby-lang
RobertBi_ has quit [Ping timeout: 260 seconds]
Pupeno_w has quit [Ping timeout: 245 seconds]
VTLob has quit [Ping timeout: 260 seconds]
RobertBirnie has joined #ruby-lang
VTLob has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
cirenyc has joined #ruby-lang
apeiros has joined #ruby-lang
apeiros has quit [Read error: Connection reset by peer]
vpretzel_ is now known as vpretzel
alekst has quit [Quit: Leaving...]
presidentbeef has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
Uranio has quit [Quit: WeeChat 0.3.2]
<ljarvis>
I hate 'data' variables
<ljarvis>
makes me want to throw things around my house
<wnd>
better not forget "big data" ;-)
<toretore>
big_data = File.read('big_data.csv')
zoo-zed has joined #ruby-lang
<yorickpeterse>
data = mysql.query('...')
<timelord_cout>
alot.eat(bigData) # feed the alot
<yorickpeterse>
I guess that's what we've been doing wrong, we didn't use "big_data" for variables
zoo-zed has quit [Client Quit]
yfeldblum has joined #ruby-lang
zoo-zed has joined #ruby-lang
zoo-zed has quit [Max SendQ exceeded]
<r0bglees0n>
more like mysql.query(Data) amirite
<r0bglees0n>
id love to know what class is used for
elia has joined #ruby-lang
<r0bglees0n>
what that
fingerprint has quit [Quit: fingerprint]
<r0bglees0n>
can't create instances of
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
gix has joined #ruby-lang
gix- has quit [Ping timeout: 252 seconds]
zz_dlu has quit [Ping timeout: 272 seconds]
GaelanAintAround has quit [Read error: Operation timed out]
imjacobclark has quit [Remote host closed the connection]
zz_dlu has joined #ruby-lang
imjacobclark has joined #ruby-lang
Johz has joined #ruby-lang
gabriham_lincoln has quit [Remote host closed the connection]
<yorickpeterse>
That I find...worrying at the least
GaelanAintAround has joined #ruby-lang
imjacobclark has quit [Ping timeout: 248 seconds]
<r0bglees0n>
how did we arrive at removing SSL from the standard library, because the defaults aren't sane?
<yorickpeterse>
not sure what the exact reason is for it
imjacobclark has joined #ruby-lang
<whitequark>
it's hard to maintain crypto in stdlib. language designers can't (or, well, usually aren't) also good cryptographers
<yorickpeterse>
I'm in the camp of "Fixing OpenSSL will take forever, fix the defaults when possible"
<yorickpeterse>
but apparently we have to fix it ourselves
<whitequark>
unfortunately, taking it out from stdlib doesn't change... pretty much anything, since someone still has to maintain it
<r0bglees0n>
whitequark: how does that solve the problem for someone who wants to make a SSL connection to some web server out there
<yorickpeterse>
the aussie actually made a pretty good comment about RubyGems and HTTPs
<yorickpeterse>
* HTTPS
<r0bglees0n>
it'd severely limit ruby if no alternative is offered
apeiros has joined #ruby-lang
<whitequark>
the theory behind this is "let's leave crypto to someone who actually understands it"
heftig has joined #ruby-lang
<whitequark>
and, *if* there was such a person and they'd be interested in maintaining an openssl gem, it would actually make sense
<r0bglees0n>
the aussie?
<yorickpeterse>
That part is right, but then the solution is to find people that understand it
<yorickpeterse>
not to ditch/ignore it
<yorickpeterse>
r0bglees0n: charliesome
<r0bglees0n>
i see
<whitequark>
yorickpeterse: it's not about ditching/ignoring it. you're misinterpreting the intent
<r0bglees0n>
whitequark: the problem is that you couldn't even use net/http anymore
<havenwood>
i wish openssl themselves would adopt sane defaults
<r0bglees0n>
at least not for an SSL connection
vlad_starkov has quit [Ping timeout: 260 seconds]
<whitequark>
r0bglees0n: yes, that's a problem.
<whitequark>
I don't really know how to solve it, as it's not a technical one.
cored has quit [Ping timeout: 272 seconds]
<r0bglees0n>
how do other languages accomodate openssl, out of curiosity?
iliketurtles has quit [Quit: zzzzz…..]
<whitequark>
rust does exactly what I've just described. the stdlib does not include any crypto by design
<whitequark>
java has some shitty crypto built in, but everyone sane just uses bouncycastle--essentially same thing, too
<r0bglees0n>
so how do you use SSL in rust?
<whitequark>
you use an openssl package.
<whitequark>
think "gem".
<r0bglees0n>
ah
<r0bglees0n>
yeah, that'd be great
RobertBirnie has quit [Ping timeout: 252 seconds]
<r0bglees0n>
the problem is the stdlib itself would have unmet dependencies
<r0bglees0n>
e.g: net/http
<whitequark>
rust doesn't have http in stdlib, though
<whitequark>
but ruby cannot just remove net/http from it
<r0bglees0n>
rust is a different kind of language i think
<whitequark>
actually ruby evolves in the same direction (lean stdlib), with the stdlib gemification lately
<r0bglees0n>
yeah, that's very slow though
<whitequark>
for much the same reasons--lots of code rot, hard to maintain for a limited group of people working on the lang
<r0bglees0n>
it would help solve this problem
tuttinator has joined #ruby-lang
<whitequark>
by the way, urabe's ignorance about gems and https is an excellent example of why ruby-core should not maintain openssl
<whitequark>
not trying to make an attack, just stating a fact
<r0bglees0n>
sure, I'd probably agree somewhat. i don't actually see SSL neccessary in bundler/rubygems unless credentials are crossing the wire. i could be misinformed about that though.
RobertBirnie has joined #ruby-lang
<r0bglees0n>
'gem push' seems vital to have SSL
elia has quit [Quit: Computer has gone to sleep.]
<whitequark>
debian downloads packages over https, but then it verifies them with gpg
<whitequark>
I don't see an easy way out, you have to have some crypto in the system
<r0bglees0n>
indeed
<whitequark>
transitioning from openssl to gpg would be hugely intrusive at this point
<r0bglees0n>
it needs to be supported
arBmind has quit [Quit: Leaving.]
saarinen has joined #ruby-lang
dik_dak has quit [Quit: Leaving]
saarinen has quit [Client Quit]
Pupeno_w_ has quit []
prc has joined #ruby-lang
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby-lang
mistym_ has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
vpretzel has quit [Remote host closed the connection]
vpretzel has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
gabriham_lincoln has joined #ruby-lang
ecnalyr has quit [Ping timeout: 240 seconds]
loincloth has quit [Remote host closed the connection]
jperry has joined #ruby-lang
benlovell has joined #ruby-lang
vlad_starkov has joined #ruby-lang
loincloth has joined #ruby-lang
benlovell has quit [Ping timeout: 265 seconds]
elia has joined #ruby-lang
momomomomo has joined #ruby-lang
momomomomo has quit [Client Quit]
iliketurtles has joined #ruby-lang
iliketurtles has quit [Excess Flood]
senj has quit [Quit: Sleep Now]
diegoviola has quit [Quit: WeeChat 0.4.2]
achru has quit [Remote host closed the connection]
achru has joined #ruby-lang
mistym has joined #ruby-lang
EngierkO has quit [Ping timeout: 252 seconds]
achru has quit [Ping timeout: 260 seconds]
toretore has quit [Quit: This computer has gone to sleep]
brettweavnet has quit [Quit: Bye]
<darix>
you could sign with ssl too. dont need gpg for that.
arBmind has joined #ruby-lang
brettweavnet has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
Lewix has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 272 seconds]
vlad_sta_ has quit [Remote host closed the connection]
iliketurtles has joined #ruby-lang
iliketurtles has quit [Excess Flood]
Lewix has joined #ruby-lang
centrx has joined #ruby-lang
simoz4 has joined #ruby-lang
francisfish has joined #ruby-lang
momomomomo has joined #ruby-lang
yalue has quit [Quit: Leaving]
jtw has quit [Ping timeout: 252 seconds]
mykoweb has joined #ruby-lang
elia has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
judofyr has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
tbuehlmann has joined #ruby-lang
jtw has joined #ruby-lang
francisfish has quit [Ping timeout: 252 seconds]
judofyr has quit [Ping timeout: 245 seconds]
simoz4 has quit [Ping timeout: 265 seconds]
<ljarvis>
hello
tylersmith has quit [Read error: Connection reset by peer]
<centrx>
Ahoy
nathanstitt has joined #ruby-lang
tylersmith has joined #ruby-lang
kfpratt has quit [Remote host closed the connection]
kfpratt has joined #ruby-lang
<drbrain>
hi
gabriham_lincoln has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
d4rkr4i1 has quit [Ping timeout: 252 seconds]
kfpratt has quit [Ping timeout: 240 seconds]
mykoweb has joined #ruby-lang
x0f_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 260 seconds]
simoz4 has joined #ruby-lang
mykoweb has quit [Ping timeout: 272 seconds]
bin7me has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
simoz5 has joined #ruby-lang
coca_rails has joined #ruby-lang
Nuru has joined #ruby-lang
jtw has quit []
simoz4 has quit [Ping timeout: 252 seconds]
nathanst_ has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
jtw has joined #ruby-lang
nathanstitt has quit [Read error: Connection reset by peer]
lcdhoffman has joined #ruby-lang
gabriham_lincoln has joined #ruby-lang
jtw has quit [Client Quit]
jerrytgarcia has quit [Ping timeout: 272 seconds]
jtw has joined #ruby-lang
mistym has joined #ruby-lang
mistym_ has joined #ruby-lang
mistym has quit [Ping timeout: 252 seconds]
coca_rails has quit [Remote host closed the connection]
coca_rails has joined #ruby-lang
judofyr has joined #ruby-lang
VTLob has quit [Quit: VTLob]
kurko_ has quit [Quit: Computer has gone to sleep.]
coca_rails has quit [Ping timeout: 240 seconds]
judofyr has quit [Ping timeout: 252 seconds]
Squarepy has joined #ruby-lang
judofyr has joined #ruby-lang
simi has joined #ruby-lang
kurko_ has joined #ruby-lang
workmad3 has joined #ruby-lang
deception has quit [Quit: Goodbye]
arBmind has quit [Quit: Leaving.]
mistym_ is now known as mistym
judofyr has quit [Ping timeout: 272 seconds]
RoxasShadowRS has quit [Quit: Leaving]
mehlah has joined #ruby-lang
rljohnsn has quit [Quit: Leaving.]
rljohnsn has joined #ruby-lang
brettweavnet has quit [Quit: Bye]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
brettweavnet has joined #ruby-lang
atmosx has quit [Quit: Lost in trance]
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
amcoder has quit [Quit: ZZZzzz…]
momomomomo has quit [Quit: momomomomo]
cirenyc has quit [Ping timeout: 264 seconds]
cirenyc has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
cirenyc has quit [Read error: Connection reset by peer]
francisfish has quit [Ping timeout: 265 seconds]
woollyams has joined #ruby-lang
AKASkip has quit [Ping timeout: 248 seconds]
panpainter has joined #ruby-lang
brooks has quit [Quit: brooks]
mehlah has quit [Quit: Leaving...]
kfpratt has joined #ruby-lang
miqui has quit [Remote host closed the connection]
amcoder has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
apeiros has quit [Read error: Connection reset by peer]