Profile cover photo
Profile photo
Agung Pambudi
44 followers -
You never know how close you are.. Never give up on your dreams!
You never know how close you are.. Never give up on your dreams!

44 followers
About
Posts

Post has attachment
Add a comment...

Error: Can’t find Python executable “python”


Solution :

Npm (node package manager) uses build system called gyp, that runs some python scripts. It would be hard to find linux machine without python, but Windows folks often don’t have it, because they don’t need it. Me including. So install python first! They say 2.7 is good choice for gyp. And after that, add PYTHON env variable that points to your python catalog


http://www.python.org/download/releases/2.7.3#download
Add a comment...

Converting DatetTime from and to Custom String format


Converting from String to DateTime

Using Convert.ToDateTime method might give you the error 'String was not recognized as a valid DateTime'.
Following code for example will result in an error:

DateTime dt = Convert.ToDateTime("20100228");

You can simply do the conversion by defining the dateTime format yourself as follows:

DateTime dt = DateTime.ParseExact("20100228", "yyyyMMdd", new System.Globalization.DateTimeFormatInfo())

Converting from DateTime to String

To convert a DateTime to String is even easier, just use following code:

dt.ToString("yyyy-MM-dd HH:mm:ss.ss");
Add a comment...

"String was not recognized as a valid DateTime"

Solution:

I searched in google and find that use ParseExact rather than Parse to convert the date time 

the ParseExact method can be used with the required custom format as shown below:
Hide   Copy Code
string dateString =@"20/05/2012";
DateTime date3 = DateTime.ParseExact(dateString,@"d/M/yyyy", 
System.Globalization.CultureInfo.InvariantCulture);

http://www.codeproject.com/Questions/397301/String-was-not-recognized-as-a-valid-DateTime
Add a comment...

Post has attachment
bower ENOGIT        git is not installed or not in the PATH


Solution:

Bower must be installed globally using npm

Bower version:

$ bower --version
1.4.1

Try to unzip a portable Git in a simpler path (no space).
Take the latest one from git for Windows: https://github.com/git-for-windows/git/releases/download/v2.4.5.windows.1/PortableGit-2.4.5.1-4th-release-candidate-64-bit.7z.exe

Remove from your PATH the old msysgit, and add C:\path\to\PortableGit-2.4.5.1-4th-release-candidate-64-bit\bin to the %PATH%
Add a comment...

Problems running IIS http://localhost page not found error

Solution:

Try using run cmd as Admin, then type iisreset
Add a comment...

How to Set IIS 7 to listen to different port than 80

Answer:

From the IIS management console, select Default Web Site. On the right-hand side, click the Edit Bindings link and in the subsequent dialog, change the default port binding as desired.

https://sites.google.com/site/anothersolutionlink/79Fn0.png
Add a comment...

List user in IIS_Manager

'IIS APPPOOL\DefaultAppPool'
IIS_IUSRS   
userleha-PC\IIS_IUSRS        

IUSR
ASP.NET v4.0
NETWORK_SERVICE
LOCAL SERVICE


http://stackoverflow.com/questions/5729264/what-are-all-the-user-accounts-for-iis-asp-net-and-how-do-they-differ
Add a comment...

Post has attachment
IIS_Manager

Error:
Security context: IIS APPPOOL\DefaultAppPool or Login failed for user 'IIS APPPOOL\DefaultAppPool

Solution:

You can change the ApplicationPoolIdentity from IIS7 -> Application Pools -> Advanced Settings. 

Under Advanced Settings, find Identity and choose LocalService as the Built-in account (or LocalSystem if that's the option you've got):

https://drive.google.com/folderview?id=0B-IpgC4e-hNdTkhSYW1xYlBwaDA&usp=sharing

http://www.iis.net/learn/manage/configuring-security/application-pool-identities
Photo
Photo
2015-10-05
2 Photos - View album
Add a comment...

Browsersync


Global Install

If you would like to run Browsersync from the command line in any directory, it can be installed globally with the following command.

$ npm install -g browser-sync

-----------------------------------------------------------------------------------------------------------

Local Install

This is the prefered way to use Browsersync - installing it locally to each project. This way the dependency can be added to your package.json file and everyone on your team.

$ npm install browser-sync --save-dev


Problem

Having trouble installing Browsersync on Windows? The most common reason for npm to throw errors when compiling Browsersync is that some of the dependencies (e.g. node-gyp need Visual C++ runtime libraries.

The way to resolve this is to install Visual Studio. At the time of this writing (Feb 2015) the compilation works fine with Visual Studio 2013 Update 4. You can then tell npm which version of Visual Studio you are using by the following command:

npm install -g browser-sync --msvs_version=2013

After installation of Visual Studio npm should not throw errors any longer, but only issue warnings. As far as we can tell, they do not impact Browsersync.



---------------------------------------------------------------------------------------

Microsoft Visual Studio Express 2012 for Windows Desktop
 
http://www.microsoft.com/en-us/download/confirmation.aspx?id=34673

https://download.microsoft.com/download/1/F/5/1F519CC5-0B90-4EA3-8159-33BFB97EF4D9/VS2012_WDX_ENU.iso
Add a comment...
Wait while more posts are being loaded