Wednesday, August 23, 2017

Install minecraft mod on Mac (for version 1.8)

https://www.youtube.com/watch?v=7Fz6vVQr4Zk


  1. Download MineCraft 1.8.8 (taobao)
  2. Download HMCL-2.7.6.23.jar
  3. Download and install forge-1.8-11.14.4.1563-installer.jar
  4. Download TooManyItems2015_02_14_1.8_Forge.jar and lom-1.8-1.2.jar
  5. Run HMCL-2.7.6.23.jar, version choose 1.8-forge1.8- …, click Games->Mods->Add and select the mods to install
  6. Test game to verify 5 mods are loaded 

Or after buy minecraft PC & MAC
1. Download and install minecraft, make sure can login and play
2. Download forge forge-1.12.1-14.22.1.2478-installer.jar, not the forge-1.12.1-14.22.1.2478-universal.jar. The universal version will report the below error:
We appear to be missing one or more essential library files.
You will need to add them to your server before FML and Forge will run successfully.java.lang.ClassNotFoundException: net.minecraft.launchwrapper.Launch
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:44)
3. Double click and select client to install forge
4. Done

Friday, August 4, 2017

Beginning ASP.NET 4 in C# 2010 note

1.
To quick check whether IIS is installed, try http://localhost
2.
When IIS is installed, it creates a directory c:\inetput\wwwroot
3.
The "Classic" application pool is only used to keep backward compatibility.
4.
Configure the website through IIS is an easier way than to edit web.config file
5.
Use debugging only while testing the web application: debug="true"
6.
To enable tracing, add Trace="true" to <% Page ...
and add Trace.IsEnabled = true; in Page_Load method
and you can add
 Trace.Write("") to add your own message
7. Application-Level tracing
add the below in web.config <system.web>
<trace enabled="true" ...>
and access through trace.axd

Wednesday, August 2, 2017

SQL server t-sql limitation

1. Cannot use + in the parameter, say when you try to call a procedure with a parameter: @param1+'Test'
It's not supported, you have to define a new variable and set @param1+'Test' to the new variable and then call the procedure with the parameter
2. Cannot call procedure from function, need to use procedure with output parameter