Open Side Menu Go to the Top

06-16-2014 , 12:40 AM
And then there's always http://blog.sigfpe.com/2006/01/eleve...askell-as.html

(check the numbering)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
06-16-2014 , 12:46 AM
There's 3 kinds of mathematicians in the world: those that can count and those that cannot.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-16-2014 , 12:51 AM
Actual conversation from my old math department gaming group:

"OK, so 75 plus 45, that's 150."
"No it isn't."
"Oh, right. I meant 115."
(blank stare)
"Look, I'm a mathematician, not a calculator."
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-16-2014 , 08:22 AM
Postgres hstore is super cool. Making this massive amount of random profile information I'm trying to collect a breeze.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-16-2014 , 06:25 PM
Quote:
Originally Posted by daveT
You may have other structural problems with the code.
yep

Quote:
Originally Posted by gaming_mouse
No one can comment intelligently on that code without more context.
Well I ended up changing a bunch of things but this is what I had about a month ago after asking about this exact same code. If you remember, I was asking about using instance variables kinda like globals for an object. I ended up changing the class to a module and changed the instance variables (madeHands, twoCardHand, hasPair) into normal variables passed around from function to function,

Code:
  def markDrawsAndCombos(madeHands, flushStrength, straightStrength, hasPair, twoCardHand)
    madeHands = markPairPlusFlush(madeHands, flushStrength, hasPair, twoCardHand)
    madeHands = markPairPlusStraight(madeHands, straightStrength, hasPair, twoCardHand)
    madeHands = markComboDraws(madeHands, straightStrength, flushStrength, twoCardHand)
    madeHands = markDraws(madeHands, flushStrength, twoCardHand)
    madeHands = markDraws(madeHands, straightStrength, twoCardHand)
  end

  def markDraws(madeHands, handStrength, twoCardHand)
    return madeHands unless handStrength
    markMadeHand(madeHands, handStrength, twoCardHand)
  end

  def markComboDraws(madeHands, straightStrength, flushStrength, twoCardHand)
    return madeHands unless straightStrength && flushStrength
    markMadeHand(madeHands, :combo_draw, twoCardHand)
  end 

  def markPairPlusFlush(madeHands, flushStrength, hasPair, twoCardHand)
    return madeHands unless hasPair && (flushStrength == :flush_draw)
    markMadeHand(madeHands, :pair_plus_flush_draw, twoCardHand)
  end 

  def markPairPlusStraight(madeHands, straightStrength, hasPair, twoCardHand)
    return madeHands unless hasPair && straightStrength
    pairPlus = ('pair_plus_' + straightStrength.to_s).to_sym
    markMadeHand(madeHands, pairPlus, twoCardHand)
  end 

  def markMadeHand(madeHands, handType, twoCardHand)
    handTag = buildHandTag(twoCardHand)
    madeHands[handType] << handTag
    madeHands
  end
Ultimately I was able to isolate the 'markMadeHand' calls and changed the methods to just return values instead of making more calls. But I guess I might as well post this since I asked. This range evaluator thing is the only thing I've written in ruby and I spend like 30 mins on it once a week so it's not exactly anything to be proud of It does kinda work though.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-16-2014 , 07:30 PM
Udacity just released their nanodegrees. Looks interesting for anyone who wants to do ios dev. Currently partnered with AT&T to provide 100 paid internships, so it looks promising. There are also many others.

https://www.udacity.com/nanodegrees/...campaign=NLND1
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-17-2014 , 08:12 AM
is there any actual benefit to paying the $50 min. fee on edx.org to get ID-verified and get a certificate of achievement? do any employers actually give a **** about that?

Last edited by pewpewpew; 06-17-2014 at 08:13 AM. Reason: talking about their intro to CS (Python) course in this case
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-17-2014 , 10:55 AM
Quote:
Originally Posted by pewpewpew
is there any actual benefit to paying the $50 min. fee on edx.org to get ID-verified and get a certificate of achievement? do any employers actually give a **** about that?
Only when hiring managers start writing that into the requirements they hand off to HR. I think you get approximately zero benefit from paying at present, it could gain value in the future, but probably not fast enough to be worth it now. I don't know anything about edx, they could easily partner with recruiters to give some benefit, but to the average HR department, they don't know or care that this certificate can be "verified".
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-17-2014 , 12:51 PM
+1. I can't imagine anyone adding that to an automated (or simple HR) resume screen right now and by the time you get to an interview I assume they'll actually care more about you answering their questions than about certifying you actually took that course.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-17-2014 , 02:22 PM
Quote:
Originally Posted by Scary_Tiger
I don't know anything about edx, they could easily partner with recruiters to give some benefit
You are over-estimating recruiters here by a wide margin.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-17-2014 , 02:53 PM
Quote:
Originally Posted by e i pi
But I am still curious if this is a code smell or not, although I was able to get rid of it in my program,

Code:
#ruby

bigHash = functionA(bigHash, X)
bigHash = functionB(bigHash, Y)
bigHash = functionC(bigHash, Z)
it looks goofy to me
Do those functions do anything with bigHash other than add new values to it?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-17-2014 , 05:50 PM
Quote:
Originally Posted by Xhad
Do those functions do anything with bigHash other than add new values to it?
It would be doing condition checks and then adding to the hash, sometimes calling other functions that do conditions checks and then add to the hash. I originally wrote it like this because if I was to use a normal if/else block it would be like 100 lines long. Also the conditions were dependent on the result of previous condition checks (basically don't mark a hand with a value of two pair if it's already marked as a flush).

It really only looked like that because originally all the methods were just adding to an instance variable. When I got rid of the instance variables I reused the same methods by just adding in extra arguments. I thought it looked weird so asked if the code looked obviously bad or unusual etc.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-17-2014 , 06:45 PM
I'm currently at Insight (mentioned earlier in thread) doing a data engineering fellowship. The program is awesome. Just really incredible the quality of the people and sponsor companies. I will write a complete blog post on the experience in a couple of weeks.

I encourage anyone who's experienced and interested in big data to apply. Official announcement below.

Quote:

Official Announcement:

Insight Data Engineering Fellows Program
http://insightdataengineering.com

The Insight Data Engineering Fellows Program is now accepting applications for our second session starting on September 2, 2014.

- 6-week full-time professional training fellowship in Palo Alto, California.
- Free program sponsored by top Silicon Valley companies.
- For engineers and computer scientists from various backgrounds, planning to transition to a career in data engineering.
- Alumni network of over 100 Insight Fellows who are now data scientists and data engineers at Facebook, LinkedIn, Microsoft, Twitter, Square, Netflix, Airbnb, Palantir, Jawbone and many others.
- Interview at top technology companies hiring data engineers at the end of the fellowship.

If you have a background in software engineering or programming and would like to work at the cutting edge of big data technologies, please apply at:


http://insightdataengineering.com

Applications for the September 2014 session are due July 7th, 2014
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-17-2014 , 10:41 PM
Went to nodejs conference tonight. Big theme was how "enterprise ready" node is. Wanted to ask during QA "Don't most enterprise ready software have production version numbers that don't start with a zero?" but never had the chance =/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-17-2014 , 10:46 PM
Quote:
Originally Posted by muttiah
I'm currently at Insight (mentioned earlier in thread) doing a data engineering fellowship. The program is awesome. Just really incredible the quality of the people and sponsor companies. I will write a complete blog post on the experience in a couple of weeks.

I encourage anyone who's experienced and interested in big data to apply. Official announcement below.
But don't you need to be smart to apply to this?

It looks -- and now sounds -- like an awesome place. I'm looking forward to the write-up.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-17-2014 , 10:52 PM
I been looking through the eBay API. Looks like they are still using Python 2 even though v2 is now released. Apparently there is a Python 3 version out there, but it isn't feature-complete yet. I kind of wish there was a good and stable 3to2 converter available. Oh well.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-18-2014 , 10:13 AM
Just upgraded to Xubuntu 14.04. Went fine, no problems at all. Just thought I'd share.

I'm also strongly considering going back into the business world. I miss programming and have become noticeably worse at it. I've been browsing some job postings and I feel fairly under qualified for most stuff that sounds interesting. Guess best course of action would be to build a couple of things +post on github just in case.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-18-2014 , 10:52 AM
Clowntable, what are you doing now?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-18-2014 , 10:58 AM
I want a javascript API to securely upload my videos, host them privately, and an API to retrieve them and embed them on my website.

Why am I having such a hard time finding this? Every video hosting website seems to have been created in the 90s, or is making me jump through large hoops to even try their service (re: vimeo $200/year mandatory sign up).
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-18-2014 , 11:28 AM
possibly stupid question, but have you tried youtube? it seems like they would provide an api, though i've never used it myself.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-18-2014 , 03:45 PM
Quote:
Originally Posted by Nchabazam
I want a javascript API to securely upload my videos, host them privately, and an API to retrieve them and embed them on my website.

Why am I having such a hard time finding this? Every video hosting website seems to have been created in the 90s, or is making me jump through large hoops to even try their service (re: vimeo $200/year mandatory sign up).
I was once asked to use this site for video, http://wistia.com/

I never ended up actually using it though.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-18-2014 , 09:04 PM
Quote:
Originally Posted by Barrin6
Clowntable, what are you doing now?
PhD (AI). It's kind of complicated though
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-18-2014 , 11:12 PM
anyone going to velocityconf next week?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-19-2014 , 07:05 PM
Wistia is pretty elite, not sure if it supports exactly what you are asking for but I think it does.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
06-19-2014 , 10:21 PM
Quote:
Originally Posted by muttiah
I'm currently at Insight (mentioned earlier in thread) doing a data engineering fellowship. The program is awesome. Just really incredible the quality of the people and sponsor companies. I will write a complete blog post on the experience in a couple of weeks.

I encourage anyone who's experienced and interested in big data to apply. Official announcement below.
Glad to hear the fellowship is working out and am looking forward to the blog post as well. I am leaning towards going to Zipfian's 12 week program myself as I think the environment will be magnitudes better than learning on my own. Zipfian is also starting a similar 6 week data fellowship geared towards data engineers.

Quote:
Originally Posted by daveT
But don't you need to be smart to apply to this?

It looks -- and now sounds -- like an awesome place. I'm looking forward to the write-up.
Muttiah is obviously a friggin' beast but aren't you also? Are you thinking about going?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

      
m