😁 [Via The Simpsons]

😁 [Via The Simpsons]

😁 [Via The Simpsons]

More Posts from Programmingravenclaw and Others

8 years ago

i want "Elle Woods getting into Harvard Law" level determination


Tags
8 years ago

Roses are #FF0000

Violets are #0000FF

I’m in physics and I’ve turned into a nerd

8 years ago
Margaret Hamilton (b. 1936) Is A Computer Scientist And Engineer Who, As Director Of The Software Engineering

Margaret Hamilton (b. 1936) is a computer scientist and engineer who, as Director of the Software Engineering Division of the MIT Instrumentation Laboratory, played an important part in the Apollo space programme. Her division was responsible for developing the onboard flight software for the missions that put the first men on the Moon, and she was the supervisor and lead programmer of the project.

She graduated with a degree in abstract mathematics, during a time when computer science and software engineering were not yet disciplines in their own right. She worked for the SAGE Project, used by the military in aircraft defense. Since 1986 she has been the CEO of Hamilton Technologies, an organization which she founded.


Tags
8 years ago
A Year of Code
A few weeks ago, I marked a year since I started coding every day. Last year, for me, began with a breakup. I remember c…

ā€œSomeone special I knew wrote, ā€œThe price we pay for living full authentic lives is occasionally having our hearts broken.ā€ I think that that’s true. Pain isn’t beautiful or poignant, but sometimes, if you can get through it, it contextualizes what comes later. A year is a short time. You never think that that’s long enough to substantially change what you’re capable of doing, but what you choose to do every day eventually shapes who you are. A year ago, as much as I loved tech, I wasn’t sure I’d ever want to be in engineering or study computer science. Since then, I’ve learned six programming languages, taken seven CS classes, and worked on twenty-odd personal projects. There’s nothing intrinsically meaningful about a GitHub streak, but, somewhere along the way, I started remembering what it felt like to be myself.ā€

holy smokes. #GOALS

I’m tearing up and inspired. This is amazing.


Tags
8 years ago

hobbies masterpost!

a really excellent way to reduce anxiety is to pick up a new hobby. find something you’re interested in, learn it, then use it as a healthy and productive way to cope.

learn to play guitar

learn how to make interactive stories with the free program Twine

learn how to make pixel art

learn another language

learn how to build a ship in a bottle

learn how to develop your own film

learn how to embroider

learn how to make chiptunes (8-bit music)

learn how to make origami (the art of paper folding)

learn how to make tumblr themes

learn how to make jewelryĀ 

learn how to make candy

learn how to make terrariums

learn how to make your own perfume

learn how to make your own tea

learn how to build birdhouses

learn how to read tarot cards

learn how to make zines

learn how to code

learn how to whittle (wood carving)

learn how to make candles

learn how to make clay figurines

learn how to knit scarves

learn how to become an amateur astronomer

learn some yoyo tricks

learn how to start a collection

learn how to start body building

learn how to edit wikipedia articles

learn how to decorate iphone cases

learn how to do freelance writing

learn how to make your own cards and

learn how to make your own envelopes

learn how to play the ukuleleĀ 

learn how to make gifs

learn how to play chess

learn how to juggle

learn how to guerrilla garden

learn how to chart your family history

learn how to keep chickens

learn how to do yoga

learn how to do magic tricks

learn how to raise and breed butterflies

learn how to play dungeons & dragons

learn how to skateboard

learn how to do parkour

learn how to surf

learn how to arrange flowers

learn how to make stuffed animals


Tags
7 years ago

when my computer decides to deny me access because of ā€œadmin restrictionsā€

When My Computer Decides To Deny Me Access Because Of ā€œadmin Restrictionsā€

Tags
8 years ago

How To Make Tumblr Themes: Part I

Introduction

What we will cover in this tutorial:

HTML review (bare minimum you need to make a basic theme)

CSS review (bare minimum you need to make a basic theme)

Meta Tags

Other <Head> codesĀ 

Documents and websites we will consult regularly in this tutorial (keep these open in a tab):

W3Schools HTML

W3Schools CSS

Tumblr Theme document

HTML Review

Before making a theme, you should know that HTML consists of tags (keywords surrounded by angular brackets like <html>) and that they come in pairs (opening and closing like <html> and </html>).

You should also already know basic HTML elements such as links, headings, paragraphs, lists, formatting and images. If not, please learn it at the website I provided.Ā 

The most common way to group and position things in a website layout is to use div layers or tables. In this basic theme tutorial, I will cover div layers first since it is easiest to understand.Ā 

Here is a coding for text that is NOT inside a div layer:

How To Make Tumblr Themes: Part I

[click for larger view]

Here is a coding for text that is inside a div layer:

How To Make Tumblr Themes: Part I

[click for larger view]

Also notice that I used CSS to dictate the width and background of the div layer. That is how CSS and HTMl is connected; you can use CSS to demand HTML elements to look and be positioned a certain way. So in order to make columns in tumblr themes, you use CSS to position and ā€œdecorateā€ the div layer which will wrap your columns (ie: posts, sidebar etc).

CSS Review

In relation to what we’ve discussed above, CSS commands HTML elements. So you need to be very familiar with CSS. CSS is the codes between the <style type=ā€œtext/cssā€> and </style> tags (as can be seen in the previous image). In this tutorial, I will use the following terminology:

How To Make Tumblr Themes: Part I

Now, div layers can either be id-ed or class-ed. The id selector is generally used for a single unique element while the class selector is used for a group of elements. Ā  While there is that difference, I discovered it doesn’t matter. You can use id selectors for multiple/repeated layers.Ā 

How To Make Tumblr Themes: Part I

[click for larger view]

In the above, the selector for id is preceded by a ā€œ#ā€ (outlined in pink) and the selector for the class is preceded by a ā€œ.ā€ (outline in blue). Now, you can use basic CSS properties to specify the position, dimension and style of the layer.Ā 

You will need to know 90% of the properties described onĀ this site; particularly background, color, fonts, links, text, margin, padding, z-index, position, display, dimensions and borders. Since it is too much for me to cover them all, please review/learn them before proceeding.Ā 

Getting started

Now we’ve gone over the idea of how HTML and CSS will be needed, we can apply it to tumblr themes. So, we start with our basic HTML tags for any basic webpage:

How To Make Tumblr Themes: Part I

<title></title> is where you specify the title of the blog which will show up on the browser tabs. Looking at the basic variables section of theĀ custom tumblr theme document, you can see {Title} and {block:PostTitle}{PostTitle}{/block:PostTitle}.

{Title}Ā is a ā€œvariableā€ which corresponds to the blog title (which you customize in the customization page). For example, my theme blog title is ā€œettudisā€ā€¦

How To Make Tumblr Themes: Part I

{block:PostTitle}{PostTitle}{/block:PostTitle} corresponds to the title of the post (of the individual posts). The ā€œblocksā€, {block:PostTitle} and {/block:PostTitle}, renders so that the post title shows up only when there is a post title (in other words, when you go to the individual post page. For example, the title of my ā€œterms of useā€ post…

How To Make Tumblr Themes: Part I

Generally, it is set up so the it’s the {title} followed by a dash, then {block:PostTitle}{PostTitle}{/block:PostTitle}. So, it will look something like this:

<title>{Title} - {block:PostTitle}{PostTitle}{/block:PostTitle}</title>

We also can add in favicons. To make the favicon the same as the blogger’s userpic/profile icon, we can just link toĀ {Favicon}, like so:

<link rel="shortcut icon" href="{Favicon}" />Ā 

Meta Tags

The meta tags in tumblr themes are what allows the bloggers to customize the themes colours, upload images, select options, add links etc, as described in the appearance options. Then, you can line up the meta tags to the HTML or CSS.

For colours, it will look something like this:

How To Make Tumblr Themes: Part I

[click for larger view]

As you can see, the colours in the meta tags can correspond to the HTML or CSS. So the default colours (indicated in the meta tags, ie: #FFFFFF, #000000 etc) are what the colours are if the blogger reset to defaults. If the blogger decides to customize to his/her own colours, the colour he/she chooses will correspond and fill into the HTML or CSS in the live preview.Ā 

For custom fonts, it will look similar to:

How To Make Tumblr Themes: Part I

[click for larger view]

Similar to colours, the meta tags correspond to CSS (or HTML). However, tumblr only provides a few custom fonts (ex: arial, georgia, impact, courier new, helvetica, tahoma, trebuchet ms, times new roman etc) that are selected via a drop-down menu on the customization page.

Now booleans are rather important in tumblr themes. These meta tags allow the bloggers to select an option.

How To Make Tumblr Themes: Part I

[click for larger view]

In this, the option is whether or not ā€œif infinite scrollingā€ should be on the blog. The meta content is ā€œ1ā€ if there is infinite scrolling as default. If infinite scrolling is not default, it meta content should be ā€œ0ā€.

Outlined in orange, {block:ifinfinitescrolling} and {/block:ifinfinitescrolling} wraps around the HTML (or CSS) that will be activated if the blogger decides to select the infinite scrolling option. If not, then the HTML (or CSS) in {block:ifnotinfinitescrolling} and {/block:ifnotinfinitescrolling} will be activated.Ā 

Booleans can apply to anything, such as whether or not to show tags on index page, size of post, number of columns, show side image ~ whatever your imagination allows you!

On this note, this sort-of gives you the idea of how tumblr codes work. The ā€œblocksā€ act as activators for a certain code that it contains. Remember they always come in pairs as well, an open and closed one.

In the above example, you can see that there are the blocks, {block:Pagination} and {/block:Pagination}. This means that the codes inside these blocks will only show if there are actual pages; so in an individual post page, the pages will not show up.

Another meta tags are text. You can allow bloggers to enter their custom text into a theme. You can do a lot with text, you can also use it as an input for CSS hex numbers, dimensions (they would enter pixels), labels etc etc.Ā 

How To Make Tumblr Themes: Part I

In this particular example, I’ve used custom text as a way for bloggers to enter links. The blocks (in pink), as I’ve explained previously, act as activators for when the bloggers do enter a URL in the ā€œlink 1ā€ meta tag (outlined in blue).Ā 

Tumblr also allows bloggers to upload images. So bloggers can upload their own background or other images they want (that you specify) into their theme.Ā 

How To Make Tumblr Themes: Part I

[click for larger view]

Shown here, you can see that the meta tag for the background image dictates the CSS body selector (outlined in orange). Ā In the content, you can insert an image (ā€œhttp://static.tumblr.com/ā€¦ā€) as a default image.Ā 

As for the sidebar image meta tag, it uploads the image into the HTML. Blocks (shown in pink) can also be used in case the blogger does not want to upload an image (or if an image is not uploaded, an alternate coding can be shown).Ā 

Other <head> codes

You can also insert aĀ {CustomCSS} block at the bottom of the theme’s CSS style block (before </style>) so that bloggers can insert their own CSS if they want to.Ā 

There is also a meta tag that is involved in search engines.Ā 

{block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}

This allows the description of the blog to show up if the blog is searched on the a search engine (such as google).Ā 

And that’s all I have to say about meta tags which is crucial if you plan to make themes for the public use.Ā 

Key Points

To clarify and emphasize, the terms, ā€œvariableā€ and ā€œblocksā€ are what makes up the tumblr theme.Ā Variables are used to insert dynamic data. As we’ve seen in previous example, {Title} is a variable and so are {Image:Sidebar}, {Color:Background}, {Text:Link 1} and so forth. They come in singles, meaning, you do not need to close them.Ā 

Blocks are used to render (activate) a block of HTML, CSS, or a set of data. As we’ve seen in previous examples, {block:Title} and {/block:Title} are blocks, and so are {block:ifinfinitescrolling} and {/block:ifinfinitescrolling}, {block:iflink1} and {/block:iflink1}, and {block:ifnotsidebarimage} and {/block:ifnotsidebarimage}. These come in pairs, meaning, you do need to close them similar as to you would close a HTML tag.

The meta tags allow users to customize the theme without editing the HTML/CSS themselves. They only have to customize via the Appearance section on the customization page.Ā We’ve covered all the meta tags that tumblr has: colours, fonts, booleans, text and images. Every meta tag can correspond to a HTML/CSS component. So using HTML and CSS, you can specify the look of a certain variable and meta tags can give customization options for the HTML and CSS.

The End

I think I’ve covered all the basic ideas of what tumblr themes need in order to work. Though this tutorial was more of introduction on just the fundamental foundations of what we’re going to build, next tutorial will get into constructing the tumblr theme using variables, blocks, CSS and HTML.

I hope I was clear, concise and thorough in my explanations. If I missed anything or if something wasn’t clear, please let me know as all of this sort-of comes to me naturally now so I wouldn’t know if I was being abstruse or convoluted.Ā 


Tags
7 years ago

How To Easily Remember the Unit Circle

I work in a walk-in tutor lab at my university and one of the other tutors showed me this a couple years back and it has changed my life.

First, you make a table that looks like this.

How To Easily Remember The Unit Circle

Then, go ahead and add in some nice denominators of 2 in every entry in the table.

How To Easily Remember The Unit Circle

Then give yourself some nice square roots on the numerators.

How To Easily Remember The Unit Circle

Alright – now we’re going to fill it in. The only value you have to remember is that sin(0)=0. So we put 0 in the numerator for 0 in the sine column. Then we just count up as we move down.

How To Easily Remember The Unit Circle

Then we do the opposite in the cosine column.

How To Easily Remember The Unit Circle

Then we simplify!

How To Easily Remember The Unit Circle

And voila – a beautiful unit circle table.Ā 


Tags
  • thekamiiiworld
    thekamiiiworld liked this · 4 years ago
  • thousandevilducks
    thousandevilducks liked this · 4 years ago
  • itdobethatbitch
    itdobethatbitch reblogged this · 5 years ago
  • itdobethatbitch
    itdobethatbitch liked this · 5 years ago
  • zu-sk
    zu-sk liked this · 5 years ago
  • colonialprincess
    colonialprincess liked this · 5 years ago
  • this-is-so-dumb-i-love-it
    this-is-so-dumb-i-love-it reblogged this · 6 years ago
  • danni-lr
    danni-lr liked this · 6 years ago
  • hamadryadlong
    hamadryadlong liked this · 6 years ago
  • fantasylessuser
    fantasylessuser liked this · 6 years ago
  • mcneelyad
    mcneelyad liked this · 7 years ago
  • bigjink
    bigjink liked this · 7 years ago
  • warpedmacaroon6
    warpedmacaroon6 liked this · 7 years ago
  • cryptice1
    cryptice1 liked this · 7 years ago
  • onefreeusernamepls
    onefreeusernamepls reblogged this · 7 years ago
  • onefreeusernamepls
    onefreeusernamepls reblogged this · 7 years ago
  • onefreeusernamepls
    onefreeusernamepls liked this · 7 years ago
  • miscalculating-entity
    miscalculating-entity liked this · 7 years ago
  • allialchemy
    allialchemy liked this · 7 years ago
  • galaxyuniverse118
    galaxyuniverse118 liked this · 7 years ago
  • ginnyinindy
    ginnyinindy liked this · 7 years ago
  • sotoro-ma
    sotoro-ma liked this · 7 years ago
  • meowbles
    meowbles liked this · 7 years ago
  • hershelchocolate
    hershelchocolate liked this · 7 years ago
  • theriverpersonshadow
    theriverpersonshadow liked this · 7 years ago
  • epicaandk-creative
    epicaandk-creative liked this · 7 years ago
  • oosumioo-blog
    oosumioo-blog liked this · 7 years ago
  • themarginalartist
    themarginalartist reblogged this · 7 years ago
  • dragon-daemon
    dragon-daemon liked this · 7 years ago
  • brennholzverleih-blog1
    brennholzverleih-blog1 liked this · 7 years ago
  • kink-machine
    kink-machine liked this · 7 years ago
  • ghostlystudentheartsworld
    ghostlystudentheartsworld liked this · 7 years ago

Full-time Computer Science student, reader, and gamer with a comics addiction.

121 posts

Explore Tumblr Blog
Search Through Tumblr Tags