Posts

javafx

links  table view  javafx https://www.tutorialspoint.com/javafx/index.htm  - tutorialspoint javafx with scene https://www.javatpoint.com/javafx-labe l - javafx working with scene  java 8  https://www.geeksforgeeks.org/java-8-features/?ref=lbp java  https://www.geeksforgeeks.org/java/?ref=lbp

python-beginner

 variable name='sadogi' surname="llkjuhhhu" str age='36' print('oko'+name+" "+surname+" "+age) string matris seklindedir python icin print(name[0]) //s length=len(name)//6 karakter print(name[length-1) // = print(name[5]) = i print(name[-1] //i -cunku sondan basa sayiyor, sondaki ilk harf -1 print(name[2:4]) // 2 inci karakterden 4`e kadarini yaz = dog print(name[2:]) //2`inciden sona kadar yaz = dogi print(name[:4]) //4`uncu karaktere kadar yaz = sadog

c++-beginner

begin of code: #include <iostream>  using namespace std; int main(){ input int a, b; cin>>a>>b; output cout<<a<<b; newline when print cout << a <<endl; Conditional == equal != not equal <= >= < > int points=101; if(points>70){ cout << "hoy yah"; } else if(points==70){ cout<<"konoriki"; } else{ cout << "moko"; } int choice=2 switch(choice){ case 1: cout<< "bud"; break; case 2: cout<<"choco"; break; default: cout << "yoyo"; }

PHP MYSQL notes

  < Beginner PHP >< Array >< Loop >< Function >< Pre-Def variable >< Session > < Read Write File > < CRUD > < Advanced PHP >< PHP MySQL PHP MyAdmin >< PHP MySQL Notes > TR: Create DB Collation Supported language: gözönünde bulundur Most common: UTF-general-cı Türkçe: ISO 8859-9 (latin5) windows 1254 utf-8 çok daha iyi ama dezavantaj daha çok byte Data Type Int - collation boş - size boş String - bu field her zaman  Char olmalı-çünkü =255 karakter Text çok daha karakter >255 karakter Date - otomati için Timestamp (datatype) olmalı Null Her zaman boş bırak, çünkü "not null" demek 2 column index seçme Tablo save ettikten sonra, 2 column select et  "primary" de Drop Down Menu (Pull Down Menu) Tables should be type: INNODB (automatically made) Relational view'a gel, üstü boş bırak (internal) sadece aşağıdakini doldur (external) Column view relation aynı, hem dropdown, hem relation yapıyor Copy Table

PHP-Read Write File

  < Beginner PHP >< Array >< Loop >< Function >< Pre-Def variable >< Session > < Read Write File > < CRUD > < Advanced PHP >< PHP MySQL PHP MyAdmin >< PHP MySQL Notes > Working with Files & Writing to a file Functions for creating, reading, uploading and editing files. fopen() creates or opens a file modes r: open file for read only w: open file for write only,  erases content of file or creates new file if not exist a:open file for write only x: create new file for write only rt: open file for read/write wt: open file for read/write erase content of file create new file a:open file for read/write. create new file if not exist xt: create new file if not exist Creating a file $myfile=fopen("file.txt","w"); fwrite:  writes to a file. Parameters: file to write to string to be written <?php $myfile=fopen("names.txt","w"); $txt="Mickey\n"; fwrite($myfile,$txt); $txt=&qu

JS-Loop and If

   < Beginner JS >< Function >< Variable >< Loop-If >< OOP > if statement if(MemberAge<18){ document.write("teen"); } if..else if(MemberAge<18){ document.write("teen"); } else{ document.write("big"); } if...else  if...else if(MemberAge<18){ document.write("teen"); } else if(MemberAge>18){ document.write("adult"); } else{ document.write("just 18"); } Switch statement Ex1: switch(memcat){ case1: Fee=100; case2: Fee=150; case3: Fee=300;} Ex2: with break switch(memcat){ case1: Fee=100; break; case2: ...; } Ex3: no matching than default case switch(memcat){ case1: Fee=100; break; case2: ...; default: Fee:400; } Counting and Looping Executing a portion of code over and over again until an intermediaite condition accurs For statement Used as counter Syntax: for(start;condition;expression)statement Ex: var Number; for(Number=0;Number<=10;Number++) document.write("Num"+Number+"

JS-OOP

   < Beginner JS >< Function >< Variable > < Loop-If > < OOP > this member it represents the class itself it has direct access to all properties of its parent class function Hand(side,fingers,nails){ this.LeftOrRight =side; this.NbrOfFingers=fingers this.NailState=nails; } name of the class : Hand  properties :  (side,fingers,nails)  // properties of the function / of the class NailState  // property of the argument argument (value provided for each property) this.LeftOrRight =side; // argument of the function / of the class =nails;     // argument of the argument class: function Hand(side,fingers,nails){ this.LeftOrRight =side; this.NbrOfFingers=fingers this.NailState=nails; } This It has direct access to all properties of its parent class You must use it to create a class Before using a class you must declare it. var dogHand=newHand("Right",5,false,true); name of the object: dogHand name of the class: Hand arguments: "Right",5,false,t