Search results

  1. azteched

    Bash script help please

    Are you sure it doesn't work as it is? It looks OK to me. $? should still have the exit status of the aws command. wibble=$(cat i_dont_exist) if [ $? -eq 0 ]; then echo "success" echo $wibble else echo "failed" fi zog=$(echo foo) if [ $? -eq 0 ]; then echo "success" echo...
  2. azteched

    Any C programmers wander these lands?

    The great majority of embedded jobs are still C or C++ but Rust surely does have a future in the space (I'd like to learn it myself at some point!). It's also useful to get a bit familiar with assembly language (most commonly ARM) because you really do get an appreciation of what's actually...
  3. azteched

    Apache Expression Functions and .htaccess

    Disclaimer: I know nothing about Apache (I do embedded development!), but this just piqued my curiosity: 1. It's not clear if can you use ap_expr constructs in a RewriteRule? The docs indicate that you can in a RewriteCond, but it's not mentioned in the RewriteRule stuff. 2. If not, it looks...
  4. azteched

    Gigabyte B550 Pro or X570 Elite

    The BIOS on the X570 is likely more mature, since it's been out there a lot longer.
  5. azteched

    Pass Array of Structures (AoS) to CUDA Kernel? Only element 0 works

    What NickK said.. this code just dereferences the pointer to get the first structure, surely. Unless there's some CUDA magic (I've only used it very lightly ages ago, mostly do plain old CPU threading). What happens if you access another structure at *(Dev_Group_Places + <nonzero offset>)?
  6. azteched

    Terrible coding examples

    goto cleanup :cool:
  7. azteched

    Serializing a DOM - Java

    The explanation sounds a bit weird: 1. 8 bytes / 64 bits can hold numbers a lot larger than 99,999,999 2. the response you're sending is >= 100 megabytes?!
  8. azteched

    Particle Physics Simulation - OpenGL C++

    It looks like the path where the loop finishes due to the stop condition (npvIt != end) needs to be handled. In that case, there were j <= i elements in newParticleVector to start with. So you probably just want to do newParticleVector.clear() on that path. Your code would also be clearer in...
  9. azteched

    Terrible coding examples

    Yes, I hate this contortion of code to fit an artificial "THOU SHALT HAVE A SINGLE RETURN STATEMENT" rule. Makes the code so much more complex to follow.
  10. azteched

    *** The Official Diablo III Thread ***

    Rolled a decent Unbound Bolt today. Trying out the 2.84 BP rather than the 2.16 with my 2h xbow. Still need a decent neck, and Witching Hour apparently doesn't exist :(
  11. azteched

    *** The Official Diablo III Thread ***

    Yeah, use thoses unities. That alone gave me three extra rift levels. Becomes pretty hard to actually die in GR <~ 34, which saves much running time. Jewelery is my problem too. Can't find a decent amulet, which is annoying when it's such a big dps source.
  12. azteched

    Best to learn?

    OP - ignore this poor trolling attempt.
  13. azteched

    How important is Maths for Programming

    This just in: different sub-fields of software development may require more or less maths!
  14. azteched

    Query Nvidia GPU in Linux

    Likely you'll need to use ioctl(). You need to know the proper IOCTL command code that the nvidia driver exposes for this query.
  15. azteched

    *** The Official Diablo III Thread ***

    Not played for a few days, was in OS. Could I have an ocuk invite, peas -- tag in sig.
  16. azteched

    Prefered browser, Chrome or Firefox. And why?

    Firefox for a) the "awesomebar" or whatever it calls itself. Gets me to what I want more efficiently than any of the other similar solutions -- absolutely killer feature. b) tree style tab -- afaik there's no especially good solution nowadays for Chrome et al. Just can't use silly...
  17. azteched

    Moving in IT/Programming

    the javascript generation makes me sad :(
  18. azteched

    The **Now Drinking** Thread

    My home made mead
Back
Top Bottom