Posted on June 22, 2020June 26, 2020Categories Blog, Programming, quick notesTags ,   Leave a comment on Select content in a div with only css

Select content in a div with only css

Just by adding that CSS and adding the class selectable to your HTML element will highlight all the inner HTML. Then the user can press ctrl+c to copy the text without needing to highlight everything. This has a very nice effect on your mobile devices. It will highlight everything on your phone which is very convenient

Posted on March 12, 2020March 13, 2020Categories Blog, Quick Info, Uncategorized   Leave a comment on New keyboard and mouse

New keyboard and mouse

After something like 8 years I finally bought a new keyboard and mouse. My other ones were on the way out. I did some shopping around and found the world of mechanical keyboards and gaming mice.  There are so many things to look for and consider for mechanical keyboards. Do I go with led keys, which color switches should I buy, and do I want textured keys, how much is the right amount of money to spend on a keyboard … Continue reading “New keyboard and mouse”

Posted on April 13, 2018April 10, 2018Categories Mysql, PHP, Quick InfoTags ,   Leave a comment on if you search for ‘ or ” and it breaks your software

if you search for ‘ or ” and it breaks your software

Chances are if you are using a database and your application errors out when you enter ‘ or ” into a field and you get an error this usually means your prone to SQL injection. While SQL injection is very dangerous it’s relatively simple to resolve. Now I say its simple but it could mean lots of re-work for you. I don’t want to talk about how to prevent and cure SQL injection. But, I want to show a solution to this problem. There are … Continue reading “if you search for ‘ or ” and it breaks your software”

Posted on March 12, 2018March 5, 2018Categories Programming, Quick Info, TechnologyTags , , , , ,   Leave a comment on testing emails

testing emails

Safe Email Testing Solution As developers or project staff it’s really hard to come up with a clean and safe email testing solution. You never want to send production emails but, really how do you test them. I’ve recently found this service You just add the email settings in your application however you usually would and all emails generated by your system will just display in your dashboard inside mail trap. Please feel free to check out this amazing service

Posted on March 5, 2018March 4, 2018Categories Quick Info, Useful commandsTags , , ,   Leave a comment on htop


Htop is super easy to use Linux top is very useful in seeing system processes. The only problem is the general layout and commands are not obvious while its open. For those reasons, I like htop (htop – interactive process viewer). It lists many options on the bottom of the screen and you can press the letter h to get more detailed information. Once in the application, you can press f5 to activate tree view or you can press the … Continue reading “htop”

Posted on February 9, 2018March 4, 2018Categories Quick InfoTags , , ,   Leave a comment on what is the cloud

what is the cloud

The cloud just means somebodies elses computer The cloud is really just a fancy way of saying not my computer. Like Facebook is not hosted on your computer its in the cloud, or in their data warehouse. Cloud software is convenient in so many ways. If the software needs to update we know the computer or server is hosting it and how to support it.

Posted on February 8, 2018February 8, 2018Categories Wordpress PluginsTags , , , , , , , , ,   Leave a comment on Code View

Code View

[av_textblock size=” font_color=” color=” av-medium-font-size=” av-small-font-size=” av-mini-font-size=” admin_preview_bg=”] Code View Visualize code on your blog using highlightjs and hightlightjs-line-numbers. [av_dropcap1]C[/av_dropcap1]odeView a simple WordPress plugin to carry out highlightjs and usage of all the themes that highlightjs offers. In the plugins settings page in Settings -> CodeView Settings you can choose the theme, add numbering, and line numbers. In your blog post just use the shortcode cv. For example [/av_textblock] [av_toggle_container initial=’0′ mode=’accordion’ sort=” styling=’av-minimal-toggle’ colors=” font_color=” background_color=” border_color=”] [av_toggle title=’Usable themes are’ tags=”] AGATE … Continue reading “Code View”

Posted on February 1, 2018February 8, 2018Categories PHPTags , ,   Leave a comment on Implement dependency injection

Implement dependency injection

Quick notes on implementing dependency injection   Most if not all PHP frameworks utilize dependency injection. Its allowing PHP to automate supplying function parameters. In my code example below in the class Test the function test requires the User class to be passed in as a parameter. Maybe you’ll want more things like Route or maybe some kind of Registry object. Having decency injection helps reduce redundant code by instantiating the function everywhere needed. Here is a VERY basic example of … Continue reading “Implement dependency injection”