摘要:
添加JUnitFile > Settings > Plugins > Browse repositories > 搜索junit ,安装JunitGenerator V2重启工具以后,在右键菜单中的Generate,会增加Junit Test的选项JDK设置File > Project Structure > SDKs配色方案修改File > Settings > Appearance > Theme > DarcularAppearance > Override default fonts by(not recommended 阅读全文
摘要:
Android里的事务提交 SQLiteDatabase db = SQLiteHelper.getInstance().getWritableDatabase(); db.beginTransaction(); for (Map.Entry<String, String> entry : config.entrySet()) { ContentValues contents = new ContentValues(); contents.put("value", entry.getValue()); ... 阅读全文
摘要:
在Activit获取wifi状态获取WIFI的开关状态WifiManager wifiMgr = (WifiManager) this.getSystemService(WIFI_SERVICE);int stat = wifiMgr.getWifiState(),获取WIFI的连接状态ConnectivityManager conMan = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);State wifi = conMan.getNetworkInfo(ConnectivityManage 阅读全文
摘要:
基于前一篇的基础上进行配置http://www.cnblogs.com/yondy/archive/2013/04/23/3033404.html因为lighttpd不支持svn,所以要先卸载掉sudo apt-get remove lighttpd新安装apache2及模块sudo apt-get... 阅读全文
摘要:
raspbian为树莓派的官方系统,基于Debian裁剪过的Linux系统其配置过程如下烧录镜像首先从树莓派的官方网站上下载镜像和镜像工具http://www.raspberrypi.org/downloads Win32DiskImager Raspbian “wheezy”镜像压缩包大概为400M,解压之后为1.8G,所以需要一张2G以上的SD卡才能完成镜像写入写完之后,插到树莓派上,插上电源即可启动开机后进行相应的设置只要包括以下几个部分expand-rootfs 把SD的所有空间扩展为raspberry pi的根目录(默认只是镜像的1。8G)overscan 在屏幕不能完整显示时配置c 阅读全文
摘要:
原文位置:http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.htmlRelease: JavaFX 2.2JavaFX CSS Reference GuideContentsIntroductionCSS and the JavaFX Scene GraphLimitationsInheritanceExamplesUnderstanding Parser WarningsTypesinherit<boolean><string><number> & <integ 阅读全文
摘要:
一、半自动方式1、通过apt-get直接下载安装JDKsudo apt-get install openjdk-7-jdk执行之后会将JDK安装到/usr/lib/jvm/java-7-openjdk-i386/2、通过update-alternatives选择系统中使用的javasudo update-alternatives --config java有 3 个候选项可用于替换 java (提供 /usr/bin/java)。 选择 路径 优先级 状态----------------------... 阅读全文
摘要:
CSS参考:http://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.htmlAPI参考http://docs.oracle.com/javafx/2/api/index.html2013-7-26SplitPane中的节点,如果不是一个布局对象,则setDividerPositions函数的值不会起作用,只会以节点的最小值作为区域的大小Button上的文字与边界的默认设置了padding,如果不想留空,可以使用btn.setStyle("-fx-padding:0;");清除TextField内建支 阅读全文
摘要:
修改/etc/apt/sources.list的软件源为163的源deb http://mirrors.163.com/ubuntu/ precise main restricteddeb-src http://mirrors.163.com/ubuntu/ precise main restricteddeb http://mirrors.163.com/ubuntu/ precise-updates main restricteddeb-src http://mirrors.163.com/ubuntu/ precise-updates main restricteddeb http:// 阅读全文
摘要:
Windows下安装驱动包SCI-android-usb-driver-jungo-v4后,通过Android SDK中的adb devices获取不到设备信息这是由于Android SDK的USB驱动配置文件缺少展讯的厂商标识导致,只需要修改以下两个文件即可解决1、修改adt-bundle-windows-x86\sdk\extras\google\usb_driver\android_winusb.inf在[Google.NTx86]、[Google.NTamd64]两个区域分别添加以下的内容; SPRD Adb%CompositeAdbInterface% = USB_Install, 阅读全文