Skip to main content


Showing posts from May, 2017

[HDGEM] How do I open directory inside Vim?

Try :Ex[plore]. From :help Ex: :Explore will open the local-directory browser on the current file's directory (or on directory [dir] if specified). The window will be split only if the file has been modified, otherwise the browsing window will take over that window. Normally the splitting is taken horizontally.

:Sex command. It does the split window for you, and drops you into the current directory. :Sex path/to/dir

Posted By Blogger to HDGEM at 5/26/2017 07:02:00 AM

[HDGEM] DoubleClick for Publishers is a single platform that allows you to manage and deliver all of your web, mobile, and video advertising across all your sales channels.

DoubleClick for Publishers doesn't come with it's own ads, but rather helps you scale your ads business by managing your ad sales across a variety of ad networks such as AdSense, ad exchanges like DoubleClick and direct advertising partners.

Posted By Blogger to HDGEM at 5/26/2017 01:06:00 AM

[HDGEM] The main difference between DoubleClick Ad Exchange and AdSense

DoubleClick Ad Exchange gives you real-time access to the largest pool of advertisers.The main difference between DoubleClick Ad Exchange and AdSense is that AdSense does a lot of the technical settings and optimization work for you, such as automating the sale of all your ad space to the highest bidder. With DoubleClick Ad Exchange you manage these adjustments yourself, controlling exactly how your inventory is sold.

Posted By Blogger to HDGEM at 5/26/2017 12:53:00 AM

[HDGEM] How to set up canned responses in Google inbox

There are answers to common questions that you're asked via email.

Go to settings then labs. Search canned responses, click enable, and then save. When you compose an email, there's an arrow in the bottom right corner. Just hover over canned responses and save the canned response.

Posted By Blogger to HDGEM at 5/25/2017 07:26:00 PM

[HDGEM] How to increase GlassFish server asadmin deployment timeout

If your app is big, you might encounter the following when deploying it:

No response from Domain Admin Server after 600 seconds. The command is either taking too long to complete or the server has failed. Please see the server log files for command status. Command deploy failed.

One way to fix it is to increase GlassFish server asadmin deployment timeout. The default deployment timeout value of asadmin is 600 seconds. You can set the environment variable AS_ADMIN_READTIMEOUT to increase the asadmin deployment timeout from 600 seconds to 3600 seconds.
export AS_ADMIN_READTIMEOUT="3600000"or put it to glassfish/conf/asenv.conf.

Posted By Blogger to HDGEM at 5/25/2017 04:27:00 PM

How to backup and restore domain in Glassfish / Payara Java EE application Server

1.  Execute asadmin utility of your Glassfish distribution. 2.  Stop your domain if it’s running by issuing stop-domain <YOUR DOMAIN NAME> command. 3.  Run backup-domain <YOUR DOMAIN NAME>. 4.  After executing the backup domain command, your backed up domain is located under glassfish_ home/domains/<YOUR DOMAIN NAME>/backups  directory a .zip file. 5.  Copy the generated .zip backup file to other location. 6.  Now delete your existing domain by issuing delete-domain <YOUR DOMAIN NAME> command. (optional, since we are going to restore it by force later) 7.  Open your backup file, normally packaged as a zip file. Open the file and change property to your desired name. 8.  Save the file and make sure that the modification is applied to your zip file too. 9.  Bring up asadmin utility up and issue the following command restore-domain --filename <PATH TO BACKUP ZIP FILE> --force 10.  Execute list-domains command to see your doma…

How to recover / reset Glassfish admin password

Replace the file "admin-keyfile" under "/installation-folder/glassfish/domains/domain1/config/" or "${com.sun.aas.instanceRoot}/config/admin-keyfile" with same of any of working domains file.
"admin-keyfile" is under "/installation-folder/glassfish/domains/domain1/config/" or "${com.sun.aas.instanceRoot}/config/admin-keyfile". It maybe different if this configuration has been customized. You can see it at admin console, normally at http://localhost:4848

Go to section Configurations → server-"→ Realms →admin-realm
The default configuration is: fileRealm  ${com.sun.aas.instanceRoot}/config/admin-keyfile
You can directly see it in domain.xml too.

So that password will be same used in domains used earlier and you may change the password once after the login.

The content of admin-keyfile for password "changit" is:


The content of admin-keyfi…

[HDGEM] Email is important.

Your inbox is the one place where everything from receipts and newsletters to correspondence from colleagues and best friends comes together. Your email address itself regularly serves as your digital passport, too—it's how you login to most apps and sites.

Posted By Blogger to HDGEM at 5/25/2017 09:49:00 AM

[HDGEM] How to test Google Page-level ads on your web page

Make sure you've placed your ad code on the pages you want to test.
On a mobile device, visit your page and add #googleads to the end of the URL.
Select the ad format that you want to test, then check the results on your device.
For vignettes, click any of the highlighted links on your page to test the ads are working.

Posted By Blogger to HDGEM at 5/25/2017 09:06:00 AM

[HDGEM] Trusted End Node Security (TENS) creates a secure end node from trusted media on almost any Intel-based computer (PC or Mac).

Trusted End Node Security
TENS boots a thin Linux operating system from removable media without mounting a local hard drive. Administrator privileges are not required; nothing is installed. TENS turns an untrusted system (such as a home computer) into a trusted network client. No trace of work activity or malware can be written to the local computer. Simply plug in your USB smart card reader to access CAC and PIV-restricted US government websites.

Posted By Blogger to HDGEM at 5/25/2017 06:47:00 AM

[HDGEM] How to install Kernel driver for VirtualBox

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall virtualbox-dkms package and load the kernel module by executing

'modprobe vboxdrv'

as root.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

Posted By Blogger to HDGEM at 5/25/2017 06:34:00 AM

[HDGEM] You’re never 100% safe.

Never underestimate your vulnerability to an outside force. This doesn't mean you should live in fear, but just be aware that you're never 100% safe.

Posted By Blogger to HDGEM at 5/24/2017 07:58:00 PM

[HDGEM] The new Microsoft Surface Pro — the Surface Pro 5

Surface Pro 5 measures in at 8.5mm thin while packing a 12.3″ PixelSense display with 2736 x 1824 resolution and a 3:2 aspect ratio. 
Battery life is for up to 13.5 hours of video playback while the optional type cover — like the Surface Laptop's keyboard — appears wrapped in Alcantara along with a glass trackpad. 
Best of all for creatives, however, is the new kickstand and next-gen Surface Pen. The new kickstand can now prop the tablet up at a 165-degree angle — said by Microsoft to be ideal for drawing — while the Pen offers double the sensitivity with 4,096 pressure levels for a more natural feel.

Posted By Blogger to HDGEM at 5/24/2017 05:40:00 PM

[HDGEM] How to generate a random password from command line

To generate a random password you can use pwgen: pwgen generates random, meaningless but pronounceable passwords. These passwords contain either only lowercase letters, or upper and lower case mixed, or digits thrown in. Uppercase letters and digits are placed in a way that eases remembering their position when memorizing only the word. $ pwgen -h Usage: pwgen [ OPTIONS ] [ pw_length ] [ num_pw ] Options supported by pwgen: -c or --capitalize Include at least one capital letter in the password -A or --no-capitalize Don't include capital letters in the password -n or --numerals Include at least one number in the password -0 or --no-numerals Don't include numbers in the password -y or --symbols Include at least one special symbol in the password -s or --secure Generate completely random passwords -B or --ambiguous Don't include ambiguous characters in the password -h or --help Print a help message -H or --sh…

How to Debug SMTP from command line

Debug Email by Telnet [[email protected] ~]$telnet 25
Connected to
Escape character is '^]'.
220  ESMTP Exim 4.72 Thu, 15 Nov 2012 12:18:44 -0500
HELO your.domain
250 Hello your.domain []
MAIL FROM: [email protected]
250 OK
RCPT TO: [email protected]
250 Accepted
354 Enter message, ending with "." on a line by itself
Subject: Welcome to

(enter twice here)
input your content here.
("." to end the content)
250 OK id=1TZ37a-0001uT-NO
221 closing connection

An email may be submitted to an SMTP server using: $ nc localhost 25 << EOF HELO MAIL FROM: <[email protected]> RCPT TO: <[email protected]> DATA Body of email. . QUIT EOF

How to Set Default Java on CentOS

If you installed multiple versions of Java, you may want to set one as your default (i.e. the one that will run when a user runs the java command). Additionally, some applications require certain environment variables to be set to locate which installation of Java to use. This section will show you how to do this. By the way, to check the version of your default Java, run this command: java -version Using Alternatives The alternatives command, which manages default commands through symbolic links, can be used to select the default Java command. To print the programs that provide the java command that are managed by alternatives, use this command: sudo alternatives --config java

[HDGEM] How to bind docker ports to the host

You can supply -P or --publish-all=true|false to docker run which is a blanket operation that identifies every port with an EXPOSE line in the image's Dockerfile or --expose <port> commandline flag and maps it to a host port somewhere within an ephemeral port range. 

When you invoke docker run you can use either -p IP:host_port:container_port or -p IP::port to specify the external interface for one particular binding.

Posted By Blogger to HDGEM at 5/23/2017 09:24:00 AM

[HDGEM] Benefits of Mobile Sites for businesses

Build once, run everywhere Mobile Sites will work across iOS, Android, and all other platforms with a browser connection
Adaptability Your client can build a responsive site to address both phones and tablets rather than building two distinct apps for each device
Shorter development timelines Mobile Sites allow for easy updating (users don't need to accept or install your updates)
Lower development costs Mobile sites are generally less expensive to build because they use a single coding language (HTML)
The web is open for all Mobile sites require no approvals, revenue sharing, or marketplaces
Tracking is simpler Analytics and Conversion Tracking can extend to your client's mobile site, instead of installing a software development kit (SDK)

Posted By Blogger to HDGEM at 5/22/2017 06:59:00 AM

[HDGEM] In a mobile-led world, consumer expectations are high.

As users spend more time on mobile devices, getting mobile sites right is crucial to success. If your client's website is too slow to load, users will drop off. On the other hand, a fast-loading site with bad UX design makes it hard for users to complete their desired action.

Posted By Blogger to HDGEM at 5/22/2017 06:57:00 AM

[HDGEM] Job scams

Statistics collected by the Canadian Anti-Fraud Centre show 204 job scams in just the first two months of 2017, with a cost to victims of $500,000.

Posted By Blogger to HDGEM at 5/21/2017 05:21:00 AM

[HDGEM] Amazon Fire TV Edition Launch

Now available for pre-order, the all-new Amazon Fire TV Edition is a Smart TV that can integrate your visitors' content with live over-the-air TV broadcasts, streaming and subscription services. Including a Voice Remote with Alexa, your visitors can use their voice to control Live TV playback, play music and more.

Posted By Blogger to HDGEM at 5/21/2017 02:45:00 AM

[HDGEM] Google's smart city is appealing

Google's smart city is a city built from the ground up promises not just the convenience that comes with new technologies, but also the potential of environmental sustainability, health benefits, and even affordability of housing.

The vision entails high-speed internet access and free wifi across the hub, self-driving cars, ride-sharing, and sensors throughout that automate the way people engage with their surroundings, making everything from street lights to air conditioning smarter and more efficient.

Posted By Blogger to HDGEM at 5/21/2017 01:42:00 AM

[HDGEM] Do you ever wonder why some apps get thousands of downloads in the first month while others get none at all

It's because customers make snap decisions about how good an app is based on the information on the app's product page. You don't need a large marketing budget to make your app store page stand out – you need compelling content that captures the interest of customers.

Posted By Blogger to HDGEM at 5/20/2017 04:02:00 PM

[HDGEM] YouTubers are the self-made celebrities of today

People who have earned an audience by creating content geared toward teaching, entertaining, reviewing, and being awesome on the internet. And most do it just to do it—to scratch the itch of creating things and being in front of an audience.

Posted By Blogger to HDGEM at 5/20/2017 03:25:00 PM

[HDGEM] Troubleshooting is very different for Dockerized applications.

Docker adds complexity to the software stack. Troubleshooting is very different for Dockerized applications. You can't make do with just a few basic metrics like availability, latency, and errors per second. These worked for traditional apps that ran on a single node and needed very little troubleshooting. With Docker, you need to search far and wide to identify root causes, and the time it takes to resolve issues is critical to delivering an outstanding user experience.

Posted By Blogger to HDGEM at 5/20/2017 10:15:00 AM

[HDGEM] DevOps is a set of practices that automates the processes between software development and IT teams

DevOps is a set of practices that automates the processes between software development and IT teams, in order that they can build, test, and release software faster and more reliably. The concept of DevOps is founded on building a culture of collaboration between teams that historically functioned in relative siloes. The promised benefits include increased trust, faster software releases, ability to solve critical issues quickly, and better manage unplanned work.

Posted By Blogger to HDGEM at 5/20/2017 09:43:00 AM

[HDGEM] DevOps begins with a culture shift.

Processes, methodologies and tools help support that culture. No matter where you are in your DevOps journey, the principles of agile, continous delivery, Git, and IT, will help you begin or become an expert.

Posted By Blogger to HDGEM at 5/20/2017 09:40:00 AM

[HDGEM] Start building your chatbot today and enter the competition for a chance to win prizes worth over $10,000!

Lex lets you build conversational interfaces into any application using voice and text and is powered by the same technology as Amazon Alexa. AWS Lambda will allow you to run bot code for tasks such as data retrieval, updates, and custom logic, all without provisioning or managing servers.

Posted By Blogger to HDGEM at 5/19/2017 06:11:00 PM

[HDGEM] Use AirPrint to print from your iPhone, iPad, or iPod touch

Print with AirPrint

Open the app you want to print from.
To find the print option, tap app's share icon
Tap Print.
Tap Select Printer and choose an AirPrint-enabled printer.
Choose the number of copies or other options, like which pages you want to print.
Tap Print in the upper-right corner.

Posted By Blogger to HDGEM at 5/18/2017 08:18:00 PM

[HDGEM] How to reset Chromecast (factory data reset)?

Use the button on Chromecast to reset Chromecast

Hold down the button (next to the micro USB port) on your Chromecast for at least 25 seconds or until the solid light begins flashing. Then disconnect the USB power cable. Wait a few seconds. Connect the USB cable again. This will factory reset Chromecast (factory data reset).

Posted By Blogger to HDGEM at 5/18/2017 08:16:00 PM

[HDGEM] Cosmos DB indexes every column by default.

Unlike many NoSQL databases -- or relational databases, for that matter -- which can be stingy with indexing, Cosmos DB indexes every column by default. Developers are free to "opt out" of indexing certain columns, but they needn't "opt-in" to get them.

Posted By Blogger to HDGEM at 5/18/2017 08:01:00 PM

[HDGEM] Google Drive Quick Access intelligently predicts and surfaces files

Google Drive Quick Access intelligently predicts and surfaces files based on, among other things:
who specific files are frequently shared with
when relevant meetings occur
what files are used at specific times of the day
Check out Quick Access on the Drive home page today.
Launch Details
Release track: 

Posted By Blogger to HDGEM at 5/18/2017 07:55:00 PM

[HDGEM] Based on Google Compute Engine, the App Engine flexible environment automatically scales your app up and down while balancing the load.

Microservices, authorization, SQL and NoSQL databases, traffic splitting, logging, versioning, security scanning, and content delivery networks are all supported natively. In addition, the App Engine flexible environment allows you to customize your runtime and even the operating system of your virtual machine using Dockerfiles.

Posted By Blogger to HDGEM at 5/18/2017 05:31:00 PM

[HDGEM] How to find zombie process?

ps aux | grep 'Z' root 41613 0.0 0.0 0 0 ? Z 16:17 0:00 [xrdp-chansrv] <defunct>Find the zombie's parent:pstree -p -s 41613 systemd(1)───xrdp-sesman(3065)───xrdp-sessvc(41608)───xrdp-chansrv(41613)  

Posted By Blogger to HDGEM at 5/18/2017 01:38:00 PM

[HDGEM] How to fix: Sudo: Sorry, You Must Have a Tty to Run Sudo

Connect by ssh using -t options

-t Force pseudo-tty allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services. Multiple -t options force tty allocation, even if ssh has no local tty.

Posted By Blogger to HDGEM at 5/18/2017 12:14:00 PM

[HDGEM] Google Payment Request API is an open and cross-browser standard that replaces traditional checkout flows by allowing merchants to request and accept any payment in a single API call.

The Payment Request API is a system that is meant to eliminate checkout forms. It vastly improves user workflow during the purchase process, providing a more consistent user experience and enabling web merchants to easily leverage disparate payment methods. The Payment Request API is not a new payment method, nor does it integrate directly with payment processors; rather, it is a process layer whose goals are:
To let the browser act as intermediary among merchants, users, and payment methodsTo standardize the payment communication flow as much as possibleTo seamlessly support different secure payment methodsTo work on any browser, device, or platform—mobile or otherwise  The Payment Request API allows the web page to exchange information with the user agent while the user is providing input, before approving or denying a payment request.

Posted By Blogger to HDGEM at 5/18/2017 11:18:00 AM

[HDGEM] Heap Dump on OOME

Heap Dump on OOME takes a heap dump when the application encounters an OutOfMemoryException. -XX:+HeapDumpOnOutOfMemoryError as a JVM parameter. This causes the JVM to create a heap dump file when it encounters an OutOfMemoryError. This file can be then loaded into JVisualVM (or into a profiler) and analyzed there. The directory where the file is stored is defined by the -XX:HeapDumpPath parameter.

Posted By Blogger to HDGEM at 5/18/2017 11:09:00 AM

[HDGEM] AES stands for Advance Encryption Standard.

MySQL AES_ENCRYPT function can encode the data with 128 bits key length but it can be extended up to 256 bits key length. It encrypts a string and returns a binary string. The return result will be NULL when an argument is NULL. Syntax :AES_ENCRYPT(str, key_str);

Posted By Blogger to HDGEM at 5/18/2017 08:59:00 AM

[HDGEM] MySQL encryption and decryption functions are supported on AWS Aurora

I have tested it is supported on AWS Aurora:
INSERT INTO `tmp`.`test` ( `name`) VALUES ( AES_ENCRYPT("my secret", "mykey")); 
Attached is what is looks like:
Row 1 is not encrypted, while row 2 is encrypted:

Posted By Blogger to HDGEM at 5/18/2017 08:51:00 AM

[HDGEM] How to find your firefox profile?

Click the menu button , click help and select Troubleshooting Information. The Troubleshooting Information tab will open.
Under the Application Basics section, click on Open Directory. A window with your profile files will open.

Posted By Blogger to HDGEM at 5/18/2017 08:00:00 AM