This page is a NO-INDEX summary of comments posted in this blog.

Total 849 Comments (34/34 Pages) - Newer Comments -

826. 2014-10-05 19:16:37 Ink Say Comments on How To Add a Virtual Host on Apache2 Under Ubuntu Server?:

Looks like I should also use VPS for all my sites? But I have already paid a lot for my current shared web hosting, and it is working very well.


827. 2014-10-02 00:11:34 ockert Comments on The 8 bit DOS by Famicom Clone - BBGDOS in the 1990s:
interresting article, thanks


828. 2014-09-30 13:26:39 土木坛子 Comments on SEO Ranking Signal - Use VPS or Dedicated Server over Share Hosts:
Fortunately, my shared web hosting is really powerful to handle heavy traffic. But I did use dedicated IP for my site, because I have to use the IP for my SSL cert.


829. 2014-08-19 16:17:55 ACMer Comments on C/C++ Coding Exercise - Reverse Words in a String - LeetCode Online Judge - Using Stack:
You are right, it is unnecessary checks that can be removed. post updated.


830. 2014-08-19 07:56:04 vu Comments on C/C++ Coding Exercise - Reverse Words in a String - LeetCode Online Judge - Using Stack:
Why we need this step: if (st.size() >= 1) { // the first reversed word does not have leading white space s = st.top(); st.pop(); }


831. 2014-07-10 12:25:48 CD Comments on Node.js Tutorial - 3 Creating a Chat Server using TCP Sockets:
Create TCP server in Nodejs


832. 2014-02-17 14:57:05 K Comments on Codeforces: C. Beautiful Sets of Points:
I was struggling with this problem before I found your solution via googling. Can you please take some time to elaborate more on your solution? I can't see how you come up with the algorithm. Thanks.


833. 2013-12-02 16:15:32 sahbaz serdar Comments on Finding Primes:
another improvement can be done -1) try divison by 2-3 and 5 -2)switch the step by 2 and 4 alternatively to avoid finding other multiples of 3 exemple 2-3-5 (+2)=7 (+4)=11 (+2)=13 (+4)=17 I give you the code i wrote in C language /*méthode qui renvoie VRAI si la valeur entrée est un nombre premier */ BOOL estPremier (UINT x){ //déclaration des variables BOOL estPremier = VRAI;//on considère que le nombre est premier jusqu'à ce qu'on démontre le contraire UINT racine , cpt = 11; //début du code racine=sqrt(x)+1;//pour eviter du calcul superflu, on s'arrete a la racine du nombre (eratostene)) if (x>1){ if ((x==2)||(x==3)||(x==5||(x==7))){ return estPremier; }else{ if((x%2==0)||(x%3==0)||(x%5==0||(x%7==0))){ estPremier=FAUX; } } }else{ estPremier=FAUX; } while ((estPremier==VRAI)&& (cpt<=racine)){ if(x%cpt==0){ estPremier=FAUX; } cpt=cpt+2; if(x%cpt==0){ estPremier=FAUX; } cpt=cpt+4; } return estPremier; }


834. 2013-10-29 14:17:51 Mohammed Comments on Coding Exercise - Climbing Stairs - Fibonacci Numbers - C++ - Online Judge :
Nice Article really enjoyed programming niche cool


835. 2013-10-27 06:19:14 Dirk Wolfgang Glomp Comments on Lost Era, Microsoft DOS, 16-bit Assembly, Echo program revisited:
For a *.COM program i like to replace the last "int 20"-instruction with a simple "ret"-instruction, because DOS push a word of zero to our stack and additional it place an "int 20"-instruction to the top of our PSP just before it start to exexcute our *.COM program. Dirk


836. 2013-08-20 12:16:26 realmag777 Comments on Get Folder Size in PHP:
Here is more simply: /* * * * Get the directory size * @param directory $directory * @return integer */ function get_dir_size($directory) { $size = 0; foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($directory)) as $file) { $size+=$file->getSize(); } return $size; }


837. 2013-07-30 09:17:43 Debanjan Basu Comments on A Recursive Full Permutation Algorithm in Python:
It would be interesting to produce combinations using a similar method!


838. 2013-06-13 11:17:20 Luca Bruno Comments on Fast Integer Log10:
I'd rather use binary search at least 🙂


839. 2013-06-07 08:44:25 DoctorLai Comments on Set the Color for Console using Windows Batch:
findstr is a tool, you can google it.


840. 2013-06-06 23:41:02 Andre Comments on Set the Color for Console using Windows Batch:
I could not use a variable with path like "C:/program/" because findstr in doc i could not find what me help there is one way to fix this?


841. 2013-03-27 13:18:24 Blaise Comments on Quick Improvements on your TFileStream Access in Delphi:
Here's more: //Declaration: const fn = 'Records.dat'; type TDatas = record ID:string[10]; Comment:string[25]; end; var Stream: TFileStream; //Form Loads: Read Multiple Records: var StreamSize: Integer; Begin if FileExists(fn) then Stream := TFileStream.Create(fn, fmOpenReadWrite) else begin Stream := TFileStream.Create(fn, fmCreate); end; StreamSize:= Stream.Size; Stream.Position := 0; while Stream.Position < StreamSize do begin Stream.ReadBuffer(Datas, SizeOf(TDatas)); Listbox1.items.add(Datas.ID); Listbox2.items.add(Datas.Comment); end; Stream.Free; End; //Write Records: Stream := TFileStream.Create(fn, fmOpenWrite); Stream.Position := Stream.Size; with Datas do begin ID := '1to10'; Comment := 'Say to GOD be the Glory Always'; end; Stream.WriteBuffer(Datas, SizeOf(TDatas)); Stream.Free;


842. 2013-01-30 08:08:54 sunkehappy Comments on Multidimensional Array of Lists in Python:
For the adjacent list to represent the map I use a dict like this: {1: [2, 3, 4], 2: [1, 3, 4], 3: [4, 1, 2], 4: [3, 1, 2]} For this you can just define map like this map = dict() and construct the map by mapping each int element to a list(the node that can be reached from this int) when reading input.


843. 2013-01-18 13:13:33 DoctorLai Comments on PHP Speed Improvement Tips:
You can time it using microtime easily. In the post, it has a quick comparison.


844. 2013-01-18 13:09:30 Tom Fillamin Comments on PHP Speed Improvement Tips:
I've read many blogs made by professionals and they suggest the same thing. Echo over print. Could you also give a sample code using print for better comparison?


845. 2013-01-18 06:19:41 chenpeng Comments on Multidimensional Array of Lists in Python:
python genetaor.


846. 2012-08-06 16:05:25 Xiaoming Tu Comments on Return in Try-Finally for Python/Java/Delphi/C#:
lol... interesting! quite strange why C# is designed in this way. BTW, why not use some socialization plugins to enable logging in by open ID?


847. 2012-07-31 04:28:12 grammar nazi Comments on One Interesting Linux Command (Steam Locomotive in BASH):
Linux is a open-source free project   Linux is *an open-source free project


848. 2012-05-31 07:22:35 fookwood Comments on STDIN and STDOUT in PHP:
acm.zju.edu.cn supports php~


849. 2012-05-31 07:15:37 fookwood Comments on Bogo Sort Algorithm:
好奇葩的算法。。


Newer Comments -

–EOF (The Ultimate Computing & Technology Blog) —

46 words

The Permanent URL is: List of Comments