Apache + Centos 6.6 caching javascript - javascript

I have the same problem as discussed here: Apache caching javascript assets?. but, in my case, the problem persists.
Host windows 8.1
Vagrant Guest: Centos 6.6 32bits
I had uncommented those lines in /etc/httpd/conf/httpd.conf:
EnableMMAP off
EnableSendfile off
Restart Apache
But the issue persists.
My changes weren't appearing and special characters were being added to the end of the file.
Thanks!

Problem solved
Problem:
I was editing my files with sublimetext2 from windows host and saving those with Windows line endings
Then linux guest served js files with wrong ending
Solution:
I changed lines ending to unix in sublimetext2
Fixing Sublime Text 2 line endings?
Thanks

Related

How can prevent "\r\n" diffrent on linux and windows os?

I have a project that create once on linux
at now I work on it on windows os and I have a command to minify assets file; my problem is "\r\n"
in output create new line add cause to different files with previous version, for example if we have :
});console.log("test");
command output is :
});
console.log("test");
Can you help me?
Your IDE should be able to set the line separator. At least Atom, IntelliJ, notepad++ and others support this feature.
git itself has a feature to fix/change line feeds. See git-scm on autocrlf and this SO question and its answers.

Error Running Meteor: /mt-os.osx.x86_64/dev_bundle/bin/node: cannot execute: No such file or directory

When starting the Meteor project (initially created on a Windows 10 system) on Mac OS X using
meteor
the following error appears
line 135: exec: /Users/test/.meteor/packages/meteor-tool/.1.4.1_2.fpzmec++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node:
cannot execute: No such file or directory
Is this error happening because it was originally created in Windows?
If so, how can a OSX system work on the project without causing any problems when the Windows 10 system needs to run the updated code?
It shouldn't matter where the project was created, because everything under
.meteor/local
Is built dynamically. This directory should be in your .meteor/.gitignore file to prevent it going into your git repo.
If .meteor/local was copied from the Windows machine, do a
rm -rf .meteor/local
And try again.
You also need to check that you have all the pre-requisites installed on your Mac, ie XCode, Java, Android Studio, and a valid AVD for your target platform

How to Install Node.js on IIS Windows 10

I've installed Node.Js a few times and I cannot seem to get it to show up in iis for windows 10.
When I look in IIS10 for managed modules iisnode is not there and when I try to add it, it mentions something about adding it to the GAC.
From the videos I've watched it seems to be very easy for every one, they download it, and it just magically appears.
I did a nodejs in the command prompt and it shows that it is installed.
What do I need to do to properly install it so it work with IIS?
See Snap Shot, you can see that iisnode is not in the modules in iis for windows 10
Snap Shot of My Environment

installing tools for apache cordova for visual studio 2013 - CTP3

I am using visual studio 2013 ultimate running on a 64-bit windows 7 home premium. I wanted to write JavaScript code, when I tried to create a new JavaScript Project, It redirected me to Install the "Tools for Apache Cordova for Visual Studio". The installation completed successfully but showed an error in the end. The error was:
Joyent Node.js:
Invalid command line argument. Consult the Windows Installer SDK for detailed command line help. "
Now, I tried to create a new Project by selecting "JavaScript" form the "New Project" window. There was only one sub-option called "Blank App (Apache Cordova)". I selected it and clicked finish, bit then it showed all these errors:
We've detected issues with your system's environment configuration
Joyent node.js - software is missing from your computer.
Apple iTunes - software is missing from your computer.
WebSocket4Net - software is missing from you computer.
You may also have to configure it after installation.
I fixed the error related to joyent node.js and iTunes by manually installing the two, but the problem with the WebSocket4Net still persists.
I've already installed WebSocket4Net, using both the "vs2013_mda0.3" setup and manually. This has not worked. I even tried to repair the installation, by using the "vs2013_mda0.3" setup, but it made things even worse.
It was a problem with the installer, a bug maybe. The latest update (Visual Studio Update 5 (2013.5)) fixes these bugs. After updating, I didn't get any of these errors.
Also, TypeScript Projects cannot be created on Windows 7 using visual studio 2013 or lower. You have to either upgrade the OS to windows 8 or later.

Node grunt-contrib-connect server only works in Mac safe mode

I'm running a local dev server using grunt-contrib-connect and the server has become increasingly slow at loading assets and sometimes stalls out completely. I'm working collabaritively on this project via a shared repo and none of my other teammates have this problem. I've recloned the repo and started from scratch a few times, as well as uninstalling Node and reinstalling via NVM and another time from downloading the package on the Node website. The only solution I've found is booting my Mac running Mavericks in safe mode and then my connect server runs fine. Unfortunately most of my other applicatioms, such as my text editor, work poorly in safe mode. I'm curious what it could be about safe mode that is 'solving' this problem and if this is a hardware/software problem I should address with Apple. I'm currently running Node 0.10.30 via NVM.
Sounds like there might be some other processes running on your machine that could be causing a problem.
Maybe try opening Activity Monitor, sorting processes by CPU time and seeing what's at the top?

Categories