Deal with garbage email address all the time?
Get valid email by query:
SELECT email FROM users WHERE email REGEXP ‘^[a-zA-Z0-9][a-zA-Z0-9._-]*[a-zA-Z0-9]@[a-zA-Z0-9][a-zA-Z0-9._-]*[a-zA-Z0-9]\.[a-zA-Z]{2,4}$’
or invalid email by NOT REGEXP syntanx
get tab back instead of titlebar-tab
defaults write com.apple.Safari DebugSafari4TabBarIsOnTop -bool NO
get reload button back
defaults write com.apple.Safari DebugSafari4IncludeToolbarRedesign -bool NO
I kind had some problem with firefox 3.0.3 recently, it just hanging on loading pages and nothing responsed (not crash), and you can't close any tab eihter. Fist I though it's my network connection problem but Safari works fine at the same time the same web sites. Then I start wondering if it is a firefox problem which I'm using Neil's build, and the official firefox looks fine (but later I met the same issue with offical firefox), so, it's pretty much why I start build my own version firefox follow by MDC.
after building and testing, I found 3.0.4pre, 3.0.3, 3.0.2 all have the same issue, ran out of idea.
Why not just offical firefox?
Well, it's just a little bit too slow in javascript performance.
Official build is not optimized for Mac OS, that's why community builds exists. And since you can't use official brand so most of the builds stay in codename which Minefield is Firefox 3.0.
Here you go:
記得數年前就有寫過匯入 CSV 資料的程式,不過要翻出來可以能重寫還快多了,本想說應該已有不少輪子在網路上,可惜找了一下還是找不到正確或是較有效率的處理方式,而 PEAR::File_CSV 也不明原因不存在,後來找到了一個簡單正確又有效率 Regular Expression 以此又重新寫了一個新 php function.
測試結果也另人滿意,在混搭的情形下也可以正確解析:
Test string: "Name","Nick Name","Age","Hair Color"
Array
(
[0] => Name
[1] => Nick Name
[2] => Age
[3] => Hair Color
)
Test string: 'Name','Nick Name','Age','Hair Color'
Array
(
[0] => Name
[1] => Nick Name
[2] => Age
[3] => Hair Color
)
Test string: "Name";"Nick Name";"Age";"Hair Color"
Array
(
[0] => Name
[1] => Nick Name
[2] => Age
[3] => Hair Color
)
Test string: Kim,"Kim ""Hot Legs"" Smith",24,"Brunette"
Array
(
[0] => Kim
[1] => Kim "Hot Legs" Smith
[2] => 24
[3] => Brunette
)
Test string: "Sarah Vivenz, II","Stub's",27,"Brunette"
Array
(
[0] => Sarah Vivenz, II
[1] => Stub's
[2] => 27
[3] => Brunette
)
Recent comments
2 weeks 22 hours ago
2 weeks 4 days ago
2 weeks 4 days ago
2 weeks 6 days ago
6 weeks 5 days ago
15 weeks 1 day ago
26 weeks 5 days ago
26 weeks 5 days ago
27 weeks 15 hours ago
29 weeks 4 days ago