Although this isn't a problem in other languages, because of semicolon insertion, there could be problems if you don't place the bracket on the opening line:
// no:
function()
{| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This is tutorial showing how to manage code snippet using Gist and Sublime Text 2 in a incredibly easy way: https://www.youtube.com/watch?v=3cdkYdzgXLc
Java comes with renameTo() method to rename a file. However , this method is really platform-dependent: you may successfully rename a file in *nix but failed in Windows. So, the return value (true if the file rename successful, false if failed) should always be checked to make sure the file is rename successful.
package com.mkyong.file;
import java.io.File;| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.IOException; | |
| public class ReadFileExample { | |
| public static void main(String[] args) { | |
| File file = new File("C:/robots.txt"); |
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| public class WriteFileExample { | |
| public static void main(String[] args) { | |
| File file = new File("c:/newfile.txt"); | |
| String content = "This is the text content"; |
| import java.io.File; | |
| import java.io.IOException; | |
| public class FileReadAttribute | |
| { | |
| public static void main(String[] args) throws IOException | |
| { | |
| File file = new File("c:/file.txt"); |
Stop the MySQL service through Administrator tools, Services.
Modify the my.ini configuration file (assuming default paths)
C:\Program Files\MySQL\MySQL Server 5.5\my.ini
or for MySQL version >= 5.6
C:\ProgramData\MySQL\MySQL Server 5.6\my.ini
| xcopy source_folder\* "destination_folder_path" /D /E /C /Q /H /R /Y /K |
| '.platform-win32 atom-text-editor, .platform-linux atom-text-editor': | |
| 'ctrl-d': 'editor:delete-line' | |
| 'atom-workspace atom-text-editor:not([mini])': | |
| 'ctrl-alt-down': 'editor:duplicate-lines', |