Skip to main content

Posts

Showing posts from February, 2017

[HDGEM] How to format code from command line

Command-line source code formatter is a special functionality within Intellij IDEA and Intellij-based products like PhpStorm, WebStorm and etc. which allows to format arbitrary files outside a project scope using an XML file with exported code style settings and a file specification which defines a file or a group of files to be formatted. Although subsequent sections refer to Intellij IDEA they are equally applicable to so-called small IDEs. For the file(s) to be formatted there should be corresponding plug-ins which support required file types. For example, PHP files will be formatted only if PHP plug-in is installed. Formatter Launcher Script The script is format.bat on Windows or format.sh on Linux/Mac(?) in <Intellij dir>/bin directory, where <Intellij dir> is Intellij IDEA's root installation directory. The script launches Intellij IDEA or Intellij-based IDE which formats specified files and quits. If launched without any parameters or -h parameter, the scrip…

[HDGEM] Page speed diagnostics

Firebug
Use this tool to analyze your page's performance in Firefox.Moz Crawl Test
Summarize your redirects to see if there are areas where you can reduce the number of redirects you are using.PageSpeed
Get browser extensions from Google for both Firefox and Chrome to help you identify issues that are slowing down your site.YSlow
This Firefox add-on features a grading system to help you quickly see how well your site is performing and offer insight on how to improve your site speed. It needs to be used in conjunction with Firebug.WebPageTest.org
Get a quick report of how a page is performing.

--
Posted By Blogger to HDGEM at 2/28/2017 12:42:00 PM

[HDGEM] Azure and AWS for multicloud solutions

As the leading public cloud platforms, Microsoft Azure and Amazon Web Services (AWS) each offer businesses a broad and deep set of capabilities with global coverage.

Yet many organizations choose to use both platforms together for greater choice and flexibility, as well as to spread their risk and dependencies with a multicloud approach. Consulting companies and software vendors might also build on and use both Azure and AWS, as these platforms represent most of the cloud market demand.

--
Posted By Blogger to HDGEM at 2/28/2017 12:36:00 PM

[HDGEM] Microsoft’s cloud computing platform Microsoft Azure includes a CDN service in their offering.

The Azure CDN service uses the networks of Akamai and Edgecast, though it is fully integrated with the cloud platform and offered under the Azure brand.  Because the CDN service is offered as a part of the larger Azure IaaS ecosystem, it is easy-to-use for businesses who already use the platform. Other CDNs can be used in combination with Azure products as well, for example with their storage solution.

Azure is an Infrastructure-as-a-Service (IaaS) solution, and next to a CDN they offer storage solutions, data management, compute and networking. Their IaaS solution is similar to Amazon Web Services (AWS) and Google Compute Engine (GCE). Just like Google, Azure offers free credit to first-time users of the platform to help them get started.

--
Posted By Blogger to HDGEM at 2/28/2017 12:34:00 PM

[HDGEM] Cloudfront is a CDN by Amazon, which can be used on a stand-alone basis, or in combination with other Amazon web products.

Cloudfront CDN integrates very well with Amazon Web Services (AWS), and is often used in combination with their storage solution Amazon S3.
Amazon Cloudfront offers on-demand, no-commitment pricing plans which can be found on their website. The pricing overview of Cloudfront is slightly complex; customers should be aware that the unit prices for bandwidth and requests differ per region.

--
Posted By Blogger to HDGEM at 2/28/2017 12:33:00 PM

[HDGEM] G Suite Developer sessions at Next

Next 2017 is around the corner with over 200 sessions aimed at developers including you, our favorite G Suite Developers. So if you're looking to leverage Apps Script to automate internal processes, get hands-on with App Maker, or are an ISV looking to integrate with flagship G Suite products, check out our full schedule.Learn more

--
Posted By Blogger to HDGEM at 2/28/2017 10:02:00 AM

How to Install Oracle Java to Linux

Download java package from oracle and install it.

(See: How to download JDK directly from Oracle from command line)


for RedHat/CentOS/Fedora, the location of the installation is /usr/java/latest

$ sudo -i alternatives --install /usr/bin/java java /usr/java/latest/bin/java 1

1 is for the priority.

for Ubuntu:

$ sudo -i update-alternatives --install /usr/bin/java java /home/i88ca/Downloads/jdk1.8.0_05/bin/java 1

You can put "" if you have special character, such as:

$ sudo -i update-alternatives --install /usr/bin/java java "/home/i88ca/Downloads/jdk1.8.0_05/bin/java" 1

Run the alternatives program again, to choose the new installation
for RedHat:

$ sudo -i alternatives --config java
for Ubuntu:

$ sudo update-alternatives --config java
Verify that you are getting the right version of Java

$ java -version

You may want to configure javac too, just do similar as above, change java to corresponding javac of course.


[HDGEM] How to import key or database file into miniKeepass or KeePass Touch

Touch the file in for example Dropbox
Then choose Export

 Then choose 'Open in...'
 You see  miniKeepass or KeePass Touch ( You won't see them if you didn't choose 'Open in ...')



--
Posted By Blogger to HDGEM at 2/24/2017 04:19:00 PM

[HDGEM] KGif is a teeny-tiny tool that creates an animated gif from the active window on your Linux desktop.

To get started download or save the script from GitHub. Place it in your Home folder (or a scripts folder, and then cd into its location). To use KGif run it from the Terminal using: ./kgif.sh Naturally you might not be ready to start recording. You can use a delay value to specify how long (in seconds) the script should wait before it starts capturing. E.g.: delay=7 ./kgif.sh The output is saved in the same folder, where it is named 'terminal.gif', and all the accrued .png images are deleted automatically.


--
Posted By Blogger to HDGEM at 2/24/2017 06:38:00 AM

[HDGEM] If GIF is so bad why use it at all?

While GIF is a very old format, it has seen some rise in usage again in recent years. One reason is its easy usage in the Web. GIF files are supported nearly everywhere, which means you can add animations easily to everywhere where you can upload images. With real video files you are still more limited.

--
Posted By Blogger to HDGEM at 2/24/2017 06:29:00 AM

[HDGEM] How to install Peek on Ubuntu using PPA

You can add and install from the official Peek PPA on Ubuntu 16.04 LTS and above by adding the following package archive to your software sources:sudo add-apt-repository ppa:peek-developers/stablesudo apt update && sudo apt install peek Using the PPA mentioned above is probably the easiest way to get the update.

--
Posted By Blogger to HDGEM at 2/24/2017 06:22:00 AM

[HDGEM] IT Generalist roles

IT Generalistroles have responsibilities divided among server systems and network infrastructure, multiple-user line-of-business applications and databases, and desktop/end-user support or training. 
These roles work with business clients and vendors to understand user needs and provide the right technology, in addition to concerns related to keeping systems up and running, security, and backup and recovery. May be the unofficial IT person.


--
Posted By Blogger to HDGEM at 2/23/2017 08:03:00 AM

[HDGEM] Azure DocumentDB: ODBC driver now generally available

The Azure DocumentDB ODBC driver is now generally available, so you can renormalize data in DocumentDB, analyze the data, and create reports using BI and analytics solutions like Microsoft Power BI and Tableau. To learn more about this driver, please visit the Connect to DocumentDB using BI analytics tools with the ODBC driver documentation webpage.

--
Posted By Blogger to HDGEM at 2/23/2017 07:30:00 AM

[HDGEM] How to get a list of domains on cPanel server

On cPanel servers /etc/domainusers will list each cPanel account and its main domain, but this is not every domain on the server.  

/etc/userdomains will list every domain on a server, but it will also include sub-domains, which you may or may not consider relevant depending on your use case for such a list.


# cat /etc/domainusers | sort# cat /etc/userdomains | sort

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

[HDGEM] How to exclude dependency in Apache Maven

Using Apache Maven, dependencies can be globally excluded in your project like so: <dependencies><dependency><groupId>log4j</groupId><artifactId>log4j</artifactId><version>1.2.17</version><scope>provided</scope></dependency></dependencies> Dependencies can be explicitly excluded for specific dependencies as well. For example, to use a project with Log4j 2 instead of Log4j 1.x: <dependencies><dependency><groupId>com.example</groupId><artifactId>example-project</artifactId><version>1.0</version><exclusions><exclusion><groupId>log4j</groupId><artifactId>log4j</artifactId></exclusion><exclusion><groupId>org.slf4j</groupId><artifactId>slf4j-log4j12</artifactId></exclusion></exclusions></dependency><dependency><groupId>org.apache.logging.log4j</groupId><artifactI…

[HDGEM] Amazon Chime is a modern, fully-managed communications service from AWS

Amazon Chime makes it easy for you to communicate with people inside and outside your organization using voice, video, and chat.  With Amazon Chime, online meetings are easier and more efficient, crystal clear audio and high definition video keep you focused on the discussion, and the service is designed to work seamlessly across desktops and mobile devices. Because Amazon Chime is a managed service that runs on AWS, it doesn't require you to deploy or maintain complex infrastructure and software. And you benefit from the security that comes with a data center and network architecture built to meet the requirements of the most security-sensitive organizations.

--
Posted By Blogger to HDGEM at 2/21/2017 01:29:00 PM

[HDGEM] How to get curl windows binary with sftp/libssh support

There are two packages you need to download:


cURL with SSH2, SSL and SSPIOpenSSL
From
http://www.paehl.com/open_source/

Make sure you down load curl of the version with
SSH2, SSL and SSPI 

Downloading OpenSSL for Windows
https://indy.fulgan.com/SSL/

We need to get two files from each ZIP archive and put them into the one directory.
From the cURL download, find:

curl.exe
libssh2.dll

From the OpenSSL package:

libeay32.dll
ssleay32.dll

--
Posted By Blogger to HDGEM at 2/21/2017 08:07:00 AM

[HDGEM] How to fix: curl: (9) Upload failed: Permission denied (3/-31)

When uploading files, curl needs full target path

So instead of

curl.exe --insecure  -T test.txt sftp://i88ca:[email protected]:22

append the full path, for example, to the user's home directory:

curl.exe --insecure  -T test.txt sftp://i88ca:[email protected]:22/~/

--
Posted By Blogger to HDGEM at 2/21/2017 07:57:00 AM

[HDGEM] How to fix: Error 'C:\Program' is not recognized as an internal or external command, operable program or batch file

If a directory has spaces in, put quotes around it. This includes the program you're calling, not just the arguments

C:\Users\Administrator>C:\Program Files (x86)\PuTTY\psftp
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Administrator>"C:\Program Files (x86)\PuTTY\psftp"
psftp: no hostname specified; use "open host.name" to connect

--
Posted By Blogger to HDGEM at 2/21/2017 07:12:00 AM

[HDGEM] Azure Load Balancer uses a hash-based distribution algorithm.

By default, it uses a 5-tuple hash composed of source IP, source port, destination IP, destination port, and protocol type to map traffic to available servers. It provides stickiness only within a transport session. Packets in the same TCP or UDP session will be directed to the same instance behind the load-balanced endpoint. When the client closes and reopens the connection or starts a new session from the same source IP, the source port changes. This may cause the traffic to go to a different endpoint in a different datacenter.


--
Posted By Blogger to HDGEM at 2/19/2017 03:02:00 AM

[HDGEM] Google Cloud Endpoints is a truly distributed API gateway.

Google Cloud Endpoints features a server-local proxy (the Extensible Service Proxy) and is built on the same services that Google uses to power its own APIs. For developers building applications and microservices on Google Cloud Platform (GCP), Cloud Endpoints is the best-suited modern API gateway that helps secure and monitor their APIs.

--
Posted By Blogger to HDGEM at 2/17/2017 07:11:00 PM

[HDGEM] selenium is a very powerful automation testing tool.

Selenium is a web based application testing tool.  This tool can be widely used for compatibility, functional, regression and user acceptance testing.Open source toolSupport multiple programming language such as C#, JAVA, Perl etc.Work on different platform such as Linux, Mac OS and Windows.Pillar of supporting several browser (Chrome, Firefox, Internet Explorer, Safari etc.)



--
Posted By Blogger to HDGEM at 2/17/2017 03:16:00 PM

[HDGEM] Keyboard shortcuts of Gmail

EverywherecCompose/SearchiGo to inboxqOpen Hangouts and focus the search boxhOpen Hangouts and focus the conversation listtCreate reminderShiftbFocus on notificationShiftmOpen main menuzUndo last actionChat and ComposeShiftEscFocus latest chat or composeShiftEscFocus main window (while in chat or compose)Ctrl.Advance to next chat or composeCtrl,Advance to previous chat or compose

[HDGEM] Jira default issue types

Bug — A problem which impairs or prevents the functions of the product.
Improvement — An enhancement to an existing feature.
New Feature — A new feature of the product.
Task — A task that needs to be done.
Custom Issue — A custom issue type, as defined by your organisation if required.

--
Posted By Blogger to HDGEM at 2/17/2017 09:21:00 AM