Friday, August 16, 2019

Windows @ MacBook Air


https://smallbusiness.chron.com/install-windows-macbook-air-68536.html


Using virtualization software to run Microsoft Windows from within your MacBook Air's native OS X operating system may be convenient when your work requires using files or software that requires Windows, but a virtualized Windows environment will be slow and could freeze up under heavy loads. Installing Windows on another partition of your MacBook Air's hard drive will let Windows perform at full strength with full access to your laptop's hardware. Apple's Boot Camp utility simplifies the process so anyone with a Windows installation disk can dual-boot both Windows and OS X on a MacBook Air.
1.
Plug your CD/DVD drive into your MacBook Air, then insert the blank DVD into the optical drive.
2.
Click on the Finder icon on the leftmost side of your Dock, and then click on the "Applications" folder in the left sidebar of the window the Finder window that appears.
3.
Open the "Utilities" folder in your Applications folder. The Utilities folder will be near the bottom of your Applications folder.
4.
Double click on "Boot Camp Assistant" to launch the application that will help you install Windows.
5.
Click the "Continue" button on the first Boot Camp Assistant window, and then select the radio button next to "Download the Windows support software for this Mac."
6.
Click the "Continue" button at the bottom of your screen, and then enter your username and password to let your MacBook Air download the drivers that will help Windows run smoothly on your laptop.
7.
Wait until Boot Camp Assistant finishes downloading the drivers, then select the radio button next to "Burn a Copy to CD or DVD."
8.
Click "Continue" to burn the drivers to your blank disc. Click the "Continue" button again when the burning process is complete.
9.
Eject the disc to which you burned the drivers and set it aside for later, then insert your Windows installation disc.
10.
Click on the graphic showing the division of your hard drive space between OS X and Windows, then drag to the left or right to increase or decrease the size of your desired Windows partition. You can also click the "Divide Equally" button to give exactly half your hard drive space to OS X and the other half to Windows. Click the "Partition" button.
11.
Click the "Start Installation" button after Boot Camp Assistant finishes partitioning your hard drive. Your MacBook Air restarts and boots from the Windows installation disc.
12.
Follow the onscreen instructions to finish your Windows installation, selecting the partition labeled "BOOTCAMP" when asked "Where do you want to install Windows?"
13.
Put the disc onto which you burned the drivers into your optical drive, and then run "Setup.exe" from the disc.
14.
Follow the onscreen instructions to install Apple's hardware drivers on your new Windows installation.

Things Needed

  • USB CD/DVD drive
  • Blank DVD
  • Windows installation disc

Tip

  • After you finish installing Windows, your MacBook Air will automatically boot to Windows. You can pick a different default operating system through Apple's Windows utilities or System Preferences in OS X, or you can press the "Option" key as your MacBook Air is starting up to select which system you want to boot.

Warning

  • Do not install windows to a partition other than the one labeled "BOOTCAMP," and do not tamper with any partition from within the Windows installer other than BOOTCAMP.

Python again



Cython is an optimising static compiler for both the Python programming language and the extended Cython programming language (based on Pyrex). It makes writing C extensions for Python as easy as Python itself.








Python>
II. Django
III. Flask
IV. Pyramid
V. web2py
VI. Sanic
VII. Japronto
VIII. aiohttp
IX. Twisted
X. Falcon
XI. API Star

Tuesday, August 13, 2019

JavaScript drag-drop

https://flaviocopes.com/drag-and-drop/


https://flaviocopes.com/keyboard-events/


https://flaviocopes.com/form-events/






MORE TIPS>

TCC SUPER TUTORIAL:

http://mclaveau.com/grimoire/tcc.htm

http://mclaveau.com/grimoire/tcc2.htm


|[]|



:
  1. <section id="mysection">
  2. <div id=”mydiv” class = “myclass”>
  3. <h1 id=”mytitle”> A nice title </h1>
  4. <p id=”mytext”> Some intersting text </p>
  5. </div>
  6. <div id=”anotherdiv” class = “myclass”>
  7. <img scr="myimage.png" alt=""/>
  8. </div>
  9. </section>
The div has to child nodes: 1 and p.
It also have a parent node: section.
Let’s see how to work with this small HTML DOM…
1. How to find our div ?
  1. //By its id (retun an unique element)
  2. var myDiv = document.getElementById("mydiv")
  3. //By class name (return an array of elements)
  4. var myarray = document.getElementsByClassName("myclass")
  5. var myDiv = myarray[0]
  6.  
  7. //By tag name (return an array of elements)
  8. var myarray = document.getElementsByTagName("div")
  9. var myDiv = myarray[0]
2. How to find my div’s relatives ?
  1. // child nodes (array)
  2. myDiv.childNodes
  3.  
  4. // first child node
  5. myDiv.firstChild
  6.  
  7. // last child node
  8. myDiv.lastChild
  9.  
  10. // check is the div has childs (true of false)
  11. myDiv.hasChildNodes
  12.  
  13. // next node at the same level
  14. myDiv.nextSibling
  15.  
  16. // previous node at the same level
  17. myDiv.previousSibling
  18.  
  19. // parent node
  20. myDiv.parentNode
3. Change my div’s attributes
  1. myDiv.class = "anotherclass"
  2. myDiv.style.color = "red"
4. Create and insert an new element
Just clone our initial paragraph:
  1. // Clone an existing HTML element
  2. var myP = document.getElementsByTagName("p")[0]
  3. var myParagraph = myP.cloneNode()
Or create a brand new paragraph element:
  1. // Create an element node
  2. var myP = document.createElement("p")
  3.  
  4. // Create a text node
  5. var myText = document.createTextNode("Some new text")
  6.  
  7. // Combine the element and text node to create a new HTML element
  8. var myParagraph = myP.appendChild(myText)
Append the paragraph at the end of the div childs.
This will make the paragraph appear on the page.
  1. myDiv.appendChild(myParagraph)
5. If you made an error, let’s replace this element…
Of course it would be faster to replace the text inside but we are a little blunt so…
  1. var newP = document.createElement("p");
  2. var newText = document.createTextNode("This is new text");
  3. newP.appendChild(newText);
  4.  
  5. myDiv.replaceChild(newP, myParagraph);
6. Ok, this was fun, now remove this second P element…
This remove the parapher from the div:
  1. myDiv.removeChild(newP);
It is not mandatory to know the parent:
  1. newP.parentNode.removeChild(newP);
7. Or do we need it ? Let’s make an animation that add it and remove it after 5s.
Ok, this is just a terrible idea but who mind…
  1. setTimeout(myDiv.appendChild(newP), 5);
  2. setTimeout(myDiv.removeChild(newP), 10);

Python visualisation

Monday, August 12, 2019

Nikola Tesla was ethnic Serb

THE CROATS WOULD KILL NIKOLA TESLA  AND THROWED HIM IN THE DEEP CAVE 1941. IF THEY GET HIM (Like other members of his family)!

Croats (Ustashas) like to kill Serbs with knife, ax, hammer, stone or bat (they usually cutthroat Serbs). Just read historical sources about Glina Serbian Orthodox Church massacre or  act of genocide in concentration camp Jasenovac and Gradiska.

Serbian Culture Minister: Ustashas killed numerous members of his family and more than 500 Smiljan residents.


FACTS ABOUT NIKOLA TESLA:

- He was born on 10 July 1856 in the village of Smiljan in the Austrian Empire
- At the time of his birth, Smiljan was part of the Military Frontier, inhabited exclusively by Serbs
- His father was an Serbian Orthodox priest
- He was baptized in the Serbian Orthodox Church of St. Peter and Paul in Smiljan
- He studied electrical engineering in Graz, but left his studies
- On June 6, 1886, he came to New York
- Most important inventions: polyphase system, rotating magnetic field, asynchronous motor, synchronous motor and Tesla transformer
- Named the unit of measure for the strength of the magnetic field
- He never married and had no offspring
- He died on January 7, 1943 in New York City in poverty

NUMBERS:


  • 91 people named Tesla were killed by Ustashas in and around Smiljan
  • 700 patents in the field of electrical engineering were invented by Nikola Tesla
  • Nikola Tesla was 86 years old when he died
Croatian propaganda want to present all world famous ethnic Serbs from Croatia as Croats, like Nikola Tesla (Tesla’s family have Orthodox Christian Serbian background, not Croatian). Tesla is not Catholic Serb or Ortodox Croat, but full blooded Orthodox Christian Serbian.

MORE INFO:

https://www.blic.rs/vesti/drustvo/originalni-teslini-govori-iz-beograda-ovako-je-cuveni-naucnik-govorio-o-svom-poreklu/36x8m6k

https://sr.wikipedia.org/wiki/%D0%9D%D0%B8%D0%BA%D0%BE%D0%BB%D0%B0_%D0%A2%D0%B5%D1%81%D0%BB%D0%B0

Nikola Tesla was born on June 28, 1856 according to the old, ie July 10, according to the new calendar in Smiljan in Lika, as the fourth child of five children Milutin, a Serbian Orthodox priest, and mother Georgina, in the Military District of the Austrian Empire not far from the Ottoman border. empire. He was baptized in the Serbian Orthodox Church of Sv. Peter and Paul in Smiljan. He was named after one grandfather and another. The baptism of the child was performed by Pop Tom Oklopdzija at St. Peter and Paul Church in Smiljan, and the godfather was Milutin's friend, Captain Jovan Drenovac. Church records state that the child was named Nikolai, and in fact he was named after one and the other grandfather Nicholas.

Calendar in Python