Change the Default Location of User Folders like Favourites etc. in Windows 7

Ref: http://www.sevenforums.com/tutorials/18629-user-folders-change-default-location.html

1. RUN> shell:UsersFilesFolder

2. props of favourites

3. change it in the location tab


Advertisements

Sublime Text ToDos

http://www.sublimetext.com/docs/3/distraction_free.html

Install the package manager: http://wbond.net/sublime_packages/package_control

RTFM: http://docs.sublimetext.info/en/latest/
Packages:

Discover Packages:http://wbond.net/sublime_packages/community

https://github.com/titoBouzout/SideBarEnhancements

AngularJS
https://github.com/subhaze/angularjs-attributes
https://github.com/maxhoffmann/angular-snippets
https://github.com/DerekRies/angular-palette

Code Management
https://github.com/bgreenlee/sublime-github

Intelligence
https://github.com/SublimeCodeIntel/SublimeCodeIntel.git

Javascript
https://github.com/SublimeLinter/SublimeLinter


HTML
ZenCoding

CSS

Editor Enhancements
https://github.com/titoBouzout/SideBarEnhancements/tree/st3

SublimeText 3

https://github.com/titoBouzout/SideBarEnhancements/tree/st3

Create Partial Views in Angular JS using Javascript

I’m noting these steps as i write code in the Project :

1. In the app dir make sure u have scripts, controllers and views
2. Create a View (Partial) : Action.html
3. Create its controller in scripts/controllers folder : Action.js 
3. Create its model in scripts/models folder : ActionModel.js 

‘use strict’;

angular.module(‘controllers‘)
  .controller( ‘ActionCtrl‘, [‘ActionModel‘, ‘$scope’, ‘$http’, ‘$location’, ‘$rootScope’, function (helpModel, $scope, $http, $location, $rootScope) {…

3. Register it in the app.js (present in app\scripts dir) :

angular.module(‘AppName‘, [‘controllers’, ‘directives’, ‘filters’, ‘services’])
  .config([‘$routeProvider’, function ($routeProvider) {
      $routeProvider
        .when(‘/action‘, {
            templateUrl: ‘views/action.html‘,
            controller: ‘ActionCtrl
        })

4. Next, register these in index.html (present in app dir):
      <script src=”scripts/controllers/Action.js”></script>
      <script src=”scripts/models/ActionModel.js”></script>

5. Keep your data in action.json file for dummy data. in app/mocks dir: Action.json

ACTIVITIES :

1.

Get the JSON data using HTTP:

Write a module  (SERVICE)that does this  app\scripts\services\apiService.js:

‘use strict’;

angular.module(‘apiService‘…

then in it,
 $httpBackend.whenGET(‘api/Action‘).respond($resource(‘mocks/Action.json‘).get());

Next, in ActionModel.js write:

this.waitForData = function() {
          return $http.get(‘api/Action‘);

Admin rights Quirks in Windows 7

Here are a few lessons i’ve learnt in my struggle with admin rights of win 7:

1.
When explorer is not running as admin while a process like Word is, then u cannot drag a doc from explorer to word
2.
When u open the same doc by doudle clicking on it, then it opens in word but in another instance of word which is not a admin process …even though there is another process running as admin for word
3.
When u then modify this doc and try to save it, u cannot as word is not running as admin and hence opens the doc in read only view.
4.
So then how to do this ?
Simply run explorer as admin by running cmd as admin, then killing all explorer instances from task mgr. and then running it from cmd by > explorer.exe

Then double clicking on doc will open it as admin always and hence no issues in saving etc.

Also i still get random pop ups asking if i want to perform actions as admin, even for things like copy paste …
so basically i want

For this it tried :
http://www.petri.co.il/disable-uac-in-windows-7.htm
http://www.groovypost.com/howto/microsoft/automatically-run-any-application-as-admin-in-windows-7/
BEST: http://www.sevenforums.com/tutorials/11841-run-administrator.html

found another crazy thing that i get issues like the UAC prompt and read only files only in case i don’t have the file in my user folder : C:\Users\tarun.khemani

But when i have the files there there are no issues …

AWESOME FIND

ALSO, for all ur directories allow security full access for everyone to the root itself …this will get rid of all edge cases that lead to stupid issues…..