Posts

JavaScript methods you should know about.

                      Hello folks, hope you all doing well . In this particular blog i am sharing some of tradition but evergreen javaScript methods that every one should know about. Methods forEach : This method allows you to iterate through all the elements present inside the array, pretty similar to forEach of other programming languages. example:                      array . forEach ( function ( currentValue ,  index ){                 /**             * stuff to perform with each record             */           }); map : This method returns a new array by calling the provide method once for each and every element present inside array in the order in which they stored into array, it does execute the provide method for empty value of array.                 example :           array . map ( function ( element ){              /**               * stuff to perform to each element of array              */           }); filter : This method returns an array that passes the condition mat

Samsung J2 MDM temporary unlocking for factory resetting in Demo device, with FRP bypass.

Image
                                             Hey, geeks hope i found you well in this tough time. Recentally i was faced a situation in with Samsung J2 demo device. Actually i forgot the device unlock password, and when i jump into recovery mode and tried to reset device, it says--- Issue :   MDM does not allow factoryReset.  Phone will REBOOT automatically.      Even i tried to flash whole device using odin by moving device into download mode,  and same message will appears on device MDM MODE. CAN'T DOWNALOD. After diving deep into web and applying multiple solution, here i came up with a working solution. Steps in brief :  You need a windows machine, device's data cable (original will be preferred, i tried with different one) Download all the required files [ MDM unlocker, Google Account Manager apk, quick shortcut maker apk ] ALL links will be mentioned in downloads section below the post. Move you device into recovery mode by pressing these button combinations vol up

Java 8 interfaces and behind the scene

Image
                                 Hello geeks,  Java 8 or 1.8 come up with lots of enhancements to survive into market. Since, other programming languages are evolving itself beyond object oriented world. Since, java until now strictly follows object oriented approach, that's why a lots of programming methodologies (like function programming etc) are still not supported by java until java 1.7. But in java 8 they started to adopt such programming methodologies too. In this particular blog i am mainly going to talk about the java 8 interface. Since interfaces are there in java from there very first releases, so what new in java 8 interface. Interfaces in java till 1.7 To get a better clear picture, lets first talk about java 1.7 (or earlier) interface implementation. The main reason behind using an interface is to define a type of user's choice (or vendor's choice). Just like c programming where we first declare functions and then define them and then use

Amazon snowball

Image
Hello geeks, Cloud computing is trending right now. Both provider and consumers are providing and demanding more and more cloud storage and computing resources day by day, which are accessible remotely from anywhere in the world. Tech giant like Google, Microsoft, IBM and others are vying to be go-to provider. But one company remained the leader AMAZON. AWS technologies are behind a lot of services that we use today from a lift, checking your video door bell to watching our favourite shows on netflix, amazon prime, ULLU movies etc. AWS has been one of AMAZON's most profitable business last year. There are approx 2.2 million customers using aws services today. These includes some of the big name like Goldman Sachs, and over 4000+ government agencies. But the challenges for amazon arises here. Most of the users on aws are generating a huge amount of data(in petabytes even in yottabytes) and moving them from one place to other over the internet is the nightmare fo

Webcam Integration using pure Js on HTML 5

Image
Hello geeks, hope you all are doing well.  In this blog post i am going to share a very simple java script code snippet through you can easily integrate your webcam into any html 5 web page.                                Now, a day most of the website provides real time webcam integration for profile picture upload or any account verification step. Some of them as per my experience are :  Bitbns  ,   Electronieum  and list goes on. Here i am using html 5 video tag, and as source of video i am integrating webcam using java script. So, first create html DOM structure using following code snippet. <video id="video" width="100%" height="100%" autoplay></video> Next  include video src for video tag in js. var video = document.getElementById('video'), vendorUrl = window.URL || window.webkitURL; if (navigator.mediaDevices.getUserMedia) { navigator.mediaDevices.getUserMedia({ video: true })

Amazon web scrapping using PHP

Image
Welcome folks, as we know that amazon is the leading e-commerce company over the entire web, and it is still growing.      Now a day peoples also using amazon's different services to make their profits. There are a lots of ways to become a part of it. Becoming merchant, web scrapping affiliate marketing are some of those.   In this blog post i am going to show you how you can use PHP to get the latest current price of product listed on amazon. Now question arises that what is the benifits to know the latest pricing of products.   Lets me explain this point, on web you may create you own website to comparing the product price site, even you can create your own e-commerce website to sell the products and forget about price up and down (your scrapper will do this for you).  Of course you have to manage the packaging and delivery services on your own. Since, on web people mostly attracts on price so keeping the price up to date is a matter of loosing or gaining a huge number or v

SCOPE_IDENTITY() Vs @@ Identity Vs IDENT_CURRENT(tableName) in Sql Server

Image
Hi there, in this blog post i am going to discuss the basic differences between SCOPE_IDENTITY(), @@Identity and IDENT_CURRENT('tableName').                 Basically all these three are used to retrieve the last inserted identity value in different session and  different scope. Let's try to understand it in detail. SCOPE_IDENTITY() :   It returns the value of identity last inserted within same session and same scope. @@Identity : It is a global variable which returns the value of identity last inserted within same session but in any scope. IDENT_CURRENT('tableName') : It returns the value of identity last inserted in any session and in any scope. Now, i am pretty sure you are wondering about what this session and scope really menu in the above mentioned points.   So, let me clear the same with an example. First we need to create two different but simple table with having the following structure. create table tableA ( id int identity(1,1)