View Single Post
Old 12-25-2009, 10:16 PM   #2
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
I like the tone of this thread!

And I like your distaste for too small or too large a font size as well as the fact that you are considering hacking that mobipocket.jar.

This is one of the reasons I got an iLiad, so that I could hack it a bit. While I don't know how to program in java, I can become a quick study with some help from this community.

Here's a partial peak at that decompiled cl.class:
Code:
/* cl - Decompiled by JCavaj
 * Visit http://www.bysoft.se/sureshot/jcavaj/
 */
import java.awt.Font;

public final class cl
{
    public static final int[] kk
	= { 5, 6, 7, 8, 9, 10, 11, 12, 14, 16, 18, 20, 24, 28, 32 };
    public static int[] kl = null;
    
    public final cn a(String string, int i, boolean bool, boolean bool_0_,
		      boolean bool_1_) {
	return new cn(new Font(string, (bool ? 1 : 0) + (bool_0_ ? 2 : 0), i),
		      bool_1_);
    }
    
    public final String do() {
	return "Monospaced";
    }

    ...

Now what else could be hacked?

Originally I tried to hack into the java system-wide defaults/parameters in the file "system.properties" within the "/home/intent/rofs_target.bin" to "activate" the proxy server settings within Mobipocket reader, but it had no effect. I wanted the Mobipocket Reader to access the internet from hyperlinks embedded within .prc ebooks.

The "system.parameters" is a config file and the network related parameters used by the tao-group's java implementation on the iLiad follow: (it looks almost ready to "use", but it's commented out)
Code:
#---- network related Properties ----

# mime Types
net.mimeDecoder=uk.co.tao.net.www.SimpleMime

# Only used if the mime decoder is 'uk.co.tao.net.www.SimpleMime'
net.simpleMimeFile=/uk/co/tao/net/www/SimpleMime.txt

# list of package prefixes for class names to use for URL stream handlers
java.protocol.handler.pkgs=uk.co.tao.net.www.protocol
# list of package prefixes for class names to use for content handlers (URL.getContent())
java.content.handler.pkgs=uk.co.tao.net.www.content

# proxy setting

# warning: the default value for http.proxySet is true for compatibility with 1.1 
# which does not define this key.
# Also, some third party http protocol handler implementations only use the 1.1 
# keys so setting http.proxyset to false may not work if an invalid host is 
# in http.proxyHost
http.proxySet=false

# the host doing the proxying
#http.proxyHost=proxyhost

# the port listening to proxy request on that host. 
# Default value is 80 but proxies are often installed at 8080
#http.proxyPort=8080

# list of hosts to access directly via http (pipe separated list)
#http.nonProxyHosts=nphost1|nphost2|nphost3

# for http connection caching, the maximum connections to cache
http.maxConnections = 5

# for http connection caching, the default connection timeout in seconds
http.defaultConnectionTimeout = 15
Any insights here?

Last edited by nrapallo; 12-25-2009 at 10:28 PM.
nrapallo is offline   Reply With Quote