Det handler om å kjøre (all) koden din, så ofte som mulig, med så gode tilbakemeldinger som mulig.
Buster.js ble presentert.
OperaDriver og ChromeDriver kommer sannsynligvis til Selenium 2 beta 4
Mange tester for html5 er skrevet i WebDriver
Det handler om å kjøre (all) koden din, så ofte som mulig, med så gode tilbakemeldinger som mulig.
Buster.js ble presentert.
OperaDriver og ChromeDriver kommer sannsynligvis til Selenium 2 beta 4
Mange tester for html5 er skrevet i WebDriver
When researching a new tool or a framework API for use I find myself getting tired or bored after spending time doing work that will not be directly productive, and previously I have made rush decisions or didn't "go all the way", thinking that "barely sufficient" = enough.
The other day, I started thinking that different ways of revisiting such projects should add real value. preferably, there should be (at least) 1 more person with a fresh attitude who can continue from where I left, and/or do:
If it is too hard to get 1 more person, it may be wise to simulate him by taking a break from this project and revisiting it later.
From OpenSymphony.
Code can be downloaded here.
Web-page layout and decoration.
Aids generating consistent look/feel, navigation and layout scheme.
Can include other pages (server-side include).
J2EE, but can be used outside as well (PHP, CGI...).
Extensible.
pom.xml:
<dependency>
<groupId>opensymphony</groupId>
<artifactId>sitemesh</artifactId>
<version>2.4.2</version>
</dependency>
web.xml:
<filter>
<filter-name>sitemesh</filter-name>
<filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<taglib>
<taglib-uri>sitemesh-page</taglib-uri>
<taglib-location>/WEB-INF/sitemesh-page.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>sitemesh-decorator</taglib-uri>
<taglib-location>/WEB-INF/sitemesh-decorator.tld</taglib-location>
</taglib>
</jsp-config>
Copy in mentioned files (tld)
decorators.xml:
<decoratorsdefaultdir="/decorators">
<decorator name="main" page="main.jsp">
<pattern>*</pattern>
</decorator>
<decorator name="printable" page="printable.jsp"/>
</decorators>
Default logic to determine what decorator to apply, first match:
printable=true parameter (If so, use the printable decorator.)Can be overridden.
<%@taglib uri="sitemesh-decorator" prefix="decorator"%>
<decorator:usePageid="myPage"/>
<html>
<head>
<title>SiteMesh main - <decorator:title default="Welcome!"/></title>
<decorator:head/>
</head>
<body>
<h1>SiteMesh main <decorator:title default="Welcome!"/></h1>
<h3><a
href="mailto:<decorator:getProperty property="meta.author"
default="staff@example.com"/>">
<decorator:getProperty property="meta.author"
default="staff@example.com"/>
</a>
</h3>
<hr/>
<decorator:body/>
<p><small> (<a href="?printable=true">printable version</a>)</small></p>
</body>
</html>
Bluetooth keyboard
Details in ReadMe file.
Maybe also (books code):
User-Space Java Bluetooth (JSR-82) Keyboard Driver.
JSR-82 implementation on Java Standard Edition (J2SE). I had some problems making it work on Mac OSX 10.6, but this seems to be fixed by a beta version 2.1.1-SNAPSHOT (cf. BlueCove does not work with Mac OS 10.5.x, Java 1.6.0 - 64 Bit).
To get tester running I had to use 32-bit mode from command-line:
Put in deli tag bluekey.
Dr. Dobbs article Java & Bluetooth.
SDN Article The Java APIs for Bluetooth Wireless Technology.
Nokia's Bluetooth RFCOMM and L2CAP Examples.
Articles on javabluetooth.com.
| Code | Points
to make |
class PhoneNumber( val kind: String, var no: String ) { |
switch to name: type
val / var / def primary constructor Concise |
object PhoneNumber{ |
object, no statics
apply is "default method" |
val phonebook = Map( |
Expressive |
| println( phonebook("Tommy mobil" ).no ) | Concise |
| phonebook.foreach(tuple => println( tuple._1 + ":" + tuple._2 )) | High-level
functional iteration |
| 1.1.+(2.2)
1 until 10 |
Pure OO
operator mode for methods |
val xmlE = <a href="index.html"> {3 + 4} </a> |
Pragmatic |
| Code | Points to make |
| TestServer | object and main |
| client.v2.Notifier | operators |
client.ServiceBrowser:
| traits
Function is first-class object Option + match |
| sclanb.Main.recurse2 | Closures, and how crazy I got |
| sclanb.Main |
|
| client.ServiceBrowserListener | abstract, no interface |
| FirstSwingApp. | DSL, Swing |
| Code from ch30 | Actors |