Thursday, 8 October 2015

Fix homebrew EL Captain

If homebrew shows you random permission issues you fix it.

First Disable SIP i.e. System Integrity Protection. You can read more about it from the below link.

http://tycotech.blogspot.in/2015/10/root-doesnt-work-el-captain.html


Then open terminal and type the below line:
sudo chown $(whoami):admin /usr/local && sudo chown -R $(whoami):admin /usr/local

Now, update Hombrew and upgrade all its formulae from terminal with the below commands

1) Update Homebrew

command: brew update

2) Check for outdate formulae

command: brew outdated

3) Upgrade all the formulas from older versions to newer versions

command: brew upgrade

4) Upgrade only specific formulae

command: brew upgrade $Name_Of_Formulae

5) Clean up everything

command: brew cleanup

6) Clean up a single formulae(cleaning up means deleting the old and outdated version)

command: brew cleanup $Name_of_Formulae

Friday, 2 October 2015

Root doesn't work El Captain

System Integrity Protection(SIP)


This feature has been has been added to OSX 10.11 to enhance the existing security of the system files. Under this feature the system files, processes, folders aren't allowed to be tempered by other other processes or even by the root user i.e. sudo.

System files and some folder are also flagged for protect with extended file system.

NOTE: Under Extended File System some of the computer files are associated with meta data which are then not interpreted by file system. Unlike forks they aren't large in size.

Among the protect locations are: /System, /bin, /sbin and /usr (but not /usr/local).

Kernel will not allow processes to write flagged files or folders. Processes including code injection and running attachment(like debugging). Kernel Extention(Kexts), such as drivers, can't be installed without approval from Apple, a feature that was installed in OSX Yosemite.

After El Captain installation the installer will move all unknown components within protection system location to a location as shown below.


More about SIP can be read from Wikipedia link here


Q. How to disable SIP?  
A. Restart your pc. On computer startup press Command + R keys. You will land in apple's recovery. From there open terminal App.


In terminal write the following command: csrutil enable --without debug



Now type command reboot in terminal to restart your pc. You are done. 

Sunday, 19 April 2015


First Download ChainFire's AUTO root zip file.

If you have got a zip file then upzip the downloaded file. You'll get a .md5

Then switch off you device. Once you have switched off your device then press vol down+home button. And keep them pressed. Keeping them pressed push power button along with the presses two button. This will get into download mode. 

Now plug in you device to pc & run odin as administrator. If you see a COM something shining blue. Then pc has recognized your device. 

If not then download kies ( remember kies not kies 3) and install samsung driver support software i.e.
kies. Now, This tutorial is not about teaching you how to root the device. Its about providing you the zip file for auto root. 


Files to download:
1) auto root file - http://download.chainfire.eu/402/CF-Root/CF-Auto-Root/CF-Auto-Root-k3g-k3gxx-smg900h.zip

2) odin v..3.09 - You can google this thing and download 
3) Kies drivers-  Google them as well. 


If you are new to rooting device. watch a youtube video on how to root s5. There you just need to change the root file. Whole process is exactly same for all models. Its just the files that differs.

Saturday, 14 March 2015

Head Start with Game Development

Pre-requisite: Should Know how to program in C++ 


Option: 
1) OpenGL
2) DirectX
2) SFML 


For OpenGL start from here:
http://antongerdelan.net/opengl/


For DirectX start from here: 
http://www.microsoftvirtualacademy.com/training-courses/introduction-to-c-and-directx-game-development-jump-start


For SFML start from here: Games such as Angry Birds are designed using it
http://www.sfml-dev.org/learn.php

Saturday, 7 March 2015

Speed up browsing speed in Firefox Mac


To speed up firefox you need to type
"about:config" in top search bar and hit enter.  
Then you might presented with a warranty void
message but press "I'll be careful, I promise!"
and proceed. Search for pipelining in the search bar. Once you see the sorted results. Watch out the below picture. Change the default False value to True for 'network.http.pipelining' & 'network.http.proxy.pipelining' and default'network.http.pipelining.maxrequests'
value from default 32 to 8. To change any value simply double on it. Voila! Enjoy.


Why FireFox? 


The main reason for switching to Firefox is that, overall, it's better than Chrome. But there are other reasons. The most important is that Firefox is the only major browser that is written to serve users and the open web. Other leading browsers may sometimes do that, but their primary function is to serve the needs of giant corporations -- Apple, Google and Microsoft -- none of which has any interest in preserving your privacy. Usually the reverse, in fact.
firefox ball (200 x 192)It's also worth mentioning that Firefox is the only leading browser that is genuinely open source. Apple's Safari may be based on open source, but only because forking an open source development offered Apple
 a relatively quick and easy entry into the browser market. Google's Chromium is open source, but Chrome isn't: it comes with hidden extras.
Mozilla's commitments to your privacy and to the open web are much more important than what any of its staff might have done in the past. In any case, Mozilla co-founder and former chief executive Brendan Eich has already quit, and Mozilla chairman Mitchell Baker has very publicly apologised. At this point, anybody who still thinks boycotting Firefox is a good idea is behind the times. It needs -- and deserves -- your support.
Businesses, of course, tend to judge things on merit, which is where the argument for Firefox is strongest.
I switched back to Mozilla Firefox in the middle of last summer, when it first became a better browser than Chrome, at least for me. Chrome was crashing too often, and in particular, Chrome's built-in Flash was crashing multiple times per day. When it was working, Chrome often failed to display web pages: where the text and images should have been were pale blue blank screens.
I put this down to Chrome's heavy consumption of memory and other resources. (Yes, it's my fault for opening too many tabs, but that's how many people work.) In March 2013, I wrote about OneTab, a small utility that would close all the tabs and recover memory. But while that was a temporary answer, it was the wrong answer. Firefox supports 80 or more tabs on the same PC. What's more, Firefox keeps the tabs the same size, so I can still read them.
Also, after Firefox crashes, it doesn't try to load all the old tabs at once, so you don't have to wait for it to catch up. Firefox only reloads tabs when you click on them.
Perhaps surprisingly, Firefox is now roughly as fast as Chrome, and sometimes loads pages a lot faster. It used to be slow, but Tom's Hardware published a test last June (Chrome 27, Firefox 22, IE10, And Opera Next, Benchmarked) which said: "Firefox 22 pulls off an upset, replacing the long-time performance champion Google Chrome as the new speed king!" There's not a lot in it. However, if you switched to Chrome for its speed, that may no longer apply.
While using Firefox, I've discovered many other ways in which it's better than Chrome. In particular, it's much easier to find the tab you need. First, tabs always stay big enough to read, and you can set a minimum size. Second, there are arrow keys you can click to scroll through open tabs. Third, if you hold the mouse pointer over the tabs, you can use the mouse-wheel to whiz through them really quickly. Fourth, one click provides a drop-down menu of all your tabs. Fifth, you can organise tabs into groups and save or reload groups of tabs: this is very handy if you switch between several tasks. Sixth, you can have Tree Style Tabs that work like a folder tree in Windows Explorer. Indeed, you can even have tabs tiled if you want, using Tile Tabs 11.5.
Another way to find a tab is to start typing the address in the address bar: you'll be offered the option to "Switch to tab".
Firefox is also better at using multiple search engines. You can still search from the address bar (Awesome Bar), as with Chrome, but Firefox also has a separate search box. This makes it easier touse different search providers, by picking them from the dropdown list. You can also add website-specific search engines. Amazon, eBay, Twitter and Wikipedia are defaults, but you can add many more: there are thousands. However, the default Google makes the search box a handy calculator.
Firefox has other usability benefits, and those are being enhanced in the latest 29.0 (Australis) beta. This is faster, has a new Firefox Sync system, and has a Customize menu that makes it simpler to configure Firefox how you like it. Yes, it does look more like Chrome (below). The release version is expected later this month, which could be a good time to make the switch.
The case against
Chrome does have two significant advantages. First, it uses separate processes for different website, and second, it is sandboxed for extra security. If a website creates a major problem in Chrome, it will only take one tab down not the whole browser. Unfortunately, this is also the main reason why Chrome is such a resource hog. Whether this is worth it probably depends on which websites, plug-ins and extensions you use, and how often tabs crash. I don't have a problem with bad tabs, so I prefer Firefox's ability to support more tabs without slowing down. Your experience may be different.
Security is the area where Firefox is weakest, as shown by its failure to survive attacks at Pwn2Own conferences. However, at last month's Pwn2Own, all the major browsers were cracked , so using Chrome doesn't guarantee security either. Again, it depends on the types of websites you use and whether your work is valuable enough to attract hackers. If so, you could either run key programs inside a separate sandbox, such as Sandboxie, or use a virtual PC. Either way, you have bigger threats to worry about than Firefox.
Every program has its pros and cons, but the balance between Chrome and Firefox has tipped over the past year. Firefox has always respected your privacy, and now, all things considered, it's also winning on merit.

Thursday, 5 March 2015

ByTubeD plugin to download youtube playlist


This plugin has been discontinued by the developer itself due to some issues but I still thought of sharing it. Recently my friend(Windows User) lost all his data and the first thing he was looking forward is this plugin. He has to download lots of youtube videos but without this plugin it would be a nightmare. This plugin is not available on internet anywhere and even if its available, you have to search a lot for it & really dig a lot of soil. So, I thought of sharing it.

Installation Notes:

1) Download the plugin.
2) Drag and drop the plugin into Firefox.
3) Now Flow the screen shots below.

Link: https://www.dropbox.com/s/2253sv98mo3fh8s/ByTubeD.xpi?dl=0









Wednesday, 4 March 2015

span vs div


Span vs Div in html


Span
Span is used to mostly used to pick from inline content i.e. suppose we want to pick a word("is") from <p>This is the line</p> tags and give different color to the "is". Then we might wanna wrap that word around with <span></span> tags and give span tag and id or class. We can then apply css style to that selected or grouped content inside of our style sheet or inline.

Also, span tags are inline. i.e. any content confined inside of the span tag will remain inline.

Div
Div on the other hand I used as a collector or container for several html elements. Suppose we have couple of h1,p tags in our website and we want to add background color to all of them. Then, we can confine them inside of a div tag and apply css styles to the respective div tag. 

Div tag are block level tag. They change the content confined to block level.


You can Play more in the link given below: