bugged.be

"Think outside the [B0X]"
Icon
Welcome to my little corner on the internet where you can find some information about me and my personal notes regarding my work. It contains some useful tips, stupidy I came across and ofcourse bad documented annoyances, yes life of a developer is filled with surprises ;).
Feel free to browse around and enjoy your staying.




Disable tests in maven

<profiles>
	<profile>
		<id>no-test</id>
		<properties>
			<maven.test.skip>true</maven.test.skip>
		</properties>
	</profile>
</profiles>

Weblogic and thirdparties libraries

java.lang.NoSuchMethodError:
org.apache.commons.lang.StringUtils.join(Ljava/util/Collection;C)Ljava/lang/String;

Weblogic ignores thirdparties libraries in WEB-INF/lib by default.

To enable libraries in a web application, add following to the weblogic xml:


<prefer-web-inf-classes>true</prefer-web-inf-classes>

Msp430 Hello World, … Blinky with Simpliciti!

Another Hello World example with msp430 using Simpliciti api. Beyond being a simple project, it is also a nice base/template project for other Simpliciti projects.
Read the rest of this entry »

Msp430 Hello World, … Blinky!

This is a short example how to get started with Texas Instrument (TI) msp430 Micro controller.

Let’s get started with the mother of all examples, hello world , or blinky for the microprocessor world.
Read the rest of this entry »

Java communication api

Instructions on how to add serial/parallell port support in Java
Read the rest of this entry »

Mount smb to a local directory

To mount a samba network share to a local directory is useful for example, most linux backup software don’t support smb directly. I use this in combination with areca.

Read the rest of this entry »

Updated

Got some time to update my site with a more clean theme from Punsalan, called Grid Focus. And at last, it also looks good in Linux browsers 😉 *** Enjoii ***

Sort map by values

Map<String, String> originalMap = new HashMap<String, String>();

Comparator comparator = new CompareStuffByValue();
Map<String, String> sortedMap = new TreeMap<String, String>(comparator);

sortedMap.putAll(originalMap);

Sql join update

The mssql way:

update user_asset_tag 
set uat.assetTypeId = ua.assetTypeId
from user_asset_tag uat
join user_asset ua on ua.id = uat.userAssetId

The Oracle way:

update (
  select ua.*
  , uat.AssetTypeId as assetTypeId2
  from user_asset ua
  join user_asset_tag uat on uat.userassetid = ua.id
)o 
set o.assetTypeId2 = o.assetTypeId

Setting up a Device for Development

After follow instructionions on:
http://developer.android.com/guide/developing/device.html

Command ‘adb devices’ returns:

List of devices attached
emulator-5554	device
????????????	no permissions

Read the rest of this entry »

Calendar

June 2022
M T W T F S S
« Nov    
 12345
6789101112
13141516171819
20212223242526
27282930  

Archives