<M/> 170 Why so serious? Featured Poster

Well, you can use such theme: Business WordPress Themes that can be found on Themeforest.

You know, not everything has to cost money to be solved... most of their templates are meant to look good rather than operate will... I used some of their best templates yet to offer and they didn't meet half of my expectations. I found the best results when making the code myself.

<M/> 170 Why so serious? Featured Poster

When I have my browser snapped onto the view where it takes up half my screen and have the code snippet window, it only reveals half of the window (half has been cut off) and when I put it in full screen, the window seems to get fixed onto the side of the page (still cut off)... Has anyone noticed that yet by any chance?

<M/> 170 Why so serious? Featured Poster

Yeah, most institutions won't accept anything that are even 2 days late. I had a professor (as an eigth grader in middle school, i took college courses) who would offer full credit for turning in assignments earlier than the due date and if it was turned in on the due date, you recieve half credit or none depending on whether or not your code was good or not. Thankfully I dropped that course, though the professor quit/retired the same semester...

<M/> 170 Why so serious? Featured Poster

Yeah, about the downvotes, it is from a spammer named: asdfghjklasdfgh

I reported him/her/it, the mods will look into it.

<M/> 170 Why so serious? Featured Poster

<link rel="stylesheet" type="text/css" href="bground.css">

A lot of times when that doesn't work for me, I would put the css file in a server and then rewriting it as: <link rel="stylesheet" type="text/css" href="http://yoursite.com/css/bground.css">

<M/> 170 Why so serious? Featured Poster

Here is something i wrote in the past:

HTML:

<div tabindex="0" class="onclick-menu">
    <ul class="onclick-menu-content">
        <li><button onclick="alert('click 1')">Look, mom</button></li>
        <li><button onclick="alert('click 2')">no JavaScript!</button></li>
        <li><button onclick="alert('click 3')">Pretty nice, right?</button></li>
    </ul>
</div>

CSS:

.onclick-menu {
    position: relative;
    display: inline-block;
}
.onclick-menu:before {
    content: "click me!";
}
.onclick-menu:focus .onclick-menu-content {
    /* content is visible if menu is 'opened' */
    visibility: visible;
}
.onclick-menu-content {
    position: absolute;
    z-index: 1;

    /* disable visibility by default, delay to enable clicks */
    visibility: hidden;
    transition: visibility 0.5s;
}

Hope this helps!

<M/> 170 Why so serious? Featured Poster

Wow... a lot of major companies are getting hacked now a days... Target, Ebay, and so on. I even heard of someone writing about 100 hackers get arrested for creating a malware just recently.

Good article!

<M/> 170 Why so serious? Featured Poster

Don't start a flame war.

I won't, at least I don't have the plans to do anything like that...

<M/> 170 Why so serious? Featured Poster

Here, I tweaked and styled your menu just a bit (my OCD kicked in). Your code should look something like this:

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<link rel="stylesheet" href="index.css">
<title> My portfolio </title>
<style>
.site-navigation {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin: 40px;
}
.site-navigation ul {
  background: #CCC;
    list-style: none;
    margin: 0;
    padding-left: 0;
}
.site-navigation li {
    color: #fff;
  background: #CCC;
    display: block;
    float: left;
    margin: 0 2px 0 0;
    padding: 25px 18px;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
} 
.site-navigation li a {
  color: #fff;
  text-decoration: none;
  display: block;
}
.site-navigation li:hover {
    background: #52a6df;
    cursor: pointer;
}
.site-navigation ul li ul {
    background: #52a6df;
    visibility: hidden;
    float: left;
  min-width: 150px;
    position: absolute;
  margin-top:25px;
    left: 0;
    z-index: 999;
}
.site-navigation ul li:hover > ul,
.site-navigation ul li ul:hover {
   visibility: visible;
}
.site-navigation ul li ul li {
    clear: both;
    padding: 5px 0 5px 18px;
  width: 100%;
}
.site-navigation ul li ul li:hover {
    background: #74b7e4;
}
</style>
</head>
  <nav id="navigation" class="site-navigation" role="navigation">
  <ul class="menu">
    <li class="menu-item"><a href="#">Home</a></li>
    <li class="menu-item"><a href="#">Projects</a>
      <ul class="dropdown">
        <li class="menu-item sub-menu"><a href="#">Proj1</a></li>
        <li class="menu-item sub-menu"><a href="#">Proj2</a></li>
        <li class="menu-item sub-menu"><a href="#">Proj3</a></li>
        <li class="menu-item sub-menu"><a href="#">Proj4</a></li>
        <li class="menu-item sub-menu"><a href="#">Proj5</a></li>
      </ul>
    </li>
    <li class="menu-item"><a href="#">Resume</a></li>
    <li class="menu-item"><a href="#">Contacts</a></li>
  </ul>
</nav>
</html>

Hope this helps!

billionair commented: Thank you for this. I was actually trying to find what the problem was. I found it at last: I had not set the margin and padding as 0 for the "ul" element +0
<M/> 170 Why so serious? Featured Poster

Eating a block of raw and organic ginger that i chopped up about 2 minutes ago...

<M/> 170 Why so serious? Featured Poster

I see... I just wanted to give the user, asdfghjklasdfgh, I piece of my mind for randomly downvoting my posts -_-... Example, He downvoted a code snippet saying it was a bad question.

<M/> 170 Why so serious? Featured Poster

Welcome! I too have a lot of interests in stock trading!

<M/> 170 Why so serious? Featured Poster

I figured this might be a useful tool to add but I think that there should be a report user button to report users of abuse... I thought it might be useful...

<M/> 170 Why so serious? Featured Poster

@diafol, thanks for catching that

<M/> 170 Why so serious? Featured Poster

I am not sure if you have done this or not but your file has to be saved a utf-8 encoding, like this:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

To properly display non-English characters, such as Spanish, French, or Chinese, in MySQL you can define the character set value in ‘DB_CHARSET’ variable in the conf.php.

Kinda like this (forgive me if i made a mistake in this snippet, but it isn't easy writing this on my phone):

define('PHPGRID_DB_HOSTNAME','hostname'); // database host name
define('PHPGRID_DB_USERNAME', 'username'); // database user name
define('PHPGRID_DB_PASSWORD', 'password'); // database password
define('PHPGRID_DB_NAME', 'sampledb'); // database name
define('PHPGRID_DB_TYPE', 'mysql'); // database type
define('PHPGRID_DB_CHARSET','utf8'); // OPTIONAL. Leave blank to use the default charset
<M/> 170 Why so serious? Featured Poster

Why not? Without it it's a code snippet that doesn't run.

Oh, well in that case, I will provide the html/css for it... i was thinking since this is a javascript post, it should only be javascript. But here you go:

HTML:

<div id="top"><h1>XCalc.js v.1.8 Demo</h1>
    f(x) = <input type="text" value="(x+4)^2*(x-6)+60sinx" id="input" /><input type="button" value="Graph" id="simplify" />
  </div>
<div id="wrapper">
<div id="result"></div>

CSS:

body {
  background-color:#454545;
  color:#FFF;
  font-family: sans-serif;
  padding:0;
  margin:0;
}
#top {
  padding:20px;
}
h1 {
  font-family: 'Open Sans', sans-serif;
  font-size:30px;
  margin:0 0 10px 0;
}
input[type="submit"], input[type="button"], a.button {
    background-color:#FFF;
    color:#000;
    padding:5px;
    border: 5px solid #FFF;
    text-decoration:none;
    display:inline-block;
  height:40px;
  font-size:16px;
  font-family:sans-serif;
  margin:0 0 0 10px;
}
input[type="submit"]:hover, input[type="button"]:hover, a.button:hover {
    border: 5px solid #DDD;
}
input[type="text"] {
  display:inline-block;
  height:20px;
  width: 290px;
  padding: 10px;
  font-size: inherit;
  border: 0;
}
#result {
  margin-top:10px;
  padding:0 20px;
  overflow:hidden;
  background-color:#171717;
  max-height:0;
  -webkit-transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -ms-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
.solved #result {
  max-height:2000px;
  padding:20px;
  color:#FFF;
}
.answer {
  clear:both;
  text-align:center;
}
.group {
  padding:5px;
  margin:5px;
  border:1px solid #FFF;
  display:inline-block;
}
.group.operator {
  border:0;
}
.final {
  color:#FFF;
  font-size:60px;
  text-align:left;
  font-family: 'Open Sans', sans-serif;
}
.error {
  zzbackground-color:#6B1010;
  padding:10px;
  opacity:0.7;
}
<M/> 170 Why so serious? Featured Poster

This is a pretty darn simple snippet that I learned from a site (don't remember the name). This is just the working Javascript which i managed to "easily" replicate :P

Hopefully this will be useful for you guys.

Note, this won't graph anything unless you have the html/css (i didn't provide that).

<M/> 170 Why so serious? Featured Poster

heh heh 800+ lines. Did anybody respond?

heh heh nope... -_-
Though a response would be great... even if it says google it lol.

<M/> 170 Why so serious? Featured Poster

Hey diafol, if you want your first tattoo, be mainstream and get a tattoo that says, "I heart mom" :)

blackmiau commented: he's got one already, silly +0
<M/> 170 Why so serious? Featured Poster

I am probably the youngest to post here but I am 16 at the moment. My first computer was a thick clunky computer from dell that I got when i was in kindergarden or first grade. Then it was followed by a mac book... Currently I have a MacBook Pro (newest one), 2 iMacs (1 is newer than the other but neither is as new as the latest imac, mine is the version prior to it), a lenovo yoga ideapad... should i start listing out the tablets :D

I wonder what my grandkids would use...

<M/> 170 Why so serious? Featured Poster

So happygeek... if your interested in going big and having symmetry for your ink, why not look like this guy :D

blackmiau commented: that's just nasty +0
<M/> 170 Why so serious? Featured Poster

@diafol, a coordinate plane as in this

@iamthwee, I have done this (the code is a part of the question, it is kind of long) in javascript but I am not too sure on how to do it in php, unless there is a way a can collect the points and draw them on the plane using javascript rather than php.

<M/> 170 Why so serious? Featured Poster

The OP isn't coming back... she probably found the answer to this question, knowing this is an easy question that can be googled.

<M/> 170 Why so serious? Featured Poster

I was exploring the link provided and I am confused on how a coordinate plane would be made... anyone know anything about that if not know if it is on their site?

<M/> 170 Why so serious? Featured Poster

This isn't a post bump but here is a better wording for my questions:
I am trying to create a way so that I can create 2 different lines and draw them on a coordinate plane but by only using PHP. The 2 lines are being drawn differently, one being drawn by simply giving the equation (which i successfully built with Javascript) while the other line is created by manually giving the x and y for 5 points and then plotting them onto the same coordinate plane as the first one has been drawn on, creating 2 lines on the chart. The second line is the one I cannot create and I plan on using PHP to do this or at least use Javascript. I want to avoid the use of mysql or any use of databases.

<M/> 170 Why so serious? Featured Poster

Happygeek, you should get some ink done on your legs... i see people doing pieces on their calves more often now a days.

<M/> 170 Why so serious? Featured Poster

Oh, I forgot to mention!! Contributing editorial articles and code snippets also earns you money when people vote on them.

Looks like i found something i should contribute to more often. I have a few snippets that i will post shortly. I just need to tweak the codes a bit so they are readable.

Dani commented: Awesome +0
TrustyTony commented: Good for you! +0
<M/> 170 Why so serious? Featured Poster

The confusion for me was how to points are distributed and why they go to certain places.

<M/> 170 Why so serious? Featured Poster

Oh i get it now, thanks for clearing up the confusion that i had!

<M/> 170 Why so serious? Featured Poster

You only earn rewards points for helping out with Q&A discussions that are marked 'Sponsored' or 'OP Kudos'.

Oh i see, that is what i failed to notice! But why are we getting points off of those posts only? Getting points on non-sponsored or non-op kudo posts don't have no value? Oh well, i do see a lot of oppurtunity to answer a sponsored post and a op kudo post ;)

<M/> 170 Why so serious? Featured Poster

Here's something I knocked up in about 10 minutes:

I like how you make it sound so easy. What you wrote takes me an easy 2-3 hours lol. but i will study your snippet of code in about 1 hour because i am outside at the moment.

<M/> 170 Why so serious? Featured Poster

Oh i see, but how many points do you earn per upvote on a non bussiness exchange/community post? If i do recall, i do have a decent number of posts that I have answered that were not in the business exchange/community center. Also, I know for a fact that it wasn't too long ago. Also, i do like this new feature, its a good way to steal users from other big forums :D

<M/> 170 Why so serious? Featured Poster

I am going to look into High Charts but for now, I am going to be leaving this thread open for more ideas/resources.
Thanks!

<M/> 170 Why so serious? Featured Poster

High Charts? I haven't heard of those, do you know where i can find the documentation/library for it?

<M/> 170 Why so serious? Featured Poster

I maybe the youngest guy here posting, 16 years old, but I prefer paper because I hate staring at something with lighting for a certain period of time because it hurts my eyes. Certain stuff are worth reading on ebooks (biographies, novels, magazines, etc.) but not everything, espicially when it comes to learning. I found that actual textbooks are much more useful and I can learn more from it rather than reading off a kindle. Honestly, if I had to spend a whole semester using ebooks only, I wouldn't even be in honor roll (3.5 gpa or above). Fortunately, I use actual textbooks (that i can write in) and because of that my gpa is above a 4 (4.24).

<M/> 170 Why so serious? Featured Poster

I am trying to create a way so that I can collect 5 points within the (x,y) format. Then, I want to take those points and plot them on a coordinate plane. I am not sure how to write this, espicially when I am only planning on PHP. I have successfully created something like this before but it was made to take an equation yet using Javascript rather than php.

Anyone got any resources for this? I couldn't find anything on this, I even used wolfram's widget builder and didn't achieve success.

Thanks in advance!

<M/> 170 Why so serious? Featured Poster

This is simply just an opinion based question... Wordpress is the most commonly used one because of how easy it is to use plus there is a lot of resources for it. Honestly, whatever cms your used to using is the best one... unless your client disagrees :D

<M/> 170 Why so serious? Featured Poster

As far as I am aware of... the header is simply just fixed and placed on top of everthing while the site itself, the part you see that gets scrolled, is just a simple single page website. If I were you, study single page websites... they are actually kind of fun to make and there are many FREE downloads of a completed single page site that you can learn from.

<M/> 170 Why so serious? Featured Poster

I don't think you can do this with a browser.

We'll see... I am actually kind of curious to know more about this question as well. This is something I haven't thought about.

But here is an answer from another forum that the OP has asked the same question in:

Not unless you have full control over the client-side.

You can TRY to prevent that SAME computer (via cookie) from navigating to the same page twice.

If you are giving the user a unique ID to access the circular pages, you can mark that ID as already having displayed the pages.

But there is simply no way to make sure that the user can't call the print calls in the browser.

One trick, which a js hacker could easily get around.. tie into the page printed event. The answers to that question talk about just how poorly the events are supported, and not cross-browser. If this browser has already had that event fire, nav away or change the @media rule for printing to return css making the whole page display:none (or some trickery).

As far as the actual print dialog ("Copies: x"), there's nothing you can do.

<M/> 170 Why so serious? Featured Poster

So... who do you guys think is going to win the finals this year? It is between: Heats, Pacers, Thunders, and Spurs.

I personally believe that it will heats and spurs playing in the finals and the heats are going to win it for the third time in a row. They might win at game 6 or 7.

What do you guys think?

<M/> 170 Why so serious? Featured Poster

So... if points expire in a year, why is it that I have recieved 10 points in May of 2013 and not in any other month? I am kind of lost on how we recieve points and what 500 points equals to... I am trying to keep up with all the changes that are being made but unfortunately, i am not here often.

<M/> 170 Why so serious? Featured Poster

I am honestly lost... are you looking for a theme or you just don't know how to change font color? As what was mentioned before: body {color:red;}

<M/> 170 Why so serious? Featured Poster

Hey guys, I am back from the dead (i don't mean it literaly)...
I was working on a graphing calculator and I stumbled onto a random problem, which i know is really simple, but I constantly keep over working it (and now I am tired...) to the wrong direction. In my calculator, i have created it so that I can graph 1 line but then I decided to challenge myself a bit and try to graph 2 lines (or more) on the same graph. How do I make it so that I can graph at least 2 lines on the chart rather than just 1 simple line?

Here is the code that I used, sorry if anything is missing... i purposely removed them:
HTML:

<div id="top"><h1>XCalc.js v.1.8 Demo</h1>
    f(x) = <input type="text" value="(x+4)^2*(x-6)+60sinx" id="input" /><input type="button" value="Graph" id="simplify" />
  </div>
<div id="wrapper">
<div id="result"></div>

CSS, I don't think it will be needed... I won't post it unless its needed.

Javascript:

//Class for operators
function Operator(input) {
  this.operator = input;
  if (!input) {
    console.log("Operator has no input.");
  }

  this.solve = function(segment1, segment2, x) {
    var v1 = segment1.coefficient;
    if (segment1.type=="variable") {
      v1 = x;
    }
    var v2 = segment2.coefficient;
    if (segment2.type=="variable") {
      v2 = x;
    }
    if (this.operator=="+") {
      return new Segment(v1 + v2);
    } else if (this.operator=="-") {
      return  new Segment(v1 - v2);
    } else if  (this.operator=="*") {
      return  new Segment(v1 * v2);
    } else if (this.operator=="/") {
      return  new Segment(v1 / v2);
    } else if (this.operator=="^") …
<M/> 170 Why so serious? Featured Poster

Honestly, you should try doing this... it'll get more members involved giving good answers rather than some bs that some will give.

<M/> 170 Why so serious? Featured Poster

Get a tattoo just likek the rock, not the small little bull one on his right arm... the big one on his left arm. But you may need to pick a bit of muscle lol

<M/> 170 Why so serious? Featured Poster
<M/> 170 Why so serious? Featured Poster

Well... it was made "mandatory" by the breeder to get health insurance for my pets (barkworks is the breeder, i am not sure who the insurance is). Our vet just happens to be stupid... Fortunately, i discovered that one of my neighbors is a vet and she checked our dog. My dog was fine after she gave him ear drops and wiped up his ear. Lesson learned... be friendly with your neighbors!

<M/> 170 Why so serious? Featured Poster

Well, i made an appointment with the "local" vet... i hope he doesn't have a severe infection. I cleaned out the ear with cotton swab with water and vinegar... hopefully he gets better because the vet we have happens to charge $250 to just look at our dog -_-

<M/> 170 Why so serious? Featured Poster

I thought it was an ear infection and I am considering taking him to the vet this week... i am just curious to know if there are any at home remedies that I can make for him. The look of the ear doesn't really bother me as much as the horrible odor... you can smell it from accross the room.

<M/> 170 Why so serious? Featured Poster

Hey guys... random question here but what does it mean when your dog's ear gets really greasy, stained, and smelly? Is that sort of thing treatable at home? One of my dog's has recently obtained this problem about 2 hours ago and it is kind of concerning me.

If you lift up his ear, it is nasty and smelly. He is a small, long haired havenese with floppy ears and is 1 year of age.

Anyone of you daniweb dog owners aware of something like this?