Root on comet
So I used z4root to exploit my t mobile comet and gain root access, used setcpu to enable frequency scaling to improve battery performance and rebooted. Then I mounted the filesystem read write and removed telenav and a bunch of other bloatware. SGS toolbox, astro file manager, autorun manager, root uninstaller, app2sd, superuser, advanced task killer and a few other tweaks and I am averaging 54 mb free of ram on boot. When I purge everything extra but leave the phone fully in tact, I reach up to 72 mb free. Seems pretty awesome considering the annoying apps are gone, it runs faster, and the battery life has drastically improved. I hope we start to see more manufacturers enabling cpu frequency scaling in the future so we the consumer dont have to risk our new phones safety for this must-have feature.
Postbooks Remote Client Settings
so it’s not the most secure version at this moment (no ssl tunnel, no md5 passwords), but the basic settings required for a client on another machine to connect to our basic ubuntu postbooks server are as follows
edit the file /opt/xTuple/postgres/data/pg_hba.conf
in the IPv4 section add a new line below rgw localhost directive
# IPv4 local connections:
host all all 127.0.0.1/32 md5
host all all 192.168.xxx.xxx/24 md5
edit the file /opt/xTuple/postrges/data/postgresql.conf
set the listen address (line 59) to *
listen_addresses = ‘*’ # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to ‘localhost’, ‘*’ = all
double check ports and other settings while you are in the files
restart the server
/opt/xTuple/postgres/bin/pg_ctl stop
/opt/xTuple/postgres/bin/pg_ctl start
HL Twitter Long URL Link Wrap Fix
With some helpful info I found at Perishable Press, I was able to fix two issues I had with the HL Twitter plugin for WordPress 3.0.x.
For me these were:
- Long URLs were breaking themes in the sidebar widget (if you are guilty of tweeting long URLs like me)
- links from URLs were opening in the same window. Now they open in a new one.
To do this just two files have to be changed, hl_twitter/functions.php and hl_twitter/hl_twitter_widget.php.
Easy one first: hl_twitter/hl_twitter_widget.php
- copy the hl_twitter_widget.php file into the root of your themes folder.
- open the newly created copy in an editor (vi is preferred)
- find the CSS section labeled “.hl_recent_tweets p”
- add in the following to that section of CSS
white-space: pre; /* CSS 2.0 */white-space: pre-wrap; /* CSS 2.1 */white-space: pre-line; /* CSS 3.0 */white-space: -pre-wrap; /* Opera 4-6 */white-space: -o-pre-wrap; /* Opera 7 */white-space: -moz-pre-wrap; /* Mozilla */white-space: -hp-pre-wrap; /* HP Printers */word-wrap: break-word; /* IE 5+ */
- save the file
- done! the url overflow is fixed
Now onto the other easy one: hl_twitter/functions.php
- enter the plugins/hl_twitter folder
- open functions.php in my favorite editor, VI
- change line 178, which should read $tweet = preg_replace(“#(^|[\n ])([\w]+?://[\w]+[^ \"\n\r\t< ]*)#”, “\\1<a href=\”\\2\”>\\2</a>”, $tweet) to the following
$tweet = preg_replace(“#(^|[\n ])([\w]+?://[\w]+[^ \"\n\r\t< ]*)#”, “\\1<a href=\”\\2\” target=\”_blank\”>\\2</a>”, $tweet);
- Save the file and you have completed this part (opens links in new windows)!
