<godd2>
especially where he converts a maze to a tree
_djbkd has quit [Remote host closed the connection]
<shevy>
a maze to a tree?
<shadoi>
yeah that's pretty amazing
RegulationD has quit [Remote host closed the connection]
<godd2>
shevy it's at the very bottom
_djbkd has joined #ruby
juanpablo_ has quit [Ping timeout: 250 seconds]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
doodlehaus has joined #ruby
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
_djbkd has quit [Remote host closed the connection]
mroach has joined #ruby
wallerdev has quit [Quit: wallerdev]
doodlehaus has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 252 seconds]
MatthewsFace has quit [Remote host closed the connection]
rhg135 has joined #ruby
citizen1984 has joined #ruby
<citizen1984>
what's up peeps
<godd2>
yo
jonr22 has joined #ruby
<citizen1984>
anyone in here playing around with node.js
<citizen1984>
seems like everyone I know is switching over
<bradland>
burn the witch!
<citizen1984>
I'm not a big JS fan
<citizen1984>
ugly
<citizen1984>
that C syntax....
n80 has joined #ruby
<bradland>
i won't use languages without string interpolation
<bradland>
too + much + plus + action
<citizen1984>
haha
<citizen1984>
good call
<bradland>
(not srs, btw)
kromm has joined #ruby
<bradland>
:)
enebo has quit [Quit: enebo]
<citizen1984>
I admit is runs faster but the code, ugh, that code
<godd2>
Don't listen to his lies
<bradland>
oh man
* apeiros_
wonders whether people can talk about languages without dogma and hyperbole…
<bradland>
the "faster" argument is a regular trope around here
whateverman has joined #ruby
xymbol has quit [Quit: Be back later ...]
<citizen1984>
I love ruby, that's really the only knock against it is the speed when it scales. And maybe the lack of some data analytics packages.
<bradland>
not sure if srs
triple_b has joined #ruby
xymbol has joined #ruby
<apeiros_>
scale != speed
<apeiros_>
common mistake
<citizen1984>
scale and speed are related. you can see that easy enough by running clock test as you "scale" up a site
<bradland>
citizen1984: you should look in to some of James Golick's talks, god rest his soul
<apeiros_>
citizen1984: not really.
<citizen1984>
James was young, no?
jonr22 has quit [Ping timeout: 265 seconds]
<citizen1984>
what did he die of again
<shevy>
javascript
<bradland>
yeah. he died in an auto accident.
RegulationD has joined #ruby
<apeiros_>
algorithm A takes 0.01s for a dataset of 10, 0.1s for a dataset of 100. algorithm B takes 1h for 10, 2h for 100. which one scales better?
<citizen1984>
shevy: of javascrip...that's funny
<apeiros_>
citizen1984: ^
nii236 has joined #ruby
<citizen1984>
apeiros: I get your point. But even Ruby fanatics will admit that its not fast, particularly, on the rails platform for commerical sites. But hey, whatever works. I love ruby
<bradland>
i won't admit that
nii236 has quit [Client Quit]
<apeiros_>
citizen1984: using words like "fanatics" moves you into the troll lane pretty quickly.
<apeiros_>
citizen1984: also, "not fast" is not the same as "does not scale". you're making the same error again.
<bradland>
citizen1984: the number of people who can have a well formed discussion about the speed of ruby is pretty small relative to the size of the respective developer communities
<bradland>
the problem is that "fast" and "slow" are very generalized terms, and programming is anything but generalized
<shevy>
haha
<shevy>
is this speed comparison now
<shevy>
we had size comparison before
<bradland>
i prefer size comparisons
<bradland>
i always win
<bradland>
ta dum tss
Deele has quit [Ping timeout: 256 seconds]
<shevy>
citizen1984 hey is perl much much faster than ruby
<apeiros_>
bradland: smallest is best? ;-p
<bradland>
i can feel all of you rolling your eyes from here!
RegulationD has quit [Ping timeout: 264 seconds]
<godd2>
hmm, should I do a merge sort in Ruby or a bubble sort in C ?
<citizen1984>
I never was a perl guy. don't know
<shevy>
do a bubble merge in javascript godd2
<apeiros_>
godd2: randsort in haskell
<shevy>
hahaha
<shevy>
monadsort!
<godd2>
or a bogosort in malbolge
<citizen1984>
The only lanugage I'm not fond of is lisps bc every f'ing lisp programming only talks about how great lisp is. Its the crossfit of the programming world
<citizen1984>
programmer'
charliesome has joined #ruby
<shevy>
godd2 I am trying to dust up my old cfdg script... in some minutes, I should have a gallery, then I will make a screenshot snapshot and upload that
<shevy>
*cfdg scripts
<apeiros_>
yeah, how can you argue with somebody who's right. there's no joy in that. :)
<shevy>
(lisp(is(cool(man
<shevy>
citizen1984 there even is an ultima clone in scheme
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Remote host closed the connection]
claw has quit [Ping timeout: 250 seconds]
justin_pdx has quit [Quit: justin_pdx]
stef204 has joined #ruby
nii236 has quit [Quit: WeeChat 1.1.1]
JDiPierro has joined #ruby
nii236 has joined #ruby
zachrab has quit [Ping timeout: 255 seconds]
<nii236>
ping
atomiccc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nii236 has quit [Client Quit]
davedev2_ has quit [Ping timeout: 265 seconds]
JDiPierro has quit [Remote host closed the connection]
kalusn has joined #ruby
nii236 has joined #ruby
fgo has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
davedev24_ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
greenbagels has quit [Ping timeout: 256 seconds]
Megtastique has quit []
Guest123 has joined #ruby
ragingcake_ has quit [Quit: ragingcake_]
spider-mario has quit [Remote host closed the connection]
crazydiamond has quit [Ping timeout: 246 seconds]
marr has quit []
Travis-42 has joined #ruby
triple_b has joined #ruby
<Travis-42>
If I already have a json string, and I want to combine it with a hash and get the final json result — e.g. { results: json_string}.to_json — can I do this and let the json_string become a part of the final json object (i.e. not escaped)?
<wallerdev>
`yeah just use json.parse
<Travis-42>
I was kind of curious if it would be possible without converting the json string to a json object and then back again, even though it’s pretty quick
x1337807x has joined #ruby
<whateverman>
hm
iwaffles has quit [Quit: iwaffles]
<whateverman>
I'm supposed to start coding rubby soon
<wallerdev>
you could do results: "SOME_TOKEN_YOU_REPLACE"
<wallerdev>
then just do a gsub
<jhass>
Travis-42: yes, it's called string interpolation: "{results #{json_string}"
<jhass>
+ }
<wallerdev>
or yeah if the json is that simple no need to use to_json in teh first place
davedev24_ has quit [Read error: Connection reset by peer]
<wallerdev>
like jhass said
davedev24_ has joined #ruby
<jhass>
whateverman: why not right now!
<apeiros_>
people keep saying "json object". there is no such thing.
<whateverman>
it's customary to give 2 weeks before you're gone at a job
<Travis-42>
Hmm, I guess that makes sense. There’s be no way to convert the hash with the json_string as one of its value and tell ruby to leave the json_string alone?
baweaver has quit [Remote host closed the connection]
<whateverman>
so, 1 more week, and I'll be rubbying it up
<wallerdev>
rubbying
<Travis-42>
you’re right apeiros, I should have said json_string in my first sentence, and hash in my second instead, sorry
<apeiros_>
Travis-42: don't worry, you're not alone.
razieliyo_ has joined #ruby
<apeiros_>
reminds me of the fun fact that json spec defines notation for values which javascript can't represent (arbitrarily large integers)
<apeiros_>
also, newer specs of json dropped the "top level must be object or array" part. ruby doesn't support that yet :-/
iliketurtles has quit [Quit: zzzzz…..]
<wallerdev>
they did?
razieliyo has quit [Ping timeout: 272 seconds]
<wallerdev>
i had an interview question a couple years ago about that
sprink has joined #ruby
<wallerdev>
what are the two types of valid json resposnes or something to that tune
daynaskully has quit [Ping timeout: 240 seconds]
<apeiros_>
yes. I was surprised. somebody claimed ruby's json parser was bad. somebody else beat me to saying that valid json requires array/object root. the other person linked newest spec, showing that it got dropped.
kblake has quit [Remote host closed the connection]
SOLDIERz__ has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
<wallerdev>
now we just gotta wait for everyone to update their code :p
<apeiros_>
indeed
<apeiros_>
I wish json added better binary data support
anaeem1 has quit [Read error: Connection reset by peer]
<basiclaser>
hi guys, I wish to program an OSX application which allows the user to make keyboard shortcuts. I am thinking of picking up ruby or python to do it. Could you point out any libraries or frameworks or even languages that would be convenient for this project?
jottr_ has quit [Ping timeout: 245 seconds]
elfuego has quit [Quit: elfuego]
_5kg has joined #ruby
scripore has joined #ruby
nfk has joined #ruby
sankaber has joined #ruby
maximski has joined #ruby
<wasamasa>
shortcuts for what?
bMalum has quit [Quit: bMalum]
riotjones has quit [Ping timeout: 240 seconds]
<basiclaser>
wasamasa: hey. More or less copy and paste, but customisable. I would need to listen for user keyboard input on any window regardless of focus
<wasamasa>
basiclaser: I'm afraid ruby is the wrong tool for that
<phale>
ncurses
<phale>
for key press detection
<wasamasa>
lol
<phale>
there's a binding for it i think
<wasamasa>
that's something totally different
anaeem1 has joined #ruby
<phale>
he wanted to make an OSX application that makes the user be able to create keyboard shortcuts
<basiclaser>
hrmm
<phale>
curses can do that with basic key detection
jottr_ has joined #ruby
<wasamasa>
no, if I understand this correctly, basiclaser wants to write an application that runs in the background and detects keypresses for the currently selected window
<phale>
unless he wants a GUI
<phale>
yes then he wants a GUI
<wasamasa>
and either does something with these or not
<basiclaser>
system wide keyboard listening, maybe its a part of some OSX developer kit
fgo has joined #ruby
<wasamasa>
it has nothing to do with UI toolkits ffs
<wasamasa>
it is something exposed in some objective-C API
<wasamasa>
hence my earlier comment
<wasamasa>
I also bet someone wrote such a thing
<basiclaser>
is this sort of realm pretty locked-down on the OS level? I mean i see a lot of apps have the ability to set their own shortcuts, thats a native thing i believe. I guess its the same thing, I would just want to listen for multiple shortcuts...
<basiclaser>
and then also grab whatever was highlighted
<wasamasa>
it is not quite on the OS level
<wasamasa>
but you need to intercept as low as it goes
<wasamasa>
before the window manager ideally
<wasamasa>
some window managers have this feature
<phale>
wasamasa: if he wants to run it in the background
<basiclaser>
do we have that level of access?
<phale>
he can just detach the process
<wasamasa>
basiclaser: well, I assume there is, but I don't expect it to be easy to do
<wasamasa>
basiclaser: looks like someone was quicker
iMadper has joined #ruby
<wasamasa>
basiclaser: and did it with an exposed ruby DSL
michael_mbp has quit [Excess Flood]
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
<shevy>
\o/
mikhael_k33hl has quit [Quit: Page closed]
dtordable has joined #ruby
dtordable has quit [Changing host]
dtordable has joined #ruby
dtordable has left #ruby [#ruby]
<phale>
i'm going to reimplement ruby in ruby
<wasamasa>
lol
monod has joined #ruby
<wasamasa>
phale: apparently you haven't heard of rubinius
<phale>
dude
<phale>
i don't need that crap where people tell you that you're "reinventing the wheel"
<phale>
i don't care
<phale>
it's what I want to do
<phale>
just saying
<wasamasa>
it's a good idea to look at these attempts
<wasamasa>
especially if they're able of running rails
<basiclaser>
wasamasa: thanks! Always nice to know I dont have to necessarily sink time into a project to have a certain functionality at the end of the day. I already have enough projects :P
<phale>
why would I want my ruby ruby interpreter to run rails?
Soda has quit [Remote host closed the connection]
<shevy>
so you can build perfect apps
<phale>
xD
mostlybadfly has joined #ruby
<shevy>
when I started with ruby, rails did not exist :(
<phale>
and you weren't happy?
<grrrr_>
ruby on ruby on rails
<phale>
:(
<shevy>
phale well, I loved ruby 1.8.x
dtordable has joined #ruby
<shevy>
I still think ruby is great but I don't really love the 1.9.x
<agent_snooze>
apeiros: I would say the opposite. It depends on how experienced you are with LSD. I find when I've taken it to explore the "dark side" of my mind (possibly irritants/bad thoughts of mine), as it becomes extremely subjective.
<agent_snooze>
Then I can think clearly through many things.
<apeiros>
agent_snooze: opposite of what my friend says?
<agent_snooze>
apeiros: Correct.
<agent_snooze>
apeiros: But, that depends on your experience with LSD.
<apeiros>
so I guess bottom line is, experiences differ. either due to differences in the drug or the person.
<apeiros>
or both
<agent_snooze>
If you've never used it? I agree with him... wait until in a good mood.
<jhass>
probably both most of the time
<agent_snooze>
Entirely.
<apeiros>
sadly I've no own experiences with lsd
<agent_snooze>
If you've never taken it before, find a good friend with experience :) People think LSD is about "seeing crazy things"... but far enough into it, you don't notice things you see. It's what you think about.
yfeldblu_ has quit [Ping timeout: 265 seconds]
Pupeno has quit [Remote host closed the connection]
ndrei has quit [Remote host closed the connection]
jerematic has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
chinmay_dd has quit [Quit: Leaving]
Spami has quit [Quit: This computer has gone to sleep]
blackmesa has joined #ruby
Pupeno has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 244 seconds]
mroach has joined #ruby
ghostpl_ has joined #ruby
hmsimha has joined #ruby
<bradland>
This can't be true, can it?
<bradland>
The Wikipedias say that SCP, "Like RCP, there is no RFC that defines the specifics of the protocol."
<bradland>
Wait, I'm barking up the wrong tree anyway, sry.
<bradland>
Decided to have a second look at this old Net::SFTP issue from 2013.
lolmaus has joined #ruby
lys1 has joined #ruby
AndyBotwin has joined #ruby
User458764 has joined #ruby
ghostpl_ has quit [Ping timeout: 256 seconds]
serivichi has joined #ruby
serivich has quit [Ping timeout: 272 seconds]
skmp has quit [Quit: Connection closed for inactivity]
sinkensabe has joined #ruby
lys has quit [Ping timeout: 252 seconds]
doodlehaus has quit [Remote host closed the connection]
<apeiros>
nickjj: thanks for the link!
kaleido has joined #ruby
kaleido has quit [Changing host]
kaleido has joined #ruby
<apeiros>
I think 12" is not wide enough :-/
kaleido has quit [Max SendQ exceeded]
<apeiros>
my current pad is about that size and it's for the mouse only. the problem is that I have a hard time putting it to the side of my keyboard.
alvadorn has joined #ruby
<nickjj>
buy 2 of them
kaleido has joined #ruby
kaleido has quit [Changing host]
kaleido has joined #ruby
<bradland>
bleh
xcombelle has quit [Ping timeout: 250 seconds]
alvadorn has quit [Client Quit]
<bradland>
ever slept on a king bed that was really two twin beds
<apeiros>
I'm a pedant. the crack would drive me nuts.
<bradland>
the whole mariana trench thing in the middle sucks
<apeiros>
and yeah, that king bed analogy is spot on :)
<nickjj>
hah, the thing is like 5 millimeters tall
<bradland>
what kind of material are you looking for apeiros?
<nickjj>
goto home depot and buy some material, then cut it to the size of your desk
<nickjj>
that will be the cheapest option and give you the most flexibility
serivichi has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Ping timeout: 246 seconds]
<apeiros>
bradland: anything which works with an optical mouse. which is tricky, my last pad which was optimized for optical mice had issues with the new darkfield mouse I bought
<apeiros>
actually, I'll revise that statement
<apeiros>
my current pad is low friction. and I really love that. I hate it everyday I go to work and don't have it.
<bradland>
i love my regular old neoprene mouse pads, but A) they get filthy, and B) they're normal size, which interferes with the keyboard and drives me nuts.
Rephiax has quit [Read error: Connection reset by peer]
<nickjj>
the rate limit for "user auth" is 180 but only 15 with "app auth", i'm just trying to get arbitrary relationships between 2 users using the #friendships end point, having to wait 15min to get 15 seems so crippled tho
davidhq has joined #ruby
<shevy>
now we know why off topic is more interesting
<shevy>
:)
grrrr__ has joined #ruby
davidhq has quit [Client Quit]
FooMunki_ has quit [Quit: FooMunki_]
<bradland>
twitter is the worst (with regard to their API access)
<bradland>
it's like they're afraid someone will do something interesting with it
RegulationD has quit [Ping timeout: 244 seconds]
davidhq has joined #ruby
User458764 has joined #ruby
<bradland>
unfortunately, i don't have a direct answer for you, nick, but i'm digging around in lib/twitter/rest/client to see how a session is built
<phale>
yesterday when i went off topic no one was asking questions
<bradland>
the attributes you set through that config block probably determine the auth type
<phale>
i was still yelled at lol
<nickjj>
bradland, i looked too. i have it working with the "app auth" way, but i was hoping to be able to use the "user auth" way somehow
<bradland>
phale: IRC brah. everybody thinks they're a cop.
<bradland>
nickjj: someone has done a "great" job of refactoring this code in to about 100 classes, so it's going to take some digging
<bradland>
i'll keep looking though
<bradland>
might have to clone it to get it open in an editor
<phale>
Fashion Week is an instrumental soundtrack by experimental hip hop group Death Grips. It was self-released on January 4, 2015 via Third Worlds, without any prior announcement.[2] It is the band's first release since their disbandment in 2014, and also the first release to date not featuring vocals from frontman, MC Ride.
bruno- has quit [Ping timeout: 256 seconds]
FooMunki has joined #ruby
<bradland>
phale: see, the difference is that the other OT here is genuine conversation. it seems you're just floating random scraps of the internet with the intent to annoy people.
<bradland>
one is friendly, the other is not
<bradland>
please be friendly :)
<phale>
there is no friendly nor unfriendly off-topic
<phale>
if there was i would have been banned years ago
claw has quit [Ping timeout: 252 seconds]
<jhass>
yeah, I usually apply "conversation" as a rule for valid OT
<bradland>
i'm not telling. i'm asking :)
aryaching has joined #ruby
Zai00 has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
<nickjj>
bradland, thanks. i'll read this
drager has joined #ruby
<phale>
Later in 2014, a lossless version of Government Plates was uploaded to What.CD by Zach Hill.
nii236 has quit [Ping timeout: 256 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam>
I'm chasing what appears to be a bug in IO finalizers
Zai00 has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland>
eam: orly? this sounds interesting.
Soda has joined #ruby
<bradland>
although, it sounds like it's going to end in C code, in which case i'll be useless.
zorak8 has joined #ruby
claw has joined #ruby
<phale>
1. "You Might Think He Loves You For Your Money But I Know What He Really Loves You For It’s Your Brand New Leopard Skin Pillbox Hat" 2:41
<eam>
I can't entirely blame it on ruby yet, but what looks like a vanilla File finalizer is calling close on a descriptor after it's been closed outside the finalizer and re-used in a new File object
<eam>
no threads involved
agrinb has quit [Ping timeout: 265 seconds]
thumpba has joined #ruby
<bradland>
what ruby version?
RandyT has joined #ruby
<eam>
ruby-2.2.0
<eam>
haven't tried others yet
<eam>
it only occurs about 5 minutes into an rspec run in fairly random places (but surrounding the same block of code opening and closing files)
jcromartie has joined #ruby
<phale>
this is weird, i have installed rvm and 2.2.0
<phale>
but when i resetted my terminal my ruby version is back to 1.9.3
<eam>
I assume because it takes a while for gc churn to trigger
<bradland>
bleh. sounds like a fun time trying to extract a repro snippet.
<jhass>
phale: rvm default 2.2
<eam>
yeah I don't have one yet, but I can run this 5 minute rspec job and repro 75% of the time
<phale>
You need to change your terminal emulator preferences to allow login shell.
<phale>
Sometimes it is required to use `/bin/bash --login` as the command.
doodlehaus has joined #ruby
Rennex_ is now known as Rennex
<phale>
this works thx
<phale>
is it normal for my interpreter to show this:
<phale>
2.2.0 :001 >
<bradland>
invoked from irb, or just ruby
<jhass>
it's normal for irb, yes
<phale>
okay then
starless has quit [Quit: Leaving]
<jhass>
irb stands for interactive ruby btw
<phale>
I know, Thanks Though
<jhass>
so say irb or repl, interpreter is confusing
<phale>
okay
Zai00_ has joined #ruby
Zai00 has quit [Ping timeout: 256 seconds]
Zai00_ is now known as Zai00
jobewan has joined #ruby
<bradland>
back in 1.9 (I think, anyway), we had G::each_object. anyone know what the current method of introspection for GC objects is?
<bradland>
found it: ObjectSpace
User458764 has joined #ruby
zorak8 has quit [Quit: Leaving]
red_horned_rihno has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
vadviktor has joined #ruby
<bradland>
eam: you probably know this, but you could log the output of ObjectSpace.each_object(IO).to_a as your tests run to see what IO is being left open, and when it's closing FDs
<bradland>
mix that in with some progress logging, and you can probably pinpoint it
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kalusn has quit [Remote host closed the connection]
<phale>
hi can i code a better ruby bot and bring it here
<jhass>
bradland: or just substract that array from the unfiltered result
<centrx>
yeah that's what they all say
<phale>
centrx: I promise
<apeiros>
phale: you can try. but a bot is generally only welcome if it's not disturbing the channel.
Axy has quit [Read error: Connection reset by peer]
kalusn has joined #ruby
<phale>
nah, just interprets like that one we have
<phale>
with fixed encoding issues
Axy has joined #ruby
<bradland>
jhass: that's much cleaner
hoelzro has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<jhass>
phale: but it into ##cebot first and we'll try if you really want to put it into this channel, k?
claptor has joined #ruby
commmmodo has quit [Quit: commmmodo]
<phale>
sure
<eam>
bradland: yeah, I know which objects are involved
<eam>
what I don't know is why the finalizer is triggering after it's already been closed
<eam>
pretty close to instrumenting a ruby
claw has quit [Ping timeout: 256 seconds]
jlast has quit [Ping timeout: 265 seconds]
Soda has quit [Remote host closed the connection]
<jhass>
eam: maybe it just lives on? I wonder if one can reassign the fd
<eam>
jhass: it's pretty easy to repro using #fileno and #for_fd
<eam>
but that's a fake way to hit the bug
kalusn has quit [Ping timeout: 265 seconds]
<eam>
the hard part is hitting the finalizer race
<jhass>
yeah, I mean to work around it, change the fd to -1 or something after closing
rbennacer has joined #ruby
<eam>
yeah
<eam>
what's super weird is my simplified test cases don't encounter it
<eam>
wondering if it's related to oddness around nested ensures
Rollabunna has joined #ruby
<jhass>
I'm not sure about the semantics for reusing fds, but I could imagine forcing a low overall limit in a VM or container could trigger the race
adriancb has quit [Ping timeout: 245 seconds]
<jhass>
maybe even a low process limit set by ulimit
ZJvandeWeg has quit [Quit: WeeChat 1.1.1]
Yzguy has quit [Quit: I'm sleeping, go away.]
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
chuck has quit [Ping timeout: 264 seconds]
adriancb has joined #ruby
The_Phoenix has joined #ruby
Takle has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
mitchellhenke has joined #ruby
jottr_ has joined #ruby
mitchellhenke has quit [Client Quit]
razieliyo_ has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
prasselpikachu has quit [Ping timeout: 246 seconds]
doodlehaus has quit [Remote host closed the connection]
LJT has joined #ruby
prasselpikachu has joined #ruby
n80 has joined #ruby
dtordable has quit [Quit: • IRcap • 8.72 •]
agrinb has joined #ruby
Jackneill has quit [Quit: Leaving]
rbennacer has quit [Remote host closed the connection]
jottr_ has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
jottr_ has joined #ruby
nii236 has joined #ruby
bMalum has quit [Remote host closed the connection]
adriancb has quit [Read error: Connection reset by peer]
commmmodo has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
adriancb has joined #ruby
elfuego has joined #ruby
serivichi has quit [Ping timeout: 252 seconds]
nii236 has quit [Ping timeout: 245 seconds]
DerisiveLogic has joined #ruby
otisZart has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
boshhead has joined #ruby
hsps_ has joined #ruby
jlast has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
basiclaser has quit [Quit: Connection closed for inactivity]
kobain has joined #ruby
otisZart has joined #ruby
kobain has quit [Max SendQ exceeded]
DerisiveLogic has quit [Ping timeout: 264 seconds]
coderhs has quit [Ping timeout: 244 seconds]
diego1 has joined #ruby
patrick99e99 has quit [Disconnected by services]
diego1 has quit [Changing host]
diego1 has joined #ruby
lkba has joined #ruby
senayar has quit []
diegoviola has quit [Ping timeout: 255 seconds]
ragingcake has quit [Quit: ragingcake]
dtordable has joined #ruby
soulcake has quit [Quit: Quack.]
jonr22 has quit [Remote host closed the connection]
pontiki has joined #ruby
Hirzu has quit [Remote host closed the connection]
diego1 is now known as diegoviola
jonr22 has joined #ruby
phale has quit [Quit: leaving]
Megtastique has joined #ruby
pontiki has quit [Ping timeout: 246 seconds]
n80 has quit [Quit: n80]
speaking1ode has quit [Ping timeout: 240 seconds]
paradoja has joined #ruby
pen has quit [Remote host closed the connection]
yeticry has quit [Read error: Connection reset by peer]
keen__________81 has joined #ruby
speaking1ode has joined #ruby
keen__________80 has quit [Ping timeout: 244 seconds]
penne12 has joined #ruby
<penne12>
hello
Zai00 has quit [Ping timeout: 264 seconds]
penne12 has left #ruby [#ruby]
<jhass>
hi
jlast has quit [Ping timeout: 245 seconds]
ghostpl_ has quit [Remote host closed the connection]
yeticry has joined #ruby
zacts has quit [Remote host closed the connection]
RegulationD has joined #ruby
sinkensabe has joined #ruby
<elfuego>
is it possible for a developer using sublime text to get to the same level of productivity as a developer using rubymine?
<bradland>
that's not an actual question, because no two developers are equal
<shevy>
sure elfuego
<eam>
neither can compete with emacs though
<bradland>
obvs
<shevy>
I use a lot of ruby-helpers from the commandline
<sonOfRa>
emacs??!?!?!? VIM IS BETTER!!!11!!
Spami has joined #ruby
n80 has joined #ruby
<sonOfRa>
sorry, I just had to :D
<bradland>
if you need me, i'll be in my bunk
<jhass>
elfuego: nice troll *bows*
rbennacer has quit [Remote host closed the connection]
<eam>
everyone pick a side and line up please
<shevy>
like end? or encoding? or basedir? or benchmarks? all showing me ruby skeletons for these
speaking1ode has quit [Ping timeout: 264 seconds]
rbennacer has joined #ruby
n80 has quit [Client Quit]
amclain has joined #ruby
monod has quit [Ping timeout: 245 seconds]
IrishGringo has quit [Ping timeout: 256 seconds]
rbennacer has quit [Remote host closed the connection]
<shevy>
would be great if things like kde konsole could be used as-is an editor too
piotrj has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
<shevy>
and a browser!
<shevy>
everything!!!
<bradland>
see what you've done elfuego?
joast has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
Rollabunna has joined #ruby
sinkensabe has quit [Ping timeout: 252 seconds]
AndyBotwin has quit [Quit: Leaving]
aryaching_ has joined #ruby
<shevy>
everything is an object
DerisiveLogic has joined #ruby
rbennacer has joined #ruby
jlast has joined #ruby
soulcake has joined #ruby
<elfuego>
bradland: lol I didn’t expect this reaction sorry :), I’m new to ruby and i’m currently using it on a project, and I wanted to know if I should invest in rubymine lol
prasselpikachu has quit [Ping timeout: 256 seconds]
commmmodo has quit [Quit: commmmodo]
prasselpikachu has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
davedev24_ has quit [Ping timeout: 264 seconds]
<bradland>
srs answer is, everybody is different. you should use what works for you, and anyone who tries to convince you that there is "one true way" is probably someone you should take with a grain of salt.
<wasamasa>
some people are more different than others
<bradland>
like shevy
<wasamasa>
and me!
<shevy>
think differently
<jhass>
elfuego: editor/dev environment is largely personal choice, try few, make your pick, stay curios about the others once in a while
<bradland>
you are a unique and beautiful snowflake, wasamasa
<shevy>
elfuego use a simple editor, the rest comes very naturally with more practice
rbennacer has quit [Ping timeout: 250 seconds]
<wasamasa>
emacs and vim have the interesting quality though that they are the final editor for a good amount of people
<bradland>
elfuego: i do really like the graphical debugger in RubyMine, fwiw
<shevy>
damn bradland!
<bradland>
as a matter of fact, i won't shut up about it it
<shevy>
look what you are doing!
<bradland>
lol
<elfuego>
bradland: yes I love the debugger in rubymine as well
<bradland>
but as a beginner, i would advise you to start with simple tools
dfinninger has joined #ruby
<shevy>
actually you could have encouraged elfuego much earlier ;)
RegulationD has joined #ruby
<bradland>
because rubymine is really great, but it requires you to learn what's going on under the hood
<shevy>
omg
<shevy>
both are now cheering about rubymine...
<bradland>
personally, i use sublime text with vintage mode
<bradland>
because i'm a half-ass vim person
<shevy>
do I understand this right
<shevy>
(a) you think rubymine is great
<bradland>
probably not :P
<shevy>
(b) you use sublime
davedev24_ has joined #ruby
<bradland>
yep
<shevy>
(c) but you are a vimster
<shevy>
and you call me strange!
<bradland>
i'll frequently use vim at the command prompt, because it is at hand
<shevy>
I use bluefish :-)
<shevy>
yeah
Stalkr_ has quit [Read error: Connection reset by peer]
<shevy>
well I sort of use nano a lot too... but I miss the keybindings of vim
<shevy>
I kind of want a mini-vim
<wasamasa>
lol, I remember bluefish from a knoppix live-dvd
<shevy>
like a mix in between vim and nano
<wasamasa>
shevy: vi
<bradland>
i like to think of myself like neo in the lobby scene where he's carrying like 8 different guns
Stalkr_ has joined #ruby
<bradland>
i really only use RubyMine for hardcore debugging
<bradland>
and occassional development
<shevy>
wasamasa ironically enough bluefish 1.x is still better than bluefish 2.x; also than gedit... geany might become better one day but the guy who started the project is contributing only sporadically :(
pandaant has quit [Remote host closed the connection]
maximski has joined #ruby
codecop has quit [Remote host closed the connection]
nii236 has quit [Ping timeout: 256 seconds]
paradoja has joined #ruby
doodlehaus has joined #ruby
TheKruex has quit []
pandaant has joined #ruby
n80 has joined #ruby
doodlehaus has quit [Ping timeout: 244 seconds]
n80 has quit [Client Quit]
Channel6 has quit [Quit: Leaving]
thumpba has joined #ruby
kromm has joined #ruby
kromm has quit [Client Quit]
<shevy>
phale it's not down, it just takes a while to process. didn't I tell you to grab a beer and do something else rather than try to find out when it is finished :P
piotrj has quit [Remote host closed the connection]
commmmodo has joined #ruby
doodlehaus has joined #ruby
akkad has joined #ruby
doodlehaus has quit [Remote host closed the connection]
User458764 has joined #ruby
otisZart has joined #ruby
ismaelga has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
Ikri has joined #ruby
AnonymousCelt has joined #ruby
asdpew has left #ruby ["Leaving"]
<AnonymousCelt>
I am currently deciding between PHP and Ruby to learn for Server side web development. I have heard a lot of preaching of PHP but I haven't had any input from Ruby users, could you tell me what you all consider the benefits of Ruby so that I can make an objective decision?
enebo has quit [Quit: enebo]
ismaelga has joined #ruby
<toretore>
it doesn't matter what you choose, just pick the one you want the most
bruno- has joined #ruby
exile-bot-2 has joined #ruby
m8 has quit [Ping timeout: 246 seconds]
exile-bot-2 has quit [Remote host closed the connection]
razieliyo has quit [Remote host closed the connection]
red_horned_rihno has joined #ruby
AnonymousCelt has quit [Quit: Leaving]
ismaelga has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Yzguy has joined #ruby
doodlehaus has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
morenoh149 has quit [Ping timeout: 252 seconds]
pontiki has joined #ruby
exile-bot-2 has joined #ruby
jcdesimp has joined #ruby
dfinninger has joined #ruby
iwaffles has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
jmdade has joined #ruby
Rephiax has joined #ruby
fantazo has quit [Quit: Verlassend]
plashchynski has joined #ruby
dfinninger has quit [Ping timeout: 264 seconds]
piotrj has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
red_horned_rihno has quit [Ping timeout: 245 seconds]
pontiki has quit [Quit: WeeChat 1.1.1]
exile-bot-2 has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
adriancb has quit [Remote host closed the connection]
morenoh149 has joined #ruby
pontiki has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
naftilos76 has joined #ruby
iamjarvo has joined #ruby
Asher has quit [Quit: Leaving.]
exile-bot-2 has quit [Remote host closed the connection]
aaa1231-2 has joined #ruby
zachrab has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
Notte has quit []
jerematic has quit [Remote host closed the connection]
aaa1231-2 has quit [Remote host closed the connection]
bogeyd6 has joined #ruby
Hirzu has joined #ruby
aaa1231-2 has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thumpba has joined #ruby
nahtnam has joined #ruby
RegulationD has joined #ruby
zachrab has quit [Ping timeout: 264 seconds]
red_horned_rihno has joined #ruby
Hirzu has quit [Ping timeout: 252 seconds]
thumpba has quit [Ping timeout: 256 seconds]
RegulationD has quit [Remote host closed the connection]
Affix has joined #ruby
RegulationD has joined #ruby
sinkensabe has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
kaiZen has joined #ruby
lemur has quit [Remote host closed the connection]
tvon has joined #ruby
ragingcake_ has quit [Quit: ragingcake_]
hollywood has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Ping timeout: 252 seconds]
attamusc has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
pandaant has quit [Remote host closed the connection]
monod has joined #ruby
jmdade has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
doodlehaus has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
mkaesz has quit [Remote host closed the connection]
mkaesz has joined #ruby
Asher has joined #ruby
jmdade has joined #ruby
Beoran_ has quit [Ping timeout: 244 seconds]
mkaesz has quit [Ping timeout: 245 seconds]
ragingcake has joined #ruby
<naftilos76>
Hi, i am writing text in a file with File.open(filename, mode) do |file| ... file.write text ... end . If there is at least a new line at the end of the text var, file.write removes one new line. Is that to be expected?
morenoh149 has quit [Ping timeout: 264 seconds]
<pontiki>
no...
<naftilos76>
"1\n2\n" is written as "1\n2", "1\n2" is written as is (no changes)
<pontiki>
file.write just writes whatever is there, should not be changed..
Takle has quit [Remote host closed the connection]
<pontiki>
hmm
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<naftilos76>
let me try a few more things
teddyp1cker has quit [Remote host closed the connection]
<yoshie902a>
I am using the Mail gem and trying to send email, however “- Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit “ is showing up in all the email I send. also the file I attached appears as a bunch of letters and numbers. I’m using the following code. http://pastie.org/private/2oqq9webyzrgwwhmqbd1g any idea on how to get the file attached as a file and prevent the content-type and char
<yoshie902a>
/encoding from showing ?
devFrederick has joined #ruby
<yoshie902a>
filename is just the path to the file being attached
havenwood has quit [Remote host closed the connection]
fumduq has quit [Ping timeout: 252 seconds]
fumduq has joined #ruby
twistedpixels has quit [Ping timeout: 252 seconds]
<godd2>
Dolphi it's a list of math problems that would take forever to do by hand, but only a minute for a computer
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
twistedpixels has joined #ruby
<godd2>
like "add up the even fibonacci numbers less than 4 million"
neanderslob has quit [Ping timeout: 250 seconds]
neanderslob has joined #ruby
Mives has quit [Ping timeout: 255 seconds]
mog_ has joined #ruby
Deckon has joined #ruby
davedev2_ has joined #ruby
n80 has joined #ruby
<jhass>
Dolphi: I always see this: Look at your regular tasks (something you daily, weekly, once a month or so), is there any part you could automate with a ruby script?
<jhass>
*say
<jhass>
do you have any scripts in other languages that you could rewrite in ruby?
Limix has joined #ruby
davedev24_ has quit [Ping timeout: 272 seconds]
<Dolphi>
jhass: Definitely! If I could somehow create an alarm clock that reactivates itself so that I don't forget the night before and end up late for work (like I did today) lol
<Dolphi>
jhass: Now that would be great!
<Deckon>
hello to all, is possible obtain specific data from a json and send data to specific fields in the json?
<jhass>
Dolphi: uh, I just a proper app on my phone :P
<jhass>
*just use
<TheNet>
Deckon: json gem?
<jhass>
today is cursed :(
<godd2>
Deckon yes. json is just plaintext, so you can parse it and modify it to your hearts content
<jhass>
TheNet: Deckon json is in stdlib
<Dolphi>
jhass: I just forget to activate the alarm sometimes
<godd2>
Deckon there are even gems for json parsing to create Ruby objects from json objects
<jhass>
Dolphi: yeah, a proper app you just configure once when to ring
randiman has quit [Quit: (null)]
<TheNet>
what exactly is wait_thr (in popen3/popen2)?
<Dolphi>
Back to your original question, could you give me a few examples?
<godd2>
Deckon oh yea, just require it from the standard library. simply add require 'json' at the top of your ruby script
<jhass>
Dolphi: for example I scripted boring repeated calculations for my math courses, have a few scripts to postprocess and rename locale files I pull from a service for a project, have scripts to partly automate updating packages I maintain, stuff like that
<Deckon>
ok
<jhass>
Dolphi: the trick is finding a process you understand well and that annoys you
<jhass>
if you're not sure whether it would be possible to automate, just ask
<Dolphi>
hanmac: That is amazing! With that trashcan, you too can be like Mike!
<godd2>
Deckon and in the link that TheNet pasted, it gives a couple examples of parsing some json
dtordable has quit [Quit: • IRcap • 8.72 •]
hs366 has quit [Read error: Connection reset by peer]
<jhass>
TheNet: I think it's a thread launched that waits for the process to end (basically just calling Process.wait on its pid), giving you access it's pid etc. and Thread#value blocks for the thread to finish, thus for the process to end (which also means Thread#join waits for the process)
thumpba has joined #ruby
<hanmac>
Dolphi: its only bad when the the can thinks that you are "trash" too ;P
duncannz has joined #ruby
jonr22 has quit [Remote host closed the connection]
n80 has quit [Quit: n80]
duncannz has quit [Max SendQ exceeded]
ragingcake has quit [Quit: ragingcake]
duncannz has joined #ruby
plashchynski has quit [Quit: plashchynski]
last_staff has quit [Remote host closed the connection]
lemur has joined #ruby
Takle has quit [Remote host closed the connection]
msev has quit [Quit: Leaving]
iamjarvo has joined #ruby
crazymykl has quit [Quit: Konversation terminated!]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
crazymykl has joined #ruby
otisZart has quit [Remote host closed the connection]
textblind has joined #ruby
zachrab has joined #ruby
n80 has joined #ruby
Limix has quit [Quit: Limix]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_ixti_ has quit [Ping timeout: 245 seconds]
Notte has quit []
Hirzu has joined #ruby
zachrab has quit [Ping timeout: 256 seconds]
sevvie has quit [Ping timeout: 256 seconds]
Hirzu has quit [Ping timeout: 264 seconds]
plashchynski has joined #ruby
sevvie has joined #ruby
_ixti_ has joined #ruby
naftilos76 has quit [Remote host closed the connection]
n80 has quit [Quit: n80]
kalusn has quit [Remote host closed the connection]