python

  1. Windows 7 How to connect JavaScript to Python in an Chrome Addon?

    I want to connect my .js code with my .py in a Chrome Add-on. I want some text from JS being analyzed by the Python ki I've implemented. Then the return value from Python should get passed back to my JS file. Is this possible to do? It's ok when the Add-on is only runnable locally. I'm looking...
  2. Use ROS python package

    I have successed install ROS on Windows thanks to that link: http://wiki.ros.org/Installation/Windows Now I want to use the installed Python ROS package but my system doesn't seems to detect it. Should I have to add in Windows environement variable the Noetic ROS folder to be able to import...
  3. Windows 7 Issues with understanding the Longest Increasing Subsequence code

    Hello all, I am having issues understanding the code posted on this blog for the Longest Increasing Subsequence problem. I've been trying to implement the code, but I haven't been able to get the correct output. The code I've been trying to implement is as follows: def LIS(A): n = len(A)...
  4. M

    Windows Server In Python, how do you call the super function Object()

    class A: def __init__(self): print("world") class B(A): def __init__(self): print("hello") B() # output: hello The super function Object() is invoked implicitly in every other language I've worked with. In Python, what does one call it? I expected super(self), but it...
  5. M

    Android Python string find() examples

    I'm looking for examples, but I'm not finding any. Are there any examples on the internet? I'd like to know what it returns when it can't find something, as well as how to specify the starting and ending points, which I assume will be 0, -1. >>> x = "Hello World" >>> x.find('World') 6 >>>...
  6. C

    Windows 10 Install Windows 10 prof on Windows 11 laptop help

    Hello, I just bought a Lenovo Idea Pad with Windows 11 pre installed on it. However I cannot tolerate Windows 11 for x,y,z reasons. I saw on internet that in order to go to windows 10 professional, I have to re-image the laptop. I am a bit technology savvy so if anybody could give the desired...
  7. Windows 10 Massive Windows Folder

    Hi there, I have installed Win10 on my laptop & also python, brave browser & putty. The windows folder is 45GB so, I think I might have a previous build or old version saved somewhere - I don't know. Is there a way of checking? Many thanks John
  8. Windows 10 How to properly install Tartube on Windows 10

    The command line is not for everyone. I believe it's for special people, for hardcore nerds. Fortunately for anyone who is interested in a graphical version of youtube-dl, Tartube is an option. Written in Python programming language, there are many ways through which Tartube can be installed...
  9. Windows 10 WindowsApp as a service

    Hi! Short version How to give the local system account access to an app from the MS Store installed by another user ? Long version I'm using Python 3.8 from the MS Store and want to execute it as a Windows service running under the local system account (for sake of completeness I developed a...
  10. G

    Windows Equivalent of Xvfb?

    Hello, I have written some code to automatically take pictures with my Sony RX0M2 camera. I did this using Imaging Edge Desktop application and pyautogui. Imaging Edge is sony's thethered shooting(remote shooting) application. It works good, that is until I remove the screen to the desktop. For...
  11. Hosted App Model

    In Windows 10 version 2004, we are introducing the concept of Hosted Apps to the Windows App Model. Hosted apps are registered as independent apps on Windows, but require a host process in order to run. An example would be a script file which requires its host (eg: Powershell or Python) to be...
  12. S

    Windows 8 Can't install PIP or Virtualenv

    I get the following error messages when trying to install PIP in my CMD Prompt. C:\cicdbuzz>pip-v 'pip-v' is not recognized as an internal or external command, operable program or batch file. and C:\cicdbuzz>get pip-19.2.1-py2.py3-none-any.whl 'get' is not recognized as an internal or external...
  13. Tutorial: Analyzing Malicious PDFs

    Hi all, in this post we will be exploring malicious PDF files and how the bad guys leverage them to infect computer systems. I'm sure a lot of people are familiar with receiving a strange email often times seemingly from a known person containing an attachment. You open it and miraculously...
  14. Top Programming Languages for DevOps

    Why Go, Python, Scala, Ruby and C are excellent programming languages for DevOps teams (and why JavaScript is not). Continue reading...
  15. New Year, New Dev – Windows IoT Core

    To wrap up the “New Year, New Dev” blog series, we’ll go into using Windows 10 IoT Core and show how easy it is to start developing applications to deploy on IoT devices such as the Raspberry Pi 3. If you haven’t had a chance to read the first two posts in this series, you can find them here...
  16. M

    Windows 10 Python: get PID from window handle

    hi I am trying to get PID from the foreground window, but this doesn't work because I am passing the wrong kind of handle to the function. This is under python. How do I fix this? thx! import ctypes import time time.sleep(2) handle = ctypes.windll.user32.GetForegroundWindow() print(handle)...
  17. K

    Windows 10 Issues Running Python Script from Console: Program Exits Unexpectedly

    Hey guys, I installed Python and I had some problems with running it form the console. It runs perfectly fine with IDLE 32 bit, but when I saved it and run from Python, it flashes and exit the program. I attached a video to show what's wrong.
  18. What would you do with 10kB?

    Sixteen years ago, Link Removed conceived of a contest that would test the mettle of any web designer: The 5k. The idea was that entrants would build an entire site in 5kb of code or less. Its aim was to force us to get creative by putting a bounding box on what we could do: Between servers and...
  19. Fun with the Windows Subsystem for Linux

    At Build 2016, Microsoft introduced to the world the Windows Subsystem for Linux (Beta) [WSL], which enables developers to run native Ubuntu user-mode console binaries through the Bash shell in Windows 10. If you’re in the Windows Insider program, you’ve had the opportunity to try out this...
  20. Windows 8 Struggling with Windows Permissions as the Sole Administrator – Need Help!

    i'm the only user with an account on my machine. hence, the administrator. still, i've been being bombarded with permission errors of every kind lately (most recently, while trying to install Python). in researching, i've found i have no control of the Windows folder (when i should have full...