echo '' ;

Archives

Google – Blogger

 

How to add “Read More” of your post in main page?


How to add Facebook popup like box blogger widget?

  • Login Blogger account  –>Layout –>Add a Gadget –> HTML/JavaScript gadget -> “Paste the following code”
 <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js' type='text/javascript'></script>  
 <style type="text/css">  
 #fbox-background{display:none;background:rgba(0,0,0,0.8);width:100%;height:100%;position:fixed;top:0;left:0;z-index:99999}#fbox-close{width:100%;height:100%}#fbox-display{background:#eaeaea;border:5px solid #828282;width:540px;height:330px;position:absolute;top:32%;left:37%;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}#fbox-button{float:right;cursor:pointer;position:absolute;right:0;top:0}#fbox-button:before{content:"CLOSE";padding:5px 8px;background:#828282;color:#eaeaea;font-weight:700;font-size:10px;font-family:Tahoma}#fbox-link,#fbox-link a.visited,#fbox-link a,#fbox-link a:hover{color:#aaa;font-size:9px;text-decoration:none;text-align:center;padding:5px}  
 </style>  
 <script type='text/javascript'>  
 //<![CDATA[  
 jQuery.cookie=function(a,b,c){if(arguments.length>1&&"[object Object]"!==String(b)){if(c=jQuery.extend({},c),null!==b&&void 0!==b||(c.expires=-1),"number"==typeof c.expires){var d=c.expires,e=c.expires=new Date;e.setDate(e.getDate()+d)}return b=String(b),document.cookie=[encodeURIComponent(a),"=",c.raw?b:encodeURIComponent(b),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join("")}c=b||{};var f,g=c.raw?function(a){return a}:decodeURIComponent;return(f=new RegExp("(?:^|; )"+encodeURIComponent(a)+"=([^;]*)").exec(document.cookie))?g(f[1]):null};  
 //]]>  
 </script>  
 <script type='text/javascript'>  
 jQuery(document).ready(function($){  
 if($.cookie('popup_facebook_box') != 'yes'){  
 $('#fbox-background').delay(1000).fadeIn('medium');  
 $('#fbox-button, #fbox-close').click(function(){  
 $('#fbox-background').stop().fadeOut('medium');  
 });  
 }  
 $.cookie('popup_facebook_box', 'yes', { path: '/', expires: 7 });  
 });  
 </script>  
 <div id='fbox-background'>  
 <div id='fbox-close'>  
 </div>  
 <div id='fbox-display'>  
 <div id='fbox-button'>  
 </div>  
 <iframe allowtransparency='true' frameborder='0' scrolling='no' src='//www.facebook.com/plugins/likebox.php?  
 href=https://www.facebook.com/ArunEworld&width=539&height=355&colorscheme=light&show_faces=true&show_border=false&stream=false&header=false'  
 style='border: none; overflow: hidden; background: #fff; width: 539px; height: 300px;'></iframe>  
 <div id="fbox-link">Powered by <a style="padding-left: 0px;" href="https://www.facebook.com/ArunEworld" rel="nofollow">ArunEworld</a></div>  
 </div>  
 </div>

 

  •  Facebook Popup Like Box Customization
    • The widget will appear 5 seconds after the page finishes loading. if you want to change this delay, change the number 1000 to a greater or lessor number in this post 
      .delay(5000)
    •  By default, the like box only shows up the first time the user visit your page. if you world like the pfacebooj box to popup every time the page loads, then remove this line of ocde  $.cookie(‘popup_facebook_box’, ‘yes’, { path: ‘/’, expires: 7 });
    •  If you want to display only when visit your homepage, go to “Template”->Edit HTML->Serch by (CTRL+F) </body> then paste the facebook popup widget right abovethe body tag make sure to include the conditional tag below <b:if cond=’data:page.type == “index”‘>ADD THE FACEBOOK WIDGET CODE HERE </b:if> –>Save

 

Blogger Code For-matter


How to Disable Copy Paste In Blogger Blog?

Steps

  • Go to Blogger Account >>> Blogger Dashboard

  • After Selecting Layout Tab will Open. Click On”  Add a Gadget “.

  • Now a again a New Window will Open.Here select ” HTML/Java Script

  • Now Copy the Given Below Code and Paste it Here.

 

Code

<!- START disable copy paste -->
<script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'></script>

<script type='text/javascript'>
    if(typeof document.onselectstart!="undefined" )
    {
        document.onselectstart=new Function ("return false" );
    }
    else
    {
        document.onmousedown=new Function ("return false" );document.onmouseup=new Function ("return false");
    }
</script>
<!-- End disable copy paste -->

 

Reference

 



FQA

  • how to backup blogspot Automatically?
    • Answer will add soon.

 

Google – YouTube

YouTube is a popular video viewer tool. Its stored lot of videos from the user.

  • You can see your all Google Brand Accounts list using this link here.
  • In case if you struggled of this product you can contact the YouTube Help Center.
  • You can see the Advance Settings of your account using this link here.
  • You can see your all YouTube Channels  using this link here.

YouTube Subscribe button embed in website

Options
Channel Name or ID:
Layout:
Theme:
Subscriber count:

 

 

Layout: default, Theme: Default , Subscriber count: Default

Layout: full, Theme: Default , Subscriber count: Default

Layout: full, Theme: Dark, Subscriber count: Default


YouTube Video thumbnail image and video size

  1. YouTube Videos custom thumbnail image
    • Have a resolution of 1280×720 (with minimum width of 640 pixels).
    • Be uploaded in image formats such as .JPG, .GIF, .BMP, or .PNG.
    • Remain under the 2MB limit.
    • Try to use a 16:9 aspect ratio as it’s the most used in YouTube players and previews.
  2. Videos Size
    • Resolution    Name
      • 3840×2160    2160p
      • 2560×1440    1440p
      • 1920×1080    1080p
      • 1280×720    720p
      • 854×480        480p
      • 640×360        360p
      • 426×240        240p

FAQ

  • How to create a new YouTube channel?
  • How to Claim URL of my Channel?

 

 

ESP8266 NodeMCU Tutorial – Get Google Time

This tutorial will discuss get the google time using NodeMCU in ESP8266. The ESP8266 NodeMCU is a popular development board known for its versatility and ease of use in Internet of Things (IoT) projects. In this tutorial, we’ll explore how to leverage the ESP8266 NodeMCU to fetch the current time from Google’s time servers. Accurate timekeeping is crucial for many IoT applications, such as data logging, scheduling tasks, and synchronization across multiple devices. By connecting to Google’s time servers, we can ensure that our ESP8266 NodeMCU has access to precise and reliable time information.

Code for Get Google Time using NodeMCU in ESP8266

  • You can use any server instead of google. But that server should install http server
  • Use conn:connect(80,”google.com”)   or Google static ip address conn:connect(80,”64.233.161.94″)
-- https://www.aruneworld.com/embedded/espressif/esp8266/esp8266_nodemcu/
-- Tested By  : Arun(20170219)
-- Example Name : AEW_GoogleTime.lua

station_cfg={}
station_cfg.ssid= "Arun" station_cfg.pwd= "ArunEworld" -- Change your SSID and Password
wifi.setmode(wifi.STATIONAP)
wifi.sta.config(station_cfg)
wifi.sta.connect()

wifi.eventmon.register(wifi.eventmon.STA_CONNECTED, function(T)
print("\n\tSTA - CONNECTED".."\n\tSSID: "..T.SSID.."\n\tBSSID: "..T.BSSID.."\n\tChannel: "..T.channel)

end)
wifi.eventmon.register(wifi.eventmon.STA_DISCONNECTED, function(T)
  print("\n\tSTA - DISCONNECTED".."\n\tSSID: "..T.SSID.."\n\tBSSID: "..T.BSSID.."\n\treason: "..T.reason)
end)
wifi.eventmon.register(wifi.eventmon.STA_GOT_IP, function(T)
  print("\n\tSTA - GOT IP".."\n\tStation IP: "..T.IP.."\n\tSubnet mask: "..T.netmask.."\n\tGateway IP: "..T.gateway)
  sta_ip = T.IP
end)



wifi.eventmon.register(wifi.eventmon.STA_CONNECTED, function(T)
print("\n\tSTA - CONNECTED".."\n\tSSID: "..T.SSID.."\n\tBSSID: "..T.BSSID.."\n\tChannel: "..T.channel)

end)
wifi.eventmon.register(wifi.eventmon.STA_DISCONNECTED, function(T)
  print("\n\tSTA - DISCONNECTED".."\n\tSSID: "..T.SSID.."\n\tBSSID: "..T.BSSID.."\n\treason: "..T.reason)
end)
wifi.eventmon.register(wifi.eventmon.STA_GOT_IP, function(T)
  print("\n\tSTA - GOT IP".."\n\tStation IP: "..T.IP.."\n\tSubnet mask: "..T.netmask.."\n\tGateway IP: "..T.gateway)
  sta_ip = T.IP
end)



conn=net.createConnection(net.TCP, 0) 

conn:on("connection",function(conn, payload)
            conn:send("HEAD / HTTP/1.1\r\n".. 
                      "Host: google.com\r\n"..
                      "Accept: */*\r\n"..
                      "User-Agent: Mozilla/4.0 (compatible; esp8266 Lua;)"..
                      "\r\n\r\n") 
            end)
            
conn:on("receive", function(conn, payload)
    print('\nRetrieved in '..((tmr.now()-t)/1000)..' milliseconds.')
    print('Google says it is '..string.sub(payload,string.find(payload,"Date: ")
           +6,string.find(payload,"Date: ")+35))
    conn:close()
    end) 
t = tmr.now()    
conn:connect(80,'google.com')
tmr.alarm(0,10000,1,function() conn:connect(80,'google.com') end) --every second Once
SectionExplanation
ConfigurationConfiguration for Wi-Fi connection.
Wi-Fi ModeSets the Wi-Fi mode to station mode.
Wi-Fi Event HandlersRegisters event handlers for Wi-Fi connection status: STA_CONNECTED, STA_DISCONNECTED, and STA_GOT_IP. These handlers print relevant information when these events occur.
TCP ConnectionCreates a TCP connection to communicate with Google’s server.
Connection HandlerEvent handler for connection. Upon establishing a connection, sends an HTTP request to Google’s server.
Data Receive HandlerEvent handler for receiving data. When receiving a response from Google’s server, it prints the retrieved time.
TimerSets a timer to attempt reconnection to Google’s server every 10 seconds.
ESP8266 NodeMCU Tutorial – Get Google Time

Result

> dofile("AEW_GoogleTime.lua")
> 
 STA - CONNECTED
 SSID: ArunEworld
 BSSID: c0:d0:70:c9:8d:a1
 Channel: 7

 STA - GOT IP
 Station IP: 192.168.1.103
 Subnet mask: 255.255.255.0
 Gateway IP: 192.168.1.1

Retrieved in 7881.115 milliseconds.
Google says it is Thu, 27 Apr 2017 15:05:55 GMT

Retrieved in 10166.297 milliseconds.
Google says it is Thu, 27 Apr 2017 15:05:58 GMT

Retrieved in 20194.126 milliseconds.
Google says it is Thu, 27 Apr 2017 15:06:08 GMT

--like every 10 seconds Once, will get time from Google--