HNHacker News
TopNewBestAskShowJobs

killahpriest

750 karma · joined July 31, 2012

submissionscomments
killahpriest··on Run sudo -k, set your clock to 01.01.1970, run sudo su and boom you're root
Is 31 characters less worthy of a TL;DR?
killahpriest··on Common JavaScript Gotchas

    function myFunction(arg1, arg2) {};       // This is OK, but...
    var myFunction = function(arg1, arg2) {}; // This is best!
The second option is better, and is properly scoped, but it leads to certain syntax problems once you get into closures.

What problems? How does assigning the function to a variable help avoid needing to make a closure for this?

killahpriest··on Google Could Pay Apple $1B Next Year To Remain Default Search Engine On iOS
Bing is likely good enough for the likes of my parents.
killahpriest··on Cube (YC W12) Goes Deeper Than Your Standard iPad Register
To be exact, six times as many dimensions.
killahpriest··on Inside evasi0n, the most elaborate jailbreak to ever hack your iPhone
Not for smartphones.

https://www.eff.org/cases/2012-dmca-rulemaking

In the 2012 rulemaking, EFF asked the Copyright Office to protect the "jailbreaking" of smartphones, electronic tablets, and video game consoles – liberating them to run operating systems and applications from any source, not just those approved by the manufacturer. EFF also asked for legal protections for artists and critics who use excerpts from DVDs or downloading services to create new, remixed works. These exemptions build on and expand exemptions that EFF won in the 2009 rulemaking proceeding for jailbreakers and remix artists.

In October 2012, the Copyright Office renewed the exemption for smartphones in their final rulemaking, but did not extend it to other devices. The Copyright Office also reaffirmed the exemption for video remix, and expanded it to allow use of clips from online services.

killahpriest··on Introducing Your Instagram Feed on the Web
The beauty of having Instagram limited to only phones was that nobody would ever be able to see the noise and artifacts in my photos, especially the noise added by sharpening. Looking at my photos on the web, they suddenly suck.
killahpriest··on Evasi0n iOS 6.x jailbreak
They still do work, PdaNet has an option to hide the tethering from AT&T. http://junefabrics.com/iphone/index.php
killahpriest··on Show HN: nativeCSS launches iOS apps styling with CSS
I just tried out NUI this weekend (https://github.com/createch/bullrunnerapp), and ended up abandoning halfway through. My code became worse because of it. Some of the style code is in the ViewController, some of it is in the NSS file. Going to have to test nativeCSS.

Looks like this could be better than NUI. Unlike NUI:

- You can have multiple selectors, like in normal CSS

- More css-like names, border-radius (rather than border-width as NUI calls it)

- Shorthand properties border: 1px solid #fff;

- Shorthand color codes: #fff

    textview,textfield{
       border-radius:0px;
       background-color:#fff; 
       padding:5px;
       border:1px solid darkgrey;
       margin:auto;
       width:90%;
    }
Also, $10/app is much better than Pixate's $199 license.

https://github.com/tombenner/nui http://www.pixate.com/

killahpriest··on Apple Shows Signs a Major Interface Overhaul Is Coming
I think thats called a downvote, you get them at 500 karma.
killahpriest··on 1% of CMS-Powered Sites Expose Their Database Passwords (2011)
How utterly stupid do you have to be to engineer software that requires you to have configuration files in a publicly accessible folder? Even most shared hosts now will have a public_html folder and the ability to put sensitive stuff not inside it.

Complete untrue. You can (and are advised to) move your wp-config.php above public_html. The reason its not done by default is because you just can't do this on many of the crappy hosting services, and it creates a barrier for entry for people making their first-ever site.

killahpriest··on Dwolla Gets Into Government With Iowa Tax-Paying Plan
Starbucks? I guess because you won't need the extra caffeine to get your taxes done?
killahpriest··on Show HN: The top free PSDs on dribbble in one place
91 pages of PSDs. Add search and filtering by tags, please! Other than that, this is amazing.
killahpriest··on Why was '~' chosen to represent the home directory?
Rubber is the British English word for eraser.
killahpriest··on So you think you can tell Arial from Helvetica?
The way to spot MATTEL is to look at the letter widths. Arial tends towards fixed widths, whereas Helvetica's letters have varying widths.
killahpriest··on Native Mobile Apps Styled With CSS - Pixate (YC S12) Launches
https://github.com/Pixate/Playground/issues/1
killahpriest··on Native Mobile Apps Styled With CSS - Pixate (YC S12) Launches
I didn't get it for TechCrunch, but did for this: http://www.cultofmac.com/192350/how-apples-obsession-with-go...
killahpriest··on Native Mobile Apps Styled With CSS - Pixate (YC S12) Launches
Of course it can be achieved using traditional methods. But this could be a much faster and more maintainable method of styling. Compare straightforward CSS files to XIB files, storyboards, and a bunch of images.
killahpriest··on Native Mobile Apps Styled With CSS - Pixate (YC S12) Launches
If the pricing becomes more affordable, I think Pixate has a chance to totally change the way native mobile front-end development is done.

Just look at the simplicity and familiarity with traditional front-end development. http://www.pixate.com/blog/2012/12/15/table-disclosure/

View Controller:

   button.styleId = @"disclosure";
default.css:

    table-view #disclosure {
        background-color: linear-gradient(#75a4e6, #2670d8);
        border-radius: 15pt;
        border-width: 2pt;
        border-color: white;
        size: 27pt 27pt;
        font-size: 16pt;
        box-shadow: 1pt 1pt 1pt #333;
    }
If only they had a demo we could test how well Pixate lives up to its claims.

Example of use in XCode: http://www.youtube.com/watch?feature=player_embedded&v=h...

killahpriest··on QLB (قلب) - Program in Arabic, display algorithms as calligraphy
Try this if you're stuck:

(قول "مرحبا يا عالم!")

   قول = say
   مرحبا = hello/welcome
   يا = oh
   عالم = world
killahpriest··on Ask HN: What is good team coordination and to-do list software?
Trello.com
killahpriest··on Exec Crunchie Nomination Rap and PG Making it Rain
Arrington = R Kelly. ROFL. http://www.youtube.com/watch?feature=player_detailpage&v...
killahpriest··on JavaScript is the future...maybe
Agreed, but as a short term solution http://www.readability.com/addons.
killahpriest··on A year without caffeine (part 2)
I drink coffee everyday (somedays four or more espressos). I also stop drinking coffe for a few days at least twice every semester, just in case.

Even at peak coffee, more coffee still stimulates my mind and makes me infinitely more focused. The only times coffee hasn't worked is when I'm genuinely sleep deprived, although I typically get 6-8 hours of sleep.

killahpriest··on Show HN: Send SMS to your number for free from shell
Fortunately, most of them do. http://en.wikipedia.org/wiki/List_of_SMS_gateways

AT&T, Verizon, Sprint, T-Mobile etc. If you want to text somebody else, you'll have to figure out their carrier first though. :(

Is their a way determine their carrier without asking?

killahpriest··on Show HN: Send SMS to your number for free from shell
Wish this worked through Google Voice.

EDIT: http://brettterpstra.com/2010/11/19/sms-from-the-command-lin...

killahpriest··on The Software Millionaire Next Door
Customers are not as inevitable as gravity. How do they find their customers?
killahpriest··on Deconstructing K&R C (2010)
Annoyingly clever. Even while running Ito JavaScript I have to debate whether I should be annoyingly clever or not.

  /* bad use of while loop with compound if-statement */
  while ((len = getline(line, MAXLINE)) > 0)
    if (len > max) {
        max = len;
        copy(longest, line);
    }
 if (max > 0) /* there was a line */
    printf("%s", longest);
What do you do?
killahpriest··on Warren Buffett Buys World's Largest Solar Project from SunPower for $2.5 Billion
Coca Cola INVENTED Santa Claus?!?!
killahpriest··on Inception Explained – HTML + CSS Experiment
It's not that the phone is incapable of scroll, it's that the phone is guaranteed to freeze up and not render the site properly on that page. But, even if the phone could handle the computation necessary to display the site, the author probably did not design a version that is easy to use on tiny screens.
killahpriest··on Early Quora Design Notes
how are you supposed to know the answers are worth it?

The preview.

And as others have said, if it's not on Google, how are you going to find the site in the first place? For a Q&A site that really needs to start turning a profit, this is not a trivial issue.

Quora is on Google, and ranks really well on Google for long tail keywords despite the everything but the first answer not being included in Google's index (blurred out). As a matter of fact, I've even gotten a client who came from Google after finding one of my answers.

I know HN loves Quora links, so: http://www.quora.com/How-is-Quoras-SEO-so-damn-good

← PreviousPage 2 of 4Next →