Category: Network & Server (網絡及服務器)

跨時代的科技產物

By admin, February 1, 2015 19:33

今天偶然找到的,很多年輕一輩根本不知道這是什麼來的 (就如Walkman卡帶機)。其實把機密資料保存在裡面然後再等100年,保證會成為全世界最安全的設備,因為到時根本沒有可讀取相關媒介的器材。 這令想起了美劇White Collar最後一季裡那間頂級安保庫也是這樣保存機密資料的。

IMG_8210

How to ByPass YouKu’s Mainland China Restriction

By admin, December 10, 2014 14:11

The solution is quite classic, use a proxy!

Simply set “http://yo.uku.im/proxy.pac” in the proxy configuration URL in your browser and alibaba…everything works.

You can double check if your IP is within Mainland China afterwards by visiting

http://ipservice.163.com/isFromMainland

If it returns “True”, then it works.

Predictive Failure is Working

By admin, August 12, 2014 12:15

Finger crossed as sometimes the raid rebuilt won’t happen automatically, mind you it’s 11th generation of PERC, can’t believe it’s still having such stupid behavior.

pre

How to fix SQL Server Orphaned User after Database Restore

By admin, July 30, 2014 22:05

A simply way to link back the original user and fix all the permission problem after restoring MSSQL database to a different server using the .bak file.

Step 1:
exec sp_change_users_login ‘Report’
Orphaned users listed in the current database

Step 2:
exec sp_change_users_login ‘AUTO_FIX’, ‘username’
Can automatically log in to add a user name corresponding to the same name in syslogins

Equallogic Firmware Upgrade Checkup List

By admin, July 5, 2014 16:53

I’ve received an alert this morning saying “Time-of-Day Clock Battery is Low” from my Equallogic array.

clock

Googled a bit and turned out to be a false alarm (this was also double verified with Dell Pro-Support with EQL Diag log), it only happens with older firmware prior to v5.2.10 (and currently I’m still using v5.2.2). The only way to dis-alarm such warning is to upgrade to the latest firmware release (ie, >v5.2.10).

However I do remember there are certain EQL components depend on specific firmware version. Luckily, I’ve found out this chart, it’s really a time-saver and it’s advised to check out this list every time you plan to do a major firmware upgrade.

For me, my MEM is v1.1.0, SANHQ is 2.2.0, EQL Virtual Storage Manager for VMware is v3.1.1, so my best and most safe play is upgrade to EQL firmware v5.2.11 which is the latest. If I upgrade to v6 or v7, then many related components may not work.

eql_chart
Of course this chart also shows the possible upgrade path:

upgrade_path

Extra Notes:

* Something special for latest MEM v1.2 only supports ESXi v5.0 or above, so for those of you still running ESX/ESXi 4.x, please stay with v.1.1.2.

* Also found out all Release Notes contains tips regarding upgrade path or different versions compatibilities, so better check out this document first.

Finally, saw this Unfortunate Reminder from the latest EQL v7.x firmware Release Notes…so older Equallogic arrays can loaded with the latest firmware IS NO LONGER TRUE, sigh…

ops

In additional, there is a good stuff that finally we can use 4k or 512-byte sectors, so this should save a lot of wasted space in Snapshots.

4k

Update: July 6, 2014

Problem still exists after upgrading to v5.2.11, what the hell? Local Pro-Support at XiaMen remains unprofessional probably even worst than 4 years ago as he asked me “Can you accept Downtime” when restarting the controller? $#%R$#@!@!!!!!

The other thing I found out is the Restart Button in EQL Group Manager GUI is actually a way for active controller to failover, so your volume will still remain on-line just like firmware upgrade controller restarting  process.

Update: July 7, 2014

Dell L2 support team head called me this morning, he mentioned US EQL support also noticed this specific error remains even with latest firmware v6.x applied, and it will be fixed in a later firmware hopefully.


美圖秀秀

By admin, June 4, 2014 17:18

I watched a TVB Pearl documentary two days ago, it mentioned a startup called 美圖, the 3rd largest Internet company in China behind Alibaba and Tencent (ie, QQ)

Then I downloaded their flagship software MeiTuXiuXiu today…of course it’s free and you can get it from http://xiuxiu.meitu.com and installed on your iPhone and Android.

The attached is the modified photo using MeiTuXiuXiu, it only took me 5 mins to do all the effects, it’s quite amazing! This is bad for all the Photoshop designer though.

Before:

717z

After:

chichester

Windows系統中刪除com,aux,lpt,con,prn,nul等文件夾結 (轉文)

By admin, June 2, 2014 20:45

今天发现一客户的网站中出现了很多隐藏的文件,文件名开头均为com,aux,lpt,con,prn,nul等字母开头的.还发现有一名为文件为”PRN.asp:.jpg”的文件.删除改名都不行.
google了一下,发现Windows 下不能够以下面这些字样来命名文件/文件夹,包括:“aux”“com1”“com2”“prn”“con”和“nul”等,因为这些名字都属于设备名称,等价于一个 DOS 设备,如果我们把文件命名为这些名字,Windows 就会误以为发生重名,所以会提示“不能创建同名的文件”等等。
当然,有一些特殊的方法可以偷机取巧,建立以这些设备名为名的文件夹,比如我们在命令提示符下执行“md C:\aux\\”,就在 C 盘建了一个名叫 aux 的文件夹。此文件夹虽然可以访问,也可以建立子文件夹,但却无法删除,因为 Windows 不允许以这种方式删除设备。在系统看来,这个 aux 文件夹就是设备。
那么,如何删除这样的文件/文件夹呢?我们只要按照完整的 UNC 路径格式,就是网上邻居的路径格式,正确输入文件路径及文件名即可。比如要删除 C 盘下的 aux 文件夹,可在命令提示符下执行:rd /s \\.\C:\aux,rd 是命令提示符删除文件夹的命令,/s 参数表示从所有子目录删除指定文件。再比如要删除 C 盘 temp 文件夹下的 nul.exe 文件,在命令提示符下执行:del \\.\C:\temp\nul.exe 即可。如果有属性可以用attrib命令去掉相关属性,attrib -s -r -h -a \\.\c:\temp\nul.exe再删除.
至于PRN.asp:.jpg,采用del \\.\D:\****\PRN.asp:.jpg的方式是删除不了的.只好用rd删除整个文件夹,有属性的话用attrib命令去掉属性.

A Forgotten Tool to Quickly Remove All Related Files

By admin, May 31, 2014 22:58

Today I found out there are over 100K PHP session files locate in Windows Temp directory and it’s impossible to open the Temp directory with Windows Explorer, hence not able to remove any file.

The solution is to use a dinosaur tool called DOS Command!

del /F /Q sess*

Da Da…after a few minutes, you can open the temp directory again with Windows Explorer, this really comes handy when you need it.

Of course, I’ve also changed the session.savepath and since PHP uses garbage collection every 24 minutes, so this left over session problem is fixed as well.

Why My PHP Script is Showing Raw Code? (Fixed)

By admin, May 31, 2014 11:47

Recently, I need to configure PHP to run on Windows Server 2008 R2. Even I’ve done this countless previously, but things still didn’t work in the first go, my test.php below displayed the raw code when running from browser.

<? phpinfo; ?>

It turns out to be a simple parameter (ie, short_open_tag) wasn’t turned on in php.ini.

;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It’s been
; recommended for several years that you not use the short tag “short cut” and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it’s currently still
; supported for backwards compatibility, but we recommend you don’t use them.
; http://php.net/short-open-tag

short_open_tag = On

A Simple Anti-Spam Technique That Works!

By admin, May 27, 2014 18:25

Out of blue, after years of searching for the best way to prevent spammer from inside. I think I probably found the solution by extending Delay between Recipients to 5 seconds on Outgoing SMTP, which keeps the email password cracker away. :)

It’s really more a mind tactic than the actual technical solution, as the spammer will give up right away if they find your SMTP server is so slow sending out emails per second. I strongly suspect they have a set of standards, say if a SMTP server can’t deliver more than 10 email per second, then they won’t use it…after all, why bother to use a slow SMTP while they are plenty powerful ones out there.

In contrast, by using Grey Listing on incoming SMTP also greatly reduced the spam or email DDOS by a large percentage.

Just my 2 cents.

Update: Jan 16, 2018

Today client’s email server had a DDOS attack, one of the users got tens of thousands of email and this made the spooler almost crashed, hence CPU stays at 100%. Solution is to decrease the SMTP Delay from 5 seconds to 1 second, so the email server can quickly bounce back the email (of course, remove that user temporarily).

Lesson learned, Delay SMTP delivery may cause dearly at a specific occasion, so use it wisely according to the actual filed scenario.

Pages: Prev 1 2 3 4 5 6 7 8 9 10 ...24 25 26 Next