DALLASCAO.COM

Site of Cao Shouguang, English to Chinese translator


Warning: Missing argument 1 for shapeshifter_archive_page_title(), called in /var/www/dallascao.com/en/wp-content/themes/shapeshifter/category.php on line 10 and defined in /var/www/dallascao.com/en/wp-content/themes/shapeshifter/includes/functions-do-actions.php on line 142

Category: Coding Frenzy

Sort strings by length (autohotkey)

Sort strings by length (autohotkey)
the_arr:=["She", "loves", "me", "him", "Li"] <ins datetime="2017-10-20T11:00:44+00:00"> the_sorted_arr:=sort_by_length(the_arr) for key, val in the_sorted_arr {     msgbox, % val } sort_by_length(the_arr){     arr_temp:=[] ;set the length of a string as the key for the string and write to a new array     for key, val in the_arr     {       […]Read More

Excel Invoicer

Excel Invoicer
If you look for a simple and straight-forward invocing tool. Try Excel Invoicer. It’s an excel file embeded with VBA. You simply need to fill the ‘clients’ tab with clients information, and and then the clients drop-down is shown in the ‘jobs’ tab. After filling in the details of a job, a invoice number is […]Read More

Word Macro VBA: Capitalize 1st letter of each line

Word Macro VBA: Capitalize 1st letter of each line
Don’t miss out the translator’s productivity tool that can genuinely increase your translation speed and quality: GT4T!! Check it out here: GT4T website Convert: My name is ABC - I am from XYZ -he works on a word document 1. hello there to: My name is abc - I am from xyz -He works on […]Read More

Word VBA: randomize paragraphs

Word VBA: randomize paragraphs
Sub ran_para() n = ActiveDocument.Paragraphs.Count ReDim a(1 To 2, 1 To n) Randomize For i = 1 To n a(1, i) = Rnd a(2, i) = i Next For i = 1 To n - 1 For j = i + 1 To n If a(1, j) > a(1, i) Then t = a(2, i) […]Read More

SSL certificate chain order

SSL certificate chain order
Contrary to what you may find on the Internet, the trust chain of ssl certificate is actually from BIG to small. It may not be matter to some browsers but matters to others. I installed the chain in reverse order but chrome and IE don’t complain. Firefox is more picky. The merge command line goes […]Read More