vrek

joined 2 years ago
[–] vrek@programming.dev 1 points 5 minutes ago

I get your point but in my experience android works well with other android. Apple works well with other apple. Mixing them and everything seems barely useable. Like using a android phone to control an Apple TV.

[–] vrek@programming.dev 0 points 10 hours ago* (last edited 10 hours ago)

Depends...how well written the form is. Often stuff like this is pushed to libraries who have covered all the gotchas but you have to be careful not to get into dependency hell. Understand where to use them and not. For example don't use left_pad but also don't make your own encryption.

How easy is it to allow new lines,very easy. The important part is only accepting new lines e.g. /r/n a well made form can include extra functions but anything not defined should be denied.

Also consider you likely should not accept a username with a semi-colon in it...

[–] vrek@programming.dev 3 points 10 hours ago

All good, wasn't an issue just commenting on my disgust of that

[–] vrek@programming.dev 3 points 10 hours ago

I believe the left check list is stuff no related to the task but stuff to "prepare" for starting the task. For example writing a book, before writing I should change the os on my computer and should read this paper on lexography and watch this video series on character growth arcs and I should buy a cat as good authors tend to have cats, well now I need to buy a cat food bowl and a water dish, I need to learn to use this software to track my writing, oh that can interpret my latex script, what's latex...several years later...oh the book yeah I'll start it right after I clean the cats litter box...

[–] vrek@programming.dev 9 points 20 hours ago (2 children)

Umm yeah....things I didn't need to see for 500 Alex, material right there

[–] vrek@programming.dev 8 points 21 hours ago

I'm also male and can't shut off my brain. I don't think it's a gender thing directly but may be skewed to one side.

That said I like the idea that couples must end up at 100% somehow. Sometimes you had a hard day and can only contribute 10% and your partner has to make up the other 90. Sometimes they have a rough day and max out at 20 % and you gotta cover the other 80%. Issues arise when it's 20+20 so you only get 40% coverage. Happiness can occur when your combined equals over 100 and you can use excess energy to see them smile .

[–] vrek@programming.dev 8 points 21 hours ago (4 children)

I'm pretty sure you need to be over 18 to qualify for ufc...

[–] vrek@programming.dev 1 points 2 days ago (5 children)

Just don't take it extreme like my ex roommate. He would buy bread by picking every brand and type in the bread aisle, count how many slices were in the loaf, cheapest bread in price per slice he would buy.

[–] vrek@programming.dev 9 points 2 days ago

Fun fact most puzzle makers use the same jigsaw patterns to make the actual pieces. You can mix and match puzzles to make some beautiful art. https://mymodernmet.com/montage-puzzle-art-tim-klein/

[–] vrek@programming.dev 12 points 2 days ago

Keep in mind, the lowercase and uppercase letters are in continuous blocks on the ASCII table so you can can use that to verify if a char is a letter without doing an incredible long chain of if else statements.

[–] vrek@programming.dev 28 points 2 days ago (4 children)

Couple big things are 1. Only accept reasonable characters, on a white list instead of rejecting bad characters based on a black list. This will mean you are less likely to forget to block /0 for example. 2. Understand how strings work and ensure both reading and writing to that string doesn't extend beyond the end of memory allocated for the string. For example do you understand what the /0 would do to a string your program accepts?

[–] vrek@programming.dev 34 points 2 days ago (6 children)

How do you sanitize your inputs or how do you exploit inputs which are not sanitized.

 

Those companies were all found to be pyramid schemes!

 

Well first someone would need to put a bank inside a whale...

 

I'm not looking for Chromecast but I have a Linux system hooked up to a TV and ether net. I want a way to pick a YouTube or Amazon prime or Netflix video on my phone and display it on the TV via the Linux pc. Is that possible? If so what software can do it?

 

I don't expect much but I found an old pi I bought probably 2016(may of been 2017). It was supposed to be a pi-hole but was never able to get the dns forwarding to work on my modem. It still works but wanted to somehow convert it to a regular distro(it's based on a micro-SD and I don't have any more microsd readers). I wanted to set it up as a basic system I could ssh into a terminal. Not expecting anything fancy or even graphic based. A lot of stuff I want to learn/practice "work" on windows but are native to Linux, like vim/neovim nmap gcc etc. Is this feasible? Am I under estimating what's possible with it?

 

I don't expect much but I found an old pi I bought probably 2016(may of been 2017). It was supposed to be a pi-hole but was never able to get the dns forwarding to work on my modem. It still works but wanted to somehow convert it to a regular distro(it's based on a micro-SD and I don't have any more microsd readers). I wanted to set it up as a basic system I could ssh into a terminal. Not expecting anything fancy or even graphic based. A lot of stuff I want to learn/practice "work" on windows but are native to Linux, like vim/neovim nmap gcc etc. Is this feasible? Am I under estimating what's possible with it?

 

For anyone interested agdq started today. Raising money for prevent cancer foundation and showing speed runs of video games. Available streaming on twitch and YouTube. Gamesdonequick.com

 

For anyone interested agdq started today. Raising money for prevent cancer foundation and showing speed runs of video games. Available streaming on twitch and YouTube. Gamesdonequick.com

 

I thought of this after a recent bug I found. I use Vivaldi browser and recently it updated. After the update my mouse cursor was not visible when within the browser window. Other programs worked fine. I tried visual studio and steam and epic game store all had my mouse, Vivaldi didn't.

I closed all instances of Vivaldi via task nanager(was unable to click the x) and restarted it. That fixed the bug and I haven't been able to replicate so I don't have anything to submit for a bug report. Just a really strange thing.

What have been your weirdest bugs?

 

What os? What ide? What plug-ins?

 

I'll give an example. At my previous company there was a program where you basically select a start date, select an end date, select the system and press a button and it reaches out to a database and pulls all the data following that matches those parameters. The horrors of this were 1. The queries were hard coded.

  1. They were stored in a configuration file, in xml format.

  2. The queries were not 1 entry. It was 4, a start, the part between start date and end date, the part between end date and system and then the end part. All of these were then concatenated in the program intermixed with variables.

  3. This was then sent to the server as pure sql, no orm.

  4. Here's my favorite part. You obviously don't want anyone modifying the configuration file so they encrypted it. Now I know what you're thinking at some point you probably will need to modify or add to the configuration so you store an unencrypted version in a secure location. Nope! The program had the ability to encrypt and decrypt but there were no visible buttons to access those functions. The program was written in winforms. You had to open the program in visual studio, manually expand the size of the window(locked size in regular use) and that shows the buttons. Now run the program in debug. Press the decrypt button. DO NOT EXIT THE PROGRAM! Edit the file in a text editor. Save file. Press the encrypt button. Copy the encrypted file to any other location on your computer. Close the program. Manually email the encrypted file to anybody using the file.

 

So background, my kid has seizures often. He is currently on 5 different medications to try to control it(plus 1 for sleeping and 1 for his liver enzymes) plus severe non verbal autism so he can't tell us if he already had his meds. Currently when it's medication time, it's always "did you give him his meds yet?" and we have no way of tracking how many seizures he actually has besides "alot more recently" or "it's gone down recently". Yes he had multiple doctors and this is NOT a post looking for health advice.

I am creating an app for phones(c# Maui) which will send json objects to a api to store/retrieve data in a database(when he last had medication x, when he has a seizure etc). It will probably only be used with in my family, maybe 20 entries a day on a really bad day(7 medications twice daily + 6 seizures to give a round number) but should be less then 10 transactions(most medications given at same time).

What's the cheapest/easiest was I can host something like this? I do not have a static ip. Yes it's health information but I'm only storing first names and tracking time of events, not too worried about hippa like security.

 

The only possible exceptions I can think of are fish(I imagine gills and mouth are not connected but don't really know). I am excluding bacteria and viruses and I believe they don't really breath(correct me if I'm wrong).

view more: next ›