Monday, 16 January 2017
Wednesday, 11 January 2017
Tuesday, 20 December 2016
How To Create Website Using GitHub
https://pages.github.com/
http://blog.teamtreehouse.com/using-github-pages-to-host-your-website
Friday, 9 December 2016
Bit Manupulatin - Example Explanation
https://www.hackerrank.com/challenges/linkedin-practice-binary-numbers/forum
Other than I/O, all operations stay as it is, in Java. Here's Java version for you :
public static void main(String[] args) {
Scanner scan = new Scanner(System.in) ;
int n = scan.nextInt() ;
scan.close() ;
int ans = 0 ;
while (n > 0) {
n &= (n<<1) ;
ans += 1 ;
}
System.out.println(ans) ;
}
Since you want explanation with an example, I'll explain it with
221 because 13won't help much. Now, binary represention of 221 is 11011101. Visualizing iterations of while-loop using binary clarifies the procedure :First Iteration : n 11011101
n<<1 110111010
n & (n<<1) 10011000
Second Iteration : n 10011000
n<<1 100110000
n & (n<<1) 10000
Third Iteration : n 10000
n<<1 100000
n & (n<<1) 0
As the above example shows, number of consecutive
1's in n reduce by one in every iteration of while-loop. Thus, counting the iterations, gives the required answer.Thursday, 28 November 2013
Change any folder to Recycle Bin (for data security)
For changing any folder to recycle bin type these lines in notepad:
-----------------------------------------------------------------
[.ShellClassInfo]
CLSID={645FF040-5081-101B-9F08-00AA002F954E}
----------------------------------------------------------------
And save as: Desktop.ini in your folder( which you want to change into recycle bin ) to
change recycle bin.
We save desktop.ini in D:\data2 folder and then we open dos prompt and type the above
command, which will convert the data2 folder into recycle bin.
------------------------------------------
D:\> attrib +a +r +s data2 /s /d
-----------------------------------
-----------------------------------------------------------------
[.ShellClassInfo]
CLSID={645FF040-5081-101B-9F08-00AA002F954E}
----------------------------------------------------------------
And save as: Desktop.ini in your folder( which you want to change into recycle bin ) to
change recycle bin.
We save desktop.ini in D:\data2 folder and then we open dos prompt and type the above
command, which will convert the data2 folder into recycle bin.
------------------------------------------
D:\> attrib +a +r +s data2 /s /d
-----------------------------------
GoogleDork List
I had previously share with you guys List of good proxy sites to surf anonymously on the internet and today i am sharing with you a list of google dorks for sql injection which is one of most used method to hack a website.
List Of Google Dorks
Subscribe to:
Posts (Atom)
