Thursday, February 13, 2014

div losing background color/image when resizing the browser window

When you have div width 100% it apply to browser viewpoint only not the max page width. This can be a problem when you have another div with a fixed width length. The fix is to put a min-width with max possible page width.

html, body{margin:0; padding:0;border: 0;outline: 0;}

<!--The problem-->
<div style="margin:0; width:100%; background-color:#060;">
 Header 1

<div style="margin:0 auto; width:1000px; background-color:#03C;">     
 Text Line 1

<br /><br />

<div style="margin:0; width:100%; min-width:1000px; background-color:#060;">
 Header 2

<div style="margin:0 auto; width:1000px; background-color:#03C;">     
 Text Line 2


Don't forget padding widths when calculating min width.

Wednesday, February 12, 2014

Cannot login to Games for Windows LIVE

Login issue for me was caused by two-step verification. you can either disable it temporally till you finish game or you can use a App password that you can find in your Live account under "Security info".

GFWL can be very annoying at times. I had problems with it every time it was required to play a specific game. Wish they at least give a detailed error message without wasting my time for hours looking for fixes.

Thursday, February 6, 2014

HD 7750 cypto coin mining experience

HD 7750 is a entry level card for mining any kind of coin. suitable for casual mining while you do other stuff in the pc. I mine Feathercoin (FTC) as it has a very low difficulty but I think Litecoin will give the same return when converted to Bitcoins. I get around 2.5FTC per day with pool.

My HD 7750 punch 134 khash/s on Intensity level of 13 in GUIminer-scrypt
GPU clock increased to 825MHz (core speed 800)
Memory clock speed decreased to 700Mhz to reduce temperature. you can change card settings using amd catalyst control center.

It can easily go over 150 Khash/s with more GPU overclocking and increasing the intensity level. I haven't tried to push the card that far since increase core speed make temperature go over the roof.

How to get all results without the first row from a MySQL table

To exclude first row you have to use MySQL limit clause.

select * from table limit 1, 10000000

You can pass 2 values to limit clause first one is the starting row. Row index start with 0 so you have to put 1 to remove first row. Second parameter is the number of result u need to retrieve. Put a number that is larger than max rows of table.