Archive for April, 2009

APC config files

Wednesday, April 22nd, 2009

Tis page is veing updated at APC Debian

Once you activate APC from PHP.INI, you should probably use some directives to make this magical invention work.

For example, APC and smarty templates don’t go together bery well, SMARTY caches it’s results into PHP files rather than reparsing them, if APC is set not to check for changes in files, it will simply not load the new SMARTY template untill the APC cached version is gone.

But APC is such a beuty, and it translates to lower load on your server.

First, you should understand that on a big PHP server, many changes need to be done.

First, APC data lives in shared memory, By default on a linux system this is usually 33 Megabytes, not enough for one big PHP program, you need to increase it

1- How much shared memory is there now

cat /proc/sys/kernel/shmmax

2- Change that to something suitable

vi /etc/sysctl.conf (Reboot don’t you think )

remember, Don’t go too high, if your system gets low on memory and starts swapping, you are out of luck

3- Make sure you know what the settings here do… what you can change for directories and what you can’t etc..

Directive Description Use Warnings More Notes
apc.cache_by_default
apc.coredump_unmap
apc.enable_cli
apc.enabled
apc.file_update_protection
apc.filters
apc.gc_ttl
apc.include_once_override
apc.max_file_size
apc.mmap_file_mask
apc.num_files_hint
apc.report_autofilter
apc.rfc1867
apc.rfc1867_freq
apc.rfc1867_name
apc.rfc1867_prefix
apc.shm_segments
apc.shm_size
apc.slam_defense
apc.stat
apc.stat_ctime
apc.ttl
apc.user_entries_hint
apc.user_ttl
apc.write_lock

DRM for paper does not work – Zinio is a pain

Wednesday, April 8th, 2009

So, i got some magazines from ZINIO, and boy is that annoying, I still don’t get what they are trying to do and what for

You want people Not to circulate it, Will that really work ?

If you can print, you can print to PDF right, that makes it circulate, if you can print you can also print to JPG which is even easier to circulate !

Want to protect the text from making it to the blogs ? You can’t

Here is a very quick way that i can convert ZINIO files to PDF, MS Word, or whatever other format in a few minutes

NOTE: I tested this and i know it works, i was investigating the efficiency of the ZINIO approach

Except for the printing, 2 and 3 and 4 can be done in a batch

1- Print to JPG’s

2- Import the JPG’s into OMNIPAGE

3- Convert to text and images with OMNIPAGE

4- Save all in whatever format you please, including text PDF, MS Word, Text files, whatever you want and OMNIPAGE permits

So, the moral is, if someone wants to take your magazine to the web, they can, they can actually do it with the paper edition and a scanner

Sollution:

Accept the fact that it is impossible to fully protect, Use secured adobe PDF, Adobe protection is a fair medium between usability and protection

Now, Hope that no one takes it to the web

I hope adobe will make a website like ZINIO and offer there ser vices to publishers, The zino reader is hell

I blurred the image on this so that they don’t come after me for copyright or something, but look at the reader

ZINIO reader user interface

ZINIO reader user interface

Searching is very slow, Page flipping is very slow on my Quad Core, printing is either no printing or 2 page printing at a time, it is real hell

Even worse, You zoom in, then the hand tool will also function to zoom out, so you need to pay close attention in order to read a simple Home Improvement magazine, They just can’t be serious

Escort Radar passport 9500IX

Thursday, April 2nd, 2009

I like the idea of this new thing, Why detect the radar, why not memorise it’s location

Update this thing’s database, and it will use GPS to tell you when you are going for a camera

escort radar passport 9500IX

escort radar passport 9500IX