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();
}

Saturday, July 12, 2014

Redeem your points and Get FREE LOAD from SMART




How to Join

Registration into the program can be through the following:

Text REWARDS to 9800
Register number to my.smart.com.ph for Smart Bro Prepaid and Postpaid subscribers
Smart Application Form (for new Smart Postpaid applications)
Smart Retention Program Application Form (for retention applications for Smart Postpaid)

Points earning only begin upon registration of the subscriber into the rewards program.

Formerly registered subscribers in the Smart Rewards program will not be required to register
again in the new program.

Upon registration, newly registered subscribers will begin at the Starter tier (prepaid) or Silver tier (postpaid). Refer to Table 1 for the tier structure.
Formerly registered subscribers before July 1, 2014 will be assigned their respective tiers following the new point’s earning scheme as illustrated in the Tier Structure below.

PREPAID TIERS POSTPAID TIERS MINIMUM REQUIRED POINTS PER QUARTER
Prestige Prestige  82,500 Points
Gold Gold              10,000 Points
Silver Silver            5,000 Points
Bronze                    100 Points
Starter Upon Registration


Earn points each time you load your personal accounts, or for every peso charged to your postpaid account.
Get access to exclusive promos for chances to win gadgets, movie tickets, concert tickets and more!


Smart Postpaid
Get bill rebates, free calls, free texts and free hours of Internet surfing! You can also redeem music credits and other exciting items!
Smart Prepaid
Get free calls and free texts! You can also get free blockbuster treats and other exciting items!

Smart Bro Postpaid
Get bill rebates or free hours of Internet surfing! You can also get free blockbuster treats and other exciting items!

Smart Bro Prepaid
Get free hours of Internet surfing! You can also get free blockbuster treats and other exciting items!

Here are some promos you can Redeem to get free load

Big Calls 100
REDEEM BC100
10,000 pts.
200 minutes of calls to Smart/TNT, valid for 7 days

All Text 50
REDEEM ALLTEXT50
5,000 pts.
300 SMART to SMART SMS, 30 SMS to all networks, valid for 3 days

Big Text 50
REDEEM BT50
5,000 pts.
Unlimited texts to Smart/TNT/Sun, valid for 7 days

Lahat Text 20
REDEEM LAHAT20
2,000 pts.
250 SMS to all networks and 10 min SMART to SMART calls, valid for 1 day

Jump Text 15
REDEEM JUMP15
1,500 pts.
Unlimited texts to all networks, valid for 2 days

All Text 10
REDEEM ALLTEXT10
1,000 pts.
75 SMS to all networks and 5MB worth of data allocation valid for 1 day

source: http://rewards.smart.com.ph/

Caraga State University Cabadbaran Campus Grandstand (SketchUp)


SketchUP Caraga State University Cabadbaran Campus Grandstand ^_^



Related Posts Plugin for WordPress, Blogger...