“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
The Ring programming language version 1.5.3 book - Part 193 of 194
1. Ring Documentation, Release 1.5.3
Return Self by Reference
What is new in Ring 1.3?, 100
Return Value
Extension, 768
Functions - First Style, 176
Functions - Second Style, 180
Functions - Third Style, 184
Reverse()
Lists, 190
Rewind()
Files, 222
Right()
Strings, 196
RING API - list Functions
Extension, 770
RING API - String Functions
Extension, 772
Ring CGI Hello World Program
Web Development (CGI Library), 367
Ring Group
Resources, 1773
Ring Language Website
Resources, 1773
Ring mode for Emacs Editor
What is new in Ring 1.3?, 98
Ring Notepad
Introduction, 134
Ring Notepad - Creating and running your first con-
sole application, 135
Ring Notepad - Creating and running your first game,
140
Ring Notepad - Creating and running your first GUI
application, 138
Ring Notepad - Creating and running your first Web
application, 139
Ring Notepad - Main Window, 135
The Browser Menu, 144
The Edit Menu, 142
The File Menu, 142
The Help Menu, 145
The Main File in the Project, 141
The Program Menu, 144
The Tools Menu, 145
The View Menu, 143
Ring Notepad - Creating and running your first console
application
Ring Notepad, 135
Ring Notepad - Creating and running your first game
Ring Notepad, 140
Ring Notepad - Creating and running your first GUI ap-
plication
Ring Notepad, 138
Ring Notepad - Creating and running your first Web ap-
plication
Ring Notepad, 139
Ring Notepad - Main Window
Ring Notepad, 135
Ring State
Embedding Ring Language in C/C++ Programs, 775
Ring State Functions
Embedding Ring Language in C/C++ Programs, 775
Ring State Variables
Embedding Ring Language in C/C++ Programs, 776
Ring VM - Tracing Functions
What is new in Ring 1.5?, 61
ring_ext.c
Extension, 765
ring_ext.h
Extension, 765
RingAllegro Functions Reference
Introduction, 807
RingCodeHighlighter Class
RingQt Classes Reference, 1688
RingFreeGLUT Extension
What is new in Ring 1.5?, 47
RingFreeGLUT Functions Reference
Introduction, 842
RingLibCurl
Facebook Login, 420
Get Request, 420
Get Stock Data From Yahoo, 422
Introduction, 419
Post Request, 420
Save output to string, 421
What is new in Ring 1.2?, 107
RingLibCurl Functions Reference
Introduction, 797
RingLibSDL
Close Window Event, 443
Create Window, 440
Display Image, 440
Display PNG Images, 441
Display Transparent Images, 442
Draw Rectangle, 441
Introduction, 439
Mouse Events, 444
Play Sound, 445
Switch Between Two Images, 440
Use TTF Fonts, 442
What is new in Ring 1.1?, 116
RingLibSDL Functions Reference
Introduction, 826
RingLibZip Functions Reference
Introduction, 806
RingOpenGL (OpenGL 1.1) Functions Reference
Introduction, 851
RingOpenGL (OpenGL 1.2) Functions Reference
Introduction, 876
Index 1795
4. Ring Documentation, Release 1.5.3
What is new in Ring 1.1?, 117
ringvm_callfunc()
Low Level Functions, 750
RingVM_CallList()
Low Level Functions, 746
RingVM_CFunctionsList()
Low Level Functions, 742
RingVM_ClassesList()
Low Level Functions, 742
ringvm_evalinscope()
Low Level Functions, 749
RingVM_FilesList()
Low Level Functions, 747
RingVM_FunctionsList()
Low Level Functions, 742
ringvm_hideerrorMsg()
Low Level Functions, 749
RingVM_MemoryList()
Low Level Functions, 744
RingVM_PackagesList()
Low Level Functions, 743
ringvm_passerror()
Low Level Functions, 749
ringvm_scopescount()
Low Level Functions, 749
ringvm_settrace()
Low Level Functions, 748
ringvm_tracedata()
Low Level Functions, 748
ringvm_traceevent()
Low Level Functions, 748
ringvm_tracefunc()
Low Level Functions, 749
RingZip
Create Zip File, 424
Extract Zip File, 424
Introduction, 423
Print files in Zip file, 424
Using RingZip Classes, 424
Zip Class Reference, 426
ZipEntry Class Reference, 426
RingZip Library
What is new in Ring 1.3?, 101
Rotate Text
Desktop and Mobile Development, 632
Rules
The Type Hints Library, 719
Run the program
Getting Started - First Style, 129
Getting Started - Second Style, 131
Getting Started - Third Style, 133
Running Forms
Form Designer, 683
Runtime Errors
Reference, 1763
Samples
How to contribute?, 127
Samples in this book
Applications developed in little hours, 13
Samples Source (Authors)
Using RingOpenGL and RingFreeGLUT for 3D
Graphics, 500
Save and Restore Images
ODBC Functions, 249
Save Image Inside the Database
MySQL Functions, 257
Save output to string
RingLibCurl, 421
Scaling and Rotating Images
Graphics and Game Programming, 435
Scope Rules
Accessing the class attributes from braces inside
class methods, 695
Conflict between Class Attributes and Local Vari-
ables, 692
Conflict between Global Variables and Class At-
tributes, 691
Conflict between self inside braces and self in the
class region, 698
Creating a Class for each Window in GUI applica-
tions, 697
Defining Variables and Variables Access, 689
How Ring find the Variable?, 690
Introduction, 688
Summary of Scope Rules, 702
The Self Object, 690
Three Scopes, 689
Using Braces to access objects inside Class Methods,
693
Using braces to escape from the current object scope,
701
Using Object.Attribute, 690
Scope Rules for Functions and Methods
Calling a function sharing the name with a method in
the current class, 706
Example about Sharing Names between Functions
and Methods, 704
How Ring find a functions and methods?, 704
Introduction, 703
ScriptFunctions Class
Web Development (CGI Library), 417
Search
Lists, 189
Search of global names while defining the class attributes
Frequently Asked Questions, 1740
Security and Internet Functions
Decrypt(), 266
Index 1798
5. Ring Documentation, Release 1.5.3
Download(), 267
Encrypt(), 265
Example, 266
File Hash, 266
Introduction, 262
MD5(), 263
RandBytes(), 266
SendEmail(), 267
SHA1(), 264
SHA224(), 265
SHA256(), 264
SHA384(), 265
SHA512(), 264
Security Class
Stdlib Classes, 341
Send Parameters
Functions - First Style, 175
Functions - Second Style, 179
Functions - Third Style, 183
SendEmail()
Security and Internet Functions, 267
Serial Execution of Programs
Embedding Ring in Ring, 763
Set List Item
Lists, 188
setattribute()
Reflection and Meta-programming, 300
Setter and Getter
Object Oriented Programming, 272
SHA1()
Security and Internet Functions, 264
SHA224()
Security and Internet Functions, 265
SHA256()
Security and Internet Functions, 264
SHA384()
Security and Internet Functions, 265
SHA512()
Security and Internet Functions, 264
Shared Libraries
Extension, 773
Short-circuit evaluation
Control Structures - First Style, 161
Shutdown() Function
System Functions, 234
sign()
Stdlib Functions, 309
Simple
Language Design, 27
Simple Client and Server Example
Desktop and Mobile Development, 636
Sin() Implementation
Extension, 769
Single: Desktop and Mobile Development
Introduction, 567
sleep()
Stdlib Functions, 316
Smart Garbage Collector
Language Design, 35
Sort()
Lists, 189
Sort() and List of Objects
Object Oriented Programming, 277
Sound Class
Game Engine for 2D Games, 451
Source Code File Sections
Program Structure, 186
space()
Low Level Functions, 739
Special thanks to contributors
How to contribute?, 127
split()
Stdlib Functions, 306
splitmany()
Stdlib Functions, 306
Sprite Automatic Movement
Game Engine for 2D Games, 458
Sprite Class
Game Engine for 2D Games, 450
Sprite Keypress Event
Game Engine for 2D Games, 459
Sprite Mouse Event
Game Engine for 2D Games, 460
Sprite State Event
Game Engine for 2D Games, 461
SQLite
Introduction, 259
sqlite_close(), 260
sqlite_execute(), 260
sqlite_init(), 260
sqlite_open(), 260
SQLite Class
Stdlib Classes, 340
sqlite_close()
SQLite, 260
sqlite_execute()
SQLite, 260
sqlite_init()
SQLite, 260
sqlite_open()
SQLite, 260
Squares Puzzle Game
Applications developed in little hours, 8
Stack Class
Stdlib Classes, 325
Stars Fighter Game
Game Engine for 2D Games, 470
startswith()
Index 1799
6. Ring Documentation, Release 1.5.3
Stdlib Functions, 310
StdBase Class
Stdlib Classes, 320
Stdlib Classes
Conversion Class, 337
DataType Class, 336
DateTime Class, 331
Debug Class, 335
File Class, 333
HashTable Class, 326
Internet Class, 342
Introduction, 319
List Class, 323
Math Class, 328
MySQL Class, 339
ODBC Class, 338
Queue Class, 325
Security Class, 341
SQLite Class, 340
Stack Class, 325
StdBase Class, 320
String Class, 321
System Class, 334
Tree Class, 327
Stdlib Functions
apppath(), 304
binarydigits(), 313
capitalized(), 307
changestring(), 316
dayofweek(), 314
direxists(), 316
endswith(), 310
EpochTime(), 318
evenorodd(), 312
factorial(), 308
factors(), 312
fibonacci(), 309
file2list(), 310
filter(), 306
FSize(), 317
gcd(), 311
getnumber(), 304
getstring(), 304
Introduction, 302
isleapyear(), 313
ismainsourcefile(), 316
isprime(), 309
isspecial(), 307
isvowel(), 308
JustFileName(), 305
JustFilePath(), 304
lcm(), 311
linecount(), 308
list2file(), 309
ListAllFiles() Function, 318
makedir(), 317
map(), 306
matrixmulti(), 313
matrixtrans(), 314
newlist(), 307
palindrome(), 313
permutation(), 314
print(), 303
Print2Str() Function, 303
prodlist(), 312
puts(), 303
readline(), 315
sign(), 309
sleep(), 316
split(), 306
splitmany(), 306
startswith(), 310
substring(), 315
sumlist(), 311
SystemCmd() Function, 318
times(), 305
TrimAll(), 317
TrimLeft(), 317
TrimRight(), 318
value(), 305
StdLib functions and classes written in Ring
What is new in Ring 1.1?, 114
Step Option
Control Structures - First Style, 159
Str2Hex()
Data Type, 212
str2list() and list2str()
Strings, 199
strcmp()
Strings, 199
String Class
Stdlib Classes, 321
String Literals
Strings, 195
String()
Data Type, 210
Strings
Access String Letters, 195
Convert Letters Case, 195
Copy(), 197
Find SubString, 198
Get Number of Characters from position, 198
Get String Length, 195
Get Substring from position to end, 198
Introduction, 194
Left(), 196
Lines(), 197
Right(), 196
Index 1800
7. Ring Documentation, Release 1.5.3
str2list() and list2str(), 199
strcmp(), 199
String Literals, 195
Substr(), 197
Transform Substring To Another Substring, 198
Trim(), 197
StyleFunctions Class
Web Development (CGI Library), 417
Substr()
Strings, 197
substring()
Stdlib Functions, 315
sumlist()
Stdlib Functions, 311
Summary of Scope Rules
Scope Rules, 702
Super Man 2016 Game
Game Engine for 2D Games, 485
Swap Items
Lists, 194
Switch Between Two Images
RingLibSDL, 440
Switch Statement
Control Structures - First Style, 157
Control Structures - Second Style, 164
Control Structures - Third Style, 167
Syntax Flexibility
Change Language Keywords, 708
Change Language Operators, 709
Introduction, 707
Load Syntax Files, 709
Using ’case’ as ’on’ in switch statements, 715
Using ’def’ as ’func’ in functions/methods defini-
tion, 715
Using ’end’ keyword after Pack-
ages/Classes/Functions, 716
Using ’endpackage’/’endclass’/’endfunc’ keywords
after Packages/Classes/Functions, 716
Using ’put’ and ’get’ as ’see’ and ’give’, 715
Using () around the function parameters, 709
in the start of the variable name, 712
Using braces { } in Packages/Classes/Functions, 716
Using braces to start and end different control struc-
tures, 714
Using Semi-colon after and between statements, 711
Using the ’else’ keyword as ’other’ in switch state-
ment, 712
Using the ’elseif’ keyword as ’but’ in if statement,
712
Using the ’end’ keyword in different control struc-
tures, 713
What is new in Ring 1.1?, 111
SysGet() Function
System Functions, 229
System Class
Stdlib Classes, 334
System Functions
ChDir() Function, 233
CurrentDir() Function, 233
Example, 230
ExeFileName() Function, 233
ExeFolder() Function, 233
Get Active Source File Name, 232
Get Command Line Arguments, 231
Introduction, 227
IsAndroid() Function, 230
IsFreeBSD() Function, 230
IsLinux() Function, 230
IsMacOSX() Function, 229
IsMSDOS() Function, 229
IsUnix() Function, 229
IsWindows() Function, 229
IsWindows64() Function, 229
PrevFileName() Function, 232
Shutdown() Function, 234
SysGet() Function, 229
System() Function, 228
Version() Function, 233
Windowsnl() Function, 231
System() Function
System Functions, 228
SystemCmd() Function
Stdlib Functions, 318
Tempfile()
Files, 222
Templates
Web Development (CGI Library), 381
Tempname()
Files, 222
Testing
How to contribute?, 127
Text Class
Game Engine for 2D Games, 450
The Browser Menu
Ring Notepad, 144
The Camera
Using RingOpenGL and RingFreeGLUT for 3D
Graphics, 510
The Cards Game
Demo Programs, 658
Desktop and Mobile Development, 658
The Designer Windows
Form Designer, 682
The Difference between Qt and RingQt
Desktop and Mobile Development, 668
The documentation says functional programming is sup-
ported, but then this happens?
Index 1801
8. Ring Documentation, Release 1.5.3
Frequently Asked Questions, 1732
The Edit Menu
Ring Notepad, 142
The File Menu
Ring Notepad, 142
The First GUI Application
Desktop and Mobile Development, 568
The First Triangle
Using RingOpenGL and RingFreeGLUT for 3D
Graphics, 503
The First Window using RingFreeGLUT
Using RingOpenGL and RingFreeGLUT for 3D
Graphics, 501
The Help Menu
Ring Notepad, 145
The Main File in the Project
Ring Notepad, 141
The Natural Library
What is new in Ring 1.4?, 80
The Program Menu
Ring Notepad, 144
The Properties
Form Designer, 682
The Self Object
Scope Rules, 690
The Tools Menu
Ring Notepad, 145
The Trace Library and the Interactive Debugger
BreakPoint, 760
Disable BreakPoints, 760
Execute Program Line by Line, 759
Interactive Debugger, 759
Introduction, 757
Loading the Trace library, 758
Pass Error, 759
Trace All Events, 758
Trace control flow between functions, 758
Using the Interactive Debugger, 760
The Type Hints Library
Example, 718
Introduction to the Type Hints Library, 717
Rules, 719
User Types, 718
Using Types inside Code, 719
Why Type Hints?, 718
The View Menu
Ring Notepad, 143
Threads
Graphics and Game Programming, 437
Threads Support
Code Generator, 785
Three Scopes
Scope Rules, 689
TicTacToe 3D Game
Using RingOpenGL and RingAllegro for 3D Graph-
ics, 557
TicTacToe Game
Applications developed in little hours, 7
Time()
Date and Time, 201
TimeList()
Date and Time, 202
times()
Stdlib Functions, 305
Trace All Events
The Trace Library and the Interactive Debugger, 758
Trace control flow between functions
The Trace Library and the Interactive Debugger, 758
Trace Library and Interactive Debugger
What is new in Ring 1.5?, 65
Transaction Example
MySQL Functions, 258
Transactions and Using Commit and Rollback
ODBC Functions, 248
Transform Substring To Another Substring
Strings, 198
Transparent Image
Graphics and Game Programming, 436
Transparent Implementation
Language Design, 33
Tree Class
Stdlib Classes, 327
Triangle Rotation
Using RingOpenGL and RingFreeGLUT for 3D
Graphics, 506
Trim()
Strings, 197
TrimAll()
Stdlib Functions, 317
TrimLeft()
Stdlib Functions, 317
TrimRight()
Stdlib Functions, 318
TrueType Fonts
Graphics and Game Programming, 433
Try/Carch/Done
Eval() and Debugging, 235
Trying to be natural
Language Design, 28
Type Hints Library
What is new in Ring 1.5?, 68
Type()
Data Type, 206
Ungetc()
Files, 224
Unsigned()
Mathematical Functions, 216
Index 1802
9. Ring Documentation, Release 1.5.3
Update the Android SDK
Building RingQt Applications for Mobile, 673
Upload Files
Web Development (CGI Library), 375
URL Encode
Web Development (CGI Library), 380
Use TTF Fonts
RingLibSDL, 442
User Types
The Type Hints Library, 718
Users registration and Login
Web Development (CGI Library), 402
Using ’<’ and ’:’ operators as ’from’ keyword
What is new in Ring 1.3?, 100
Using ’case’ as ’on’ in switch statements
Syntax Flexibility, 715
Using ’def’ as ’func’ in functions/methods definition
Syntax Flexibility, 715
Using ’end’ keyword after Packages/Classes/Functions
Syntax Flexibility, 716
Using ’endpackage’/’endclass’/’endfunc’ keywords after
Packages/Classes/Functions
Syntax Flexibility, 716
Using ’put’ and ’get’ as ’see’ and ’give’
Syntax Flexibility, 715
Using () around the function parameters
Syntax Flexibility, 709
in the start of the variable name
Syntax Flexibility, 712
Using _ in numbers
Mathematical Functions, 217
Using Atom
Using Other Code Editors, 148
Using Bootstrap Library using Functions
Web Development (CGI Library), 396
Using Bootstrap Library using Objects
Web Development (CGI Library), 397
Using braces { } in Packages/Classes/Functions
Syntax Flexibility, 716
Using Braces to access objects inside Class Methods
Scope Rules, 693
Using braces to escape from the current object scope
Scope Rules, 701
Using braces to start and end different control structures
Syntax Flexibility, 714
Using C/C++ Compiler and Linker
Distributing Ring Application, 722
Using configuration file that wrap C++ library
Code Generator, 787
Using Emacs Editor
Using Other Code Editors, 150
Using Eval() with our Natural Code
Natural Language Programming, 353
Using f after numbers
Mathematical Functions, 217
Using Fonts
Using RingOpenGL and RingFreeGLUT for 3D
Graphics, 527
Using Geany
Using Other Code Editors, 147
Using Layout
Desktop and Mobile Development, 569
Using Layouts
Form Designer, 688
Using Lists during definition
Lists, 192
Using Many Source Code Files
Program Structure, 186
Using Notepad++
Using Other Code Editors, 146
Using NULL instead of NULLPointer()
What is new in Ring 1.2?, 108
Using Object.Attribute
Scope Rules, 690
Using Other Code Editors
Introduction, 145
Using Atom, 148
Using Emacs Editor, 150
Using Geany, 147
Using Notepad++, 146
Using Sublime Text 2, 149
Using Visual Studio IDE, 150
Using QCheckBox
Desktop and Mobile Development, 596
Using QComboBox Class
Desktop and Mobile Development, 577
Using QDateEdit
Desktop and Mobile Development, 591
Using QDesktopWidget Class
Desktop and Mobile Development, 631
Using QDial
Desktop and Mobile Development, 592
Using QDockWidget
Desktop and Mobile Development, 584
Using QFrame
Desktop and Mobile Development, 601
Using QInputDialog Class
Desktop and Mobile Development, 622
Using qLCDNumber
Desktop and Mobile Development, 619
Using QProgressBar
Desktop and Mobile Development, 588
Using QProgressBar and Timer
Desktop and Mobile Development, 611
Using QRadioButton and QButtonGroup
Desktop and Mobile Development, 597
Using QSlider
Desktop and Mobile Development, 589
Index 1803
10. Ring Documentation, Release 1.5.3
Using QSpinBox
Desktop and Mobile Development, 589
Using QTableWidget
Desktop and Mobile Development, 587
Using QTabWidget
Desktop and Mobile Development, 585
Using QTreeView and QFileSystemModel
Desktop and Mobile Development, 575
Using QTreeWidget and QTreeWidgetItem
Desktop and Mobile Development, 576
Using QWebView
Desktop and Mobile Development, 595
Using RingOpenGL and RingAllegro for 3D Graphics
3D Cube and Texture, 548
Introduction, 547
Many Cubes, 552
TicTacToe 3D Game, 557
Using RingOpenGL and RingFreeGLUT for 3D Graphics
Drawing using RingOpenGL, 502
Frames Per Second, 535
Introduction, 499
Keyboard Events and Colors, 507
Make a Cube using RingOpenGL and RingFreeG-
LUT, 544
Menu Events, 520
Mouse Events, 516
Samples Source (Authors), 500
The Camera, 510
The First Triangle, 503
The First Window using RingFreeGLUT, 501
Triangle Rotation, 506
Using Fonts, 527
What is RingFreeGLUT?, 501
What is RingOpenGL?, 500
Window Resize Event, 504
Using RingZip Classes
RingZip, 424
Using Self.Attribute
Object Oriented Programming, 279
Using Self.Attribute in the Class Region to define new at-
tributes
What is new in Ring 1.1?, 118
Using Semi-colon after and between statements
Syntax Flexibility, 711
Using Sublime Text 2
Using Other Code Editors, 149
Using the ’else’ keyword as ’other’ in switch statement
Syntax Flexibility, 712
Using the ’elseif’ keyword as ’but’ in if statement
Syntax Flexibility, 712
Using the ’end’ keyword in different control structures
Syntax Flexibility, 713
Using the Interactive Debugger
The Trace Library and the Interactive Debugger, 760
Using the Natural Library
Defining Commands, 361
Defining commands using classes, 364
Introduction, 358
Natural Library - Demo Program, 359
Operators, 363
Using the QColorDialog Class
Desktop and Mobile Development, 618
Using the QFileDialog Class
Desktop and Mobile Development, 613
Using the QListWidget Class
Desktop and Mobile Development, 572
Using the QTextEdit Class
Desktop and Mobile Development, 571
Using the QTimer Class
Desktop and Mobile Development, 610
Using the tool
Code Generator, 778
Using This.Attribute in nested Braces inside the Class
Methods
What is new in Ring 1.1?, 118
Using Types inside Code
The Type Hints Library, 719
Using Visual Studio IDE
Using Other Code Editors, 150
value()
Stdlib Functions, 305
Variables
Deep Copy, 152
Dynamic Typing, 152
Introduction, 151
Weakly Typed, 153
Variables Scope
Functions - First Style, 176
Functions - Second Style, 180
Functions - Third Style, 184
varptr()
Low Level Functions, 739
Version() Function
System Functions, 233
Video-Music-Player Application
Applications developed in little hours, 9
What is new in Ring 1.5?, 36
Virtual Machine Instructions
Reference, 1766
Visual Implementation
Language Design, 34
Weakly Typed
Variables, 153
Web Development (CGI Library)
Application Class, 414
Configure the Apache web server, 366
Index 1804