- Stop the
MySQL 8.0service from services - Go to path C:\Program Files\MySQL\MySQL Server 8.0\bin and open
cmd - Run
mysqld --console --skip-grant-tables --shared-memory --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" - Open new
cmdin the same path - Run following commands
mysql -u rootselect authentication_string,host from mysql.user where user='root';UPDATE mysql.user SET authentication_string='' WHERE user='root';
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Text; | |
| using OpenTK.Graphics.OpenGL4; | |
| public static class ShaderCompiler | |
| { | |
| public static int GetShaderHandle(string vertexName, string fragmentName) | |
| { | |
| var shaderHandle = GL.CreateProgram(); | |
| var vertexShader = CompileShader(vertexName, ShaderType.VertexShader); | |
| var fragmentShader = CompileShader(fragmentName, ShaderType.FragmentShader); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| https://stackoverflow.com/questions/25310954/why-change-user-type-to-sql-user-with-login-is-disabled-in-ssms | |
| */ | |
| USE DatabaseName; | |
| ALTER USER UserName WITH LOGIN = LoginName; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; Settings for WarmUp before AutoLeveling | |
| M140 S45 ; warm up bed | |
| M104 S150 T0 ; warm up hotend | |
| M280 P0 S160 ; BLTouch alarm release | |
| G28 ; Home all axes | |
| G0 X0 Y20 F5000 ; Move to start probe position | |
| M190 S45 ; wait for bed warm up | |
| M109 S150 T0 ; wait for hotend warm up | |
| G29 ; Auto Leveling |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ' extracted from http://www.vbaexpress.com/forum/showthread.php?43269-Writing-to-Word-quot-Publish-Date-quot-Document-Property&s=e98d9dd27d2cc1736a3ab375afb6d90b&p=274084&viewfull=1#post274084 | |
| Public Sub DemoPublishDate() | |
| 'the current value (notice the standard format is "yyyy-mm-ddT00:00:00" | |
| 'when a content control has last set the value | |
| MsgBox fGetPublishDate_XMLNode | |
| 'update the value and display that we updated it | |
| MsgBox fGetPublishDate_XMLNode(Format(Now, "m/d/yyyy")) | |
| End Sub |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Global : HttpApplication | |
| { | |
| void Application_Start(object sender, EventArgs e) | |
| { | |
| // Code that runs on application startup | |
| AreaRegistration.RegisterAllAreas(); | |
| GlobalConfiguration.Configure(WebApiConfig.Register); | |
| RouteConfig.RegisterRoutes(RouteTable.Routes); | |
| SetupJsonSerialize(); // <--- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Runtime.InteropServices; | |
| [ComImport] | |
| [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] | |
| [Guid("00000016-0000-0000-C000-000000000046")] | |
| public interface IMessageFilter | |
| { | |
| [PreserveSig] int HandleInComingCall(int dwCallType, IntPtr hTaskCaller, int dwTickCount, IntPtr lpInterfaceInfo); | |
| [PreserveSig] int RetryRejectedCall(IntPtr hTaskCallee, int dwTickCount, int dwRejectType); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Runtime.InteropServices; | |
| using stdole; | |
| public static class PictureConverter | |
| { | |
| // https://adndevblog.typepad.com/manufacturing/2012/06/how-to-convert-iconbitmap-to-ipicturedisp-without-visualbasiccompatibilityvb6supporticontoipicture.html | |
| private static Guid iPictureDispGuid = typeof(IPictureDisp).GUID; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%> | |
| <%@page language="java" access="http|internal"%> | |
| <%@page import="com.infoengine.object.IeDatum"%> | |
| <%@page import="wt.org.OrganizationServicesMgr"%> | |
| <%@page import="wt.org.WTUser"%> | |
| <% | |
| /* Windchill LDAP 2 DisplayName */ | |
| Enumeration elements = getGroup("Output").getElements(); | |
| while (elements.hasMoreElements()) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.IO; | |
| using System.Text.RegularExpressions; | |
| using System.Web; | |
| using System.Web.Hosting; | |
| using System.Web.Optimization; | |
| public static class BundleExtensions | |
| { | |
| public static Bundle WithLastModifiedToken(this Bundle bundle) | |
| { |
NewerOlder