Showing posts with label Design. Show all posts
Showing posts with label Design. Show all posts

Oct 16, 2017

Angular 4 – Tutorial from scratch


Hello everyone, Angular,  as you may already know is one of the powerful and popular JavaScript frameworks. There are currently 3 versions of Angular, in which Angular 4 is the latest. Angular 2, the second version, was completely rewritten to provide more flexibility and more ease in development, then AngularJS, the first version. Angular 4 is the update to the Angular 2 and has the backward compatibility support. Angular is used to create SPA which stands for Single Page Application. The SPA helps in smooth user experience as the page gets loaded at one time only and routing is also done on the same page removing the page to reload.
So, this is the quick brief about the Angular framework, as the Angular 4 is the latest, there are very few tutorials on the internet, most of them are not complete or paid. So, I thought of writing a complete tutorial for Angular 4 and will be trying to cover all the features of Angular 4.  To start with Angular 4, knowledge of AngularJs or Angular 2 is not required at all. It will be helpful if you some experience with HTML, CSS and JavaScript. Also though the Angular 4 uses TypeScript, it is not required to learn TypeScript, JavaScript knowledge will be enough.

Getting Started

With Angular 2, Angular CLI was introduced which stands for Angular Command Line Interface. Angular CLI runs on node JS and helps in the quick creation of the new Angular application. To start creating an application first we need to install Angular CLI and for that, we need to have Node js. To install Node js click on the link  https://nodejs.org/en/download/current/ and install for your platform. After installing Node js open the command terminal, as I m using windows so I’ll open a command prompt. To install Angular CLI type
npm install -g @angular/cliwhere npm stands for Node Package Manager, -g for global to use it globally in the system. To check if Angular CLI is installed properly you can use command
ng –versionto check the version.

Creating Angular 4 Application

Now we can start creating our Angular 4 application. To create a new project, we will be using Angular CLI and will type the command
ng new new-angular-appThis command will create the default structure and files with needed for the development of the project. It will take some time to download the files. After it is completed you will have a configured Angular 4 project. Now let’s see the structure and files inside the folder. I ‘ll be using the Microsoft Visual Studio Code IDE for my development as its free and powerful. Let see the created directories and files for our new angular app.
Inside the root directory, you’ll see 3 folders, e2e which is an end to end testing which we ‘ll be using later. The second one is the node_modules folder which contains the angular files and other required classes for development. We don’t have to do anything in this folder. The last one is the src or the source folder which contains the development files and index.html.
We have some other files which we may not require as default configuration is sufficient for running the application. We ‘ll be doing our development inside the src folder only. In this app, the folder contains the components. Images and other media files can be stored in assets  folder. Environment variables configurations are in the environment folder which as of now we don’t need to change. Out of the other files, we will be using, index.html (rarely) for few imports of style libraries, style.css for application level styling and favicon.ico to change the favicon. Others we can leave to default.

 Inside the app folder except for app.module.ts  all other files will be there for every new component we create. In Angular we can create different components for a different purpose and include it using the selector, we will get in detail later. Every component as app.component.css, which contains styling instructions, app.component.html, which contains the HTML code for that component, app.component.ts, which acts like and controller class and all the javascript code related to events and functionalities are written in this file. For component level unit testing app.component.ts, is there. During development, we will be using various dependencies for Angular libraries which need to imported and added to app.module.tsfile.
This was about the structure of Angular 4 files, now lets start and check the app is working or not. Angular CLI provides a server which we can start and check the output in the browser. To start that go inside the application folder in command prompt and type ng serve this will compile and deploy the app on the local server, which can be accessed through http://localhost:4200 (to change port number ng serve –port_no ). So let’s start the app and see if it is working fine.
Application compiled successfully. Let’s see the output.
As you can see the default page, means the app server is working fine. In the next tutorial, we will start development of a cool and reactive app using Angular 4 and Angular Material. Before that let’s understand some basics of Angular 4

Sep 7, 2016

31 Best Websites for Scoring Freebies

As the world becomes even more commercialized, an increasing amount of free stuff can be had through discount offers, recycling efforts and Internet loss leaders. Learning where to look for these deals and free samples can save you a significant amount of money on a variety of stuff. Below are the 31 best websites to check out for free stuff, although not in any particular order:
1. Craigslist
While Craigslist has a mixed reputation -- users need to use caution and common sense when interacting with total strangers -- it is also a great source of free stuff. As the phenomenon known as freecycling becomes increasingly popular, Craigslist can be a great resource for finding these offers. Freecycling is based on the idea that many people have used items that have remaining useful life but they are replacing those items anyway. Rather than throwing these items away, the owners offer them to the general public for free.
2. FreeStuff.com
FreeStuff.com gives you access to free samples of common household items ranging from coffee to moisturizer. You can use this site to save money on many items you use or to try out new brands for free.
3. Yerdle
Yerdle describes itself as the "people-powered store."  The idea of the site is that the more stuff you give away, the more credits you earn with which to buy other things you might want on Yerdle without having to use cash. While this might seem like it takes more effort than throwing things out, you can get something instead of nothing for items you were going to put in the trash. Using a service like this could be a good option for items that you feel are too valuable to simply give away or throw away but that you're not having success selling.
4. FreeSamples.org
FreeSamples.org is a portal that gives you access to a variety of free product offers for things like household products as well as coupons for products and local restaurants. The offers are updated every day.
5. The Freecycle Network
The Freecycle Network is made up of nearly nine million members worldwide. It is dedicated to enabling members to get and give stuff for free in order to put goods to their most efficient use -- and keep usable items out of landfills. This nonprofit describes itself as a "grassroots movement," and local volunteer moderators help handle network activity to keep exchanges safe and posts accurate. Membership is free.
6. Woman Freebies
Offering people the chance to try before they buy, Woman Freebies supplies free samples, coupons and giveaways of products geared toward women, from candles and shoes to vacations. This site is a good place to look for fun stuff you need or even a cheap gift for your mom, sister, wife or girlfriend.
7. Drugs.com
Drugs.com is an online resource that offers a drug discount program. The free membership card can save you as much as 80% at major pharmacies, according to the website.
8. The ReUseIt Network
The ReUseIt Network serves as a portal to give you access and information on hundreds of freecycling groups worldwide. The site focuses on directing you to freecycling groups and resources in your local area.
9. Free Stuff Finder
Free Stuff Finder shares deals, giveaways and discounts offered both online and at popular retailers. The site shows you both the original price of an item and the price after coupons and discounts to break down your savings for you.
10. Target
Target has a free sample portal that allows you to try products for free. Furthermore, by signing for the store's Red Card, you can save 5 percent on every purchase. Know what you're signing up for before committing. Loyalty cards can come with perks but also typically track your purchases, which some consumer advocacy groups consider an invasion of privacy.
11. SweetFreeStuff.com
SweetFreeStuff.com offers an e-newsletter that includes regular access to great deals online and free samples. The website also lists giveaways and sweepstakes you can sign up for online.
12. Cardpool
Cardpoolis an online marketplace that allows you to purchase gift cards at a discount to use at your favorite stores. While the discount levels vary, there are some attractive deals to be found. You also can sell your gift cards for cash.
13. All You
Lifestyle website All You lists 59 birthday freebies. The site also provides coupons for groceries and household items as well as other exclusive deals.
14. The Penny Hoarder
In addition to listing 100 places that have free birthday offers, the Penny Hoarder offers advice on saving and earning money in unconventional ways.
15. HeyItsFree.com
Another site with a long list of birthday freebies, Hey It's Free also is a good source for free offers throughout the year. Find coupons for everything from free food and moisturizer to free comic books and codes for free rewards points.
16. Freaky Freddie's
In addition to deals on products for grown-ups, Freaky Freddie's has long list of free kids' stuff. Check out offers for books, T-shirts, coloring books and activities like roller skating.
17. Totally Free Stuff
Totally Free Stuff< offers dozens of categories of free stuff as well as daily updates. Search for things in categories for type of person or interest -- such as men, women, business, religious, wedding -- or by product type, such as kitchen, pet products, toys, sports and automotive.
18. I Love Free Things
I Love Free Things is another site with a diverse collection of free stuff for kids, from books to deals on fun activities like bowling. The site has dozens of other categories of free stuff for all ages as well.
19. Freeflys.com
Freeflys.com provides lists of free samples, coupons and coupon codes. You can search the site or look for items sorted by category or brand name.
20. Raise
Raise is an online marketplace that allows you to buy gift cards for products and services from over 1000 stores and restaurants at a discount. The site also gives you the option of selling unwanted or unused gift cards for cash.
21. Recycle the World
Recycle the World is another freecycling website that allows you to post and find free stuff. Whether you are looking to get rid of unwanted items or are looking for something specific, the site lets you target your local area. It also provides a search tool to help you find recycling centers near you.
22. Coupons.com
Couponing has grown from a trend into a lifestyle for many people, and the number of websites dedicated to providing access to coupons has exploded in recent years. As a leader in the industry showcasing more than 2,000 brands, Coupons.com offers multiple ways to get coupons online. You can use the site to print coupons, find coupon codes and find discounts to specific retailers that you can add to your credit or debit card.
23. SmartSource.com
Another great source of free coupons, SmartSource.com can help you save money on everything from beauty products and groceries to weight loss products and sanding sheets for your DIY projects.
24. The Krazy Coupon Lady
Extreme couponing website The Krazy Coupon Lady< is a great source for coupons from some of your favorite retailers, from discount stores like Walmart and Dollar Tree to high-end brands like Sephora. The site also features deals for stores like Home Depot as well as online retailers such as Amazon.
25. Freebie-Depot
Freebie-Depot has "hot lists" for everything from everyday offers to birthday giveaways across a range of products and services from various brands and retailers. Among its many categories, the site features a wedding freebies section with deals for people who are getting married or are recently married.
26. Lifehacker
While Lifehacker is known for unconventional solutions to everyday problems, the website often publishes articles on how and where to save money, such as a feature on the best retail and restaurant birthday freebies.
27. Freebies.org
In addition to providing access to a variety of offers, Freebies.org offers tips and tricks on how to save money as well as its Complete Guide to Freebie Hunting.
28. I Crave Freebies
Similar to other online sources of free samples, I Crave Freebies offers links to coupons for discounts and free product samples. It also provides links to sites that pay you to take surveys.
29. GetItFree
Updated daily, GetItFree finds free offers for everything from food to household products. As you browse the site, you can add coupons, deals, freebies and sweepstakes offers to your basket just like you would when shopping online.
30. Freebies.com
Freebies.com started as a print magazine more than 30 years ago. As a digital resource, it continues to provide a blend of both products and services that are offered at no charge from major national retailers.
31. Shop4Freebies
Shop4Freebies catalogs offers for everything from free home care product samples and bargains to free cookbooks. Its list of printable coupons and other offers is updated daily.
Hundreds of sites offer consumers great ways to save. This list narrows down the options so that you can more easily find providers of freebies and deals that suit your needs. By checking out the features of these different sites, you can find the online resources that work best for you, whether you want birthday freebies, discounted items, coupon codes or free stuff year-round.
This article originally appeared on GOBankingRates.com: 31 Best Websites for Free Stuff

Sep 18, 2013

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

Looking for free HTML/CSS templates that you can use to practice your skills or to convert a WordPress theme? You came to the right place! In this roundup, we have gathered 45 CSS templates from 2011 to present. We know that not everyone has the time to design and code, but there is definitely a growing need for visually appealing templates. How about we expedite the process?
Visually appealing designs? Check!
Free and fresh templates? Check!
What are you waiting for? Read on!
Affordable and Reliable Hosting? We got you covered! 1stwebdesigner.com offers anexclusive 20% discount for our readers on every BlueHost package! We highly recommend them! Original price is $4.95 for a 36-month subscription, but with our discount you only get to pay $3.95 per month!

What Can HTML/CSS Templates Do?

For starters, CSS templates are a thing of beauty, especially when they’re free, since developers can actually make use of them without having the need to find a designer, or design one. There are a lot of developers out there who do not have the time to design, which applies to designers as well who do not have the time to code their Photoshop files.
It goes like this:
  1. Design is made using Photoshop (or other Photoshop Alternatives)
  2. File is converted to HTML/CSS
  3. Developer converts HTML/CSS template into a fully-functional and feature-loaded website
If you are in a hurry and you don’t want to spend a lot of time on the design or code, then you’re in great luck with these CSS templates from 2011 and 2012!
In the market, things like these cost several hundreds of dollars, so we’re not only helping you save time researching, we’re also actually helping you save money!

Want to Learn How to Build One?

There are a lot of free PSD templates on the web that you can download and try to convert, here is an in-depth PSD template tutorial with its follow-up HTML/CSS conversion.
Click the image above for the demo.

Making things Responsive

All of the items listed below aren’t responsive, they’re free, so we can’t expect too much. But you know what? It is more fun this way because you can try to convert one or two into a responsive website.
We have a guide that is applicable for everything below, all you need to have is patience and passion!
Just apply what you have learned from the linked tutorial above and you’ll soon be on the road to becoming a web rockstar!
So, are you ready?

1. Beauty Class

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

2. Good-natured

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

3. Rock Castle

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

4. Wood Working


5. Designa


6. Folder


7. BookStore


8. Carousel


9. Sailing

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

10. Glossy Box


11. Liquid


12. Musical Instruments

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

13. Darkside


14. Medical Clinic

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

15. Erasure


16. BeSmart


17. Free Software

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

18. Buzz


19. Mini Two

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

20. Accordion

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

21. Graphite

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

22. Blue Urban


23. Briefcase

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

24. Golden Star

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

25. Light Gray


26. Zoo

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

27. Dark Pro

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

28. Calliope

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

29. Xtreme


30. Halcyonic

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

31. Stargazer

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

32. Indication

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

33. Elegant Blue


34. Design Company

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

35. Free Hosting


36. Cardex

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

37. Under Construction

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

38. Blog Design

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

39. Agro World


40. Wooden Wall

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

41. Sound Box

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

42. Professional

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

43. Fruit Art

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

44. Design Team

45 High-Quality Free HTML/CSS Templates from 2011 and 2012

45. Design Studio

45 High-Quality Free HTML/CSS Templates from 2011 and 2012