Entradas

hello world python embedded replit

Aprender/Enseñar programacion

Google Blockly https://developers.google.com/blockly/ HTML                                                 URL al proyecto                               https://github.com/bwinf/blockly-html URL en ingles http://blocklyhtml.zgtm.de/ en aleman htmlbausteine.zgtm.de Microsoft                          https://www.microsoft.com/en-us/makecode Diagramas de flujo https://code2flow.com/app https://bogdan-lyashenko.github.io/js-code-to-svg-flowchart/docs/live-editor/index.html https://flowchart.js.org/ https://gojs.net/latest/index.html

Install MongoDB on Docker Windows 10 [MongoDB Compass] 2020

Imagen
Requeriments: docker decktop in windows 10 Optional: MongoDB Compass The first step is open powershell and pull the image of MongoDB docker pull mongo   And create a container with the image docker run -d -p 27017-27019:27017-27019 --name mongodb mongo when the container is running goto the docker dashboard and run the coomand line (CLI) of the mongodb docker container and run the next command: mongo into the mongo shell run the next commands: use admin; db.createUser({user: "root", pwd: "password", roles:[{role: "readWrite" , db:"myDatabase"}]}); to connect trougth mongodb compass use the next url: mongodb://root:password@localhost:27017/myDatabase Lets play with mongodb and the world of dockerize projects 😋😋

Excel To JSON writed in Python 3

Imagen
import  json  # importing openpyxl module  #pip install openpyxl import  openpyxl     # Give the location of the file  path =  'C: \\ Users \\ <MyUser> \\ Path \\ TO \\ TheFile \\ example.xlsx' # workbook object is created  wb_obj = openpyxl.load_workbook(path)  wb_obj.active =  0 sheet_obj = wb_obj.active  max_col = sheet_obj.max_column  max_row = sheet_obj.max_row  #tableHeader = [""] #print(max_col) #https://www.w3schools.com/python/python_lists.asp tableHeader = [] data = {} # Loop will print all columns name  for  i  in   range ( 1 , max_col +  1 ):      cell_obj = sheet_obj.cell( row  =  1 ,...

search documents in powershell

Imagen
if you want to do the easy way that only runs the next line in the powershell terminal Get-Childitem  -Path C:\, D:\, I:\ -Include  "*.mp3"  -Recurse -ErrorAction SilentlyContinue the advanced way is the next script that runs in powershell ise or a .ps1 file in the terminal #works but isnt organizated #Get-Childitem -Path C:\, D:\, I:\ -Include "*.mp3" -Recurse -ErrorAction SilentlyContinue | Select -Expand Fullname #Get-Childitem -Path C:\, D:\, I:\ -Include "*.mp3" -Recurse -ErrorAction SilentlyContinue| Select-Object -Property Name,Space #to get properties of a file #Get-ItemProperty -Path C:\fso\a.txt | Format-list -Property * -Force #Final #Get-Childitem -Path C:\, D:\, I:\ -Includ...

When duplicate file in VS Code Increment Filename

Imagen
In VS Code Go To File -> Preferences-> Settings Search "explorer.incrementalNaming" and change the value to: "explorer.incrementalNaming": "smart"

[error 0x80070002 when launching `powershell.exe'] windows terminal

Imagen
Is an problem when we try to access to powershell tab in Windows Terminal Preview Goto Windows Menu   type "PATH" in the search box click click on "enviroment variables"  Click on "PATH" in "System Variables" Click on "New" button and insert: %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\ Solved in: https://github.com/microsoft/terminal/issues/4228