« Back to channel list

#ruby - 27 June 2017

« Back 1 day Forward 1 day »
[00:07:53] mydog2: hey Radar --there's a kickstarter clone on Github
[00:07:59] mydog2: lockitron is the app
[00:08:16] centrx: has joined #ruby
[00:08:24] mydog2: https://github.com/lockitron
[00:08:35] Radar: Perhaps you mean https://github.com/lockitron/selfstarter ?
[00:08:43] mydog2: unfortunately.. the app hasn't been updated in a bit
[00:08:45] Radar: Seems like an older Rails applicatoon.
[00:08:57] mydog2: not even sure the app would meet what I'm looking for..
[00:08:59] Radar: Uses Rails 4. Shouldn't be too hard to upgrade it to Rails 5.
[00:09:11] Radar: You've not gone into any detail about what you actually are looking for.
[00:09:14] mydog2: but.. if it was restored/running.. others could use it
[00:09:19] Radar: You've mentioned this app twice, but nothing else.
[00:09:25] mydog2: Radar - exactly
[00:10:23] ledestin: has joined #ruby
[00:10:31] mydog2: I'm looking to have a running app that has instructions on how to run it on a linux platform.. hooked into a mysql db.. with the email instructions.. I don't need the payment stuff
[00:10:47] mydog2: just a stripped down app that "runs"..
[00:10:50] Radar: https://github.com/lockitron/selfstarter#getting-started
[00:10:58] Radar: You'll need to have ruby + git cloned at least.
[00:11:10] jgpawletko: has joined #ruby
[00:11:20] Radar: Here's how you could install Ruby + Rails on ubuntu: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you
[00:11:59] mydog2: Radar, - i took a look at the issues/comments.. a few days ago.. some resource from lockitron said it was no longer maintained
[00:12:45] mydog2: apparently a number of people have tried to install/run.. with issues.. so it's not ust a ruby/rails/dev setup
[00:13:13] wsewolod: has joined #ruby
[00:13:40] mydog2: I figured if I just paid someone who was good/fast.. then everyone wins
[00:14:40] Radar: "issues" is pretty vague.
[00:14:56] Radar: But I'm sure you can find someone who can help you out. Plenty of consultants / contractors here
[00:15:00] Radar: (I'm not one of them)
[00:21:38] greypilot: has joined #ruby
[00:22:22] adam12: Wow. I can't believe this PR was never merged. https://github.com/lockitron/selfstarter/pull/94
[00:22:35] umaaji: has joined #ruby
[00:23:29] raspado: has joined #ruby
[00:23:49] greypilot: is it the ruby convention to define classes within the same file which instantiates objects from said class?
[00:24:17] Arahael: greypilot: That's confusing... Which class is the "said class"?
[00:24:50] eljimmy: has joined #ruby
[00:25:07] mydog2: adam12, -- from the looks of things. it appears the project just kind of fell flat
[00:25:23] adam12: mydog2: Yeah - my comment was mostly sarcasm, but the project is indeed lifeless.
[00:25:35] greypilot: arahael: im sorry. i'll rephrase my question. should i define my classes in a separate file? or should i define a class and then instantiate from it, within the same ruby file?
[00:25:39] Arahael: adam12: Plot twist: It was lifeless, *because* they didn't merge that request.
[00:26:08] adam12: mydog2: There's not much to the project. A couple models and very few controllers. I say dive in. If you're in a rush, start with Heroku. Might get you to the finish line quicker.
[00:26:15] adam12: arahael: I blame Ryan. All Ryans.
[00:26:50] Arahael: greypilot: I'm a python dev, who dabbles in Ruby. What I personally do, is define tightly related classes within the same file. If they aren't strongly related to each other (conceptually or otherwise), then they should progably go in separate files.
[00:27:06] greypilot: arahael: thank you.
[00:29:34] Arahael: greypilot: Incidentially, whenever I see a project that has a strict one-class, one-file policy, I groan a little inside, and I mark those devs as Java devs.
[00:29:57] greypilot: arahael: haha no kidding.
[00:30:45] elomatreb: Though most Ruby projects and style guides do recommend a strict one class per file policy (aside from inline classes like errors)
[00:31:04] ineb: i stick with that 95% of the time
[00:31:21] greypilot: so the ruby convention is one class per file
[00:32:26] greypilot: and then how do you include those classes within a file that needs to instantiate from those classes? do you use require and treat each file as a module?
[00:33:14] elomatreb: You use require. There is little special about require, it just loads and executes the file you give it (relative paths, and .rb endings are optional)
[00:33:43] greypilot: perfectly clear. thansk elomatreb
[00:34:09] elomatreb: That's where the more important convention comes from: Either define classes *OR* have behavior (code that will be executed on load) in a single file
[00:34:43] greypilot: elomatreb: okay. i'll need to sit with that idea for a moment
[00:34:51] perniciouscaffei: has joined #ruby
[00:35:35] elomatreb: https://github.com/bbatsov/ruby-style-guide -- This is the most popular Ruby style guide (though not official, there are none)
[00:36:13] ozcanesen: has joined #ruby
[00:37:18] Arahael: ineb: That's fine ,imho, provied that 95% of the time, your classes are fairly standalone, as they generally should be, anyway.
[00:37:57] Arahael: What I hate, is that to instantiate a class, I need to do another require, and instantiate another class, which reuqires... Oh, the insanity.
[00:38:28] elomatreb: A class should require everything that it needs to be instantiated in its own file
[00:38:59] elomatreb: Or, rather not just to be instantiated, but to operate in general
[00:39:19] raucao: has joined #ruby
[00:39:54] Arahael: Well, yeah. It's a somewhat unfair comparison, as the Java projects often have some complex IoC system going on.
[00:40:28] Dimik: has joined #ruby
[00:41:08] r3vDev: has joined #ruby
[00:41:18] elomatreb: Lanugages like Java make this a bit easier anyway since chances are your class won't compile if you're missing imports
[00:41:41] elomatreb: In Ruby you will only get an error when code referencing an undefined module is actually executed
[00:43:54] GinoMan2440: has joined #ruby
[00:43:57] Arahael: elomatreb: They'll compile if they have their interfaces
[00:44:38] Arahael: elomatreb: But if the IoC container can't find the instance, well, you've managed to move a compile time feature to a runtime behaviour.
[00:45:24] nobitanobi: has joined #ruby
[00:45:38] elomatreb: I'm not a Java dev, it's just that the mentioned behavior wrt undefined modules sometimes seems strange to people from other languages
[00:46:49] Arahael: Fair enough.
[00:46:59] Arahael: I'm not a java dev either. )
[00:53:40] raucao: has left #ruby: ("Leaving")
[01:00:41] elsevero: has joined #ruby
[01:03:55] QpQ4: has joined #ruby
[01:19:56] greypilot: is 'initialize' the constructor method
[01:21:58] brent__: has joined #ruby
[01:27:10] ResidentBiscuit: has joined #ruby
[01:27:28] ascarter: has joined #ruby
[01:34:57] arescorpio: has joined #ruby
[01:36:35] harfangk: has joined #ruby
[01:40:24] bmurt: has joined #ruby
[01:46:19] d^sh: has joined #ruby
[01:48:36] clemens3: has joined #ruby
[01:50:29] workmad3: has joined #ruby
[01:52:06] comet23: has joined #ruby
[01:52:15] comet23: the lib folder is used only for functions right?
[01:52:26] comet23: and the bin folder is used for short commands right?
[01:53:01] uZiel: has joined #ruby
[01:53:37] baweaver: binary are executable programs. Think interface to run like CLI tools
[01:53:47] tuelz: has joined #ruby
[01:53:55] baweaver: libraries are collections of functions used to build other things.
[01:54:47] gizmore|2: has joined #ruby
[01:54:53] mostlybadfly: has joined #ruby
[01:55:30] tuelz: so rails is a library? /troll
[01:56:04] baweaver: generic answers for generic questions
[01:56:30] baweaver: I figure someone else will be pedantic about it later and fill out the details while I sit back.
[01:56:42] comet23: no i get it
[01:56:51] comet23: that was all i needed thanks again
[01:56:54] chimkan: has joined #ruby
[01:57:30] baweaver: rails itself is a library (framework) that happens to have a binary by the same name used as a CLI tool.
[01:57:46] bougyman: rails is a kitchen sink.
[01:57:53] bougyman: that happens to include some binaries.
[01:57:55] baweaver: more accurately a vastly spanning collection of libraries
[01:57:59] comet23: tuelz: rails is a framework because it has a predefined structure of where everything goes... if it was a library you would have been creating all the folders and implementing your own design pattern
[01:58:22] baweaver: ACTION grabs popcorn
[01:58:40] tuelz: comet23: sure, the distinction between framework and library can be somewhat arbitrary tho
[01:58:47] baweaver: Squares and rectangles.
[01:58:54] comet23: i don't think so
[01:58:56] tuelz: I was only poking fun, I think rails is pretty well considered a framework
[01:59:16] tuelz: I know frameworks that don't make you put anything anywhere
[01:59:26] comet23: like what?
[01:59:45] tuelz: phoenix in elixir is moving towards everything just being under app/ for instance
[02:00:07] tuelz: also that clojure "framework" that is just a collection of libraries that are super unopinionated
[02:00:12] tuelz: forget what it's called tho
[02:00:23] comet23: sinatra is a library though
[02:00:40] tuelz: comet23: your definition generally holds true, but it's not a universally accepted line between the two concepts
[02:00:58] comet23: why do people make this so confusing
[02:01:09] comet23: it's already hard, making it harder solves nothing
[02:01:28] tuelz: the world is dynamic
[02:01:41] tuelz: don't be super rigid and it isn't hard
[02:02:34] comet23: i have a conspiracy theory about this... i believe that this is because older developers want to control the market and their job security so it's their mission to make sure to improve things very slowly and confuse people
[02:02:59] tuelz: alternatively old people don't exist...only lizards in human skin
[02:03:56] comet23: why else would the new generation of "engineers" not be exposed to low level things such as programming in assembly, binary, and understanding memory and how hardware works
[02:04:37] tuelz: you're not wrong, but it's not a conscious choice....selection bias means people who learned those things will consider them more important and become gatekeepers at some places
[02:05:18] tuelz: just like you'll learn things and subcontiously place more importance on those things because the things you learn will serve you well in life
[02:05:38] comet23: we can only hope
[02:05:39] tuelz: also lizard people
[02:05:50] comet23: baweaver: how's the popcorn?
[02:06:35] comet23: ACTION passes baweaver
[02:06:55] comet23: i meant to say passes baweaver buttetr
[02:07:49] tuelz: I'm at a coffee shop with the intent to rework my resume and start applying for jobs, but I haven't run out of money yet so it's really hard to give a shit...
[02:08:47] tuelz: and that probably sounds douchey, but before software I always lived paycheck to paycheck so this is kinda a new thing for me...turns out without the motivation of starving to death I'm good at being lazy
[02:09:01] tuelz: also getting fired seems to be a pretty strong driving factor
[02:09:13] tuelz: since I tend to keep them jobs when I get 'em
[02:09:26] comet23: where did you work before?
[02:09:56] tuelz: startup whose funding was starting to dry up
[02:10:18] tuelz: I won't say who in the off chance anybody here matters somehow since they are still trying to make it
[02:10:24] comet23: if you're in san francisco you're set lol
[02:11:26] tuelz: hah, no but I work remotely so getting work isn't hard...which isn't me bragging, just the fact of the matter that in ruby and elixir I'm not competeing against the hordes of developers graduating with c++ and java and .net backgrounds
[02:12:11] comet23: is it a bad idea to learn .net, c and c++, as well as java after ruby?
[02:12:22] tuelz: it's never a bad idea to branch out
[02:12:23] elomatreb: It's rarely a bad idea to learn anything
[02:12:39] tuelz: if money is the motivation then T shaped learned people earn the highest
[02:12:45] baweaver: It's a very bad idea though to spread thin
[02:12:49] tuelz: learn a little about a lot of things and a lot about one or two things
[02:12:50] elomatreb: Esp. C requires you to understand the machine, valuable
[02:12:51] baweaver: Pick a language, get strong in it first.
[02:12:57] comet23: i'm going to learn python after i finish this online bootcamp in ruby
[02:13:16] comet23: because it's a prerequisite for the other online bootcamp
[02:13:27] tuelz: if you're getting started....stick heavily and almost exclusively to ruby and a popular frontend framework....then you'll never have trouble finding a job
[02:13:56] tuelz: then learn the shit you want to learn and do w.e. you want because you'll have a plan B that is always hiring
[02:13:59] comet23: so if i learn ruby and ruby on rails/sinatra i will be able to find jobs easily?
[02:14:19] tuelz: at least that's been my experience
[02:14:28] comet23: the reason i am learning ruby on rails is because i want to make a web app for my company, and now that my brain is working i can finally do that
[02:14:40] guacamole: has joined #ruby
[02:14:43] comet23: but my problem is that i failed college because i had a severe learning disability
[02:14:56] tuelz: I didn't get none of them fancy edumications either
[02:15:03] comet23: i'm not sure how i can get myself out of that hole
[02:15:14] tuelz: and I make more than both of my friends that graduated with engineering degrees writing software
[02:15:25] comet23: combined?!
[02:15:57] comet23: i want to have a master's degree in filmmaking
[02:16:05] tuelz: getting that first job is the hardest part in software (again n=1)
[02:16:35] comet23: i will get that first job but i am inching closer to desperation and soon i'll take the lowest paid offer
[02:16:47] comet23: if i can finish everything in time i won't do that
[02:17:03] tuelz: take anything and then you can apply/negotiate from a position of power
[02:17:13] tuelz: anything that says you write software on a piece of paper
[02:17:16] comet23: https://education.github.com/pack is what i'm using to learn
[02:18:10] tuelz: best of luck to yah
[02:18:20] comet23: so if i take a first job that pays 30k... a full stack ruby on rails position will my rate be set at 30k?
[02:18:35] bougyman: comet23: unlikely
[02:18:37] tuelz: not if you don't let it be
[02:18:43] bougyman: they have rails monkeys in bangalore now.
[02:18:57] comet23: what does that mean?
[02:18:57] tuelz: just refuse to tell the next employer your salary...you have a job you pick the terms
[02:19:16] baweaver: bougyman: oi
[02:19:21] bougyman: that means they have people with Phds which will code rails for $18/day
[02:19:38] Jameser: has joined #ruby
[02:19:51] bougyman: baweaver: not cool how?
[02:20:05] baweaver: Rails monkeys.
[02:20:07] bougyman: I didn't mean 'monkey' in any degrading way. I started out as a rack monkey.
[02:20:11] tuelz: and yet I had people paying USD120/hr when I only had 2 years of experience.....sorry I just don't buy into the junk about offshore work bringing wages down
[02:20:18] baweaver: fine fine, but it does come across bad.
[02:20:37] bougyman: Understood.
[02:20:37] tuelz: not that I made that kinda money...I just had a company selling my time for 120/hr
[02:20:47] comet23: i think it only comes across as bad because he's not making fun of white people... you can make fun of white people and nobody will bat an eye
[02:21:00] baweaver: Try it then
[02:21:00] bougyman: So: there are PHd'd rails devs in India who will work for a fraction of what you would expect in U.S. salaries.
[02:21:00] tuelz: uh what? I'd bat an eye...
[02:21:28] comet23: well now that i mentioned it people will
[02:21:29] baweaver: I don't care what race / religion / etc it is.
[02:21:39] bougyman: baweaver: nor do I.
[02:21:46] baweaver: If you insult someone or say something bad I will call it out
[02:21:53] tuelz: I hate everyone with a strong equality
[02:21:53] baweaver: and I do understand slang and misunderstandings
[02:21:58] baweaver: which is why I mention it first
[02:22:00] bougyman: I use 'code monkey', 'rack monkey', 'rails monkey', all without color nor creed.
[02:22:06] bougyman: it just means beginner.
[02:22:50] Radar: good afternoon how are we this fine day
[02:23:05] comet23: i'm learning ruby
[02:23:08] tuelz: the thing about software is it's less about your code skill for most webdev crap and more about your communication ability to translate business requirements into features while navigating thru middle management and other crap
[02:23:29] comet23: but that's the easy part tuelz
[02:23:35] tuelz: 99% of us are just CRUD app'ing somebodys clone of another website
[02:23:47] tuelz: easy or not it pays good money /shrug
[02:24:55] baweaver: Just wait until you get in a company. The software is the easy part
[02:25:02] tuelz: and you say it's easy, but those non-native english speakers in other timezones are less likely to be interfacing with the right people to get the right requirements and even worse aren't legally bound by US contracts so things blow up real hard and make people more likely to spend huge money on US citizens
[02:25:24] comet23: sweet, i speak four languages and i'm a us citizen
[02:25:32] comet23: does that help me in any way?
[02:25:41] tuelz: english is the only one that's gonna help you much, honestly
[02:25:50] tuelz: other countries don't pay crap compared to US for software
[02:26:11] tuelz: generally speaking...exceptions exist all over
[02:26:58] comet23: https://biz30.timedoctor.com/salaries-around-the-world-awesome-new-infographic/ <=== how accurate is that?
[02:27:25] tuelz: my advice to any beginner is to worry less about being good at coding and worry more about your portfolio and sending out more quality applications and practice interviewing with real interviews
[02:27:56] bougyman: My advice to a beginner is to program something for yourself that you want to use.
[02:27:57] elomatreb: Any comparison of salaries without factoring cost of living is completely useless
[02:28:03] bougyman: and then, use it daily.
[02:28:06] bougyman: improve it.
[02:28:17] bougyman: and for christ's sake, publish it.
[02:28:25] cdg: has joined #ruby
[02:28:36] comet23: cost of living is cheaper in denmark, that's for sure
[02:28:57] tuelz: denmark taxes at like 50-60% of income for high earners
[02:29:15] tuelz: that's probably gross and not net with CoL adjustments
[02:29:36] tuelz: altho I'd love to see case studies about australia I honestly have never seen a job posting from australia
[02:29:41] comet23: the best thing for everyone to do is try to make a few million and move to monaco
[02:29:53] tuelz: I odn't even know where that is
[02:29:55] comet23: monaco is like tax free lol
[02:29:59] comet23: south of france
[02:30:02] tuelz: but I promise if you give me a few million I'll do it
[02:30:12] comet23: give me a few million ;)
[02:30:27] tuelz: that's not how any of thise works
[02:30:28] bougyman: can you even move to monaco on 2 mil?
[02:30:33] bougyman: I thought it took 10
[02:30:48] comet23: no, you just have to live there for 180 days
[02:31:07] comet23: but the thing is that for 2 million you're getting a studio there
[02:32:28] tuelz: I'll live in the street for a few minutes to keep my promise and move to medellin, colombia or someplace else with women who love gringos
[02:32:32] tuelz: and cheap drinks
[02:33:03] tuelz: I'm a simple man.
[02:37:31] xRob_: has joined #ruby
[02:38:06] comet23: has joined #ruby
[02:38:57] Radar: #ruby-offtopic kthx
[02:38:58] Arahael: Australia has very high cost of living, but its also a welfare state, so, possibly average.
[02:39:03] Arahael: Oh, and indeed.
[02:39:14] comet23: this looks nice https://www.glassdoor.com/Salary/Bloomberg-L-P-Ruby-On-Rails-Developer-Salaries-E3096_D_KO14,37.htm
[02:42:16] chimkan: has joined #ruby
[02:44:05] Trynemjoel: has joined #ruby
[02:56:12] comet23: has joined #ruby
[03:02:03] nacsurte: has joined #ruby
[03:05:33] ascarter: has joined #ruby
[03:12:05] comet23: has joined #ruby
[03:12:23] comet23: has anyone used http://hired.com/
[03:18:38] bambanx: has joined #ruby
[03:25:10] Encapsulation: has joined #ruby
[03:31:34] jackjackdripper: has joined #ruby
[03:32:56] sarbs: has joined #ruby
[03:33:59] gix: has joined #ruby
[03:34:32] Encapsulation: has left #ruby: ("Leaving")
[03:38:57] astrobunny: has joined #ruby
[03:41:57] arescorpio: has joined #ruby
[03:48:10] Cohedrin_: has joined #ruby
[03:53:05] uZiel: has joined #ruby
[03:53:59] ruby[bot]: has joined #ruby
[03:53:59] ChanServ: +o ruby[bot]
[03:56:15] Kilo`byte: has joined #ruby
[03:59:12] sarbs: has joined #ruby
[04:00:15] hahuang65: has joined #ruby
[04:03:07] nacsurte: has joined #ruby
[04:07:42] latemus: has joined #ruby
[04:10:18] ascarter: has joined #ruby
[04:12:47] boombox_: has joined #ruby
[04:13:33] patarr: has joined #ruby
[04:16:49] sarbs: has joined #ruby
[04:24:58] MasterAsia: has joined #ruby
[04:25:08] MasterAsia: why does rails hang when I don't use bundle exec?
[04:25:17] MasterAsia: the specific reason
[04:25:36] MasterAsia: rails g task search index vs bundle exec rails g task search index
[04:25:51] MasterAsia: I guess the first one just searches for the first rails bin in path?
[04:26:04] MasterAsia: idk. would be great to know though
[04:31:25] beilabs_: has joined #ruby
[04:32:50] hahuang65: has joined #ruby
[04:37:08] cadillac_: has joined #ruby
[04:37:33] Rodya_: has joined #ruby
[04:39:12] dasher00: has joined #ruby
[04:44:56] cyphase: has joined #ruby
[04:45:50] Rodya_: has joined #ruby
[04:46:48] nobitanobi: has joined #ruby
[04:50:17] ur5us: has joined #ruby
[05:03:24] helpa-bot: has joined #ruby
[05:03:59] astrobunny: has joined #ruby
[05:04:01] nacsurte: has joined #ruby
[05:05:23] helpa: has joined #ruby
[05:08:02] helpa-bot: has joined #ruby
[05:08:57] nofxxx: has joined #ruby
[05:09:15] cyphase: has joined #ruby
[05:10:28] synack: has joined #ruby
[05:10:32] uranellus_: has joined #ruby
[05:13:01] helpa: has joined #ruby
[05:13:12] bw\_: has joined #ruby
[05:13:16] Rutix`away: has joined #ruby
[05:13:17] Rutix`away: has joined #ruby
[05:13:44] artmann__: has joined #ruby
[05:15:31] helpa: has joined #ruby
[05:15:32] Morrolan: has joined #ruby
[05:15:32] Radar: masterasia: hard to know without seeing it for myself.
[05:15:33] Radar: masterasia: what does "which rails" show?
[05:15:37] rileyy: has joined #ruby
[05:15:53] ascarter: has joined #ruby
[05:16:16] jaredrhine: has joined #ruby
[05:16:18] giraffe: has joined #ruby
[05:16:21] Nahra: has joined #ruby
[05:16:22] FifthWall: has joined #ruby
[05:17:05] cyphase: has joined #ruby
[05:17:32] hurricanehrndz: has joined #ruby
[05:17:39] CustosLimen: has joined #ruby
[05:17:48] Tatey: has joined #ruby
[05:18:15] brainslug: has joined #ruby
[05:18:35] bokayio: has joined #ruby
[05:18:37] cyphase: has joined #ruby
[05:19:02] scottschecter: has joined #ruby
[05:19:14] Psy-Q: has joined #ruby
[05:19:24] shortdudey123: has joined #ruby
[05:19:30] scott4000: has joined #ruby
[05:19:38] iNs: has joined #ruby
[05:20:14] ged: has joined #ruby
[05:20:16] noodle: has joined #ruby
[05:23:09] heinrich5991: has joined #ruby
[05:23:37] mim1k: has joined #ruby
[05:24:12] coffeejunk: has joined #ruby
[05:24:28] planigan: has joined #ruby
[05:26:50] yorickpeterse: has joined #ruby
[05:29:56] uZiel: has joined #ruby
[05:34:40] bodgix1: has joined #ruby
[05:35:11] aupadhye: has joined #ruby
[05:35:19] ferdroid__: has joined #ruby
[05:35:53] anisha: has joined #ruby
[05:36:05] ltd_: has joined #ruby
[05:36:31] astrobunny: has joined #ruby
[05:36:54] Radar_: has joined #ruby
[05:37:14] pale3x: has joined #ruby
[05:38:11] brent__: has joined #ruby
[05:39:13] Tralin: has joined #ruby
[05:39:27] Paradox: has joined #ruby
[05:39:32] bazzy: has joined #ruby
[05:39:46] rcs: has joined #ruby
[05:40:23] biox: has joined #ruby
[05:40:53] mydog2: has joined #ruby
[05:41:04] knight-: has joined #ruby
[05:41:11] hkdsun: has joined #ruby
[05:41:22] shaman42: has joined #ruby
[05:41:41] kt: has joined #ruby
[05:42:26] Radar: has joined #ruby
[05:42:33] linduxed: has joined #ruby
[05:43:07] biberu: has joined #ruby
[05:43:46] Bish: has joined #ruby
[05:44:06] nishiki: has joined #ruby
[05:44:13] RazorX: has joined #ruby
[05:44:18] gf3: has joined #ruby
[05:44:36] xMopxShell: has joined #ruby
[05:44:44] runescape07rsps: has joined #ruby
[05:46:42] dionysus69: has joined #ruby
[05:48:14] dminuoso: Radar: As I have learned the hard way, `which` is not as helpful in some circumstances. :S
[05:49:01] DoubleMalt: has joined #ruby
[05:50:21] rippa: has joined #ruby
[05:56:31] aupadhye: has joined #ruby
[05:59:18] muelleme_: has joined #ruby
[06:04:38] nacsurte: has joined #ruby
[06:05:19] baweaver: dminuoso: `which circumstance`?
[06:05:37] baweaver: ACTION ducks
[06:06:04] dminuoso: baweaver: You know, I was starting to type without giving much though. While I was finished with the first word it occured to me.. "wait a moment, this is baweaver asking..."
[06:06:23] dminuoso: You made me waste precious 0.27 seconds of my life.
[06:06:38] baweaver: Yeah. I've wasted much more of Radar's and cjohnson's XD
[06:07:36] ledestin: has joined #ruby
[06:07:50] Radar: https://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script/677212#677212
[06:08:07] Radar: Had to dig through the notes for Deep Dive Rails to find that.
[06:14:26] patarr: has joined #ruby
[06:18:10] _whitelogger: has joined #ruby
[06:20:07] ascarter: has joined #ruby
[06:22:11] Mortomes|Work: has joined #ruby
[06:23:46] astrobunny: has joined #ruby
[06:31:15] roshanavand: has joined #ruby
[06:35:53] conta: has joined #ruby
[06:39:50] tAn: has joined #ruby
[06:42:32] jackjackdripper: has joined #ruby
[06:45:24] judofyr: has joined #ruby
[06:46:29] xzhao: has joined #ruby
[06:51:54] elsevero: has joined #ruby
[06:54:52] beilabs_: has joined #ruby
[06:55:18] alex``: has joined #ruby
[07:00:29] djbkd: has joined #ruby
[07:03:24] milardovich: has joined #ruby
[07:05:23] nacsurte: has joined #ruby
[07:08:43] nunchuck: has joined #ruby
[07:11:34] Ishido: has joined #ruby
[07:12:06] TomyWork: has joined #ruby
[07:12:54] aufi: has joined #ruby
[07:22:39] jenrzzz: has joined #ruby
[07:22:39] jenrzzz: has joined #ruby
[07:23:35] ascarter: has joined #ruby
[07:27:52] ferr: has joined #ruby
[07:32:25] antgel: has joined #ruby
[07:32:56] judofyr: has joined #ruby
[07:33:46] judofyr_: has joined #ruby
[07:34:54] mim1k: has joined #ruby
[07:37:33] ltp: has joined #ruby
[07:43:46] andikr: has joined #ruby
[07:44:07] bier: has joined #ruby
[07:47:33] kruppm: has joined #ruby
[07:53:28] charliesome: has joined #ruby
[07:59:17] vali: has joined #ruby
[07:59:48] psychicist__: has joined #ruby
[08:04:15] DoubleMalt: has joined #ruby
[08:05:18] Mia: has joined #ruby
[08:11:38] jaruga________: has joined #ruby
[08:15:12] patarr: has joined #ruby
[08:16:28] helpa: has joined #ruby
[08:19:53] mikecmpbll: has joined #ruby
[08:21:43] psychicist__: has joined #ruby
[08:23:54] nobitanobi: has joined #ruby
[08:29:04] ascarter: has joined #ruby
[08:40:23] lxsameer: has joined #ruby
[08:41:49] Ishido: has joined #ruby
[08:41:53] astrobunny: has joined #ruby
[08:42:29] mim1k: has joined #ruby
[08:51:46] judofyr: has joined #ruby
[08:52:09] roshanavand: has joined #ruby
[08:55:31] r3vDev: has joined #ruby
[08:58:21] judofyr: has joined #ruby
[08:58:55] Rr4sT: has joined #ruby
[09:02:02] kke: has joined #ruby
[09:02:35] Rodya_: has joined #ruby
[09:06:21] mim1k: has joined #ruby
[09:10:34] Rr4sT: has joined #ruby
[09:12:39] Rr4sT: has joined #ruby
[09:19:24] pandaant: has joined #ruby
[09:19:34] marr: has joined #ruby
[09:19:53] Rr4sT: has joined #ruby
[09:22:10] cyphase: has joined #ruby
[09:25:27] nickjj_: has joined #ruby
[09:25:42] nicolai86_: has joined #ruby
[09:25:59] Tempesta_: has joined #ruby
[09:27:05] Jameser`: has joined #ruby
[09:27:34] slima_: has joined #ruby
[09:27:36] cyphase: has joined #ruby
[09:27:37] Some-body_: has joined #ruby
[09:27:37] Mendel_: has joined #ruby
[09:27:40] tvw: has joined #ruby
[09:27:49] tonini__: has joined #ruby
[09:28:23] ski4x7: has joined #ruby
[09:28:42] Antiarc1: has joined #ruby
[09:28:44] Gnubie__: has joined #ruby
[09:28:54] artmann_: has joined #ruby
[09:29:27] badeball: has joined #ruby
[09:29:30] Xeago_: has joined #ruby
[09:29:32] cbrad: has joined #ruby
[09:29:35] willymox: has joined #ruby
[09:29:36] lucas: has joined #ruby
[09:29:43] rprimus_: has joined #ruby
[09:29:48] olblak: has joined #ruby
[09:29:49] eam_: has joined #ruby
[09:29:50] abort: has joined #ruby
[09:29:54] gaurav: has joined #ruby
[09:30:00] guacamol1: has joined #ruby
[09:30:00] ogotai_: has joined #ruby
[09:30:02] kke_: has joined #ruby
[09:30:03] A124: has joined #ruby
[09:30:05] jsaak: has joined #ruby
[09:30:07] raddazong: has joined #ruby
[09:30:08] sts: has joined #ruby
[09:30:10] TvL: has joined #ruby
[09:30:14] karlding_: has joined #ruby
[09:30:17] TTilus: has joined #ruby
[09:30:17] marcellus: has joined #ruby
[09:30:22] rgs_: has joined #ruby
[09:30:27] genpaku_: has joined #ruby
[09:30:39] Drakevr: has joined #ruby
[09:30:42] znz_jp0: has joined #ruby
[09:30:45] planigan_: has joined #ruby
[09:30:54] cyphase: has joined #ruby
[09:31:58] cyphase: has joined #ruby
[09:32:40] tgragnato: has joined #ruby
[09:32:56] ascarter: has joined #ruby
[09:32:59] icedragon: has joined #ruby
[09:32:59] scott4000_: has joined #ruby
[09:33:19] d^sh_: has joined #ruby
[09:33:24] Phanes-: has joined #ruby
[09:33:27] dickings: has joined #ruby
[09:33:27] tekku: has joined #ruby
[09:33:35] Trynemjoel2: has joined #ruby
[09:33:43] Psy-Q_: has joined #ruby
[09:33:49] hurricanehrndz_: has joined #ruby
[09:33:54] KrzaQ-: has joined #ruby
[09:34:12] gil_-: has joined #ruby
[09:34:18] phreakocious_: has joined #ruby
[09:34:35] tatey_: has joined #ruby
[09:35:20] Tempesta: has joined #ruby
[09:35:24] MrSparkle: has joined #ruby
[09:35:37] DenSchub: has joined #ruby
[09:35:57] Exagone314: has joined #ruby
[09:36:38] noodle: has joined #ruby
[09:37:19] nanoz: has joined #ruby
[09:37:27] vondruch_: has joined #ruby
[09:37:38] milardovich: has joined #ruby
[09:37:44] cyphase: has joined #ruby
[09:38:38] brent__: has joined #ruby
[09:39:28] bauruine: has joined #ruby
[09:40:20] milardovich: has joined #ruby
[09:40:21] zacts: has joined #ruby
[09:41:44] spiette: has joined #ruby
[09:41:51] burgestrand: has joined #ruby
[09:42:08] cyphase: has joined #ruby
[09:42:41] KevinMGranger: has joined #ruby
[09:44:41] cyphase: has joined #ruby
[09:45:55] memphisw: has joined #ruby
[09:48:45] cyphase: has joined #ruby
[09:48:45] slima: has joined #ruby
[09:52:04] aufi: has joined #ruby
[09:54:32] Polysics: has joined #ruby
[09:54:49] ltem: has joined #ruby
[09:55:28] milardovich: has joined #ruby
[10:03:05] milardovich: has joined #ruby
[10:03:11] SHyx0rmZ: has joined #ruby
[10:03:54] Rodya_: has joined #ruby
[10:04:28] Ishido: has joined #ruby
[10:05:58] Neptu: has joined #ruby
[10:07:19] nacsurte: has joined #ruby
[10:16:09] patarr: has joined #ruby
[10:17:40] milardovich: has joined #ruby
[10:19:37] judofyr: has joined #ruby
[10:22:50] __urux__: has joined #ruby
[10:25:17] rohitpaulk: has joined #ruby
[10:25:25] DrCode: has joined #ruby
[10:31:05] GodFather: has joined #ruby
[10:31:39] Ishido: has joined #ruby
[10:35:23] ascarter: has joined #ruby
[10:38:12] Fernando-Basso: has joined #ruby
[10:39:34] milardovich: has joined #ruby
[10:40:30] mim1k: has joined #ruby
[10:48:19] milardovich: has joined #ruby
[10:49:19] futilegames: has joined #ruby
[10:50:44] tvw: has joined #ruby
[10:51:06] kke_: anyone got any recommendations for a project with a great implementation of a complex dsl? (currently browsing through chef and rspec)
[10:51:49] ski7777: has joined #ruby
[10:52:58] dminuoso: kke_: You could look at any of the parser generator libraries (e.g. parslet)
[10:55:30] shadeslayer: has joined #ruby
[10:58:44] Ishido: has joined #ruby
[10:59:39] shadeslayer: has joined #ruby
[10:59:56] psychicist__: has joined #ruby
[11:00:19] kke_: that one is perhaps a bit too complex :) i guess it would be something like a chef/puppet/homebrew recipe/formula, mostly i'm trying to figure out a nice way to make the thing modular and well composed so it's easy to maintain, expand and test.
[11:01:13] kke_: hmm perhaps rspec would be the prime example then
[11:04:53] Rodya_: has joined #ruby
[11:05:37] TheBloke: has joined #ruby
[11:07:23] mim1k: has joined #ruby
[11:08:22] nacsurte: has joined #ruby
[11:09:08] charliesome: has joined #ruby
[11:09:53] milardovich: has joined #ruby
[11:09:56] zapata: has joined #ruby
[11:13:03] Didac: has joined #ruby
[11:13:26] milardovich: has joined #ruby
[11:14:01] patarr: has joined #ruby
[11:18:09] Tau: has joined #ruby
[11:18:36] Kristjan55555: has joined #ruby
[11:20:55] chmuri: has joined #ruby
[11:21:57] zapata: has joined #ruby
[11:23:01] unreal: has joined #ruby
[11:25:35] r3vDev: has joined #ruby
[11:28:05] bkxd: has joined #ruby
[11:28:11] bkxd_: has joined #ruby
[11:31:13] rohitpaulk: has joined #ruby
[11:31:32] sepp2k: has joined #ruby
[11:36:08] rippa: has joined #ruby
[11:38:36] futilegames: has joined #ruby
[11:39:44] ascarter: has joined #ruby
[11:40:30] TheBloke-: has joined #ruby
[11:41:53] anisha: has joined #ruby
[11:42:19] ldnunes: has joined #ruby
[11:47:00] roshanavand: has joined #ruby
[11:47:36] BSaboia: has joined #ruby
[11:50:50] judofyr: has joined #ruby
[11:51:13] alex``: has joined #ruby
[11:52:32] hs366: has joined #ruby
[11:54:04] shadeslayer_: has joined #ruby
[11:54:29] shadeslayer_: has joined #ruby
[11:56:46] solocshaw: has joined #ruby
[11:57:56] judofyr: has joined #ruby
[12:04:39] judofyr: has joined #ruby
[12:04:45] bpmedley: has joined #ruby
[12:04:56] GinoMan: has joined #ruby
[12:05:27] Rodya_: has joined #ruby
[12:06:38] Ishido: has joined #ruby
[12:06:56] catphish: has joined #ruby
[12:07:03] dminuoso: kke_: rspec is definitely good.
[12:07:12] dminuoso: I just didn't name it because you already discovered it. :)
[12:08:57] GinoMan2440: has joined #ruby
[12:09:08] nacsurte: has joined #ruby
[12:09:09] joast: has joined #ruby
[12:09:46] anisha: has joined #ruby
[12:09:54] kruppm: has joined #ruby
[12:10:46] bkxd: has joined #ruby
[12:12:13] bkxd_: has joined #ruby
[12:17:27] solocshaw: has joined #ruby
[12:18:14] __Yiota: has joined #ruby
[12:24:32] Ericx2x: has joined #ruby
[12:28:03] synthroid: has joined #ruby
[12:28:42] workmad3: has joined #ruby
[12:29:29] dropsh0t: has joined #ruby
[12:30:17] shtirlic: has joined #ruby
[12:33:56] im0nde: has joined #ruby
[12:39:37] chimkan: has joined #ruby
[12:41:22] eljimmy: has joined #ruby
[12:42:35] konsolebox: has joined #ruby
[12:42:43] ascarter: has joined #ruby
[12:42:52] gts7: has joined #ruby
[12:43:15] gts7: Hello, World!
[12:43:40] jaruga________: has joined #ruby
[12:43:50] gts7: Is this a good place for a n00b question about ruby?
[12:44:12] dminuoso: This is a good place to ask good questions about ruby.
[12:49:20] bkxd__: has joined #ruby
[12:50:28] dviola: has joined #ruby
[12:52:01] bkxd: has joined #ruby
[12:52:08] mim1k: has joined #ruby
[12:55:27] kahootbird: has joined #ruby
[12:58:59] jcast: has joined #ruby
[13:01:13] rohitpaulk: has joined #ruby
[13:01:44] jphase: has joined #ruby
[13:02:33] alex``: has joined #ruby
[13:02:53] mostlybadfly: has joined #ruby
[13:04:57] __Yiota: has joined #ruby
[13:05:49] balo: http://www.catb.org/esr/faqs/smart-questions.html#prune
[13:06:49] gts7: has joined #ruby
[13:08:56] milardovich: has joined #ruby
[13:09:55] nacsurte: has joined #ruby
[13:10:26] synthroid: has joined #ruby
[13:17:16] BSAlb: has joined #ruby
[13:19:56] Jameser: has joined #ruby
[13:22:37] cyclonis: has joined #ruby
[13:24:44] PatrikasZvaigzde: has joined #ruby
[13:29:23] bkxd_: has joined #ruby
[13:30:30] bkxd___: has joined #ruby
[13:31:51] DLSteve_: has joined #ruby
[13:32:42] rfoust: has joined #ruby
[13:34:56] oleo: has joined #ruby
[13:35:43] R\w\C: has joined #ruby
[13:37:21] wsewolod: has joined #ruby
[13:44:11] urux2: has joined #ruby
[13:45:31] lxsameer: has joined #ruby
[13:46:54] isBEKaml: has joined #ruby
[13:47:37] ascarter: has joined #ruby
[13:47:56] r3vDev: has joined #ruby
[13:50:16] chouhoulis: has joined #ruby
[13:50:57] chouhoulis: has joined #ruby
[13:51:30] milardovich: has joined #ruby
[13:58:11] mim1k: has joined #ruby
[13:59:01] synthroid: has joined #ruby
[14:00:26] synthroid: has joined #ruby
[14:03:42] conta: has joined #ruby
[14:05:31] graingert: I'm trying to install ruby 2.4.0 with rbenv
[14:05:42] graingert: but I get: https://www.irccloud.com/pastebin/Vyo0ngvs/
[14:05:44] ruby[bot]: graingert: we in #ruby do not like irccloud.com, I reposted your paste to gist for you: https://gist.github.com/d6dcbd142498aba9b3b978c568f32f26
[14:05:45] ruby[bot]: graingert: irccloud.com has no syntax highlighting, distracting formatting and loads slowly for most.
[14:05:46] graingert: BUILD FAILED (Ubuntu 17.04 using ruby-build 20170523-25-g476d09b)
[14:06:01] havenwood: "error: failed to download ruby-2.4.0.tar.bz2"
[14:06:16] graingert: havenwood: yeah
[14:06:16] dminuoso: Probably beacuse 2.4.0 has been pulled?
[14:06:26] havenwood: Link works for me: https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0.tar.bz2
[14:06:33] dminuoso: Yeah works for me too.
[14:06:37] __Yiota: has joined #ruby
[14:07:10] havenwood: graingert: Can you download the file directly? What happens when you try?
[14:07:23] graingert: yeah download directly works fine
[14:07:40] BackEndCoder: has joined #ruby
[14:08:10] graingert: 440bbbdc49d08d3650f340dccb35986d9399177ad69a204def56e5d3954600cf ruby-2.4.0.tar.bz2
[14:08:39] dminuoso: graingert: Do you have some http proxy set up in environment variables?
[14:09:16] r3vDev: has joined #ruby
[14:09:49] graingert: aria2c fails to download it
[14:09:56] graingert: and I can't do
[14:09:56] mikecmpbll: has joined #ruby
[14:10:06] graingert: "dig -t A cache.ruby-lang.org"
[14:11:03] nacsurte: has joined #ruby
[14:11:05] nowhere_man: has joined #ruby
[14:11:18] graingert: hardcoding the IP in /etc/hosts works
[14:11:30] graingert: well it's "installing..."
[14:11:34] dminuoso: graingert: Which operating system are you on?
[14:11:39] graingert: ubuntu 17.04
[14:12:09] graingert: should I get any progress info from rbenv install?
[14:12:20] havenwood: graingert: I'd suggest making sure you're using the latest ruby-build.
[14:12:25] dminuoso: graingert: Is this for a server?
[14:12:30] graingert: havenwood: yeah
[14:12:31] havenwood: graingert: If you run into too many issues switch to ruby-install.
[14:12:32] graingert: dminuoso: no
[14:12:45] graingert: havenwood: why so many ways?
[14:13:04] dminuoso: graingert: ruby-install is the lightweight but flexible non-buggy solution.
[14:13:05] graingert: I'm just following https://gorails.com/setup/ubuntu/17.04
[14:13:13] dminuoso: graingert: Yeah screw that.
[14:13:13] havenwood: graingert: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you
[14:13:17] dminuoso: graingert: Use ruby-install with chruby
[14:13:25] havenwood: +1 ruby-install/chruby
[14:13:28] dminuoso: graingert: It is painless, it works, and pretty much bug free (it's so small that it's easy to reason about correctness)
[14:13:33] graingert: I don't even want rails
[14:13:52] dminuoso: graingert: Unless you have the need for automatic version switching, avoid rbenv and rvm.
[14:13:55] havenwood: graingert: Don't type: gem install rails
[14:14:15] graingert: I just want bundle install to work
[14:14:19] graingert: and I an't typing sudo
[14:14:27] dminuoso: graingert: Do you even want multiple ruby versions?
[14:14:37] graingert: I want ruby 2.4
[14:14:44] graingert: but probably not
[14:15:03] havenwood: graingert: Use Ruby 2.4.1 since it's the latest stable release.
[14:15:11] cjohnson: better to prepare for multiple versions imo
[14:15:11] graingert: I don't mind
[14:15:17] graingert: cjohnson: yo
[14:15:19] cjohnson: easier to add another version with a version switcher than it is to switch installs entirely
[14:15:25] dminuoso: cjohnson: it doesnt matter.
[14:15:38] graingert: I just want python3 -m venv; pip install -r requirements.txt
[14:15:42] graingert: but for ruby
[14:15:43] dminuoso: cjohnson: he can just use ruby-install for now, and add chruby later on if he needs version switching.
[14:15:55] dminuoso: cjohnson: Which reduces overhead.
[14:16:03] graingert: only touching ~/
[14:16:23] dminuoso: graingert: sudo make install is very safe.
[14:16:24] dminuoso: graingert: https://github.com/postmodern/ruby-install/blob/master/Makefile#L70-L73
[14:16:26] bkxd: has joined #ruby
[14:16:27] graingert: so the ryanbigg.com site fails at sudo make install
[14:16:35] chalkmonster: has joined #ruby
[14:16:37] dminuoso: graingert: it only creates a few directories and copies files. You can review the makefile to be sure.
[14:16:40] cjohnson: dminuoso: chruby is a 100% hands-off approach to versioning ruby? or will it modify the ruby chain in some way?
[14:16:44] graingert: yeah not interested
[14:16:52] cjohnson: I've never used it, I'm only used to rvm/nvm which will change things
[14:16:54] dminuoso: cjohnson: chruby is basically just a very tiny script that modifies your PATH
[14:17:00] fuzzyhorns1: has joined #ruby
[14:17:07] graingert: I've got ~/.bin setup on $PATH
[14:17:15] havenwood: cjohnson: It's near the simplest thing that can possibly work.
[14:17:18] dminuoso: cjohnson: Oh did I mention its also only a ~100LOC implementation?
[14:17:34] bkxd__: has joined #ruby
[14:17:37] fnux: has joined #ruby
[14:17:51] dminuoso: chrisseaton: https://github.com/postmodern/chruby/blob/master/share/chruby/chruby.sh :-)
[14:18:00] chalkmonster: has joined #ruby
[14:18:15] havenwood: graingert: Brightbox also maintains up-to-date Ruby packages for Ubuntu: https://launchpad.net/~brightbox/+archive/ubuntu/ruby-ng
[14:18:21] matthewd: "Use ruby-install instead" as a solution to "ruby-build is encountering a network error" seems unproductively divisive to me
[14:18:34] dminuoso: graingert: If you set up the destdir yo udont need sudo then.
[14:18:45] graingert: matthewd: I've worked around the network error
[14:18:48] dminuoso: matthewd: if rbenv wont even tell you why it broke?
[14:18:54] fuzzyhorns1: a 3rd party returns a byte[] of a zip file from a soap call, which in ruby appears to me as a long string. i can't seem to figure out how to actually use that string as a zip file again. anyone done something like this?
[14:19:02] havenwood: matthewd: Well, ruby-install supports curl or wget and will give error messages when things fail.
[14:19:03] graingert: really I just want gem to install into a local directory
[14:19:19] havenwood: I'm sure there's a verbose flag for ruby-build.
[14:19:26] graingert: eg under $HOME
[14:19:33] graingert: and the same for bundler
[14:19:50] graingert: and I want to be able to switch between different collections of installed gems
[14:20:01] dminuoso: graingert: PREFIX=/where/ever/you/want/it/installed make install
[14:20:04] dminuoso: graingert: no sudo needed then.
[14:20:04] fuzzyhorns1: zip is the string, and i've been trying: File.open('test.zip', 'wb') {|fp| fp.write(zip.b) }
[14:20:12] graingert: I just want something exactly the same as python3 -m venv
[14:20:38] matthewd: graingert: You have python3 installed in ~/ ?
[14:20:41] dminuoso: fuzzyhorns1: use binwrite
[14:20:46] cyphase: has joined #ruby
[14:20:51] fuzzyhorns1: dminuoso: oh! lemme look that up
[14:20:53] graingert: matthewd: no it's installed with ubuntu
[14:21:01] graingert: I'm happy to use the system Ruby 2.3
[14:21:04] futilegames: has joined #ruby
[14:21:04] graingert: I've given up on 2.4
[14:21:10] GodFather: has joined #ruby
[14:21:13] dminuoso: fuzzyhorns1: (You could also do the things it does manually, but the point is to ensure that the file is opened with ASCII-8BIT)
[14:21:25] havenwood: graingert: You're using a python package. You can use a Ruby package. I linked you to a well-maintained Ruby 2.4 package.
[14:21:48] graingert: havenwood: sure, but I've got ruby installed by my OS already
[14:21:51] graingert: I'm happy with that
[14:22:05] graingert: I now want to install bundler without it touching anything outside of $HOME
[14:22:06] havenwood: graingert: Then use your package Ruby. What's the problem?
[14:22:14] fuzzyhorns1: dminuoso: mmm. no dice if i try to open the resulting zip, just end up with a zip.cpgz
[14:22:15] milardovich: has joined #ruby
[14:22:28] milardovich: has joined #ruby
[14:22:33] havenwood: graingert: Ubuntu has chosen a system location for gems by default with their Ruby package. You can change that with a flag.
[14:22:59] graingert: havenwood: ok but I want to run a command to switch between different sets of installed gems
[14:23:01] dminuoso: fuzzyhorns1: Look at the string encoding. If it is anything other than ASCII-8BIT, use force_encoding to reinterpret it.
[14:23:18] graingert: such that gem install installs to that directory and ruby programs use those gems
[14:23:23] fuzzyhorns1: dminuoso: i tried using `.b` to do that
[14:23:25] graingert: then I run another command and it all goes away
[14:23:28] dminuoso: fuzzyhorns1: .b what?
[14:23:33] matthewd: graingert: bundler takes care of that
[14:23:51] graingert: matthewd: yeah but it installs somewhere outside of $HOME
[14:23:54] havenwood: graingert: Ruby typically installs gems to one location, but with Bundler (or even with just RubyGems) you can run your app with just the gems and gem versions in your Gemfile.lock.
[14:23:59] dminuoso: graingert: No it does not.
[14:24:01] fuzzyhorns1: https://ruby-doc.org/core-2.2.0/String.html#method-i-b
[14:24:07] fuzzyhorns1: literally the method b x)
[14:24:19] graingert: havenwood: ok, how do I configure that location
[14:24:22] dminuoso: fuzzyhorns1: Things I learn.. I did not even know that existed. o.o
[14:24:25] havenwood: graingert: There is a --user-install flag that will override Ubuntu's choice of --no-user-install.
[14:24:31] fuzzyhorns1: dminuoso: it is… not very readable lol
[14:24:35] havenwood: graingert: Alternatively you can use --install-dir.
[14:24:36] graingert: havenwood: is there an evnironment variable
[14:25:05] havenwood: graingert: You can set it permanently in your ~/.gemrc
[14:25:19] Fysicus: has joined #ruby
[14:25:42] cyphase: has joined #ruby
[14:26:02] havenwood: graingert: gem: --user-install
[14:26:08] havenwood: graingert: Or you can set GEM_HOME
[14:26:09] graingert: what do I put in it?
[14:26:13] fuzzyhorns1: dminuoso: im unsure if this zip is corrupted or if im just still not writing out the file right :/
[14:26:17] graingert: GEM_HOME sounds good
[14:26:23] dminuoso: fuzzyhorns1: Share your code please.
[14:26:24] havenwood: graingert: That's what chruby sets.
[14:26:43] graingert: havenwood: sure but I'm happy to set it to ~/.gems
[14:26:48] graingert: and leave it at that
[14:26:51] patarr: has joined #ruby
[14:27:04] havenwood: graingert: Yup, if you don't need to switch Rubies that's sane.
[14:27:17] graingert: havenwood: what do I need to put in ~/.gemrc
[14:27:22] graingert: is there a bin path to add too?
[14:27:37] nicoulaj46: has joined #ruby
[14:27:54] havenwood: graingert: chruby sets GEM_HOME, GEM_PATH, RUBY_ROOT, GEM_ROOT, adds gem binaries and ruby binaries to PATH
[14:28:16] havenwood: graingert: You can do those things for your one Ruby if you'd like.
[14:28:22] graingert: I just want to do that once with ~/.gems/ as the root
[14:28:40] havenwood: No, these are env vars we're talking about.
[14:28:52] graingert: I want to set them once in ~/.zshrc
[14:29:03] havenwood: Yeah, if you export them there that should cover it.
[14:30:12] havenwood: graingert: Or if you look at the Brightbox Ruby package you'll see they use ruby-switch, which is a package for switching. There is more than one way to do it!
[14:30:19] chouhoul_: has joined #ruby
[14:31:12] chouhoul_: has joined #ruby
[14:32:03] jphase: has joined #ruby
[14:33:04] Silthias: has joined #ruby
[14:34:35] Bish: why isn't there something like an ordered hash that when enumareted gives a defined order?
[14:35:01] fuzzyhorns1: dminuoso: literally it's just IO.binwrite('test.zip', zip.b)
[14:35:12] fuzzyhorns1: where zip is a String that i get in return from a Savon soap call :/
[14:35:21] fuzzyhorns1: which supposedly from the soap api documentation is a byte[]
[14:36:42] sepp2k: has joined #ruby
[14:38:38] r3vDev: has joined #ruby
[14:38:51] graingert: I come from python-land where there's one way
[14:39:03] havenwood: Bish: Hash is an ordered Hash.
[14:39:25] graingert: well two but virtualenv is wrong now
[14:40:48] havenwood: Bish: Hashes were unordered in 1.8.
[14:41:06] gizmore: has joined #ruby
[14:41:09] ResidentBiscuit: has joined #ruby
[14:41:28] havenwood: Then they switched it to be a doubly-circularly linked list.
[14:41:34] graingert: ok ruby-install is working
[14:41:42] graingert: lots of fun compiling rn
[14:42:21] havenwood: Bish: They're ordered by key insertion.
[14:43:15] isBEKaml: havenwood: Can you tell if this ordered-by-key-insertion followed from Python?
[14:45:06] __Yiota: has joined #ruby
[14:45:15] Bish: havenwood: isnt it just not guarenteed as said by documentation?
[14:45:17] havenwood: isBEKaml: I'm not sure on the history. I came to Ruby right as 1.9 became a thing.
[14:45:36] havenwood: Bish: Nope, If I recall it starts out saying it's ordered.
[14:45:38] isBEKaml: havenwood: I'm here in Ruby around 2.4 :-)
[14:45:55] havenwood: isBEKaml: Welcome!
[14:46:05] havenwood: Bish: "Hashes enumerate their values in the order that the corresponding keys were inserted."
[14:46:19] havenwood: Bish: ^ second paragraph in the docs
[14:46:27] havenwood: https://ruby-doc.org/core-2.4.1/Hash.html
[14:47:09] alex``: has joined #ruby
[14:47:58] tuelz: has joined #ruby
[14:48:14] chouhoulis: has joined #ruby
[14:49:51] enterprisey: has joined #ruby
[14:50:05] ascarter: has joined #ruby
[14:50:11] isBEKaml: havenwood: Thanks! I have a bit of Perl, smattering of Python and lots of Java. Currently, I'm getting sick and tired of hunting through documentation. I'd probably take out the "The Ruby way" book from library this week.
[14:52:42] smithascari: has joined #ruby
[14:53:30] DoubleMalt: has joined #ruby
[14:55:15] mimico: has joined #ruby
[14:55:35] jgpawletko: has joined #ruby
[14:58:34] amclain: has joined #ruby
[14:59:36] Miron: has joined #ruby
[15:00:26] rikkipitt: has joined #ruby
[15:02:02] mokiwis: has joined #ruby
[15:02:53] bkxd_: has joined #ruby
[15:03:47] bkxd___: has joined #ruby
[15:04:15] fnux: has joined #ruby
[15:04:50] theunraveler: has joined #ruby
[15:05:50] pwnd_nsfw: has joined #ruby
[15:06:20] synthroid: has joined #ruby
[15:07:42] Rodya_: has joined #ruby
[15:08:21] Fysicus: has joined #ruby
[15:11:04] nacsurte: has joined #ruby
[15:11:42] Fysicus: has joined #ruby
[15:12:10] cyphase: has joined #ruby
[15:12:49] cyphase: has joined #ruby
[15:12:52] futilegames: has joined #ruby
[15:15:05] Ainieco: has joined #ruby
[15:15:12] havenwood: Ainieco: hi
[15:15:19] GinoMan1423: has joined #ruby
[15:16:40] cyphase: has joined #ruby
[15:16:51] Ainieco: i have a class method "taste" defined in class Fruit which utilizes Fruit.name method within itself, also i have class "Apple < Fruit" which utilize method "taste" as well
[15:16:54] Ainieco: but "name" within "taste" returns Fruit even when alled against Apple, is there a way to fix it?
[15:17:46] havenwood: Ainieco: self.class.name
[15:18:16] judofyr: has joined #ruby
[15:18:28] cyphase: has joined #ruby
[15:18:28] havenwood: Ainieco: If you show your code in a gist (https://gist.github.com/) folk might have better suggestions.
[15:19:01] judofyr: has joined #ruby
[15:19:40] cyphase: has joined #ruby
[15:22:07] mim1k: has joined #ruby
[15:22:14] nacsurte: has joined #ruby
[15:22:29] tuelz: has joined #ruby
[15:24:15] MarkBilk_: has joined #ruby
[15:27:48] MarkBilk__: has joined #ruby
[15:30:29] judofyr: has joined #ruby
[15:30:51] synthroid: has joined #ruby
[15:34:38] judofyr: has joined #ruby
[15:39:12] droidburgundy: has joined #ruby
[15:39:31] yehowyada: has joined #ruby
[15:42:35] Rodya_: has joined #ruby
[15:43:05] mikecmpbll: has joined #ruby
[15:43:05] skweek: has joined #ruby
[15:43:49] brent__: has joined #ruby
[15:44:59] bkxd: has joined #ruby
[15:45:39] bkxd__: has joined #ruby
[15:47:10] meshsmith: has joined #ruby
[15:47:11] meshsmith: has joined #ruby
[15:47:33] baweaver: graingert: oh hey, more ##javascript folks
[15:47:45] nemesit|znc: has joined #ruby
[15:48:54] baweaver: We already managed to snare cjohnson. My evil plan is coming to fruition.
[15:49:24] adam12: Go get em
[15:50:19] cdg: has joined #ruby
[15:50:42] synthroid: has joined #ruby
[15:51:19] cdg_: has joined #ruby
[15:54:07] ascarter: has joined #ruby
[15:55:12] catphish: i've finally found a syscall i need that doesn't seem to have a ruby binding, kinda scared to write my own but might have to give it a go
[15:56:00] nacsurte: has joined #ruby
[15:56:47] catphish: i need linux's fallocate
[15:57:05] dviola: has joined #ruby
[16:00:49] shinnya: has joined #ruby
[16:01:53] Dimik: has joined #ruby
[16:04:00] [Butch]: has joined #ruby
[16:04:48] __Yiota: has joined #ruby
[16:05:39] tuelz: has joined #ruby
[16:07:00] wsewolod: has joined #ruby
[16:07:57] marxarelli: has joined #ruby
[16:10:43] Tharbakim: has joined #ruby
[16:10:43] Tharbakim: has joined #ruby
[16:12:02] zzxc: has joined #ruby
[16:16:09] havenwood: catphish: whatcha using it for?
[16:18:13] TomyLobo: has joined #ruby
[16:18:20] catphish: punching holes in files when the data is no longer needed
[16:18:42] catphish: you can use it for various things, my use is to free space in the middle of a file
[16:19:39] futilegames: has joined #ruby
[16:19:42] catphish: gotta run now :)
[16:20:10] perniciouscaffei: has joined #ruby
[16:20:25] r3vDev: has joined #ruby
[16:20:50] fuzzyhorns1: has joined #ruby
[16:23:04] cjohnson: What do I need to do to get vim-dispatch to play nicely with bundle exec rspec?
[16:24:50] nobitanobi: has joined #ruby
[16:25:21] uZiel: has joined #ruby
[16:28:41] mydog2: has joined #ruby
[16:29:07] gusrub: has joined #ruby
[16:30:19] muelleme_: has joined #ruby
[16:30:29] uZiel: has joined #ruby
[16:31:36] bkxd: has joined #ruby
[16:31:48] bkxd_: has joined #ruby
[16:34:31] cadillac__: has joined #ruby
[16:34:59] hahuang65: has joined #ruby
[16:37:23] dhaller: has joined #ruby
[16:37:39] dhaller: can anyone show me how to format the json in the bottom of this gist https://gist.github.com/anonymous/5002e0a44aa8d01fd41415ef7830c24e
[16:38:47] im0nde: has joined #ruby
[16:39:45] havenwood: dhaller: require 'json'; JSON.parse '{"action": "get_token"}' #=> {"action"=>"get_token"}
[16:40:08] dhaller: I mean the whole json
[16:40:08] tfitts: has joined #ruby
[16:40:10] havenwood: JSON.pretty_generate({"action"=>"get_token"}) #=> "{\n" + " \"action\": \"get_token\"\n" + "}"
[16:40:34] havenwood: dhaller: I just showed a snippet of your JSON so it fits in the console.
[16:40:49] havenwood: dhaller: Just for demonstration purposes. Parse whatever JSON you'd like.
[16:41:09] dhaller: I am thinking I am screwing up because there are many key values and I am not sure how to separate them correctly
[16:42:08] havenwood: dhaller: I don't think I understand the problem.
[16:42:09] wsewolod: has joined #ruby
[16:42:14] tvon: has joined #ruby
[16:42:17] havenwood: dhaller: Once you parse the JSON, what's the problem?
[16:42:36] dhaller: well your example has one key value pair, I am trying to achieve many
[16:42:38] dhaller: in one json
[16:43:16] havenwood: dhaller: require 'json'; JSON.parse '{"action": "get_token", "more": "it does not matter"}' #=> {"action"=>"get_token", "more"=>"it does not matter"}
[16:43:39] dhaller: the "#=>" is just showing what it produces?
[16:43:45] havenwood: dhaller: How is that a problem? I don't understand.
[16:43:46] havenwood: dhaller: Show what you're trying and where it goes wrong?
[16:43:52] havenwood: dhaller: Yeah, that's just saying this is the return value to the right #=>
[16:44:11] havenwood: 41 + 1 #=> 42
[16:45:45] xzhao_: has joined #ruby
[16:46:00] xzhao__: has joined #ruby
[16:46:01] havenwood: cjohnson: is it not identifying the correct compiler or something else?
[16:46:12] kruppm: dhaller: https://repl.it/JENn
[16:46:23] kruppm: dhaller: easier to read, than one-liners on IRC :)
[16:47:32] dhaller: do you know how I would add that to the curl command
[16:47:57] havenwood: dhaller: First you don't have to shell out to curl. Ruby ships with net/http and open-uri.
[16:48:43] havenwood: dhaller: Assuming JSON is returned, you can just parse it. Have you tried parsing the response body?
[16:49:28] dhaller: without having to get into figuring that out, any chance you can show me how to get the right syntax for the curl function
[16:49:34] t-recx: has joined #ruby
[16:49:35] dhaller: its just for a test
[16:49:45] hahuang65: has joined #ruby
[16:50:20] dhaller: put object after data?
[16:50:36] havenwood: dhaller: I still don't understand your problem. Try your code.
[16:50:50] havenwood: dhaller: For example, in irb, try: require 'json'; JSON.parse `curl swapi.co/api/`
[16:51:29] kruppm: dhaller: https://repl.it/JENn/1
[16:51:50] havenwood: dhaller: An aside, but jq is a nice JSON parser for the command line. Compare the result: curl swapi.co/api/ | jq
[16:51:57] havenwood: dhaller: (If you install jq.)
[16:54:03] tuelz: has joined #ruby
[16:54:14] moneylotion: has joined #ruby
[16:56:52] ascarter: has joined #ruby
[16:57:49] tAn: has joined #ruby
[16:59:18] jnollette: has joined #ruby
[17:00:20] moneylotion: has joined #ruby
[17:00:44] xzhao_: has joined #ruby
[17:00:46] railswebdev: has joined #ruby
[17:01:06] jackjackdripper: has joined #ruby
[17:01:32] cats: has joined #ruby
[17:02:32] Danny: has joined #ruby
[17:03:12] uZiel: has joined #ruby
[17:06:35] cbyrda: has joined #ruby
[17:07:40] bkxd__: has joined #ruby
[17:08:09] bkxd___: has joined #ruby
[17:15:35] Pumukel: has joined #ruby
[17:17:35] Cohedrin_: has joined #ruby
[17:17:47] dionysus69: has joined #ruby
[17:18:14] tgragnato: has joined #ruby
[17:19:07] moneylotion: has left #ruby: ("Leaving...")
[17:20:22] mikecmpbll: has joined #ruby
[17:22:09] graft_: has joined #ruby
[17:22:42] GinoMan1423: has joined #ruby
[17:23:41] graft: ok, bundler trouble - i'm installing something from github, e.g. "gem 'mygem', github: 'mygem/mygem'", but it doesn't show up in gem list, only with bundle list
[17:23:50] graft: even if i do bundle --system install
[17:24:17] graft: on the other hand if i clone/build/install the gem by hand, it installs to gem list just fine
[17:24:23] graft: any way to get bundler to do the same?
[17:27:35] kies: has joined #ruby
[17:27:59] inkky: has joined #ruby
[17:33:36] urux: has left #ruby: ()
[17:35:00] elsevero: has joined #ruby
[17:39:38] kruppm: has joined #ruby
[17:41:01] dasher00: has joined #ruby
[17:41:37] conta: has joined #ruby
[17:41:57] hahuang65: has joined #ruby
[17:42:02] conta: has joined #ruby
[17:44:08] dropsh0t: graft, show the Gemfile
[17:45:02] minimalism: has joined #ruby
[17:47:51] bkxd: has joined #ruby
[17:51:44] matthewd: graft: No; bundler doesn't install it locally, so it's not going to be there. Why do you care?
[17:52:17] bkxd_: has joined #ruby
[17:58:17] ascarter: has joined #ruby
[17:58:18] apofis: has joined #ruby
[17:59:20] synthroid: has joined #ruby
[18:01:22] romank: has joined #ruby
[18:02:46] James123: has joined #ruby
[18:03:58] James123: I have create a hash like this: h = Hash.new( [] ), and I am trying to add values with h[ foo ] << bar, but it doesn't work... any ideas to fix it?
[18:07:11] loechel: has joined #ruby
[18:07:45] graft: matthewd: i'm not sure why i care yet, i'm just trying to determine why there is a difference
[18:08:10] xzhao: has joined #ruby
[18:08:23] graft: matthewd: i guess my reasoning is if i can install it locally, i don't have to require bundler to run my app
[18:09:39] baweaver: James123: Define doesn't work
[18:09:41] ruby-lang369: has joined #ruby
[18:09:52] ruby-lang369: How can I update the version of ruby in a rails project that uses rvm?
[18:10:14] James123: baweaver: Yes. h remains empty after h[ foo ] << bar
[18:10:19] baweaver: Make a .ruby-version file to make RVM detect it.
[18:10:29] GinoMan1423: has joined #ruby
[18:10:54] baweaver: Are you literally passing foo to it or is that a string? Fake code isn't very easy to tell what's going on.
[18:12:28] baweaver: Though you'll find that Hash.new(value) won't work with arrays. You'd need a block for that one: Hash.new { |h,k| h[k] = [] }
[18:12:39] elsevero: has joined #ruby
[18:13:20] James123: baweaver: foo is a variable that contains a string. Using the block as you suggested solved the problem. Thank you
[18:15:11] graft: has joined #ruby
[18:15:11] graft: has joined #ruby
[18:15:39] gusrub: has joined #ruby
[18:18:59] raspado: has joined #ruby
[18:19:44] enterprisey: has joined #ruby
[18:20:33] ringrong: has joined #ruby
[18:21:02] gusrub: has joined #ruby
[18:23:09] snowcrshd: has joined #ruby
[18:25:13] dhaller: has joined #ruby
[18:26:03] GodFather: has joined #ruby
[18:27:16] nadir: has joined #ruby
[18:28:12] futilegames: has joined #ruby
[18:29:02] hutch34: has joined #ruby
[18:30:03] bkxd__: has joined #ruby
[18:30:05] bkxd___: has joined #ruby
[18:33:00] dionysus69: has joined #ruby
[18:33:08] SeepingN: has joined #ruby
[18:33:11] Cohedrin_: has joined #ruby
[18:35:39] graft: has joined #ruby
[18:35:39] graft: has joined #ruby
[18:36:22] Zinefer: has joined #ruby
[18:37:12] Zinefer: hello everyone ... i am in rails and i have a class that i created in lib/ ... i am trying to get access to the current controllers name but it keeps giving me undefined errors
[18:37:33] Zinefer: i know this is possible because will_paginate does it: https://github.com/mislav/will_paginate/blob/master/lib/will_paginate/view_helpers/action_view.rb#L92
[18:38:15] havenwood: Zinefer: Have you tried #controller_name yet?
[18:38:30] havenwood: Zinefer: There's a #RubyOnRails channel specific to Rails.
[18:38:51] Zinefer: fantastic, i will go over there, thank you
[18:39:23] havenwood: Zinefer: You'll just need to register and identify your nick for that channel if you haven't already.
[18:44:23] NightMonkey: has joined #ruby
[18:44:28] andrzejku: has joined #ruby
[18:45:47] comet23: has joined #ruby
[18:46:05] comet23: !(true && false)
[18:46:15] comet23: how does that equal to true?
[18:46:38] comet23: is it because of the parentheses?
[18:46:55] comet23: like true && false = false and !false = true?
[18:46:56] eam_: comet23: what's true && false?
[18:47:01] Cohedrin_: has joined #ruby
[18:47:16] comet23: it's just an example, a multiple choice question thati got wrong
[18:48:43] SeepingN: basic logic
[18:49:52] gusrub: has joined #ruby
[18:51:25] skweek: has joined #ruby
[18:53:59] tgragnato: has joined #ruby
[18:56:27] elsevero: has joined #ruby
[18:58:23] Renich: has joined #ruby
[19:00:47] Cohedrin_: has joined #ruby
[19:02:18] `tim`: has joined #ruby
[19:02:28] Cohedrin_: has joined #ruby
[19:02:35] tvw: has joined #ruby
[19:02:55] tuelz: has joined #ruby
[19:04:00] maciusze1: has joined #ruby
[19:04:19] gusrub: has joined #ruby
[19:04:22] inkky: has left #ruby: ("Leaving")
[19:05:22] Uranio: has joined #ruby
[19:06:17] graft: has joined #ruby
[19:06:17] graft: has joined #ruby
[19:09:47] KeyJoo: has joined #ruby
[19:09:58] dhaller: has joined #ruby
[19:10:39] jenrzzz: has joined #ruby
[19:16:18] bkxd: has joined #ruby
[19:16:43] bkxd_: has joined #ruby
[19:17:46] jane_booty_doe: has joined #ruby
[19:20:54] ur5us: has joined #ruby
[19:21:13] Cohedrin_: has joined #ruby
[19:21:40] khaki: has joined #ruby
[19:22:38] cyphase: has joined #ruby
[19:23:00] blackwind_123: has joined #ruby
[19:24:39] __Yiota: has joined #ruby
[19:26:14] mikecmpbll: eh i'm feeling particularly stupid tonight
[19:26:32] mikecmpbll: can someone explain what is going on in the following:
[19:26:36] lxsameer: has joined #ruby
[19:26:38] mikecmpbll: >> "wah"&.to_s
[19:26:40] ruby[bot]: mikecmpbll: # => "wah" (https://eval.in/823247)
[19:26:50] mikecmpbll: or any similar object and method with an & in between
[19:26:56] mikecmpbll: >> "wah"&.upcase
[19:26:57] ruby[bot]: mikecmpbll: # => "WAH" (https://eval.in/823248)
[19:26:58] cyphase: has joined #ruby
[19:27:36] cyphase: has joined #ruby
[19:27:38] havenwood: mikecmpbll: If "wah" responds to :upcase it'll call it, otherwise the expression will return: nil
[19:27:47] mikecmpbll: >> "wah"&.abcdef
[19:27:48] ruby[bot]: mikecmpbll: # => undefined method `abcdef' for "wah":String (NoMethodError) ...check link for more (https://eval.in/823249)
[19:27:57] havenwood: mikecmpbll: It's the lonely person operator. The Ampersand is sitting lonely, staring at a dot.
[19:28:18] cyphase: has joined #ruby
[19:28:27] mikecmpbll: oh if the receiver is nil
[19:28:39] MrBusiness: has joined #ruby
[19:29:00] mikecmpbll: ahh shit. i read about this months ago. god my memory is terrible. cheers for pointing my in the right direction ;)
[19:29:01] havenwood: mikecmpbll: Yeah, I said that poorly, but it's for returning `nil` when the receiver is `nil`.
[19:29:31] havenwood: mikecmpbll: Usually you chain them 'till the last method if you use one.
[19:29:43] havenwood: nil&.this&.that
[19:29:53] havenwood: better than:
[19:30:01] havenwood: nil && nil.this && nil.this.that
[19:30:10] dhaller: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[19:30:24] havenwood: s/nil/value_which_might_be_nil
[19:30:36] mikecmpbll: πŸ‘πŸΌ i remember all about it now. i was getting mad confused with the the .to_proc kinda &
[19:30:47] cyphase: has joined #ruby
[19:32:17] sspreitz: has joined #ruby
[19:34:46] gusrub_: has joined #ruby
[19:35:22] hahuang65: has joined #ruby
[19:35:42] Papierkorb: mikecmpbll: just make sure to actually chain &., and not use just dot afterwards. `foo&.bar.baz` is equal to `(foo && foo.bar).baz`, which will most likely raise a NoMethodError.
[19:37:22] mikecmpbll: πŸ‘πŸΌ
[19:38:12] duderonomy: has joined #ruby
[19:39:25] ged_: has joined #ruby
[19:39:49] ur5us: has joined #ruby
[19:44:24] rkazak_: has joined #ruby
[19:45:45] catphish: has joined #ruby
[19:46:56] SuperLag: has joined #ruby
[19:47:18] jenrzzz_: has joined #ruby
[19:47:25] catphish: so, i want to call linux's fallocate() (a kernel call) from ruby, there seems to be no built in way to do this, nor any gem i can find, am i right in thinking the only way to do this is to create a gem containing (probably minimal) c code?
[19:49:04] Coldblackice: has joined #ruby
[19:49:10] catphish: actually, perhaps FFI can do kernel calls without having to write any C
[19:49:47] havenwood: catphish: https://github.com/pwnall/fallocate
[19:50:28] catphish: havenwood: i'm actually reading that code, sadly it doesn't actually call fallocate, despite its name
[19:50:40] havenwood: catphish: yeah, was just reading myself
[19:50:52] catphish: but it looks like a good example of how to do a system call in pure(ish) ruby
[19:51:22] cyphase: has joined #ruby
[19:52:13] havenwood: catphish: FFI seems like the right track to me.
[19:52:37] Ka: Would be good to use for database for a bot i would like to use something that I could evenually interface with a rails application
[19:52:47] catphish: havenwood: thanks, i will follow the example in that gem and see if it works
[19:54:33] havenwood: Ka: DBM in various variants is in the stdlib. You could use YAML::DBM for String keys and YAML values.
[19:54:39] Coldblackice_: has joined #ruby
[19:54:48] havenwood: Ka: Do you want to use the same DB as your eventual Rails app? Or do you mean alongside? Or?
[19:55:15] Ka: along side, mostly it will a user database and then a channel database
[19:55:31] havenwood: Ka: I tend to use PostgreSQL with Rails.
[19:55:53] havenwood: Ka: Whacha using this bot db for?
[19:56:18] havenwood: Ka: What characteristics does it need?
[19:56:44] havenwood: Can it just be in memory or do you need disk persistence? Does it frequently read or write? Is it relational?
[19:56:45] Ka: creating an irc bot, would like to evenually have a web panel (app) using rails
[19:56:58] Ka: it would have the users and channels
[19:57:10] havenwood: Ka: You can always start with something simple and then swap in something more robust later.
[19:57:24] sspreitz: has joined #ruby
[19:57:47] havenwood: Ka: Ruby has transactional file stores like PStore (using Marshal) and YAML::Store (using YAML) in the stdlib or the aforementioned YAML::DBM.
[19:58:04] Ka: ok ill take a look at those thanks :)
[19:58:20] havenwood: no prob, happy coding!
[19:58:59] bkxd__: has joined #ruby
[19:59:03] bkxd___: has joined #ruby
[19:59:12] SuperL4g: has joined #ruby
[19:59:31] havenwood: A light wrapper around Rinda::TupleSpace makes a fine in-memory cache store for project spikes. I used one recently and was really happy with it.
[19:59:42] Coldblackice_: has joined #ruby
[20:00:14] havenwood: Just expanding on this basic premise: https://gist.github.com/havenwood/944106a57b4015240691ac617b80d827
[20:00:28] havenwood: ACTION wanders off in search of food
[20:00:38] dasher00: has joined #ruby
[20:01:32] tvon: has joined #ruby
[20:02:04] jenrzzz: has joined #ruby
[20:02:04] jenrzzz: has joined #ruby
[20:02:07] tvon: has joined #ruby
[20:05:06] gusrub: has joined #ruby
[20:06:35] chimkan: has joined #ruby
[20:07:07] jordanm: has joined #ruby
[20:07:57] Coldblackice: has joined #ruby
[20:13:58] catphish: havenwood: works perfectly with FFI: https://paste.ubuntu.com/24965663/
[20:15:30] chrisgopher: has joined #ruby
[20:16:11] adam12: catphish: nice
[20:17:10] Cohedrin_: has joined #ruby
[20:20:47] synthroid: has joined #ruby
[20:24:47] Ainieco: has joined #ruby
[20:25:08] futilegames: has joined #ruby
[20:26:35] mim1k: has joined #ruby
[20:27:54] hahuang65: has joined #ruby
[20:32:44] gusrub: has joined #ruby
[20:34:11] Mia: has joined #ruby
[20:34:12] Mia: has joined #ruby
[20:35:19] gusrub_: has joined #ruby
[20:39:39] milardovich: has joined #ruby
[20:40:09] nowhere_man: has joined #ruby
[20:40:21] bkxd: has joined #ruby
[20:40:23] harfangk: has joined #ruby
[20:40:40] Tau: has joined #ruby
[20:40:41] bkxd_: has joined #ruby
[20:41:27] Tau: has joined #ruby
[20:42:33] hahuang65: has joined #ruby
[20:45:01] jnollette: has joined #ruby
[20:45:05] Pumukel_: has joined #ruby
[20:46:37] S1kx: has joined #ruby
[20:52:29] Bock: has joined #ruby
[20:52:47] _mak: has joined #ruby
[20:52:59] tvon: has joined #ruby
[20:58:37] rkazak_: has joined #ruby
[20:58:52] Rodya_: has joined #ruby
[21:01:54] Coldblackice_: has joined #ruby
[21:03:10] GinoMan2440: has joined #ruby
[21:05:08] snowcrshd: has joined #ruby
[21:08:14] brent__: has joined #ruby
[21:09:06] al2o3-cr: has joined #ruby
[21:15:09] d5sx43: has joined #ruby
[21:17:24] nacsurte: has joined #ruby
[21:19:06] tuelz: has joined #ruby
[21:19:55] __Yiota: has joined #ruby
[21:21:16] bkxd__: has joined #ruby
[21:21:16] blackwind_123: has joined #ruby
[21:22:51] bkxd: has joined #ruby
[21:23:47] GinoMan: has joined #ruby
[21:26:40] guacamole: has joined #ruby
[21:27:36] ur5us: has joined #ruby
[21:36:45] joast: has joined #ruby
[21:38:11] __Yiota: has joined #ruby
[21:38:20] Cohedrin_: has joined #ruby
[21:39:29] moei: has joined #ruby
[21:45:47] br0d1n: has joined #ruby
[21:47:39] tuelz: has joined #ruby
[21:47:56] electrostat: has joined #ruby
[21:49:54] joast: has joined #ruby
[21:50:30] Cohedrin_: has joined #ruby
[22:00:29] chouhoul_: has joined #ruby
[22:05:19] bkxd: has joined #ruby
[22:05:31] cyphase: has joined #ruby
[22:05:49] GodFather: has joined #ruby
[22:06:03] contradictioned: has joined #ruby
[22:06:07] cyphase: has joined #ruby
[22:06:31] GodFather: has joined #ruby
[22:06:57] nacsurte: has joined #ruby
[22:07:27] enterprisey: has joined #ruby
[22:08:29] xRob_: has joined #ruby
[22:10:21] bkxd_: has joined #ruby
[22:10:38] cyphase: has joined #ruby
[22:13:46] cyphase: has joined #ruby
[22:20:08] cyphase: has joined #ruby
[22:21:31] Jazz001: has joined #ruby
[22:21:55] Jazz001: has joined #ruby
[22:24:55] cyphase: has joined #ruby
[22:25:09] Cohedrin_: has joined #ruby
[22:27:08] roshanavand: has joined #ruby
[22:27:09] MarkBilk_: has joined #ruby
[22:29:56] arescorpio: has joined #ruby
[22:36:35] jphase_: has joined #ruby
[22:37:03] workmad3: has joined #ruby
[22:41:44] mydog2: has joined #ruby
[22:42:39] mim1k: has joined #ruby
[22:43:22] agent_white: has joined #ruby
[22:46:44] mydog2: has joined #ruby
[22:47:48] BSaboia: has joined #ruby
[22:49:59] mydog2: has joined #ruby
[23:01:03] Kug3lis: has joined #ruby
[23:04:12] patarr: has joined #ruby
[23:05:23] milardovich: has joined #ruby
[23:07:11] t-recx: has joined #ruby
[23:19:34] __Yiota: has joined #ruby
[23:21:26] chrisgopher: has joined #ruby
[23:23:43] nadir: has joined #ruby
[23:31:21] Jameser: has joined #ruby
[23:33:14] Cohedrin_: has joined #ruby
[23:34:12] wsewolod: has joined #ruby
[23:34:26] jenrzzz: has joined #ruby
[23:34:38] jenrzzz: has joined #ruby
[23:37:48] ColeHub: has joined #ruby
[23:41:11] BTRE: has joined #ruby
[23:41:16] zacts: has joined #ruby
[23:42:01] 7GHABAWW5: has joined #ruby
[23:42:01] 7F1AAAR59: has joined #ruby
[23:48:36] Guest2429: has joined #ruby
[23:48:56] mwlang: has joined #ruby
[23:49:52] meshsmith: has joined #ruby
[23:49:53] meshsmith: has joined #ruby
[23:55:51] Ericx2x: has joined #ruby
[23:57:27] charliesome: has joined #ruby