首頁我是相片相簿文字
snDateCommentHit
Display 1-7, Total 7 data, 2024-04-24
page 1
留言服務開發記錄2016-04-15


留言服務開發記錄 Comment Service Development

若不意外, 一般網站留言的功能都是寫在自有的資料庫中,
不過若跨站別有太多網店需要處理得情況時, 寫起來會有點白白的啊, 一直 copy+paste 有點搞笑哦!
所以, 這次麥大叔用一個主資料庫處理所有留言。再用 json 在不同站別做資料傳遞。
在應用上只要在其它各站呼叫函式就自動生成留言了, 管理上也比較好管理哦!

目前公開的版本是 v1.0, 主要實現了留言功能 (這不廢話嗎?)
預期待開發/解決的問題如下:

1. 機器人踹開:
現在我還在觀察機器人的運作的方式, 若都是 curl 留言機器人,
就直接 ajax 把 sumbit button 處理欄位就好啦!
爬都爬不到; 除非有大師用 solenium 之類的來寫, 那也沒辦法了。
我是不太想用什麼文字啊影像之類的驗證碼, 大大降低 User Experience 的分數

2. Mobile Friendly 行動裝置最佳化
說實話, 每次寫php網頁, 我最花時間的就是試這些 css 的東西, 比寫code還痛苦!
所以, 這mobile friendly 永遠都是問題, 一直在我心裡隱隱作痛...

3. FB-account Login / Google-account Login
還要加個用FB/Google一鍵登入留言的機制。
這個理論不難, 一個api的轉換而已...

目前大致先降。 有想到其它後補
StreetView.cc Development Diary2016-03-15

Streetview.cc Development Diary

Kind of a note to memorize something that I may forget in few days after....


Ver 2.1 Released:

Public
StreetView: Display places with Google See-Inside features.
Coverage: Reveal areas which have been scanned by system.
SeeInside: SeeInside a place with the UI combines Google Maps(pegman) and its StreetView image on the same page.

Private
SECRETS

Website Version
2016/10/07 - Ver 2.1 Released. all major function revised.

2016S2S3 - Development https://Place.Report website
2016/4/13 - Revise See-Inside judgement programming (v1.1)
2016/4/12 - Comment_Service implemented
2016/4/01 - Ver 1.3 Released. mysqli implemented
2016/3/25 - Ver 1.2 Released. New function: MapScan, Providing Linear and area two types scanning.
2016/3/22 - Website Automation Test Success!!
2016/3/17 - Improve processing efficiency by using curl instead of file_get_contents
2016/3/15 - Big-Data Place Report trial. (providing Place Ranks)
2016/3/12 - Ver 1.1 Released. New functions: Coverage, PlaceRank, SeeInside
2016/3/12 - Integrated g.ymc2.com, an URL Shorten API. a JSON application
2016/3/10 - Ver 1.0 released to DOMAIN: streetview.cc HOST: netfirms.com
Function: Home, OnePageReport, PlaceSearch, MapProcess
2016/3/01 Defined three modules, placeid, cid and cbk, to figure out if a store has the SEE-INSIDE feature or not.
2016/2/15 Start Coding .........A Google Maps Javascript V3 Journey....
--
Problems/Issues/Improvements Ideas 2.1:
1. css Layout for mobile device. TBH, i don't really care about this for sure.
2. Google API limitation. a Major concerns
3. Facebook Graph API

Update Place.DB (Automatic and Manual)
Define a mid-term relationship for Place.DB and Seeing.DB (maybe a Pano.DB)?
Useful Statistic Data
Replace mysql to my_sqli sentence
Rethink the function: judge_seeinside, judgement see-inside...
Implement google analytic
IP rule for certain function

--
Major Fixed:
1. How to process place results generated by Google Maps API (Async) to db?
-> 1) generate a click button within the async function.
-> 2) generate an auto-run php page.

2. How to curl the place results generated by Google Maps API (async) to a html.element?
-> 1) Curl does not work on async page. (empty element)
-> 2) Include the Google Maps API script on the parent page

3. Improve server efficiency:
-> A test reveals that curl is 50 percent faster than file_get_contents.
-> Replace file_get_contents with curl function.

4. Website automation test solution:
-> Tried Selenium webdriver, but was unable to figure out a way to make it work on wamp server.
-> Tried Selenium IDE, Works, however it had file size limits for processing codes(20KB?), and also there was no flow control (if-else) at the moment for testing purpose.
-> Turned out a solution which is to connect the server with localhost, and write php pages to the server via fopen(ftp), and then automatically run these pages to process results.

5. Encode the imgurl of all pano:
-> Applied JSON to communicate with g.ymc2.com (url shorten service)

6. fopen($ftp_path): failed to open stream at certain time ?
-> It seems like the hosting server issue (connection error or what?)
-> Use curl to do ftp method. (not sure if doing this is right, but it temporally works!)

7. The owner-response-rate (Google Reviews)
-> Find the recent 10 reviews and check to see if response from the owner exists
PHP MySQL DB 資料庫網站開發2016-02-18

最近忙著和Google Maps API奮鬥, 想寫一個跟街景有關的資料庫網站。(好痛苦啊! DOM完全不熟的說!)
不過今天突然心血來潮, 想回顧自己到底寫過幾組完整的PHP+MySQL網站,也一併回顧自己寫程式的來時路。

» Read More
網站-m2: 3 years old.2006-09-21

獵人狩影即將滿三歲了; 讓我們一起回顧這些日子...


old.jpg


2003年9月; Index 1.0 ( 麥克斯的歐亞新聞報 ) 


派駐捷克前夕, 我在智邦的主機申請了 http://www.max2.commail.net/ 

開募的時候首頁就像上面那個樣子; 好像是用 dreamweaver 佈置的...


» Read More

11_17 回答Ⅱ2004-11-17


回答Ⅱ >> 2004/11/17(Wed)16:50



今天;據說是東西德瓦解的一天。連帶影響捷克共產制度的瓦解。
所以放假一天,賺到啦~ :p


--台灣地圖--

不過天氣持續爆裂;那就在家裡搞網頁吧。

一開始畫了一張台灣地圖;
畫完後對台灣似乎又了解了多一點點...

不過台灣地圖沒有派上用場;
原本是想把台灣地圖當成 友站地圖 這頁的背景圖。

友站在那?就把友站的link放在那個位置。
但是後來想想...台北縣/市可能會爆炸...
算了,台灣這張留底備用吧。

想一想,就用基本的背景圖配css語法定位好囉~
不過總覺得有點單調;
好吧! 研究新的pop-up語法。(滑鼠移過後跳出個人小圖及簡單說明)

OK,基本的樣子終於出來囉~
挖圖開始...把印象中的友站挖出來...

挖寶成果不錯:
1. 新的♀girl和♂boy是從yahoo奇摩交友挖出。
2. 背景圖將使用亞克曼兄的創作。(著作權請求中)
3. 一些沒有logo的友站,先抓頁面的頂著先!

Link 有我辛苦的成果。 搞了一天值得~

(不過可能有被遺漏的,希望友站的站長別生氣)


-- Oly E-1 --

Oly E-1 捷克幣32990;折合台幣44,537。
(若幸運賽到可以在機場退稅,就更便宜啦!)

還有那個,菌潔...我10月18日的航海日誌就寫過啦...
你都沒有看喔? 我會傷心哭泣地。


-- 感謝大家 --

昨天和香君(一位從国小一年級就認識的朋友)在msn上丟水球;
她說她畢業後想去澳洲讀書,以追隨教授的腳步。

但她也很憂心:害怕自己工作之後,會忘了這个生涯夢想。

我說:
「沒關係,我會提醒你。」

11月12日,我找出自己寫的「2001年的回顧徵文」

這種感覺很奇妙...
2004年的腦袋吸收2001年的文章;

是的,我在「提醒自己!!」不能忘了當年的夢想。
不能做出會讓十年後的自己後悔的決定!!

自清華畢業後,兩年的短期計畫也已經在今年九月到期...
如今第三年的該追求什麼?

答案已在心中。

許多朋友的勉勵和榜樣,都是催促我不可停下腳步的動力。

真的打從感謝你們~ ^^







 





廻 響





 

 
08_25 2004-08-25


>>日記 >> >> 2004/08/25(Wed)00:55



渾渾惡惡的過了一整天。
昨天下午到現在一直改這個日記本的cgi。
1.css排版...
2.bug除錯...
3.japanese翻譯...
「我的腦細胞啊啊啊!!!!!!!!!!!!!!!!!!!!」

下午主持遷廠會議。這回我又是總幹事了(記住喔:不是幹總事!)
真是view到我腦袋昏花! 伸手不見五指...

ps:那個渾渾惡惡的惡是錯別字... 忘了...








 





廻 響






網站-捷克地圖導覽2004-02-20
2004年02月20日 - 含苞待綻的捷克地圖導覽
最近頗忙,忙些什麼呢?

1.工作:TUV與GP的雙重稽核考驗。準備在三月爆炸。弄一些ISO文件很辛苦地。還有學長的工作交接;學弟我只能用「銀河超新星大爆炸」來形容此刻的心情。

2.網站:每張網頁的重製作業,拜css語法所賜,除了讓我的網站可以瘦身許多外,讓我我腦海浮現許久的地圖網頁架構終於跨出一大步~

不過因為過程實在太辛苦了,我一定要把這些干苦給寫下來。






Map of CZ, by Kiss D





0. css語法研究:在google上翻了一堆簡体中文和英文的css教學,老實說,找資料比學它還辛苦哩。(繁體中文;我流淚了...)

1. 拍攝捷克地圖:別懷疑...我的捷克地圖就是這麼來的,先用 Kiss D把分別在兩頁的地圖拍下來,再用Photoimpact把兩個圖合併。

2. 製作地圖網頁素材:一筆一筆勾勒出捷克地圖全貌,就是現在大家看到的捷克地圖導覽...






Photoimpact,Print Screen





3. 尋找地點正確位置:為了讓小圖示 I ,可以更精確的反應地點所在地,所做的X-Y軸座標圖。

接下來,才是問題的重點,max突然發現能放上的地點怎麼這麼少啊?真是有點不務正業...還敢自稱「捷克生活」!?真是讓大家見笑了

所以,請大家一起為我加油,新「捷克地圖補完」計畫開始~
page 1