Technorama

An omnibus of tech posts by s Futurologist on software development primarily.

Sunday, 7 December 2014

 

POSIX needs to split ENOENT

There is a problem. posix error codes have ENOENT, but this is returned by both open() and opendir(), this means the corresponding string is "No such file or directory", however, what if you were opening a file? Its a bit confusing for a word processor to report "No such file or directory"

The workarounds are not ideal, although GNU objdump and other binutils packages do do it very well. You basically need to use your own strings, and then call open_strerror(err) or opendir_strerror(err) instead of the regular strerror()

The ideal solution would be a new code for directory, although that makes compatibility difficult.

ENOENTDIR

I think this is better than introducting two new codes, so just update opendir() to set ENOENTDIR and reduce ENOENT to be "No such file"

 

: in debian/ubuntu package filename

As HTTP needs to encode : in filenames as %3a, why don't debian package filenames skip ':' ?

example

g++_4%3a4.8.2-1ubuntu6_amd64.deb

This is actually:
g++ (4:4.8.2-1ubuntu6)

Tuesday, 28 October 2014

 

http considered harmful. Browsers should default to HTTPS

If I type in myaccount.mortgagebroker.com why does the web browser still default to insecure HTTP? protocol? Nowadays, should assume https!

More importantly, should only allow existing insecure http traffic during a transition period. Deprecate HTTP and in a year from now only allow HTTPS connections which are secure.

Friday, 17 October 2014

 

Business directory phone numbers

I've a Samsung Galaxy S3. What would be great, is if Google could index directly into the address book local businesses.

AT the moment, I need to search for them on google maps, and then manually add them, after I have rang them. Of cause they change their number, and then my contact no longer works. It should be transparent, so if I type "Specsavers Marble Arch", it should search and let me dial directly!


Friday, 3 October 2014

 

The volume “boot” has only 0 byte disk space remaining?

Why do Ubuntu ship a distro like this?
Manually removing older kernels takes time. Also the initramfs fails because.. there is no disk space left on "boot"..

Surely dist-upgrade should automatically remove all old kernels apart from generic? In addition, "boot" should be a GB large, so this issue never occurs for most users.. I'm running from a 500 GB drive.

dpkg -l |grep linux-image


apt-get remove linux-image-xyz..

 

Junk mail proposal

I feel the register of electors "no marketing opt in" should be used by all organisations. That's my default decision.

If I've not specifically signed a contract opting in to their specific marketing scheme - don't junk mail me :-)


Thursday, 2 October 2014

 

Yahoo peddling malware

After 6 days no reply I'm blogging. Screen shot below

Dear Ms Marissa A. Mayer CEO

I am writing to you directly, as your company does not provide a valid
email contact adress.

Did you know that your server "ads.yahoo.com" is peddling malware?
Please see attached screenshot.

From page

http://runt-of-the-web.com/awkwardest-facebook-pictures/awkward-facebook-pictures-airport-drinking


Archives

February 2003   March 2003   April 2003   August 2004   September 2004   December 2004   May 2005   June 2005   December 2006   January 2007   February 2007   March 2007   April 2007   July 2007   August 2007   September 2007   October 2007   November 2007   December 2007   January 2008   February 2008   March 2008   April 2008   May 2008   June 2008   July 2008   August 2008   September 2008   October 2008   November 2008   December 2008   January 2009   February 2009   March 2009   April 2009   September 2009   November 2009   December 2009   January 2010   April 2010   September 2010   October 2010   November 2010   December 2010   January 2011   February 2011   March 2011   April 2011   May 2011   June 2011   July 2011   August 2011   September 2011   October 2011   November 2011   December 2011   January 2012   February 2012   March 2012   April 2012   May 2012   June 2012   July 2012   October 2012   December 2012   March 2013   May 2013   August 2013   September 2013   October 2013   November 2013   March 2014   May 2014   June 2014   July 2014   September 2014   October 2014   December 2014  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]