HNHacker News
TopNewBestAskShowJobs

McUsr

83 karma · joined February 17, 2013

submissionscomments
McUsr··on Why I Use Emacs
I have my keybindings work everywhere, in Spotlight, I can captialize, or lower case words everywhere, and such, I have and extra yank/kill buffer apart from the paste board. It is not about the editor really, it is more about the whole user interface, and I use BBedit for editing, which doesn't use it. But sometimes, it feels very good to just use TextEdit, and have a multi-window environment for writing small texts, and to set a mark and such, when the text grows longer. All that kind of stuff that I feel making the work more fun. :)
McUsr··on Why I Use Emacs
Hello. The keybindings file I use in OS X for simulating some Emacs behaviour, was too long to be saved as a comment. Below are references for how to make Emacs like shortcuts that works through the whole OS X, at least through all programs that uses the Cocoa Text System. Xcode got its own system. BBEdit uses its own, and at least the Omnifocus programs I use, also use their own.

     *    
     * References:    
     * https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/EventOverview/TextDefaultsBindings/TextDefaultsBindings.html    
     * Above is Apples Documentation on the subject which is Mandatory reading!    
     *    
     * Mandatory reading as well: http://www.hcs.harvard.edu/~jrus/Site/system-bindings.html    
     * This page lists Apple's keybindings and standard keyboard functionaliaty to a further extent than Apple's documentation further above.    
     *    
     * A Must read concerning customizing the cocoa text system: http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html    
     *     
     * *Very Useful Page* when you want to make your own bindings: http://www.hcs.harvard.edu/~jrus/site/KeyBindings/Windows%20Bindings.dict    
     *     
     *     
     *    
     * http://www.cocoawithlove.com/2009/12/multiple-copy-buffers-cursor-and-tab.html    
     * Above mostly for how to utilize the kill-ring, which doesn't work well with the setup here,     
     * and it is focused towards XCode, which has it separate keybindings file, but works after the    
     * same principles. Beware: XCode uses a string list, instead of array. It is important to     
     * keep the space after the comma!     
     * "select:", "do someth:"    
     *    
     * http://wttools.sourceforge.net/emacs-stuff/emacs-keybindings.html    
     * Above is a keybindings table, which is of use only to see the keyboard shortcuts.    
     * The commands we use on OS X is not named equivalently to Emacs.
McUsr··on Object-Relational Mapping is the Vietnam of Computer Science (2006)
Well, someone thinks the article was important enough to give it a catchy title, so that somebody else could leverage upon it.

It was old, but it at least pointed out a theme that still holds some validity.

I like getting injections of knowledge and themes, that one should be aware of, and from the replies and comments here, it seems that a lot of other people feel the same way too.

I got fucked by using .NET and Linq some years ago, so I found it to be an interesting read. Nowadays I use Objective-C and core data, and that is a much more pleasant experience, as you can see from the comments. :)

McUsr··on Objective-C isn't what you think it is
Well. Objective-C isn't that simple to begin with, but when you are used to it, it really provides elegant and very simple solutions to medium complex stuff like key-value observing and coding. Meditated together they are called bindings, where your ui is key value coded, and your model is key value observed. Yes, Objective-C (and Cocoa) are very strong on design patterns, which gives you a whole lot of leverage. It works and is debugable too! :) I love it, and find it to be the most hot-dirty-sexy language I have ever used.
McUsr··on I No Longer Need StackOverflow
I agree in that it is nothing wrong, and everything about every aspect of it has been said.

I am a great fan of using SO when I get those "W t f " (ha ha ha I discovered some word completion) moments. So, then I at least get some pointers in the right direction, and if the issue is something to learn more about, then I learn more about it.

McUsr··on Technical Debt is Not a Bad Thing
My two cents is to point to an analogy with the economies of under developed countries: The more debt you have, the more difficult it is to get rid of it, and in the end it may lead to defaulting and bankruptcy.

So, you can't just "borrow" everywhere, and think that you are able to repay. It is important to refactor and downpay immediately, when you realize that you are going to depended on the debt elsewhere, or you'll get accummulated debt when you'll have to downpay the dependencies as well.

I'll coin that as the "future value of money syndrome". :)

McUsr··on The other kind of software debt
I think that Ward Cunninghams methaphor should stand like he intended it to be.

Other factors like the number of developers is external: There can really just be one facit to the problem domain, so there may be varying levels of technical debt throughout the codebase of a project, correlating to the members understanding. It is as simple as that.

The knowledge about frameworks, may also be viewed as plain technical debt, as this goes under the quality of how you solve your problem, or - it may be viewed as an external factor, and it is taken for granted that you use the frameworks, or have any necessary non - problem domain knowledge to solve your problem.

I think it is better to view it like that, than starting to complicate a metaphor that was good to begin with.

McUsr··on Over-Extended Metaphor for the day
Truth is that Unix has a very good design for an operating system, that gained large popularity, and will be in widespread use throughout the foreseeable future, because of the superiority of its machine model and design.

No matter how many blog posts there will be to try to diminish it into an operating system for some religious cult, and weirdos. It is still the best platform. I hope that many more users will benefit from it in the future, as the philosphy behind it is so much more user friendly, and practical than most other Operating Systems. Read me right, I am talking about having Unix in the core of the OS here, not just to present a user with a shell.

McUsr··on Show HN: I started a repo for sharing algorithm implementations
It is nice to have a place with algorithms of fairly common interest.

There is however a definitive resource on the web: http://calgo.acm.org

McUsr··on Edit a Google doc with vim
When you are on a Mac you can use XCode! Hell Yes!!!
McUsr··on Comparing English Translations of Sun Tzu's The Art of War
Yes, it feels like a mail-order site to me too.

Not like scam, but more like "hey we are all after you money, and that is about it."

Maybe it is the aggressive adverticing of their products, that makes for that either mail-order/scam/new-age/Evangelical Christian feeling I get?

I'd be much better with a gentler introduction, and then hit harder as I dwelled deeper into the material.

I have actually read a good copy of Sun Tzu already. And after having looked briefly at the sight, I decided to dwell no further into the subject.

I recommend I'Ching translated by Richard Herman, if it has been retranslated into english.

McUsr··on Magnus Carlsen is World Chess Champion
I am Norwegian and fucking proud of it right now, due to Magnus Carlsen.

He comes from a Nation consisting of 5 mill. people, compared to Anand's billion people.

This is probably the greatest sports achievement our country will ever make, as there are really no comparable sports achievements in the world, not now, anyway.

IMHO: They should knight him the second he gets of the plane when he returns home. Because no other Norwegian has ever accomplished anything close to this, with regards to bring honour to our nation.

Gratuler Magnus!

McUsr··on Why Are Hundreds of Harvard Students Studying Ancient Chinese Philosophy?
Oh well, it is an easy course.

My few cents is that it helps improve your life, taking such a course. At my university, we had an "easy" philosophy course, focusing on Sartre and Kierkegaard, existensialism. The course itself, opened up whole new perspectives to me, and way of perceptions. Maybe this is the one greatest enhancement as a person I gained from my years at the University.

I'd say such philosphy courses should really be mandatory for everybody. Not the usual Examen Philosophicum, but the mind-bending ones.

McUsr··on Vim PDF Documentation
This is sure going to be very useful at times! Thank you very much!!! :)
McUsr··on Happy Petrov day
If there were ever one guy that deserved the Nobel's Peace Prize, it would have been him!
McUsr··on Tomorrow is the shortest day of the year: 23 hours, 59 minutes, 38.7 secs
No, but it changes with some seconds every year. http://en.wikipedia.org/wiki/Terrestrial_Time
McUsr··on Trig Functions Your Math Teachers Never Taught You
Hello.

I am surprised that none of you mentioned that some of those functions, at least the haversine function saves precision. -Which is important if you do your calculations with something that doesn't have the long doubles and such.

I code some in AppleScript, and I love the haversine function since I have a precision of only 12 digits or so. Have a look at http://en.wikipedia.org/wiki/Haversine.

McUsr··on Hermit: a font for programmers, by a programmer
Hello.

I can't tell if this looks ugly or not, before I try it, I really can't relate to the aestethics, before I have tried to use it for a while. What really matters most to me, is how perceivable the source code becomes with it, that is with what ease I read it. I look forward to the download. :)

McUsr··on Col. Chris Hadfield on being great
I think this video was really great, in that it pointed out clearly, how rewarding it can be to focus on the details, and not the big picture. Or lower the standard for success, so you can walk around with a good self-esteem, thereby a good operandus modi.
McUsr··on The flawed psychology of government mass surveillance
Hello.

One observation in all of this: It is really the aim of at least some terrorists, to provoke the authorities so much so they will take measures that their subjects revolts againss. That was Baader Meinhof, and Rote Arme Fraktione ideology.

So when the authorities has failed, since they bought into the game, we are the last line of defense in not letting Osama Bin Laden win this.

Terrorists really don't deserve to win.

McUsr··on How to avoid the Emacs Pinky problem
Well, it take likes 5 seconds in the System Preferences, to change the modifier keys, and the same 5 seconds to change them back when you are done. I know, computer seconds are awfully looong but…

I have only one complaint about my mac book internal keyboard, and that is the lack of a right side control key. I think Apple Engineers smart enough to think out something, after all, we pay a premium amount of money for those devices, and shouldn't be handed over a crippled keyboard.

I also think this to be more and more the reality, as more and more consumers shift platform over to the iPad.

While I am complaining: the "cycle through windows key": ctrl-F4, should be enforced by all applications, no choice there...

McUsr··on Startup lessons
I haven't seen it yet, but will today. One other thing, which is that I associate the whole blogpost with the movie "Revolver". It is like Jason Statham, speeking the words; I guess it is the "former and latter" phrases. IMHO also a good movie, when it comes to be better. "You only get to be better, by playing a better opponnent."
McUsr··on The Decline In Male Fertility
Dow Chemichals got rid of its stock of some very effective pesticides in the late 80's, on the term that they would never be sued.
McUsr··on The Decline In Male Fertility
I'd like to see if the pattern of decline correlates with Banana Consumption.

This isn't a joke.

McUsr··on Cello: Higher level programming in C
I see you believe in my axiom: "It can always get worse". :D
McUsr··on Useful Unix commands for data science
I think Steve's Awk academy is a nice supplement to Grymoire : http://www.troubleshooters.com/codecorn/awk/

By the way: what people need to understand is that in order to use Awk, efficently, you'll either use associative arrays, or structure your script like a sed script, otherwise it will be slow. The interesting thing about both of those, is the regex algorithm Thompson NFA, that is from what I hear around 7 times faster than PCRE that is used in Perl, PHP, Python and Ruby?

McUsr··on Cello: Higher level programming in C
I have just glimpsed at the doc, but it sure looks exciting. Thanks!

I love the idea!

Hopefully, I can manage to make it work with CoreFoundation in OS X.

Maybe I'll end up with CoreFoundation+ :)

McUsr··on What does it take to be an expert in computer programming?
Hello. I am glad this thread showed up, so I can post my all time favourite link (so far) on the subject:

what makes great programmers different: http://www.drdobbs.com/architecture-and-design/what-makes-gr...

McUsr··on YouCompleteMe - A code-completion engine for Vim
I haven't tried it on anything but rather small projects in C: 10-15 source files/modules, but I prefer vim and ycm to XCode for coding. As a matter of fact, all other code completion thingy's I use seem a bit crappy in comparision, with the excempt of bbautocomplete.

Time to install the new beta of vim, and check out ycm! :)

McUsr··on O(n) Sorting Algorithm: Quantum Bogosort
Hahahaha.
← PreviousPage 3 of 4Next →