Jump to content

dil_bert

Members
  • Posts

    939
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by dil_bert

  1. Best way to test a hard drive?

    Title pretty much says it all. What do you guys use to test hard drives? 
    I have one that I believe was bad but can't remember; in the last weeks it had several sitting around and failed to label the bad one.

    They all use SMART data to determine the health of the drive. Smartmontools is the standard smart tools package.

    see http://sourceforge.net/projects/smartsuite/


    assuming one runs Ubuntu: https://help.ubuntu.com/community/Smartmontools

    but what to do on MX-Linux!?

  2. Dear community,


    i want to install this ide on MX - Linux. 


    the uPyCraft IDE .. guess i can use this tutorial:

    LINK. https://randomnerdtutorials.com/install-upycraft-ide-linux-ubuntu-instructions/

    Downloading uPyCraft IDE for Linux Ubuntu 16.04


    Click here to download uPyCraft IDE for Linux Ubuntu 16.04 or go to this

    link https://randomnerdtutorials.com/uPyCraftLinux.


    Open your Terminal window, navigate to your Downloads folder and list all the files:

    see the code

    $ cd Downloads
    $ ls -l
      uPyCraft_linux_V1.X
    

    and then....


    You should have a similar file (uPyCraft_linux_V1.X) in your Downloads folder. You need to make that file executable with the following command:

    see the code

    $ chmod +x uPyCraft_linux_V1.X
    

    and then 


    Then, to open/run the uPyCraft IDE software, type the next command:

    see the piece of code: 

    $ ./uPyCraft_linux_V1.X

    love to hear  from you

  3. hello dear Requinx 

     

    many thanks for the reply - and the hint: 

     

    hmm i am pretty new to MX Linux - i have used 

    10 years OpenSuse-Linux 

    1 year Manjaro 

    4 months MX Linux. 

     

    i am not sure if this will run on mx-linux.


    https://code.visualstudio.com/download
    see: 

    sudo dpkg -i pathtodownloadedfile.deb

     

    but i will give it a try 

    many thanks for all your supportive action - i am very glad to be here in this great place.

     

    regards

  4. good day dear experts, 

     

     micropy-cli solution - enabling VSCode to program on esp 32 with MicroPython :: installation issue

    the machine: ein WIN 7 mit I3 und 4 GB 

    note: i will install all on a linux box later the week

     

    running Visual Studio Code to program MicroPython. I'm l using VSCode and the PyMakr extension. The latter enables the communication to a board running like ESP 32 to run MicroPython using the built-in command line REPL.

    Thus, I can run a single file on my board, sync my entire project or directly type and execute commands using the Terminal on VSCode. Nowadays a new module is available enables more great features on VSCode for MicroPython!

     

    i want to install this - the micropy-cli solution: 

    but i run into some issues:  seems to be a permission issue here - see below

     

    	 
    	C:\Users\Kasper>pip install --upgrade micropy-cli
    	Collecting micropy-cli
    	  Downloading https://files.pythonhosted.org/packages/4a/cc/89a1f5b4b55e568250134b2c5603a481e6c19ba06b7219b38d14aa03d7ce/micropy_cli-2.1.0-py2.py3-none-any.whl (428kB)
    	    100% |████████████████████████████████| 430kB 3.0MB/s
    	Collecting jsonschema (from micropy-cli)
    	  Downloading https://files.pythonhosted.org/packages/54/48/f5f11003ceddcd4ad292d4d9b5677588e9169eef41f88e38b2888e7ec6c4/jsonschema-3.0.2-py2.py3-none-any.whl (54kB)
    	    100% |████████████████████████████████| 61kB 6.1MB/s
    	Collecting requests (from micropy-cli)
    	  Using cached https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl
    	Collecting questionary (from micropy-cli)
    	  Downloading https://files.pythonhosted.org/packages/c2/f9/8a6e7fce60566b3bcdc5ad0923916f38a65bca630ce3647251e672308bdf/questionary-1.3.0-py3-none-any.whl
    	Requirement not upgraded as not directly required: colorama; platform_system == "Windows" in c:\users\kasper\appdata\roaming\python\python37\site-packages (from micropy-cli) (0.4.1)
    	Collecting packaging (from micropy-cli)
    	  Downloading https://files.pythonhosted.org/packages/cf/94/9672c2d4b126e74c4496c6b3c58a8b51d6419267be9e70660ba23374c875/packaging-19.2-py2.py3-none-any.whl
    	Collecting click>=7 (from micropy-cli)
    	  Using cached https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl
    	Collecting requirements-parser (from micropy-cli)
    	  Downloading https://files.pythonhosted.org/packages/03/80/eb6ba1dd0429089436e90e556db50884ea21da060b10f2e5668c4cac99da/requirements-parser-0.2.0.tar.gz
    	Collecting jinja2 (from micropy-cli)
    	  Downloading https://files.pythonhosted.org/packages/1d/e7/fd8b501e7a6dfe492a433deb7b9d833d39ca74916fa8bc63dd1a4947a671/Jinja2-2.10.1-py2.py3-none-any.whl (124kB)
    	    100% |████████████████████████████████| 133kB 11.4MB/s
    	Collecting rshell (from micropy-cli)
    	  Downloading https://files.pythonhosted.org/packages/11/e6/1cf4129a4d49eb4ea5007d9f292fa22a8ba9d2b533c179b9df9ae3d51dd2/rshell-0.0.26.tar.gz (44kB)
    	    100% |████████████████████████████████| 51kB 7.3MB/s
    	Collecting tqdm (from micropy-cli)
    	  Downloading https://files.pythonhosted.org/packages/e1/c1/bc1dba38b48f4ae3c4428aea669c5e27bd5a7642a74c8348451e0bd8ff86/tqdm-4.36.1-py2.py3-none-any.whl (52kB)
    	    100% |████████████████████████████████| 61kB 10.2MB/s
    	Collecting attrs>=17.4.0 (from jsonschema->micropy-cli)
    	  Downloading https://files.pythonhosted.org/packages/23/96/d828354fa2dbdf216eaa7b7de0db692f12c234f7ef888cc14980ef40d1d2/attrs-19.1.0-py2.py3-none-any.whl
    	Requirement not upgraded as not directly required: six>=1.11.0 in c:\users\kasper\appdata\roaming\python\python37\site-packages (from jsonschema->micropy-cli) (1.12.0)
    	Collecting pyrsistent>=0.14.0 (from jsonschema->micropy-cli)
    	  Downloading https://files.pythonhosted.org/packages/b9/66/b2638d96a2d128b168d0dba60fdc77b7800a9b4a5340cefcc5fc4eae6295/pyrsistent-0.15.4.tar.gz (107kB)
    	    100% |████████████████████████████████| 112kB 9.3MB/s
    	Requirement not upgraded as not directly required: setuptools in c:\program files\python37\lib\site-packages (from jsonschema->micropy-cli) (39.0.1)
    	Collecting chardet<3.1.0,>=3.0.2 (from requests->micropy-cli)
    	  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
    	Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests->micropy-cli)
    	  Downloading https://files.pythonhosted.org/packages/91/0d/7777358f672a14b7ae0dfcd29f949f409f913e0578190d6bfa68eb55864b/urllib3-1.25.4-py2.py3-none-any.whl (125kB)
    	    100% |████████████████████████████████| 133kB 11.4MB/s
    	Collecting certifi>=2017.4.17 (from requests->micropy-cli)
    	  Using cached https://files.pythonhosted.org/packages/18/b0/8146a4f8dd402f60744fa380bc73ca47303cccf8b9190fd16a827281eac2/certifi-2019.9.11-py2.py3-none-any.whl
    	Collecting idna<2.9,>=2.5 (from requests->micropy-cli)
    	  Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl
    	Collecting prompt-toolkit~=2.0 (from questionary->micropy-cli)
    	  Downloading https://files.pythonhosted.org/packages/f7/a7/9b1dd14ef45345f186ef69d175bdd2491c40ab1dfa4b2b3e4352df719ed7/prompt_toolkit-2.0.9-py3-none-any.whl (337kB)
    	    100% |████████████████████████████████| 337kB 6.0MB/s
    	Collecting pyparsing>=2.0.2 (from packaging->micropy-cli)
    	  Downloading https://files.pythonhosted.org/packages/11/fa/0160cd525c62d7abd076a070ff02b2b94de589f1a9789774f17d7c54058e/pyparsing-2.4.2-py2.py3-none-any.whl (65kB)
    	    100% |████████████████████████████████| 71kB 7.2MB/s
    	Collecting MarkupSafe>=0.23 (from jinja2->micropy-cli)
    	  Downloading https://files.pythonhosted.org/packages/65/c6/2399700d236d1dd681af8aebff1725558cddfd6e43d7a5184a675f4711f5/MarkupSafe-1.1.1-cp37-cp37m-win_amd64.whl
    	Collecting pyserial (from rshell->micropy-cli)
    	  Using cached https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl
    	Collecting pyudev>=0.16 (from rshell->micropy-cli)
    	  Downloading https://files.pythonhosted.org/packages/bc/a2/31a07829acea8e70a28c247f43fa5d981229ae0f9edfeddedf52de00709b/pyudev-0.21.0.tar.gz (89kB)
    	    100% |████████████████████████████████| 92kB 11.5MB/s
    	Collecting pyreadline (from rshell->micropy-cli)
    	  Downloading https://files.pythonhosted.org/packages/bc/7c/d724ef1ec3ab2125f38a1d53285745445ec4a8f19b9bb0761b4064316679/pyreadline-2.1.zip (109kB)
    	    100% |████████████████████████████████| 112kB 10.2MB/s
    	Collecting wcwidth (from prompt-toolkit~=2.0->questionary->micropy-cli)
    	  Downloading https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl
    	Installing collected packages: attrs, pyrsistent, jsonschema, chardet, urllib3, certifi, idna, requests, wcwidth, prompt-toolkit, questionary, pyparsing, packaging, click, requirements-parser, MarkupSafe, jinja2, pyserial, pyudev, pyreadline, rshell, tqdm, micropy-cli
    	Could not install packages due to an EnvironmentError: [WinError 5] Zugriff verweigert: 'c:\\program files\\python37\\Lib\\site-packages\\attr'
    	Consider using the `--user` option or check the permissions.
    	 
    	You are using pip version 10.0.1, however version 19.2.3 is available.
    	You should consider upgrading via the 'python -m pip install --upgrade pip' command.
    	 
    	C:\Users\Kasper>Collecting micropy-cli
    	

     

    seems to be a permission issue. 

     

    besides this - it seems that i should update pip

     

    	Consider using the `--user` option or check the permissions.
    	You are using pip version 10.0.1, however version 19.2.3 is available.
    	

     

     

    look forward to hear from you 

     

  5. hello dear experts, 

    the question is: Py-Charm with MicroPython-Plugin with the ESP32

    I have been using Py-Charm with MicroPython-Plugin with the ESP8266 Works on what I need. I want the ESP32 to work with in Py-Charm with the plugin.

    Again: I was able to set up my esp8266 with Py-Charm: I can see this board but I have had no luck with the ESP32. 

    Being a newbie I can see Py-Charm would be great for the ESp32 development I wish I could get the ESP32 to work with it.

    The question is: Is a new plugin being done??

    The big question is: How can I sat this board up in Py-Charm??

    Thank for the help.

  6. hello dear experts


    I am currently working on a little project -code to use on a ESP 32 - generated with PlatformIO/VScode 

    the question is: how to upload the code to the  ESP32 (connected to the computer using USB) but the question is: there i need to find how to select the right USB port to upload the code.

    i need to specify an 'upload_port' for environment or i might go and use global '--upload-port' option.

    How can I upload my code?

     

    Well again; i think that it is pretty important to find the USB port

    i have to use WindowsKey-X, and then i need to select Device Manager,
    afterward i have plug in the device and observe what's listed under Ports (COM & LPT) in other words; i will have  plug in the device and observe what's listed under Ports the one that just appeared has the port in brackets (COMn).

    regarding the usage of PlatformIO
    in platformio.ini  - the ini-file in our PlatformIo i need to initialise the project folder,i guess that i have to specify the port as a line under the platform section (env: square brackets line): here i have to set & configure the upload_port = comX,Y,Z or whatever we got from our Device Manager.

  7. Dear Community, 

     

    the Visual Studio Code - i want to get it to work with the ESP8266 


    which extensions do i need to add? 


    The whole design of Visual Studio Code is so that it should be easily be configured for any development language using these extensions. Do i need to install the Arduino IDE? 

    if i am able to go roound the Arduino IDE  - i would be happy. 

    Like most of the IDE's I have tried, they rely on the Arduino IDE for all the libraries. - but if i am able to work with VS-Stidio-Code and ESP 8266 directly i would be happy.

     

    how to set it up  and to make sure that i have fully configured Visual Studio Code to work with all the necessary  add-on for ESP8266 

    which extensions i should add and install? 

     

    note: i am on Windows 7

  8. hello dear Experts, 

    the topic: getting started with VSC (Visual Studio Code ) on MX-Linux

     

    good day - i run several Editors and IDEs such as 

    ATOM 

    PyCharm 

    Eric 

    Thonny 

    VSC ... on a Windows System. 

    and besides the last one - every one runs also on Linux. But i do not know how good the support of VSC for Linux is..

    found this little HowTo-Text on HowTo-Forge: Getting started with Visual Studio Code (VSC) on Linu

    Quote

    Visual Studio Code (VSC) is a source code editor released by Microsoft only a few months ago. The software is based on the Atom engine and although it isn't open source, it offers a working version for Linux that you may find useful for a set of reasons. In this tutorial, we will take a look on how to install, setup and get started with VSC.
    https://www.howtoforge.com/tutorial/visual-studio-code-vsc-on-linux/

     

    is it okay - can i install vsc on linux too - namely on MX Linux?

  9. hello dear requinix 

     

    many thanks for the quick reply - i just have installed it and i wanted to add some python stuff. but i got back the above mentioned lines, 

    at the moment i do not sit in front of the windows machine with the vscode ...  this machine is in the office - at the moment i am at home. 

     

    note: i want to work with vscode - in order to do some work with ESP 32

    cf  https://lemariva.com/blog/2018/12/micropython-visual-studio-code-as-ide

    Quoting the official MicroPython's website:

    Quote

     

    MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of the Python standard library and is optimised to run on microcontrollers and in constrained environments.

    Besides C++ and C, I use MicroPython to program microcontrollers, especially the ESP32/ESP8266 types. These two microcontrollers are compatible with MicroPython and it is easy to integrate sensors and actors programming using this language. I wrote a tutorial about installing MicroPython on the ESPs, as well a lot of articles about these microcontrollers and MicroPython. This is an update to the "Getting started with MicroPython": I am changing from Atom to Visual Studio Code (VSCode), and using the PyMakr extension, it is possible to program and debug MicroPython on VSCode.

    Visual Studio Code

    The open-source VSCode is a code editor redefined and optimized for building and debugging applications. It is compatible with Windows, Linux and Mac OS X.

    “The majority of Google developers are using it now,” Chris Capossela, Microsoft’s chief marketing officer, said on the Windows Weekly podcast. :)

     


     

     

    and 

    Quote


    To use VSCode for MicroPython, you need to install the Pymakr extension (see Fig. 1).

    This extension enables VSCode to communicate to a board running MicroPython using the build-in command line REPL. Thus, you can run a single file on my board, sync your entire project or directly type and execute commands using the Terminal on VSCode. 

    However, you'll miss some of the main features of VSCode, namely intellisense, autocompletion, and linting capabilities. You can combine this extension with the micropy-cli Python module to get those features. You can find more information in this tutorial.

     

     

    again - at the moment i do not sit in front of the mentioned computer - i do some tests tomorrow. 

    and come back later to rrepot. #

     

    greetings

  10. hello dear requinix 

     

    many thanks for the quick reply - i just have installed it and i wanted to add some python stuff. but i got back the above mentioned lines, 

    i have a closer look at all the options & functions 

    a. that work and run propperly 

    b. that probably do not work correct and 

     

    afterwards i come back here and report all the findings. 

     

    many thanks for the help. 

    regards

  11. update: hello dear all: 

    sure thing the win 7 is dead - it is no new os any more. 

    anyway- i a m trying to get the configuration of VS-Code done - but i guess that this will not work 
    btw - at home i work on MX - linux

    i am tryin to install VS-Code on that linux installation later the day 

    back to the actual issues that are described above.- what goes on here  can i do some fixes - can i do some thing to get it running!? 

     

    love to hear from you


    regards 

  12. dear experts

     

     

    i run into issues while configuring visual-studio code on a win 7 machine. 


     

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.
    
    C:\Users\Kasper>"C:/Program Files/Python37/python.exe" -m pip install -U pylint --user
    Collecting pylint
      Downloading https://files.pythonhosted.org/packages/60/c2/b3f73f4ac008bef6e75bca4992f3963b3f85942e0277237721ef1c151f0d/pylint-2.3.1-py3-none-any.whl (765kB)
        100% |████████████████████████████████| 768kB 4.7MB/s
    Collecting astroid<3,>=2.2.0 (from pylint)
      Downloading https://files.pythonhosted.org/packages/d5/ad/7221a62a2dbce5c3b8c57fd18e1052c7331adc19b3f27f1561aa6e620db2/astroid-2.2.5-py3-none-any.whl (193kB)
        100% |████████████████████████████████| 194kB 17.1MB/s
    Collecting colorama; sys_platform == "win32" (from pylint)
      Downloading https://files.pythonhosted.org/packages/4f/a6/728666f39bfff1719fc94c481890b2106837da9318031f71a8424b662e12/colorama-0.4.1-py2.py3-none-any.whl
    Collecting isort<5,>=4.2.5 (from pylint)
      Downloading https://files.pythonhosted.org/packages/e5/b0/c121fd1fa3419ea9bfd55c7f9c4fedfec5143208d8c7ad3ce3db6c623c21/isort-4.3.21-py2.py3-none-any.whl (42kB)
        100% |████████████████████████████████| 51kB 10.2MB/s
    Collecting mccabe<0.7,>=0.6 (from pylint)
      Downloading https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
    Collecting typed-ast>=1.3.0; implementation_name == "cpython" (from astroid<3,>=2.2.0->pylint)
      Downloading https://files.pythonhosted.org/packages/47/a1/7a24868c15d84ed7446106d6c3d73807f58232a695452c0a29679e5a1523/typed_ast-1.4.0-cp37-cp37m-win_amd64.whl (155kB)
        100% |████████████████████████████████| 163kB 10.2MB/s
    Collecting wrapt (from astroid<3,>=2.2.0->pylint)
      Downloading https://files.pythonhosted.org/packages/23/84/323c2415280bc4fc880ac5050dddfb3c8062c2552b34c2e512eb4aa68f79/wrapt-1.11.2.tar.gz
    Collecting lazy-object-proxy (from astroid<3,>=2.2.0->pylint)
      Downloading https://files.pythonhosted.org/packages/01/b0/467ad69cd8adfe2be737cf69b69c5809c7098a7aa337adda2542b7259bc0/lazy_object_proxy-1.4.2-cp37-cp37m-win_amd64.whl
    Collecting six (from astroid<3,>=2.2.0->pylint)
      Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
    Installing collected packages: typed-ast, wrapt, lazy-object-proxy, six, astroid, colorama, isort, mccabe, pylint
      Running setup.py install for wrapt ... done
      The script isort.exe is installed in 'C:\Users\Kasper\AppData\Roaming\Python\Python37\Scripts' which is not on PATH.
      Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
      The scripts epylint.exe, pylint.exe, pyreverse.exe and symilar.exe are installed in 'C:\Users\Kasper\AppData\Roaming\Python\Python37\Scripts' which is not on PATH.
      Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
    Successfully installed astroid-2.2.5 colorama-0.4.1 isort-4.3.21 lazy-object-proxy-1.4.2 mccabe-0.6.1 pylint-2.3.1 six-1.12.0 typed-ast-1.4.0 wrapt-1.11.2
    You are using pip version 10.0.1, however version 19.2.3 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command.
    
    C:\Users\Kasper>"C:/Program Files/Python37/python.exe" -m pip install -U pylint --user
    Requirement already up-to-date: pylint in c:\users\kasper\appdata\roaming\python\python37\site-packages (2.3.1)
    Requirement not upgraded as not directly required: isort<5,>=4.2.5 in c:\users\kasper\appdata\roaming\python\python37\site-packages (from pylint) (4.3.21)
    Requirement not upgraded as not directly required: colorama; sys_platform == "win32" in c:\users\kasper\appdata\roaming\python\python37\site-packages (from pylint) (0.4.1)
    Requirement not upgraded as not directly required: astroid<3,>=2.2.0 in c:\users\kasper\appdata\roaming\python\python37\site-packages (from pylint) (2.2.5)
    Requirement not upgraded as not directly required: mccabe<0.7,>=0.6 in c:\users\kasper\appdata\roaming\python\python37\site-packages (from pylint) (0.6.1)
    Requirement not upgraded as not directly required: lazy-object-proxy in c:\users\kasper\appdata\roaming\python\python37\site-packages (from astroid<3,>=2.2.0->pylint) (1.4.2)
    Requirement not upgraded as not directly required: wrapt in c:\users\kasper\appdata\roaming\python\python37\site-packages (from astroid<3,>=2.2.0->pylint) (1.11.2)
    Requirement not upgraded as not directly required: typed-ast>=1.3.0; implementation_name == "cpython" in c:\users\kasper\appdata\roaming\python\python37\site-packages (from astroid<3,>=2.2.0->pylint) (1.4.0)
    Requirement not upgraded as not directly required: six in c:\users\kasper\appdata\roaming\python\python37\site-packages (from astroid<3,>=2.2.0->pylint) (1.12.0)
    You are using pip version 10.0.1, however version 19.2.3 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command.
    
    Collecting mccabe<0.7,>=0.6 (from pylint)
      Downloading https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
    Collecting typed-ast>=1.3.0; implementation_name == "cpython" (from astroid<3,>=2.2.0->pylint)
      Downloading https://files.pythonhosted.org/packages/47/a1/7a24868c15d84ed7446106d6c3d73807f58232a695452c0a29679e5a1523/typed_ast-1.4.0-cp37-cp37m-win_amd64.whl (155kB)
        100% |████████████████████████████████| 163kB 10.2MB/s
    Collecting wrapt (from astroid<3,>=2.2.0->pylint)
      Downloading https://files.pythonhosted.org/packages/23/84/323c2415280bc4fc880ac5050dddfb3c8062c2552b34c2e512eb4aa68f79/wrapt-1.11.2.tar.gz
    Collecting lazy-object-proxy (from astroid<3,>=2.2.0->pylint)
      Downloading https://files.pythonhosted.org/packages/01/b0/467ad69cd8adfe2be737cf69b69c5809c7098a7aa337adda2542b7259bc0/lazy_object_proxy-1.4.2-cp37-cp37m-win_amd64.whl
    Collecting six (from astroid<3,>=2.2.0->pylint)
      Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
    Installing collected packages: typed-ast, wrapt, lazy-object-proxy, six, astroid, colorama, isort, mccabe, pylint
      Running setup.py install for wrapt ... done
      The script isort.exe is installed in 'C:\Users\Kasper\AppData\Roaming\Python\Python37\Scripts' which is not on PATH.
      Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
      The scripts epylint.exe, pylint.exe, pyreverse.exe and symilar.exe are installed in 'C:\Users\Kasper\AppData\Roaming\Python\Python37\Scripts' which is not on PATH.
      Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
    Successfully installed astroid-2.2.5 colorama-0.4.1 isort-4.3.21 lazy-object-proxy-1.4.2 mccabe-0.6.1 pylint-2.3.1 six-1.12.0 typed-ast-1.4.0 wrapt-1.11.2
    You are using pip version 10.0.1, however version 19.2.3 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command.
    
    C:\Users\Kasper>"C:/Program Files/Python37/python.exe" -m pip install -U pylint --user

    any ideas here 

  13. hello dear all  good day dear experts,

    i am workin on getting started with MicroPython on ESP 32. 

    i have read several postings here and in the net and tried to made up my mind - but some questions still remain. 

    from what i allready have learned it is like so:  to get started with micropython development requires several steps 

     

    the steps that i guess are needed: 


    - first building the appropriate binaries for the platform - in my case for the ESP 32.
    - second step: Creating A Virtual Environment (- were able to skip that step)
    - third step: Setup Project Directory
    - finally: installing systems like Debian, Ubuntu, Mint, and variants

     

    so at the very beginning:  It is advisable - in the very preliminary steps - to create a virtual environment on the development system -- for me it is a ESP32 -  to separate the micropython build system from  the local python installation. since this is not absolutly mandatory we can skip the virtual environment setup if we are happy to create our build system directly on the host machine.

     

    The next step will to  get the Setup of a Project Directory

     

    At this point we will be in our virtual environment. this will set the output of our bash shell.  It should show in brackets the name of the active virtual environment like this:


     

    (microPython) ~/virtalenv/microPython
    

     

    Now  at this point ot the setup we should be able to create a project directory to hold our micropython files

     

    mkdir project cd project
    

    Note To deactivate the virtual environment we can type deactivate.  And to work on the virtual environment after it has been deactivated you

     

    type: /> source virtalenv/microPython/bin/activate. 
    

     

    This assumes that we have created the virtual environment with the name 'micropython'.
    Now - were at the point to do some installation of systems like Debian, Ubuntu, Mint, and variants

    The following packages that will need to be installed before we can compile and run MicroPython on the system:

     

    Quote

     

    - build-essential
    - libreadline-dev
    - libffi-dev
    - git
    - pkg-config (required at least in ubuntu 14.04)
    - gcc-arm-none-eabi
    - libnewlib-arm-none-eabi
    - and others more 

     

    question - is it true that i can skip the virtual environment setup? 

     

    am i able to create the build system directly on the host machine too?

     

     

  14. dear PHP-Freaks

     

    we are much obsessed with collaboration, and the idea of successful teamwork - that ends up in productivity. 


    We are aming effective teamwork collaboration in a little team - up to 25 members. i think that when teams have a good base of collaboration, they probably should be 
    less susceptible to waste their energy and ressources. Well a strong base can be built trough the collaborative work of a little team. 

    To be more precise: with the help of a good online collaboration environment that will not only help  us in productivity of a teamproject but also result in successful projects.

    -  Trello
    -  BitBucket
    -  Github 


    we re looking for online collaboration tools to take our productivity to somewhat the next level; We re looking for a free project management and productivity tool, as well as a powerful team collaboration software, 


    with features like 
    - subtasks, 
    - reminders, 
    - task priorities, 
    - time tracking, 

    nice to have: 

    - Gantt charts, 
    - goals, 
    - dependencies and custom statuses, 

     

     

    which way to go - what would you suggest. Love to hear your ideas and experience

  15. good day dear php-community,

     

    today-topic: Power off - Sleep or Hybernate when closing the lid - which options do we have?

     

    well i allways thought that we are able to choose what happens when we close the lid of our laptops once our work is over. i allways thought that we have many options:

    Closing the lid can result in the linux system is shutting down, sleeping or hibernating.  I allways thought that we control the behavior and decide what we want tod do, once we close the lid.guess that we can sum it up - that there are particularly 3 methods for powering down in linux.

    - making the PC going to sleep
    - making the system hibernating the PC
    - turn it off completely - in other words - shooting down the system completely


    The Sleep options consumes only a very little power :: With this - the pc can wake up after sleep. 

    security-levels: Chances of losing your work due to battery draining are minimized to zero in the Sleep mode as the OS automatically saves all your 
    work before turning off your PC when the battery is too low. This so called sleep mode is often brought into use when a person is away from his desk just for a short while. 

    more options: We have even more options - eg. the so called the Hibernate option, 

    to compare it with other methods and options: in comparison to the Sleep mode uses even less power (it is a true power - saver) and lands us at the same position where we last left off. That is brilliant - isnt it!? The so called Hibernate-option however, should be used when we are aware that we won’t use our laptop for an extended period. There are differences between the different modes:  we have Hibernate or Shutdown and here to see the difference between Sleep & Hibernate.

    question: is it possible to push the laptop to any of the three power states described above, by simply closing the lid of the machine? 


     

  16. hello dear Barand 

    many thanks - as allways your answers are excellent - and just overwhelming!  I am happy and glad to see such a convincing answer. 

     

     

     

    i also had a look at the ASCII generators for ERD diagrams (perhaps that fit well within markup syntax)?

    For example, that could generate something like the diagram below: to create such diagrams i guess such a tool might be helpfull: http://asciiflow.com/

     

     

    
    [CODE]
    
     ---------
     |  Hai  |
     ---------
         |
         |
        /|\
     ---------         ------------          ---------
     |  Foo  |-------< |  FooBar  | >------- |  Bar  |
     ---------         ------------          ---------
        \|/
         |
         |
     ---------
     |  Bai  |
     ---------
     
    [/CODE]

     

  17. hello dear all , 

     

    topic: questions with some eplanations - for db-related areas and topics - export er-diagram 

     

     i want to post questions with some eplanations - for db-related areas and topics.  Well i know that there are some good tools out there which help here alot. 

    The question is : how to export the data so that i can implement the data into a forum like this !?! 

     

    Question can i export the data form https://www.draw.io/  to this forum!? 

     

    Love to hear from you 

    regards 

     

     

     

  18. hello dear all , 

    want to create a bird-house - with live-cam. 


    for this Applikation _ that includes a Camera and a ESP 32. 

    i would like to choose this ESP32 - Set. 

    KeeYees WiFi + Bluetooth Modul Kit, 4M PSRAM ESP32-CAM Dual-Core 32 Bit CPU developerboard+ OV2640 2MP cameramodul + 8 dBi WiFi Antenna + IPEX RP-SMA Buchse Pigtail WiFi Antenne Kabel

    https://www.amazon.de/KeeYees-Bluetooth-ESP32-CAM-Entwicklungsboard-Kameramodul/dp/B07QS7VFMJ


    【ESP32-CAM】 ESP-32CAM kann in verschiedenen IoT-Anwendungen verwendet werden. Es eignet sich für intelligente Haushaltsgeräte, industrielle drahtlose Steuerung, drahtlose Überwachung, drahtlose QR-Identifikation, drahtlose Ortungssystemsignale usw. Es ist eine ideale Lösung für IoT-Anwendungen.


    【Hohe Leistung】 Extrem kleines 802.11b / g / n Wi-Fi + BT / BLE-SoC-Modul; Dual-Core-Prozessor mit 5-V-Prozessor und niedrigem Stromverbrauch (32 Bit); Frequenz bis 240 MHz, Berechnung von bis zu 600 DMIPS; Eingebauter 520-KB-SRAM, externer 4M-PSRAM.
    【Kompaktes Design】 ESP-32CAM ist in DIP verpackt und kann direkt in die Rückwandplatine gesteckt werden. Es bietet eine äußerst zuverlässige Verbindungsmethode und ist für die Verwendung mit verschiedenen IoT-Hardwareterminals geeignet.
    【Mit externer Antenne】 Das Paket enthält die 8dBi WLAN Antenne und das 20cm Pigtail Kabel von IPEX zu RP-SMA im Lieferumfang enthalten. Schließen Sie die Antenne an den Router an und verbessern Sie das Sendesignal des Routers, um das ESP32-Verbindungssignal zu verbessern. Ohne Zweifel kann es Ihnen helfen, das bessere Signal zu setzen und die Arbeitsleistung zu verbessern.
    【Technischer Support】 Dieses Modul unterstützt Schnittstellen wie UART / SPI / I2C / PWM / ADC / DAC; Unterstützt die Kameras OV2640 und OV7670. Wenn Sie Probleme bei der Verwendung haben, kontaktieren Sie uns bitte. Wir senden Ihnen innerhalb von 24 Stunden ein Produkt-Tutorial oder technischen Support.


    do you think that i can do this with this set!?

  19. hello dear Barand,

     

    as usual  - your answers are very very helpful and supportive. Many thanks for all!! 

     

    convinced:   If the sites are all on the same server then we just cam connect to the same database from each site, that's all there is to it.  If the sites are on different servers then we would need to build an API, but  - if they're (luckily) on the same server then just connect to whatever database we want to connect to.  There are no rules. We can connect to a database - and yes - we also can use a db object to connect to more than only one db. PHP doesn't care how many database connections we have. 

     

    Many thanks Barand for your help. i am convinced. 

     

    have a great day. 

     

     

  20. hello dear php-experts, good day, 

    i want to connect two pages  on which a plugin like

    1. participants_database or 
    2. wp-job-manager runs 

    i want to do that via wpdb to another database :: how to combine two wp-pages - here i want to discuss a approach that works  - see https://wordpress.stackexchange.com/questions/1604/using-wpdb-to-connect-to-a-separate-database

    If they are all on the same server under the same hosting account,  that is helpful. In a case like that, you could write your custom code to access the other site’s database directly. This is discussed here, and it’s quite feasible:  link: Using wpdb to connect to a separate database

    [/QUOTE]....

    question: I want to connect wpdb to another database. How do I create the instance and pass it the database name/username/password?

    Answer1: 134 votes  Yes it's possible. The wpdb object can be used to access any database and query any table. Absolutely no need to be Wordpress related, which is very interesting. The benefit is the ability to use all the wpdb classes and functions like get_results, etc so that there's no need to re-invent the wheel.  Here's how:

     

    
    
    

    $mydb = new wpdb('username','password','database','localhost');

    $rows = $mydb->get_results("select Name from my_table");

    echo "<ul>";

    foreach ($rows as $obj) :

       echo "<li>".$obj->Name."</li>";

    endforeach;

    echo "</ul>";[/CODE]

    comment 1: you can also save time by using global $wpdb. But before firing ;[/CODE]$wpdb->get_results method,;[/CODE]

    you must include wp-load.php as: [CODE]require_once('/your/wordpress/wp-load.php');[/CODE]

    comment 2: Set WPDB prefix to make WP_Query and get_post to generate correct sql query by calling $mydb->set_prefix('wp_');

     

    answer2: [ 30 votes ] Connecting to a second database is easy in WordPress, you simply create a new instance of the WPDB class and use it the same way you would use the standard $wpdb instance we all know and love.

    Assuming the second database has the same login information as the main WP one you can even use the predefined constants

    from wp-config.php to avoid hardcoding the login information.

    [CODE]/**

     * Instantiate the wpdb class to connect to your second database, $database_name

     */

    $second_db = new wpdb(DB_USER, DB_PASSWORD, $database_name, DB_HOST);

    /**

     * Use the new database object just like you would use $wpdb

     */

    $results = $second_db->get_results($your_query);[/CODE]

     

    comment 1: This is somewhat redundant to Wadih's answer but I think my code example is a bit clearer and its also important to remember the db login constant's as they are almost always the right ones to use and otherwise you risk issues when moving from dev->stage->live environments where the login details might change. – jerclarke Sep 11 '10 at 20:55

    comment 2: Set WPDB prefix to make WP_Query and get_post to generate correct sql query by calling [CODE]$second_db->set_prefix('wp_'); [/CODE]

     

    answer3: [ 21 votes ] no one has said this so I thought I'd add an even easier way..as long as your additional database has the same user/pass details to access it as your wordpress database you can use the database name before the table name like this

    [CODE]$query = $wpdb->prepare('SELECT * FROM dbname.dbtable WHERE 1');

    $result = $wpdb->get_results($query);[/CODE]

    comment 1: From my experience, this only works to get data, i.e. using SELECT. You can't insert data.

    comment 2: it will not work externally,

     

    answer4: [ 7 votes ] I can't comment yet, but I wanted to expand on Wadih M.'s answer (which is great). WP's database class is a customized version of Justin Vincent's ezSQL. If you like the interface and you're wanting to do a site that's  not WordPress-based, you might want to check it out: http://justinvincent.com/ezsql

    answer5: [ 6 votes ] While these will work, you'll lose the ability to use the "other" custom features such as get_post_custom and wordpress queries. The simple solution is [CODE] $wpdb->select('database_name');;[/CODE]

    which changes the database system-wide (a mysql select_db). The database.table method works if you just want to make a simple query,  but if you want to access another wordpress blog you can use select. You'll just need to change it back when you're done or your blog may do strange things.

    comment: I'm using this solution and it works great, except for one thing. For some unknown reason wp_get_post_terms() doesn't seem to use the newly selected DB?? Every other function I've tried (like [CODE]get_post_meta(), get_posts() etc);[/CODE] seems to work just fine but ;[/CODE]wp_get_post_terms() ;[/CODE]seems to work towards the ;[CODE]DB_NAME database;[/CODE]. Any ideas?

    I was struggling with ;[CODE]using $wpdb ;[/CODE]to connect to a second blog database from a parent site that needs to update two blogs. I used ;[CODE]$wpdb->select($dbname, $dbh);[/CODE] to select the second database, but I was still getting results from the first database.

    comment: I resolved the problem by calling wp_cache_flush() to clear the WordPress cache before calling WP functions on the second database.

     

    Conclusio: well i like this approach very very much.  The good thing - i am with the sites in question - i am on the same server - so i guess that this will work for me.

     

    any idea any experience !? 

    love to hear from you

     

     

  21. hello dear all 

    besides some projects with RC-Cars where i have a full set of hardware i have some iot-projects in mind where i only need the esp 8266 (/ and in several the esp32 ) and a set of little sensors. 


    some questions.  Is it suffice if i only take two of the following akku-blocks to power all that.

    NiMH-Akkupack H-AA1200Bx2, 2x AA
    2,4 V/1200 mAh, bestehend aus 2 NiMH-Mignonzellen. Einsetzbar für Modellbau, Beleuchtungszwecke, Telefone, Funkgeräte usw. Maße (BxHxT): 28x50x14 mm. Bitte Beachten: Das Fertigungsdatum dieser Akkus ist KW17/2007. Eine Stichprobe von 10 Stück ergab 4 gute Akkupacks (Kapazität nach Auffrischung > 70% der Nennkapazität). see https://www.pollin.de/p/nimh-akkupack-h-aa1200bx2-2x-aa-271629


    love to hear from you 

    greetings

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.