Open Side Menu Go to the Top

03-18-2016 , 12:09 PM
Code:
type error [].isArray is not a function.
????
** 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 **
03-18-2016 , 12:35 PM
oh nevermind its a primitive method on Array which uh makes more sense but is still dumb.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-18-2016 , 01:13 PM
what's the longest break yall have ever taken from programming? after a few years of nonstop coding, reading blogs, listening to podcasts etc I haven't touched anything programming related in about 3 weeks and it's been super refreshing.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-18-2016 , 03:36 PM
~7 months after i got burnt out on a software project. Was amazing
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-18-2016 , 05:08 PM
Quote:
Originally Posted by fruit snacks
what's the longest break yall have ever taken from programming? after a few years of nonstop coding, reading blogs, listening to podcasts etc I haven't touched anything programming related in about 3 weeks and it's been super refreshing.
A year playing poker, twice. The second time I played for 2 years but also did some iOS apps during part of that.

It was not amazing because playing SNGs sent me into a blind rage at least 10 times per session.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-19-2016 , 01:25 AM
Quote:
Originally Posted by goofyballer
After putting some money on PredictIt (like Intrade, but for US customers with crappier fees) to gambooool on the election, I thought it would be a good situation to put my ****ty Javascript knowledge to use and learn some Angular basics in the process:



Server updates from PredictIt once a minute and pushes updates to clients. While I don't see auto-trading in the future, there are some fun directions I can take this in terms of identifying movement/setting price alerts/etc.

Related: Visual Studio is surprisingly awesome for JS development.
Angular 1 or 2?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-19-2016 , 01:58 AM
1.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-19-2016 , 07:37 AM
Quote:
Originally Posted by daveT
I decided to finally try out this thing called "networking" and I put it out that I'm looking for work. The meetup leader introduced me to this other guy and he came by and gave me a chat.
"Forced" networking is horrible and no fun at all. I strongly recommend that anyone in the world buys and reads "Never Eat Alone"
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-19-2016 , 08:26 AM
Any of you all program on a Mac? I'm returning my chromebook and buying an actual laptop. I was gonna get the Dell XPS and immediately wipe with Ubuntu but I've also been told to get a MacBook Air. It's way more expensive (1100-1250 depending) but seems to be crushing "best programming laptop" lists.... Thoughts?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-19-2016 , 08:45 AM
I bought an air once and immediately exchanged it for a mbp. Don't remember if I had a reason or not.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-19-2016 , 09:05 AM
Only reason to choose an Air over MBP would be for battery runtime. I would not trade my MBP for an Air.

Unless I got enough money for the trade to buy an MBP.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-19-2016 , 10:04 AM
Hm, when I looked last the specs looked nearly identical but the air was cheaper and with better battery.

I was more asking about vs the Dell XPS though rather than vs MBP.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-19-2016 , 10:32 AM
I have used a MBP at work now for something like 7 or 8 years. It's not a terrible choice depending on what you're doing but it's not the optimal choice for me all the time either. I'm a unix person so I'd be using Linux if not OSX. OSX is unixy but pretty hacked together. To get a whole lot of the basics available on linux you end up using homebrew or macports and each has their problems/idiosyncracies.

The version of gcc available has lagged way behind moderns ones (most people don't care unless they're writing C or C++) although llvm is a good/modern compiler. (As an aside I like llvm fine but I'm cross platform and gcc is simpler in that regard)

For a laptop, I think you have a much better chance of getting a good responsive low hassle working environment out of a mac than a PC laptop, unless you run windows in which case it's all about the same. If you want a linux laptop, you still have to poke around and find one that is well known to have all it's components play nice with linux. And even then you'll probably have some annoyances. I'm currently on one of those Lenovo ideapads on Linux and it works OK but has some weird idiosyncracies.

Then again, so does my mac.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-19-2016 , 11:32 AM
Are you talking about this?

http://www.dell.com/us/business/p/xps-13-linux/pd

It's a 13" laptop with an i5, 8G memory, 128 G SSD, and preloaded with Ubuntu. I feel like you can do way better for the price if you buy a different laptop and install your own Linux. And $200 more you only get a touch display?

caveat: my opinion may be shaded because I don't like Dell and Ubuntu.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-19-2016 , 02:57 PM
Rusty, I would either do Linux or Mac, not windows. The Dell XPS is supposed to have great compatibility with Linux (there's one that comes with Ubuntu pre-installed but I think even the windows one should have good support).

DaveT, I'm glad to have a shaded opinion person involved! Maybe it'll keep me thinking straight haha. The link you provided doesn't work for me for some reason but yea those specs sound right, and it should be 800. You think I can do better for 800? Any links? It doesn't have to come with Linux installed but it needs to be decently compatible.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-20-2016 , 01:36 AM
Angular question for ChrisV or anyone else who knows:



In parentheses after each price, I'm trying to display the change in price since the page was loaded. That works and is all good, but I'm having trouble figuring out The Right Way to do this conditionally - i.e. if there has not been a change, don't put any text there at all.

The reason the "Last" column is on two lines and making the whole thing ugly at the moment is that I'm trying to set up that column to use a directive (so I don't have to repeat logic for conditionally showing/hiding everywhere), which may or may not be The Right Way of doing this.

The directive is using this template:

Code:
<div ng-if="value == 0">
   ({{value}})
 </div>
The comparison would obv be != to do what I want, but for testing purposes the markets aren't moving that often atm. I use it in the HTML here:

Code:
<td>{{contract.last}}c <contract-change value="contractCtrl.changed('last')" /></td>
Directive definition:

Code:
function ContractDirective() {
  var ret = {};
  ret.restrict = 'E';
  ret.templateUrl = 'changeComponent.html';
  ret.scope = {
    value: '<'
  };
  return ret;
}
I get the feeling that the directive is evaluated/expanded/whatever after the page is loaded or something, which is why it doesn't fit nicely into the table upon its enabling like every other thing in the world does. So, questions:
a.) is a directive what I want here? I guess I could also make another controller, but that seems verbose for what I feel like I should be able to write as a compact reusable component
b.) if a directive IS what I want, what's missing to make this play nice with my tables?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-20-2016 , 02:23 AM
the div is causing the carriage return after the "c", use span instead.

Code:
<span ng-if="value != 0">({{value}})</span>
also, use bootstrap, http://getbootstrap.com/
makes everything pretty and often helps with crap like this
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-20-2016 , 02:26 AM
03-20-2016 , 03:53 AM
It worked!



Thanks but lmao I think suzzer's link scarred me for life on bootstrap.

Currently my unit tests are losing one cent of real money by buying a share of TRUMP at 72 cents and selling it for 71 cents.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-20-2016 , 04:10 AM
Bootstrap is useful for building something quickly but I kind of despise it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-20-2016 , 10:41 AM
Quote:
Originally Posted by suzzer99
awesome. and one of those satires that barely needs to exaggerate the real thing.

calling out the "Made with love " meme is a particularly nice detail...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-20-2016 , 11:14 AM
You have to admit, the new templates look a far cry from the templates from 3 years ago, where it was dreadfully obvious the site was created by someone with no design skills.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-20-2016 , 12:32 PM
I went to the SXSW music exhibit, and, surprise, surprise, there was not a single left-handed guitar up there. I never seen carbon fiber guitars before, but I'm guessing that is a thing now days?

There were these cool guys machining up aluminum guitars:

https://www.youtube.com/watch?v=UgcVbTj6TjU

Some guy ripping some finger-style on one:

https://www.youtube.com/watch?v=VIcnhQ9qvdI
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-20-2016 , 01:31 PM
Quote:
Originally Posted by suzzer99
looks pretty good imo

there aren't many ways to display what amounts to maybe a paragraph of text and a short bulleted list so I don't get what the complaint is. I've seen lots of "creative" designs from people who clearly work in print design and have no idea how css works, and while they look nice as a picture they fall apart when forced into a responsive web design.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-20-2016 , 02:08 PM
Quote:
Originally Posted by daveT
You have to admit, the new templates look a far cry from the templates from 3 years ago, where it was dreadfully obvious the site was created by someone with no design skills.
I'd say they look "professional," which is to say, look like other professional websites and have a veneer of slickness. But they still feel like copy-the-trend-driven design (CTTDD), and the parallax scrolling (or whatever the **** it's called), fade-in animations, "smart" headers -- all of these, imo, are usability anti-patterns and clearly worse than static versions of the same thing.

Related: http://idlewords.com/talks/website_obesity.htm
** 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