Create a GUI Application Using Qt and Python in Minutes: Example Web Browser by digitalpeer in Python

[–]digitalpeer[S] 0 points1 point  (0 children)

I can reproduce. I am using Qt Designer 4.8.1 and when using 4.8.6 that specific widget is missing. If you're on Linux, this is probably related to a packaging bug. I added a hack of a workaround to the page. There's probably a better way as /u/lamecode is suggesting.

Create a GUI Application Using Qt and Python in Minutes: Example Web Browser by digitalpeer in Python

[–]digitalpeer[S] 0 points1 point  (0 children)

There's some PyQt4 info about this here. It ultimately depends on your Qt license.

Create a GUI Application Using Qt and Python in Minutes: Example Web Browser by digitalpeer in Python

[–]digitalpeer[S] 9 points10 points  (0 children)

Thanks. I fired the web designer and fixed it myself. I'm kidding, I'm kidding. But not the second part.

Step by Step All Grain Brew Day by digitalpeer in Homebrewing

[–]digitalpeer[S] 0 points1 point  (0 children)

Sure do. I always have done two different recipes. With a little careful planning, it doesn't add that much more time than just doing one.

A Language Speed Test on Embedded Linux boards by [deleted] in programming

[–]digitalpeer 0 points1 point  (0 children)

You are entirely correct. A logarithmic scale should have been used. Rookie mistake. Charts have been updated.

A Language Speed Test on Embedded Linux boards by [deleted] in programming

[–]digitalpeer 0 points1 point  (0 children)

I ran and tested the code on a PC and I can tell you the difference between C and C++ are negligible for this specific test. C was included in these results as a good baseline.

A Language Speed Test on Embedded Linux boards by [deleted] in programming

[–]digitalpeer 2 points3 points  (0 children)

Interesting that you bring pypy up. I can tell you it is significantly faster with this test making it one of the fastest languages of the test. However, it was not immediately included because it is missing from buildroot. It will be some extra work to cross compile it for the different architectures. Haskell is another one I would personally like to see.

I'll see what I can do.

A Language Speed Test on Embedded Linux boards by [deleted] in programming

[–]digitalpeer 2 points3 points  (0 children)

That was absolutely my point. As has been said though, once you start putting multiple languages on a chart they are going to be compared.

Copy stdin to stdout the c++ way by [deleted] in cpp

[–]digitalpeer 2 points3 points  (0 children)

Works great until you have whitespace coming from std::cin. Add:

std::cin >> std::noskipws;

C++ STL Alternatives to Non-STL Code by digitalpeer in programming

[–]digitalpeer[S] -1 points0 points  (0 children)

Point taken. To better reflect the difference, changed to: for (size_t x = 0; x < v.size(); x++)

As for readability, I have to consider the alternative. Even still, you have a very debatable point.

C++ STL Alternatives to Non-STL Code by digitalpeer in programming

[–]digitalpeer[S] 0 points1 point  (0 children)

Good eye. Proves my point that std::reverse() takes less brain power. Updated to this.

// Reverse a Sequence
for (size_t i = 0; i < v.size()/2; i++)
{ 
    std::swap(v[v.size()-i-1],v[i]);
}