<M/> 170 Why so serious? Featured Poster

We can't really help you if we can't see your work. A screenshot of an output doesn't really help if there are many ways to come out with the same output.

<M/> 170 Why so serious? Featured Poster

its a lung disease... or basically Silicosis

<M/> 170 Why so serious? Featured Poster

I am pretty sure pixel's solution is pretty effective...

<M/> 170 Why so serious? Featured Poster

Even if I was told to pass it, I would have just run it and ignored the coach despite consequences

<M/> 170 Why so serious? Featured Poster

I still can't believe they didn't run it...

<M/> 170 Why so serious? Featured Poster

Thought XLIX was some porn thing. Glad you set me straight.

Lol

<M/> 170 Why so serious? Featured Poster

to be honest, I am very disappointed in the Patriots due to the recent scandal but even then, I always disliked Brady, Belchick, and Kraft. I don't hate the pats, because I always liked Gronk and a few other of their players... So go Seahawks. (I own a football jersey from the Seahawks, got it as a gift from my aunt last month)

<M/> 170 Why so serious? Featured Poster

Well... despite my age, i am not much of a gamer... all i get to do on my laptop is just write some code and do my reports for ap classes.

<M/> 170 Why so serious? Featured Poster

Well, dad or not, please avoid bs-ing around... it doesn't benefit you nor will it benefit anyone else...

<M/> 170 Why so serious? Featured Poster

But my "Dad" is a programmer and gives me lot's of "Complex" code to look at. I say that in quotes because I have never seemed to find any code hard to understand unless it was in a language I'm not familiar with. (Or LOLCode)

Did you also put "dad" in quotes because your dad is someone who is a person that is not really a programmer...?

Lets be honest here, if your gonna just stay here and just call yourself a "gifted" programmer, why don't you actually prove it and actually help people on the forums... everything you answer seems to be something that anyone could google for.

Also, I have a few friends and a few cousins who attend MIT, they don't know anyone as young as you attending their school...

It's difficult for my computing standard to be affected, because it just feels impossible.

Just as impossible it is to believe anything you say? I mean, your own bio page on daniweb says your a member of Mensa... I am not a Mensa member (I will admit, I am smart but I don't call myself a genius) but I know a few people who are Mensa members (I have a few neighbors and my youngest brother are). Plus, you say you went MIT and graduated in 2013... you might as well show us your diploma...

<M/> 170 Why so serious? Featured Poster

Yep, I agree with the OP. Sadly, people will continue to take credit for minimal amounts of work while the person who did the work will not get much out of the other person.

<M/> 170 Why so serious? Featured Poster

Do you have any more questions regarding your code? If not, you can mark it solved.

<M/> 170 Why so serious? Featured Poster

Well... a bloke just refers to a man... or a fellow...

Anyways, when I get home, I will try to make an effort to getting involved with your question... I am stuck at a wedding... and it won't end until 2 or 3am... hopefully it ends sooner

<M/> 170 Why so serious? Featured Poster

He actually didn't say anything wrong to start any argument. He just said that you have some of the top people helping you out with your problem and that he can't help you (implying that the 2 that are helping you are better assistance). He didn't say anything bad.

Your next post, which came right after his, was talking about the fact that you were dissatisfied with something about posting here and then the problems started from there.

Its the little details that matter. Either you read almostbob's comment as an insult or you just didn't understand what he was implying.

So relax. If something like this happens and it offends you, just flag it. Daniweb's admins will make sure your problems are resolved. Don't look at the posts as a way to discourage you from posting on this forum, or any, just look at it as advice. Attacking fire with fire typically doesn't help anyone.

JorgeM commented: +1 for peacekeeping. +12
<M/> 170 Why so serious? Featured Poster

Only difference is that's just one variable. I want two things to select which is displayed.

I maybe wrong, but are you asking if you can create a way where if you press one button, both videos/images show?

<M/> 170 Why so serious? Featured Poster

Your link redirects us back to this thread, do you have the correct link by any chance to the fiddle?

<M/> 170 Why so serious? Featured Poster

Ben, you have to understand that people are very sensitive to tone. Saying things like "happy now," "keep telling yourself that," I don't believe your helping" really just shows disrespect to those who help you. You have to remember that the people here who are helping you are experienced at what they do, so show some respect. Imagine talking to your parents like that, do you think they will like it? They most likely will not.

You are on a forum working with someone to solve a problem (every forum is the same), your not texting your friends. Just keep that in mind.

<M/> 170 Why so serious? Featured Poster

You can try the purifier, i mean they work, but I am not too sure if they are 100 percent effective against smokers. Also, even if he gets a new tenant, i am sure they will move out soon with a smoker as their neighbor.

<M/> 170 Why so serious? Featured Poster

I know you live in an area where the area is not smokefree, but can't you tell the landlord to get the other tenant to not smoke/control his smoking or you will leave/are getting sick from it?

<M/> 170 Why so serious? Featured Poster

Well, i noticed that a lot of people, on the envato marketplaces, get other people's templates and just quickly modify them. They just buy/download a complete template, and then make a few quick changes and use as their own. Idk if that is even allowed, but thats what they do.

If you want to build sites faster using templates, make sure you have created a few sites of your own and use those as templates.

<M/> 170 Why so serious? Featured Poster

can anyone make me a working login system, like login, register, and send all files + the Database file (Test DB file)?

We can make it. But we are not going to make it for you.

if anyone have some old codes!

Most old codes end up on the internet... in fact, at this time and age, its almost 2015... you can basically google your needs...

How is it insulting you, waow!?

It is insult to ask someone with experience to do what you want without a reward.

Please be kind, it doesn't take long to made...

Then why not spend the time and learn it... if it doesn't take long, of course.

currently 5 downvotes - which is spectacular

6 downvotes...

<M/> 170 Why so serious? Featured Poster

Spongebob, everyone loves me despite whatever stupid thing I do.

<M/> 170 Why so serious? Featured Poster

My bathroom, 2 minutes ago.

<M/> 170 Why so serious? Featured Poster

I have no idea what it is like... I am not even an official junior in high school yet but i can tell you one thing... and that is that senior year is going to go by fast and you better have a university picked out ;)

Warrens80 commented: clever +0
<M/> 170 Why so serious? Featured Poster

@Warrens, well... that must have came out before disney was even involved with anything George Lucas did

<M/> 170 Why so serious? Featured Poster

... they already throw in star wars into other disney shows, have you guys seen the latest Phineas and Ferb?

<M/> 170 Why so serious? Featured Poster

Disney will probably add "based on a true story" to the intro.

Or they might throw in a mickey mouse in there somehow... or maybe some form of a disney character in there...

<M/> 170 Why so serious? Featured Poster

Ford never liked playing Solo in the original trilogy so I just can't see him doing a good job of it.

I am pretty sure a fat check will make him happy enough to play the role.

First of all, JJ Abrams doesn't know shit about Star Trek.

I wouldn't say he knows nothing... he may surprise you... also, i am not sure who else should direct the new film, he may be the best pick.

1)Trying to explain the force.
2)Shoehorning a romance in the unlikeliest of places.
3)Comedy relief character(s) that only pissed us off.

1)They didn't too bad... but yes they could explain more like they do in their video games.
2) I am not into romantic scenes in movies, so I don't really have anything positive about it.
3)Hopefully they don't bring back Jar Jar Binks as an important character...

Harrison Ford actually wanted the role of Han Solo but was refused by George Lucas.

He would be a good pick when you think about it... only if he played a retired version of him...

I kind of wished Star Wars VII was about the Old Republic... but oh well, lets hope for this best for this one...

<M/> 170 Why so serious? Featured Poster
  1. Go to basic settings for your app
  2. Select Add Platform
  3. Select Website
  4. Put URL in the Site URL

The "Add Platform" button isn't immediately apparent when you get to the basic settings page.

<M/> 170 Why so serious? Featured Poster

I personally had a bad experience with the latest nexus phone. It shattered within the same week i purchased after it fell off my bed. i kid you not, the whole screen was basically done... i later got the iphone and after a week, the phone wouldn't turn on... as a last result, i ended up with the latest galaxy. that phone out performs any phone i ever owned, even the nexus.

<M/> 170 Why so serious? Featured Poster

Summary of existing answers plus my own two cents:

1. Basic answer

You can use the header() function to send a new HTTP header, but this must be sent to the browser before any HTML or text (so before the <!DOCTYPE ...> declaration, for example).

header('Location: '.$newURL);

2. Important details
die()
header("Location: http://mydomain.com/myOtherPage.php");
die();

Why you should use die(): The Daily WTF

Absolute URL

The URL must be an absolute. See RFC 2616. But in most cases a relative URL will be accepted too.

Status Codes

PHP's "Location"-header still uses the HTTP 302-redirect code, but this is not the one you should use. You should consider either 301 (permanent redirect) or 303 (other).

Note: W3C mentions that the 303-header is incompatible with "many pre-HTTP/1.1 user agents. Currently used browsers are all HTTP/1.1 user agents. This is not true for many other user agents like spiders and robots.

3. Documentation

HTTP Headers and the header() function in PHP

What the PHP manual says (read the link in the very bottom for where i got the answer)
What Wikipedia says (read the link in the very bottom for where i got the answer)
What the W3C says (read the link in the very bottom for where i got the answer)

4. Alternatives

You may use the alternative method of http_redirect($url); which needs the PECL package pecl to be installed.

5. Helper Functions

This function doesn't incorporate the 303 status code:

    function Redirect($url, $permanent = false)
    { …
<M/> 170 Why so serious? Featured Poster

I don't know if this helps but I highly recommend for you to constantly wash yourself properly with soap and cold water. It helps prevent the growth of such things like you are dealing with atm.

veedeoo commented: thanks <M/> +0
<M/> 170 Why so serious? Featured Poster
<M/> 170 Why so serious? Featured Poster

I actually own one of those. My neighbor bought one for me (I tutor their 2 kids and have been for the last 4 years. they have straight A's since then... plus i never really charged them). They are not that great (I own the red and black one called the magic cube for the ipad, it is from the same company). The keyboard doesn't always detect what you type when you type fast plus they are not that effective when there is light in the room. I rarely use it but whenever I get a chance to use it, I use it at night or at least when the sun is barely out. Not to forget, you can't really use it on anything but a flat surface (it isn't that great when you use it on your lap). The multi-touch features are pretty decent. Overall, the laser keyboard is a nice idea but it really depends on the user. I know my little sister enjoys using it. I also wish the battery lasted longer on those things...

@expertmagician, you may like it if you want to experience some "new" tech. I liked it when I first got it but i got sick of it like a week later.

I would give it a: 6/10

<M/> 170 Why so serious? Featured Poster

Or they might do something ground breaking and work on programmable matter (it was pretty awesome seeing it TF4)... and so on...

<M/> 170 Why so serious? Featured Poster

I made my first site during the summer of my 5th grade... the site i made was hideous, did nothing useful, nor was it very organized. I didn't really get into to web developing until the summer of eighth grade.

<M/> 170 Why so serious? Featured Poster

You need 5 posts with 5 days of membership or 15 reputation points in order to unlock full website functionalit.

Daniweb isn't the only site that follows that policy. Many sites follow it and I am in favor of it. Besides, 5 posts, 5 days of membership, and 15 rep points is not that hard to earn.

<M/> 170 Why so serious? Featured Poster

It would help if we knew what the purpose of the game was...

<M/> 170 Why so serious? Featured Poster

Here are some pages that may help contribute to answering your question (I am new to this question, so i apologize for any mistakes):
http://ellislab.com/codeigniter/user-guide/database/caching.html
http://ellislab.com/codeigniter/user-guide/libraries/caching.html
http://ellislab.com/codeigniter/user-guide/general/caching.html
http://stackoverflow.com/questions/18192259/codeigniter-cache-view-into-a-view

I hope they help! I too hope to learn something new from this question.

<M/> 170 Why so serious? Featured Poster

I am not too familiar with what your using, but why don't you just use css like this:
.allcaps { font-variant: small-caps; text-transform: uppercase;}

and put it into the html like this:
<p class="allcaps">This is all caps </p>

Have you tried doing it like that? It seems a bit more effective.

<M/> 170 Why so serious? Featured Poster

So far, the user hasn't been banned yet... also, that user gave me some downvotes as well...

Also, do you still need any help with this question? If not, please consider marking it solved.

<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, 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

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

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

For mobile compatibility, why don't you adjust your css by using percentages rather than using pixels?

Also, you didn't have to paste in over 1000 lines of css.

<M/> 170 Why so serious? Featured Poster

Ooooh I would kill for a Krispy Kreme. They closed down the one that was near me.

They have closed down many of them because a lot of schools banned them because they make the kids fat which decreased their sales ;)

<M/> 170 Why so serious? Featured Poster

Creme filled donuts from krispy kreme... we go there 4 times a year ;)

<M/> 170 Why so serious? Featured Poster

According to a post on stackoverflow:

The dot (.) operator is used to access a member of a struct, while the arrow operator (->) in C is used to access a member of a struct which is referenced by the pointer in question.

The pointer itself does not have any members which could be accessed with the dot operator (it's acually only a number describing a location in virtual memory so it doesn't have any members). So, there would be no ambiguity if we just defined the dot operator to automatically dereference the pointer if it is used on a pointer (an information which is known to the compiler at compile time afaik).