Quantcast
Channel: Programming – Xinyustudio
Browsing all 284 articles
Browse latest View live

‘vue’ is not recognized as an internal or external command, operable program...

Following the instruction from vue official site, I installed vue-cli via below command in termal: npm install -g @vue/cli # OR yarn global add @vue/cli For me I used the latter. And then when I fire...

View Article


Image may be NSFW.
Clik here to view.

Ramda function explained: lens

Ramda is a practical functional library for JavaScript programmers. It follows functional programming paradigm, and official doc for lens is shown here. One of the limitation of ramda is that its...

View Article


Image may be NSFW.
Clik here to view.

Using Intellij Idea as a Markdown Editor

Markdown is a lightweight markup language with plain text formatting syntax. Markdown is often used to format readme files, for writing messages in online discussion forums, and to create rich text...

View Article

Troubleshooting: node_modules/@types/react/index.d.ts – error TS2717

If you encoutner the captioned error when building a react app using typescript, you are not alone, There are bunch of solutions discussed on the internet:...

View Article

Image may be NSFW.
Clik here to view.

Unity: Detect GUI Window Created/Closed Event

On StackOverflow, someone asks how to detect the GUI Window Created/Closed Event, which Unity3D does not ship an off-the-shelf solution. Below is my solution to this problem: to use property setter to...

View Article


Visual Studio 2015, 2013 Offline download ISO link Collections

Visual Studio 2015 RC Microsoft Visual Studio 2015 RC Professional ISO Microsoft Visual Studio 2015 RC Enterprise ISO Microsoft Visual Studio 2015 RC Community ISO Microsoft Visual Studio Team...

View Article

Image may be NSFW.
Clik here to view.

Embedding web browsers in Winform applications

Winform ships with a built-in WebBrowser control where you can use it to embed a web browser in a Winform Application. It is relatively trivial to implement it: In Visual Studio Toolbox, Search “Web...

View Article

Image may be NSFW.
Clik here to view.

Using MySQL with C# (I): MySQL Installation

MySQL is a free database and can be easily used in your .Net Applications. This quick-start goes through the typical process that involves installation, up and running your “Hello MySQL” application....

View Article


Image may be NSFW.
Clik here to view.

Using MySQL with C# (II): Creating a DB for programming

You might be interested in how to install MySQL in windows, check up this link for details. Run MySQL workbench after clicking Finish   In the MySQL workbench, copy below scripts to create a new...

View Article


Image may be NSFW.
Clik here to view.

Using MySQL with C# (III): Coding in C#

Install the nuget package: in the nuget management console, type below line and run Install-Package MySql.Data Let’s create a class SqlUtils, and in the static constructor, type below code:...

View Article

Image may be NSFW.
Clik here to view.

Using Redis with C# (I): Installation of Redis

Download Redis binaries from http://ruilopes.com/redis-setup/  Run the installer, follow the instructions   You might wish to get the latest windows installer for Redis here as well. Run redis-service...

View Article

Image may be NSFW.
Clik here to view.

Using Redis with C# (II): Coding

Now that you have installed Redis on your system, let’s jump to the actual coding using C#. If you wish to get the detailed procedures to install Redis, click here. Create a winform project in Visual...

View Article

MySQL: Table ‘SOME_TABLE’ doesn’t exist whereas it does exist

In recent development, I tried to connect MySQL database locally in my C# application, and it worked fine. But when I created the same database and tables using sql script in Ubuntu, and using the same...

View Article


Image may be NSFW.
Clik here to view.

Unity3D: using ReorderableList in Custom Editor

ReorderableList is not a widely used class in Unity3D, but good use of it can make your custom editor more professional. This article walks through the typical use of ReorderableList. Create a class,...

View Article

Visual Studio 2015 RTM ISO/offline download links: official links

Visual Studio Enterprise 2015 (x86 and x64) – DVD (English)SHA1:07C949078F895CE0D9C03A1B8D55571A8C90AC94 Visual Studio Professional 2015 (x86 and x64) – DVD...

View Article


Image may be NSFW.
Clik here to view.

C# Websocket programming: the simplest example

Create a winform Application: Download the Websocket-Sharp from Nuget: PM> Install-Package WebSocketSharp -Pre Add below code:         private WebSocket client;        const string host =...

View Article

Image may be NSFW.
Clik here to view.

Unity3D: Progressbar using new UI system

Before Unity 4.6 new UI system came out, to create a progress bar, the typical process involve writing the OnGUI() function as follows: public Texture2D emptyProgressBar; // Set this in inspector....

View Article


Image may be NSFW.
Clik here to view.

Using RabbitMQ in C# (I) Installation of RabbitMQ

Go to https://www.rabbitmq.com/ and click the download link:     Select the server software on the desired platform and download the setup package. In this example, I will use windows installer. Run...

View Article

Image may be NSFW.
Clik here to view.

Using RabbitMQ in C# (II) Sending message to RabbitMQ

Create a Winform application, add below UI to the form: Add RabbitMQ .net client library in Visual Studio by using Nuget: to install RabbitMQ.Client, run the following command in the Package Manager...

View Article

Using RabbitMQ in C# (III) Consuming messages from RabbitMQ

It can be found that In earlier posts, setup RabbitMQ and sending messages are a piece of cake using RabbitMQ C# client. Let’s take a further step and see how to consume messages from RabbitMQ. Create...

View Article
Browsing all 284 articles
Browse latest View live