mainframezen's posterous http://mainframezen.com Most recent posts at mainframezen's posterous posterous.com Wed, 16 May 2012 07:25:14 -0700 Batch! It could be a message from mainframe COBOL shop. No offense to both. http://mainframezen.com/batch-it-could-be-a-message-from-mainframe-co http://mainframezen.com/batch-it-could-be-a-message-from-mainframe-co It could be a message from mainframe COBOL shop. No offense to both.

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Fri, 20 Apr 2012 06:35:47 -0700 Google Reader annoyance http://mainframezen.com/google-reader-annoyance http://mainframezen.com/google-reader-annoyance The new Google Reader does not help me get back to the "home" page.

Both the google and reader buttons on the left are not readable, so if
I scroll down the left div I'm not able to click "Home" to get back
home.

Don't get it.What is the rationale to remove the "you can always click
my logo" feature?

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Fri, 20 Apr 2012 06:29:42 -0700 Building architecture http://mainframezen.com/building-architecture http://mainframezen.com/building-architecture Our office building has the staircase after the elevator corridor.
That's just stupid.
At peak hours like lunch, people get stuck and can't get through the
mob waiting for an elevator.

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Wed, 18 Apr 2012 08:43:48 -0700 35 anos http://mainframezen.com/35-anos http://mainframezen.com/35-anos Porque raios é que ter 35 anos é um requisito para ser director de
informática em Portugal?
Dasse!

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Wed, 18 Apr 2012 08:37:16 -0700 Sent Items http://mainframezen.com/sent-items http://mainframezen.com/sent-items Why is the sender column in the Sent Items folder? #UX #fail

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Mon, 26 Mar 2012 07:11:32 -0700 Google Search http://mainframezen.com/google-search http://mainframezen.com/google-search Dear Google Search,

Please stop showing results from .br TLD, I'm in Portugal and you know it.
Get them to the end of the list.

And apply reverse rule to people in Brazil?

Thanks.

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Wed, 29 Feb 2012 14:03:10 -0800 Usability stupid http://mainframezen.com/usability-stupid http://mainframezen.com/usability-stupid

Why is it so hard to get to the alalrm function on any phone? all these ux shit and you cannot do a basic thing fast and sweet.

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Tue, 17 Jan 2012 04:14:00 -0800 Good reads for a Tuesday http://mainframezen.com/good-reads-for-a-tuesday http://mainframezen.com/good-reads-for-a-tuesday

Access to access

http://sethgodin.typepad.com/seths_blog/2012/01/access-to-access.html

A Pixel Identity Crisis

http://www.alistapart.com/articles/a-pixel-identity-crisis/

Schlep Blindness

http://www.paulgraham.com/schlep.html

Android Design

http://developer.android.com/design/index.html

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Wed, 11 Jan 2012 12:06:32 -0800 Licensing managers http://mainframezen.com/licensing-managers http://mainframezen.com/licensing-managers

Software vendors should change from license managers to registered use.

Instead of stopping people from trying the tools, this would enable them to collect data to help future sells.

I use newrelic for free and they can use evryone's data to learn about apps in the real world.

Oracle database is expensive and has no license manager software to lock you up.

Is there an account made on lost business from licensing tirania?

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Tue, 29 Nov 2011 12:51:08 -0800 Switched from Google Search to Duck Duck Go http://mainframezen.com/switched-from-google-search-to-duck-duck-go http://mainframezen.com/switched-from-google-search-to-duck-duck-go Why use it?

Reason 1: http://dontbubble.us/

Reason 2: http://donttrack.us/

Try it.

https://duckduckgo.com/

Very easy to add to Firefox.

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Fri, 23 Sep 2011 04:51:00 -0700 Bitcasa http://mainframezen.com/bitcasa http://mainframezen.com/bitcasa

Get infinite storage for life 

https://www.bitcasa.com/beta-signup?share=2503963524

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Fri, 23 Sep 2011 04:26:00 -0700 Morning readings http://mainframezen.com/morning-readings http://mainframezen.com/morning-readings

The problem has always been not to find but to choose.

 

“Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway,” Andrew Tanenbaum wrote in 1996. 

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Tue, 02 Aug 2011 14:24:00 -0700 PDF shrink http://mainframezen.com/pdf-shrink http://mainframezen.com/pdf-shrink

So you are a company that outsources business document templates design (invoices, whatever) and you are not able to make that PDF below 100KB as it should be.

Maybe you are at 500KB or 700KB. Who knows how much you are wasting on WORM disk. And IP traffic. Whatever you pain may be, I found a short solution for PDF shrinking.

This does not scale well, you can shrink ~2 PDFs per CPU/core. But it works and it's free if you can spare the CPU.

You will need a POSIX operating system (linux, bsd, macosx, maybe cygwin).
I did it with a Perl CGI to keep it simple enough.

Now the solution as it is. 

Let's say you have a web application that takes the PDF template and fills the fields with client data and outputs a final PDF to send to the client.
Before sending to the client, you POST it to the Perl CGI (or PHP script, or...) and save the resulting shrinked PDF.
This is the PDF you send to the client and archive on WORM disk or whatever long term storage you have.

The solution as a shell one liner:

cat bigpdf.pdf | pdftops - - | ps2pdf - - > smallpdf.pdf

The Perl CGI test script:
#!/usr/bin/perl

use CGI;

my $query = new CGI;

my $upload = $query->upload("pdf");
if (defined $upload) {
   my $ingest = $upload->handle;
   open my $file, '>', "/ergo/scratch/$$.pdf" or die "file create";
   my $bytesread;
   my $buffer;
   while($bytesread = $ingest->read($buffer,1024)) {
      print $file $buffer or die "file write";
   }
   close $file;
} else {
   print $query->header();
   print $query->start_multipart_form();
   print $query->filefield(-name=>'pdf');
   print $query->submit(-name=>'doit', -value=>'doit');
   print $query->end_multipart_form;
   exit;
}

die "no pdf" if (-z "/ergo/scratch/$$.pdf");
system("/usr/bin/pdftops /ergo/scratch/$$.pdf /ergo/scratch/$$.ps");
die "no ps" if (-z "/ergo/scratch/$$.ps");
unlink("/ergo/scratch/$$.pdf");
system("/usr/bin/ps2pdf /ergo/scratch/$$.ps /ergo/scratch/$$.pdf");
unlink("/ergo/scratch/$$.ps");
die "no pdf" if (-z "/ergo/scratch/$$.pdf");

LABEL:

my $size = -s "/ergo/scratch/$$.pdf";
print $query->header( -type=>'application/pdf', -Content_length=>$size,);
open my $outf, '<', "/ergo/scratch/$$.pdf" or die "file send";
print while(<$outf>);
close $outf;
unlink("/ergo/scratch/$$.pdf");
exit;
It is getting PDF shrinking from 70% to 90%. Save some bucks and implement this internally if it suits you.

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Fri, 08 Jul 2011 02:09:21 -0700 Links for a Friday http://mainframezen.com/links-for-a-friday http://mainframezen.com/links-for-a-friday Why patents are evil:
http://blogs.forbes.com/timothylee/2011/07/07/microsofts-android-shakedown/

MongoDB in production
http://blog.boxedice.com/mongodb/

ASKKEN is visual data browsing powered by Freebase
http://askken.heroku.com/


Redmine plugin turns it into and Hoptoad server
https://github.com/yeah/redmine_hoptoad_server

initr
Redmine plugin that turns it into an Puppet provisioning facility
https://github.com/descala/initr

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Wed, 06 Jul 2011 16:43:14 -0700 redmine plugin http://mainframezen.com/redmine-plugin http://mainframezen.com/redmine-plugin Redmine plugin that allows you to make two custom fields with list format and issue related to depend as category and subcategory.

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Fri, 06 May 2011 07:36:49 -0700 XEO web framework? http://mainframezen.com/xeo-web-framework http://mainframezen.com/xeo-web-framework

It’s Java.

It’s made in Portugal.

Has no bugs ;) http://sourceforge.net/tracker/?group_id=515655&atid=2095776

Image001

http://www.xeoframework.org/

P.S. Braga, Braga, Braga

via @ivobrandao

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Fri, 06 May 2011 07:20:01 -0700 UOU http://mainframezen.com/uou http://mainframezen.com/uou

Framed with Copy+paste.

Image001

http://www.ft.com/cms/s/2/b552909c-6740-11e0-9bb8-00144feab49a.html#ixzz1La8D2nbk

I wonder if this hash links my link to my IP at the time of my copy+paste… hmm…

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Wed, 04 May 2011 07:52:23 -0700 sign up pages http://mainframezen.com/sign-up-pages http://mainframezen.com/sign-up-pages

Started this job by using the wonder wheel. From this I can pursuit popular sign up pages. Useful research tooling.

Image005

Twitter

Image001

Simple. Not as exciting as the fail whale page.

Vimeo

Image002

Beautiful.

Google

Image004

You need it or else you turn this down. I’m in. Also, you need some non-virtual confirmation like mobile phone verification.

MySpace

Image003

Since I can sign in with Facebook, it gets easier.

Facebook

Image006

This page is the reason I gave up on Facebook when I heard about it some years ago. But now I see it also as a simple way of communicating to the new user what Facebook is all about.

JP, next time, when you have time, post some sign up pages you hate or find irritating.

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Wed, 04 May 2011 07:41:32 -0700 Google Facebook http://mainframezen.com/google-facebook http://mainframezen.com/google-facebook

The interesting part is that Google responds to huge amounts of facebook related searches and sends people to the place.

Don’t be evil and make a better world.

On the other hand, Alexa Search Analytics says that facebook searches drive traffic to google.

Image001

This is something that defies logic or intuition.

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro
Wed, 04 May 2011 03:35:34 -0700 Estúdio Ruim http://mainframezen.com/estudio-ruim http://mainframezen.com/estudio-ruim

Yesterday I spent some time looking at the remarkable project called EyeWriter. It’s an open source and open content research effort to give people suffering from ALS a simple way to communicate with their eyes.

The motivation came from an artist called TEMPT and therefore the project has this description “It is a low-cost eye-tracking apparatus & custom software that allows graffiti writers and artists with paralysis resulting from Amyotrophic lateral sclerosis to draw using only their eyes.”

Homepage: http://www.eyewriter.org/

Then I (re)came across a wonderful piece of software called openframeworks: “openFrameworks is an open source C++ toolkit

for creative coding.”

The galley provides awesome examples of the projects people are creating.

Watch what it can do on their website: http://www.openframeworks.cc/

I guess DISPLAX (by Edigma) uses this project, together with opencv.

There also some interesting work by Estúdio Ruim: http://ruim.pt/work/

JP, did you have a look at this subjects?

OpenFrameworks
Processing
Cinder
Computer Vision (OpenCV)
Generative animation
Computer graphics (OpenGL, shaders, etc..)

If not, do so.

Permalink

]]>
http://files.posterous.com/user_profile_pics/1121127/qrcode.gif http://posterous.com/users/5Bcc6IXp4O1b João Ribeiro mainframezen João Ribeiro