Jump to content

MladenM

Member
  • Posts

    24
  • Joined

  • Last visited

Awards

This user doesn't have any awards

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. yes thats right. Pip install requests or pip3 install requests. Here is documentation for requests https://2.python-requests.org/en/master/
  2. You should try @vorticalbox solution and also you should understand why that soltuion works and why is better. Also would not hurt to learn about HTTP protocol and get request while you on the task. Could be useful. Cheers.
  3. Did you ment like Cython? I dont think he has knowledge for that.
  4. <style> h2 { display: inline-block; } </style> add this into html, at the end of the page. Basicly everyone gave you same solution with different ways of implementing it. 2 of those solution inserted style in tags itself with attribute "style" i added separate way of inserting style of elements in tags outside. And best way is to include *.css file. best way is to name it style.css You can add it like this <head> <link rel='stylesheet' href='style.css' > </head>
  5. Its possible but why would you do that? sounds complicated and it will probably be pretty slow to do with python. I dont know anything about audio, but good place to start is here: https://pypi.org/search/?q=audio https://pypi.org/search/?q=sound
  6. MladenM

    C++ program

    Convert both numbers to strings: https://stackoverflow.com/questions/5590381/easiest-way-to-convert-int-to-string-in-c than add those 2 strings with string concatination : http://www.cplusplus.com/reference/string/string/operator+/ And convert them back to int http://www.cplusplus.com/reference/string/stoi/
  7. Its more readable code that usually wont run in any programming language. However python is 90 % similar to pseudo code so some code is same as in python. Here is example of pseudo code. And here is "real" code in most languages. So as you can see usually it means that () ; {} and other symbols are removed from the code for easyear reading and understanding. So basicly fake code to explain some concept or coding logic.
  8. Likewise, I am working on cython skills hobbie wise.
  9. Or py2exe if you are on windows or py2app if you are on mac. Both are pretty easy to use. Here is tutorial http://www.py2exe.org/index.cgi/Tutorial
  10. Python is second best language for everything. Anyway its mostly question of speed of development vs speed of compiuting. When it comes to compiuting, c is best but its very very slow to develope in. Pretty hard work. When it comes to speed of development python is fastest to develope in, but pretty slow when it comes to compiuting. You can work on backend web dev with c (and some websites like google now do) or with java but most reasonable option for most websites are django or js, because they dont have billions of request and responses. Google had pretty nice philosophy, python where we can, c where we must. Most of google was in python code and still is.
  11. False. Its most user friendly for beginners thats true but you can import files from anywhere. You can even import folders. Actually most modules are folders that have python files in them. I will show example of json module. Bit of explaning. For someone who plans to advance in python. When you create __init__.py file in folder, you are telling python that folder is module. For example here is json module. http://prntscr.com/o21qkw And if we import json, and do dir(json) we will get content of that folder http://prntscr.com/o21re8 Oher stuff that we got in dir are located in tools.py and __init__.py for example here is dumps code: http://prntscr.com/o21so0 There is a lot of flexibility with designin and organising objects, functions, modules with python. test it out, have fun. Cheers.
  12. Sorry i wasnt looking at forum for a while. Have you solved it?
  13. I dont see this in first post, i think this links deserve to be there. https://www.geeksforgeeks.org/ multiple languages, and cs. https://www.freecodecamp.org/ javascript, redux, react, html, css.
  14. Lines = editor.getText().Split("\r\n") Where is editor object? And its method getText? I dont see editor called anywhere in the code before it shows up first time?
  15. Kinda share that opinion but where this tech will shine is in monitor\tv market. Wallpaper tv is similar tech. Folding tvs, folding monitors. For example, having tv that can "pop" out of some box, roll up - is something that is more desirable than phone that can transform into tablet. People arent gonna waste money on such gimmicks. They are happy with their screensizes.
×