All Activity

This stream auto-updates     

  1. Earlier
  2. $myString = "14 Char String" echo strlen($myString ); //Prints 14 The `strlen` function is what you need
  3. How can we find the length of a string?(PHP) I am a newbie
  4. vijadhav321

    App_Code folder

    Can we add code files of different languages in App_Code folder? https://crbtech.in/online-electrical-design-training-course
  5. Good evening, while i am running on cmd I am seeking the syntax error on main(). my code is as below: def main() : operation = input ("what do you wnt to do (+,-,*,/): ") if(operation != "+" and operation != "-" and operation != "*" and operation != "/"): #invalid operation print("You must enter a valiid operation") else: var1 = int(input("Enter num1: ")) var2 = int(input("Enter num2: ")) if(operation == "+"): print(add(var1, var2)) elif(operation == "-"): print(sub(var1, var2)) elif(operation == "*"): print(mul(var1, var2)) else: (print(div(var1, var2)) main()
  6. 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?
  7. 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.
  8. 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
  9. 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!
  10. 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?
  11. 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.
  12. 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.
  1. Load more activity