A random insight into my life, likes, dislikes, rants, interests, hobbies, and everything inbetween.
Wednesday, 18 December 2013
Tuesday, 3 December 2013
Java
Yet more java, but atleast its gettin fun now! Try/catch switch/case if loops while loops... its all good reading...
Thursday, 28 November 2013
Sunday, 24 November 2013
Winter
Oh my good god, its bloody cold! Im sure my blood has frozen and is now the consistency of slush!
Coffee at mums
Its cold wet and windy! Thort id have a break fom my html and css, been at it all day!
Friday, 22 November 2013
Html code!
The beginnings to my Website.
<!DOCTYPE html><!-- HTML5 -->
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<!--[if IE]><meta http-equiv="ImageToolbar" content="False" /><![endif]-->
<meta name="author" content="K Gregg" />
<meta name="generator" content="Incomedia WebSite X5 Compact 9.1.10.1972 - www.websitex5.com" />
<link rel="stylesheet" type="text/css" href="style/reset.css" media="screen,print" />
<link rel="stylesheet" type="text/css" href="style/print.css" media="print" />
<link rel="stylesheet" type="text/css" href="style/style.css" media="screen,print" />
<link rel="stylesheet" type="text/css" href="style/template.css" media="screen" />
<link rel="stylesheet" type="text/css" href="style/menu.css" media="screen" />
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="style/ie.css" media="screen" /><![endif]-->
<script type="text/javascript" src="res/swfobject.js"></script>
<script type="text/javascript" src="res/jquery.js?1972"></script>
<script type="text/javascript" src="res/x5engine.js?1972"></script>
<script type="text/javascript" src="res/x5cartengine.js?1972"></script>
<script type="text/javascript" src="res/l10n.js?1972_635199685379179687"></script>
<script type="text/javascript" src="res/x5settings.js?1972_635199685379179687"></script>
<link rel="icon" href="favicon.png" type="image/png" />
<title>Galifray - Doctor Who</title>
<link rel="stylesheet" type="text/css" href="pcss/galifray.css" media="screen" />
</head>
<body>
<div id="imPage">
<div id="imHeader">
<h1 class="imHidden">Doctor Who</h1>
</div>
<a class="imHidden" href="#imGoToCont" title="Skip the main menu">Go to content</a>
<a id="imGoToMenu"></a><p class="imHidden">Main menu</p>
<div id="imMnMnGraphics"></div>
<div id="imMnMn" class="auto">
<ul class="auto">
<li id="imMnMnNode0" class="imMnMnFirst">
<a href="index.html">
<span class="imMnMnFirstBg">
<span class="imMnMnTxt"><span class="imMnMnImg"></span>Landing Page</span>
</span>
</a>
</li>
<li id="imMnMnNode12" class="imMnMnMiddle">
<a href="introduction.html">
<span class="imMnMnFirstBg">
<span class="imMnMnTxt"><span class="imMnMnImg"></span>Introduction</span>
</span>
</a>
</li>
<li id="imMnMnNode3" class="imMnMnMiddle">
<a href="audio-visual.html">
<span class="imMnMnFirstBg">
<span class="imMnMnTxt"><span class="imMnMnImg"></span>Audio Visual</span>
</span>
</a>
</li>
<li id="imMnMnNode4" class="imMnMnMiddle">
<a href="doctors-1-and-2.html">
<span class="imMnMnFirstBg">
<span class="imMnMnTxt"><span class="imMnMnImg"></span>Doctors 1 and 2</span>
</span>
</a>
</li>
<li id="imMnMnNode5" class="imMnMnMiddle">
<a href="doctors-3-and-4.html">
<span class="imMnMnFirstBg">
<span class="imMnMnTxt"><span class="imMnMnImg"></span>Doctors 3 and 4</span>
</span>
</a>
</li>
<li id="imMnMnNode6" class="imMnMnMiddle">
<a href="doctors-5-and-6.html">
<span class="imMnMnFirstBg">
<span class="imMnMnTxt"><span class="imMnMnImg"></span>Doctors 5 and 6</span>
</span>
</a>
</li>
<li id="imMnMnNode7" class="imMnMnMiddle">
<a href="doctors-7-and-8.html">
<span class="imMnMnFirstBg">
<span class="imMnMnTxt"><span class="imMnMnImg"></span>Doctors 7 and 8</span>
</span>
</a>
</li>
<li id="imMnMnNode8" class="imMnMnMiddle">
<a href="doctors-9-and-10.html">
<span class="imMnMnFirstBg">
<span class="imMnMnTxt"><span class="imMnMnImg"></span>Doctors 9 and 10</span>
</span>
</a>
</li>
<li id="imMnMnNode9" class="imMnMnMiddle">
<a href="doctors-11-and-12.html">
<span class="imMnMnFirstBg">
<span class="imMnMnTxt"><span class="imMnMnImg"></span>Doctors 11 and 12</span>
</span>
</a>
</li>
<li id="imMnMnNode10" class="imMnMnMiddle">
<a href="companions.html">
<span class="imMnMnFirstBg">
<span class="imMnMnTxt"><span class="imMnMnImg"></span>Companions</span>
</span>
</a>
</li>
<li id="imMnMnNode11" class="imMnMnLast imMnMnCurrent">
<a href="galifray.html">
<span class="imMnMnFirstBg">
<span class="imMnMnTxt"><span class="imMnMnImg"></span>Galifray</span>
</span>
</a>
</li>
</ul><script type="text/javascript">x5engine.imQueue.push_init("x5engine.utils.imPreloadImages(['menu/index_h.png','menu/audio-visual_h.png','menu/doctors-1-and-2_h.png','menu/doctors-3-and-4_h.png','menu/doctors-5-and-6_h.png','menu/doctors-7-and-8_h.png','menu/doctors-9-and-10_h.png','menu/doctors-11-and-12_h.png','menu/companions_h.png','menu/galifray_h.png','menu/introduction_h.png','res/imLoad.gif','res/imClose.png'])",false);</script>
</div>
<div id="imContentGraphics"></div>
<div id="imContent">
<a id="imGoToCont"></a>
<h2 id="imPgTitle">Galifray</h2>
<div style="width: 806px; float: left;">
<div id="imCell_1" class="imGrid[0, 0]"><div id="imCellStyleGraphics_1"></div><div id="imCellStyle_1"><img id="imObjectImage_1" src="images/gallifrey_from_mount_perdition_by_lupus_deus_est-d3epdag.jpg" title="Gallifrey" alt="" height="392" width="794" /></div></div>
</div>
<div style="width: 806px; float: left;">
<div id="imCell_2" class="imGrid[1, 1]"><div id="imCellStyleGraphics_2"></div><div id="imCellStyle_2"><div id="imTextObject_2" style="text-align: left;"><p style="text-align: center;"><span class="ff1 cf5 cb4 fs24"><b>This is Gallifrey seen from Mount Predition. Gallifrey was the home planet of the time lords, but Gallifrey was destroid in the "last great time war".</b></span><b><span class="fs20 cb2 cf0 ff2"><br /></span></b></p></div></div></div>
</div>
<div style="width: 806px; float: left;">
<div id="imCell_4" class="imGrid[2, 3]"><div id="imCellStyleGraphics_4"></div><div id="imCellStyle_4"><!--[if IE]>
<object id="imObjectVideo_4" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="320" height="280">
<param name="url" value="http://www.youtube.com/watch?v=npOY2qe1tqI" />
<param name="ShowControls" value="1" />
<param name="uiMode" value="full" />
<param name="autostart" value="false" />
<param name="ShowDisplay" value="false">
<param name="ShowStatusBar" value="false">
<param name="ShowDisplay" value="false">
<![endif]-->
<object id="imObjectVideo_4" width="320" height="280" type="application/x-mplayer2">
<param name="url" value="http://www.youtube.com/watch?v=npOY2qe1tqI" />
<param name="ShowControls" value="1" />
<param name="uiMode" value="full" />
<param name="autostart" value="false" />
<param name="ShowDisplay" value="false">
<param name="ShowStatusBar" value="false">
<param name="ShowDisplay" value="false">
<embed type="application/x-mplayer2" src="http://www.youtube.com/watch?v=npOY2qe1tqI" id="MediaPlayer" width="320" height="280" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0" />
</object>
<!--[if IE]>
</object>
<![endif]-->
</div></div>
</div>
<div id="imBtMn"><a href="index.html">Landing Page</a> | <a href="introduction.html">Introduction</a> | <a href="audio-visual.html">Audio Visual</a> | <a href="doctors-1-and-2.html">Doctors 1 and 2</a> | <a href="doctors-3-and-4.html">Doctors 3 and 4</a> | <a href="doctors-5-and-6.html">Doctors 5 and 6</a> | <a href="doctors-7-and-8.html">Doctors 7 and 8</a> | <a href="doctors-9-and-10.html">Doctors 9 and 10</a> | <a href="doctors-11-and-12.html">Doctors 11 and 12</a> | <a href="companions.html">Companions</a> | <a href="galifray.html">Galifray</a> | <a href="imsitemap.html">General Site Map</a></div>
<div class="imClear"></div>
</div>
</div>
<div id="imFooterBg">
<div id="imFooter">
</div>
</div>
<span class="imHidden"><a href="#imGoToCont" title="Read this page again">Back to content</a> | <a href="#imGoToMenu" title="Read this site again">Back to main menu</a></span>
</body>
</html>
Formula 1
So another formula one season concludes this week end, with vettel already claiming the title and alonso with guaranteed second place. What's their left to watch for?
Well firstly, the one thing every one should be watching F1 for, and that's the race itself, spectacular in every way. With vettel claiming the title for the last few years, its almost just a formality, the excitement now is in the midfield, with the driver moving around for next season. A possible return for Kovalinen, a very under rated driver. Which begs the question, where will he go? Kimmi is out with a "back" Problem and operation. Its a bit too convenient for me, he crashed out in abudabi, hasn't been paid by lotus, apparently. When everything is added up, it doesn't take a genius to work it out. He may have a back problem and may well be going to have an op, kimmi is not one to sugar coat anything, that's if you can get something out of him. Kimmi is moving back to Ferrari, to partner alonso, making arguably the best and strongest line up since senna and prost. Lets just hope they don't end up like senna and prost.
Ayrton Senna - McLaren-Honda.
New engines for next year too, more to come on that later, I will be giving my opinions on who will be up there come the end of the 2014 season. Which team has got it right? redbull, McLaren, Ferrari or even Williams. McLaren are teaming back up with an old friend, in the shape of a Honda engine? What happened last time they had Honda power?
Bloody java...
So today i have spent coding Java, i should really start coding my HTML and CSS but i think i deserve a break. Network topological Designs to do for ICA at teeside Uni. but here is my dilemma.
If
Kris Does lots more work
System.out.print("I will be very Hungry")
else
System.out.print("I wont get any more work done")
So what to do. Suppose i could keep working into the night?
Ideas?
If
Kris Does lots more work
System.out.print("I will be very Hungry")
else
System.out.print("I wont get any more work done")
So what to do. Suppose i could keep working into the night?
Ideas?
My Java Code Convert Decimal to Binary.
Guess What this does, lol. It took me hours.
package dec2binconversion;
import java.util.Scanner;
/**
* @author Kris Gregg
*/
public class Dec2BinConversion
{
/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
Scanner keys = new Scanner(System.in);
int dec;
String binary = "";
System.out.print("Enter Decimal Number: ");
dec = keys.nextInt();
for (int i = dec; i >= 1; i--)
{
if (dec % 2 != 0)
{
binary += '1';
}
else
{
binary += '0';
}
dec = dec / 2;
}//end of the Loop
for (int i = binary.length() - 1; i >= 0; i--)
{
if (binary.charAt(i) == '1')
{
//result = result + result.charAt(i);
System.out.print(binary.charAt(i));
}
else
//result = result + result.charAt(i);
{
System.out.print(binary.charAt(i));
}
}
}
}
package dec2binconversion;
import java.util.Scanner;
/**
* @author Kris Gregg
*/
public class Dec2BinConversion
{
/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
Scanner keys = new Scanner(System.in);
int dec;
String binary = "";
System.out.print("Enter Decimal Number: ");
dec = keys.nextInt();
for (int i = dec; i >= 1; i--)
{
if (dec % 2 != 0)
{
binary += '1';
}
else
{
binary += '0';
}
dec = dec / 2;
}//end of the Loop
for (int i = binary.length() - 1; i >= 0; i--)
{
if (binary.charAt(i) == '1')
{
//result = result + result.charAt(i);
System.out.print(binary.charAt(i));
}
else
//result = result + result.charAt(i);
{
System.out.print(binary.charAt(i));
}
}
}
}
Subscribe to:
Posts (Atom)