Skip to main content


Showing posts from January, 2017

[HDGEM] Remote work is part of software development today

A global workforce brings many benefits but it also means your code is being downloaded to hundreds of difficult to secure laptops. IT teams are frustrated trying to protect laptops against hacking, theft and loss. Meanwhile developers resent any security controls that hamper their ability to adjust code.

Posted By Blogger to HDGEM at 1/31/2017 07:36:00 PM

[HDGEM] How to create a file of random data

The following commands create a file that contains exactly 3 MiB (3 x 1024 x 1024 bytes) of random data.
$ dd if=/dev/urandom of=largefile bs=3145728 count=1 1+0 records in 1+0 records out 3145728 bytes (3.1 MB) copied, 0.205813 s, 15.3 MB/sdd is a utility that copies a number of bytes from an input file to an output file. The above example uses the device file /dev/urandom as a source of random data.

Posted By Blogger to HDGEM at 1/31/2017 01:44:00 PM

[HDGEM] Using Amazon Glacier with the AWS Command Line Interface

$ aws glacier helpAmazon Glacier is a storage solution for "cold data." Amazon Glacier is an extremely low-cost storage service that provides secure, durable, and easy-to-use storage for data backup and archival. With Amazon Glacier, customers can store their data cost effectively for months, years, or decades. Amazon Glacier also enables customers to offload the administrative burdens of operating and scaling storage to AWS, so they don't have to worry about capacity planning, hardware pro- visioning, data replication, hardware failure and recovery, or time-consuming hardware migrations.

Posted By Blogger to HDGEM at 1/31/2017 01:40:00 PM

[HDGEM] Independent Software Vendor (ISV) applications on Azure

Want to test out Independent Software Vendor (ISV) applications on Azure without the commitment of a subscription? Try them out for free in a sandbox environment and get a sense of how Azure runs your favorite apps. Launch a pre-configured image running on Azure with a couple of clicks to try it out.Get started

Posted By Blogger to HDGEM at 1/31/2017 12:45:00 PM

[HDGEM] How to Connect a Custom Domain for FireBase App

Firebase Hosting can connect to your own custom custom domain, like or Firebase Hosting provisions an SSL certificate for your domain and serves your content over a global CDN.

Before connecting a custom domain, you'll need to deploy your site to its subdomain. This will give you access to the hosting admin panel, where you'll be able to see a history of deploys and manage custom domains.

Posted By Blogger to HDGEM at 1/31/2017 06:33:00 AM

[HDGEM] Value and uniqueness of the content.

Most of the content is spun, re-spun, rephrased, paraphrased, etc. from various news sources or sources of original journalistic work.

If you are going to write an article in your own words, which is already plenty available in various newsfeeds, where is your value proposition? What is so very different about your content that it should have a Dollar value attached to it?

Posted By Blogger to HDGEM at 1/30/2017 11:13:00 PM

[HDGEM] Build Value.

Whatever you may do online, be it running a blog, running a forum, selling software, providing services, etc. you must build a value for your product &/or service, for others to be able to find it worthy to spend money on it, either directly (purchase) or indirectly (viewership, reading, advertising, etc.).

Posted By Blogger to HDGEM at 1/30/2017 06:37:00 PM

[HDGEM] Google is stopping supporting Chrome apps on Windows, Mac and Linux

Google said it would continue to enhance the Chrome apps platform on Chrome OS notebooks. Chrome apps are basically apps that use web technologies but can launch outside the Chrome browser, making them look and feel to the user just like regular standalone apps, even though they're actually still browser-based.

Posted By Blogger to HDGEM at 1/30/2017 05:48:00 PM

[HDGEM] Vim has two basic modes. One is insert mode, Another is normal mode

Vim has two basic modes. 
One is insert mode, in which you write text as if in normal text editor.
Another is normal mode which provides you efficient ways to navigate and manipulate text.

At any time, you can see which mode you are in on the status bar which is located at the top of the editor.To change between modes, use Esc for normal mode and i for insert mode

Posted By Blogger to HDGEM at 1/30/2017 02:13:00 PM

[HDGEM] Oracle JavaScript Extension Toolkit (JET) empowers developers by providing a modular open source toolkit based on modern JavaScript, CSS3 and HTML5 design and development principles.

Oracle JET is targeted at intermediate to advanced JavaScript developers working on client-side applications. It's a collection of open source JavaScript libraries along with a set of Oracle contributed JavaScript libraries that make it as simple and efficient as possible to build applications that consume and interact with Oracle products and services, especially Oracle Cloud services.

Posted By Blogger to HDGEM at 1/30/2017 12:32:00 PM

[HDGEM] URL shorteners are helpful when sharing your content

Some social media, like Twitter, have a character limit so you have to be concise and relevant when posting a tweet. Using a URL shortener can thus help you to put more accurate information about the content that you are posting instead of having a tweet with a really long URL. It is also possible to brand a URL so that you know if the content has been shared by a company or a brand in particular.

Posted By Blogger to HDGEM at 1/30/2017 10:23:00 AM

[HDGEM] How to create .desktop file in Xfce

If you prefer to work in a GUI (allows browsing for the icon) you can create the .desktop file using

exo-desktop-item-edit --create-new ~/.local/share/applications

But the new file will only have category Application so will probably need editing afterwards.

Example desktop file:

eclipse.desktop in ~/.local/share/applications: [Desktop Entry] Version=1.0 Type=Application Encoding=UTF-8 Exec=eclipse Icon=eclipse StartupNotify=false Categories=X-XFCE;X-Xfce-Toplevel; OnlyShowIn=XFCE; Name=Eclipse Comment=Eclipse Java IDE

Posted By Blogger to HDGEM at 1/30/2017 08:35:00 AM

[HDGEM] DevOps had became a permanent topic of discussion in the world of software development,

There's been a push from thought leaders, developers, and businesses to adopt the tools and methodologies to achieving Continuous Delivery. 
The benefits are obvious: with increased collaboration between development and operations teams, automated testing and deployments, and a supportive culture, bottlenecks can be eliminated, code changes can be deployed faster, and applications can recover from downtime much quicker.

Posted By Blogger to HDGEM at 1/30/2017 08:27:00 AM

[HDGEM] Google Cloud Platform has released an open source Zipkin server that allows Zipkin-compatible clients to send traces to Google’s own Stackdriver Trace distributed tracing service for analysis.

This Zipkin/Stackdriver Trace integration is aimed at developers whose applications and services are written in a language or framework that Stackdriver Trace doesn't officially support, and owners of applications that are currently instrumented with Zipkin who want access to Stackdriver Trace's advanced analysis tools.

Posted By Blogger to HDGEM at 1/29/2017 11:25:00 PM

[HDGEM] Google Stackdriver is a monitoring, logging and diagnostic service for applications on cloud platforms.

Although data captured from any cloud platform can be sent to the Stackdriver API, Stackdriver functionality is highly integrated with many services within Google Cloud Platform (GCP) (and can be used for free by GCP customers). Google Stackdriver consists of several tools, and includes Stackdriver Trace, a distributed tracing service that has evolved from the original Google Dapper distributed tracing system.

Posted By Blogger to HDGEM at 1/29/2017 11:23:00 PM

[HDGEM] Using an Ansible role to define a microservice offers the benefit of bringing existing Ansible content and community expertise to the new world of containers.

A role written to perform configuration updates or package installs on a virtual machine, or even bare metal, can just as easily be executed to perform the same tasks inside a container.

In fact, with very little change, if any, existing roles can be applied directly to the container image build process.

Posted By Blogger to HDGEM at 1/29/2017 10:49:00 PM


A GAUNT Wolf was almost dead with hunger when he happened to meet a House-dog who was passing by. "Ah, Cousin," said the Dog. "I knew how it would be; your irregular life will soon be the ruin of you. Why do you not work steadily as I do, and get your food regularly given to you?"
"I would have no objection," said the Wolf, "if I could only get a place."
"I will easily arrange that for you," said the Dog; "come with me to my master and you shall share my work."
So the Wolf and the Dog went towards the town together. On the way there the Wolf noticed that the hair on a certain part of the Dog's neck was very much worn away, so he asked him how that had come about.
"Oh, it is nothing," said the Dog. "That is only the place where the collar is put on at night to keep me chained up; it chafes a bit, but one soon gets used to it."
"Is that all?" said the Wolf. &q…

[HDGEM] EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.

The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. EditorConfig files are easily readable and they work nicely with version control systems.

Posted By Blogger to HDGEM at 1/29/2017 01:35:00 PM

[HDGEM] Setting options in Vim

Typing ":set xxx" sets the option "xxx".  Some options are:         'ic' 'ignorecase'       ignore upper/lower case when searching         'is' 'incsearch'        show partial matches for a search phrase         'hls' 'hlsearch'        highlight all matching phrases      You can either use the long or the short option name.

Posted By Blogger to HDGEM at 1/29/2017 08:41:00 AM

[HDGEM] Finding your niche is what it is all about.

Your talent is your niche. If you're good in article writing, thats a starting point. What type of articles you are good at writing, is your micro-niche. If you like photography, what type of photography do you like? Can you do stock photography? Are you good with portraits? You may love photography, but perhaps you're even better in doing post-production work on them. That just may be your micro-niche.

Posted By Blogger to HDGEM at 1/29/2017 07:23:00 AM

[HDGEM] CodeEval is platform for hosting coding challenges which has over 20,000+ competitive developers

Clients including eBay, BitTorrent, Warner Bros, Blizzard, as well as dozens of startups host challenges to source and screen developers.  CodeEval's stand alone technical screening product is now part of CodeVue and packaged into HireVue's digital interviewing platform.

Posted By Blogger to HDGEM at 1/29/2017 02:47:00 AM

[HDGEM] Java EE is built on top of Java SE

Unlike Java SE, the Enterprise Edition of Java is just a specification, with actual implementations available from Oracle (like the Glassfish reference implementation) and other vendors like RedHat and IBM.

Posted By Blogger to HDGEM at 1/29/2017 01:25:00 AM

[HDGEM] Computational photography

Computational photography takes a swarm of data from images or image sensors and combines it algorithmically to produce a photo that would be impossible to capture with film photography or digital photography in its more conventional form. Image data can be assembled across time and space, producing super-real high-dynamic range (HDR) photos—or just ones that capture both light and dark areas well.

Posted By Blogger to HDGEM at 1/28/2017 03:17:00 PM

[HDGEM] Java EE Alternatives

For instance, the servlet container Jetty didn't need to wait for Servlet 4.0 specs to be finalized and already has HTTP 2.0 support. Spring in general competes with Java EE, benefiting from previous specs.

Posted By Blogger to HDGEM at 1/28/2017 09:13:00 AM

[HDGEM] Without a doubt the single most used device that everyone uses these days are smartphones

It's amazing to think only 10 years ago, there were no iPhones or any smart phones at all. The wow phone of 2006 was the ultra thin Moto Razr. It was silver and it did not have a color screen, it did not have internet capabilities, it could not email and it certainly did not have any mobile apps.

But obviously that's all changed. These days changing your iPhone or Android is as common as going to the dentist because your introduction rate is up. Society is simply glued to smartphones due to all the snaps, posts, tweets, pins, replies and anything else I've missed.

Posted By Blogger to HDGEM at 1/27/2017 07:39:00 PM

[HDGEM] WildFly Swarm offers an innovative approach to packaging and running Java EE applications by packaging them with just enough of the server runtime

WildFly Swarm offers an innovative approach to packaging and running Java EE applications by packaging them with just enough of the server runtime to "java -jar" your application. It's MicroProfile compatible, too. And, it's all much, much cooler than that.

Posted By Blogger to HDGEM at 1/27/2017 02:08:00 PM

[HDGEM] How to add Add Unit Tests to Spring boot Application

Add this to your build file's list of dependencies: testCompile("org.springframework.boot:spring-boot-starter-test") If you are using Maven, add this to your list of dependencies:


Posted By Blogger to HDGEM at 1/27/2017 01:47:00 PM

[HDGEM] How to fix git: fatal: refusing to merge unrelated histories

You can use --allow-unrelated-histories to force the merge to happen.

"git merge" used to allow merging two branches that have no common base by default, which led to a brand new history of an existing project created and then get pulled by an unsuspecting maintainer, which allowed an unnecessary parallel history merged into the existing project. The command has been taught not to allow this by default, with an escape hatch "--allow-unrelated-histories" option to be used in a rare event that merges histories of two projects that started their lives independently.

Posted By Blogger to HDGEM at 1/27/2017 01:39:00 PM

[HDGEM] How to Customize Desktop Environment for xRDP Session

If you do not want to use the default desktop environment, you can customize it by creating a .Xclients file (X is capital!!!) in your home directory to launch the desktop environment you want and making it executable. In order to do this, open a terminal and run one of the following commands Gnome 3: echo "gnome-session" > ~/.Xclients chmod +x ~/.Xclients sudo systemctl restart xrdp.service Gnome Fallback: echo "gnome-fallback" > ~/.Xclients chmod +x ~/.Xclients sudo systemctl restart xrdp.service KDE: echo "startkde" > ~/.Xclients chmod +x ~/.Xclients sudo systemctl restart xrdp.service MATE: echo "mate-session" > ~/.Xclients chmod +x ~/.Xclients sudo systemctl restart xrdp.service Cinnamon: echo "cinnamon" > ~/.Xclients chmod +x ~/.Xclients sudo systemctl restart xrdp.service Xfce4: echo "startxfce4" > ~/.Xclients chmod +x ~/.Xclients sudo systemctl restart xrdp.service

Posted B…

How to Setup VNC Server (Linux Remote Desktop Access) on CentOS/RHEL 7 and Fedora

See also:
How to Install xrdp on CentOS 7 / RHEL 7

Install vnc package:
sudo yum install tigervnc-server
Add user: ( or just use existing linux user)
sudo useradd
Set VNC password for that user

sudo cp /lib/systemd/system/vncserver@.service /lib/systemd/system/vncserver@:1.service
(1 is the display number, you can setup 2, 3 ...)

sudo cat /lib/systemd/system/vncserver@\:1.service

Description=Remote desktop service (VNC)

# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l <USER> -c "/usr/bin/vncserver %i"
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'


sudo systemctl daemon-reload
sudo systemctl enable vncserver@:1.service sudo systemctl start vncserver@:1.service
Check the ser…

[HDGEM] Business reporting

Build out standard reporting capabilities as new requirements are identified to provide key metrics to the organization that are timely, consistent and reliable Manage and maintain the current reporting capabilities while looking for efficiencies and improvements to provide faster and more reliable reporting Identify, digest and communicate relevant data points with preliminary insights into business drivers

Posted By Blogger to HDGEM at 1/27/2017 07:08:00 AM

[HDGEM] Customer wants outcome

When you enter a new market, make sure that your software fulfills some customer need. Cherish your customers and get frequent feedback.

Don't turn your software in a bloated, feature-rich mess that nobody wants to use.

Posted By Blogger to HDGEM at 1/26/2017 07:53:00 PM

[HDGEM] Success with soft skills and EI

Technical ability is fairly easy to assess but it's their soft skills, their emotional intelligence that is going to have a much bigger impact on whether they will be successful or not.

Posted By Blogger to HDGEM at 1/26/2017 07:30:00 PM

[HDGEM] Stress is a formidable threat to your success

when stress gets out of control, your brain and your performance suffer.
Studies have long shown that stress can have a lasting, negative impact on the brain. Exposure to even a few days of stress compromises the effectiveness of neurons in the hippocampus—an important brain area responsible for reasoning and memory. Weeks of stress cause reversible damage to neuronal dendrites (the small "arms" that brain cells use to communicate with each other), and months of stress can permanently destroy neurons.

Posted By Blogger to HDGEM at 1/26/2017 07:14:00 PM

[HDGEM] Difficult people defy logic.

Some are blissfully unaware of the negative impact that they have on those around them, and others seem to derive satisfaction from creating chaos and pushing other people's buttons. Either way, they create unnecessary complexity, strife, and worst of all stress.

Posted By Blogger to HDGEM at 1/26/2017 07:11:00 PM

[HDGEM] Application Discovery and Delivery Intelligence is precisely what enterprises need.

It helps businesses find the components that will be the cloud services of the future, identifies the services which can easily become cloud services, shows the dependencies that allow developers to understand how data flows and how data is managed through an application and provides businesses with the intelligence needed to find the core services buried in their current applications so they can be unleashed for consumption by born-on-the-cloud applications.
Why would a cloud expert be interested in a new DevOps tool?

Posted By Blogger to HDGEM at 1/26/2017 06:32:00 PM

[HDGEM] Make reading even more magic.

Discover a great way to share favourite stories and engage new readers. Read-Aloud books feature lively narrations — by actors, celebrities, and sometimes the authors themselves — and synced word highlighting to help kids recognize words and learn to read. Experience Read-Aloud books on all your devices, including Apple TV. To get started, download Dora's Big Buddy Race for free.

Posted By Blogger to HDGEM at 1/26/2017 06:09:00 PM

[HDGEM] Why use a static site generator instead of a CMS

With a CMS you need to host a complex stack of software just to serve your site, typically you need a web server, a database, an application and then some caching.

If the same content is served to every user, caching could effectively be a set of static HTML pages that are generated every time content on the site changes.

What's the point in hosting this CMS on a publicly accessible server, paying for all the complexity and increasing the attack surface area for hackers?

Posted By Blogger to HDGEM at 1/26/2017 03:32:00 PM

[HDGEM] What is a Web Compat bug?

If you find a bug on a web site, and it's in more than three common browsers, please report the bug to the website.

If this is happening in just one or two browsers, this is pretty likely a Web Compat bug, which you should report over at

Posted By Blogger to HDGEM at 1/26/2017 02:02:00 PM

[HDGEM] Google Home vs Amazon Alexa.

Alexa has gained lots of support in this year's CES. You may think it's just an AI assistant. It's actually is a Eco-system. With Amazon Prime account, you can have Alexa do a lot of things, like music, shopping, video. It's linked with all Amazon services.

What can you do with Google Home? You'd have to purchase a youtube red service. Most of people have Amazon Prime or Netflix, but no YouTube red.

Posted By Blogger to HDGEM at 1/26/2017 12:10:00 AM

[HDGEM] Hacking Facebook accounts

Facebook accounts are compromised in such ways for the usual reasons — to send spam, to facilitate identity theft or to buy things through a connected credit card.

Posted By Blogger to HDGEM at 1/25/2017 11:58:00 PM

[HDGEM] Rogers Mobile Outgoing Email Server Configuration

[HDGEM] Holub on Patterns: Learning Design Patterns by Looking at Code

By: Allen Holub
Publisher: Apress
Publication Date: 28-SEP-2004

Overview: Holub on Patterns: Learning Design Patterns by Looking at Code

The existing books on design patterns take a catalog approach, where they show the individual design patterns in isolation. This approach is fundamentally flawed, because you can't see how the design patterns actually function in the real world. Most programmers learn by looking at computer programs. Holub on Patterns: Learning Design Patterns by Looking at Code teaches you design patterns in exactly this way: by looking at computer programs and analyzing them in terms of the patterns that they use. Consequently, you learn how the patterns actually occur in the real world.

Posted By Blogger to HDGEM at 1/03/2017 08:30:00 PM

[HDGEM] Selection sort - One of the simplest sorting algorithms

Selection sort.
One of the simplest sorting algorithms works as follows: First, find the smallest item in the array, and exchange it with the first entry. Then, find the next smallest item and exchange it with the second entry. Continue in this way until the entire array is sorted. This method is called selection sort because it works by repeatedly selecting the smallest remaining item.

Posted By Blogger to HDGEM at 1/08/2017 10:48:00 PM

How to Test Moneris Hosted Paypage Configuration

Moneris Hosted Paypage Sample XML output Sample test html page
<!DOCTYPE html> <html> <body> <FORMMETHOD="POST"ACTION=> <INPUTTYPE="HIDDEN"NAME="ps_store_id"VALUE="BX94Ctore3"> <INPUTTYPE="HIDDEN"NAME="hpp_key"VALUE="hp88KEKMD888"> <INPUTTYPE="HIDDEN"NAME="charge_total"VALUE="1.00"> <!--MORE OPTIONAL VARIABLES CAN BE DEFINED HERE --> <INPUTTYPE="HIDDEN"NAME="email"VALUE="[email protected]"> <INPUTTYPE="SUBMIT"NAME="SUBMIT"VALUE="Click to proceed to Secure Page"> </FORM> </body> </html>
Test locations:

Test Card Numbers
Card Plan Card Number

MasterCard 5454545454545454Visa 4242424242424242Amex 3735990050…

[HDGEM] How To Give a Linux User Root-level Access Using sudo

[email protected] [~]# visudo
This will open the sudoers file in the vi editor. In order to give the user full root privileges, add the following line to the file:
example ALL=(ALL) ALL
If you only want a user to run certain commands as root, you can create a command alias in your sudoers file, like so:
User_Alias ADMINS = example
Cmnd_Alias HTTPD = /etc/init.d/httpd
User_Alias creates a group of users that you can then assign command aliases to. (Additional users can be listed on the same line, separated by commas.) Cmnd_Alias then lists the various commands that the users of that Alias can run. The user alias is then assigned the command alias. The example user is now able to run the apache init script with full root privileges, which allows him to start, stop, and restart apache.
With this configuration, the user will have to type in his own password when he wishes to run sudo. If you don't need the user to type a password every time he…

[HDGEM] Difference between public and private repo of GitHub fork

Deleting a private repo deletes all its forks. Deleting a public repo keeps the forks but promotes one fork to be the new parent repo. If your boss makes your public repo private, it breaks all the existing forks and you won't be able to make pull requests from them to the private repo.

Posted By Blogger to HDGEM at 1/25/2017 01:49:00 AM

[HDGEM] iDRAC SM-CLP Command Line Example

To see all targets and properties in the address space, use the -l all option, as in the following command:

show -l all -d properties /

Using the -level Option

The show -level option executes show over additional levels beneath the specified target. For example, if you want to see the username and userid properties of the account1 through account16 targets beneath /system1/sp1, you could enter the following command:

show -l 1 -d properties=(userid,username) /system1/sp1/account*

Posted By Blogger to HDGEM at 1/24/2017 04:04:00 PM

How to Install xrdp on CentOS 7 / RHEL 7

$ sudo yum -y install xrdp
$ sudo systemctl start xrdp
$ sudo systemctl status xrdp
xrdp.service - LSB: Starts the xrdp daemon
   Loaded: loaded (/etc/rc.d/init.d/xrdp)
   Active: active (running) since Sat 2015-03-07 22:49:16 EST; 26s ago
  Process: 22272 ExecStart=/etc/rc.d/init.d/xrdp start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/xrdp.service
           ââ22281 /usr/sbin/xrdp
           ââ22285 /usr/sbin/xrdp-sesman

Mar 07 22:49:16 localhost.localdomain xrdp[22272]: Starting xrdp: [  OK  ]
Mar 07 22:49:16 localhost.localdomain xrdp[22272]: Starting xrdp-sesman: [  O...
Mar 07 22:49:16 localhost.localdomain systemd[1]: Started LSB: Starts the xrd...
Hint: Some lines were ellipsized, use -l to show in full.
$ sudo ss -antup | grep xrdp
tcp    LISTEN     0      2                      *:3389                  *:*      users:(("xrdp",22281,6))

tcp    LISTEN     0      2                      *:*      users:(("xrdp-sesman",22285,6))

By defaul…