Computer Tips

Shortcut keys for YouTube

Many services use shortcut keys, YouTube also have some shortcut keys. List of keys are below 1. Make the video Full screenPress “f” key from your keyboard to make YouTube video as a full screen. 2. Make the video to normal screenPress “ESC” key from your keyboard to make YouTube video as a normal screen. […]

Read More
News

IHC bars Judicial officers to use phone during duty time

IHC bars Judicial officers to use phone during duty time | GNN | 23 Sep 2019

Read More
NodeJs
Programming
Troubleshooting

Create your own custom mixin in LoopBack NodeJs

A mixin is nothing more than a method of two parameters: function(Model, options): “Model” is the model on which the mixin will be applied “options” are the options that may be defined in the model.json under themixins key. To add a mixin you only need to add mixinName: true. If instead of true you provide […]

Read More
NodeJs
Programming
Troubleshooting

Create your own BelongsTo Required relation Mixin in loopback NodeJs

A mixin is nothing more than a method of two parameters: function(Model, options): “Model” is the model on which the mixin will be applied “options” are the options that may be defined in the model.json under themixins key. To add a mixin you only need to add mixinName: true. If instead of true you provide […]

Read More
NodeJs
Programming
Troubleshooting

How to remove flow issues in node modules?

During run flow command, we were facing flow issues in node modules. Error is something like this: Errors Error: node_modules/bcryptjs/src/bower.json:4 4: “version”: /*?== VERSION */, ^ Unexpected token , Error: node_modules/strong-globalize/test/fixtures/extract013/intl/en/messages.json:2 2: “msgPredefined”: “This is a predefined message in a broken json ^ Unexpected token ILLEGAL Found 42 errors npm ERR! code ELIFECYCLE npm ERR! […]

Read More
Interview questions
PHP
PHP interview questions
Programming

What is the difference between $_GET and $_POST

GET: Transfers the form data through http head location & it displays the data on URL address bar. Data can be cached. Is unsecured. URL are saved in browser history. URL can be bookmarked. Transfers limited amount of data. Can’t upload the file. POST: Transfers the form data through document body. Data can not be […]

Read More
PHP
Programming

Don’t Copy Extra Variables

Some people use predefined variables to smaller-named variables to make their code appealing. This is redundant and could increase the memory of your script. Examples of variable usage: Good Approach: <?php echo strip_tags($_POST[‘myVariable’]); ?> Bad Approach: <?php $myVariable = strip_tags($_POST[‘myVariable’]); echo $myVariable; ?>

Read More
PHP
Programming
Wordpress

Insert Adsense Code Between WordPress Posts

Best place for adsense codes is between the post where it can click more. Mostly wordpress blogers use plugins for this but you can place the below code in your functions.php theme file before end of PHP “?>” tag. function ad_content($content) {     $postParas = explode(“</p>”, $content);     $content = ”;     for ($i = […]

Read More
Wordpress

The7 – Responsive Multi-Purpose WordPress Theme

The7 v3.0.0 – Responsive Multi-Purpose WordPress Theme – ThemeForest The7 is perfectly scalable, performance and SEO optimized, responsive, retina ready multipurpose WordPress theme. It will fit every site – big or small. From huge corporate portals to studio or personal sites – The7 will become a great foundation for your next project! v.3.0.0: 1. New […]

Read More
Wordpress

WordPress theme Shuttershot

WordPress theme: Shuttershot Shuttershot is a fullscreen slideshow template.  Shuttershot theme is ideal for photography websites or for their portfolio in style.The theme has option to use a full screen slideshow on the homepage or a regular blog with image slideshow as the background. If use slideshow on homepage, set custom page template as the […]

Read More
Do NOT follow this link or you will be banned from the site!