ThinkPad Bluetooth ON/OFF

ON echo 1 > /sys/devices/platform/thinkpad_acpi/bluetooth_enableecho 1 > /sys/devices/platform/thinkpad_acpi/bluetooth_enable OFF echo 0 > /sys/devices/platform/thinkpad_acpi/bluetooth_enableecho 0 > /sys/devices/platform/thinkpad_acpi/bluetooth_enable

jetty-maven-plugin 8.1.15.v20140411

Below a sample config for new version of jetty plugin for maven. <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>8.1.15.v20140411</version> <configuration> <webApp> <contextPath>/myapp</contextPath> </webApp> <reload>automatic</reload> <scanIntervalSeconds>1</scanIntervalSeconds> <connectors> <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> <port>8081</port> <maxIdleTime>60000</maxIdleTime> </connector> </connectors> </configuration> </plugin><plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>8.1.15.v20140411</version> <configuration> <webApp> <contextPath>/myapp</contextPath> </webApp> <reload>automatic</reload> <scanIntervalSeconds>1</scanIntervalSeconds> <connectors> <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> <port>8081</port> <maxIdleTime>60000</maxIdleTime> </connector> </connectors> </configuration> </plugin>

adb connect… unable to connect to 192.168.1.4:5555

connect mobile with usb cable $ adb tcpip 5555 restarting in TCP mode port: 5555$ adb tcpip 5555 restarting in TCP mode port: 5555 disconnect mobile from pc $ adb connect 192.168.1.4 connected to 192.168.1.4:5555$ adb connect 192.168.1.4 connected to 192.168.1.4:5555 $ adb devices List of devices attached 192.168.1.4:5555 device$ adb devices List of devices Read more about adb connect… unable to connect to 192.168.1.4:5555[…]

Android on VirtualBox + BLE4 + adb / ADT

VirtualBox config: Settings -> Serial Ports on Settings -> Network: NAT Port forwarding: On start machine select Devices menu -> USB -> mark device with Bluetooth support. $ ipconfig Karta Ethernet VirtualBox Host-Only Network: Sufiks DNS konkretnego połączenia : Adres IPv6 połączenia lokalnego . : …… Adres IPv4. . . . . . . . Read more about Android on VirtualBox + BLE4 + adb / ADT[…]

d3.js – some transition

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>d3</title> <script src="js/jquery-1.11.1.min.js"></script> <script src="js/d3.v3.min.js" charset="utf-8"></script> <style> body { font-size: 12px; } </style> </head> <body> <a href="#">update</a>   <script> var data = [ 10, 13, 20, 54, 5, 15 ];   var color = d3.scale.category20();   var selection = d3.select("body") .append("svg") .selectAll("circle") .data(data) .enter() .append("circle") .attr(‘r’, 5) .attr("fill",function(d,i){return color(i);}) Read more about d3.js – some transition[…]