fenjamin

Activity Graph

Page 1 of 1

2015-08-10

[14:09:31] fenjamin: has joined #ruby
[14:09:51] fenjamin: can we put irb in irc?
[14:11:38] fenjamin: >> class Test
[14:11:59] fenjamin: i like that
[14:12:18] fenjamin: ok i will play with this for 20 minutes.
[14:16:12] fenjamin: where can i learn about ruboto?
[14:19:17] fenjamin: oo baby. beautiful, i like this.
[14:19:39] fenjamin: a wealth of a resource
[14:20:54] fenjamin: yeah the internet is a pretty great resource for learning how to program
[14:21:46] fenjamin: the internet is pretty good, gravel is not so good
[14:24:48] fenjamin: ok today will be learning these resources because in learning programming, Mondays are Saturdays!
[14:25:31] fenjamin: Quit: ??????

2015-08-08

[02:17:50] fenjamin: has joined #ruby
[02:18:35] fenjamin: just interviewed for my first contracting position - need a compelling prompt to show my skills.
[02:22:35] fenjamin: beyond FizzBuzz
[02:23:29] fenjamin: something with unique solutions
[02:27:00] fenjamin: identity and existence are judeo-christian constructs. only in islam do we not exist.
[02:32:43] fenjamin: point is something I can express in code - something like print a bingo board
[02:32:50] fenjamin: but perhaps more compelling
[02:33:23] fenjamin: projects are under development - long term portfolio - nothing much immediate
[02:35:21] fenjamin: innocuous to show embouchure
[02:37:20] fenjamin: i would like something of a bit more substance
[02:41:14] fenjamin: possibly. could use more investigation.
[02:42:06] fenjamin: i'll call it "mindsex"
[02:42:52] fenjamin: cheers, off to research and investigate
[04:30:50] fenjamin: Remote host closed the connection
[23:16:43] fenjamin: has joined #ruby
[23:38:48] fenjamin: Remote host closed the connection

2015-08-07

[02:29:14] fenjamin: has joined #ruby
[02:29:22] fenjamin: /msg NickServ identify a#%zS*S*b
[02:30:02] fenjamin: don't you touch my reputation!!
[02:30:05] fenjamin: Disconnected by services
[02:30:53] fenjamin: Look at all this free reputation!
[02:31:33] fenjamin: But then I'll become a ghost...
[02:31:49] fenjamin: Disconnected by services

2015-08-01

[03:08:54] fenjamin: has joined #ruby
[04:50:51] fenjamin: Ping timeout: 240 seconds
[13:56:42] fenjamin: has joined #ruby
[13:56:59] fenjamin: Remote host closed the connection

2015-07-31

[00:28:07] fenjamin: has joined #ruby
[01:36:07] fenjamin: Remote host closed the connection

2015-07-30

[00:20:50] fenjamin: has joined #ruby
[03:51:04] fenjamin: Ping timeout: 244 seconds
[04:29:13] fenjamin: has joined #ruby
[06:02:47] fenjamin: Ping timeout: 240 seconds
[16:32:24] fenjamin: has joined #ruby
[17:27:51] fenjamin: Ping timeout: 240 seconds
[17:29:12] fenjamin: has joined #ruby
[19:33:43] fenjamin: Ping timeout: 255 seconds
[19:41:41] fenjamin: has joined #ruby
[23:22:19] fenjamin: Ping timeout: 255 seconds

2015-07-29

[01:19:02] fenjamin: has joined #ruby
[02:09:44] fenjamin: Ping timeout: 265 seconds
[16:32:14] fenjamin: has joined #ruby
[19:13:01] fenjamin: Ping timeout: 264 seconds
[19:13:20] fenjamin: has joined #ruby
[23:36:26] fenjamin: Ping timeout: 256 seconds

2015-07-28

[15:22:26] fenjamin: has joined #ruby
[15:36:44] fenjamin: hi, i am destructively modifying an array with the array, min_value, and value passed a parameters
[15:36:55] fenjamin: def pad!(array, min_value, value = nil)
[15:38:05] fenjamin: placing blocks and objects in the body of the method, what is the object?
[15:39:04] fenjamin: there is an rspec however I'm unsure if i call the array in the body or outside the body
[15:40:01] fenjamin: If the array's length is less than the minimum size, `pad` should return a new array padded with the pad value up to the minimum size.
[15:40:01] fenjamin: write two methods `pad` and `pad!`. Each method accepts an array, a minimum size (non-negative integer) for the array, and an optional argument of what the array should be "padded" with (see the example with "apple" below).
[15:41:02] fenjamin: https://gist.github.com/papermache/06887b330c54b9e694b2
[15:41:04] fenjamin: get the gist?
[15:48:47] fenjamin: Quit: ??????

2015-07-22

[03:52:07] fenjamin: has joined #ruby
[03:52:29] fenjamin: there was a computer science phd thesis that explained computer programs
[03:52:44] fenjamin: type in a program and it explains how it runs
[03:53:29] fenjamin: does anyone know this project?
[03:58:14] fenjamin: input a code snippet and it would explain in blocks and lines how each line worked
[03:59:34] fenjamin: javascript, python, ruby i believe
[04:00:27] fenjamin: no, a programming academy showed it briefly
[04:02:06] fenjamin: it would explain a for loop or an if statement
[04:09:07] fenjamin: Quit: ??????
[04:54:34] fenjamin: has joined #ruby
[06:11:46] fenjamin: Remote host closed the connection

2015-07-19

[05:13:59] fenjamin: has joined #ruby
[05:18:01] fenjamin: merely curious: perhaps in an exercise of DRY programming if the program understandably does what's expected, there are zero bugs, why then must methods be named consistent with the program? the method names can be gibberish, in other words
[05:18:52] fenjamin: other than it helps others to read the program (which people can infer about how it works even if the methods are gibberish?
[05:20:51] fenjamin: [k thanks for clarifying
[05:21:17] fenjamin: inference has its limits
[05:22:50] fenjamin: free of dependencies?
[05:24:28] fenjamin: where's that?
[05:30:06] fenjamin: yes I'm finding something with explicit naming conventions it can become a "who's on first" routine
[05:34:12] fenjamin: ox0dea: ::?
[05:34:26] fenjamin: Ox0dea: ::?
[05:39:49] fenjamin: if i understand correctly namespacing is organizationally nesting methods?
[05:40:18] fenjamin: Ox0dea: you're a treasure
[05:41:10] fenjamin: without using |x|
[05:41:46] fenjamin: {|x| x p y} rather
[06:00:20] fenjamin: Quit: ??????
[16:01:28] fenjamin: has joined #ruby
[16:01:39] fenjamin: http://pastie.org/10301006
[16:04:00] fenjamin: i have an output of a .csv file into one array, need nested into 4 elements
[16:06:51] fenjamin: pastie takes a .csv file and returns an array from a row however i need that array nested into 4 elements. [[a,b,c,d],[e,f,g,h],[i,j,k,l],[m,n,o,p]]
[16:07:33] fenjamin: rather 4 elements per nested array into however many arrays as the dataset.
[16:10:13] fenjamin: among problem solving abilities.
[16:10:25] fenjamin: which are correlated quite possibly.
[16:11:23] fenjamin: is it understandable? i have [a,b,c,d,e,f,g,...z] need [[a,b,c,d],[e,f,g,h],[i,j,k,l]. . etc]
[16:13:24] fenjamin: https://docs.google.com/spreadsheets/d/1X-Iby8lActVhcQ4Ng4tgI615BodflLdcKFYU6Rt0B8w/edit?usp=sharing
[16:14:33] fenjamin: to clarify: i would append this to the .csv parameter?
[16:15:04] fenjamin: foreach('file.csv', headers:true).each_slice(4)
[16:17:51] fenjamin: pontiki: agree FenrirReturns: curious solution - [#<CSV::Row "New York":"Alicia MacLennan" nil:nil
[16:23:20] fenjamin: Quit: ??????

2015-07-15

[01:58:57] fenjamin: has joined #ruby
[01:59:16] fenjamin: does ruby support concaffeination?
[03:11:43] fenjamin: Ping timeout: 248 seconds
[03:17:27] fenjamin: has joined #ruby
[03:35:17] fenjamin: Ping timeout: 244 seconds
[03:37:36] fenjamin: has joined #ruby
[04:40:37] fenjamin: Ping timeout: 246 seconds
[04:51:10] fenjamin: has joined #ruby
[05:15:07] fenjamin: Ping timeout: 250 seconds
[14:40:03] fenjamin: has joined #ruby
[15:40:49] fenjamin: Ping timeout: 264 seconds
[17:14:48] fenjamin: has joined #ruby
[17:31:37] fenjamin: Ping timeout: 264 seconds

2015-07-12

[03:54:12] fenjamin: Quit: ??????

2015-07-11

[13:50:20] fenjamin: has joined #ruby
[13:58:24] fenjamin: is there a place to go for a more introductory conversation on Ruby?
[14:00:35] fenjamin: im trying to write a method that takes an integer as its input and returns a comma separated integer as a string
[14:10:42] fenjamin: Quit: ??????
[23:15:57] fenjamin: has joined #ruby
[23:17:07] fenjamin: im looking at destructive methods and {|tree| tree + " Tree"}
[23:17:53] fenjamin: more specifically trees.collect! {|tree| tree + " Tree"}
[23:18:33] fenjamin: i've assigned trees to an array and would like to understand more about {|tree| tree + " Tree"}
[23:19:09] fenjamin: |tree| what does that mean?
[23:19:57] fenjamin: it inserts Tree into the array
[23:22:13] fenjamin: the array is called trees - how does it unerstand |trees|?
[23:23:12] fenjamin: if i call an array times then call the item |time| Ruby understand singular?
[23:23:16] fenjamin: does that makes sense?
[23:23:34] fenjamin: ok so item can be anything
[23:25:05] fenjamin: i didn't declare tree as a parameter, i can still call |tree| (or |treats| or |trease|) and it still understands as an item?
[23:26:14] fenjamin: and so || is to declare an item without using a parameter?
[23:27:37] fenjamin: I understand clearly!
[23:30:03] fenjamin: you would only declare a parameter if you have no use immediately using it
[23:32:37] fenjamin: blocks really really want to use a method that you didn't do anything to previously
[23:32:52] fenjamin: *use blocks when you really really want to use a method that yo udidn't do anything to previously
[23:34:12] fenjamin: when you declare a method without a parameter you can use a block on that method when you suddenly need to do something to that method
[23:34:33] fenjamin: parameters merely save an ability to perform something
[23:34:59] fenjamin: aperios: i know and love this part of ruby. my programming school curriculm feels otherwise.
[23:35:48] fenjamin: which makes it tremendously confusing and hard to understand because i feel like i'm performing a routine of "who's on first"
[23:36:51] fenjamin: but in and of themselves are useless until you perform an action on them
[23:37:19] fenjamin: apeiros, cool
[23:37:29] fenjamin: this helps me to learn

2015-07-07

[05:05:41] fenjamin: Remote host closed the connection
[13:12:26] fenjamin: has joined #ruby
[13:16:04] fenjamin: hi, is there a better place to talk about json?
[13:18:22] fenjamin: i want activity to update across servers
[13:19:43] fenjamin: i can think of this for myself but i would a but of clarity
[13:20:26] fenjamin: when a transaction occurs, i would like the charts to update on all servers
[13:22:52] fenjamin: i'll do some more homework and come back when the weather's better
[13:23:15] fenjamin: you guys going to be around?
[13:24:20] fenjamin: i'll be back a little after that - give you time to leave:-)
[13:27:07] fenjamin: Quit: ??????

2015-07-06

[02:54:23] fenjamin: has joined #ruby
[04:16:10] fenjamin: Remote host closed the connection
[23:05:32] fenjamin: has joined #ruby
[23:06:21] fenjamin: hi, i would like to know how to use javascript within ruby - i have a javascript file I woud like to be triggered by a ruby file.
[23:07:21] fenjamin: http://jsfiddle.net/SykAf/92/
[23:07:41] fenjamin: this javascript file needs to be triggered and modified by ruby logic
[23:07:58] fenjamin: the overall logic for the program is ruby however javascript files are dependencies
[23:08:55] fenjamin: so i would prefer an event to modify the javascript file - update the chart -
[23:09:21] fenjamin: when the event initiates, i would like the javascript chart to update with the activity
[23:10:15] fenjamin: im trying to make it a protocol therefore stateless
[23:11:50] fenjamin: I'm trying to visualize transactions - when the transaction takes place, the chart updates
[23:12:43] fenjamin: so when there is a purchase, the chart updates equal to the amount purchased.
[23:13:03] fenjamin: it would be hosted locally
[23:15:31] fenjamin: jsonp but yes
[23:22:49] fenjamin: yes i agree - i will use RESTful to make the request then jsonp to update the chart - this can be done entirely in javascript? or can ruby structure the logic?
[23:24:08] fenjamin: i agree. and the server side can be ruby?
[23:26:20] fenjamin: so then how can i combine the two languages to create a full stack stateless api
[23:27:51] fenjamin: the server side is ruby, the client side is js, how can these together be used?
[23:30:13] fenjamin: that's the link i was looking for
[23:33:46] fenjamin: ok i will implement RESTful using $http in Ruby without a backbone
[23:34:58] fenjamin: baweaver: truth
[23:36:55] fenjamin: thanks, it's clear

2015-06-28

[02:34:59] fenjamin: Ping timeout: 246 seconds
[02:36:16] fenjamin: has joined #ruby
[03:33:35] fenjamin: Ping timeout: 248 seconds
[03:35:47] fenjamin: has joined #ruby
[03:37:21] fenjamin: Remote host closed the connection

2015-06-27

[22:59:24] fenjamin: has joined #ruby
[22:59:57] fenjamin: hi, when looping through an iterated range and reach the highest limit, does the loop return to the beginning lowest loop?
[23:00:46] fenjamin: (a..z) iterate and shift +4 then output to an array - the final 4 letters must return back to the lowest point of range
[23:01:49] fenjamin: Remote host closed the connection
[23:04:41] fenjamin: has joined #ruby
[23:04:52] fenjamin: anyone here?
[23:05:36] fenjamin: hi, we are iterating through a range
[23:06:05] fenjamin: and want to output to an array of every value in the range shifted by 4
[23:06:32] fenjamin: so a return d
[23:07:17] fenjamin: when the loop arrives at the end of the range like w,x,y,z, we need to return a,b,c,d
[23:08:11] fenjamin: forgive me, i exited before i saw his solution
[23:12:22] fenjamin: so ("a".."z").cycle.to_a(4)
[23:19:12] fenjamin: >> e = ('a'..'d').to_enum.cycle; 5.times { p e.next }
[23:20:04] fenjamin: returns <Enumerator:00000273427384>
[23:22:31] fenjamin: volty - returned an array without shifting letters
[23:27:13] fenjamin: shift - ("a".."d") returns ["d","e","a","b","c"]
[23:29:00] fenjamin: >>('a'..'z').to_a.rotate 4

2015-05-08

[23:34:03] fenjamin: hi folks, I'm learning a bit about the rails asset pipeline for a framework API I'm creating
[23:34:58] fenjamin: each client will host their own build and each server update will propagate across the network