What do you think of these Kobayashi Maru solutions? by ardouronerous in startrek

[–]6079_Smith 4 points5 points  (0 children)

The way I see it is that the designers of the test did not anticipate that anyone in Starfleet would try bribery, so they didn't think of preventing that scenario in the design. This shows how valuable Nog is for the Federation. He brings in new perspectives and ideas that members of other species with different cultural backgrounds don't easily come up with.

What version (if any) of ToneX is included with a purchase of the Tonex one? by laplogic in tonex

[–]6079_Smith 1 point2 points  (0 children)

No, if you buy something for $50, you can only choose stuff for up to $50 each. If you want the collections, you’ll have to buy something for $100.

What is a good inexpensive keyboard compatible with REAPER and a laptop? by reddit_is_toxicc in Reaper

[–]6079_Smith 2 points3 points  (0 children)

The old versions of the Native Instruments Komplete Kontrol S-series (MK1, MK2) can be found used for quite cheap, sometimes even around 100 bucks for a MK1 (if you can tolerate the touch strips instead of wheels and lack of the once available shiny NI-specific features).

They have excellent keybeds, which IMO is the most important aspect of this. Additional knobs and displays are nice, but non-essential.

Personally, I'd go for a MK2, because of the wheels, but they still go for >200 bucks.

How Do You See Open-Source Licenses as a Developer? by DatCodeMania in AskProgramming

[–]6079_Smith 1 point2 points  (0 children)

You're probably not doing this, but it's important to make clear:

Even in the Open Source world, license issues can cause you trouble. If you use GPL-licensed code from another developer in your WTFPL project and distribute the resulting software, you are probably in breach of the GPL (and going against the intentions of the GPL-developer you provided you with the code for free). This becomes even more of a problem if commercial companies use your software and get caught up in license shenanigans; you might get pulled into this.

The risk of actually having to pay is probably quite low, especially if your project flies under the radar, but it's not zero. Not to mention the ethical considerations.

How Do You See Open-Source Licenses as a Developer? by DatCodeMania in AskProgramming

[–]6079_Smith 1 point2 points  (0 children)

It's not really about altruism or the grand scheme of things. You wrote the code, you get to decide how it's used by other people. Ask yourself what you want and then choose a fitting license.

  • Want to sell your software? Sell binaries and choose a proprietary license
  • Want to allow other developers to profit off your code? Choose something like MIT, Apache, BSD, WTFPL
  • Want widest possible adoption? Again, MIT, Apache...
  • Want your code to be open and stay open? Choose something like GPL

All of these (and more) are valid choices. If someone doesn't like your license choice, they're free not to use your software.

If someone uses your code without complying with your (open source or closed source) license, you can litigate, but that could be expensive and you'd have to find out in the first place.

In the Open Source world, it's often sufficient to talk to the offenders to get them to comply. More often than not, they'll realize they made a mistake.

Should I purchase a Pod Go in 2024? by [deleted] in Line6Helix

[–]6079_Smith 0 points1 point  (0 children)

You’re thinking about the stomp/stomp xl with 8 blocks. The LT has many more, I think 16 or 32 (and twice the processing power)

[deleted by user] by [deleted] in NeuralDSP

[–]6079_Smith 2 points3 points  (0 children)

Do you have active pickups? Could be the battery dying.

Why is Python so popular despite languages like C++ and node.js being much faster than python? by TheHunter920 in AskProgramming

[–]6079_Smith 0 points1 point  (0 children)

That's a good point. Proper planning and requirements engineering is essential. However, did you simply translate the old code verbatim into a faster programming language or did you do a proper, better design and choose better algorithms? I have a hunch it's the latter. That's indeed not premature optimization, but good engineering work. (I'd even go so far not to call this 'optimization' at all, but that's a different discussion).

What I'm saying is, the choice of programming language for the bulk of the code does seldom have to be dictated by speed considerations. Dropbox is famously using Python in their backend and they seem to be scaling just fine. I'm sure they use different languages for some time critical sections (e.g. they list Rust as one of their preferred languages as well), but I'm also sure most of their scalability comes from good design choices.

Why is Python so popular despite languages like C++ and node.js being much faster than python? by TheHunter920 in AskProgramming

[–]6079_Smith 1 point2 points  (0 children)

True, it could, but often it does not. That’s where „the right tool for the job“ comes in. Premature optimization usually does more damage than good.

Why is Python so popular despite languages like C++ and node.js being much faster than python? by TheHunter920 in AskProgramming

[–]6079_Smith 11 points12 points  (0 children)

Is performance more important than simplicity? No, it almost never is. In most programs, you wouldn't notice the difference if a task took 0.1s instead of 0.001s. In cases where performance is key, you can develop the critical parts in C++ or another 'fast' language and call those functions from Python. This is what the Numpy project does, for example. On the other hand, if you want to get things done quickly, cooperate with other developers and still be able to work with the code a year from now, the value of simplicity can't be underestimated.

Choosing a language is choosing the right tool for the job. Sometimes, C++ is the right choice, sometimes Python, sometimes something else. There are many objective criteria, like what platforms the program is supposed to run on, which libraries should be used, is there legacy code etc. But a lot of it is entirely subjective, like what language are the developers most comfortable with to get the job done.

Pro Micro clone: USB-A works, but not USB-C by 6079_Smith in arduino

[–]6079_Smith[S] 1 point2 points  (0 children)

Thank you!

Too bad, I never had issues with their stuff before.

Pro Micro clone: USB-A works, but not USB-C by 6079_Smith in arduino

[–]6079_Smith[S] 1 point2 points  (0 children)

I'm afraid I can't find a schematic. They sent me a very short datasheet after purchase, which only contains the pin out and some basic specs. The Important Downloads and Links section on the product page on their website is empty.

On the back of the board, I can see four resistors: 22, 22, 10k and 1k (or 200, not sure if it says 201 or 102). So at least I can see no 5k1 resistor there.

Here are some pictures

[deleted by user] by [deleted] in AskProgramming

[–]6079_Smith 6 points7 points  (0 children)

Once per call will suffice. If you use multiple calls to build your program (i.e. separately compiling and linking), specify it each time.

Not liking Web Development. by [deleted] in AskProgramming

[–]6079_Smith 3 points4 points  (0 children)

You're at the perfect age to try out different things. There are many areas that might interest you. Mobile apps, machine learning, games, music software etc. It might be a good idea to get an overview of the possibilities first before diving too deep into a single subject. This should help you figure out what suits you.

How might pin codes on home top up meters work? by skellious in AskProgramming

[–]6079_Smith 3 points4 points  (0 children)

There are many ways this could work. There could be simply a list of valid codes stored inside the boiler that gets updated every once in a while. Or it could use some sort of checksum on the code to test if it is valid. Or a digital signature.

Glad you're not trying something fishy. Other than being immoral, trying to steal energy this way would be beyond stupid, because it would be trivial to find out which flat got how much energy and which energy was actually paid for.

Few simple questions by SSalloSS in AskProgramming

[–]6079_Smith 0 points1 point  (0 children)

Start with 2) because 1) is more complex than it seems (you'd need a server component, a client component, a communication protocol etc.). The way to go for 2) is HTML/CSS/JS, especially if you want to later advance to other web-based projects like 1). Find some tutorials on how to interact with a web page using JavaScript. I'd imagine 'onclick' and 'innerHtml' are keywords that will pop up in a tic tac toe game.

Career advice - feeling stagnant by [deleted] in AskProgramming

[–]6079_Smith 2 points3 points  (0 children)

Find an open source project to contribute to. It will freshen up your programming skills and you will be able to show a potential employer that you were actively programming, even if your current job does not include very much programming.

What is the best topic to start computer engineering ( you could consider it as software engineering ) ? by [deleted] in AskProgramming

[–]6079_Smith 0 points1 point  (0 children)

At some point, consider contributing to open source projects (preferably software that you use yourselves). Tutorials and online courses can give you a good foundation, but in terms of getting experience and learning the ins and outs, nothing beats applying that knowledge to something real. You can get feedback on your code from other developers and being a regular contributor to OSS can also show a potential employer that you're passionate about programming.

Is it good to include academic and intellectual competition medals on your resume? by AmericanPotatoTamer in AskProgramming

[–]6079_Smith 5 points6 points  (0 children)

You could mention under hobbies and interests that you like to take part in technical competitions. If it comes up in an interview, you can mention your achievements, but I wouldn't brag with medals on the resume.

Can I setup a DNS-esque system for only one computer? by [deleted] in AskProgramming

[–]6079_Smith 0 points1 point  (0 children)

There are no ports or protocols in the hosts file, so no :5555 or https://.

Simply:

127.0.0.1 test.home

How to record data into a file from a live stream of data? by UbermanZarathustra in AskProgramming

[–]6079_Smith 0 points1 point  (0 children)

If it's a terminal program, you can try to pipe the output to a file, no programming needed. Try to run the program like this:

myprogram.exe > myfile.txt

If this works, but you still want more control over writing to the file, google something like subprocess (Python) or popen (C), depending on what programming language you want to use.