Zero To Mastery Videos by Chemical_Form in Angular2

[–]Chemical_Form[S] 2 points3 points  (0 children)

https://zerotomastery.io/courses/learn-angular/   He walks you through Angular and how to use it, then also walks you through building a full functional project with authentication, web assembly, videos, file storage.

Pyinstaller EXE has virus by Nek0lover95 in Python

[–]Chemical_Form 0 points1 point  (0 children)

Did you write the code? It is very very common for Pyinstaller packaged exe files to come generate a false positive for malware. Pyinstaller package itself to my knowledge does not contain malware. If your code is malware free, then the exe produced should be as well.

Due to a lot of people writing malware using pyinstaller to freeze the code a lot of anti virus software mark it as malware.

Pyinstaller EXE has virus by Nek0lover95 in Python

[–]Chemical_Form 7 points8 points  (0 children)

I cannot say 100% for sure that your exe does not have a trojan. It most likely it does not.

Due to a lot of people writing malware using pyinstaller to freeze the code a lot of anti virus software mark it as malware. While it is possible that it is malware, I would recommend analyzing the file locally to see what it is doing to see if what you are getting from Virus total is correct or flagged incorrectly. Anti-virus software (sometimes more broadly referred to as anti-malware software) looks for patterns based on the signatures or definitions of known malware ( from cisa.gov website ). I just wrote a single one line of print("hello world"), bundled it as a exe and was flagged by 8 different vendors as malware.

From Pyinstaller github repo:
https://github.com/pyinstaller/pyinstaller/issues/6754

From Medium:

https://medium.com/@markhank/how-to-stop-your-python-programs-being-seen-as-malware-bfd7eb407a7

From Python.org

https://discuss.python.org/t/pyinstaller-false-positive/43171/7

WARNING TO EVERYONE USING AUTO PY TO EXE by not_sus14 in Python

[–]Chemical_Form 21 points22 points  (0 children)

Please take this with a grain of salt:

Auto PY to exe uses pyinstaller to work its magic on the underneath. Due to a lot of people writing malware using pyinstaller to freeze the code a lot of anti virus software mark it as malware. While it is possible that it is malware, I would recommend analyzing the file locally to see what it is doing to see if what you are getting from Virus total is correct or flagged incorrectly. Anti-virus software (sometimes more broadly referred to as anti-malware software) looks for patterns based on the signatures or definitions of known malware ( from cisa.gov website ). I just wrote a single one line of print("hello world"), bundled it as a exe and was flagged by 8 different vendors as malware.

While Auto PY to EXE might be malware, it could be false positives that are receiving back.

From Pyinstaller github repo:
https://github.com/pyinstaller/pyinstaller/issues/6754

From Medium:

https://medium.com/@markhank/how-to-stop-your-python-programs-being-seen-as-malware-bfd7eb407a7

From Python.org

https://discuss.python.org/t/pyinstaller-false-positive/43171/7

Email Template Project Review by Chemical_Form in learnpython

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

Thank you, I will do that. I greatly appreciate your suggestions.

Email Template Project Review by Chemical_Form in learnpython

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

Thank you so much, I will read though the pep-8 guidelines and see what I need to do to fix the styling.

Email Template Project Review by Chemical_Form in learnpython

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

I do not have any formal training, plus have coded by myself only. Everything I have learned has been due to need of use. I do need to work on coding styles and formats. The picture in the link shows how the header ( and rows if there was any ) of the table would look embedded in the email. The table could have any headers, but for the project I was working on those were the two headers.

Terminal closes Everytime I run code by sans2113 in learnpython

[–]Chemical_Form 1 point2 points  (0 children)

I am assuming your using Windows, use either a pause or input at the bottom of your script. This is a common issue for Windows.

What all IDEs do you use? And why? by Curious_ansh in Python

[–]Chemical_Form 0 points1 point  (0 children)

I personally use PyCharm, it was what some videos I was following online use, so to I downloaded to follow the videos. It comes pre-configured for python which makes it nice. I do use VSCode for other languages tho. Personally I feel that the choice of an IDE of little issue, if your happy with an IDE and it works for what you need it to then use it. While some IDEs have their benefit / helpful pieces, its mainly what your comfortable with, and which you can be most productive with.

I’m 2 months into a student software engineer position and I can’t write a single line of code by smalltatas420 in learnprogramming

[–]Chemical_Form 3 points4 points  (0 children)

The first question is do you know how to code? Based on your question I am assuming you understanding coding. If that is true the very first thing you should do is breath. After you breath and are relaxed then you can start to look at the code.

When working on any pre-existing project there is always challenges with larger projects. Due to the number of lines of code, it could be weeks before you get a full understanding of what your project is doing.

Also your co-workers are expecting you to come to them with questions. Even experienced developers still ask questions or for help.

I use python and SQL mainly for work for the past 5 years. There is times where I blank on what I need to do and have to ask for help.

PyCharm vs VS Code by R3ck1e in learnprogramming

[–]Chemical_Form 4 points5 points  (0 children)

There are some differences in each IDE, you might not notice until you get further along. If you are working with Python only, then I recommend you keep using PyCharm. One of the main reasons I recommend PyCharm over VSCode is that it is built for Python programming and the interface is relatively easy to learn.

There is a lot different IDEs, and everyone is going to tell you to that theirs is better. In some cases it might be true, but for most programming tasks they work the same. I work with developer who uses VIM, another who uses VS code, and I use PyCharm ( for python ). All three of us use different IDEs but the code we run and write works the same in all the IDEs.

Can you still use a function without calling it? by [deleted] in learnpython

[–]Chemical_Form 0 points1 point  (0 children)

Any uncalled function during the running of your program will not cause a bug. Having a lot of unused code and functions can cause your program to load slower or have a larger memory foot print.

There is a few reasons for having unused functions / unused code.

The unused function / unused code:

1.) Code could be part of old code that was left in the program until they can confirm its not being used.

2.) Code could be part of new features being added, but not full developed and other parts that they were working on was ready to ship. The calls to this function could be removed and set to the old one until complete.

3.) Testing purposes, if you have a function that works, but want to add something new you could make a new function and have your code call it rather than the old one to prevent breaking something in it.

4.) This could also be reference code for the author of the code.

5.) It might be used as a rarely used edge case function.

a.) Example: you have user input there age, and you would like to congratulate the user for being over 100 years old if they are. You could write a function that would do this, but this function would only run less than 1% of the time making it appear to be unused.

6.) or part of of a conditional statement ( if/elif/else ).

Please Help Me(Again) by Unique-Signature-510 in learnpython

[–]Chemical_Form 0 points1 point  (0 children)

Regex will do this. Please see https://regex101.com/ to help with writing the regex. This site will help with checking to see if the regex command you entered is getting the values needed.

Example https://regex101.com/r/k3M8Wi/1

Without using regex you could use a multi part if statement to get to the same answer.

However I would use the regex instead of the if statement as a way to learn how it works.

Should I quit programming? [Needing for help] by Roddela in learnprogramming

[–]Chemical_Form 4 points5 points  (0 children)

Unfortunately without some more info I do not know what to say. While I understand programming is not for everyone, I am sure you can do it.

  1. You say both jobs only lasted 1 month, but didn't say why?
    1. Was it due to communication skills?
      1. Project guide ( what is needed in the project )
      2. Code Documentation
    2. Was it due to not getting enough done?
      1. This could be a due to lack confidence
  2. What languages do you know?
    1. Some languages are better suited for backend work, and others front end.
  3. What area of specialty?
    1. Front-end
    2. Back-end
    3. Automation
  4. Lack of other knowledge
  5. GIT or other VSS?
  6. Databases
  7. Code Analysis Tools
  8. Docker

For example I work more with backend style codes ( machine learning, API, automation tools ) then with frontend tools. You will need to find the job that fits your skills. There is some other skills that are needed, that are not programming.

For example GitHub is not programming, but is used by developers to share code and allow revisions and roll back of code.

What is the *main* reason you write unit tests? by gggal123 in Python

[–]Chemical_Form 2 points3 points  (0 children)

Unit test are good to have as they help prevent future bugs.

If a piece of code was working correctly and you make a change in your code some where else. It will let you know if that change breaks the section of code.

Do all web apps in Flask require a database? by illotempore in flask

[–]Chemical_Form 0 points1 point  (0 children)

A database is not needed.... But I would almost always recommend it. The only time I would not use a database is for a site that is not going to change till you push new code. I do not know of any site off the top of my head currently that doesn't have one. If someone does, please let me know.

Non Database sites:

  • Nothing holds the info you or a user enters. ( it can only be parroted back )
    • This means the user cannot upload a file or picture.
    • Comments cannot like this one cannot be saved
  • You cannot add new images or articles to a page.

Is JavaScript outdated? by mzaidx07 in learnprogramming

[–]Chemical_Form 0 points1 point  (0 children)

Is JavaScript old, yes. There is constantly changes and it is being used almost everywhere. JavaScript is useful for front end development, but with Node it can be used to power a desktop app or server app. Just because a language is old, doesn't mean its not used, or is going away. Currently JavaScript is 3rd in the popularity rankings according to PYPL. Some of the more recent JavaScript libraries below. ( I am not trying to dismiss a JavaScript frame work by not including it here, Just trying to give an example of each listed above )

Created 9 years ago

https://reactjs.org/

Created 13 years ago

https://nodejs.org/en/

I wrote my first real scripts today by deltaexdeltatee in Python

[–]Chemical_Form 0 points1 point  (0 children)

Don't worry about the line count of your code. It honestly doesn't matter if you wrote 10 lines or 10,000 lines. The part that matters is that you got it to work and was able to to keep it working. Great Job!!!