you.arenot.me


iOS buttons – remove rounded corners!

Found this lovely link:

http://stackoverflow.com/questions/5263260/stop-safari-mobile-from-giving-input-buttons-rounded-corners

so just leaving it here for myself okay? But here is the answer that works:

input, textarea, select {
-webkit-appearance: none;
-webkit-border-radius: 0;
}

WordPress 2014

I have decided that this year is a year I know my enemies.  Ironically WordPress is a bit of an enemy even though I have built a few sites with it, including this one and Elephant Journal.  So I need to learn as much as I can about it.  Will I convert away from .NET or will I learn that I was right all along?

So here goes.  I am starting here and using a theme I have previously built.  I don’t want to use the free themes that come with WordPress as they complicate the shit out of it i.e. it’s too advanced if you want to learn theme development.

Minimums

By the looks of it all I need is the index.php and styles.css files.  Everything else is extra, some with special meanings that you can include that WordPress will “know about”.

My style.css looks like this:

/*
Theme Name: ihmy
Theme URI: http://wordpress.org/
Description: ihmy
Author: Colin Wiseman
Version: 0.1
License: GNU General Public License
License URI:
*/

* { padding: 0; margin: 0; }
.cf:after {
content: "";
display: table;
clear: both;
}

And my index.php pretty much follows like this:

<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage ihmy
 * @since ihmy 0.1
 */

get_header(); ?>

		<div id="container"?>
			<div id="content" role="main"?>

			<?php
			/* Run the loop to output the posts.
			 * If you want to overload this in a child theme then include a file
			 * called loop-index.php and that will be used instead.
			 */
			 get_template_part( 'loop', 'index' ); // well need to define a loop.php file.  But I need to learn more about that first!
			?>
			</div?><!-- #content -->
		</div><!-- #container --?>

<?php get_sidebar(); ?>
<?php get_footer(); ?>

Once you get that in, you can pretty much start filling in the broken bits.

On it!


Jack Andraka and the Pancreatic Cancer strip.

After my illness (short but horrible story) which involved my pancreas, this young man is doing so much that I respect! As with my previous post…be young. Just don’t be stupid. This guy is not stupid!


Are you young and stupid?

Craig Ferguson on youth and commercialism. Not many a truer words has been said in these recent days! Come on! Look to the old for the answers…well unless the old are politicians!

So don’t be young and stupid!  Be smart.  Work hard.  Do your part.  Live life!! Have fun (some stupid fun is allowed, but don’t be stupid!).


Interfaces – The Good and The Ugly

(there is no bad…just pros and cons)

I want to start off this with a positive spin. Interfaces are great. They help make your life much easier. Using interfaces is real easy too:

public interface IEntity
{
int Id {get;set;}
DateTime DateCreated {get;set;}
DateTime DateUpdated {get;set;}
string CreatedBy {get;set;}
string UpdatedBy {get;set;}
bool Enabled {get;set;}
int DisplayOrder {get;set;}
}

WordPress new install on Windows IIS 7 with 500 Internal Server Error

Wasted 3 hours of my night working on this.  I was asked by a friend to install WordPress for them so that they can do everything.  Sounds like very little work for me.  Sounds like money for old rope.  No problems I thought. BOOM!  500 Internal Server Error.


How long should I fast for?

If you’ve read my previous posts then you know am trying that 5:2 diet.  2 days of the week I fast.  But that’s meant to be a 24 hour fast?  Because if the last thing I eat the day before is 7pm (am trying not to snack) that means the next thing I have to eat “normally” is the day after the fast at around 6am.  That’s 33 hours fasting… Is that not a bit much?


Special VB String Escape Character like @’String’ in C#

Due to my sins (it would seem) I still have to work with VB.net from time to time.  But I am so used to doing this:


Low Facebook page views (or why have I done all this work for nothing?)

So Facebook seem to have a random algorithm for posting to peoples’ news feeds. I did a test over the last couple of days.  I posted 3 different types of posts to my Facebook page (not timeline, a company page and it only has 450 likes) to see what the number views would be – Facebook page owners get to see how many folks viewed a post.  I was quite shocked actually.  Here are the results to find out why you might have low page views.


Twitter bootstrap

Tonight I got a chance to play with the Twitter Boostrap.  I plugged it into my MVC4 testing app (more on that in another post maybe).  And I quite like it.