Skip to main content

Posts

Featured Post

Udacity Machine learning intro| lesson two solutions

Do you think a horse is acerouse or non-acerouse: A: non-acerouse supervised classification examples: A1: form an album of tagged photos, recognize someone in a picture + A2: given someone's music choices and a bunch of features of that music(tempo, genre, etc) recommend a new song features  visualization: A: she likes those classification by eye: A: unclear speed scatterplot: Grade and bumpiness: A: smooth, flat speed scaterplot 2: A: medium, very steep speed scaterplot 3: A: bad flat from scatterplot to predictions: A: more like this   from scatterplot to predictions 2: A: unclear from scatterplot to decision surfaces: A:Red cross A good linear decision surface: A: the line that is going between the blue and red GussianNB Deployment on terrain data: select the GussianNb.py file(this one will be a bit tricky) and past this under the defined function:     clf = GaussianNB()     clf.fit(features_train, labels_tr...
Recent posts

All Tags for HTML

<!--...--> Defines a comment <!DOCTYPE> Defines the document type  <a> Defines a hyperlink <abbr> Defines an abbreviation or an acronym <acronym> Not supported in HTML5. Use <abbr> instead. Defines an acronym <address> Defines contact information for the author/owner of a document <applet> Not supported in HTML5. Use <embed> or <object> instead. Defines an embedded applet <area> Defines an area inside an image-map <article> Defines an article <aside> Defines content aside from the page content <audio> Defines sound content <b> Defines bold text <base> Specifies the base URL/target for all relative URLs in a document <basefont> Not supported in HTML5. Use CSS instead. Specifies a default color, size, and font for all text in a document <bdi> Isolates a part of text that might be formatted in a different direction from other text outside it <bdo> Overrid...

How to reverse a string in less than four lines of code | javascript

Today I was solving my first algorithm challenge at FreeCodeCamp and I managed to solve from MDN web docs . Here is the script: function reverseString(str) {   var str = str.split('').reverse().join('');   return str; } reverseString("hello"); to preserve non-BMP codepoints mixed with unicode code points (emoji, etc). read here  Link P.S: don't try to do this while your variables are declared as const it won't work :)

how to install a small light weight live server on VS code

we all liked this product from microsoft, and if you don't you might consider giving it a chance, and when you sometimes wake up too lazy you just wanna hit few buttons to start working on  your web related project, here's your best bet: first of fire up that shiny VS code that you've installed now go all the way to the left to that rectangle or ctrl+shift+x for short in the searchbar type live server      choose the one you like, for me I choose the one from Ritwick dey install it and you should see something that looks similar to this      read the instructions or just open the html file you want as you usually do, and go all the way down right and click go live. now you're good to go.

a list of text editors that you may find usefull

Atom: this is one of the best text edetors/IDEs i've tried so far its easy and powerfull and it provides you so many packages to make you more productive   Photo by Luca Bravo on Unsplash Notepad++: this like the noobie's favorite it's easy light weight but the only down side it's windows only sublime: "if mac users love then it's going to be famous" this the favorite text editor for the majority of mac users and it's available for the three OSs codepen.io: yes it's a website it's very usefull for two major things speed publishing and easily trying some new code but still very powerfull.

Introduction | HTML

you've probably heard or somehow know about HTML it's the most popular markup language, its use is a most for any start up/professional project/company because they will always need to somehow share their services or their thoughts on the web on their own platform where they almost full control over it so they start looking for web developers like you(maybe?) to design and maintain the look and the feel of it and have better customer reactions. Photo by Sai Kiran Anagani on Unsplash while the web is going crazy right now as usual I'll try to somehow teach you the very basics of web development. let's start, shall we? Next

Understanding the requirements | HTML

without any intros let's get started: requirements: a text editor a list of the text editors i've used a small knowledge of how computers work and communicate with each other Photo by Artem Sapegin on Unsplash so to keep things organized in your pc create a new folder anywhere you like and after that create a blank text file open that text with your favorite text editor and type this code: <!DOCTYPE html> <html> <head> <title>this is the title of your website</title> </head> <body> <h1>this is a heading</h1> <p>this is a paragraph</p> </body>  </html> after that, look at the top of your text editor and go to file and then choose save as the only thing you need to understand here is that usually people name these html files as 'index' and the extension of that file is html which means the file's name should look something like this "index.htm...