Pulp – software repository management

Pulp – software repository management.

Pulp is a platform for managing repositories of content, such as software packages, and pushing that content out to large numbers of consumers. If you want to locally mirror all or part of a repository, host your own content in a new repository, manage content from multiple sources in one place, and push content you choose out to large numbers of clients in one simple operation, Pulp is for you!

What is the shortest and most effective code ever written?

Quora runs the question, that by now has plenty of awesome answers.  But this one is my favorite so far:

The ‘true’ program in Unix from the 1970s was an empty file. The shell interpreted that as a shell script which ran and resulted in no error status, so the result was zero. Zero is the shell exit code value that represents ‘success’ or ‘true’ within if and while clauses.

So, no program can be shorter than that. And it was entirely effective at meeting its specification.

False was much longer, being

exit 1

Once lawers got in, both programs were sullied with plenty of copyrights. BSD also eventually established a format for identifying shell scripts explicitly, and those codes got added to the file too. Eventually, ‘true’ stretched to hundreds of bytes of copyrights on top of the shell script format intro code. Now, annoyingly, Linux and Mac OS have made it a compiled binary program. In Ubuntu, it is a 22K binary with an 18K code size. Ugh.

At least writing a correct C program for true can be very short. It is one of the few C programs that should require no #include files, and can be simply:

int main(void){return 0;}

Of course make sure to add lots of copyright notices.

Upgrading to Skype 4.3 on Linux

Today Skype failed to log me in on one of my Fedora Linux laptops.  That, I guess, is a part of the force upgrade to Skype 4.3.  While doing so, I came across two issues:

  1. Download Skype page is broken in Google Chrome.  After choosing the Linux distribution nothing happens.  Switching to Firefox helps.
  2. The new, upgraded Skype crashes about 2 seconds after a successful login.  When started from the command line, a simple Aborted message is displayed.  Nothing more.  (Maybe because I have core dumps disabled).  After a bit of Googling around, all you need to do is rename your ~/.Skype/ folder into something else and restart Skype.  This will lose your history, some settings, and edited contact names.  But the Skype will work and your contacs will still show up in correct groups.

No “thank you” to you, Microsoft.  Huge thank you to you, Google.  Once again you saved the day.