HNHacker News
TopNewBestAskShowJobs

G_o_D

24 karma · joined October 4, 2024

submissionscomments
G_o_D··on Global variables are not the problem
Globals are essential to track state/values of variables in intermediate step, for debug, I create unique object on globals and store intermediate variables in it, so i can inspect values when something goes wrong, being only one unique object to maintain it will not override any existing vars thus not affecting existing programs
G_o_D··on Android 16's Linux Terminal will soon let you run graphical apps...we ran Doom
Termux Andronix userLand Anlinux

Already has it, they allow variety of distributions

Chromium, Firefox, Gimp, Inkscape, LibreOffice etc 1000s of them

G_o_D··on The protester's guide to smartphone security
There are some apps that detect fake base stations monitoring your traffic

There are apps that uses accelerometer and gyroscopic sensors to detect if phone is snatched execute certain action based on this

Use app lock, so in case your phone is opened, apps will still be locked --> lock galley + filesExplorer(any) + settings + playstore + Browser(All installed) + Cloud/RemoteDrives(any) + Any syncing apps + Contacts + Email+messaging apps etc

(Hell all apps for utmost paranoia)

Use apps that remotely sync your phone specific folder/gallery every time new file is created (So when taking photos or recordinf something, if pbone got snatched, data is deleted + phone is broken or formattef/wiped against your will, your files have already synced to remote location so no worries

Snoopsnitch https://f-droid.org/en/packages/de.srlabs.snoopsnitch/

Stayput https://f-droid.org/en/packages/org.y20k.stayput/

plucklockex https://f-droid.org/en/packages/xyz.iridiumion.plucklockex/

G_o_D··on The protester's guide to smartphone security
cold boot attack usually on pc and laptop, nowadays there are not much removable batteriez
G_o_D··on AI isn't going to kill the software industry
For coders/devs --> AI is useful only to novice coders ai give them a basuc core/template code to start with that they can modify

But actual coders who work in companies on projects thay have to follow different styles/languages/algorithm for coding practices, ai cant conform to that , if you are working on legacy codes or refactoring you need to maintain the style and format the code already is in, ai cant give you exact, you cant say ai these is my million line, code scattered on thousand files, analyse and add these feature while maintaining sanctity of current code practice

Ai will just introduce new bugs and you will waste more time in finding and solving

AI gives productivity boost only if you are starting from scratch, it can give you core code / boilerplate to rapidly start with adding features

G_o_D··on Liberux: The Linux Phone You Have Been Waiting For
1999 thats 5zeroes figure in our currency,full 1yr salary
G_o_D··on I replaced my son's school timetable app with an e-paper
Parents are now forced to give their child phones from young age and once child gets phone and internet, we all know what content they would be going to search for, no matter what parenteral controls we keep they will find a way , thats when childs degradation of brain and life starts
G_o_D··on Unless my phone can be a PC, I don't want to keep paying for extra performance
A CHEAP PHONE WITH ROOT IS FAR MORE BETTER THAN EXPENSIVE PHONE LIKES ROG,

BUT GOOD SMARTPHONE MANUFACTURERS LIKE SAMSUNG AND ALL DONT ALLOW EASY ROOT, NOT WITHOUT RISK OF BRICK AND LOSS OF DATA

AND PHONES LIKE PIXEL AND ONE PLUS THAT ALLOWS FOR ROOT ON THEIR OLDER MODELS ARENT THAT GREAT IN TERMS OF UI AND PERFORMANCE LIKE SAMSUNG

BUT SAYING PERFORMANCE ISNT NECESSARY IS FALSE

I GOT MY FIRST PHONE AND SINCE 7YRS I DID NOT TOUCHED MY PC OR LAPTOP, WITH PHONE + ADB + TERMUX I HAVE LINUX DISTRO IN POCKET,

WITH PROOT BASED DISTRO YOU CAN ALSO DO MINOR IMAGE EDITING AND VIDEO ENCODING

THOUGH BATTERY OPTIMIZATION OF ANDROID MIGHT CRASH

G_o_D··on Ask HN: How has your experience been with a Snapdragon-based laptop?
Since i installed termux on android, its been 8 years, i never opened my laptop or pc, they are just sitting on desk all dusted Android with 4gb ram and termux, is way faster then my windows laptop, Whether hosting, deploying servers, arsenal of editors and programming ide/environments, and all linux utilities, and in pocket

With proot you can instal full fledged headless distro accesible via ssh or vnc

Host your own media server

Control your smart tvs and Iot devices Combined with android browsers with devtools support + termux + adb it gives full fledged web development environment

Connect harddisk via otg and yu have full desktop kind of rasp Pi but better faster with side by side android os

With DEX SUpport connect monitor + keyboard + mouse

ITS ONE HELL OF PORTABLE WORKSTATION With ROOT its capabilities are beyound imaginations

Hell ITS 1000times better than any laptop,

G_o_D··on A neuroscientist taught rats to drive; suggesting anticipating fun enriches life
Next Stuart Little
G_o_D··on Title drops in movies
Indian Movies had this trend since early days till lates 90s Every movie has 1 dialogue 1 song That says title of movie
G_o_D··on Traceroute Isn't Real
It had its use, back then it was mostly intranets, so it was useful, back then there werent much concepts of spoofing, vpn, tor like layering and routing, encapsulation, etc Yes in modern world on public internet it might not be much useful

But still it gives basic overview a starting point for any forensic investigation or debugging network problemns

G_o_D··on Show HN: I wrote an open-source browser alternative for Computer Use for any LLM
It is called screen scraping, where text rendered on screen/monitors are being scraped either in browser or even in windows os even on android screen , thats how softwares like autohotkey and all do automation windows or android screen can be dumped into heirarchical xml along with x y coordinates of its ui elements along with text they contain which can be uses o click scroll scrape text
G_o_D··on Hi Google, please stop pooping the bed: a desperate plea from the indie web
Always use google in incogniti so they dont give personalised results, thats the least we can do before google search completely dies, Or just prevent google any cookie permission, keep it session only

As far as query trackers on google urls, they are necessary

One good case of necessity of google tracking parameters is --> you search for movie or related, but muktiple movies by same name have been made , you dont remember year, you do remember some actor or story description Searxg and google will in show with media carda foe movies you ckick iy and yoi get exact same film with year yoi wantes

Wait ->I am telling above because when that mefia image of film i inspecred itsurl it was just Googke ?search=filmname&teackers The search ket wasnt modified with year same as i searched first yet it gave me the desires year film

may be because of trackers &ved amd all paramers link tags to search teaukts its loke ctoss maching in databases

G_o_D··on Show HN: I built an app to use a QR code as my doorbell
Also there are rfid based smart stickers with microconteoplers abailable
G_o_D··on Show HN: I built an app to use a QR code as my doorbell
Rather use NFC TAG,
G_o_D··on Show HN: I built an app to use a QR code as my doorbell
Rather use NFC TAG, INSTEAD SCANNING QR REQUIRES SPECIFIC APP, HELL EVEN IN 2024 I DONT KNOW HOW TO SCAN QR WITHOUT 3RD PARTY APP, AND I HAVE GOOGLE LENS AND RELATED APPS DISABLED
G_o_D··on A Chopin waltz unearthed after nearly 200 years
Few slow tempo notes seems like i heard in some old indian drama hatim soundtrack
G_o_D··on Self-Documenting Code
function isPasswordValid(password) { return /^(?=.[a-z])(?=.[A-Z])(?=.[0-9])(?=.\W).{8,}$/.test(password); }

function isPasswordValid(password) { const issues = []; if (password.length < 8) issues.push("Minimum length is 8 characters"); if (!/[a-z]/.test(password)) issues.push("Must contain at least one lowercase letter"); if (!/[A-Z]/.test(password)) issues.push("Must contain at least one uppercase letter"); if (!/[0-9]/.test(password)) issues.push("Must contain at least one digit"); if (!/\W/.test(password)) issues.push("Must contain at least one special character"); return issues.length > 0 ? issues : ["Password is valid"]; }

G_o_D··on Ask HN: In 2024 what's the best way to manage contacts?
"""DAIRY""" with attached Sticky Notes, Bussiness cards Manual Bookkeeping far better For digital JSON Structure better rather than csv or spreadsheets Jsons are plain text, on shell can parse with jq, can parse inside browser devtools manipulate add edit delete
G_o_D··on Using static websites for tiny archives
Been doing so since 15 years, i make portable html with embedded images, mp3 and much so that i dont need any special software for viewing, just carry it in cloud or my phone nowadays and you only need a browser on any device any os. With embedded mp3 in html, (yes size may grew large) l, but i dont need special music player software or app just browser,

Nowadays along with html i try to archive using MHTML format instead of manually embedding

Run a simple http server and start browsing archives

FOR IMAGES I DO IS

---> Store all images in Folder

---> Open localhost server

---> Open folder in browser

---> Using javascript convert links to <img> tag with src=link

--> Once browser fetches and displays all images Save as and i have embedded MHTML archive

Or simple bash script can be used to create html with img tag and links to folder

Or you can manuaaly template a MHTML

BUT i let my browser do the heavy work why go manual,

Also instead of BASE64 EMBED, EMDEDDING DIRECTLY BINARY IMAGES IN MHTML IS QUITE MORE EFFECTIVE AND LESS MEMORY CONSUMING

Eg i have 15 images MHTML (binary encode) -> 4MB MHTML (BASE64 ENCODE) -> 5MB

Another method i use is, Run python -m http.server on any folder

Or linux : tree -H http://localhost:8000 Set recursion depth

Then open folder link from server or tree created HTML IN BROWSER

in cmd execute wget -rkpN -e robots=off http://localhost:8000

It will recreate folder with index.html for you to browse, you dont need server then for viewing

Same as export from google or twitter or youtube

G_o_D··on Google is testing a new version of Chrome for Android with extensions support
The developer of kiwi browser ported single handedly devtools full fledged and extension with almost 70% api full support

And teams of google coders can't. Sorry for language but google hires shit coders and web is filled with fake information you have to be genius programmer for getting hired by google interviews, my foot!,!

Google hires shit coders to make life of people shittier than shit life of google owners and ceo

I dont care about ads or privacy or trackers or collecting information of users or analytics, i can live with that

But fucking shit products of google who cant provide basic features that make browser a browser.

Keep Notes - Only one feature it has card view of snippets of notes. Best of best notes app like joplin obsidian etc dont have this feature on their app. Besides that keep is shit you cant import export notes

Drive : Fucking unusable from web interface forced to use its app

Youtube: fucking hell of inappropriately vulgur content specialky from bastard indian peoples literally indian are uploading vulgur videos of peoples pissing on youtube shorts. and morning inwake up in hood mood open tube to watch something new and youtube showed me in my feed short indian uploaded video of person pissing now i cant get it oit of my mind while eating or drinking that video ckip keeps embedded in my brain.

G_o_D··on Show HN: Instant HTML Preview Bookmarklet
And chatgpt wrote that code right?? Based on how comments wriiten one can say not human written
G_o_D··on Getting my daily news from a dot matrix printer
Back in time: Dont have fancy big screen monitors just echo > /dev/lp0. Like Redirect output to physical stdout
G_o_D··on Experimental web browser optimized for rabbit-holing
Isn't Chrome Journeys similiar feature that tracks which site you opened from which
← PreviousPage 3 of 3