http://gridzzly.com/
有網眼(方格點、三角點)、方格、五線譜…
還能調size
很ez用 ui比之前另一個好
2018年4月11日
2018年4月3日
[JAVA]用JEXL處理算式
/**
* @author Querida
http://solnone.blogspot.tw/2010/06/apache-commons-jexl.html
*/
package testQ;
import org.apache.commons.jexl3.JexlContext;
import org.apache.commons.jexl3.JexlEngine;
import org.apache.commons.jexl3.JexlExpression;
import org.apache.commons.jexl3.MapContext;
import org.apache.commons.jexl3.internal.Engine;
public class TestJEXL {
public static void main(String[] args) {
// Create or retrieve a JexlEngine
JexlEngine jexl = new Engine();
// Create an expression object
String fomula = "quanty * price * 100";
JexlExpression jexlExpression = jexl.createExpression(fomula);
// Create a context and add data
JexlContext jexlContext = new MapContext();
jexlContext.set("quanty", 2);
jexlContext.set("price", 3);
// Now evaluate the expression, getting the result
Object o = jexlExpression.evaluate(jexlContext);
System.out.println(o);
}
}
[JAVA]DATE 的一些處理(joda time)
Date nowDate= new Date();
//java DATE TO joda time
new DateTime(nowDate);
//今天是一個月裡的第幾天
new DateTime(nowDate).getDayOfMonth();
//這個月有幾天
new DateTime(nowDate).dayOfMonth().getMaximumValue();
//上個月有幾天
DateTime dayOfPeriousMonth = new DateTime(nowDate).minusMonths (1);
System.out.println(dayOfPeriousMonth);
int daysInPeriousMonth=dayOfPeriousMonth.dayOfMonth().getMaximumValue();
System.out.println(daysInPeriousMonth);
//取出上個月的12號DateTime periousM12=dayOfPeriousMonth.withDayOfMonth(12);
System.out.println(periousM12 );
//joda time to java Date
new DateTime().toDate();
//本月第一天
DateTime firstDayOfMonth = new DateTime().dayOfMonth().withMinimumValue();
//某個時間是否是在今天內
if( new DateTime( someDateTime).isAfter( DateTime.now().minusDays(1) )){
System.out.println(someDateTime+" is in 24 hours");
}else {
System.out.println("not in!");
}
2018年2月14日
翻譯文章工具
不是翻譯的網頁 是方便用來翻譯文章的線上工具
https://termsoup.com/zh-TW/
提供了ex自動分段落、自動存檔、匯出
文章貼上去後 就會自動分成一句句 TAB就能下一句
也有字典功能 但英文比較派的上用場
自己翻過的詞 也可以加入自己的字典
https://termsoup.com/zh-TW/
提供了ex自動分段落、自動存檔、匯出
文章貼上去後 就會自動分成一句句 TAB就能下一句
也有字典功能 但英文比較派的上用場
自己翻過的詞 也可以加入自己的字典
2018年2月13日
開始Python...
以下ref 《Python 程式設計實例入門》
直譯器...
Cpython:自由軟體,目前由Python軟體基金會管理,以C編寫的 (書本用他)
ZhPy:可用中文編寫程式
PyPy:用Python寫的,執行速度會比Cpython快
IronPyton:可以呼叫.NET平台的函式庫、編成.NET程式
Jython:用JAVA寫的,可以直接呼叫JAVA函式庫
環境建置...
https://www.python.org →DOWNLOAD
1.執行3.6.X.exe
2.1 勾選 Add Python 3.6 to PATH
2.2 勾選 Install launcher for all users
2.3 點選Customize installation
3. Optional Features 使用預設的選項
(pip是管理python套件的工具、tcl/tk是第三方套件用來寫GUI、IDLE是python內建的IDE)
4.Advanced Options
4.1勾所有選項
4.2預計安裝路徑
測試Python環境...
1.確認環境變數,看path是否有python軟體的執行路徑
( 【win+r】→【sysdm.cpl】)
2.開命令提示字元測試
輸入python 按enter 會顯示python的版本 並進入python shell 互動模式(會顯示「>>>」)
隨便打個數學算式 3+3+3 按enter 會出現結果9 (游標會停留在>>>字元下)
3.寫一個小程式
開記事本 輸入【print('hihihi!')】存檔【hihi.py】
開命令提示字元 打 【python hihi.py】 ENTTER
如何在CMD下結束python shell? 輸入【quit()】
直譯器...
Cpython:自由軟體,目前由Python軟體基金會管理,以C編寫的 (書本用他)
ZhPy:可用中文編寫程式
PyPy:用Python寫的,執行速度會比Cpython快
IronPyton:可以呼叫.NET平台的函式庫、編成.NET程式
Jython:用JAVA寫的,可以直接呼叫JAVA函式庫
環境建置...
https://www.python.org →DOWNLOAD
1.執行3.6.X.exe
2.1 勾選 Add Python 3.6 to PATH
2.2 勾選 Install launcher for all users
2.3 點選Customize installation
3. Optional Features 使用預設的選項
(pip是管理python套件的工具、tcl/tk是第三方套件用來寫GUI、IDLE是python內建的IDE)
4.Advanced Options
4.1勾所有選項
4.2預計安裝路徑
測試Python環境...
1.確認環境變數,看path是否有python軟體的執行路徑
( 【win+r】→【sysdm.cpl】)
2.開命令提示字元測試
輸入python 按enter 會顯示python的版本 並進入python shell 互動模式(會顯示「>>>」)
隨便打個數學算式 3+3+3 按enter 會出現結果9 (游標會停留在>>>字元下)
3.寫一個小程式
開記事本 輸入【print('hihihi!')】存檔【hihi.py】
開命令提示字元 打 【python hihi.py】 ENTTER
如何在CMD下結束python shell? 輸入【quit()】
2018年1月23日
[MySQL] Workbench 「Error Code: 1175」 的解決方法
Edit→Preferences…→SQL Editor
[Forbid UPDATE and DELETE statements without a WHERE clause (safe updates)]不要打勾
OK
要重啟一下Workbench!
[Forbid UPDATE and DELETE statements without a WHERE clause (safe updates)]不要打勾
OK
要重啟一下Workbench!
[CSS] css 移除 點連結時 會預設有的框
a{
outline: none; /* for Firefox */
hlbr:expression(this.onFocus=this.blur()); /* for IE */
}
https://www.minwt.com/webdesign-dev/css/1144.html
[JQuery] 讓AJAX運作的時候,跳出loding的訊息
[程式][JQuery] 讓AJAX運作的時候,跳出loding的訊息。-Part 1 @ 四處流浪的阿基。I am Vagrant Walker :: 痞客邦 PIXNET ::
http://expect7.pixnet.net/blog/post/39829979-%5B%E7%A8%8B%E5%BC%8F%5D%5Bjquery%5D-%E8%AE%93ajax%E9%81%8B%E4%BD%9C%E7%9A%84%E6%99%82%E5%80%99%EF%BC%8C%E8%B7%B3%E5%87%BAloding%E7%9A%84%E8%A8%8A
http://expect7.pixnet.net/blog/post/39829979-%5B%E7%A8%8B%E5%BC%8F%5D%5Bjquery%5D-%E8%AE%93ajax%E9%81%8B%E4%BD%9C%E7%9A%84%E6%99%82%E5%80%99%EF%BC%8C%E8%B7%B3%E5%87%BAloding%E7%9A%84%E8%A8%8A
[Eclipse] 讓程式碼看的出與git的差異 (不是按compare)
General → Editors → Text Editors → Quick Diff
ref:
EGit/User Guide/State - Eclipsepedia
http://wiki.eclipse.org/EGit/User_Guide/State
Instead of using a compare editor you can enable quick diff support and see the changes within the text editor. This feature can be enabled via the General > Editors > Text Editors > Quick Diff preference page:
ref:
EGit/User Guide/State - Eclipsepedia
http://wiki.eclipse.org/EGit/User_Guide/State
Instead of using a compare editor you can enable quick diff support and see the changes within the text editor. This feature can be enabled via the General > Editors > Text Editors > Quick Diff preference page:
@QueryParam NULL but @RequestParam OK
Q:加了@QueryParam 明明有傳參數但 一直抓到null why!!
A:改用@RequestParam
ref:
https://stackoverflow.com/questions/36392717/queryparam-always-showing-nullBecause you are using Spring MVC, which has no connection whatsoever to JAX-RS, which @QueryParam is for. Spring using @RequestParam. If you are going to use Spring, I suggest you get rid of your JAX-RS Dependency, so you don't get confused on what you can and can't use.
訂閱:
文章 (Atom)