Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Everything posted by reniat

  1. So I've been... neglectful of my loop for a while. I'm finally getting around to cleaning it, and Im noticing things like what seems like flakey dried dye in some parts, and what looks like it might be corrosion or bare copper in other parts. pictures: https://i.imgur.com/1o10hgg.jpg https://i.imgur.com/xRVmm0o.png Should I just clean em as best i can and hope for the best? I've had 0 temperature issues at all, and the pump is still performing at 100%, so there's no concerning behavior, just concerning appearances.
  2. by azure devlops do you mena TFVC? since i know a lot of people use azure devops with git as the underlying SCM
  3. im curious what you think git is a downgrade from. Would you rather have SVN or mercurial? gross.
  4. ..................... I'm gonna blame the fever on this one.
  5. Could just use a salted hash. Far from a perfect solution, but they'd still have to brute force the PW from scratch after opening the script ¯\_(ツ)_/¯
  6. It just requires a compatible JVM version. I meant not as portable compared to something like C, where pretty much every major system already has a valid compiler without needing to install anything. C# was mainly the focus of the compatibility stuff since historically it's pretty Windows focused though they do have stuff like Xamarin
  7. Try not to pigeon hole languages like that. Game engines comprise such a small % of the C++ code out in the world (it's behind most of the web browsers you use for example), and python isn't the only language to do machine learning in. There is truth in some of the language stereotypes, but it might give you wrong idea about a language if you latch on too firmly. Instead of specific applications, think of the languages in terms of their strengths weaknesses and go from there: (this is BY NO MEANS an exhaustive list, just the stuff that comes to my mind) C/C++
  8. you are using 'guess' before it's actually set to anything.
  9. in terms of pure execution speed the gap is definitely smaller than it used to be, but there are still some major factors that basically prohibit java from being a high performance game language. The biggest reason is that it's really not worth the effort of porting major game engine to java, so you're stuck with whatever platform those engines give you. The closest would be Unity with C#, but the super high performance engines are almost all C/C++. Another reason java isn't a great game language is garbage collection. It creates a lot of performance uncertainty, since you really
  10. i'm a bit confused as to whats going on here, since it looks like vetorDelO is some kind of collection based on the variable view there, but you are directly comparing it to the temposeExecucao, which looks like a numeric primitive, which shouldn't compile. More context in the code would help here.
  11. reniat


    Since it's such a specific requirement (conversion and it HAS to be done through consuming an api), i'm guessing its some kind of homework assignment. I just want to throw this out there, since i also think doing a Rest API call for something this trivial would not be a good actual solution.
  12. reniat


    I would assume so. It says "Convert most known measurement types: imperial, metric, mass, length, temperature, time (and more)." Might have to just dig through the api documentation more (which is really good practice and probably why this is a requirement, if this is an assignment)
  13. reniat


    https://www.neutrinoapi.com/api/api-examples/node.js/ Just fyi it was the very first google result of "metric to imperial coversion API"
  14. As long as your fittings are properly tightened if its a custom loop. Just do it gently, since water is heavy. Also make sure your reservoir is properly closed. If it's an all in one cooler than don't worry about it.
  15. (defun fizzbuzz () (loop for x from 1 to 100 do (format t "~&~{~A~}" (or (append (when (zerop (mod x 3)) '("Fizz")) (when (zerop (mod x 5)) '("Buzz"))) (list x))))) for i in range(1, 101): if i % 15 == 0: print ("FizzBuzz") elif i % 3 == 0: print ("Fizz") elif i % 5 == 0: print ("Buzz") else: print (i) for(int i=0; i<=100; i++) { if(i%3==0 && i%5==0) { System.out.println("FizzBuzz"); } else if(i%5==0) { System.out.println("Buzz"); } else if(i%3==0) { System.out.print
  16. Similarity is a gradient, and I feel like it's pretty easy to see that python is closer to the C languages than Lisp. I think even a beginner is going to see "oh I have to add ; to the end of every statement" as far smaller hurdle than "oh that entire S-expression thing I finally got used to is now entirely not applicable"
  17. I guess i'm not convinced that a choice is really there. It's not like if you start learning python you are forbidden from quickly moving to another language. You can introduce students to the basics with python, and then quickly introduce other languages to introduce other deeper concepts. What i'm seeing most CS programs do is 1 semester of python/ruby, and then shifting to Java/C++/C# the next semester. I think this has a lot of value, especially since the very first semester will have lots of students who may not have any experience with programming at all and the 1 semester ramp up lets t
  18. I 100% agree with this (this is also why I hate web development). The only place I think you and I disagree is pythons value as a very first step for general computer science education. I absolutely don't think you should only learn python (if your aim is to be a developer, its a bit different if you aim to be a data scientist), but as an initial stepping stone when there is no prior technical knowledge I think it has a lot of value.
  19. So to you these things: not using ; not using { ... } not having as much line formatting control Is more of an issue to some who is still learning how a for loop works, than an entirely different syntax paradigm that they won't ever see again?
  20. The only major syntax different is using whitespace vs brackets, which is really not a huge step: def foo(param): if (param != None): print(param) else: print("can't print param") void foo(String param) { if (param != null) { System.out.println(param); else { System.out.println("Can't print param"); } } (defun foo (param) (if (not (eq param nil)) (write param) (format t "~% Can't print param")) ) One of these things is not like the others...
  21. except with S-expression, lisp syntax is very a-typical compared to modern high level languages.
  22. True, but I doubt most green eared newbies are diving into things like comprehension lists. I think python can be an incredibly approachable entry point where almost everything but the program logic is abstracted from you. I 100% agree that shifting to a different language as part of learning is a good idea, but I don't think most people who are learning are going to be tainted by pythonisms. Imo python is perfect for being a very easy intro to basic logic (if, while, for loops, etc.) and a stepping stone to other languages when the person learning has 0 technical background.
  23. In an attempt to get back on topic, i'm in the debian/*buntu camp. Mint was my first exposure to linux (before their big security fiasco), and whenever friends/family want to try linux I point them to ubuntu as it just seems very easy for people used to windows environments. You don't need any terminal use out of the box if you dont want to. I'm not saying ubuntu/debian is the best, or the easiest, i'm just saying it's a popular option thats mainstream enough that people who aren't as tech savvy can usually get help through googling without having to learn way more than they wanted to.
  24. just a quick note, just because discord is written in JS doesn't mean the JS library is any more or less valid than the python library. The actual discord bot API is a REST api, so any framework on top of that is a technically just an API wrapper library, including the JS one. It's not more native to discord for bot making than python is, since they are all just fancy delegates to network requests to the REST api. I would say discord.js has more users, and it seems to be the most popular discord bot lib out there at the moment, but discord.py is also perfectly viable.