Search results

  1. D

    Using PHP/MySQL to create Algebra Equations

    I think you would need to be more specific about what you're trying to do. Are you trying to make a simplified version of wolfram alpha?
  2. D

    C# - Rename if length over X

    I would say this is probably the better approach.
  3. D

    Want to relearn C, what book?

    And I'm saying if you want those students to come out of school with lots of bad habits and misconceptions ingrained in them, having an 'applied computer science' degree that teaches them how to misuse jQuery and Angular is a fantastic idea. If your goal is to have them be prepared for work...
  4. D

    Want to relearn C, what book?

    Libraries can use jQuery all they want internally without a developer needing to 'know jQuery'. Of course, most libraries, at least the ones where the authors actually want people to use their stuff, don't use jQuery or at minimum don't pull in full jQuery, because jQuery is both large and...
  5. D

    Want to relearn C, what book?

    That's because jQuery, CSS and workflow management have absolutely nothing to do computer science what-so-ever. jQuery is hardly fundemental to client-side JavaScript, let alone computer science as a whole. Computer science isn't about getting a job as a two-bit web developer. It's a huge...
  6. D

    Want to relearn C, what book?

    And there is some truth to this, too. I have colleagues that did not pursue the lower level concepts and the theoretical subjects. They can write a lot of the simpler pieces of code, but occasionally they write completely non-performant code. In an extreme example, two of them were working...
  7. D

    Want to relearn C, what book?

    I read this: ...and if he plans to do that, he'll need to know assembly pretty well, since he's going to need to be able to either program his devices in assembly directly, or write an LLVM backend. Besides, even if that weren't the case, it's a good idea to have written an amount of...
  8. D

    Want to relearn C, what book?

    I think this is an especially important thing to keep in mind, when we consider that the thread starter said he's programming embedded systems. On weaker devices that cannot afford to be as liberal with memory or CPU power, and that might not be running comprehensive frameworks/operating systems...
  9. D

    Want to relearn C, what book?

    Languages like C# and Java are cool and all (kinda), but if he's writing code for an embedded platform, C isn't a bad idea. Plus learning C just isn't a bad idea in general. Too many kids now-a-days don't understand how languages like Java work, because they never learned how to do the things...
  10. D

    CSS & images/Text

    When's the last time you tried using flexbox? We track browser usage data and feature support matrixes very carefully where I work, and the OS + browser + browser version combinations that don't support the majority of flexbox (and can't be addressed with vendor prefixes) represent a...
  11. D

    CSS & images/Text

    For layouts like this, you might consider using flexbox. You'll have two container divs. The container with the image should be styled to flex: 0 0 <whatever the image width is>, and the container with the text should be styled to flex: 1 1 auto. The parent of these two containers would be...
  12. D

    Learning threading

    As a concrete example, one might consider taking a look at this method, then contemplating some of its possible uses. http://en.cppreference.com/w/cpp/thread/mutex/try_lock As they mention in the comment inside the else block, the particular resource examined wasn't available, but there could...
  13. D

    Some basic Java Questions

    Yes. If we replace A with animal, B with dog, and C with pit bull, pit bulls can still do animal things, because they're still animals.
  14. D

    Best forum for C++ beginner?

    Right. Ask well formed questions that aren't duplicates and nobody will have to kick you in the shins.
  15. D

    Learning SQL

    It's a matter of understanding your customer's needs in order to properly support them. A DBA's customers are generally programmers, so to start with, they need to understand the needs they're trying to support. Additionally, I don't know how it's possible to be a good DBA without having a...
  16. D

    Setups/systems for programmers

    I would personally advise going for nice, thin laptops. The ability to move around and/or take your work with you is just too valuable. If your developers have good laptops, developers will seek each other out and pair on larger/cross domain problems to work more effectively, and they might even...
  17. D

    Learning SQL

    That's interesting. I didn't know you could be a good DBA without being able to program, or at minimum, having a good understanding of the computer science behind programming.
  18. D

    vBulletin login security

    Right, and I can confirm that it's possible to observe that request going across the wire, grab the hash header and reverse it to find the password with a rainbow table.
  19. D

    vBulletin login security

    Additionally, most people are moving to forward secrecy, so the situation this client-side hashing is trying to circumvent isn't really the most likely problem. TLS is moving towards things like ECDH, where the shared secret is not sent across the wire. The situation where HTTPS gets broken is...
  20. D

    vBulletin login security

    Are you sure? Also, by clear I meant using HTTP, not that the passwords are in plain text.
  21. D

    vBulletin login security

    There are two major issues that I am aware of with hashing passwords client-side instead of server side, even if you're encrypting with TLS before sending the hash over the wire. First, since properly hashed passwords should not be readily reversible, that would prevent the application from...
  22. D

    vBulletin login security

    I can confirm that it is indeed possible to determine a password from the 'clear' login POST in this configuration. Ideally, sites using this configuration should consider reconfiguring to a more secure setup.
  23. D

    vBulletin login security

    So they're hashing the passwords client-side? That seems, well....idiotic. Using TLS to send encrypted passwords is not difficult, as illustrated by the majority of the internet doing it. If the passwords aren't salted, it should be simple to rainbow tables the password.
  24. D

    Learning SQL

    On top of that, even if you're unwilling to shell out any money at all, there's always SQL Server Express. So depending on how in-depth the particular certification in question goes, that might do everything you need to play with to pass the cert.
  25. D

    good git prompt for OSX?

    I believe this is what we have on our pairing stations at work.
  26. D

    PHP, how I hate thee

    Welcome to, errr..... Every time I have to look at or touch anything PHP related? Yeah, just use the server that PHP is running on to statically serve an Angular SPA. It's the most useful thing a PHP server could possibly do. Besides, unless this application is very mean-time-to-content-in-DOM...
  27. D

    I need a program that will automate web activity

    You write that part of the program yourself, or run the program as a scheduled task in your OS.
  28. D

    MS Clarifies why Win 10 is free

    Wrong. The whole point of DirectX 10 was that it gave more efficient ways of doing things you could already do with DirectX 9.0C. The big selling point of DirectX 10 (selling point for developers, not consumers, of course) was that you could now do things that were previously prohibitively...
  29. D

    Project Mercury - CPU Priority Booster for heavy multitaskers

    Security isn't my main concern here. It's just much easier to give useful feedback when you have the source to look at.
  30. D

    Project Mercury - CPU Priority Booster for heavy multitaskers

    If you put the source code on Github, I'm sure plenty of us would be happy to take a look for you.
  31. D

    MS Clarifies why Win 10 is free

    There were some very significant cross-cutting architectural changes made to Windows post-XP that were necessary to implement a majority of the functionality in DirectX 10. The reason DirectX 10 wasn't put on Windows XP is that it wouldn't work on Windows XP, period. This is one of the things...
  32. D

    Backing up an internal Wiki without backend access

    I agree with what the mikeblas has recommended. Even in the worst of the worst of enterprises, there will almost certainly be backups being taken and there should be restore capabilities, even for low priority systems like a wiki. If this is the case, then you don't really have a problem, so you...
  33. D

    Possible to scrape data from Android apps?

    This is not likely to be easy, since this is not something the Android engineers would want you to be able to do. If there were an easy way to grab text from an app from outside that app, then there would be an easy way to read people's emails and banking information.
  34. D

    What is proper way to deal with a function that has multiple return paths?

    If the functions don't throw exceptions when they fail, wrap them. In your wrapper, check to see if they completed successfully, and if they don't, throw the error code as an exception. It's the best you can do with code that doesn't take advantage of exceptions...
  35. D

    What is proper way to deal with a function that has multiple return paths?

    As I showed in the second code block, if the code calling that code really can't tolerate being re-written to handle exceptions, you can use exceptions internally while still returning an error code externally. ...but in your case, I think you'll find exceptions to be easy enough to use in...
  36. D

    What is proper way to deal with a function that has multiple return paths?

    C++ has exceptions, so why aren't you using exceptions? Writing if statements to check for error values on every call that can fail makes your code hideously unreadable and difficult to maintain, even if care is taken to try to make the error logic as clean as possible. If your functions are...
  37. D

    best OS to use

    People who seemingly don't even know how to module.h properly are always telling me that Linux is the best OS to use, but I've always had my best experiences on Windows 8.1, so that's what I recommend.
  38. D

    Property Dimensions Web application

    I guess you'll have to be specific. How are these 'properties' being stored? What information about them does the developer have at their disposal?
  39. D

    web development - on ultrabook or on powerhouse?

    I can't imagine either laptop would have issues being performant enough for your web development tasks. I work on some pretty mediocre virtual machines at work, and I can run a fairly large, fairly heavy Java stack without too much trouble.
  40. D

    I need some Cuda/Parrellel projects to add to my portfolio.

    Write a program that takes in an image and allows you too apply various filters to it. Start with the easy stuff, like NxN mean and median blur filters. Measure your single threaded implementation, write a parallel one, and measure that. Simple filters like that should be easy to get a decent...
Top