← Home

Tag: coding


@tags=coding, css
Pasted image 20230807125724.png

Tailwind is a css framework that with some html code that looks like this:

You can style your site without css.

Instead, you throw classes on dom elements and then tailwind will ladle some css on your element to get it to look the way you like.

As someone who has done scss for a long time, ...

READ MORE (106 words, 1 images)

Password validation done better

@tags=coding, security

One of the most annoying user experiences is registering and trying to create a password that passes a bunch of validation rules, such as must contain a uppercase, lowercase, special character, etc.

This doesn't always create the strongest password, and more importantly it doesn't create the mo...

READ MORE (290 words, 1 images)

Created a new blog render

@tags=coding, blog, obsidian

I wiped out RobKohr.com as I haven't touched it in over 5 years, and replaced it with this blog.

It was built just using one long markdown file called blog.md that I edit in obsidian and each article is separated by ## Blog titles, and under that I use @date and @tags to specify those two value...

READ MORE (156 words)

Stackoverflow instead of beating your head against the wall

@tags=stackoverflow, coding, programming

Often you will get deep in some code and come up against a wall. After working through it, and reading some documentation, if you haven't figured it out, it is time to go to stackoverflow.

I have been on stackoverflow for a little over 14 years now, and while I don't answer a lot of questions (t...

READ MORE (184 words)


@tags=coding, svelte

The best tutorial on it



#IdeaNeedsHackers Have a good idea that you want to get some hackers on board with? Just put it out there and use the #IdeaNeedsHackers  hash tag. You should state whether or not you can contribute to the development effort, or if this is just an idea that you want to kick out into the world and...

READ MORE (119 words)

After using mongodb for quite some time and building several systems with it,...

@tags=PHP, LAMP, MySQL, Nodejs, mongodb, coding

After using mongodb for quite some time and building several systems with it, I am starting to drift back into preferring structured data in a mysql db. 

I think the seco...

READ MORE (305 words)

A new way to round - rand_round 2008-11-28

@tags=blogger-post, coding

So in grade school you are taught the basics of rounding. If the decimal portion of the number is < .5 round down to the integer so 5.3 becomes 5. If it is >= .5 round up, so 5.8 becomes 6.

This is well and good if you are doing something that has an even distribution after the decimal point. Bu...

READ MORE (303 words)

Head and tail - super large outputs and inputs

@tags=blogger-post, coding

If ever you are dealing with a really large file in head (1GB+) and you need to grab a large segment of it (such as half the file), don't use -n option to get lines. Instead, do ls -l to find the the size of the file in bytes, figure out how many bytes you need (perhaps a portion of the of the to...

READ MORE (166 words)