<?xml version="1.0" encoding="UTF-8"?><feed
  xmlns="http://www.w3.org/2005/Atom"
  xmlns:thr="http://purl.org/syndication/thread/1.0"
  xml:lang="en-US"
  xml:base="https://www.jaygeiger.com/wp-atom.php"
   >
	<title type="text">Geiger</title>
	<subtitle type="text">Geiger, you don&#039;t know me! (Yet)</subtitle>

	<updated>2015-06-10T15:37:25Z</updated>

	<link rel="alternate" type="text/html" href="https://www.jaygeiger.com" />
	<id>https://www.jaygeiger.com/index.php/feed/atom/</id>
	<link rel="self" type="application/atom+xml" href="https://www.jaygeiger.com/index.php/feed/atom/" />

	<generator uri="http://wordpress.org/" version="3.8.1">WordPress</generator>
	<entry>
		<author>
			<name>Jason Geiger</name>
						<uri>http://www.jaygeiger.com</uri>
					</author>
		<title type="html"><![CDATA[Parsing XML with C#]]></title>
		<link rel="alternate" type="text/html" href="https://www.jaygeiger.com/index.php/2015/06/10/parsing-xml-with-c/" />
		<id>http://www.jaygeiger.com/?p=1366</id>
		<updated>2015-06-10T15:37:25Z</updated>
		<published>2015-06-10T15:26:20Z</published>
		<category scheme="https://www.jaygeiger.com" term="Uncategorized" />		<summary type="html"><![CDATA[This has to be quick because I have things to do and this tangent, although a good teaching lesson to myself, has to wrap up so I can get back to the grind. To me XML should be simple but gets all complicated with namespaces, XSD, XSLT, etc…  I’m kind of like a detective and [&#8230;]]]></summary>
		<content type="html" xml:base="https://www.jaygeiger.com/index.php/2015/06/10/parsing-xml-with-c/"><![CDATA[<p>This has to be quick because I have things to do and this tangent, although a good teaching lesson to myself, has to wrap up so I can get back to the grind.</p>
<p>To me XML should be simple but gets all complicated with namespaces, XSD, XSLT, etc…  I’m kind of like a detective and want “Just the <span style="text-decoration: line-through;">facts</span> DATA ma’am”.  Secondly, I’ve never really seen the purpose of LINQ and usually just use datatables as they are simple and easy to use.  However, when you are given <span style="text-decoration: line-through;">lemons</span> XML, you make <span style="text-decoration: line-through;">lemonade</span> LINQ queries.  It will save you some frustration.</p>
<p>So if you have this XML…</p>
<p>&lt;?xml version=&#8221;1.0&#8243;?&gt;<br />
&lt;items&gt;<br />
&lt;item&gt;<br />
&lt;itemName&gt;Item 1&lt;/itemName&gt;<br />
&lt;/item&gt;<br />
&lt;item&gt;<br />
&lt;itemName&gt;Item 2&lt;/itemName&gt;<br />
&lt;/item&gt;<br />
&lt;/items&gt;</p>
<p>You can select different elements using LINQ to XML.  Name you use XElement.  Do not confuse XElement with XmlDocument.  XmlDocument is older and will only serve to confuse you.</p>
<p>To select all the itemName’s and add them to a string you would…</p>
<p><a href="http://www.jaygeiger.com/wp-content/uploads/2015/06/C1.jpg"><img style="background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;" title="image" alt="image" src="http://www.jaygeiger.com/wp-content/uploads/2015/06/C1.jpg" width="303" height="118" border="0" /></a></p>
<p>After running, the variable R would be equal to…<br />
<a href="http://www.jaygeiger.com/wp-content/uploads/2015/06/R1.jpg"><img style="background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;" title="C# LINQ XML RESULTS" alt="C# LINQ XML RESULTS" src="http://www.jaygeiger.com/wp-content/uploads/2015/06/R1.jpg" width="352" height="212" border="0" /></a></p>
<p>This above Linq says [Select all elements from XE’s descendants that are named “itemName”].  It’s very reminiscent of a SQL statement.</p>
<p>Then we piece together a string called “R” that adds the value of each element to itself.</p>
<p>Now you know the basics.  You can iterate differently in your “foreach” statement.  You don’t have to use el.Value.  You could find different sub-elements if they existed, load it into a class or do whatever but there is one more thing that got me when I first learned.  That is “xmlns”.</p>
<p>So if this line…<br />
&lt;item&gt;<br />
…was replaced with this line<br />
&lt;items xmlns=&#8221;http://SomeWebsite/Version1.0&#8243;&gt;<br />
Then your code wouldn’t work.</p>
<p>The code wouldn’t work because even though &lt;itemName&gt; still looks like “&lt;itemName” in the file, it is not.</p>
<p>Now this may seem confusing because if you open the XML file you will see &lt;itemName&gt; all over the place.  However, because you added an XML Namespace (ie. xmlns=”http://SomeWebsite/Version1.0”) LINQ now considers the name to be…<br />
<a href="http://www.jaygeiger.com/wp-content/uploads/2015/06/C2.jpg"><img style="background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;" title="LINQ XMLNS Fixed" alt="LINQ XMLNS Fixed" src="http://www.jaygeiger.com/wp-content/uploads/2015/06/C2.jpg" width="515" height="50" border="0" /></a></p>
<p>This may seem like it’s an over complication when you just want the data, however when there are different versions of elements this kind of versioning saves headaches down the road.</p>
<p>Hopefully this simplifies things for you.  It would have saved me some Googling if I would have found something similar earlier.</p>
]]></content>
			<link rel="replies" type="text/html" href="https://www.jaygeiger.com/index.php/2015/06/10/parsing-xml-with-c/#comments" thr:count="2"/>
		<link rel="replies" type="application/atom+xml" href="https://www.jaygeiger.com/index.php/2015/06/10/parsing-xml-with-c/feed/atom/" thr:count="2"/>
		<thr:total>2</thr:total>
	</entry>
		<entry>
		<author>
			<name>Jason Geiger</name>
						<uri>http://www.jaygeiger.com</uri>
					</author>
		<title type="html"><![CDATA[How to earn a Free Dollar on the internet]]></title>
		<link rel="alternate" type="text/html" href="https://www.jaygeiger.com/index.php/2015/04/03/how-to-earn-a-free-dollar-on-the-internet/" />
		<id>http://www.jaygeiger.com/?p=1363</id>
		<updated>2015-04-03T13:33:46Z</updated>
		<published>2015-04-03T13:33:46Z</published>
		<category scheme="https://www.jaygeiger.com" term="Uncategorized" />		<summary type="html"><![CDATA[I love this…&#160; There’s very few ways if any to earn a $1.00&#160; online.&#160; Jeremy Schoemaker now has an educational “Shoe Money Network” that teaches you everything.&#160; You just need a PayPal account (to get paid) and a Facebook Account. You can sign up and get your free buck then quit or continue on.&#160; Not [&#8230;]]]></summary>
		<content type="html" xml:base="https://www.jaygeiger.com/index.php/2015/04/03/how-to-earn-a-free-dollar-on-the-internet/"><![CDATA[<p><a href="http://www.jaygeiger.com/wp-content/uploads/2015/04/image.png"><img title="Earn 1 dollar on the internet" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="Earn 1 dollar on the internet" src="http://www.jaygeiger.com/wp-content/uploads/2015/04/image_thumb.png" width="451" height="484"></a></p>
<p>I love this…&nbsp; There’s very few ways if any to earn a $1.00&nbsp; online.&nbsp; Jeremy Schoemaker now has an educational “Shoe Money Network” that teaches you everything.&nbsp; You just need a PayPal account (to get paid) and a Facebook Account.</p>
<p>You can sign up and get your free buck then quit or continue on.&nbsp; Not a bad deal.&nbsp; Here’s the link…</p>
<p><a href="http://shoemoney.net/register.php?r=3591">Click here to get your free $1.00</a></p>
]]></content>
			<link rel="replies" type="text/html" href="https://www.jaygeiger.com/index.php/2015/04/03/how-to-earn-a-free-dollar-on-the-internet/#comments" thr:count="0"/>
		<link rel="replies" type="application/atom+xml" href="https://www.jaygeiger.com/index.php/2015/04/03/how-to-earn-a-free-dollar-on-the-internet/feed/atom/" thr:count="0"/>
		<thr:total>0</thr:total>
	</entry>
		<entry>
		<author>
			<name>Jason Geiger</name>
						<uri>http://www.jaygeiger.com</uri>
					</author>
		<title type="html"><![CDATA[NCAA Basketball championship 2015 spreadsheet with odds]]></title>
		<link rel="alternate" type="text/html" href="https://www.jaygeiger.com/index.php/2015/03/18/ncaa-basketball-championship-2015-spreadsheet-with-odds/" />
		<id>http://www.jaygeiger.com/?p=1354</id>
		<updated>2015-03-18T16:04:07Z</updated>
		<published>2015-03-18T16:01:56Z</published>
		<category scheme="https://www.jaygeiger.com" term="Uncategorized" />		<summary type="html"><![CDATA[After finding some odds from KenPom here, I through them in a spreadsheet, added the Vegas odds as well as my own “Geiger Rankings™” Geiger Rankings™ are other ranks weighted by the Vegas odds.  If you are in pools, this should really help give you some insight. https://docs.google.com/spreadsheets/d/1FW-SAJugyNv5EjghK-dKHWVejxQxSuf_mu1fWTwWGkg/pubhtml?gid=301639732&#38;single=true]]></summary>
		<content type="html" xml:base="https://www.jaygeiger.com/index.php/2015/03/18/ncaa-basketball-championship-2015-spreadsheet-with-odds/"><![CDATA[<p>After finding some <a target="_blank" href="http://imgur.com/6XClIjx">odds from KenPom here</a>, I through them in a spreadsheet, added the Vegas odds as well as my own “Geiger Rankings™”</p>
<p>Geiger Rankings™ are other ranks weighted by the Vegas odds.  If you are in pools, this should really help give you some insight.</p>
<p><iframe src="https://docs.google.com/spreadsheets/d/1FW-SAJugyNv5EjghK-dKHWVejxQxSuf_mu1fWTwWGkg/pubhtml?gid=301639732&amp;single=true&amp;widget=true&amp;headers=false" height="600" width="600"></iframe></p>
<p><a target="_blank" title="https://docs.google.com/spreadsheets/d/1FW-SAJugyNv5EjghK-dKHWVejxQxSuf_mu1fWTwWGkg/pubhtml?gid=301639732&amp;single=true" href="https://docs.google.com/spreadsheets/d/1FW-SAJugyNv5EjghK-dKHWVejxQxSuf_mu1fWTwWGkg/pubhtml?gid=301639732&amp;single=true">https://docs.google.com/spreadsheets/d/1FW-SAJugyNv5EjghK-dKHWVejxQxSuf_mu1fWTwWGkg/pubhtml?gid=301639732&amp;single=true</a></p>
]]></content>
			<link rel="replies" type="text/html" href="https://www.jaygeiger.com/index.php/2015/03/18/ncaa-basketball-championship-2015-spreadsheet-with-odds/#comments" thr:count="1"/>
		<link rel="replies" type="application/atom+xml" href="https://www.jaygeiger.com/index.php/2015/03/18/ncaa-basketball-championship-2015-spreadsheet-with-odds/feed/atom/" thr:count="1"/>
		<thr:total>1</thr:total>
	</entry>
		<entry>
		<author>
			<name>Jason Geiger</name>
						<uri>http://www.jaygeiger.com</uri>
					</author>
		<title type="html"><![CDATA[How to kill a frozen linked sql server connection]]></title>
		<link rel="alternate" type="text/html" href="https://www.jaygeiger.com/index.php/2015/03/03/how-to-kill-a-frozen-linked-sql-server-connection/" />
		<id>http://www.jaygeiger.com/?p=1352</id>
		<updated>2015-03-03T18:59:57Z</updated>
		<published>2015-03-03T18:59:57Z</published>
		<category scheme="https://www.jaygeiger.com" term="Uncategorized" />		<summary type="html"><![CDATA[So I recently setup a Linked Server in our SQL database that connects to some sort of version of IBM’s DB2. I made the mistake of querying a ginormous table.&#160; After 30 minutes or so, I cancelled the query.&#160; The query wouldn’t cancel so I closed the window in SQL Server Management Studio (SSMS).&#160; I [&#8230;]]]></summary>
		<content type="html" xml:base="https://www.jaygeiger.com/index.php/2015/03/03/how-to-kill-a-frozen-linked-sql-server-connection/"><![CDATA[<p>So I recently setup a Linked Server in our SQL database that connects to some sort of version of IBM’s DB2.</p>
<p>I made the mistake of querying a ginormous table.&nbsp; After 30 minutes or so, I cancelled the query.&nbsp; The query wouldn’t cancel so I closed the window in SQL Server Management Studio (SSMS).&nbsp; I opened a new window and proceeded to query again with an added where clause.&nbsp; I repeated this a few times with more and more restrictive where clauses.&nbsp; After a while I closed SSMS and reconnected from a different machine.&nbsp; I checked the activity monitor in SQL and saw that I had 5 connections.&nbsp; I proceeded to “Kill” all of them.</p>
<p>Then this happened.<br /><a href="http://www.jaygeiger.com/wp-content/uploads/2015/03/image.png" target="_blank"><img title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="image" src="http://www.jaygeiger.com/wp-content/uploads/2015/03/image_thumb.png" width="644" height="123"></a></p>
<p>All the processes where stuck in KILLED/ROLLBACK and had a wait of PREEMPTIVE_OLEDBOPS.</p>
<p>At this point most SQL experts will blindly give you the advice that you should just “Wait” until the rollback is complete.&nbsp; However, this was a linked server.&nbsp; I wasn’t doing anything but select data from it.&nbsp; I waited an hour or 2 an still nothing.&nbsp; I checked the rollback status of each connection and each was at 0%.&nbsp; Also, the CPU was pegging on the database server.&nbsp; What was I to do?</p>
<p>Well the solution for me was to download TCP View from Microsoft.<br /><a title="http://www.google.com/search?q=tcp+view&amp;btnI" href="http://www.google.com/search?q=tcp+view&amp;btnI">http://www.google.com/search?q=tcp+view&amp;btnI</a></p>
<p>I opened TCP View up and found the connections that weren’t working.&nbsp; I killed the first one and the rest just disappeared.&nbsp; My CPU went from almost all down to 2%.&nbsp; (Note: It gave me a different machine name in TCP View because the machine in question had multiple DNS names that went to the same IP Address)</p>
<p>An enterprise level database should not allow an unreturned linked server to compromise the entire server.&nbsp; If you agree, write to them here.</p>
<p><a title="https://connect.microsoft.com/SQLServer/feedback/details/187192/" href="https://connect.microsoft.com/SQLServer/feedback/details/187192/">https://connect.microsoft.com/SQLServer/feedback/details/187192/</a></p>
]]></content>
			<link rel="replies" type="text/html" href="https://www.jaygeiger.com/index.php/2015/03/03/how-to-kill-a-frozen-linked-sql-server-connection/#comments" thr:count="5"/>
		<link rel="replies" type="application/atom+xml" href="https://www.jaygeiger.com/index.php/2015/03/03/how-to-kill-a-frozen-linked-sql-server-connection/feed/atom/" thr:count="5"/>
		<thr:total>5</thr:total>
	</entry>
		<entry>
		<author>
			<name>Jason Geiger</name>
						<uri>http://www.jaygeiger.com</uri>
					</author>
		<title type="html"><![CDATA[Windows guy learns linux How to telnet/ssh]]></title>
		<link rel="alternate" type="text/html" href="https://www.jaygeiger.com/index.php/2015/02/26/windows-guy-learns-linux-how-to-telnetssh/" />
		<id>http://www.jaygeiger.com/?p=1345</id>
		<updated>2015-03-02T16:18:59Z</updated>
		<published>2015-02-26T20:40:18Z</published>
		<category scheme="https://www.jaygeiger.com" term="Windows Guy Learns Linux" />		<summary type="html"><![CDATA[So far I have used the VirtualBox console to connect to my virtual machine running Linux (CentOS 7).  This is fine and good for one session, but if you want to run multiple terminals you have to install a Telnet/SSH client. I will be using a client called “Putty” which is free and very widely [&#8230;]]]></summary>
		<content type="html" xml:base="https://www.jaygeiger.com/index.php/2015/02/26/windows-guy-learns-linux-how-to-telnetssh/"><![CDATA[<p>So far I have used the VirtualBox console to connect to my virtual machine running Linux (CentOS 7).  This is fine and good for one session, but if you want to run multiple terminals you have to install a Telnet/SSH client.</p>
<p>I will be using a client called “<a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">Putty</a>” which is free and very widely used.  Download Putty.exe to your desktop.</p>
<p>Now we have Putty now but it’s useless until we make some changes on our local virtual machine.  (If you’ve installed Linux on a real physical machine or had Linux installed on a server VM then this next steps might not apply)</p>
<p>We need to know which IP address our Linux server is running on.  In your VM console run “#ifconfig”.  This is very similar to running ipconfig on Windows command line.  My results are below.</p>
<p><a href="http://www.jaygeiger.com/wp-content/uploads/2015/02/image10.png" target="_blank"><img style="background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;" title="Linux IFConfig" alt="Linux IFConfig" src="http://www.jaygeiger.com/wp-content/uploads/2015/02/image_thumb10.png" width="644" height="359" border="0" /></a></p>
<p>Note, the IP address of the virtual machine is 10.0.2.15.  Now that we know that we go to VirtualBox, select the VM in question and click on Settings and then select “Network”.</p>
<p>Expand the “Advanced” tab if it is not already showing and click on “Port Forwarding”.</p>
<p><a href="http://www.jaygeiger.com/wp-content/uploads/2015/02/SNAGHTMLb247dc.png" target="_blank"><img style="background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;" title="Virtual Box Linux SSH Port Setup" alt="Virtual Box Linux SSH Port Setup" src="http://www.jaygeiger.com/wp-content/uploads/2015/02/SNAGHTMLb247dc_thumb.png" width="644" height="406" border="0" /></a></p>
<p>Here, click the +Plus sign and add a new rule.  It can be called whatever, I called mine SSH.  Add the line as shown.  If you have a different VM IP than 10.0.2.15 then you will want to use that.</p>
<p><a href="http://www.jaygeiger.com/wp-content/uploads/2015/02/SNAGHTMLb36145.png" target="_blank"><img style="background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;" title="Virtual Box Linux SSH Port Forward Setup" alt="Virtual Box Linux SSH Port Forward Setup" src="http://www.jaygeiger.com/wp-content/uploads/2015/02/SNAGHTMLb36145_thumb.png" width="644" height="341" border="0" /></a></p>
<p>At this point you can run that Putty.exe that you downloaded earlier.  Enter 127.0.0.1 as your IP address and click “Open”.</p>
<p><a href="http://www.jaygeiger.com/wp-content/uploads/2015/02/SNAGHTMLbdf134.png" target="_blank"><img style="background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;" title="Putty SSH Linux VirtualBox" alt="Putty SSH Linux VirtualBox" src="http://www.jaygeiger.com/wp-content/uploads/2015/02/SNAGHTMLbdf134_thumb.png" width="503" height="483" border="0" /></a></p>
<p>At this point you should get a “login as:” prompt.  Enter your username and password and you should be connected.</p>
<p><a href="http://www.jaygeiger.com/wp-content/uploads/2015/02/SNAGHTMLbf6135.png" target="_blank"><img style="background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-width: 0px;" title="Putty CentOS 7 VirtualBox" alt="Putty CentOS 7 VirtualBox" src="http://www.jaygeiger.com/wp-content/uploads/2015/02/SNAGHTMLbf6135_thumb.png" width="644" height="404" border="0" /></a></p>
<p>Now you can open up multiple terminal windows and run multiple programs at once.</p>
<p>If your terminal keeps timing out too early for you, you can change it so that it “stays alive” for a much longer time by doing something like this.</p>
<p>Open the sshd_config file.</p>
<blockquote><p><span style="color: #2b2b2b; font-size: medium;"># nano /etc/ssh/sshd_config</span></p></blockquote>
<p>Add/change the following lines</p>
<pre>ClientAliveInterval 30
TCPKeepAlive yes 
ClientAliveCountMax 99999</pre>
<p>3/2/2015 Edit: Despite my changes, my terminal sessions were still getting disconnected.  For me the problem was with VirtualBox.  I had to download the beta version (4.3.23 r98674).  Then I could not launch any VMs because I would get a STATUS_OBJECT_NAME_NOT_FOUND error having to do with \Device\VBoxDrvStub.  I then uninstalled Windows Update KB3004394 and then reinstalled VirtualBox.  Now things seem better.  Hope that anybody having this problem finds this update helpful.</p>
]]></content>
			<link rel="replies" type="text/html" href="https://www.jaygeiger.com/index.php/2015/02/26/windows-guy-learns-linux-how-to-telnetssh/#comments" thr:count="3"/>
		<link rel="replies" type="application/atom+xml" href="https://www.jaygeiger.com/index.php/2015/02/26/windows-guy-learns-linux-how-to-telnetssh/feed/atom/" thr:count="3"/>
		<thr:total>3</thr:total>
	</entry>
		<entry>
		<author>
			<name>Jason Geiger</name>
						<uri>http://www.jaygeiger.com</uri>
					</author>
		<title type="html"><![CDATA[Windows guy learns linux centos network issues]]></title>
		<link rel="alternate" type="text/html" href="https://www.jaygeiger.com/index.php/2015/02/26/windows-guy-learns-linux-centos-network-issues/" />
		<id>http://www.jaygeiger.com/?p=1333</id>
		<updated>2015-02-26T18:50:03Z</updated>
		<published>2015-02-26T14:47:00Z</published>
		<category scheme="https://www.jaygeiger.com" term="Windows Guy Learns Linux" />		<summary type="html"><![CDATA[So it was mandated by the “Linux Dudes” at work that they don’t really want Ubuntu installed in production.&#160; RedHat is what they use.&#160; The free version of RedHat is called CentOS.&#160; CentOS is what I will be using going forward.&#160; I don’t know enough to debate the pros and cons of one version of [&#8230;]]]></summary>
		<content type="html" xml:base="https://www.jaygeiger.com/index.php/2015/02/26/windows-guy-learns-linux-centos-network-issues/"><![CDATA[<p>So it was mandated by the “Linux Dudes” at work that they don’t really want Ubuntu installed in production.&nbsp; RedHat is what they use.&nbsp; The free version of RedHat is called CentOS.&nbsp; CentOS is what I will be using going forward.&nbsp; I don’t know enough to debate the pros and cons of one version of Linux over another but I am sure going to miss the nice graphic interface of Ubuntu.&nbsp; For reflection, this is the CentOS interface.</p>
<p><a href="http://www.jaygeiger.com/wp-content/uploads/2015/02/image5.png"><img title="CentOS Terminal" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="CentOS Terminal" src="http://www.jaygeiger.com/wp-content/uploads/2015/02/image_thumb5.png" width="644" height="360"></a></p>
<p>The first thing to note for CentOS other than the lack of graphical interface is that you manually have to setup a network adapter in the setup or it the OS won’t have any way of accessing the network/internet.</p>
<p>It was a super easy fix once I knew what I had left out.&nbsp; Here’s some quick screenshots of how simple it is to install a network adapter in CentOS.</p>
<p><a href="http://www.jaygeiger.com/wp-content/uploads/2015/02/image6.png"><img title="CentOS 7 Language Selection" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="CentOS 7 Language Selection" src="http://www.jaygeiger.com/wp-content/uploads/2015/02/image_thumb6.png" width="244" height="184"></a></p>
<p><a href="http://www.jaygeiger.com/wp-content/uploads/2015/02/image7.png"><img title="CentOS 7 Add Network Adapter" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="CentOS 7 Add Network Adapter" src="http://www.jaygeiger.com/wp-content/uploads/2015/02/image_thumb7.png" width="244" height="184"></a></p>
<p><a href="http://www.jaygeiger.com/wp-content/uploads/2015/02/image8.png"><img title="CentOS 7 Enable Ethernet" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="CentOS 7 Enable Ethernet" src="http://www.jaygeiger.com/wp-content/uploads/2015/02/image_thumb8.png" width="244" height="184"></a></p>
<p><a href="http://www.jaygeiger.com/wp-content/uploads/2015/02/image9.png"><img title="CentOS 7 Network Connected" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="CentOS 7 Network Connected" src="http://www.jaygeiger.com/wp-content/uploads/2015/02/image_thumb9.png" width="244" height="78"></a></p>
]]></content>
			<link rel="replies" type="text/html" href="https://www.jaygeiger.com/index.php/2015/02/26/windows-guy-learns-linux-centos-network-issues/#comments" thr:count="3"/>
		<link rel="replies" type="application/atom+xml" href="https://www.jaygeiger.com/index.php/2015/02/26/windows-guy-learns-linux-centos-network-issues/feed/atom/" thr:count="3"/>
		<thr:total>3</thr:total>
	</entry>
		<entry>
		<author>
			<name>Jason Geiger</name>
						<uri>http://www.jaygeiger.com</uri>
					</author>
		<title type="html"><![CDATA[Windows guy learns linux hosts files]]></title>
		<link rel="alternate" type="text/html" href="https://www.jaygeiger.com/index.php/2015/02/25/windows-guy-learns-linux-hosts-files/" />
		<id>http://www.jaygeiger.com/?p=1321</id>
		<updated>2015-02-26T15:22:24Z</updated>
		<published>2015-02-25T15:22:00Z</published>
		<category scheme="https://www.jaygeiger.com" term="Windows Guy Learns Linux" />		<summary type="html"><![CDATA[The hosts file is like a local DNS that takes priority over the real DNS. The average person won’t understand what that means.&#160; In other terms, the hosts file is a local map of “domain name” to an “IP address”.&#160; For example, normally Google.com would resolve to something like 216.58.216.238.&#160; If you go to http://216.58.216.238 [&#8230;]]]></summary>
		<content type="html" xml:base="https://www.jaygeiger.com/index.php/2015/02/25/windows-guy-learns-linux-hosts-files/"><![CDATA[<p>The hosts file is like a local DNS that takes priority over the real DNS.</p>
<p>The average person won’t understand what that means.&nbsp; In other terms, the hosts file is a local map of “domain name” to an “IP address”.&nbsp; For example, normally Google.com would resolve to something like 216.58.216.238.&nbsp; If you go to <a href="http://216.58.216.238">http://216.58.216.238</a> you would see Google.&nbsp; <a href="http://www.Google.com">http://www.Google.com</a> is the same as <a href="http://216.58.216.238">http://216.58.216.238</a></p>
<p>Now if you went into your host file and put an entry like…<br />&nbsp;&nbsp;&nbsp; Google.com&nbsp;&nbsp;&nbsp; 204.79.197.200<br />Then Google would point to Bing instead.</p>
<p>If you set Google.com to point to 127.0.0.1 then in that case it would point to your local Apache server.</p>
<p>To create a map, we enter the URL and IP address in the hosts file that lives in the /etc directory.&nbsp; (ie. /etc/hosts)</p>
<p>To modify the file we will use a text editor called nano.&nbsp; It is much easier than some of the other options.&nbsp;&nbsp; The hosts file is protected so we need to run as SUDO.&nbsp; So get to a terminal (Ctrl+Alt+T in Ubuntu) and run the following command.</p>
<blockquote><p>#sudo nano /etc/hosts</p>
</blockquote>
<p>You then enter your root password and can then add the line.<br />&nbsp;&nbsp;&nbsp; 127.0.0.1 [TAB] Google.com</p>
<p>[TAB] is the tab key, not actually the word “[TAB]”</p>
<p><a href="http://www.jaygeiger.com/wp-content/uploads/2015/02/image3.png"><img title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="image" src="http://www.jaygeiger.com/wp-content/uploads/2015/02/image_thumb3.png" width="644" height="412"></a></p>
<p>Hit Ctrl+O to save the file and then Ctrl+X to exit.</p>
<p>Now if you go to “<a href="http://google.com">http://google.com</a>” (not <a href="http://www.google.com">http://www.google.com</a> because we did not create an entry for that) you should see something like this…</p>
<p><a href="http://www.jaygeiger.com/wp-content/uploads/2015/02/image4.png"><img title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="image" src="http://www.jaygeiger.com/wp-content/uploads/2015/02/image_thumb4.png" width="644" height="436"></a></p>
<p>Boom, all done.&nbsp; Now you’re a hosts file expert.&nbsp; Make sure to delete that line if you want to use Google again normally.</p>
]]></content>
			<link rel="replies" type="text/html" href="https://www.jaygeiger.com/index.php/2015/02/25/windows-guy-learns-linux-hosts-files/#comments" thr:count="1"/>
		<link rel="replies" type="application/atom+xml" href="https://www.jaygeiger.com/index.php/2015/02/25/windows-guy-learns-linux-hosts-files/feed/atom/" thr:count="1"/>
		<thr:total>1</thr:total>
	</entry>
		<entry>
		<author>
			<name>Jason Geiger</name>
						<uri>http://www.jaygeiger.com</uri>
					</author>
		<title type="html"><![CDATA[WINDOWS GUY take on LINUX webserver and mail server]]></title>
		<link rel="alternate" type="text/html" href="https://www.jaygeiger.com/index.php/2015/02/24/windows-guy-take-on-linux-webserver-and-mail-server/" />
		<id>http://www.jaygeiger.com/?p=1315</id>
		<updated>2015-02-26T14:05:42Z</updated>
		<published>2015-02-24T17:55:00Z</published>
		<category scheme="https://www.jaygeiger.com" term="Windows Guy Learns Linux" />		<summary type="html"><![CDATA[Note: This article is using Ubuntu 14.04 but most will apply to other Linux versions. So, we have learned how to install packages on Debian Linux and now want to configure mail and websites for this server. Launch Terminal (Press Ctrl-Alt-T) #sudo apt-get update(This updates our local package list) #sudo apt-get install lamp-server^(This installs Apache, [&#8230;]]]></summary>
		<content type="html" xml:base="https://www.jaygeiger.com/index.php/2015/02/24/windows-guy-take-on-linux-webserver-and-mail-server/"><![CDATA[<p>Note: This article is using Ubuntu 14.04 but most will apply to other Linux versions.</p>
<p>So, we have learned <a href="http://www.jaygeiger.com/index.php/2015/02/23/windows-guy-take-on-linux-root-user-and-packages/">how to install packages on Debian Linux</a> and now want to configure mail and websites for this server.</p>
<p>Launch Terminal (Press Ctrl-Alt-T)</p>
<p>#sudo apt-get update<br />(This updates our local package list)</p>
<p>#sudo apt-get install lamp-server^<br />(This installs Apache, MySQL and PHP)<br />(Mind the caret (^) at the end.)</p>
<p>#sudo apt-get install mailutils<br />(This is for mailx)</p>
<p>#sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/default<br />(This copies the default Apache config file to a new file that will be used by Apache)</p>
<p>By running those 4 commands you have Apache, MySQL, PHP and Mailx installed.&nbsp; To test apache you can open up your web browser and go to <a href="http://localhost">http://localhost</a> to see this…<br /><a href="http://www.jaygeiger.com/wp-content/uploads/2015/02/image1.png"><img title="Ubuntu Apache Test" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="Ubuntu Apache Test" src="http://www.jaygeiger.com/wp-content/uploads/2015/02/image_thumb1.png" width="644" height="380"></a></p>
<p>There are more things that go into setting up the mail server if you want to have it reside on the internet.&nbsp; However if you are on a small work network, you can start sending test email immediately by running.</p>
<p>#mail –s “Some Subject” SomeWorkingEmail@Example.com</p>
<p>Some message…<br />Ctrl+D</p>
<p>Like this…<br /><a href="http://www.jaygeiger.com/wp-content/uploads/2015/02/image2.png"><img title="Test Linux mailx" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="Test Linux mailx" src="http://www.jaygeiger.com/wp-content/uploads/2015/02/image_thumb2.png" width="644" height="215"></a></p>
<p>If you try this above example on a home network, or if you aren’t setup to relay mail on your work network, this test won’t work.&nbsp; There’s a lot more to setting up email but this is the most basic of installs.</p>
]]></content>
			<link rel="replies" type="text/html" href="https://www.jaygeiger.com/index.php/2015/02/24/windows-guy-take-on-linux-webserver-and-mail-server/#comments" thr:count="1"/>
		<link rel="replies" type="application/atom+xml" href="https://www.jaygeiger.com/index.php/2015/02/24/windows-guy-take-on-linux-webserver-and-mail-server/feed/atom/" thr:count="1"/>
		<thr:total>1</thr:total>
	</entry>
		<entry>
		<author>
			<name>Jason Geiger</name>
						<uri>http://www.jaygeiger.com</uri>
					</author>
		<title type="html"><![CDATA[windows guy take on linux root user and packages]]></title>
		<link rel="alternate" type="text/html" href="https://www.jaygeiger.com/index.php/2015/02/23/windows-guy-take-on-linux-root-user-and-packages/" />
		<id>http://www.jaygeiger.com/?p=1309</id>
		<updated>2015-02-25T17:53:35Z</updated>
		<published>2015-02-23T15:51:00Z</published>
		<category scheme="https://www.jaygeiger.com" term="Windows Guy Learns Linux" />		<summary type="html"><![CDATA[Note: This post mentions Ubuntu root access but most of it is about Linux in general. Linux and Windows differ when it comes to login accounts that have full access to the system.&#160; In Windows,&#160; when you add a user to the local “Administrators” group, that user has complete access to all files and settings.&#160; [&#8230;]]]></summary>
		<content type="html" xml:base="https://www.jaygeiger.com/index.php/2015/02/23/windows-guy-take-on-linux-root-user-and-packages/"><![CDATA[<p>Note: This post mentions Ubuntu root access but most of it is about Linux in general.</p>
<p>Linux and Windows differ when it comes to login accounts that have full access to the system.&nbsp; In Windows,&nbsp; when you add a user to the local “Administrators” group, that user has complete access to all files and settings.&nbsp; For good or bad.&nbsp; Linux doesn’t really do it that way.</p>
<p>In Linux there is a “Root” user.&nbsp; This root user has full access to everything.&nbsp; However, every Linux admin will yell that you shouldn’t log into a computer as “Root”.&nbsp;&nbsp; Instead you login as your self, then run a program called “sudo”.&nbsp; Sudo runs the next command as root.&nbsp;&nbsp; If I run..<br />#sudo ls<br />I will first get a prompt for “Root” password.&nbsp; I type that, hit enter and then ls runs.</p>
<p><a href="http://www.jaygeiger.com/wp-content/uploads/2015/02/image.png"><img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://www.jaygeiger.com/wp-content/uploads/2015/02/image_thumb.png" width="522" height="106"></a></p>
<blockquote><p>Tangent: In Linux you run “Terminal” in Windows you run “Command” or “Command Line”.&nbsp; Terminal command start with a pound sign, ie “#”.&nbsp; So if you see… #sudo blahblahblah it means run “sudo blahblahblah” from the terminal/command line.</p>
</blockquote>
<p>The next thing to note is that there are “packages” for a type of Linux called “Debian”.&nbsp; Everything that gets installed in a “Debian Linux” is a package.&nbsp; Ubuntu is built on top of Debian so software in Ubuntu is installed from packages.</p>
<p>Q: How do you install packages on Debian Linux?<br />A: You use APT (Advanced Package Tool)</p>
<p>APT, in simplest terms, lets you install, remove and update packages.</p>
<p>ex.<br />#sudo apt-get update</p>
<p>The above command runs “apt-get update” with “root” rights. <br />“apt-get update” downloads a list of all packages and updates the local lists.&nbsp; So when you want to know what new packages are available or if there are updates to your existing packages, just run sudo apt-get update.</p>
<p>More examples of how to install packages to follow.</p>
]]></content>
			<link rel="replies" type="text/html" href="https://www.jaygeiger.com/index.php/2015/02/23/windows-guy-take-on-linux-root-user-and-packages/#comments" thr:count="1"/>
		<link rel="replies" type="application/atom+xml" href="https://www.jaygeiger.com/index.php/2015/02/23/windows-guy-take-on-linux-root-user-and-packages/feed/atom/" thr:count="1"/>
		<thr:total>1</thr:total>
	</entry>
		<entry>
		<author>
			<name>Jason Geiger</name>
						<uri>http://www.jaygeiger.com</uri>
					</author>
		<title type="html"><![CDATA[windows guy initial take on ubuntu]]></title>
		<link rel="alternate" type="text/html" href="https://www.jaygeiger.com/index.php/2015/02/23/windows-guy-initial-take-on-ubuntu/" />
		<id>http://www.jaygeiger.com/?p=1305</id>
		<updated>2015-02-25T15:45:53Z</updated>
		<published>2015-02-23T14:01:00Z</published>
		<category scheme="https://www.jaygeiger.com" term="Windows Guy Learns Linux" />		<summary type="html"><![CDATA[Ubuntu was super easy to install.&#160; It was all graphical.&#160; It had very little options and networking worked right out of the box.&#160; I was impressed that Firefox even worked because I installed Ubuntu in VirtualBox at work which is behind a proxy server.&#160; The only problem was this… No, I did not shrink the [&#8230;]]]></summary>
		<content type="html" xml:base="https://www.jaygeiger.com/index.php/2015/02/23/windows-guy-initial-take-on-ubuntu/"><![CDATA[<p>Ubuntu was super easy to install.&nbsp; It was all graphical.&nbsp; It had very little options and networking worked right out of the box.&nbsp; I was impressed that Firefox even worked because I installed Ubuntu in VirtualBox at work which is behind a proxy server.&nbsp; The only problem was this…</p>
<p><a href="http://www.jaygeiger.com/wp-content/uploads/2015/02/SNAGHTML8cf022d0.png"><img title="SNAGHTML8cf022d0" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="SNAGHTML8cf022d0" src="http://www.jaygeiger.com/wp-content/uploads/2015/02/SNAGHTML8cf022d0_thumb.png" width="820" height="684"></a></p>
<p>No, I did not shrink the image.&nbsp; That is the only screen resolution available to me.&nbsp; I had to do some searching to find out how to change that.&nbsp; Here are the 2 options of changing adding more resolutions to Ubuntu on VirtualBox.&nbsp; </p>
<p>Note: To “Search” you simply press the “Windows” key on your keyboard then start typing.</p>
<h2>Add More Resolutions to Ubuntu on VirtualBox</h2>
<blockquote><p>Search and run “xdiagnose”<br />Enable <br />- Extra Graphics Debug Messages<br />- Display boot messages<br />- Enable automatic crash bug reporting<br />- Restart</p>
<p>or..<br />Search and run Software &amp; Updates<br />Click &#8220;Additional Drivers&#8221; tab<br />Select &#8220;Using x86 virtualization solution&#8230;&#8221;<br />Apply Changes</p>
</blockquote>
<p>I did “both” of the above options.&nbsp; According the my searches either would have worked.&nbsp; Regardless I now have more resolutions to play with.</p>
<p>It is worth noting that Linux guys and Windows guys have a point of contention with issues like this.&nbsp; Windows guys want this “Basic” stuff just to work right out of the box.&nbsp; Linux guys don’t seem to mind searching for the answers for a few minutes.&nbsp; It’s interesting to note, that while this is a minor issue, it is very disheartening to Windows people.&nbsp; This is probably because there’s so much “good stuff” to learn in Linux that they give up when walls are thrown up at them even before they get into the real guts.</p>
]]></content>
			<link rel="replies" type="text/html" href="https://www.jaygeiger.com/index.php/2015/02/23/windows-guy-initial-take-on-ubuntu/#comments" thr:count="1"/>
		<link rel="replies" type="application/atom+xml" href="https://www.jaygeiger.com/index.php/2015/02/23/windows-guy-initial-take-on-ubuntu/feed/atom/" thr:count="1"/>
		<thr:total>1</thr:total>
	</entry>
	</feed>
