News for hackers. Stuff that matters.

dilithiumhe3

Re:Ask HN: Best books to prepare for parenting? on Monday July 09, 2018 @12:37AM (#17488001)
Not sure if you mean for a toddler or just starting up.

I am having my (first) baby soon and instead of trying to figure out baby books on my own, I registered in some parenting sessions at the local children's hospital. The doctors/instructors there usually have the most up to date practices/references and other (local-)specific resources. I would recommend checking those out.

Most books will talk in generic terms, they (doctors/instructors) tend to get really deep on things which can be awesome.

Re:Ask HN: How often do you pull an all-nighter? on Wednesday October 04, 2017 @07:23PM (#15405646)
Totally depends on what I'm doing, but if things are interesting 2-3 days a week. Sometimes once.
Re:Ask HN: Any suggestions for a secure password manager? on Monday December 12, 2016 @03:39PM (#13161704)
I use yubikey with lastpass. There are a bunch of options at https://www.yubico.com/why-yubico/for-individuals/password-m...
Re:H+Tree – 300% faster index technology [Database Engine] on Thursday April 07, 2016 @04:23AM (#11445626)
Any technical details? peer reviewed papers? These are very broad claims with no details. Makes me think this is nothing more than a marketing gimmick.
Sounded nice but doesn't work on El Capitan 10.11.1 when I tried adding 'America/Los_Angeles' as one of the clocks. Hope the bug report helps. Added as https://github.com/Abhishaker17/Clocker/issues/1

console logs show this:

``` 14/11/2015 20:55:38.088 lsd[255]: LaunchServices: Could not store lsd-identifiers file at /private/var/db/lsd/com.apple.lsdschemes.plist 14/11/2015 20:55:40.034 Clocker[47726]: * -[NSCalendar component:fromDate:]: date cannot be nil 14/11/2015 20:55:40.040 Clocker[47726]: ( 0 CoreFoundation 0x00007fff987afe32 __exceptionPreprocess + 178 1 libobjc.A.dylib 0x00007fff95c1bdd4 objc_exception_throw + 48 2 CoreFoundation 0x00007fff98786b5c -[NSCalendar component:fromDate:] + 316 3 Clocker 0x00000001062b678e Clocker + 26510 4 Clocker 0x00000001062b6924 Clocker + 26916 5 Clocker 0x00000001062b61e3 Clocker + 25059 6 AppKit 0x00007fff9a76cd54 -[NSTableView(NSTableViewViewBased) makeViewForTableColumn:row:] + 76 7 AppKit 0x00007fff9a76c76d -[NSTableRowData _addViewToRowView:atColumn:row:] + 283 8 AppKit 0x00007fff9a76c4c6 -[NSTableRowData _addViewsToRowView:atRow:] + 184 9 AppKit 0x00007fff9a76acdf -[NSTableRowData _initializeRowView:atRow:] + 390 10 AppKit 0x00007fff9a76943f -[NSTableRowData _addRowViewForVisibleRow:withPriorView:] + 416 11 AppKit 0x00007fff9a7691d3 -[NSTableRowData _addRowViewForVisibleRow:withPriorRowIndex:inDictionary:withRowAnimation:] + 299 12 AppKit 0x00007fff9a767f99 -[NSTableRowData _unsafeUpdateVisibleRowEntries] + 1697 13 AppKit 0x00007fff9a76785a -[NSTableRowData updateVisibleRowViews] + 233 14 AppKit 0x00007fff9a7671d3 -[NSTableView layout] + 178 15 AppKit 0x00007fff9a7060df -[NSView _doLayout] + 53 16 AppKit 0x00007fff9a705d97 -[NSView _layoutSubtreeWithOldSize:] + 324 17 AppKit 0x00007fff9a705ff3 -[NSView _layoutSubtreeWithOldSize:] + 928 18 AppKit 0x00007fff9a67819b -[NSView setFrameSize:] + 1727 19 AppKit 0x00007fff9a69f620 -[NSClipView setFrameSize:] + 390 20 AppKit 0x00007fff9a6905b5 -[NSView setFrame:] + 476 21 AppKit 0x00007fff9a63829b -[NSScrollView _setContentViewFrame:] + 633 22 AppKit 0x00007fff9a635fd3 -[NSScrollView tile] + 2563 23 AppKit 0x00007fff9a635547 -[NSScrollView _tileWithoutRecursing] + 51 24 AppKit 0x00007fff9a6a21fb -[NSScrollView _update] + 27 25 AppKit 0x00007fff9a69ef42 NSViewLevelLayout + 165 26 AppKit 0x00007fff9a69ee87 -[NSView layout] + 14 27 AppKit 0x00007fff9a74a660 -[NSScrollView layout] + 56 28 AppKit 0x00007fff9a7060df -[NSView _doLayout] + 53 29 AppKit 0x00007fff9a705d97 -[NSView _layoutSubtreeWithOldSize:] + 324 30 AppKit 0x00007fff9a67819b -[NSView setFrameSize:] + 1727 31 AppKit 0x00007fff9a71f416 -[NSScrollView setFrameSize:] + 1147 32 AppKit 0x00007fff9a6905b5 -[NSView setFrame:] + 476 33 AppKit 0x00007fff9a69cbd5 -[NSView resizeWithOldSuperviewSize:] + 409 34 AppKit 0x00007fff9a69c569 -[NSView resizeSubviewsWithOldSize:] + 318 35 AppKit 0x00007fff9a69ef42 NSViewLevelLayout + 165 36 AppKit 0x00007fff9a69ee87 -[NSView layout] + 14 37 AppKit 0x00007fff9a7060df -[NSView _doLayout] + 53 38 AppKit 0x00007fff9a705d97 -[NSView _layoutSubtreeWithOldSize:] + 324 39 AppKit 0x00007fff9a67819b -[NSView setFrameSize:] + 1727 40 AppKit 0x00007fff9a6905b5 -[NSView setFrame:] + 476 41 AppKit 0x00007fff9a69cbd5 -[NSView resizeWithOldSuperviewSize:] + 409 42 AppKit 0x00007fff9a69c569 -[NSView resizeSubviewsWithOldSize:] + 318 43 AppKit 0x00007fff9a6781b7 -[NSView setFrameSize:] + 1755 44 AppKit 0x00007fff9a80934b -[NSNextStepFrame setFrameSize:] + 201 45 AppKit 0x00007fff9a6905b5 -[NSView setFrame:] + 476 46 AppKit 0x00007fff9a69cedd -[NSView resizeWithOldSuperviewSize:] + 1185 47 AppKit 0x00007fff9a7052a0 -[NSView layoutSubtreeIfNeeded] + 902 48 AppKit 0x00007fff9a724be5 -[NSWindow(NSConstraintBasedLayout) _layoutViewTree] + 82 49 AppKit 0x00007fff9a70b5e2 -[NSWindow _setFrame:updateBorderViewSize:] + 1059 50 AppKit 0x00007fff9a72403d -[NSWindow _oldPlaceWindow:] + 1075 51 AppKit 0x00007fff9a723426 -[NSWindow _setFrameCommon:display:stashSize:] + 2719 52 AppKit 0x00007fff9a722979 -[NSWindow _setFrame:display:allowImplicitAnimation:stashSize:] + 222 53 AppKit 0x00007fff9a722894 -[NSWindow setFrame:display:] + 67 54 Clocker 0x00000001062b5c1f Clocker + 23583 55 Foundation 0x00007fff8a715835 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] + 1049 56 Foundation 0x00007fff8a780ef7 _NSSetCharValueAndNotify + 268 57 Clocker 0x00000001062b77df Clocker + 30687 58 libsystem_trace.dylib 0x00007fff8b934082 _os_activity_initiate + 75 59 AppKit 0x00007fff9a8bb811 -[NSApplication sendAction:to:from:] + 460 60 Clocker 0x00000001062b4f95 Clocker + 20373 61 AppKit 0x00007fff9ae1842d -[NSWindow _handleMouseDownEvent:isDelayedEvent:] + 6322 62 AppKit 0x00007fff9ae19411 -[NSWindow _reallySendEvent:isDelayedEvent:] + 212 63 AppKit 0x00007fff9a85eb8d -[NSWindow sendEvent:] + 517 64 AppKit 0x00007fff9ad27155 -[NSStatusBarWindow sendEvent:] + 281 65 AppKit 0x00007fff9a7deb27 -[NSApplication sendEvent:] + 2540 66 AppKit 0x00007fff9a645d9a -[NSApplication run] + 796 67 AppKit 0x00007fff9a60efbe NSApplicationMain + 1176 68 libdyld.dylib 0x00007fff8bd805ad start + 1 ) 14/11/2015 20:55:40.059 com.apple.xpc.launchd[1]: (com.abhishek.Clocker.149152[47726]) Service exited due to signal: Illegal instruction: 4 14/11/2015 20:55:40.113 com.apple.xpc.launchd[1]: (com.apple.ReportCrash[47730]) Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.ReportCrash 14/11/2015 20:55:40.537 ReportCrash[47730]: Saved crash report for Clocker[47726] version 1.0 (9) to /Users/username/Library/Logs/DiagnosticReports/Clocker_2015-11-14-205540_UserNames-MacBook-Pro.crash ```

Re:Ask HN: What do you use for job scheduling? on Tuesday February 10, 2015 @03:36AM (#9025979)
I would recommend using/looking at Amazon SQS. It seems to all (or atleast most) of your use cases and is managed so you won't need to deal with yet another system. It is strictly a message queue so you would still need to do some work to get things wired up but it should be straight forward.

Another mention, Amazon Simple Workflow is also something you may want to look at. I haven't used it in any project but seems like it could, sort-of work here. (not particularly sure though).

Depends on what you want to do with your knowledge. To @nostradeamons' point, learning C++ basically means that moving over to Java is basically near zero effort but if your main aim in CS is to learn algorithms and concepts that are the science part of computer science, you may want to concentrate more on the implementation of the thing in point rather than worry about the nitty gritty details of manual memory management. Personally, I would learn Java and I have found mostly because it let's you get to the thing you want to do much more quickly than C++ would.

For example, if you are implementing a tree traversal algorithm, you are implementing the tree traversal mechanism and are rarely bothered with the "correct" way to traverse pointers or manage memory. It helps (in terms of productivity) to have built in language features take care of these things. For a "new" student, java seems like a good starting point and once you get a hold of the things you want to optimize, you can look in more depth or maybe even figure out you need to implement some parts in a different language altogether.

Flexibility of C++ vs Java is a contentious issue at best, concepts and best practices (from a CS view point) would apply across all languages.

* I started with C, then moved to C++, then Java, then Go so I know how it feels to progress through the language-sphere. The above views are my own and YMMV. I find C/C++ to be the best starting place but I know a lot of students who found it too low level and nit-picky and java seems like a good way to start. Again, YMMV.

Re:Student ID Redesign on Friday April 11, 2014 @12:07AM (#7571174)
I think simple vertical strip(colored based on the grade) on one edge and just writing the Major in would have done the trick. Idea should be easy recall of information without needing to know too much prior information.
Re:Atlassian BitBand [video] on Monday March 31, 2014 @07:35PM (#7505142)
Awww... thanks for stereotyping people in the software industry. We love you!
Re:AWS Management Console - Auto Scaling Support on Friday December 13, 2013 @12:51AM (#6899291)
For the last 2 days i have a script that is trying to allocate a c3 instance with no luck. AWS is having crazy capacity problems in us-east (all zones).
Re:Show HN: Nginx based load balancer for AWS on Wednesday November 06, 2013 @06:43PM (#6686441)
This is pretty much as alpha as it gets but the intention is to replace ELB with an nginx based layer. It used Autoscaling groups to find hosts.

Ask HN: Why is PGP not used widely?

In light of the whole NSA leaks etc, I have to ask why we don't use PGP widely. Is it just because it's too difficult or is it because we never thought our emails were ever something to be kept private or just that there was never a need to produce tools to make the technology accessible.A friend and I were discussing this over dinner and couldn't really pin point the reason. Both of us came...

( Read More... | 72 comments | 89 points | on HN )
Re:How / where should I host a static site? on Tuesday September 24, 2013 @01:56PM (#6439550)
i use heroku. Lots of markdown/ruby based frameworks to help you out.
This is a pretty common thing if you want to get absolute separation for applications within a single (large) vm and is used extensively in the PaaS world. Have a look at cloudfoundry (look on github). This is how it manages containers for each application. Heroku, dotCloud and others seems to follow similar approaches.

Long answer short, a lxc container would look like a self-contained vm to everything outside and from within (except for the controlling vm). You can go with the existing model but I would recommend using one container per application/service. Also have a look at: https://github.com/dotcloud/docker‎

If it is open source. It can be as low as 2 mins with travis-ci If it is on a in house setup. It may take close to half an hour (depending on the level of sophistication needed). I have successfully setup teamcity in about half hour (4 hosts total).
Re:Young Coder With Worried Parents. Advice Needed on Saturday April 06, 2013 @11:49PM (#5506047)
I had the same problem growing up. I would suggest explaining your case to your parents, showing them your plans or your work would definitely bolster your chances of them being on your side and understand. It is probable that they simply don't know what you do and always assume that you aren't doing something productive, maybe going through the route of getting a teacher on your side and helping you out may be really helpful too.
Re:How Google Glass Can Fix America on Saturday April 06, 2013 @03:09AM (#5502909)
This is an utterly bad idea! Having every minute of government officials may make public very critical or in some cases very preliminary information. To point a few: 1. Government policy updates. 2. Court proceedings 3. Covert operations 4. Military developments 5. Personal situations
Re:Python Code Review on Friday March 15, 2013 @03:11PM (#5382360)
Might want to add some code comments so that it's easy to tell the intention of each method. Personal experience: when you write a little bit of a pydoc for your code it can highlight code smells. e.g.: If the docstring is too long then maybe you are doing too much in one method.
Re:Ask HN: Software Developer Hours/Salary at your firm? on Friday March 15, 2013 @02:59AM (#5379494)
Generally ends up being around 8hrs/day 5days/week. ~110K/year Greater Seattle Area
Personal opinion: I am a big them tech and car enthusiast, a big fan of top gear and such. That being said, there is a certain amount male "comfort" imparted when the presenter is male. I am not saying that I have anything against female presenters/voice, but I would just prefer it to be a guy.

Cars in particular (believe it or not), has been and to the most part a male dominated interest group. Again, personal preference, not generalizing.

Re:Does Heroku add cookies to my hosted web app? on Sunday March 10, 2013 @07:23AM (#5351475)
Those look like google analytics cookies. Atleast on my website. blog.malloc64.com, if I disable the google analytics (by disabling javascript), I did not get any cookies installed. I think you have the google analytics tracker installed on the page.
Re:Ask HN: Would you rather work at Google or Amazon +20% pay? on Wednesday March 06, 2013 @03:45AM (#5330129)
Even if Amazon was paying me 2x the pay, I would choose Google. Amazon is a good company but a "mean" one. I a very "hostile" environment there so unless you find the magical team that is just awesome, I will never again recommend Amazon to anyone. - Personal experience and others.
I would be interested. What do you have in mind? Contact me at [email protected]
Re:Ask HN: Should I do a Masters Degree? on Monday February 18, 2013 @02:02PM (#5239928)
I think given current internet world and the direction most of the software giants are taking, it is a good idea to take the time and study further into distributed systems. I agree that you learn a lot on the job but there is something to be said about the importance of having sound fundamentals. I went through a similar phase and ended up going for a MS in distributed systems and have never regretted that decision. It makes you think more concretely and exposes you to things that make you think of scalability, complexity, high performance, high availability and other aspects that are the essentials of any complex (more importantly - any system of importance) that we think of.

So, bottom line, go for a Masters but choose your subjects/areas of concentration wisely and remember that you are there for digging deeper not wider.

Re:Ask HN: Critique my landing page (https://www.gauthify.com) on Saturday February 02, 2013 @07:00PM (#5157889)
+1 I agree to this, the headline should summarize the product in max 5 words. Also, it should be nothing fancy (i mean the blinking text). Simple. Fast. Concise. That's it.

BTW good effort. Keep it up.

Re:iPhone survives 2000 foot fall on Saturday February 02, 2013 @06:55PM (#5157875)
You're welcome world! Give some recognition to the engineers and scientists ;)
Re:Be Productive with Surface on Tuesday December 25, 2012 @08:26PM (#4967776)
Oh come on microsoft. Besides the asthetic BS there is nothing that the metro UI has to offer. I have personally used the windows 8 tablets and quite frankly it is more of a hassle than a feature. Please, please ... do something that is actually useful.
Re: on Tuesday December 25, 2012 @04:40AM (#4965613)
Of course, the same way obesity is good for the continued wellbeing of the human race.

Older »