Python – Pandas – u/iz CSV datoteke
DeijtaFreijm = pandas.read_csv ( "datoteka.csv" , encoding="utf-8-sig" , header = 0 , sep=";" , decimal="," ) DeijtaFreijm = pandas.read_csv ( "datoteka.csv" , encoding="utf-8-sig" , sep=";"…
Još jedan usrani softver u kombinaciji s usranim developerima podijelio podatke svima na pladnju
Jer nesposobni developeri nisu u stanju čuvati passworde u “heširanom” obliku.
Wirth’s law addendum 1: “Developers are getting dumber more rapidly than AI is getting smarter”
Wirth’s law: “Software is getting slower more rapidly than hardware is getting faster” —o—
Python – Random string
import string import random LeRandom = ”.join ( random.choice ( string.ascii_letters + string.digits ) for x in range(16) ) print ( ‘Random:’ , LeRandom )…
Kreiraj GIT folder u drugom direktoriju
mkdir E:\DevProjects\LeProject3 cd E:\DevProjects\LeProject3 mkdir E:\GitFolders\LeProject3 git init –separate-git-dir=E:\GitFolders\LeProject3 . (uoči točku na kraju) git xgit other another different folder directory xother xanother xdifferent xfolder…
Python Selenium Firefox Geckodriver webdriver_manager
Situacija Kradeš informacije s interneta korištenjem pythona seleniuma firefoxa webdriver-managera te geckodrivera. Problem Na naredbu driver = webdriver.Firefox ( options=options , service=Service(GeckoDriverManager().install())) browser se sruši…
Outlook.exe i outlook.live.com – Isključi “Read receipt”
Kako isključiti u Outlooku na laptopu: https://support.microsoft.com/en-us/office/change-how-outlook-processes-read-receipts-and-meeting-responses-3e18ef46-57c0-4e49-ad89-b44ae75596ed Kako isključiti na webu, “outlook.live.com”: https://outlook.live.com/mail/options/mail/handling https://support.microsoft.com/en-us/office/read-receipts-in-outlook-com-dc1b74ac-8578-469f-8894-82746e8e5aef
Powershell – All history
Get-Content ((Get-PSReadlineOption).HistorySavePath) posh pwsh powershell history all xposh xpwsh xpowershell xhistory xall
Python – Django – Kreiranje, pokretanje, rušenje projekta – ALLOWED_HOSTS išju
Problem Kreiraš Džango projektum %NazivProjekta% naredbom django-admin startproject %NazivProjekta% te pokreneš istoimeni Đango projekt naredbom python manage.py runserver 0.0.0.0:8000 te se spojiš s klijenta na…
Powershell – Prikaži dugačku poruku
[System.Reflection.Assembly]::LoadWithPartialName(‘System.Windows.Forms’) [System.Windows.Forms.MessageBox]::Show("’….-….1….-….2….-….3….-….4….-….5….-….6….-….7….-….8….-….9….-…100…-….1….-….2….-….3….-….4….-….5….-….6….-….7….-….8….-….9….-…200…-….1….-….2….-….3….-….4….-….5….-….6….-….7….-….8….-….9….-..300","NASLOV")
Python Django You have 18 unapplied migration(s)
Pokreneš python manage.py runserver 0.0.0.0:8000 i pojavi se You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for…
Ovi moroni od developedera će postići da online kupovanje postane “out” jer svaki čas neko njihovo govno ne radi.
—o—
Python – Pandas – Skrivanje “chained indexing” problema pod tepih
Problem See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy … blabla … izvorni kod dođe ovdje … datoteka.py:136: SettingWithCopyWarning: Rješenje.py pandas.options.mode.chained_assignment = None pandas xpandas…
Python; Pandas; Print; Ukloni “Name”, “DType”, index
Skripta Najveci = ceesveSors ["OPEN"].nlargest(n=1) print (Najveci) Problem Pandas ispisuje index (“256”), vrijednost (“248.70”) i opis sloga (“Name: OPEN, dtype: float64”). 256 248.70 Name: OPEN,…
Excel – Zadnje polje u stupcu A
=LOOKUP(2;1/(A:A<>””);A:A) excel find last field in column pronađi posljednje polje stupac
Kako Windows 10 / Windows 11 spustiti
u Safe-mode
Spusti Windowse u unsafe-mode i onda na kućištu potegni ručnu. —o—
NtfsDisableLastAccessUpdate – Disable last access update
Onemogući zapisivanje datuma zadnjeg pristupa datoteci RegEdit >> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisableLastAccessUpdate = DWORD 0x80000001 ili FSUtil Behavior Set DisableLastAccess 1 Provjera stanja FSUtil Behavior Query DisableLastAccess Stanje…