2015年10月20日 星期二

使用 java 建立一個 日曆 Create your own Calendar (Date/Time) library from scratch using Java

使用 java 建立一個 日曆


Joann Mistica
Joined 11 months ago from The Philippines
Also follow me on:
report
I'm a 24-year old software engineer.

I have a very curious mind especially when it comes to how things work. I'm also enthusiastic for experiments and building things from scratch.

Some of my interests are programming, pixel art, comics, writing, rock music, and video games. I see code as a piece of art and try, as weird as it sounds, to make my masterpiece.


I like command lines and ASCII art. I find the old graphical user interfaces fascinating.


Create your own Calendar (Date/Time) library from scratch using Java





Method
Purpose
nextYear()
Returns the year after a given year.
nextDay()
Returns the next day.
nextDate()
Returns the full date (day, month, and year) after a given full date.


Method
Purpose
countDaysBetween()
Returns the number of days between two dates.
countMonthsBetween()
Returns the number of months between two dates.
countYearsBetween()
Returns the number of years between two dates.


Method
Purpose
countDaysBetween()
Returns the number of days between two dates.
countMonthsBetween()
Returns the number of months between two dates.
countYearsBetween()
Returns the number of years between two dates.



Method
Purpose
nameOfDay()
Checks which day of the week the date falls on.
addDays()
Adds days to a given date.
addMonths()
Adds months to a given date.
addYears()
Adds years to a given date.



Method
Purpose
displayCalendar()
Displays the ASCII calendar.
monthHeader()
Generates headers for each month.
dayHeader()
Generates headers for each day of the week.
line()
Creates a line to separate the headers from the actual days.
monthFiller()
Creates a unique filler for each month.
filler()
Generates the whole template and containers for each day to replace.
formatDay()
Formats the day to strictly have two digits.
indents()
Creates an indentation for every starting date or first day of the month.
fillerValues()
Adds the actual values to the template.





為電流電池保護 Versatile Micropower Battery Protector

http://www.diyelectronicsprojects.com/2014/06/versatile-micropower-battery-protector.html

http://www.circuit-finder.com

http://circuit-zone.com/?cat=battery_chargers

Versatile Micropower Battery Protector

Protect your expensive batteries from discharge damage with this mini-sized electronic cutout switch. It uses virtually no power and can be built to suit a wide range of battery voltages.

Main Features
Disconnects load at preset battery voltage
Automatically reconnects load when battery recharged
Ultra-low power consumption
Miniature size
10A maximum rating
Suitable for use with 4.8-12.5V batteries
Transient voltage protection (optional)
Suitable for use in...
Cars, boats & caravans
Security systems
Emergency lighting
Small solar installations
Camera battery packs
Many other low-power applications

webconfs 提供 許多 網路 線上 工具 如 http 檔頭確認 ip抓取所在地 網域名歷史 MD5產生器 URL轉文字 google 惡意軟體確認 檔案搜尋 螢幕解析度模擬

webconfs 提供 許多 網路 線上 工具 如 http 檔頭確認 ip抓取所在地 網域名歷史 MD5產生器 URL轉文字 google 惡意軟體確認 檔案搜尋 螢幕解析度模擬
http://www.webconfs.com/webtools.php








Web Tools
HTTP Header Check這讓你從 網址 取得 http 檔頭
This service will allow you to inspect the HTTP headers that the web server returns when requesting a page/file.

Whois Lookup這讓你取得ip
Powerful domain and IP whois lookup.

IP to City從ip得知所在地
This tools helps you determine the Country, City, Latitude and Longitude of an IP Address.

Domain Age Tool網域名歷時
This tools displays the approximate age of a website on the Internet and allows you to view how the website looked when it first started. It also helps you find out the age of your competitor's domains, older domains may get a slight edge in Search Engine Rankings.

Check Domain Hosting取得網域名的主機
Find out who is Hosting a Domain

Online MD5 Generator
This is a simple tool that computes the MD5 hash of a string
MD5產生器
Online URL EncoderURL轉換成“網址列”
URL encoding converts characters into a format that can be transmitted over the Internet.

Online URL Decoder從網址列轉回文字
URL encoding converts characters into a format that can be transmitted over the Internet. This tool converts the encoded URL back to the original.

Google Malware Check Tool讓他做 google 惡意網站 測試
This online tool helps you to find whether Google has listed the website domain as suspisious or not. Google Malware Check tool provides the security advisory to protect website visitors from harmful websites. Webmasters should check whether their website is infected or not. 

File Search Engine檔案搜尋
This tools helps you locate particular files on the internet. You can enter an exact filename or a partial filename, you will be diplayed a list of URL's through which you can download the specified file.

Screen Resolution Simulator螢幕解析度模擬
Simulates your web page in different screen resolutions.


Similar Page Checker
Search engines are known to penalize websites that contain duplicate / similar content. Your content could be similar to other websites on the Internet, or pages from within your own website could be similar to each other. This tool allows you to determine the percentage of similarity between two pages

Search Engine Spider Simulator搜尋的蜘蛛
This tool simulates a search engine crawler by displaying the contents of a webpage exactly how a search engine would see it. It also displays the links that a search engine would follow (crawl) when it visits the webpage.

Backlink Anchor Text Analysis連結超連結文字分析
This tool help you determine the link text used by your backlinks to link to your wesbite.

Backlink Builder搜尋品質與連結返回分析
This tool helps you build a LOT of quality backlinks. It searches for websites of the theme you specify that contain keyphrases like "Add link", "Add site", "Add URL", "Add URL", "Submit URL" etc, most of the results could be potential backlinks. Text links are important for ranking well in search engines.

Backlink Summary
This tool will give you a summary of your competitors backlinks.

Keyword Density Checker
This tool will crawl the specified URL, extract text as a search engine would, remove common stop words and displays the density of your keywords.

Redirect Check
It is import that a search engine is able to follow any redirects that you may have set up. This tool helps you determine whether the redirect you have created is search engine friendly.

Link Price Calculator
This tools will help you provide SEO Services by determining the appropriate amount you should be paying (or charging) per month for a text link (ad) on the specified URL. 

Reciprocal Link Check
This tool helps you ensure that your link partners are linking back to your website. It also determines the anchor text used by your link partners to link to your website.

Cloaking Checker
This tools tries to detect whether a website is 'cloaking' it's contents for search engines 

Domain Age Tool
Older domains may get a slight edge in search engine rankings. This tool displays the approximate age of a website on the Internet and allows you to view how the website looked when it first started. It also helps you find out the age of your competitor's domains.

Keyword Suggestions Tool
This tool will help you determine relevant and popular keywords related to your website.

Website Keyword Suggestions
This tools tries to determine the theme of your website and provides keyword suggestions along with keyword traffic estimates.

URL Rewriting Tool
This Search Engine Optimisation tool helps you convert dynamic URLs into static looking HTML URLs.

Keyword-Rich Domain Suggestion Tool
Having a KEYWORD-RICH domain name is an important factor for Search Engine Optimization. This tool will suggest keyword rich domain names.

Alexa Rank Checker
This SEO tool allows you to get the Alexa traffic rankings of you and your competitors.

Backlink Tracker Pro
Free tool to check your paid / exchanged links. Get alerts when your backlinks have been removed or converted to nofollow links.

 

HHO 氫氧焰 氫氣 燃燒 燃料 引擎 的資料 information on the HGG “Hydrogen Gas Gun”. HGG “Hydrogen Gas Gun” RWGresearch

 HHO 氫氧焰 氫氣 燃燒 燃料 引擎 的資料

Gases generator. Voltage control circuit

RWGresearch

Stanley Meyer's Gas Voltage Gases generator Voltage control circuit

https://foro.redjedievolution.com/viewtopic.php?f=100&t=6900

hho Gas Voltage Gases generator Voltage control circuit

Gas Voltage Gases generator Voltage control circuit plasma

Plasma arc welding - Wikipedia, the free encyclopedia


Non-Thermal Plasma Technique for Air Pollution Control arc

http://www.repairfaq.org/sam/samschem.htm

http://open-source-energy.org/?topic=252.25


Here you will find some information on the HGG “Hydrogen Gas Gun”.



The HGG is basically a gas ionizer. It uses “laser” or light energy to help move the electrons away from the nucleus so that the high voltage can take over to dislodge the electrons from the gas atoms. There also needs to be a way to remove the free electrons from the gas and that is the purpose of the ECC or “electron extraction circuit.” These component’s working together will basically ionize the gas.

Why would one want to do this? Well in the case of the EPG there needs to be a way to attach a magnetizable atom to a noble gas.  An example of this would be to create iron gas atoms and get them to attach to unstable argon gas atoms to form a magnetizable gas lattice that can be used in the EPG.


When working with Hydrogen and Oxygen one would want to do this to destabilizing the gas atoms.  By extracting at least 4 electrons from the oxygen one can prevent the water module from forming during the thermal reaction of burning the gasses to release a much higher energy yield from the gas. This is how Stan was able to run his buggy on smaller amounts of H H O gas from water. He also was meter mixing other gases such as exhaust gases from the engine to adjust the burn rate of the H H O to equal that of gasoline. One can read this in his patents. Please see the patents page to download the patents.
http://rwgresearch.com/open-projects/stanley-meyers-wfc-tec/hgg-“hydrogen-gas-gun”/
https://www.youtube.com/watch?v=-VbIlweo73M

抓取網路資訊用RaspberryPi顯示

http://www.pillakloud.com/tw/1162/當maker吧!使用視覺化元件,做出屬於自己專屬的應/

google
Node-Red RaspberryPi
http://thethingbox.io

Arduino Facebook Notifier (v.0.1.1)

arduino facebook notifier
https://learn.adafruit.com/raspberry-pi-hosting-node-red/what-is-node-red
about "node-red"
  1. An App on my phone called MQTTitude MQTTitudesend my location to Node-Red Node-Red
  2. The basic framework of my twitter message is then created in a function node
  3. I take my location and query Forecast.io for the weather at that location
  4. The returned data is then formatted in to my tweet message using further function nodes
  5. The message is then sent to a Tweet node and tweeted for me



抓取網路資訊用顯示

Node-Red是一個可視化的開發工具。它允許使用者通過組合多元化的視覺化元件來完成各式應用組合。這些視覺化元件可以是硬件設備(如:GPIO、智慧家庭周邊wemo)、Web API(如:WebSocket、HTTP、UDP)、功能函數(如:range)或者在線服務(如:twitter、mqtt)。

在Node-Red定義中,一個視覺化元件,就是一個node。一些nodes串接起來產生的應用,就是flow(流程)。基於網頁的開發環境,通過拖曳已定義的node到工作區並用線連接node創建流程來實現應用。

使用者通過點擊’Deploy’按鈕實現一鍵保存並執行。程序以JSON字符串的格式保存,方便用戶分享、修改。

使用Node-Red,可以輕鬆的建置屬於自己的專屬IFTTT應用 (If This Then That),更可以打造屬於自己的IOT (Internet Of Thing)

比如:
– 定期檢查網頁資訊,發現特殊變化,發送MQTT給指定topic
– 偵測伺服器是否存在,若不存在,發送Mail給指定收件者
– 指定時間,鬧鐘提醒
– 建立網路聊天室
– 指定時間開啟或關閉電燈

派樂雲整理了幾個教學文件,希望可以經由這些教學文件,體驗Node-Red的廣闊應用。

請參考Node-Red教學區Node-Red教學區