Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
87% Quality Score
Upvotes Received
22
Posts with Upvotes
19
Upvoting Members
9
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
4 Commented Posts
0 Endorsements
Ranked #3K
~70.2K People Reached
Favorite Tags
Member Avatar for cored0mp

No RDBMS or ETL app has a magic bullet. Getting data in is the big challenge. Some RDBMS have bulk input for CSV or the like. One pitfall is that a big insert may trigger long and many row/page/table locks. One middle path is to import in bulk to a …

Member Avatar for DGPickett
1
169
Member Avatar for brooklyn1991

I optimized a Binomial min heap in c++, great for low costs when you discard the heap not empty because you have your spanning tree or shortest route. I changed the root to an array for fast merge.

Member Avatar for DGPickett
0
309
Member Avatar for Alicia_14

C is pretty married to ASCII but that leaves 128 more characters 128-255. ISO8859-1 assigns them to support Nordic/Germanic languages, often called LATIN-1. Even in the old days of 6 bit characters and BCDIC, what you printed depended on what roller was in the printer. Later, what belt, even with …

Member Avatar for DGPickett
0
100
Member Avatar for Vandiun

Generally any column named id is an artificial, auto-incremented, indexed key. Are your id's also primary keys, and so indexed? If a btree index, maybe make a hash index? A order date index btree not hash allows a range selection.

Member Avatar for DGPickett
2
149
Member Avatar for Nether_1

There may be integration to get the drivers and decoders onto the same die as the LEDs, but yes, otherwise, 3020 connections x 3 (R G B) and a very fast scan rate. Any my TV is 4K, not 1080. I suspect they may be driving more than one dot …

Member Avatar for james122
1
1K
Member Avatar for Deyns

Assuming there is no magic free direct conversion tool, convert the python to pseudo code and then to JAVA. This will test your knowledge of when python does nice things for you automatically, which you may need to do manually in JAVA. You may be able to use more appropriate …

Member Avatar for adajames
0
146
Member Avatar for Crona

Assuming the file is utterly consistent (3 line sets, ssn w/o dashes in the second line), you can toss a line, read a line as a string or int, toss a line in a 3 line loop. Now, you can drop you SSN into an (ordered) set, which eliminates duplicates …

Member Avatar for DGPickett
0
261
Member Avatar for nextsmm

I write all my code in my brain as pseudo code, and later encode it in the language of the moment. Sometime I use paper in the middle. I have a bluetooth keyboard or two that make my phone pretty useful for data entry and programming. It is nice to …

Member Avatar for DGPickett
3
232
Member Avatar for din_hilmi

Wow, can of 'sorts'. You need some sort of container, and there are others besides array: linked list, tree, hash table, skip list. Tree sorts as it adds, and even C has tsearch(). For small sets, you can delete the min value when you find and print it, and scan …

Member Avatar for Aditya_47
0
44K
Member Avatar for Abdullah_54

It depends on locks already held. Deadlock is p1 gets a and wants b bu about the same time p2 gets b and wants a. If all threads always lock resources in the same order, there is no deadlock or starvation.

Member Avatar for DGPickett
0
47
Member Avatar for Dani

The newer 'find' has a batch execution mode, but I find it easier to use 'xargs'. I usually do 'xargs -n101 ...' to both prevent execution with no arguments and get the work started while still getting 99+% of the bulk savings. In fact, I wrote a fast xargs that …

Member Avatar for Sohaib_7
3
924
Member Avatar for misstj555

There is consulting, where they run interference for you, freelance work, volunteer work, teaching, tutoring and open source collaboration to get your status up and your skills sharp.

Member Avatar for Charlessh890
0
2K
Member Avatar for arun.gtm11

The easiest thing is to write CSV files, which follow 4 simple rules: 1) cells are separated by a comma, 2) rows are separated by a cr-lf, 3) unless the comma or cr-lf is enclosed in double quotes, and 4) a doubled double quote is a double quote in a …

Member Avatar for jackflint
0
4K
Member Avatar for Satish_14

I usually go with another int set to -max (0x80000000) when seeking a max, so the first is generally greater and replaces it. Using <= means equal values get copied, and as writes are more expensive than reads (think cache), why bother unless either you are required to get the …

Member Avatar for DGPickett
0
163
Member Avatar for Jeyaraman_1
Member Avatar for Gtr_1

Once you have the average, you need another loop that reviews the input against it and prints the desired items.

Member Avatar for DGPickett
0
189
Member Avatar for Xozz

Or better yet, make it an array of char*, since a double quoted literal value is a char pointer to a constant on the heap.

Member Avatar for DGPickett
0
262
Member Avatar for ビナ
Member Avatar for Reverend Jim
1
652
Member Avatar for anand9796

== is a shallow comparison, like shallow copy, true only if the refrences are identical, not the objects. http://adripofjavascript.com/blog/drips/object-equality-in-javascript.html JAVA and C++ also have this sort of limitation unless you overload the == operator or use a method, like compareTo, equals, and JAVAScript isEqual. JAVA Sets use object.equals(), which is …

Member Avatar for Dani
0
374
Member Avatar for SimonIoa

The join table to itself tactic is very good for converting rows to columns. There are other tricks you can use with aggregates and case statements.

Member Avatar for Biiim
1
1K
Member Avatar for nxcx
Member Avatar for Nutster
0
375
Member Avatar for Lighterning

Wow, I just write a service that runs the query and reformats the column titles and values into an HTML table. If I wanted it to be more spreadsheet-like, there are caned javascript bits out there to allow you to re-sort the table.

Member Avatar for Biiim
0
262
Member Avatar for aromazing
Member Avatar for mko_1

Since auto resizing arrays are not there in c, not classes, you might want to use a linked list or realloc() a char[] to size.

Member Avatar for kevenm
0
459
Member Avatar for faaramin

I have had good luck with: "<HTML><HEAD><TITLE>My Title</TITLE>...</HEAD><BODY>...</BODY></HTML>"

Member Avatar for faaramin
0
251
Member Avatar for Gayathri_2

Generally, when you go to a web site without a valid timed login cookie, the server redirects you to the login page, possibly with a cookie or variable saying where to go (the original page) after login.

Member Avatar for DGPickett
0
351
Member Avatar for Petrus_1
Member Avatar for DGPickett
0
330
Member Avatar for MickeyD

If stick 3 runs the machine OK alone, then incompatibility is a strong possibility. However, there is usually one way things can work and an infinite number of ways they can be broken! It might be broken so it runs but messes up any and all other cards on the …

Member Avatar for DGPickett
0
284
Member Avatar for misstj555

Just like scanf() and the JAVA Scanner Class, when you >> the next string, int, double, char, etc., then it reads, initially skipping over white space, into the variable from input until it has what you want, and when it hits an incompatible character, like white space for a string, …

Member Avatar for misstj555
1
924
Member Avatar for IdontevenKNOw

dgp@dgp-p6803w:~ $ myCC c++rw dgp@dgp-p6803w:~ $ c++rw Type in file name followed by the extention ".txt" x.txt File created. Please enter text: hohoho File Information: hohoho dgp@dgp-p6803w:~ $ #include <iostream> #include <fstream> #include <sstream> #include <string> using namespace std; int main() { cout << "Type in file name followed by …

Member Avatar for rproffitt
0
516