LinkedInTwitterFacebook

Random lines with jQuery.

This is a complex tutorial about HTML5, jQuery and javascript.
The result of this tutorial will be a text and one canvas with random animated lines.
The result is this animated line into html5 file (also you can see my codepen example) :
free-tutorials
Because I used jQuery , first line of code into head section was:

To see the result: the text and canvas I used into body section this tags:

The next step is to have a style into my html5 file, so I put this code into head section:

Next steps:

  • select canvas for draw ( I used c variable );
  • make a random points into canvas ( I used a function);
  • make points and lines ( I used b function);
  • make create, animate and line function object as a combination of a prototype;

JavaScript allows you to use a Function object as a combination of a prototype to use for the new object and a constructor function to invoke.
The event.pageX property returns the position of the mouse pointer, relative to the left edge of the document.
Let’s see now the full source code:

Share

irc freenode

About IRC.
Internet Relay Chat (IRC) is a system for chatting that involves a set of rules and conventions and client/server software.
The base of this system is an application layer protocol that facilitates communication in the form of text.
This open protocol uses TCP[1] and, optionally, TLS.
Most people always been running the IRC on 6667 port.
New to IRC?
First you need to know about IRC is always the server and the client communication way.
I used irc.freenode.net fro server and many client applications.
All this client applications connect to freenode by pointing your IRC client.
Examples of applications client for IRC: irssi, WeeChat, ERC, HexChat, Smuxi, Quassel or mIRC(Windows OS).
There are several IRC clients that are actively working very well an I used:

Let’s see some commands for server and client IRC:

To make tests with IRC you can also use a web interface like webchat.freenode.net.
To view the current state of your account, while identified type:

If you’d like to then change the registered email address, first…

Your email address is hidden from other users by default. You can ensure this by setting:

Send pass of your account:

Register your IRC nick:

then identify to your primary account:

Some tips and tricks.
– How to fix “nickname is already in use” error in irc?
1. You are not closed your previous session of IRC chat
a) Trying to login with same nickname in another place/application with
existing active connection.
2. You are internet connectivity disconnected and IRC server not released
your session.
How to fix:
a) /msg nickserv ghost
b) /msg NickServ identify
3. some tips and commands:
– List all channels:
a) /list
– Find others
a) /who *~*
– See server uptime
a) /uptime
For more infos take a look at wiki page: irc instructions.

Share

Windows 10 – Control Panel applications tools.

Using command shell under Windows 10 ( cmd – command ) you can start the applications tools from your Control Panel.
See the table with:
name of tool : command
Accessibility Options : control access.cpl
Add/Remove Programs : control appwiz.cpl
Add Hardware Wizard : control hdwwiz.cpl
Administrative Tools : control admintools
Automatic Updates : control wuaucpl.cpl
Bluetooth Properties : control bthprops.cpl
Control Panel : control panel
Desktop Properties : control desktop
Desktop Appearances Properties : control color
Display Properties : control desk.cpl
Fastfind Properties : control findfast.cpl
Firewall Properties : control firewall.cpl
Fonts Folder : control fonts
Game Controllers : control joy.cpl
Infrared Properties : control infrared
Internet Options : control inetcpl.cpl
iSCSI Initiator : control iscsicpl.cpl
Java Control Panel : control jpicpl32.cpl
Keyboard Properties : control main.cpl keyboard
Licensing Mode : control liccpa.cpl
Mouse Properties : control main.cpl
Network Connections : control ncpa.cpl
Network Setup Wizard : control netsetup.cpl
ODBC Properties : control odbccp32.cpl
Power Options : control powercfg.cpl
Printers Folder : control printers
Regional and Language Options : control intl.cpl
Scanners and Camera Properties : control sticpl.cpl
Schedule Tasks : control schedtasks
Sound and Audio Devices : control mmsys.cpl
Stored Passwords : control keymgr.cpl
System Properties : control sysdm.cpl
Telephone and Modem Properties : control telephon.cpl
Time and Date Settings : control timedate.cpl
User Accounts : control nusrmgr.cpl
User Accounts Advances : control userpasswords2
User Passwords : control userpasswords
Windows Security Center : control wscui.cpl
Wireless Link : control irprops.cpl

Share

Bash: Get IP and IPv6 address and interfaces.

First use this commands to see your IP and IPv6 address and interfaces.

Now if you want to use this every day, just open your .bashrc file from your home folder.
Add this functions to the .bashrc file:

Now open a new terminal shell and use it:

Share

Network and Windows – Wi-Fi and invalid ip address;

Start Command Prompt as administrator and use this commands to solve this issue:

First command reset winsock and the second reset TCP/IP stack.
1. Windows Sockets API (WSA), later shortened to Winsock, is a technical specification that defines how Windows network software should access network services, especially TCP/IP;
2. This common protocol on the internet is the Transmission Control Protocol/Internet Protocol (TCP/IP).The TCP/IP stack is a complete set of networking protocols ( OSI Model of this is layer 4);

Share