Latest Blogs
Application Modernization
Arpatech Website
Jan 10, 2025
Artificial Intelligence in Application Modernization: Key Benefits and Real-World Applications
Read More...
Give 3D Parallax Effect to the 2D Images Using Depth Ma...
3D Parallax effect if used correctly can add cool interactivity to your website that can grab your visitor’s attention. Therefore, some certain websites that have done excellent implementation of mouse following parallax effect. In this tutorial, we are going to replicate such effects.
Traditionally, a photograph used on which layers of elements are added and on mouse movement to create such effects. These different layers move with different speeds giving the illusion of depth. As, you can see in the example below, the scene divided into multiple layers. The layer that will move in slower speed and cover shorter distance will give the effect of being nearer to the observer.
Our client at Arpatech demanded to have such effects. But here’s the catch; it has applied on a real life photograph of a room like below.
Such complex scenery would require precise cutting of objects through Photoshop and then to make multiple layers out of them. Still, it would not look natural as the scene have not much distinct elements to play with. The most object images are blending with one another. Even, if we use the layers method, we will end up making the landing page heavy as the layers would be in PNG format due to the need of transparency. With the new method JPGs can be used, significantly reducing the load time of the page.
By the end of the tutorial you will be able to achieve this result:
Pretty cool, considering that it can achieve in a matter of minutes starting from just a normal 2d image.
The secret sauce behind it is the depth map. Apple uses this technique to create stunning portrait mode photos. It replicates the blur background effect of big lens cameras like DSLRs. What depth map do to provide distant information of each pixel in the photograph? iPhone 7 calculate the distance through the dual camera setup.
Luckily, we can create our own depth map using our own perception and a single Photoshop brush. Let’s get started:
To create a depth map, first you need to understand how depth maps work. It adds distance information to a 2d image and it uses only the shades of black. The darker the black one becomes the further away. So, it belongs in the scene and the lighter the black is the nearer it belongs. Precisely, complete white color means that the object is the nearest.
In the above image, the left one is actual RGB image and the right one is its depth map. Therefore, we can see the petals that are in lighter tone and the objects are distancing the tone of them are getting darker. In 3D terms, the tone of the color is representing the z-axis information of pixels.
2) Create a new layer, fill it black and turn down the layer opacity to around 50% so you can see the original image below.
3) Turn down the Hardness of brush to 0% and start painting over on the black fill layer. Paint the objects with light tone that are nearer and paint the objects with dark tone that are further.
4) Turn up the opacity of the painted layer to 100% so you can see the final result.
It doesn’t look great. But, it gets the job done. Hence, we deliberately don’t have to do with the edges. It has shifted outwards to give the best result. Now, you save the file as jpg and make sure you save the same dimensions as the original image.
To interpret the depth map, we are using pixi.js library’s Displacement Filtre.
“<script src='https://cdnjs.cloudflare.com/ajax/libs/pixi.js/4.5.0/pixi.min.js'></script>”
Here is the complete code. Feel free to play with the values to adjust the effect according to your liking.
<!DOCTYPE html> <html > <head> <meta charset="UTF-8"> <title>Displacement mapping with 2d Face</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> body { background: black; color: #ccee99; text-align: center; position: fixed; } #wrap { border: 0px solid #333; width:100%; } #images img { width: 100px; height: auto; } </style> </head> <body> <div id="wrap"> </div> <script src='https://cdnjs.cloudflare.com/ajax/libs/pixi.js/4.5.0/pixi.min.js'></script> <script> function resize() { if (window.innerWidth / window.innerHeight >= ratio) { var w = window.innerHeight * ratio; var h = window.innerHeight; } else { var w = window.innerWidth; var h = window.innerWidth / ratio; } renderer.view.style.width = w + 'px'; renderer.view.style.height = h + 'px'; } window.onresize = resize; </script> <script> w=window.innerWidth, h = window.innerHeight; var renderer = new PIXI.WebGLRenderer(w, h); var cOutput = document.getElementById('wrap'); cOutput.appendChild(renderer.view); var stage = new PIXI.Container(); var container = new PIXI.Container(); var foreground = new PIXI.Container(); stage.addChild(container); stage.addChild(foreground); var f; var fg; var mousex = w/2, mousey = h/2; var ploader = new PIXI.loaders.Loader(); function init(){ console.log('dasdsdasd'); ploader.add('fg', 'Original.jpg'); //insert Orignal 2d Image Here ploader.add('depth', 'DepthMap.jpg'); //insert Depth Map Here ploader.once('complete', startMagic); // Begin loading - ploader.load(); } function startMagic() { fg = new PIXI.Sprite(ploader.resources.fg.texture); foreground.addChild(fg); d = new PIXI.Sprite(ploader.resources.depth.texture); f = new PIXI.filters.DisplacementFilter(d, 0); fg.filters = [f]; window.onmousemove = function(e) { mousex = e.clientX; mousey = e.clientY; }; animate(); } function animate() { console.log('aaaaaaaaaa'); f.scale.x = (window.innerWidth/2 - mousex) / 79; f.scale.y = (window.innerHeight/2 - mousey) / 79; fg.addChild(d); d.renderable=false; renderer.render(stage); requestAnimationFrame(animate); } // Start - init(); </script> </body> </html>
Now, change the original.jpg with the filename of your original 2d image file. Change depthmap.jpg with your newly created depth map.
See the Pen Mouse Follow Parallax Effect Using Depth Map by @fatik on CodePen.
Using this method you can give subtle 3d parallax effect to 2d images in no time without running into much complexities. Thanks to Pixi library, the animations are very smooth.
Arpatech Website
Aug 3, 2017
DevOps Trends to Watch in 2017
Since, we have witnessed that 2016 passed greatly. A large number of technologies and trends get introduced in the past years. Like, Docker v1.12 released and AWS got some powerful instances types. Moreover, the hybrid cloud (both private and public) became the first choice for enterprises and many more trends.
Here, I am going to share your some latest DevOps trends of 2017 in this blog post.
But, let me give you an introduction to DevOps. DevOps actually serves the collaboration of Development and Operation team to work together. Like, it becomes one unit rather than working the old traditional way. Although, the Agile methodology did great where the development and operation team worked individually. So, it serves to develop any software or fulfill the services.
Ideally, the old traditional method consume time. It lacked the understanding between the team of software development, leading it to customer dissatisfaction. Almost, we are now adopting DevOps as culture for more fast, efficient and reliable software delivery.
Here, are some DevOps features:
DevOps consists of 5 C’s which gives high productivity, less bugs, enhanced and communication. Probably, it provides quick way to resolve issues, more reliable and much more. The 5 C’s of DevOps are:
Since, the name sounds as microservices becomes an architectural way to develop the complex applications. So, it has the ability to create smaller modules through division. Precisely, Microservices can help the developers to decide how to use, design, which language to choose and platform to run and deploy.
Some advantages of microservices:
Although, containers create virtual environment, allows to run multiple application or OS without interruption. Another, container which one can deploy the application quickly and consistently. Because, the containers have their own CPU, memory, network resources and block I/O. Therefore, it shares with the kernel of host operating system. Thus, lightweight can run directly within host machine. So, you will find some advantages of Containers presented below:
Due to, the automation, arrangement, coordination and management of containers is container orchestration. Finally, various features of container orchestration include:
Also, the task of a developer limits to launch a cluster of container instances. Surely, it allots the tasks which requires to run. Yet, the management of all the containers perform the tasks through orchestration.
It allows the developer to define the task where they require to specify the number of containers. Therefore, they fulfill the task and the dependencies. Moreover, one task can launch through single task definition.
Although, simple API calls now you can register and de-register tasks, launch and stop Docker containers.
Seems like, load balancing actually helps in distributing traffic across the containers or deployment.
In addition, you can now monitor your CPU and memory usage of the running tasks. Hence, it also gets notified if scaling requires through containers. Consequently, some tools used for container orchestration (both paid and open source) are Kubernetes, Docker Swan, Google Containers and Microsoft Containers. Precisely, it becomes clear now and evident that 2017 is going to face a lot more changes, new and innovative ways for DevOps.
Arpatech Website
Jul 25, 2017
Some Extremely Useful PHP Tools
PHP is a widely used open-source server side scripting language. It is powering major websites like Facebook, WordPress and many more. It provides some good reasons as why developers prefer PHP over other server-side scripting languages. Such as, Ruby, Python etc.
PHP considers very fast language. It has detailed documentation, large community, ready-to-use scripts and supported frameworks. Also, the most important thing about PHP means the easy to start with rather than any other scripting language. PHP language comes with useful tools and resources which makes the whole PHP development process easy, effective and quicker.
Here, I am going to present some useful PHP tools which can significantly improve the whole development process
Precisely, Webgrind knows as a debugging tool. It provides an Xdebug profiling web front end in PHP 5. It can install in seconds and works on all platforms.
Xdebug presents popular debugging PHP tool. Prcisely, it helps in providing lots of useful data to quickly identify the bugs in the source code. The tool can easily plug into almost every popular PHP application like PHPEclipse and PHPDesigner.
PHPUnit, a complete whole port of the JUNIT. This tool helps to test the web applications stability and adaptability. So, it can write test cases within the PHPUnit framework with an easy usage.
The tool allows to write automatic web application UI tests in any programming language. It seems against to any HTTP website which uses any mainstream JavaScript-enabled browser. Hence, the tool can use in combination with PHPUnit to create and run automated tests within the web browser.
PHPDocumentor
PHPDocumentor aka Phpdoc or Phpdocu provides great documentation tool for the PHP code. It contains numerous amounts of features such as the ability to produce results in HTML, PDF, CHM and XML DocBook formats. So, it serves both web-based and command line interfaces along with source code highlighting.
Securimage tool serves as free and open-source PHP CAPTCHA script. It generates complex, difficult images and CAPTCHA codes to give extra protection to your forms.
Pixy, a Java program which automatically scans PHP 4 source code to detect XSS and SQL injections possibilities. The tool takes PHP program as an input and list out all the possible vulnerabilities found in the code. It supports along with important additional information to help in the understanding of the vulnerability.
It means one of the powerful PHP tools which lets your create attractive web charts. The graphs serves from dynamic data and one can make use of PHP scripts to generate and collect data from databases. Then, it makes use of this tool can create flash (SWF) charts and graphs.
PHPMathPublisher provides great services as a tool. It can edit mathematical documents on the web by using the PHP script. However, it needs no additional LaTex programs on server or MathML.
Here, PHP Object Generator serves as a great tool. It provides an open-source web-based tool which helps you quickly construct PHP objects. Also, it utilizes OOP (object-oriented programming) principles in the code.
Another, there comes an open-source tool with a name The Scavenger, vulnerability detection tool. The tool helps to react to exposure findings, track vulnerability findings. It also reviews accepted and false-positive answered vulnerability.
The tool MagickWand also serves PHP. It means, a PHP module suite to work with the ImageMagick API. You will find it helpful to create, edit and compose bitmap images. So, the tool supports very easy function and quickly incorporate image-editing features in the PHP applications.
The PHP CodeBeautifier tool saves your time to format the code to present it in your own way. Precisely, the GUI version allows processing files visually. A command line version can also integrate along with other tools. It can also support as an integrated tool of PHPEdit.
Well, all these tools provide ideal assistance and some serve its extremely useful services as PHP tools. It can help in profiling, debugging, testing and code-authoring PHP code. Know some more? Do let us know in the comment below.
Arpatech Website
Jul 10, 2017
Creative And Easy Ways To Attract Users To Your Website
People visit several websites daily to fulfill their required needs or to get their things done in personal or commercially. They commonly visit their required sites by searching the stuff through Google.com which is of course a reliable and the easiest way to access the website.
There are several ways to attract people for visiting any specific website by using creative ways like advertising or generating a predefined path to drive the visitors right to the website. This can simply be done through prominent strategies that will drive the visitors directly to specific website through the searched content by visitors. This can be carried out by using or creating resourceful, catchy and meaningful content to attract the attention of the visitors. Moreover, by making pertinent fascination and to show that the website development is something that provides appropriate consideration for the visitors for which they can visited he website.
A good site is easily tracked and visited by more and more visitors through a selection of a good and searchable keywords related to the website’s products. This way; the website gets easy keyword ranking of the website on different search engines. The keywords also play vital role in attracting the attention of the visitors and create easy access to website by their selection of keywords for which they come to look for their desired needs. The keywords are effective in spreading the concept of the website and works quite efficiently when people search with related keywords as well. The use of specific density of the targeted keywords create a succeeding element to drive attention in the content to define the worth of the product for the visitors.
One of the best and creative ways to promote the websites with a catchy and attractive content for the visitors which can get viral among the viewers who use social platforms so that the website can be renowned publically. The content plays a prominent role in defining or marketing the products listed on the website. The entire details reflect a perfect overview for the visitors to let know what the website is about. Thus, the website gets social signals and huge visitors check it out for something that was marketed through social media platforms like Facebook, Twitter, & LinkedIn etc. which are mostly used platforms by people.
Otherwise, the same website will never reach out to anyone and will remain just a worthless entity somewhere on the internet and no one will see it or have any knowledge of the reason for the development of the website. So, a website that is especially designed for the online representation of any or specific product(s) may get fruitful attraction on the internet and people get what they need from the website.
That’s for sure, any website required publicity over internet and which is the most necessary and important factor to market and also present it in the most innovative ways to inspire the visitors. It should be designed according to the physical criteria of search engines especially to the predefined criteria of Google.com which is considered the most across the world. It should also contain the most advanced and new features so that the visitors may easily use or jump to their required pages without any difficulty. The use of specific pages should be created like about us, products, news, blogs and contact page for easy contacting to the site owner is something very import to focus while developing the website. Every page should work instantly without creating problem to the visitors or else they will leave never to return back. So, the website should be checked for any error(s) from time to time for driving continuous visitors to the website.
Arpatech Website
Jul 5, 2017
Web Design Tactics to Help You When Needing Assistance
Web designers use several tactics and implement such instances according to the latest trends that are particular needed in a specific website. One can cover an efficient array of concepts and consider a viable option to program a particular project which is being under construction. A proper arrangement of programing structure that are based on logical concepts are needed to implement onto the website.
The website precisely runs on coding and thus is programmed with an intent to feed all the necessary information required to present it as per its demand, relying on it to avail best results. Javascript is a commonly used language that is implemented while developing a website. It has a common code programing to connect with HTML, DHTML or XML which eventually makes any specific program multi-scoped.
Moreover, there are quite many web development tools which are basic means to construct websites, like Magento and asp.NET. A CSS format is also a standard form of tool that helps in formatting code to the style of preference. It is something very reliable to use and acquire accurate sort of designing of web pages. It supports quite well in web design entire pages. Don’t worry about the header and work on the body of your website under construction making valiant efforts to design a complete site.
It is easy to design a website you are working on and make relevant usage, as there are several ways to access with web approaches. Perfect a template and make a whole outlook of your website be understood and have reliable time distribution you need in programming. A universal software design process is something having proper arrangements you as a programmer must have through acquirable skills.
Software development is not a preplanned activity, it must be put into practice with actions you are sincere with and see the relevance. A supportive operating system is always used and is what you need as an environment in most situations, building websites sensibly. Having a considerable understanding of just a few tools makes the developer more confident when he is out to construct websites.
Use of good speed hardware makes you be swift with the development of websites significantly, perfectly fit a criterion you meet. Make salient moves and select the best resolution getting you to cover programming lines of code you know are appropriate in most situations. The software is a testing process and has considerable use through requirements creeping up as time goes on.
Web design has applications you can develop for iOS and Android purposes that are reliable and consistent products that are a required microchip technology to operate for gaming or other purposes. A more common development tool produces Android apps that are software to function with users who are used to devices such as smartphones.
This kind of platform is more usable because it has more advanced SDK applications you are eager to use and implement. Browser or Native based apps which Android phones use are developed through tools that are ways you only would want to accept. Select right choice of development patterns as a choice made by designers and developers that you are ambitious about.
Requirements are what you start planning with and design using tools which slowly gets software come into being. Have an understood and antagonistic means you realize and make an accurate start to realize what way to go in development. Make an easy web designers choice and acquire correct facilities that are acceptable as a means to progress with online website construction.
Arpatech Website
Jul 4, 2017
Marketing Strategies For Small Scale Businesses
There are several marketing strategies that are used conveniently to run different businesses successfully. One can find certain elements that boost up businesses and making it run in a certain manner as one practices. Today, a large number of people advertise their small businesses through Facebook and share their products and upcoming promotions. They try their best to market their businesses throughout the world or across their targeted regions and get consistent attention.
Unluckily, small businesses get so involved in planning their daily marketing execution such as creating a worthy website, using a format to spread through emails, tweeting, advertising, or even writing blogs and so on. But, they do not take the time to work on the specific decisions that can expand the performance of their methods. There is a simple strategy and all you need to make is a specific procedure that works excellent. The marketing strategy is of course the base to create awareness, to generate interest, to close new sales and also to continue customer engagement.
The digital marketing strategy will surely serve to guide any company culture, the products, services and the pricing as well. There are several things to ponder when crafting an effective strategy for market products. There are few significant strategies that have served and supported quite many small business groups to develop and flourish their revenue and generate the stability in their businesses. There are few key points of marketing strategy to get flourish small businesses efficiently.
The first marketing strategy is to figure out the targeted customer whom do you want to serve. The entire focus should be on a well-defined target which might make you uncomfortable initially. But, through proper follow ups from time to time with the customers; one can easily set a prominent business relationship with the clients. So, it is simply the best to spend time and money at the specific areas where one can find targeted customers and thus the efforts will be repaying back inform success.
That’s for sure; to gain productive results one should clearly describe the unique benefits of specific products or services that the targeted customer actually looking for, but it should not be a list of all the features. Basically, the customers’ main need is to get their sales done and generate their revenues. So, it is necessary to keep focus their needs and provide the best benefits along with successful services.
When we talk about business, one should also think about the competition. Because the most of the business tycoons have never precisely demarcated their real competition is. This annoys the buying choices and create the marketing efforts feebler. One should precisely be vibrant in own mind what the biggest competition is there.
Here, one thing is also necessary that the marketing strategy should be reliable for the customers. It is also one of the significant factors of all that the strategy must be reliable for the customers. So, it let know the customers just one or two things which define their main needs and to decide whether the prices are cheaper or if the shipment can be done faster etc.
Arpatech Website
Jul 4, 2017
Smart Ways To Get High-Quality Backlinks
Link building is considered one of the ideal and most operative parts of SEO tactics. It is also said to be one of the most creative ways to generate organic traffic towards your website. To create the worth of any website, backlinks play a vital role to identify the search engine about its positive existence.
A backlink is a link to your website, any social website, or any content you are looking brand it as mentioned by any third-party. There are several ways to create backlinks for your website and some of them permit you to associate on the success of your competitors. It depends upon the condition whether how good or great such links are and how they are well structured on the source sites and the domain authority of the mentioning website.
Quality backlink executes a vital role in performing SEO services for any website. Google observes these backlinks as a degree for votes, accepts and gives the significance in search to companies with the extreme number of high quality and appropriate backlinks. The worth of the website depends upon these quality backlinks where they are placed on third parties’ website.
Get Free Query from our Digital Marketing Experts.
There are two main types of backlink that you can obtain from different external websites. The Dofollow links and Nofollow links.
The Dofollow link is the one you want to get for passing the value to your website. It is an inbound link that has the capability to pass the authority from one page to another. It generally builds its worth and rankings in search engine result pages – SERP.
While a Nofollow link absolute opposite from dofollow link. It never passes a value to your website and has much impact on building the authority of the page in search engine.
You can get high-quality backlinks from any powerful website’s product reviews. It is occasional that any publication will not include your link as dofollow after reviewing your request but you can simply request for adding the link.
Guest posting is one of the ideal ways for obtaining a valuable link from any guest post websites. Because when you contribute to the higher page(s) ranked websites or also to lesser recognized blogs that still have a noteworthy targeted audience. You can concentrate on the reliability and significance of the website you are following, as it will always gain tenfold. Must get the host to approve to contain a follow backlink from the website to yours website and for you to public it on social media and link it to your own website.
It is also effective for you to create visual content links to make it publicly viral. This way, you can create and share visually attractive content so that these types of interesting stories can drive attention and engagement to the readers. As you may have known, the infographics receive three times as many values on social media platforms as any other sort of content does.
You can also create round-up interview posts like to be interviewed by using any relevant industrial topics so that you can generate a positive high-quality backlink in this way. It will be a fruitful way to get value passed to your website through these types of interviews where your website’s link is placed.
Arpatech Website
Jul 3, 2017
Design
Art
AI
Development
Apps