Borzoi 24 Posting Whiz

Have the water in some sort of container and hold the container above his/her head.

Borzoi 24 Posting Whiz

Photography.

Borzoi 24 Posting Whiz

22, since I am the driver.

I love riddles so feel free to post more.

Borzoi 24 Posting Whiz

It can take up to 48 hours for DNS records to update fully so your domain may still point to the wrong thing for a while. If this is only happening on the computers you tried to access the site with before changing the settings then it's probably the browser cache on the specific computer. If you do a hard refresh (ctrl + F5 on most Windows based browsers) then it should completely refresh the page or you could delete the browser cache.

Borzoi 24 Posting Whiz

No, your DNS settings would be with with your registrar. In your case, 123-reg. Log in to your account there and you should be able to set the zone records.

Borzoi 24 Posting Whiz

In the DNS settings you need to set up a zone record. It would be an A record (Address) and the value would be the IP address of your server. You will probably want to make a couple. One for site.com and one for www.site.com so that both go to your site.

Borzoi 24 Posting Whiz

Nick Evan - A llama who can somehow use a computer. Maybe the avatar is just throwing me off.

Narue - Makes me think of Naru Narusegawa from Love Hina which makes it hard for me to imagine what she's like.

Ancient Dragon - Not sure why but I imagine that they're some sort of company director or at the least, a head of department in a big company.

Borzoi 24 Posting Whiz

I sometimes lose track of time when I'm coding but I haven't deliberately tried to spend ages working on it or timed myself.

Borzoi 24 Posting Whiz

If it's in your place of work, contact your IT department. It's likely they're using the default SMTP port but you will need to ask them as they may have changed it.

Borzoi 24 Posting Whiz

Make sure your DNS is set up so www.example.com is there. If it's not, then requests to www.example.com won't work as that doesn't exist. You just need to make it the same as your example.com entry.

Borzoi 24 Posting Whiz

I am also looking for a Domain Name Registrar with no extras. I don't need the technical support and I know how to set up my server exactly how I want. I'm currently using a free .co.cc domain until I can find a good one. The service .co.cc provides is pretty much what I want but I want a more known extension (.co.uk).

Borzoi 24 Posting Whiz

Could you not just add a distinct or group by to the SQL query to only retrieve unique results?

R.

Good point.

Borzoi 24 Posting Whiz

You can purge duplicates from an array by using array_unique.

What I would recommend is start an array which holds the whole table row then before running a loop to display the array, re-set the array by using:

$variable = array_unique($variable);

This should remove any duplicates.

If it's the table headers that are the only things displaying over and over, then you just need to change your code to this:

<?php
require_once('upper.php');
require_once('database.php');
require_once('LoginStatement.php');
$LoginId=$_COOKIE['LoginIdCookie'];
$query="select * from activity_participation where LoginId='$LoginId'";
$result=mysqli_query($dbc,$query) or die ('Not Connected');
//echo "<div class='search_output_data'>
echo "<table border='0' cellspacing='0' cellpadding='0'>
<tr><th align='left' valign='top'>Activity Title</th>
<th align='left' valign='top'>Date of Participation</th>
</tr>";

while($row=mysqli_fetch_array($result))
{
echo "<tr><td align='left' valign='top'>".$row['Title']."</td> <td align='left' valign='top'>".$row['Date']."</td></tr>";
}
echo "</table>";
//echo "</div>";
require_once('lower.php');
?>

I have modified your table code because I didn't see a reason to need a table within a table when the wrapping table has the headers.

If there is multiple entries in the database, use the array_unique(); I mentioned earlier like this:

<?php
require_once('upper.php');
require_once('database.php');
require_once('LoginStatement.php');
$LoginId=$_COOKIE['LoginIdCookie'];
$query="select * from activity_participation where LoginId='$LoginId'";
$result=mysqli_query($dbc,$query) or die ('Not Connected');
//echo "<div class='search_output_data'>
echo "<table border='0' cellspacing='0' cellpadding='0'>
<tr><th align='left' valign='top'>Activity Title</th>
<th align='left' valign='top'>Date of Participation</th>
</tr>";
$tablerow = 1; //Will be used to count the amount of rows in the table and put each row in the relevant part of the array.
while($row=mysqli_fetch_array($result))
{
$tabledata[$tablerow] = "<tr><td align='left' valign='top'>".$row['Title']."</td> <td align='left' valign='top'>".$row['Date']."</td></tr>";

$tablerow++; //Increment so that the previous entry in the array isn't overwritten.
}

$tabledata = …
Borzoi 24 Posting Whiz

We use Contensis at my place of work but I wouldn't recommend it at all. It crashes a lot, doesn't work properly in any browser other than IE and sometimes screws up CSS classes. For example: I would set an image to the previously defined "imageleft" to make it float to the left but when I edit the page a bit, it decides to also add the class "sys_clear" to the image for some unknown reason. A class which doesn't exist which wouldn't normally cause a problem but it doesn't put a space between the classes so in the code it looks like class="imageleftsys_clear" meaning it's trying to call a non existent class.

In short: don't use Contensis.

Borzoi 24 Posting Whiz

I believe so.

Borzoi 24 Posting Whiz

"The kilobyte is often considered to be 1024 (210) bytes in some fields of computer science and information technology. This use has been discouraged by the major standards organizations and a new prefix system was defined by the International Electrotechnical Commission, which defines the kibibyte for this binary multiple and affirms the kilobyte as 1000bytes. However, the new standard has not entered common usage, and has been actively resisted by some in the fields of computer science and information technology because of aesthetic objections to the new prefixes."

http://en.wikipedia.org/wiki/Kilobyte

I think you'll find that bandwith usage is still measured like that. Also, Google says 1,024: http://www.google.co.uk/#sclient=psy&hl=en&safe=off&q=1kB+in+bytes&aq=f&aqi=g1&aql=&oq=&gs_rfai=&pbx=1&fp=957dcd876369ec41 but that's besides the point.

Either way, bandwidth isn't measured in kilobytes/megabytes etc, it's measure in kilobits/megabits. Kbps = Kilobits per second (1,000 bits), KBps = Kilobytes per second (8,192 bits if we're saying 1 KB = 1,024 bytes and 8,000 if we're saying 1 KB = 1,000 bytes).

Borzoi 24 Posting Whiz

Are you sure that huge number is bytes and not bits?

Borzoi 24 Posting Whiz

8 bits = 1 byte (B)
1024 bytes = 1 Kilobyte (KB)
1024 Kilobytes = 1 Megabyte (MB)

If you have the amount of KB and you want to convert it to MB, you just divide by 1024.

I'm not sure what you're doing with all those other numbers.

Borzoi 24 Posting Whiz

Here is a quick example.

https://sites.google.com/site/theborzoi/test

What I want is to minimise the (in this case) blue space to the right of the boxes when the gap between one box and the right edge is too small to fit another box. I want to do this by either making the space between each box expand as the page expands (like justified text) until there's enough space to bring a box up a level or just centre all the boxes so that the space increases either side of the boxes rather than just the right but still be able to bring a box up a line when there's enough space.

Am I being clear enough or do you need more detail?

Borzoi 24 Posting Whiz

I don't want percentage based widths. It's probably best if I show an example. The page I'm working on isn't live but I'll put up a small test page and try to explain what I want when I can.

Borzoi 24 Posting Whiz

Is there a way to make the width of the page, or an element within the page only change by a certain amount depending on the width of the screen?

For example, I have a white box with 6 items in. Each item is its own box and has a blue background with a set width. On a small resolution, there is 3 items per line within the white box but on a higher resolution, there may be more. What I want to do is minimise the white space and the best way I can think of is to make it so the white box only expands when the screen width reaches a certain increment of an initial size. For example, it'll expand when the browser is 100px, 200px etc. rather than expand as the browser is adjusted.

Another idea I had was to make it so the white space between each item expands equally (like with text-align: justify; ) but I can't figure out a way to do this either as using that just justifies the text within each item.

Any help will be appreciated.

Borzoi 24 Posting Whiz

Is your site live? Link us to the problem page if you can. If we experience the problem ourselves we will find it easier to help.

Borzoi 24 Posting Whiz

Would I be correct in assuming that the file is displaying the <br> where you want the line break? If so then use this instead:

<?php

  $user = $_POST['user'];
  $pass = $_POST['pass'];

  $file = "fileone.txt";
  $content = $user . ",";
  file_put_contents($file,$content,FILE_APPEND);

  $content2 = $pass . "\n";
  file_put_contents($file,$content2,FILE_APPEND);
?>

The \n basically means "new line" and should cause the desired line break. I could go into more detail about it if you wish.

Borzoi 24 Posting Whiz

If you need to learn some php, then http://php.net is a great site to learn the different functions.

Borzoi 24 Posting Whiz

It shouldn't cause problems but it is good practice to use entities (things like &gt; ). Refer to the link I provided earlier for a list.

Borzoi 24 Posting Whiz

Just tested it and I am also getting missing words. If you remove the height: 2em under .left ul a in your CSS and it works. What's happening is the extra words are going on to the next line and since you specify a height for it, it's going out of it's box, so to speak.

Also, I retract what I said before about the width: 600px; being changed. You might as well just remove it as it isn't doing anything. I tried it myself changing it to min-width but it breaks the menu and removing it or setting it to max-width made no change so it isn't needed.

Borzoi 24 Posting Whiz

When I get home I will try to replicate the problem by via a copy/paste of the code.

Borzoi 24 Posting Whiz

I'm not quite sure what you want. Could you explain in more detail, please?

Borzoi 24 Posting Whiz

Just so you know, you shouldn't use characters such as > and & etc as text. I.e.:

Replace:

<p>You are in: <a href="index.htm">Home</a> > Visual impairments </p>

With:

<p>You are in: <a href="index.htm">Home</a> &gt; Visual impairments </p>

You can find a reference table here: http://www.w3schools.com/tags/ref_entities.asp

Also, in your CSS you have two widths:

.right {
width: 600px;
float: right; 
width: 85%;
text-align: left;
}

I'm assuming what you want to do there is make is so the site is expandable to 85% of the screen width but won't go smaller than 600px. If that is the case then replace width: 600px; with min-width: 600px; .

Other than that, I can't actually see anything wrong with the code. If the site is live somewhere, could you link us to it? I'm not at home right now but when I get there, I can check the site using Linux and will be able to come to a solution easier. I have Fedora Core 8 though so results may differ.

Borzoi 24 Posting Whiz

I was just using that as an example as I couldn't think of anything else at the time. I suppose a better example would be if you had a forum on your site and you don't want the normal header/footer on that section so you have separate forumheader.php and forumfooter.php files.

Borzoi 24 Posting Whiz

I agree with Ancient Dragon. Getting married based solely on your attraction to that person rarely ever works. Finding the person you truly want to spend the rest of your life with will happen at different times for everyone. For example, my parents got married when my father was 18 and my mother was 19 and they're still together today. On the other hand, my uncle only married two years ago, when he was 42. Quite a considerable difference there.

As it was mentioned before, too many people nowadays marry based on what they probably think is love when it's just infatuation.

I'm not actively seeking a relationship at the moment but I'm not "closed off" so to speak. If something happens, it happens. When I'm looking for a relationship, I want it to be with someone I can get along with really well and enjoy the company of rather than someone I just find attractive.

Borzoi 24 Posting Whiz

Just as Kraai said, you need to view source and not save the page. Bear in mind that viewing the source only shows the outputted HTML and will not show any PHP so you won't be able to steal websites database passwords.

Borzoi 24 Posting Whiz

Could you also provide the code for the table? This way we can try to duplicate the problem ourselves and it'll be easier to find a solution.

I cannot see any problems with your CSS although I would suggest using classes and not IDs.

Borzoi 24 Posting Whiz

PHP means Personal Home Page.I am always seeking net for valuable things that can assist me achieving knowledge. We are in Website design business for long. I think that your post is good in terms of topic. By the way, if you have time please check <a href="http://www.mavrickit.com" rel="nofollow">Website Design Services</a>

Wrong. PHP used to mean Personal Home Page but not any more. PHP stands for PHP: Hypertext Preprocessor.

As for opening a PDF to a specific page, you don't need PHP, just simple HTML. All you need to do is add #page=pagenumber at the end of the url.

Example:

<!-- Direct link to page 3 -->
<a href="documents/Document.pdf#page=3">PDF Document</a>

<!-- Using a PHP variable -->
<?php
  echo "<a href=\"document/Document.pdf#page=$page\">PDF Document</a>";
?>

Hope this helps.

Borzoi 24 Posting Whiz

The username IS case sensitive.

Borzoi 24 Posting Whiz

Someone in my department called IT about two hours ago because they couldn't access some files on the network drive due to the filepath being too long. The IT guy came up and did... something. I'm not sure what he did but it took him at least an hour to come to the conclusion that "I can't fix it from here. I'm going to have to change the folder name on the network drive." I then went up to him, plugged in my memory stick and ran a batch file I wrote two weeks ago. Problem fixed instantly.

All the batch file did was map the folder to a network drive.

Borzoi 24 Posting Whiz

The batch file works but I forgot to test the case sensitivity. I'm going to mark this thread as solved but I'll post the results in here when I've tested it; which should be tomorrow but don't quote me on that.

Borzoi 24 Posting Whiz

Share your experiences that you've had with "experts" who have made you want to facepalm from their stupidity and users which have less than minimal knowledge. For example, people that wonder why their computer doesn't turn on during a power cut.

My most recent one that I can recall is when I was doing a temp job a few years ago. One of the people there had moved desk and the network cable no longer reached his computer so what he decided to do was place the tower at a point close enough so the network cable would reach and then after logging in, he unplugged it and moved the tower back to his desk. He then kept complaining that the internet wasn't working and he couldn't access any network folders. I tried explaining to him that the network cables needs to stay plugged in to access the network but he was adamant that it only needed to be plugged in to log in. He seemed to be the type of guy that thinks "I'm older so I must know more."

Borzoi 24 Posting Whiz

How about a thread sharing our experiences about the supposed "experts" which do something facepalm worthy and users which have less than minimal knowledge? Like wondering why their computer isn't working when they have a powercut.

Borzoi 24 Posting Whiz

Ok. Let me just tell you the answer.

You would say to him "You would shoot me." because it would then cause a paradox. If he hangs you, you lied and she should have shot you but if he shoots you then you told the truth and he should have hung you.

Is there a good jokes thread somewhere? If not, I'll start one.

Borzoi 24 Posting Whiz

You need to encase the links in your css in quotes. For example, your #mainDiv is currently:

#mainDiv {
	width:975px;
	margin-left:auto;
	margin-right:auto;
	background:#FFF;
	background:url(images/main_bg.jpg);
	background-repeat:repeat-y;

}

When it should be:

#mainDiv {
	width: 975px;
	margin-left: auto;
	margin-right: auto;
	background: #FFF;
	background: url('images/main_bg.jpg');
	background-repeat: repeat-y;

}

I'm pretty sure the spaces I've put after each of the colons aren't needed but as you can see, it makes the syntax highlight better.

try to resize the image. In photoshop, etc use "Save for Web" button to save your image to lower your image size. if the image size is bigger than it should be, background image cannot be seen in online web browser.

That isn't necessarily needed. Not all image editing software has a "Save for Web" option and Photoshop isn't free. The file size would just determine the loading time of the image. If you want to reduce the file size with minimal quality loss, I would recommend a free program called Riot (Radical Image Optimisation Tool). I use it at work and find it very useful.

Borzoi 24 Posting Whiz

C'mon, think of one I haven't heard already!

I'm running out of riddles myself and I'm starting to forget what I've already asked.

Here's one:

You are a prisoner in a very cruel prison and the warden comes in and says "If you tell me a truth, I will hang you but if you tell me a lie, I will shoot you." What do you say to him to not get killed?

Borzoi 24 Posting Whiz

His horse is called Friday.

Borzoi 24 Posting Whiz

Put some sauce on it?

Borzoi 24 Posting Whiz

Looking at your code for the page, you have </p> after each link in that menu but you don't have an opening <p> tag.

You have:

<p class="text1">
  <a href="whoweare.php">Who We Are</a></p>
  <a href="events.php">Events</a></p>

  <a href="newsletter.php">Newsletter &amp; News</a></p>
  <a href="AwardNominations.php">Award Nominations</a></p>
  <a href="videos.php">Video Library</a></p>
  <a href="jobs.php">Jobs</a></p>
  <a href="links.php">Links</a></p>

  <a href="discounts.php">Discounts</a></p>
  <a href="volunteers.php">Call for Volunteers</a></p>
  <a href="societies.php">Society Websites</a></p>
  <a href="bylaws.php">By-laws</a></p>
  <a href="http://www.ieee.org/portal/index.jsp?pageID=corp_level1&amp;path=membership&amp;file=coa.xml&amp;xsl=generic.xsl">Update
  IEEE profile and email address</a></p>
  <a href="other.php">Other Events</a></p>

  <a href="http://www.ieee.org/fap"><img border="0" src="images/fap.jpg" width="120" height="60"></a>
</p>

Try this:

<p class="text1">
  <p><a href="whoweare.php">Who We Are</a></p>
  <p><a href="events.php">Events</a></p>
  <p><a href="newsletter.php">Newsletter &amp; News</a></p>
  <p><a href="AwardNominations.php">Award Nominations</a></p>
  <p><a href="videos.php">Video Library</a></p>
  <p><a href="jobs.php">Jobs</a></p>
  <p><a href="links.php">Links</a></p>
  <p><a href="discounts.php">Discounts</a></p>
  <p><a href="volunteers.php">Call for Volunteers</a></p>
  <p><a href="societies.php">Society Websites</a></p>
  <p><a href="bylaws.php">By-laws</a></p>
  <p><a href="http://www.ieee.org/portal/index.jsp?pageID=corp_level1&amp;path=membership&amp;file=coa.xml&amp;xsl=generic.xsl">Update IEEE profile and email address</a></p>
  <p><a href="other.php">Other Events</a></p>
  <p><a href="http://www.ieee.org/fap"><img border="0" src="images/fap.jpg" width="120" height="60"></a></p>
</p>
daviddoria commented: Thanks for catching my mistake! +4
Borzoi 24 Posting Whiz

1. Separate pages.

Each page coded completely independently.

2. Index page with content as included files.

An index page with everything that would appear on every page coded in then a simple if statement to check which page should be displayed, likely depending on the URL (e.g.: index.php?page=news).

3. Content pages with included header/footer.

All code that is needed on every page is stored in files which are included in each page.

4. None/Other.

Self explanatory. Please give details.

---

I'm just wondering everyone's opinions on this and their reasons for choosing it.

I know that 2 and 3 are very similar but I would go with 3 as it means the end user could find pages easier. I don't know about the rest of you but I find it generally easier to remember something like http://site.com/videos than http://site.com/?page=videos but I am aware that you could set the server to redirect any calls for http://site.com/videos to http://site.com/?page=videos but my way also means that you could have slightly different header files and include different ones depending on the part of the site. For example, if you have a site about video games, in your PS3 section, you may want your header image to contain a PS3 and in your 360 section to contain a 360.

Borzoi 24 Posting Whiz

Because a panda eats shoots and leaves.

More of a joke than a riddle that one.

Borzoi 24 Posting Whiz

Correct, although not necessarily 3 seconds before and after.

A panda goes into a restaurant. He eats a meal then afterwards stands up, pulls out a pistol and shoots someone then leaves the restaurant. Why did he do this?

AndreRet commented: I'll give you some whilst I hate riddles:) +0
Borzoi 24 Posting Whiz

They're biological sisters, both with the same mother and father.

Borzoi 24 Posting Whiz

I thought that a robots.txt file was just to prevent search engines from crawling through folders they shouldn't. I don't think it will increase web traffic. I could be wrong though but that's my understanding of it.