News for hackers. Stuff that matters.

Malus

Re:PullClean: Door handles as sanitizers on Monday September 08, 2014 @01:20PM (#8285960)
This doesn't work well for those who are wheelchair-bound or in crutches.
Re:GNUzilla and IceCat on Monday September 08, 2014 @11:54AM (#8285462)
IceWeasel was created to work around trademark restrictions; Mozilla Corporation would not allow to Debian to use the trademarked names as long as Debian was distributing the software with unapproved patches. So, Debian created their own branding in order to comply. See http://en.wikipedia.org/wiki/Mozilla_Corporation_software_re... for more details.
Re:How Memorizing “$19.05” Can Help You Outsmart the MTA on Friday September 05, 2014 @11:13AM (#8274280)
If you live in the city and use the subway often, it is easier to get a 30-day unlimited ride pass. Lots of employers will even provide monthly unlimited ride passes as a pre-tax benefit via TransitChek.
When I was in high school and college, they typically only banned calculators that had full keyboards (e.g. TI-92). I believe I was allowed to use a TI-89 on both the SATs and the GREs.
Re:Go 1.4+ Garbage Collection Plan and Roadmap on Thursday August 07, 2014 @03:04PM (#8149492)
Garbage Collection: Algorithms for Automatic Dynamic Memory Management is the original book, whereas The Garbage Collection Handbook: The Art of Automatic Memory Management is the new and updated version. I have the original, but it would be nice to know everything the new book adds.
Re:Java Pain on Friday June 20, 2014 @01:05PM (#7921595)
Maven can generate one for you:

  mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
Which is not trivial I suppose, but it is pretty easy to do.
Re:Algorithmic complexity attacks and libc qsort() on Wednesday June 11, 2014 @02:47PM (#7879692)
It now reports overflow instead of crashing, but the first case is still incorrect:

  $ which expr

  /bin/expr

  $ expr \( -9223372036854775808 \) \* -1

  -9223372036854775808

  $ expr \( -9223372036854775808 \) / -1 

  expr: overflow
Looking at the source code:

  void

  assert_times(intmax_t a, intmax_t b, intmax_t r)

  {

          /*

           * if first operand is 0, no overflow is possible,

           * else result of division test must match second operand

           */

          if (a != 0 && r / a != b)

                  errx(ERR_EXIT, "overflow");

    }


  struct val *

  op_times(struct val *a, struct val *b)

  {

          struct val *r;


          assert_to_integer(a);

          assert_to_integer(b);

          r = make_integer(a->u.i * b->u.i);

          assert_times(a->u.i, b->u.i, r->u.i);


          free_value(a);

          free_value(b);

          return (r);

  }


  void

  assert_div(intmax_t a, intmax_t b)

  {

          if (b == 0)

                  errx(ERR_EXIT, "division by zero");

          /* only INTMAX_MIN / -1 causes overflow */

          if (a == INTMAX_MIN && b == -1)

                  errx(ERR_EXIT, "overflow");

  }


  struct val *

  op_div(struct val *a, struct val *b)

  {

          struct val *r;

          assert_to_integer(a);

          assert_to_integer(b);

          /* assert based on operands only, not on result */

          assert_div(a->u.i, b->u.i);

          r = make_integer(a->u.i / b->u.i);

          free_value(a);

          free_value(b);

          return (r);

  }
Looks like the check for overflow in the multiplication case is broken since the check itself does not account for overflow. I'll try to remember to submit a patch when I get home.
Re:Algorithmic complexity attacks and libc qsort() on Wednesday June 11, 2014 @01:06PM (#7879088)
Looks like it is fixed now:

  $ expr \( -2147483648 \) \* -1

  2147483648

  $ expr \( -2147483648 \) / -1 

  2147483648

  $ uname -srm

  FreeBSD 10.0-RELEASE amd64
Or maybe it doesn't work on i386?
Re:RFC 3092: Etymology of "Foo" on Monday May 05, 2014 @08:55AM (#7698241)
Look at the date of the RFC; I am pretty sure that this document was not meant to be taken seriously whatsoever.
Re:Cracking Cloudflare's heartbleed challenge on Tuesday April 15, 2014 @12:38PM (#7592812)
That is because the tab on line 4 was converted to 4 spaces. A simple find + replace fixes the problem.
Re:The Hypocrisy Of Sam Yagan and OkCupid on Sunday April 06, 2014 @03:43PM (#7542472)
From what I understand, Rick Rubin wanted it mastered that way so it sounded "louder" (yet another casualty of the loudness wars) and the band just went with it. Unfortunately, the average consumer (or band member apparently) couldn't care less about audio quality, so it is no surprise that Lars has no qualms about it.

I cannot find a working link for the original interview, but BlabberMouth has the quote you are referring to: http://www.blabbermouth.net/news/metallica-s-lars-ulrich-bre...

Re:The Hypocrisy Of Sam Yagan and OkCupid on Sunday April 06, 2014 @03:01PM (#7542189)
Lars may be an asshole, but it is unfair to say that he made less of a contribution to the writing that Cliff did. Lars has writing credits on 8 tracks of Kill'Em All [0], 8 tracks of Ride the Lightning [1], 8 tracks of Master of Puppets [2], and 9 tracks of ...And Justice for All [3], whereas Cliff only has 1, 6, 3, and 1 tracks on said albums respectively. Furthermore, James wrote nearly all of the lyrics himself, so I really don't see how Cliff can be considered the driving force behind the writing of Metallica's early music.

[0] http://en.wikipedia.org/wiki/Kill_%27Em_All#Track_listing

[1] http://en.wikipedia.org/wiki/Ride_the_Lightning#Track_listin...

[2] http://en.wikipedia.org/wiki/Master_of_Puppets#Track_listing

[3] http://en.wikipedia.org/wiki/...And_Justice_for_All_%28album...

Re:What is your best programmer joke? on Friday January 10, 2014 @11:07AM (#7037288)
Two regular expressions are sitting at a bar and having a drink. A big, context-sensitive string walks over and steals the drink from the first regex. The second says to the first "Are you going to let him bully you like that?" The first replies "Yeah, I'm no match for him."
Re:You can increase your intelligence on Wednesday October 09, 2013 @06:59PM (#6524510)
You were probably thinking of Feynman. From Wikipedia[1]:

In high school, his IQ was determined to be 125—high, but "merely respectable" according to biographer James Gleick.[14]

[1] https://en.wikipedia.org/wiki/Feynman#Education

Re:FreeBSD Is No Longer Building GCC By Default on Wednesday September 11, 2013 @01:48PM (#6368685)
You forgot devd, which is also written in C++: http://svnweb.freebsd.org/base/head/sbin/devd/

By default, ports use the system compiler unless it is specifically overridden in the port's Makefile (e.g. USE_GCC=any).

Re:Win32/64 C Compiler Benchmarks on Monday April 02, 2012 @06:24AM (#3787326)
The point of the benchmarks is to compare compilers on the Windows platform, so there is no reason to bench other operating systems.
Re:AT&T U-Verse almost a complete failure on Monday February 21, 2011 @11:49PM (#2248795)
I have Verizon FiOS as well. As luck would have it, you are not required to use the router as your router (though I agree that the router is serviceable). I have an ethernet cable coming directly out of the FiOS ONT to my FreeBSD-based router. I use the Verizon router on my LAN as a MoCA bridge for my TV's set top box. Seems to work perfectly fine, though Verizon claims that their router is required for optimal QoS (I use ALTQ instead).
Re:Toyota's Recall Crisis: What Have We Learned? on Friday February 18, 2011 @12:30PM (#2236333)
My '09 Toyota Corolla has hooks that keep the floor mats in place. The only way to jam the mat underneath the brake pedal would be to do it deliberately.
Re:Allegations of FBI crypto backdoors in OpenBSD IPSEC on Wednesday December 15, 2010 @12:12AM (#2007144)
It has nothing to do with that. The rationale for this is to avoid any problems with US law regarding the exporting of cryptographic software:

http://en.wikipedia.org/wiki/Export_of_cryptography_in_the_U...

It is not too difficult to generate small binaries from C++ code; modern C++ toolchains have link-time optimization (http://en.wikipedia.org/wiki/Link-time_optimization) and can optimize for size (-Os). Code size is rarely an issue in the C++ projects I work on (numerical and discrete event simulations).
Re:Operations Research Tools developed at Google Open Sourced on Friday September 24, 2010 @07:54PM (#1725837)
I doubt it considering that it is now owned by IBM and that it is still ridiculously faster than the competition.
Re:AMA: My job was to game Digg using infographics on Tuesday August 31, 2010 @12:48AM (#1648487)
The dating site is OkCupid (http://www.okcupid.com/) and their data analysis can be found on OkTrends (http://blog.okcupid.com/).
Re:LLVM's Clang going into FreeBSD's base system on Saturday May 15, 2010 @02:54PM (#1350430)
bc/dc have been replaced with the versions from OpenBSD:

http://lists.freebsd.org/pipermail/svn-src-head/2010-January...

Re:Curl vs Wget on Monday April 05, 2010 @10:56AM (#1242032)

  mini[~ 111] uname -a
  Darwin mini.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386
  mini[~ 112] which fetch
  fetch: Command not found.
Unfortunately, it does not. I use fetch all of the time on FreeBSD, so it is a little obnoxious to have to go and install wget from MacPorts.
The not-so-modern language that IE is written in (C++) has a similar construct (std::vector) in its standard library. It is possible that code was originally written prior to the widespread adoption of the STL and was never updated to use it.
Re:Google Phone is confirmed, employees already have them in hand on Saturday December 12, 2009 @05:40PM (#992049)
The update to 2.0.1 on the Droid fixed a lot of the lag problems (well, at least for me anyway).
Re:FreeBSD 8 released on Friday November 27, 2009 @04:40AM (#963666)
You could use find, but it is easier to use the built in facilities to search for ports. If you are in the ports directory you can:

make search name=name_of_port

to search for a port by name and:

make search key=key_to_search_for

to search by key. You can also use quicksearch instead of search to reduce the verbosity of the results. If you read the ports man page, you will find a bunch of other nifty things you can do with the ports system.

Re:ZFS port to linux on Friday October 23, 2009 @10:52AM (#898846)
FreeBSD does allow for the inclusion of other licenses. The GPL 2 and CDDL are two prominent examples (though they are actively trying to remove as much GPL code from the tree as possible). Users who are unhappy with CDDL licensed code still have the option of disabling it in FreeBSD's build.
Re:Orbit Your Own Satellite For $8,000 on Sunday August 02, 2009 @07:15PM (#738247)
It is probably only good for communications. A spinner with poor attitude control (you do not really have a lot of room for good mechanical or optical rate gyros, not to mention the lack of any means to perform orbital maneuvers) and small payloads will probably not work well for imaging or radar.

However, there are a lot of companies and universities looking into small satellites, since it is much, much cheaper than launching larger satellites with expensive payloads. There is a lot of research in the area and a lot of small sat conferences as well (e.g. http://www.smallsat.org/). If this pans out, it could be the end of the US government's large satellite oligopoly, which currently consists of only a few large companies like Lockheed Martin (disclaimer: that is where I work) and Boeing.

Re:Firefox: it's just too darned expensive on Sunday August 02, 2009 @01:40PM (#737742)
Last time I checked, Firefox and Safari have built-in spell checkers too (and both browsers probably had the feature before IE did). The only reason not to use Firefox is because it would cost too much to make all of the IE-only sites work in it.

Older »