Showing posts with label TUTORIALS. Show all posts
Showing posts with label TUTORIALS. Show all posts

Sunday, August 17, 2014

How Add Facebook Popup Widget To Blogger


Step 1 - Add Widget

Step 2 - Copy the Below Javascript into the Content Box


<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'></script>
<style>
#fanback {
display:none;
background:rgba(0,0,0,0.8);
width:100%;
height:100%;
position:fixed;
top:0;
left:0;
z-index:99999;
}
#fan-exit {
width:100%;
height:100%;
}
#fanbox {
background:white;
width:420px;
height:270px;
position:absolute;
top:58%;
left:63%;
margin:-220px 0 0 -375px;
-webkit-box-shadow: inset 0 0 50px 0 #939393;
-moz-box-shadow: inset 0 0 50px 0 #939393;
box-shadow: inset 0 0 50px 0 #939393;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
margin: -220px 0 0 -375px;
}
#fanclose {
float:right;
cursor:pointer;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUQAaGUpBs-qiw6AKApF8LML49n8fXzw4ahiKPzdDKImvm4F_izq4TGn3dkwFtkCkM-tuRC1jKMn-Wexg_dKG1rdYVk6lAmSVTc6OlNh1KBmwsr67b3M4lhm_Fjvx1Fo0f5ITbY1CbJQrk/s1600/fanclose.png) repeat;
height:15px;
padding:20px;
position:relative;
padding-right:40px;
margin-top:-20px;
margin-right:-22px;
}
.remove-borda {
height:1px;
width:366px;
margin:0 auto;
background:#F3F3F3;
margin-top:16px;
position:relative;
margin-left:20px;
}
#linkit a.visited,#linkit a,#linkit a:hover {
color:#80808B;
font-size:10px;
margin: 0 auto 5px auto;
float:center;
}
</style>
<pre></pre>
<script type='text/javascript'>
//<![CDATA[
jQuery.cookie = function (key, value, options) {
// key and at least value given, set cookie...
if (arguments.length > 1 && String(value) !== "[object Object]") {
options = jQuery.extend({}, options);
if (value === null || value === undefined) {
options.expires = -1;
}
if (typeof options.expires === 'number') {
var days = options.expires, t = options.expires = new Date();
t.setDate(t.getDate() + days);
}
value = String(value);
return (document.cookie = [
encodeURIComponent(key), '=',
options.raw ? value : encodeURIComponent(value),
options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
options.path ? '; path=' + options.path : '',
options.domain ? '; domain=' + options.domain : '',
options.secure ? '; secure' : ''
].join(''));
}
// key and possibly options given, get cookie...
options = value || {};
var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
};
//]]>
</script>
<script type='text/javascript'>
jQuery(document).ready(function($){
if($.cookie('popup_user_login') != 'yes'){
$('#fanback').delay(100).fadeIn('medium');
$('#fanclose, #fan-exit').click(function(){
$('#fanback').stop().fadeOut('medium');
});
}
$.cookie('popup_user_login', 'yes', { path: '/', expires: 7 });
});
</script>
<div id='fanback'>
<div id='fan-exit'>
</div>
<div id='fanbox'>
<div id='fanclose'>
</div>
<div class='remove-borda'>
</div>
<iframe allowtransparency='true' frameborder='0' scrolling='no' src='//www.facebook.com/plugins/likebox.php?
href=http://www.facebook.com/TechnoratanIndia&width=402&height=255&colorscheme=light&show_faces=true&show_border=false&stream=false&header=false'
style='border: none; overflow: hidden; margin-top: -19px; width: 402px; height: 230px;'></iframe><center>
<a href="http://technoratan.in/blogger-tips/add-facebook-popup-widget-to-blogger" rel="nofollow">Facebook Popup Widget</a></center>
</div>
</div>



Step 3 - Customize Your Facebook popup Widget

Find and Replace jhaniedraftster.blogspot.com with your facebook username


If you want the Popup to appear every time the User Reloads or access the website

Monday, August 11, 2014

Switch case in C and C++ (Function and Switch in one program)


Switch case statements are a substitute for long if statements that compare a variable to several "integral" values ("integral" values are simply values that can be expressed as an integer, such as the value of a char). The basic format for using switch case is outlined below. The value of the variable given into switch is compared to the value following each of the cases, and when one value matches the value of the variable, the computer continues executing the program from that point.

EXAMPLE:

switch ( <variable> ) 
{
case this-value:
  Code to execute if <variable> == this-value
  break;
case that-value:
  Code to execute if <variable> == that-value
  break;
...
default:
  Code to execute if <variable> does not equal the value following any of the cases
  break;
}

The condition of a switch statement is a value. The case says that if it has the value of whatever is after that case then do whatever follows the colon. The break is used to break out of the case statements. Break is a keyword that breaks out of the code block, usually surrounded by braces, which it is in. In this case, break prevents the program from falling through and executing the code in all the other case statements. An important thing to note about the switch statement is that the case values may only be constant integral expressions. Sadly, it isn't legal to use case like this:

EXAMPLE:


int a = 10;
int b = 10;
int c = 20;

switch ( a ) {
case b:
  // Code
  break;
case c:
  // Code
  break;
default:
  // Code
  break;
}

The default case is optional, but it is wise to include it as it handles any unexpected cases. Switch statements serves as a simple way to write long if statements when the requirements are met. Often it can be used to process input from a user. 

Below is a sample program, in which not all of the proper functions are actually declared, but which shows how one would use switch in a program.

EXAMPLE: 
/* Function and Switch in one program*/

#include <iostream>
void playgame()
{
    cout << "Play game called";
}
void loadgame()
{
    cout << "Load game called";
}
void playmultiplayer()
{
    cout << "Play multiplayer game called";
}

int main()
{
  int input;
  
  cout<<"1. Play game\n";
  cout<<"2. Load game\n";
  cout<<"3. Play multiplayer\n";
  cout<<"4. Exit\n";
  cout<<"Selection: ";
  cin>> input;
  switch ( input ) {
  case 1:            // Note the colon, not a semicolon
    playgame();
    break;
  case 2:            // Note the colon, not a semicolon
    loadgame();
    break;
  case 3:            // Note the colon, not a semicolon
    playmultiplayer();
    break;
  case 4:            // Note the colon, not a semicolon
    cout<<"Thank you for playing!\n";
    break;
  default:            // Note the colon, not a semicolon
    cout<<"Error, bad input, quitting\n";
    break;
  }
  cin.get();
}

Thursday, July 12, 2012

How to Succeed in a Math Class (Math Secrets)


Get a “can do” attitude: 
If you can do it in sports, music, dance, etc., you can do it in math! Try not to let fear or negative experiences turn you off to math.

Practice a little math every day: 
It helps you build up your confidence and move your brain away from the panic button at test time.

Take advantage of your math class: 
If you are a college or high school student, realize that most colleges and universities require at least college algebra for any bachelor's degree. Some classes, like chemistry, nursing, statistics, etc. will require some algebra skills to succeed in them. If you are getting a bachelor's degree, then chances are you are going for a professional job. Most professional jobs require at least some math. Granted, some more than others, but nonetheless math (problem solving, numbers, etc...) is everywhere. So make sure that you embrace your math experience and make the most of it.

Attend class full time: 
Math is a sequential subject. That means that what you are learning today builds on what you learned yesterday.

Keep up with the homework: 
It sounds simple but your time is limited, you have a job to go to, etc.. Think of it this way: No homework, no learning. Homework helps you practice the applications of math concepts.

Try to understand the math problems: 
When you work homework problems, ask yourself what you are looking for and how you are going to get there. Don’t just follow the example. Work the problem step-by-step until you know why you are doing what you are and have arrived at the solution

Use index cards to study tests: 
Here’s how you do that: When studying for a test, make sure you can understand the problems on each math concept as well as work them. Then make the index cards with problems on them. Mix the index cards (yes, shuffle the cards to mix them up) and set the timer.

Ask questions in class: 
Don’t be ashamed to ask questions. The instructor WILL NOT make fun of you. In fact, at least one other person may have the same question.

Ask questions outside of class: 
OK, so like most people, you don’t want to ask questions in class, OR you think of a question too late. Then go to the instructor’s office and ask away.

Check homework assignments: 
Make sure that when you get your graded homework back you look over what you got right as well as what you missed.

Pay attention in class: Math snowballs. If you don’t stay alert to the instructor’s presentation, you may miss important steps to learning concepts. Remember, today’s information sets the foundation for tomorrow’s work.

Don’t talk in class: 
If you have questions, please ask the instructor. The information you get from classmates may be mathematically wrong! And if it isn’t related to math info for this class, save it for outside the classroom.

Read the math textbook and study guide:
Yes, there’s a reason why we ask you to spend all that money on them. If you look carefully, you will see that your book contains pages with great examples, explanations and definitions of terms. Take advantage of them.






Monday, October 31, 2011

Opening On-screen Keyboard


If your desktop keyboard is broken or maybe some of button of it is not working, you can use OSK (on-screen keyboard)


Step 1: Go to start
Step 2: Go to run and type OSK
Step 3: Then the keyboard comes on

How to change your mouse pointer


Step 1: Go to the control panel
Step 2: Go to Printers and Other Hardware
Step 3: Go to Mouse
Step 4: Go to the tab that says "Pointers"
Step 5: Hit the pull down menu under "Schemes"

You'll find a large collection of different pointers for you to use or you can browse and pick other graphics to use as pointers

Click Okay

Monday, October 17, 2011

How to use USB show


HOW TO USE USB show

Step 1: Open the application/USB show.exe

Step 2: Hit/click the English button if dont understand Español.


Step 3: Hit/click the "Recover the hide files" then Browse For Folder will appear, now you
need to find your Flashdrive.
 


*usually hit/click "My Computer" then your Flashdrive Name will appear.
*after it appears click again to your flashdrive then Hit/click "OK"


""SO ITS STARTING TO REAVEAL YOUR HIDDEN FILES""

Putting Background to your flashdrive Using USBstyle


Step 1: Open the application/USBstyle.exe


Step 2: Hit/click the button "Asistente para perzonalizar el dispositivo"


Step 3: Hit/click the button Examinar to find your icon, after you your icon
Hit/click the button "Siguiente".


(if dont have any personalize icons you may search "online icon maker" to google to create
yours)

Step 4: Hit/click again the button Examinar to find your image you be your wallpaper,
then Hit/click again the button "Siguiente".



Step 5: Hit/click the button "Finalizar" the unplugged and plugged your USB to see
what have you done.

Putting Background to your flashdrive Using notepad


Step 1: Open an windows application named "Notepad"
     *otherwise:  Hit/Click Start button then All Programs>>Accesories >>Notepad

Step 2: After you open a Notepad Copy and Paste this code below to your Notepad.

[.ShellClassInfo]
IconFile=.. \ICONS\aaaa2.ico
IconIndex=0
ConfirmFileOp=0

[{BE098140-A513-11D0-A3A4-00C04FD706EC}]
Attributes=1
IconArea_Image="put_image_name_here.jpg"
IconArea_Text="0x19ff02"
IconArea_Font="comicbd.TTF"
VeBRA sources - don't delete the tag above, it's there for XXXXX purposes -
[ExtShellFolderViews]
{BE098140-A513-11D0-A3A4-00C04FD706EC}={BE098140-A513-11D0-A3A4-00C04FD706EC}
{5984FFE0-28D4-11CF-AE66-08002B2E1262}={5984FFE0-28D4-11CF-AE66-08002B2E1262}

[{5984FFE0-28D4-11CF-AE66-08002B2E1262}]
PersistMoniker=Folder.htt
PersistMonikerPreview=%WebDir%\folder.bmp

Step 3: Find a picture or a photo then paste it outside your Flashdrive or
save it not in the folder but through directly into Flashdrive.

Step 4: Find the keyword "put_image_name_here" then replace it with your
Picture/photo File name. Always put ".jpg"/ point+jpg after you Picture/photo file name
or else it will not be seen.

Step 5: After you replace the name or the "put_image_name_here.jpg" save you code/notepad
directly to your Flashdrive as "desktop.ini" then unplugged it then plugged. to see what have you done.

1
2
3
4
5


Matrix code look a like using notepad


Step 1: Open a NOTEPAD into your STARTMENU

Step 2: Copy and Paste the code below to your notepad:

@echo off
color a
:top
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto:top

Step 3: Save as bat files.. or save as "matrix.bat", then open it :D

HAVE FUN WATCHING MATRIX LOOK A LIKE CODES :))
Related Posts Plugin for WordPress, Blogger...