26.7.04
22:59 Linux on PDA (
,
,
,
)
An interesting (and funny) presentation about the actual situation with linux on PDA: device specs, kernel, cross compiling toolchain, networking, flashing, OpenEmbedded, ARM.
Some more interesting links usefull for cross building:
posted by Jean-Marc Autexier |
0 comments | Permalink | Send to Friends | Google it!
24.7.04
18:31 JMimeMagic (
,
,
,
)
Java: JMimeMagic is a Java library that retrieves file and stream mime types by checking magic headers. Usage is very simple.
Code sample:
MagicParser parser = new MagicParser() ;
// getMagicMatch accepts Files or byte[], which is nice if you want to test streams
MagicMatch match = parser.getMagicMatch(new File("test_docs/test.gif")) ;
System.out.println(match.getMimeType()) ;
The list of supported mime types is already quite long.
License is LGPL.
posted by Jean-Marc Autexier |
0 comments | Permalink | Send to Friends | Google it!
12:22 Embedded web server: jetty (
,
,
,
)
Java: ysesterday I looked for embedded java web browser and discovered jetty. Compared to other java web server, the advantages of jetty are:
- contains a ServletHandler which allows you to write standard servlets and run them in jetty
- embedded: you don't have to install (and maintain, configure) a web server. The web server (HttpContext) is in your application, you just bind it on a port, register a servlet and that's it. Your application runs like any other Java application.
- Apache license: good for distribution
- Small memory consumption: my test application (web server, one servlet) runs with 8MB memory.
- large installatiton base
Code extracts:
// Create HttpServer and listen on port 8181
HttpServer server = new HttpServer();
HttpListener listener= server.addListener(new InetAddrPort("localhost",8181));
// Create a HTTP context and add it to the serverHttpContext context = new HttpContext();
context.setContextPath("/test/*");
server.addContext(context);
// Create a servlet container and add to the context
ServletHandler servlets = new ServletHandler();
context.addHandler(servlets);
// Map a servlet onto the container
// "/servletX/*" is the URL path under which the servlet will be reachable
// "org.package.MyServlet" is the servlet which will be called
servlets.addServlet("ServletName","/servletX/*","org.package.MyServlet"); That's it. Write your servlet, map it onto the container and run your application. The servlet will be reachable under "http://localhost:8181/servletX".
Few handlers come with jetty: RessourceHandler (serve static content), DumpHandler (dump request and response headers), SecurityHandler (for authentication), ForwardHandler, NotFoundHanlder ...
posted by Jean-Marc Autexier |
3 comments | Permalink | Send to Friends | Google it!
12:12 (
,
,
,
)
Java: ceperez maintains a nice list of Open Source Java Tools. Current topics: automated test tools, distributed cache, full text search, graph and networks visualization, identity management, integration solution, collections, JDBC proxy driver, JMS, personal proxy server, portal, probabilistic networks, profiler, NIO projects, rule engine, state machine, structured graphics libraries, web crawlers.
posted by Jean-Marc Autexier |
0 comments | Permalink | Send to Friends | Google it!
22.7.04
13:22 What music do you hear? (
,
,
,
)
The register publish a list of music genre depending on job type. Fortunately I'm not a Microsoft-certified professionals :-)
posted by Jean-Marc Autexier |
0 comments | Permalink | Send to Friends | Google it!
15.7.04
22:24 Embedded Linux terminology (
,
,
,
)
Scratchbox have a page of nice embedded linux terminology definition. If you wan to know what embedded linux, cross development, toolchain, busybox and ... are, just go there.
posted by Jean-Marc Autexier |
0 comments | Permalink | Send to Friends | Google it!
12.7.04
09:17 OpenEmbedded 3.5.1_20040711 image (
,
,
,
)
Zaurus: I've build yesterday my first working OE image (opie) for collie.
Small build problems (ipkg, cvsdate...) but overall OE guys did a great job so far. I could flash my SL5500G with the image and OE/Opie starts well.
Known bugs (mainly font problem) and limitations (not yet imported packages) are described on the OE Wiki TODO3.5.1 page.
Maybe I will publish my image later on here...
posted by Jean-Marc Autexier |
0 comments | Permalink | Send to Friends | Google it!
11.7.04
21:58 Cross compiling tutorial (from building a router with firewall in Sega dreamcast) (
,
,
,
)
Another cross compiling tutorial. The tutorial explains how to build an "ADSL software router with firewalling and virtual private networking on embedded devices with Linux on the example of a SEGA Dreamcast gaming console".
posted by Jean-Marc Autexier |
0 comments | Permalink | Send to Friends | Google it!
10.7.04
10:15 Bruce Eckel: Java Issues & Directions (
,
,
,
)
Bruce gave a presentation for the California Digital Library on issues and directions for the Java language
posted by Jean-Marc Autexier |
0 comments | Permalink | Send to Friends | Google it!
7.7.04
17:17 Article: Compiling Java on Windows (
,
,
,
)
Java: Article: Going Native:
Compiling Java on Windows.
In this article from 2003, William Gross explains how he build a native windows application with Java.
Highlights:
- major part of the code is written in Java, only GUI in C++
- "Java Webstart is Out"
- The GNU compiler (GCJ) doesn't work very well
- Natively compiled code is sometimes faster, but it's not that much faster. Difference is usually under 1 second per query
- Memory consumption down from 29MB (java) to 10MB (native app)!
- Dark side: QA is higher (because development "runtime environment" is not identical to final runtime environment, long compilation time
- "Almost all of my bugs were in the C++"
- "Java code evolved much faster than the C++ code, is much cleaner than the C++ code, and does much more than I originally planned for it to do"
- "If I didn't tell you it was written in Java, you wouldn't know"
posted by Jean-Marc Autexier |
0 comments | Permalink | Send to Friends | Google it!
2.7.04
23:10 Pysco installation (
,
,
,
)
I finally succeed to install psyco on my Suse box. Don't know why it didn't work last time, it's simple to install (and I know nothing about python, time for me to learn it). Just follow Installing from sources instrauctions:
- download sources
- unpack
- as root, run: python setup.py install
That's it. It's amazing how fast oemake is with psyco. Now if gcc could be faster too...
posted by Jean-Marc Autexier |
0 comments | Permalink | Send to Friends | Google it!
|
 |
|
 |
 |