All Activity

This stream auto-updates     

  1. Last week
  2. C++ As a 2nd Language

    C++ For Large, Real-time Embedded, Safety-Critical Systems

    Hello, Can anyone point me to a C++ playlist intended for large, real-time embedded, safety-critical systems? I am an Ada software developer new to C++ and have found the YouTube playlist C++ Beginners Tutorials at kjd Electronics very helpful. Large, real-time embedded, safety-critical systems have particular issues. By large, real-time embedded I mean at least half a million lines of code running on multiple tasks at different rates. Different portions of vertical and lateral guidance software are time-sliced to run at 1, 5, 10 and 20 hertz. Flight planning software is time-sliced to run at 1 and 5 hertz. Navigation at 1, 5 and 10 hertz. These different software functions must share uncorrupted data with each other in this multi-task environment. Safety-critical means we can't just cycle power and try again when the system locks up. If the final system fails at 30,000 feet, then 200 people die and a $100 million plane crashes. You have to juggle phone calls from the next of kin, angry investors, insurance agencies, National Transportation Safety Board and their many, many lawyers. Undefined variables, unbounded arrays, divide by zero, and square root of negative numbers, etc. must be identified and eliminated during development. Then defensive code must still be written because we always assume we have missed some coding error. My industry is warming up to C++ code and so I need to learn it. Can anyone point me to a C++ playlist intended for large, real-time embedded, safety-critical systems?
  3. Earlier
  4. Keerthi22

    Learning c++ 124

    Hi Mohammad, I'm learning C++ too. I'm a beginner and I'm undergoing C++ Training in Chennai. How is the course going on? It was a bit difficult for me in the beginning. But now slowly I'm able to get the ideas. And I'm gathering a lot of information from here. Regards to you.
  5. Keerthi22

    Newbie here

    Hello all, I'm Keerthi from Chennai. Hope you are all doing well. I'm a newbie to this forum and beginner to programming. Hoping for helping hands here.
  6. Telmo

    Excel and Acess

    Hello, I did install pycharm and python as explained in the videos. I am tryng now to read/write to/from excel and access files. However i am having difficulty in setting up the environment. Any help would be highly appreciated. Thanks
  7. Hello, I am a medical student learning to program. I've started Haskell, R, and now Python. I am an absolute beginner. When using Haskell, I can open the Terminal app and type in ghci then I once I'm in the Haskell Interpreter (is that what it's called?), I can type :l followed by the path to the script to load a program. I can use the text editor (Atom, in my case) along with Terminal app to check commands that I recently put into the text editor and check them in real-time in the Terminal app. I cant figure out how to do this using python. For example, If I load python from the terminal and get >>> , I cant open a Hello, World program I wrote in my text editor. The only way I can open the program is if my Terminal is set to Fadis-MacBook-Air: ~ cerebrate$: from here i can type "python /Users/cerebrate/desktop/python.py to run my script; it does display Hello World. But I want to be able to constantly add code to my Atom text file and see it immediately in the Terminal app. If anyone understands my problem, I would be very grateful for any help. Thank you!
  8. ccMom74

    import urlib.request

    I am in need of guidance. I am using my instructor's sample code: import json import urllib.request url = "https://api.wunderground.com/api/$$$$$$$$$/forecast10day/q/CA/San_Luis_Obispo.json" req = urllib.request.Request(url) r = urllib.request.urlopen(req).read() data = json.loads(r.decode('utf-8')) # print the raw JSON print("\n") print(data) # print the type of the top level object returned print("\nTop level object is a:",type(data)) # print the top level keys and the type of data they refer to print('\ntop level keys:\n') for next in data: nextData = data[next] print(next,'-->',type(nextData)) # print the keys associated with response print('\nreponse keys -->',data['response'].keys()) When I run the code I get the following error: import urllib.request ImportError: No module named request Why, and how do I fix this?
  9. Hello everyone, I am Tina, and have dabbled in html and css thusfar. I am taking a Comp Sci class that I cannot drop or fail without losing financial aid. I am a widow, and returned back to school at the ripe old age of 39, after losing my husband to cancer. Grief and loss have had a lasting affect on my ability to learn at a rapid pace it seems. I am struggling in my computer science class, and work 2 jobs and go to school so I get about 2 hours a week with the tutors at school. I need help when I am on my own doing my assignments so I thought I would try here. I have an interest in programming, but I think I will need to learn it at a much slower pace than the college level. I am here to ask questions when I get stuck on an assignment, and eventually to go through the lessons posted here.
  10. Dawson

    Some Questions

    and if anyone would be up for chatting about it join this Teamspeak server, ts.concordiagaming.com, and find the channel "Dawson's shopping lobby" in the Developers section, im there pretty often.
  11. Dawson

    Some Questions

    Hello, Im Dawson. Im new to these forums and pretty new to python programming in general, and i have a few questions. in running this chatbot: https://github.com/llSourcell/tensorflow_chatbot with these changes: https://github.com/llSourcell/tensorflow_chatbot/pull/77/files#diff-ef44ea21c76f4cfa4eb2c945f5b0ae30L4 its being trained atm but im hoping to add some virtual assistant capabilities without voice recognition and was wondering how i would go about that. I know how to make a basic virtual assistant functions like the ones seen here: https://www.youtube.com/watch?v=JuygPoTr4X8&t=58s Im more concerned with where i would put the code. any help would be much appreciated, if you want any more specifics just ask.
  12. Cignare

    New to the forum!

    Hello everyone, just wanted to say hi and introduce myself. My name is Cignare.
  13. Cignare

    C++

    Hello everyone, If anyone here has a lot of time in their hands and you have skills in C++,SQL,Linux, VM,Client build let me know. I am kinda stuck on a project and I really need the help. Cignare
  14. shrekismylord

    Problem with hello world

    Try renaming the file pythonhelloworld.py. Hopefully, that works!
  15. Hello there, I think your Python Training has been completed and you have a great knowledge of Python Language. So, can you tell me which programming Language is an implementation of Python programming language designed to run on Java Platform?
  16. Thanks you! I have always been interested in learning Python and this short series of videos should hopefully help me on my feet!!
  17. Ole

    Strategy Map

    Hi there from Germany, I'm in the consulting business for strategy development. Normally I'm using online tools to help my customers and friends online in a collaboration form... there are many tools to develop strategies p.e. based on Michel Porters five forces or Kaplans balanced scorecard. Also I like Osterwalders strategy Canvas..... But I cannot find easy to handle online tools to devlop a strategy map like a canvas creating it online like a interactive drawing tool. After finishing it should be possible to import data from this map into data base; means to start data collecting with this strategy map structure further on the strategy map should be annotated, means the designed process flows should be marked, linked an so on that you ave more information in this strategy map and you can drill down from this to further management tools and KPIs to see where you are in your business.... Python should be the right tool to realise this step by step Ole
  18. Matthew

    My Code Is Not Working

    Oh my goodness, thanks so much for helping me with all of this - i feel super embarrassed that I didn't see this myself haha but thanks so much!
  19. BigNibba

    My Code Is Not Working

    The variable var1 is missing an extra bracket '(' . int(input("Enter num1: ") **)** (ignore ** there to show what u need to add). And do the same for 'var2'
  20. Matthew

    My Code Is Not Working

    Hey guys, I have been watching kjdelectronics on his python tutorial videos and have recently gotten to the part where you build a calculator, but I'm having trouble in the finalization process of it all. My code seems to be flawed - I keep getting a syntax error and have no idea why because I have copied the code exactly as he presents it in the video. I was wondering if anyone could look at it and tell me where my issue (bug) is located. Here is my code and a screenshot of the syntax error. #Returns the sum of num1 and num2 def add(num1, num2): return num1 + num2 #Returs the result of subtracting num1 - num2 def sub(num1, num2): return num1 - num2 #Returns the result of multiplying num1 * num2 def mul(num1, num2): return num1 * num2 #Returns the result of dividing num1 / num2 def div(num, num2): return num1 / num2 def main(): operation = input("What do you want to do? (+, -, *, /): ") if(operation != '+' and operation != '-' and operation != '*' and operation != '/'): #invalid operation print("You must enter a valid operation") else: var1 = int(input("Enter num1: ") var2 = int(input("Enter num2: ") if(operation == '+'): print(add(var1, var2)) elif(operation == '/'): print(div(var1, var2)) elif(operation == '-'): print(sub(var1, var2)) else: print(mul(var1, var2)) main()
  21. Hello, thank you for your effort in this tutorial and i know it is pretty old and you won't propably answert but maybe someone know what to do. I wrote my code but i have little problem i guess its beacuse of the fact that i created 2 functions - shape and shape_random instead of dealing with it in one function. But i want to know why does error occur, what's the reason. So everything works if we choose 1, 2 or 3 but then when loop comes to begining and starts over i get error after choosing 1 or 2 (does't matter if previous choice was 1 or 2) . Sorry if my English hurt your eyes. Here is code: import random import turtle def random_color(): num=random.randint(0,5) if(num == 0): return 'yellow' elif(num==1): return 'red' elif(num==2): return 'blue' elif(num==3): return 'green' elif(num==4): return 'brown' elif(num==5): return 'purple' def shape(shape, coord1, coord2): if(shape==0): #Square turtle.penup() turtle.goto(coord1, coord2) turtle.color(random_color()) turtle.pendown() turtle.circle(20, steps=4) elif(shape==1): #Triangle turtle.penup() turtle.goto(coord1, coord2) turtle.color(random_color()) turtle.pendown() turtle.circle(20, steps=3) elif(shape==2): #Circle turtle.penup() turtle.goto(coord1, coord2) turtle.color(random_color()) turtle.pendown() turtle.circle(20) else: print("Wrong number.") def random_shape(coord1, coord2): random_shape = random.randint(0,2) if (random_shape == 0): # Square turtle.penup() turtle.goto(coord1, coord2) turtle.color(random_color()) turtle.pendown() turtle.circle(20, steps=4) turtle.penup() turtle.forward(100) elif (random_shape == 1): # Triangle turtle.penup() turtle.goto(coord1, coord2) turtle.color(random_color()) turtle.pendown() turtle.circle(20, steps=3) turtle.penup() turtle.forward(100) elif (random_shape == 2): # Circle turtle.penup() turtle.goto(coord1, coord2) turtle.color(random_color()) turtle.pendown() turtle.circle(20) turtle.penup() turtle.forward(100) def main(): while True: x = - 300 y = 100 print("Welcome.") print("-=-=-=-=-=-=-=-=-=-=-=-=-=-") print("\nMain Menu:") print("\n1.Draw a specific figure") print("\n2.Draw random figure") print("\n3.Exit") print("\n-=-=-=-=-=-=-=-=-=-=-=-=-=-") choice=int(input("What's your decision?")) if(choice==1): print("Figures Menu:") print("0.Square") print("1.Triangle") print("2.Circle") specific=int(input("What's your decision?")) number=int(input("How many times do u want to draw that figure? 1-10")) if number <0 or number >11: print("U aren't allowed to print this amount of figures.") continue for i in range(0,number): if (i==3 or i==6 or i==9): x = -300 y -= 50 shape(specific, x, y) x += 100 turtle.done() elif(choice == 2): number = int(input("How many times do u want to draw? 1-10")) if number<0 or number>11: print("U aren't allowed to print this amount of figures.") continue for i in range(0,number): if (i==3 or i==6 or i==9): x = -300 y -= 50 random_shape(x, y) x+=100 turtle.done() elif(choice ==3): print("The program will close.") break main() Traceback (most recent call last): File "C:/Users/USERNAME/PycharmProjects/Project1/Test2.py", line 122, in <module> main() File "C:/Users/USERNAME/PycharmProjects/Project1/Test2.py", line 101, in main shape(specific, x, y) File "C:/Users/USERNAME/PycharmProjects/Project1/Test2.py", line 34, in shape turtle.penup() File "<string>", line 5, in penup turtle.Terminator Process finished with exit code 1
  22. Kevin

    Introducing Arduino

    I recommend starting with blink. Play with that and get the LED on the board to blink at different rates. Then move the LED onto a bread board with a resistor. Once you do that you should have your feet wet.
  23. Light

    School Project using C++

    i just want to ask what school project is good for c++ program?
  24. Ronj1952

    Not compiled code doesn't run

    I found your problem you use the symbols < > what you should be using is ( ) I realize that you probably already have the answer.
  25. Ronj1952

    Problem with hello world

    I am getting back into programing after an extended break and the Python programing language was recommended. I'm starting with the absolute beginners tutorial and have run into the following problem with the command line. C:\users\owner\desktop>Python Helloworld.py 'Python' is not recognized as an internal or external command, operable program or batch file. I am running windows 7, Python 3.7, and I have triple checked the Environmental Variables with Variable Name: Python and Variable Value: C:\Python. Is there anything that is obvious to generate the error?
  1. Load more activity