News for hackers. Stuff that matters.

Xdes

Re:The Cost of Getting My Stolen Computer Back on Wednesday January 07, 2015 @11:58AM (#8851613)
I'm surprised the author didn't buy a cheap Chromebook or Windows Netbook and have the MacBook taken as evidence.
Re:Ask HN: Do you have a girlfriend? Is it good to have one? on Thursday December 11, 2014 @11:25AM (#8735596)
Honestly women are more of a bother than a benefit. Part of maturing is learning to reject nature for your own self interest. Women will use your precious time for unproductive and impractical activities. They require constant upkeep and they will try to shape you into their ideals (a lot more of a nerd).

I do not need a woman to be happy. I do not need a woman to have children. There are plenty of children in need of a parent already (even if that is a single parent). Save for your own retirement and enjoy life.

Re:Introducing .NET Core on Thursday December 04, 2014 @09:47PM (#8702821)
The day has come when I can deploy my .NET apps in docker containers.
Re:Chinese hack U.S. Weather systems, satellite network on Thursday November 13, 2014 @01:20AM (#8600202)
What is Communism?
Re:Microsoft takes .NET open source and cross-platform on Wednesday November 12, 2014 @12:18PM (#8596730)
I like it how .NET Core has a more permissive license (MIT) than Mono (LGPL).
Then I should make a fake facebook so I can make a fake profile? One more layer of indirection doesn't necessarily add more security.
Re:Universal SSL on Monday September 29, 2014 @11:17AM (#8383256)
There's a nice red and green map that colorblind people cannot see.
Re:My $300 Home Cloud Server on Friday September 26, 2014 @02:25PM (#8374055)
Personally I want to make a huge Raspberry PI and Netduino cluster.
Re:How to Read a Patent on Wednesday September 03, 2014 @11:34PM (#8266637)
I wish someone would write "how to read an IETF specification" or "how to read an ECMA standard."
Re:Bring Reading Rainbow Back on Thursday May 29, 2014 @12:49AM (#7814798)
I dislike books. There are better mediums, like games, for conveying knowledge.
Re:Dropbox Webhooks on Wednesday May 14, 2014 @02:03PM (#7745146)
I'm guessing the boycott is over?
Re:Cue, the home lab for quantified self on Wednesday May 14, 2014 @08:14AM (#7743271)
So what are they going to do with all the health data they harvest from this? I don't suppose the device will be offlinable.
You can allow non-administrator access using netsh[1] as an administrator. That way you don't need to run VS as admin.

    netsh http add urlacl url=http://+:8080/ user=DOMAIN\username
You don't need attributes based routing in this example. Convention based routing is built into WebAPI.

For the Delete method you can return an HttpStatusCode instead of throwing an exception.

    public IHttpActionResult Delete(int Id)
    {
        var result = (from b in ourbooks
                      where b.Id == Id
                      select b).FirstOrDefault();

        ourbooks.Remove(result);
        return StatusCode(HttpStatusCode.Accepted);
    }
Also check out the OWIN self host tutorial [2].

[1] https://github.com/NancyFx/Nancy/wiki/Hosting-nancy-with-owi...

[2] http://www.asp.net/web-api/overview/hosting-aspnet-web-api/u...

Re:Introducing ASP.NET vNext on Monday May 12, 2014 @01:42PM (#7734210)
My VB is a bit rusty, but you will need to define associations in the configuration.

First add foreign keys to to models (e.g. In the Build class add MainlineID for the Mainline object).

Then you can define the configuration:

    Public Class BuildConfiguration
        Implements EntityTypeConfiguration(Of Build)

        Public Sub New()
            ToTable("Build")
            ' Other mappings
            ' Define one-to-many
            HasRequired(Function(x) x.Mainline) _
            .WithMany(Function(x) x.Builds) _
            .HasForeignKey(Function(x) x.MainlineID)
        End Sub
    End Class
Inside your context you load the configuration:

    Public Class MyContext
        Inherits DbContext

        Public Property Builds As DbSet(Of Build)

        Protected Overrides Sub OnModelCreating(modelBuilder As DbModelBuilder)
            MyBase.OnModelCreating(modelBuilder)
            modelBuilder.Configurations.Add(New BuildConfiguration())
        End Sub
    End Class
Then you can use the Include extension method (or eager loading) on the DbContext to populate the object.

    Using context As New MyContext()
        Return context.Builder.Include(Function(b) b.Mainline)
    End Using
See also:

http://weblogs.asp.net/manavi/archive/2011/05/17/association...

Re:Introducing ASP.NET vNext on Monday May 12, 2014 @12:41PM (#7733794)
"ASP.NET vNext (and Rosyln) runs on Mono, on both Mac and Linux today. While Mono isn't a project from Microsoft, we'll collaborate with the Mono team, plus Mono will be added to our test matrix. It's our aspiration that it 'just work.'"

I wonder whether we will be seeing a .NET web server for mac and linux. Hosting a C# MVC app on linux will be sweet.

Re:U.S. children read, but not well or often: report on Monday May 12, 2014 @10:23AM (#7732822)
>You're telling me you've never read a novel on your own?

I have never read a novel. I was curious whether I could finish one, so I tried to read the first Harry Potter book. I did not continue after the fifth chapter since it felt like work.

Re:U.S. children read, but not well or often: report on Monday May 12, 2014 @10:09AM (#7732744)
I do not see the problem. I have never read books for pleasure. Most of the books I own are technical or reference material that have practical applications. Why would I want to read for pleasure? I did not find anything interesting about The Catcher in the Rye, Lord of the Flies, or To Kill a Mockingbird which were standard readings when I went to school. Maybe I do not have the imaginative capacity like those people that "get lost" in books.
Re:The future of Unreal Tournament begins today on Thursday May 08, 2014 @03:23PM (#7717125)
I'm waiting for the Github repo. I will definitely track the code. My only wish is that Github had digests instead of email for every issue.
Re:You get what you pay for. on Thursday May 08, 2014 @02:57PM (#7716982)
It is the same for me. I wish I could give you a pat on the back.
Re:You get what you pay for. on Thursday May 08, 2014 @02:15PM (#7716752)
I wish I had read this before my job interview. I feel like I'm getting lowballed when I thought the offer I got was great. I'll definitely read this before my next job interview. Does this apply to freelance rate negotiation too?
Re:Node.js cluster versus JXcore multithread on Thursday April 17, 2014 @10:39AM (#7603839)
JXcore isn't on my radar until it is open sourced with a permissive license.
Re:Create JavaScript, CSS Interactions With Zero Lines of Code on Wednesday April 16, 2014 @12:35PM (#7598786)
Not interested in SaaS unless there is an offline version. I like to own my software not rent it.
Re:Prismic.io goes live on Tuesday April 15, 2014 @12:53PM (#7592900)
I'd like to see an open source version of this. I like the API centric approach to site building, but I don't want some third party to have access to all of my content in one place.
Re:SF’s Housing Crisis Explained on Tuesday April 15, 2014 @11:52AM (#7592458)
>In other words, instead of the state foregoing that person's property tax adjustments, it should defer them until the time of sale, and at that point, recover them.

In other words a lien.

Re:Mozilla Moving Forward on Monday April 14, 2014 @03:12PM (#7588152)
Time to see Chris Beard's track record for contributions.
I find irony in how Americans Against the Tea Party is sourcing Ben Swann who is a pro-liberty journalist that chronicled the Ron Paul media censorship.
Re:Bitcoin Falls Below $400 on Thursday April 10, 2014 @08:45PM (#7570611)
China is cracking down on exchanges by forcing the state-owned banks to close their accounts. That is the speculative force that is driving down the price.

It is good that the price is going down since more people will buy Bitcoin now.

Re:Show HN: 10% off at Starbucks when you buy with Bitcoin on Thursday April 10, 2014 @03:13PM (#7568980)
The ability to denominate cryptocurrencies in other cryptocurrencies. It's similar to having the dollar back by gold.

http://www.cryptocoinsnews.com/news/adam-back-sidechains-can...

Re:Show HN: 10% off at Starbucks when you buy with Bitcoin on Thursday April 10, 2014 @03:09PM (#7568939)
Also about the service: is the website compliant with AML and KYC regulation? You might be acting as a money transmitter under FinCEN rules. Might want to consult a lawyer.
Re:Show HN: 10% off at Starbucks when you buy with Bitcoin on Thursday April 10, 2014 @03:05PM (#7568904)
Really excited about the new sidechains concept. Can't wait for the first attempt.

Older »