Better HN
topnewbestaskshowjobs
Log inSign up

qubitcoder

1,648 karma · joined Jan 9, 2014 (12y ago) · 325 submissions

[ my public key: https://keybase.io/qubitcoder; my proof: https://keybase.io/qubitcoder/sigs/JVmfDS68RWeEMeqKdcW6ybbYTtRdh_9BV5NBocPaZ70 ]
Submissions

comment 11y ago · link · parent

I typically use isopropyl alcohol as well. Although I've periodically used Windex on my 2012 rMBP; no issues thus far, still looks brand new.

comment 11y ago · link · parent

It's an iPhone 5s. It only occurs after I've used the app for a while, then switching to an article with a large number of comments; scrolling can become laggy enough to render the app unusable (i.e. scrolling even a small amount takes over a second; lag seems to scale based on the comment count).

I'm guessing that if the DOM is parsed completely prior to rendering the comments, that shouldn't be a bottleneck--unless the parsing step is re-run as scrolling occurs to render comments dynamically.

Or given that a forced restart resolves the issue, perhaps it's a memory issue; i.e. if the JSON data is held in memory for each article viewed, and it continues to grow. This is certainly not a showstopper, and it's a fantastic app! But figured you'd appreciate the info.

comment 11y ago · link · parent

I just wanted to extend my appreciation for your work. It's by far the most used app on my iPhone; even occupying a spot on the main navbar.

Occasionally, I've noticed scrolling performance degrades when viewing comments (only for articles with many comments (>100). But force closing seems to resolve the issue. Otherwise, it's rock solid and beautifully functional.

comment 11y ago · link · parent

Also have the Mid 2012 Retina MBP at 2.3GHz.

Rendering at ~60fps in Chrome 42.0.2307.0 canary (64-bit).

Interestingly, when switching to Safari 8, performance drops to ~36fps as well.

comment 11y ago · link · parent

I really like the new design. The old site was certainly showing its age--very dense and hard to navigate. Never mind the lovely 1990s motif. This is far more welcoming and user-friendly, especially to those who might be curious about Haskell.

It's exciting to witness Haskell gain traction within industry. Facebook announced last week that its building an entirely new Haskell team to focus on distributed systems, data mining, and machine learning. They're also hiring for a second team to support Haxl [1].

For those eager to use Haskell in the workplace, I imagine the new design should make it easier to formulate a compelling business case. Being able to point your project manager and/or colleagues to a website that clearly explains what Haskell is--and what sets it apart--is a big plus.

The source code for the site can be found on GitHub [2]. Awesome work by Chris Done, who kicked this off last year; see his blog post about the motivation for the new site [3].

[1] http://www.reddit.com/r/haskell/comments/2useoq/haskell_oppo...

[2] https://github.com/haskell-infra/hl

[3] http://chrisdone.com/posts/haskell-lang

comment 11y ago · link · parent

Both my MacBook Pros have outlasted the MagSafe power supplies. As nice as they are--and even with careful usage--the cord has split at the base twice leaving the inner wires exposed.

I only discovered the issue when I felt a mild tingling sensation on my leg. Apple has let this issue slide for some time; there's over 2,000 1 star reviews on the Apple Store site [1]. This stands in stark contrast to the superb build quality of the MacBook Pro itself.

[1] http://store.apple.com/us/product/MC461LL/A/apple-60w-magsaf...

comment 11y ago · link · parent

Same here with the MBPr 15" 2012.

I recommend a clean install of Yosemite. After upgrading from the beta versions to the final release, I still had UI elements misplaced (e.g. the address bar in Safari was 1/3 the width and stuck on the left edge).

A clean install fixed the UI alignment and some other minor quirks. I still notice occasional black squares in Safari which cover a portion of the screen; a page refresh seems to resolve the issue. But Firefox developer edition, on the other hand, is snappy and responsive.

comment 11y ago · link · parent

The solution in Haskell is quite clean, I believe.

  fizzBuzz n 
     | n `mod` 15 == 0 = "FizzBuzz"
     | n `mod` 3  == 0 = "Fizz"
     | n `mod` 5  == 0 = "Buzz"
     | otherwise       = show n

  main = mapM_ (print . fizzBuzz) [1..100]
I agree with you about generalizing pattern matching for less simple cases. Your example brought to mind view patterns, about which Oliver O'Charles had a nice writeup recently [1]. Nifty little extension.

[1] https://ocharles.org.uk/blog/posts/2014-12-02-view-patterns....

comment 11y ago · link · parent

I can also recommend Asics. Even after going to high-end running stores with video profiling, Asics are still the best running shoe for me. With every other brand, I get shin splints shortly after running.

comment 12y ago · link · parent

I'm in Rome, GA. Not too far away :).

comment 12y ago · link · parent

This is especially true with HiDPI screens. If your primary content is textual in nature, then using low contrast colors is disrespectful to your readers.

This is amplified when designers don't use relative scaling units for font sizes. Medium.com is a good example of presenting readable content, independent of DPI.

But many sites require substantial zooming to read comfortably, even with perfect vision.

Another major usability issue is disabling pinch-to-zoom on mobile devices. This is a behavior that users have come to expect.

I've had to explain to several older people that their iPad isn't broken when they couldn't zoom in on a product while shopping.

comment 12y ago · link · parent

For more practical examples like this, I highly recommend the Haskell Data Analysis Cookbook [1].

After learning the basics of Haskell, having a book chock full of practical examples of things like handling CVS files, JSON, trees, graphs, machine learning, and Haskell's outstanding support for parallel computation--is a really helpful resource. The code is extremely well written; clear, concise, and readable. The author has also put the source code on GitHub for each chapter. [2]

Afterwards, to take your skills to the next level, check out Simon Marlow's Parallel and Concurrent Programming in Haskell [3]. Simon now works at Facebook, where they're using Haskell in production [4] [5].

[1] http://www.amazon.com/Haskell-Analysis-Cookbook-Nishant-Shuk...

[2] https://github.com/BinRoot/Haskell-Data-Analysis-Cookbook

[3] http://www.amazon.com/Parallel-Concurrent-Programming-Haskel...

[4] https://code.facebook.com/posts/302060973291128/open-sourcin...

[5] http://community.haskell.org/~simonmar/papers/haxl-icfp14.pd...

comment 12y ago · link · parent

That EQ takes primacy over IQ is pretty well-established in the consulting industry. In fact, this is emphasized on day one for new hires. And you move into more client-facing roles in large companies, this becomes even more important.

Of course, you need the raw cognitive power to solve problems. But at the high-end of consulting, clients already assume this to be this case (otherwise they wouldn't be spending $200+/hour for people fresh out of college). What clients are looking for is more akin to a 'trusted advisor'[1]. Someone they can trust and rely on.

Yes, you can be socially awkward and still get the job done. But you probably won't be considered when the next opportunity arises; what people value are relationships. If you've got that (and you have the technical chops), clients will tend to keep calling you back for years to come. Or perhaps mention you to their peers.

For anyone considering working independently, I highly recommend David Maister's books. He writes clearly on earning trust, the art of listening, providing advice, establishing relationships, and so on.

This is really what separates the engineers who can command top dollar for their skills in the marketplace--versus those who are viewed as just another number on a spreadsheet to minimize (in the eyes of management at most large companies).

[1](http://www.amazon.com/The-Trusted-Advisor-David-Maister/dp/0...)

comment 12y ago · link · parent

I typically use Vim for quick edits on my Mac, and especially on remote boxes.

But for Haskell and Clojure development, it's hard to beat the tight integration features that Emacs provides (e.g. quickly piping your code or a single function to the REPL for testing). Vim is not designed for this; there are plugins available to approximate it, but it’s a bit hacky and nowhere close to Emacs).

Honestly, it's not hard to learn the basics of both. If you're accustomed to Vim commands, Emacs has `evil-mode`. There's also the slick `god-mode`, which is like Vim's Normal mode for Emacs.

Both tools are great in their own ways. Personally, I regularly use and love them both.

comment 12y ago · link · parent

Agreed that it’s rather awkward to tap the top left corner—unless you have large hands. Fortunately, more apps are now supporting the ‘swipe from left edge’ gesture to go back (e.g. Safari).

comment 12y ago · link · parent

I highly recommend haskell-vim-now [1]. The author has a nice demo showcasing this setup, along with his virtual pair-coding environment [2].

With one install command, you get a polished Vim/Haskell setup with tab completion, type inspection, Hoogle, hinting, unicode symbols, etc.

Also has a nice dark theme. In fact, I use it as my go-to Vim configuration on new systems, even outside of Haskell.

It also lets you pipe code to the Haskell REPL for live evaluation (via tmux).

[1] https://github.com/begriffs/haskell-vim-now [2] https://www.youtube.com/watch?v=7sr8cAIwdBs

EDIT: Add video

comment 12y ago · link · parent

Similar experience. I could never get Vim color schemes to work properly in Mavericks, despite many attempts.

I've been using Terminal on Yosemite, and for what it's worth, the Solarized theme works properly. I'd forgotten how much trouble it was in the past.

My current setup is to run tmux inside Terminal, with the 'Option as Meta key' flag enabled. Then configuring tmux to use Option-A (instead of Control-B) preserves the standard emacs shortcuts. So Control-A and Control-B still work to move to the beginning of the line and back a character. Mapping Control to Cap Locks, and using Option-A for tmux has served me well so far.

I agree that Terminal seems more polished (start up time and ability to keep up with typing speed - iTerm seemed slightly laggy compared to Terminal). But I'll give iTerm another try - the configuration options are impressive.

comment 12y ago · link · parent

It's wonderful to see so many comments on Haskell! I began learning Haskell about a year ago. Coming from the world of C/Java/Ruby/Python, venturing into Haskell has been a phenomenal experience. While frustrating in the beginning, the payoff has been worth it. For me personally, I still wake up excited by the language & what’s left to discovery.

Aside from its technical merits, there's a certain expressive beauty and power to it. For example, I recently wanted to write a command-line version of 2048 in Haskell. Instead of being bogged down in the minutia of keeping track of array indexes and state variables, it was simply a matter of transposing lists (corresponding to board rotations). The entire game fit onto a single screen of code that reads like English (once you’re accustomed to the syntax - please don’t be scared off by that!)

I spent some time learning Clojure. From my limited experience, it’s certainly easier to get up to speed writing working programs with Clojure. The simplicity of LISP syntax is hard to beat. And the fact that it runs atop the JVM makes things like cross-platform GUI programming a breeze compared to Haskell. But while macros are powerful, it really doesn’t compare to the flexibility & composability of Haskell. Haskell provides some powerful abstractions which make building software easier, and these capabilities simply aren’t possible in other languages — check out the Tony Morris videos on monads & monad transformers for more details [1]. He also explores why these abstractions, if they’re indeed so powerful, aren’t currently more prevalent in software engineering. He’s dedicated to changing that.

LYAH is a great resource, but it can be a bit verbose at times.For those interested in diving into the language right away, I recommend checking out the University of Virginia CS 1501 Haskell lectures [2]. They start with the basics and gradually build up to more advanced concepts like functors, monoids, monads, etc. They even have a section on category theory at the end.

For a great intro to web development with Haskell, see Ryan Trinkle’s talk on creating a link shorter (using the Snap web framework with a PostgreSQL backend). [3] Live demo [4]

For a more formal CS-style introduction to Haskell, see the lectures by Prof. Dr. Jürgen Giesl. [5]

[1](http://vimeo.com/robmanthey/videos/page:6/sort:alphabetical/)

[2](http://shuklan.com/haskell/index.html#)

[3](http://vimeo.com/59109358)

[4](http://memoi.se/)

[5](https://www.youtube.com/channel/UC9ZJ-o00b2t79v6er1O-eBQ/vid...)

comment 12y ago · link · parent

This is superb! I too share your dismay with the current Haskell site. I think what you've put together really captures the elegance of the language. It's focused, crisp, and beautiful. Great work.

comment 12y ago · link · parent

Likewise. The more I learn about Haskell, the more I've blown away by it's power and elegance. It's been a deeply rewarding experience. But spending days fixing dependencies to update the compiler on OSX and linux, followed by Cabal packages failing to compile is no fun. Hopefully the increased attention Haskell is receiving nowadays will help resolve these growing pains.

comment 12y ago · link · parent

As a thought experiment, just imagine Max Planck, Werner Heisenberg, and Richard Feynman gathering their teams together in a room for a major announcement.

All three scientists have reached a unanimous conclusion. Each time they try to measure some aspect of an atom, their results are inconsistent! They declare to to their teams that this cannot be real science. After all, we need reliable measurements in order to do science. So let’s not waste our time any longer. Go home, get some rest, and come back tomorrow. And please take a moment to review the equations governing the path of flying baseballs. We think this merits a second look.

Fortunately history tells a different story.

By the way, I’d highly recommend reading the outstanding book “Quantum Mechanics: The Theoretical Minimum” by Leonard Susskind of Stanford. If you’ve seen a matrix before, then you’re good to go (with some effort). He walks you through the rest.

As a fair warning, try to mentally prepare yourself. Your seemingly rational & logical viewpoints, while admirable, will be shattered one by one. And you’ll see that even our precious boolean logic is merely an illusion.

EDIT: Oops. Wrong level. This reply was geared to downandout in above thread. Apologies.

comment 12y ago · link · parent

So far, Ubuntu 14.04 is working flawlessly here on a MacBook Pro with retina display (2012).

Just speaking personally here. I've never been this impressed by a Linux release. If you have an HiDPI screen, then be prepared for a treat. It's absolutely stunning. It's fast, gorgeous, and near pixel perfect. Using the beta over the past few weeks has rekindled the joy and excitement of first discovering Linux as a kid (anyone remember those CDs in the back of magazines?)

The font rendering and window elements are now as sharp as OSX. The new version of GNOME provides integer scaling for all UI elements, not just text. That means no more huge fonts with tiny menu bars. Fonts look even better with anti-aliasing disabled using the gnome-tweak tool (IMHO). After years of tweaking ugly fonts & window managers, and being spoiled by a “retina” display, this is such a refreshing & welcome change to see in a mainstream distribution. After installing the restricted Nvidia driver, Unity is smooth and intuitive. It's clear they've put some effort into fixing the UI annoyances of prior versions.

This was my first time ever installing Linux on a Mac. I've always used a virtual machine. The first attempt using rEFInd was successful, but somewhat tedious. But then I found an easier way.

I installed rEFInd on OSX, booted into the Ubuntu Live Desktop, and then ran the installer with “ubiquity -b”. This worked. But Unity was a bit sluggish. This is because Ubuntu installs the open source version of the Nvidia driver by default (called “nouveau”). I learned the hard way that the restricted Nvidia drivers will not work with this boot method. If anyone else ends up with a frozen black screen, just do an F2 when rEFInd comes up, and add "text" to the boot command. Then you can remove the Nvidia drivers in console mode (although you'll need perfect vision for this, or a magnifying glass).

Now the easy way. The Ubuntu install tool provides several options on the first screen – one of which is to 'Install Ubuntu alongside OSX'.

I booted back into OSX, removed rEFInd, and deleted the Linux partitions - so now I just had the Mavericks partition, followed by free space. Download the Mac version of the ISO & create the installation USB courtesy of Google's assistance.

Now you can simply reboot OSX, hold down the Option key, and select the USB drive. Select the 'Install alongside Mac' option. It will automatically install to the free space. If you need Wifi during the installation, just open the terminal and run 'apt-get install bcm*'. This will load the Broadcom drivers & you'll be able to install any updates. Reboot to your desktop. Now use the Ubuntu software tool to install the Nvidia restricted drivers. Reboot once more, and savor the pixels and speed.

That's all there is to it. I'm going write this up in a blog post, along with some post-install tweaks (enabling the keys for brightness & the keyboard backlight, installing flux, vim/sublime, and remapping the keys in a Mac-friendly way). Just FYI, the various incarnations of Chrome do not yet support HiDPI on Linux. However, the Firefox Aurora version is fantastic (just set the scaling option in the about:config page).

comment 12y ago · link · parent

I would love an invite! Been refreshing my inbox all day :-)

qubitcoder [at] gmail.com

comment 12y ago · link · parent

This is very common. After graduating, I spent the last six years doing consulting for various Fortune 500 pharmaceutical companies, working in some 20 countries with routine interaction with C-level execs and board members.

These activities usually fall under the banner of 'change management and corporate communications', for which an entire army of specialists are brought in to 'manage' perceptions and ensure 'alignment' both inside & outside the organization.

Specifically within the pharmaceutical industry, it's not at all unusual for clinical trial data to be misrepresented.

Even worse, in second and third world countries with lax regulations, drug testing is conducted on a massive scale - often sickening and sometimes killing the most vulnerable. Just Google 'third world drug testing'.

So I'm often a little surprised at the anti-regulatory tone on this board. I agree that some regulations are detrimental to innovation (e.g. the resistance to Uber). But the real world is far less rosy and idealistic than our beloved startups.

I couldn't in good conscience be associated with this type of unethical behavior. So I decided to leave that world behind.

Ever since, I've been diligently diving into various programming languages, design patters, and frameworks. Best decision ever. I can't wait to get back into the software development world!

comment 12y ago · link · parent

I've had similar problems when switching between Android & iOS devices over the years with both T-Mobile and AT&T. It was a bit perplexing the first couple times it happened. Then I got used to the drill.

The solution, at least in my situation, was to call the carrier. Apple wasn't at fault.

Both T-Mobile and AT&T would fail to complete all steps required for the transfer, and therefore still showed the old device as the active one. A simple call resolved the issue.

In a couple instances, AT&T & T-Mobile would resolve the issue. Then I'd see the same behavior again weeks later. Sure enough, they had reverted to the old device on my profile. Calling them again resolved the issue.

1
7891011