Chrome is silently killing your SSD

August 5, 2016

So I am the proud owner of new SSD drive to replace an old spinner in my laptop. Because I cloned my old windows install that used to be on a spinner, I have been keeping an eye on things and making sure windows is treating it as an SSD properly so I don’t end up with a dead drive sooner than I have to.

Right away I noticed some concerning I/O activity so I went and did things like kill the indexing service, etc hoping to see it come to an end. Nope, still seeing tons of writes.

I researched  further and used Sysinternals ProcessExplorer to discover that it is Chrome that is going to town with write operations.

Googling about that lead to some settings to turn off. The malicious website checking and prefetching settings were the problem according to Google. So I turned those off. I’m all set now right? Wrong! I left one process running for 6 hours, and it did 2 million writes for 2.5 GB of data.

Anyway, to end the story short, I now close all chrome instances before walking away from my laptop.


Interesting SqlException

March 8, 2013

Working with a ReST API that uses Linq to SQL for a DAL.

We have a method that calls a stored procedure that does various SQL statements and does it in a transaction that it either commits or rolls back.

If we called this method 5 times in a row, it would “hang” the api for subsequent calls that did multiple queries. Any call that traversed a relationship and queried the child table would throw this SQL exception:

The server failed to resume the transaction. Desc:#########

The proc that was called returns a table of errors (if any). Our API was never consuming this table.

Thanks to this blog entry, I was enlightened into the need to consume that return table.

Once I consumed the return table, the connections stopped being “stuck” with a transaction context.


Lazy and Sloppy Developers

October 14, 2009

Developers, please think of the poor SOB that has to maintain your code 2 years after you leave the company. I just ran in to a block of code that did not make any sense. It read “if(includeBlahItems) {do something}” that obviously only runs if there are some Blah items right?. Wrong! In this code, the boolean value called “includeBlahItems” only gets set to true when there were NOT any BlahItems to deal with?!?!

Please don’t do that. Rename the variable, or set it to false when there are not any Blah items and change the if block to “if(!includeBlahItems) {do something}”.


The Small Business Restaurant Case Against Obama-care

July 21, 2009

This is a letter written by a friend of mine:

America – as a small business restaurant owner I’m appalled that very few (politically, media) are discussing the massive impact Obama-care will have on small businesses. We simply cannot afford mandated employer health care in our industry, and keep in mind that our industry is one of the most critical backbones of the entire American economy- there are over 945,000 restaurants in America, employing over 13 million people.

Keep in mind we primarily employ entry level and relatively unskilled laborers in the restaurant business. Our business models are built on razor thin margins as our customers (the American public) demand great value for their food- we simply cannot afford to provide health insurance for our majority unskilled and frequently transitory workforce – in many cases they are already paid higher wages than their skills could demand in an unregulated market via inflation indexed mandatory minimum wage laws. Mind you we do offer solid compensation and health benefits to management and senior staff who by virtue of their skills, responsibilities, achievements and longevity have earned them. We are already hammered by mandatory minimum wage increase that have siphoned off critical profits from our business in this time of recession- contributing greatly to significant price increases and labor force reductions already. Now Obama-care is proposing an 8% payroll surtax to finance mandatory health care?! This is INSANITY. Restaurants are built on after tax cash flow business models of less than 5% (which mind you has already been chipped by about 2% for min wage increases and price discounting to maintain traffic during a recession has hurt profits as well). Given payroll represents on average 25% of a restaurant business’s sales, an 8% surtax represent another 2 % hit to the bottom line! The senate version is almost as bad. And don’t let the small business exceptions fool you as restaurants are VERY labor intensive, and even a single small restaurant operation typically employees 20-30 people- practically every restaurant in America will be impacted by the mandate. Given that most small business restaurant operators survive on scale (2-10 locations) and again at very low margins, the small business exceptions will provide no relief for those in the restaurant industry who provide the majority of jobs.

What does the administration think businesses will do in reaction to this law? For starters we will be forced to drastically reduce staffing in an effort to reduce our payrolls and offset the tax impact on our profits- I anticipate the current hiring freezes in the industry to turn into massive layoff waves, and the industry to cut back dramatically to levels that will significantly impact our service models and even our ability to continue to operate. Second we will have no choice but to raise prices significantly- the HIDDEN TAX on the American public is that all taxes are ultimately passed on to the consumer. Third, and perhaps worse, many, many, MANY restaurants will simply not be able to cope with the cost burden and will fold almost overnight, swelling the ranks of the unemployed even more drastically. Finally, the financial incentive to build new restaurants in America will be gone. Say goodbye to new and interesting and convenient cuisine options in your neighborhood as no rational investor will put money in the future into a money losing business proposition.

Don’t pretend for a second that the administration doesn’t know this. Isn’t it convenient that they have planned the tax increases to be time delayed till 2011, hopeful that the American consumer will separate cause (Obama-care passes in 2009) from effect (massive unemployment waive in 2011)? Perhaps in the interim the unemployment numbers will trend up temporarily to mask his economically unsound strategies. I can assure you that come 2011 the economic consequences will be stunning to say the least.

Also, don’t be fooled by big businesses (Wal-mart, GE, etc) which have the scale and size to absorb these costs and are supporting Obama-care/similar measures. They see the law as a means to strangle their small business competition with regulations that will overwhelm and bankrupt them, freeing up market share for them to absorb. In fact, these big business bedfellows are counting on reduced competition from the small business sector to offset their losses on health care costs. Much like the big business-government collaboration of the past (railroad regulations) and the present (green initiatives trumpeted by Goldman Sachs and GE), their support is calculated and self-interested and in no way reflects the ability of the broader small business economy to absorb misguided policy.

Please put the word out to others that the consequences of this bill are far, far reaching and dire throughout the economy to consumers and businesses alike. Obama-care could kill the small-business economic goose that has laid golden eggs almost uninterrupted since the Reagan revolution. Do we really want 20% unemployment and small-businesses shuttered up all across America? Mandate business funding of employee health costs and you will see just that. And when small businesses are no longer here to foot the bill, guess who the government will come calling to NEXT to make up for the shortfall in funding? To quote Pastor Martin Niemöller:

“In Germany, they came first for the Communists, And I didn’t speak up because I wasn’t a Communist;
And then they came for the trade unionists, And I didn’t speak up because I wasn’t a trade unionist;
And then they came for the Jews, And I didn’t speak up because I wasn’t a Jew;
And then… they came for me… And by that time there was no one left to speak up.”

Wake up America, before it’s too late!

Shane
Phoenix, AZ


Hello world!

July 18, 2006

Hopefully I find time to actually use this thing. I don’t have anything exciting to blog about today that someone else hasn’t already covered better. I do plan on writing a few entries about my experiment with riding the bus to work.