Ku Còi

my trash

Chủ đề lảm nhảm tiếp theo sau 4 tháng

Ấy cũng lại là lảm nhảm vì nó… quá nhảm.

 

Mình có tật lên comment và nói ào ào, các đồng chí cứ vào đọc xong ra chửi bới mình là sao? Mình đâu than phiền mà mình chọc đấy thôi? Còn cái đáng than phiền là cái khác..

RnD là gì?

Theo bạn khùng là research not development hoặc là research and .. die chắc là đúng với trường hợp này.

Tại sao nguyên quá trình research cuối cùng đưa ra run project lại có cái: đánh giá về cái nào hơn thua :| ủa vậy RnD để làm gì. Chưa kể nhiều vấn đề khác liên quan tới chuyện: đây là line về biz. not tech. Thế nên đi họp mình trốn luôn :p Để các bạn chọn công nghệ rồi mình optimize/secure thôi. Chứ nếu về chọn lựa thì ôi zồi, Oracle kìa… Websphere kìa táng vô là xong. Ngâm làm gì nữa.

 

Hệ thống kia hay hơn kìa!!

Ồ. Số là mình xin cái server. Chuyện chả có gì cả. Tiếp đến mình request firewall. À há… xin mở port 80 và allow all outgoing. Lý do: cái server này là Open port checking system.

Có ý dịnh deny: vì ủa cái system abc đó nó đâu có tính năng này? Bỏ đi. Risk security lắm. Hị hị… mấu chốt là vấn đề hệ thống này là phải thế. Nếu cần security phải là chỗ khác. (À chắc là mình gà môn này đây).

ABC chạy gì em? dạ PHP anh. Trời ơi PHP kém lắm.. em chạy mấy cái python/C kìa. Giống như cái ABC của GT đó, cả mấy chục ngàn concurrent chạy vô tư, sao em chọn kì vậy???. Dạ…. em xin server để chuyển cái ABC của GT đó đó..

Đứng hình luôn :D

 

Còn nhiều  cái lắm.. Mà mình hông mún đụng chạm nữa. Thôi cứ âm thầm làm.

 

Em yêu khoa học!

November 27, 2009 Posted by pmquan | Day-by-Day | , , | 2 Comments

Lảm nhảm

Nhảm đầu tiên là câu chuyện về chỗ làm mới.

Đầu tiên là đi lạc: văn phòng ở đây thiết kế có vẻ… kém khoa học, thiếu bảng hướng dẫn, quá rộng dẫn đến như đi trong mê cung :|

Toilet quá xa: làm ngại đi toilet. Cái này rất có hại.

Quá dơ: Toilet thì toàn dân IT… con trai thì úp mặt vô rồi… xxy đúng vị trí là được. Vậy mà vẫn hôi và khai : do rớt ra ngoài. Thiệt là nhảm.

Team open: sự thật là hơi…. khó hiểu. Có lẽ là nhiều siêu nhân quá. hehehe.. Mình làm người thường hông hiểu nổi.

Cuộc sống nhảm

Tiếp bài than hehehe… Đang phải vật lộn với nhà cửa, nào là bán nhà, cho thuê… mà đổ hết lên mình. Trong khi mình chỉ là trung gian. Bị chửi thì cũng mình, bị hối cũng mình….. hưởng thì không có mình.

Từng là Anti-Facebook mà đâm ra giờ lậm facebook: cảm thấy buồn chán, nhào vô tự nhiên thấy có Friends For Sale, mua bạn về củ hành cho bõ ghét, đi làm Mafia, quiz nhảm… đốt time dữ dội. Lậm roài!!!!

Tình cảm nhảm

Đầu tiên là conflict yahoo, không add luôn, giờ tới sms, phone vì lý do nhảm nhí ví dụ như tổng đài kẹt, nhắn tin không nhận được, hay gọi hoài gọi mãi mà không thấy incomming thì tội lỗi là tại mình. Ờ thế là do mình thôi. Mạng ĐT chẳng bao giờ bị lỗi đâu.

Rồi tiếp đến là vụ “siêu bàn ra” của còi. keke. Tính mình thì vậy thôi, cái gì cũng bàn ra. Mà ai vặn lại được những câu hỏi bàn ra thì ok => đường hướng của người ta vững chắc, kinh doanh là ngon lành. Còn không vặn lại được thì nên suy nghĩ… chứ không phải là mình không ăn uống được gì trong đó nên phá cho hôi. Uh thì không hiểu mình comment để làm gì thì đừng hỏi nữa. Xong đâm ra giận dỗi rồi hỏi vài vấn đề thì lại nói không cần quan tâm.

Càng ngày vấn đề về “nhìn cùng một hướng” nó càng hiện ra  rõ. Thật sự cả 2 không có được tiếng nói chung, mạnh ai nấy làm chuyện gì thì ok. Cả 2 cùng làm thì không sớm tèo thì cũng cà giựt. Đâu thể nào mà đường ai nấy đi trên cùng con đường? Một người tiến, một người lùi?

Nếu ai nói anh phải quỵ lụy vì em, anh vẫn vui. Vì nếu như thế mà anh cảm thấy hạnh phúc và có được điều mình muốn thì cũng chẳng cần quan tâm và tính toán ai hơn ai thiệt làm gì. Vậy mà…..

Ừ thì em cứ take action. Cứ cho là lỗi do anh, nhưng anh không cảm thấy đó là lỗi, anh sẽ không bao giờ xin lỗi đâu. Anh thà im lặng rồi chôn đi còn hơn. Ích kỷ hả? :D xem lại đi. Có bao giờ anh nghĩ cho mình? Rồi em lại khóc lại nói những điều liên quan tới em, thế em có nhớ là anh đã trải qua điều gì? anh đang có gì? Tại sao lại không ở thời điểm này được? Tiền ư? Tiền chỉ là anh nói cho vui thôi để xem em còn nghĩ ra cái gì khác không? Ở bên cạnh hàng ngày mà em còn không nhớ…. Ở bên cạnh anh mà em nghĩ anh sống vì tiền.

Hình như tính cách công việc mình tạo cho mình cái tính dependency như vậy. Có vẻ hơi bất cần. Cho nên em nào cứ nghĩ rằng anh đang dating thì hãy coi lại nhé. Anh chỉ nghịch phá là chính. Không lâu dài đâu :-) Cái lâu dài nhất nằm trước mắt thì nó đang mờ nhạt dần dần hàng ngày… tin càng nhiều thì càng mất.

July 6, 2009 Posted by pmquan | Day-by-Day | , | 2 Comments

UDGs are up

Hehe sau mấy tuần lười biếng mình cũng đã setup xong rồi.

Nhưng là thế này: nó không theo plan mình đã hoạch ra. Mình chỉ setup được 4 em server cùi. 1 em server xịn thì không setup được. Để khi nào rảnh sẽ mần tiếp.

4 em nó đều chạy CentOS 5.3 i386. Mình đã optimize các thứ để chạy các web traffic nho nhỏ. Tuy nhiên phần security có vẻ không như mong muốn được (cũng đang nghĩ cách đây) apache+fcgid+phpchroot.

Bạn nào có nhu cầu dmesg mình nhá :D Mình tạo cho 1 account ispconfig rồi mấy bạn muốn mần gì mần.

Max download speed: 192KB/s, max upload speed: 256KB/s (per server)

Powered by Xinh.NET :D

June 21, 2009 Posted by pmquan | Nothing | , , | 2 Comments

Tạo group cho MacOSX

Thiệt tình cứ tưởng nix ngồi groupadd là xong. Nhưng muh không phải vậy.

Số là tự nhiên em vui tính cài The Sims 2 for Mac vào chơi. Khổ là mấy cái cờ rắc nó đòi hỏi linh tinh.

1. Đi download iPatch để lụm iPatcher mới.

2. Tạo group cùng username.

Thế là thế này:

dscl . create /groups/GroupName
dscl . create /groups/GroupName name GroupName
dscl . create /groups/GroupName passwd “*”
dscl . create /groups/GroupName gid <PUT HERE PrimaryGroupID of group staff>
dscl . create /groups/GroupName users “Your user name here”

Kiểm tra lại

dscl . read /groups/GroupName

Ngắn gọn nhé.

Hình lại được lên báo, hehe… nội dung không phải của tui. Ai sai thì chửi người đó nhá.

February 23, 2009 Posted by pmquan | ITs | , , , , | No Comments Yet

Learning IPv6

IPv6 is not new to me but .. i didnt remember anything about it. So i should re-learn it every day to help my mind remember it. hehe.

Here is my notes:

Local address: fecX/fedX/feeX/fefX
Unicast Address:  fdXX/fcXX (This is new defination)
Global Unicast: 2XXX/3XXX
6bone: 3ffe
6to4: 2002
ISP: 2001
Multicast: ffXY
ffx1: node-local, packets never leave the node.
ffx2: link-local, packets are never forwarded by routers, so they never leave the specified link.
ffx5: site-local, packets never leave the site.
ffx8: organization-local, packets never leave the organization (not so easy to implement, must be covered by routing protocol).
ffxe: global scope.
others are reserved

August 20, 2007 Posted by pmquan | ITs | , , , | No Comments Yet

Làm thế nào để move số lượng lớn files?

Cái này rất có ích nhé:

Chẳng hạn như mail server có chế độ archive. Sau một thời gian thư mục sẽ có khoảng 1triệu file. Hệ điều hành nền là Windows. Bạn không thể vào thư mục sort rồi cut ra được. Rất lâu.

Đã có giải pháp dùng Forfiles hoặc Robocopy có trong bộ Windows resource kits

ROBOCOPY.exe

Robust File and Folder Copy.
By default Robocopy will only copy a file if the source and destination have different time stamps or different file sizes.

Syntax
ROBOCOPY source_folder destination_folder [file(s)_to_copy] [options]

Key
file(s)_to_copy : A list of files or a wildcar.
(defaults to copying *.*)

Source options
/S : Copy Subfolders
/E : Copy Subfolders, including Empty Subfolders.
/COPY:copyflag[s] : What to COPY (default is /COPY:DAT).
(copyflags : D=Data, A=Attributes, T=Timestamps).
(S=Security=NTFS ACLs, O=Owner info, U=aUditing info).
/COPYALL : Copy ALL file info (equivalent to /COPY:DATSOU).
/NOCOPY : Copy NO file info (useful with /PURGE).

/A : Copy only files with the Archive attribute set.
/M : like /A, but remove Archive attribute from source files.
/LEV:n : only copy the top n LEVels of the source tree.

/MAXAGE:n : MAXimum file AGE – exclude files older than n days/date.
/MINAGE:n : MINimum file AGE – exclude files newer than n days/date.
(If n < 1900 then n = no of days, else n = YYYYMMDD date).

/FFT : assume FAT File Times (2-second granularity).
/256 : turn off very long path (> 256 characters) support.

Copy options
/L : List only – don’t copy, timestamp or delete any files.
/MOV : MOVe files (delete from source after copying).
/MOVE : Move files and dirs (delete from source after copying).

/Z : copy files in restartable mode (survive network glitch).
/B : copy files in Backup mode.
/ZB : use restartable mode; if access denied use Backup mode.
/IPG:n : Inter-Packet Gap (ms), to free bandwidth on slow lines.

/R:n : number of Retries on failed copies – default is 1 million.
/W:n : Wait time between retries – default is 30 seconds.
/REG : Save /R:n and /W:n in the Registry as default settings.

/TBD : wait for sharenames To Be Defined (retry error 67).

Destination options

/A+:[R][A][S][H] : set file Attributes on destination files – add.
/A-:[R][A][S][H] : set file Attributes on destination files – remove.
/FAT : create destination files using 8.3 FAT file names only.

/CREATE : CREATE directory tree structure + zero-length files only.
/PURGE : delete dest files/folders that no longer exist in source.
/MIR : MIRror a directory tree – equivalent to /PURGE plus all subfolders (/E)

Logging options
/L : List only – don’t copy, timestamp or delete any files.
/NP : No Progress – don’t display % copied.
/LOG:file : output status to LOG file (overwrite existing log).
/LOG+:file : output status to LOG file (append to existing log).

/TS : include source file Time Stamps in the output.
/FP : include Full Pathname of files in the output.
/NS : No Size – don’t log file sizes.
/NC : No Class – don’t log file classes.
/NFL : No File List – don’t log file names.
/NDL : No Directory List – don’t log directory names.
/TEE : output to console window, as well as the log file.
/NJH : No Job Header.
/NJS : No Job Summary.

Repeated Copy Options
/MON:n : MONitor source; run again when more than n changes seen.
/MOT:m : MOnitor source; run again in m minutes Time, if changed.

/RH:hhmm-hhmm : Run Hours – times when new copies may be started.
/PF : check run hours on a Per File (not per pass) basis.

Job Options
/JOB:jobname : take parameters from the named JOB file.
/SAVE:jobname : SAVE parameters to the named job file
/QUIT : QUIT after processing command line (to view parameters).
/NOSD : NO Source Directory is specified.
/NODD : NO Destination Directory is specified.
/IF : Include the following Files.

Advanced options you’ll probably never use
/XO : eXclude Older – if destination file exists and is the same date
or newer than the source – don’t bother to overwrite it.
/XC | /XN : eXclude Changed | Newer files
/XX | /XL : eXclude eXtra | Lonely files and dirs.
An “extra” file is present in destination but not source,
excluding extras will delete from destination.
A “lonely” file is present in source but not destination
excluding lonely will prevent any new files being added to the destination.
/IS : Overwrite files even if they are already the same.

/XF file [file]… : eXclude Files matching given names/paths/wildcards.
/XD dirs [dirs]… : eXclude Directories matching given names/paths.
XF and XD can be used in combination  e.g.
ROBOCOPY c:source d:dest /XF *.doc *.xls /XD c:unwanted /S

/MAX:n : MAXimum file size – exclude files bigger than n bytes.
/MIN:n : MINimum file size – exclude files smaller than n bytes.

/IT : Include Tweaked files.
/XJ : eXclude Junction points. (normally included by default).
/MAXLAD:n : MAXimum Last Access Date – exclude files unused since n.
/MINLAD:n : MINimum Last Access Date – exclude files used since n.
(If n < 1900 then n = n days, else n = YYYYMMDD date).

/XA:[R][A][S][H] : eXclude files with any of the given Attributes
/IA:[R][A][S][H] : Include files with any of the given Attributes

/X : report all eXtra files, not just those selected & copied.
/V : produce Verbose output log, showing skipped files.
/ETA : show Estimated Time of Arrival of copied files.

Syntax on this page is for the XP and .Net Version of Robocopy (XP010)
The NT 4 and Windows 2000 resource kits include Robocopy 1.95 but I recommend you download the XP version which fixes a number of bugs – it runs fine on NT/2K.

Robocopy does not run on Windows 95, or NT 3.5. (RoboCopy is a Unicode application).

ROBOCOPY will accept UNC pathnames.

To run ROBOCOPY under a non-administrator account will require backup files privilege, to copy security information auditing privilege is also required, plus of course you need at least read access to all the files and folders.

Examples:

:: Copy files from one server to another
ROBOCOPY \Server1reports \Server2backup *.doc /S /NP

:: List all files over 32 MBytes in size
ROBOCOPY C:work /MAX:33554432 /L

:: Move files over 14 days old
ROBOCOPY C:work C:destination /move /minage:14
:: Note the MOVE option will fail if any files are open and locked.

:: The script below copies data from FileServ1 to FileServ2, the destination holds a full mirror (all files), but when run repeatedly will only copy changed files. (Changed meaning different time stamps or different sizes)

@ECHO OFF
SETLOCAL

SET _source=\FileServ1e$users

SET _dest=\FileServ2e$BackupUsers

SET _what=/COPYALL /B /SEC /MIR
:: /COPYALL :: COPY ALL file info
:: /B :: copy files in Backup mode.
:: /SEC :: copy files with SECurity
:: /MIR :: MIRror a directory tree

SET _options=/R:0 /W:0 /LOG:MyLogfile.txt /NFL /NDL
:: /R:n :: number of Retries
:: /W:n :: Wait time between retries
:: /LOG :: Output log file
:: /NFL :: No file logging
:: /NDL :: No dir logging

ROBOCOPY %_source% %_dest% %_what% %_options%

By copying only the files that have changed, robocopy can be used to backup very large volumes. If you are copying across a network, and don’t want to saturate the link, you can limit the bandwidth used by specifying the Inter-Packet Gap parameter /IPG:n
This will send packets of 64 KB each followed by a delay of n Milliseconds.

May 2, 2007 Posted by pmquan | ITs | | No Comments Yet