Click here to Skip to main content
15,895,084 members

Articles by Eric Z (Jing) (Technical Blogs: 9, Tip/Tricks: 2)

Technical Blogs: 9, Tip/Tricks: 2

RSS Feed

Average article rating:

No articles have been posted.

Average blogs rating: 4.72

All Topics
26 Dec 2013   Updated: 26 Dec 2013   Rating: 4.40/5    Votes: 3   Popularity: 2.10
Licence: CPOL    Views: 7,403     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
(a |= b) Is Not Equal to (a = a | b) ?
General Programming
Algorithms
29 Aug 2015   Updated: 29 Aug 2015   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: CPOL    Views: 12,600     Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
The traditional way to solve the ZigZag Conversion problem is to either build a 2d table or find a pattern among the index of the letters on the same row. There is also a beautiful solution which builds on top of Breadth First Search. Continue reading..
16 Feb 2015   Updated: 16 Feb 2015   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: CPOL    Views: 9,100     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Evaluation order matters!
Programming Languages
C
29 Aug 2016   Updated: 3 Sep 2016   Rating: 4.67/5    Votes: 2   Popularity: 1.40
Licence: CPOL    Views: 10,262     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
How to create many-to-one mapping in C
C++
16 Aug 2014   Updated: 16 Aug 2014   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 27,201     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
Understand std::atomic::compare_exchange_weak() in C++11
25 Dec 2013   Updated: 20 Feb 2014   Rating: 4.89/5    Votes: 4   Popularity: 2.94
Licence: CPOL    Views: 10,900     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
Sign Extension of C++ Pointer: The cause of NIC’s failure to send packets
13 Sep 2015   Updated: 13 Sep 2015   Rating: 4.53/5    Votes: 9   Popularity: 4.33
Licence: CPOL    Views: 13,221     Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
Justify your use of "friend" in C++
25 Dec 2013   Updated: 17 Oct 2017   Rating: 4.91/5    Votes: 18   Popularity: 6.16
Licence: CPOL    Views: 14,460     Bookmarked: 21   Downloaded: 0
Please Sign up or sign in to vote.
I list various array-and-pointer-problems I have heard or encountered.
27 Sep 2016   Updated: 27 Sep 2016   Rating: 4.08/5    Votes: 8   Popularity: 3.68
Licence: CPOL    Views: 11,832     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
Deadlock caused by Boost shared_ptr

Average tips rating: 4.08

C
25 Dec 2013   Updated: 2 Oct 2016   Rating: 3.15/5    Votes: 9   Popularity: 3.01
Licence: CPOL    Views: 32,556     Bookmarked: 8   Downloaded: 0
Please Sign up or sign in to vote.
This tip introduces struct hack and compares it with several implementation alternatives.
C++
3 Nov 2016   Updated: 3 Nov 2016   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: CPOL    Views: 11,300     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
There is an efficient way provided by std::map to solve a common programming pattern ("query-and-insert-if-nonexistent")

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
Technical Lead National Instruments
China China
Senior software engineer at National Instruments, to implement various Ethernet-based industrial protocols, e.g., EtherCAT. Favorite languages are C/C++ and Python. For fun, I like watching films (sci-fi, motion), walking, and various reading.