How to Record your Desktop Screen with YouTube

Submitted by erick on Sat, 08/19/2017 - 19:47

Screencasting is simple. You download a software program, hit the record button and a video of your computer screen is created, ready for uploading to YouTube. There are a plethora of screencasting tools to choose from but did you know that you can also create screencast videos inside YouTube without requiring any desktop software? All you need is a YouTube account and a web browser.

How to insert Google Adsense Code in PHP script?

Submitted by erick on Sat, 08/19/2017 - 19:45

I have tried this and it is confusing at first, anyway the best practice to insert the Google adsense code is to assign this to a PHP variable:

Example of adsense code:

<script type="text/javascript"> google_ad_client = "pub-123456789"; google_ad_slot = "123456"; google_ad_width = 180; google_ad_height = 150; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

The 10 Important URLs That Every Google User Should Know

Submitted by erick on Sat, 08/19/2017 - 19:45

The 10 Important URLs That Every Google User Should Know

What does Google know about the places you’ve visited recently? What are your interests as determined by Google? Where does Google keep a list of every word that you’ve ever typed in the search box? Where can you get a list of Google ads that were of interest to you?

 

Google stores everything privately and here are the 10 important links (URLs) that will unlock everything Google knows about you. 

How to Adding a YouTube video with sound muted

Submitted by erick on Sat, 08/19/2017 - 19:44

How to Adding a YouTube video with sound muted

It is easy to adding YouTube videos in your website. You grab the default IFRAME embed code, paste it anywhere inside your web page and you’re done. YouTube offers basic customization – you can modify the player dimensions or hide the YouTube branding – but if you would like to exercise more control over the  behavior of the embedded player, YouTube Player API is the way to go.

This tutorial explains how you can adding a YouTube video that will automatically play when the web page is loaded but with muted audio.

SQL Server 2005+, then you can use the PIVOT

Submitted by erick on Sat, 08/19/2017 - 19:43

If you are using SQL Server 2005+, then you can use the PIVOT function to transform the data from rows into columns.

It sounds like you will need to use dynamic sql if the weeks are unknown but it is easier to see the correct code using a hard-coded version initially.

If your values are known, then you will hard-code the query:

 

Store Week xCount ------- ---- ------ 102 1 96 101 1 138 105 1 37 109 1 59 101 2 282 102 2 212 105 2 78 109 2 97 105 3 60 102 3 123 101 3 220 109 3 87

 

Todo tasks not appearing in the Task List in visual studio

Submitted by erick on Sat, 08/19/2017 - 19:43

Todo tasks not appearing in the Task List in visual studio

I've recently upgraded to Visual Studio 2012 and haven't have any problems except for the fact that comments beginning with "//todo" no longer show up in the task list. 

To resolve this problem, do the following:

For Visual Studio 2012 / 2015

What is conversion system of LM35 (temperature sensor) in Celsius for Arduino?

Submitted by erick on Sat, 08/19/2017 - 19:42

What is conversion system of LM35 (temperature sensor) in Celsius for Arduino?

for Arduinos is:

val = analogRead(tempPin);

float mv = ( val/1024.0)*5000;

float cel = mv/10;

 

Example:

//getting the voltage reading from the temperature sensor

int reading = analogRead(tempPin0);

float mv = ( reading / 1024.0) * 5000;

float cel = mv / 10;

Serial.print(cel); Serial.println(" degress C");

qemu-kvm: could not open disk image ' ': Permission denied

Submitted by erick on Sat, 08/19/2017 - 19:41

SOLVED: found a way.
Changing /etc/libvirt/qemu.conf to make things work.
Uncomment user/group to work as root.
Then restart libvirtd

 

user = "root"

# The group for QEMU processes run by the system instance. It can be # specified in a similar way to user.

group = "root"

 

sudo service libvirt-bin restart