Programming and Tech Tips For All To Use

Programming and Tech Tips For All To Use

Programming and technology points have been rather prevalent and important to explore over the years. There is a clear need to take a look at such programming plans can be used in any spot though. There are a few sensible tips that may be used today in order to help people understand what is required of them when getting their setups ready for whatever it is they want to create and establish. These are all sensible tips that can work wonders for anyone these days. 


Code analysis programs are always helpful.
 
Code analysis programs are being used these days to help with testing out the codes that are being used in computers and if they are actually active and functional as desired. Programs like Klocwork, Polyspace, Pretty Diff and Black Duck Suite have been big hits with many who want to find ways to get their programming efforts to be as easy to handle as possible. All programmers need to take a look at what code analysis programs are available for use in their environments. Of course, these will vary based on what is available for use.

Always check the code before troubleshooting anything.

The most important tip to use is to check the code before any troubleshooting activities can take place. This is to ensure that there are not going to be any problems coming out of a program that could only be made worse if some professional troubleshooting functions are managed at any time.

Work with the Final variable.

The Final keyword needs to be used when drafting variables the right way. This is to see that values of items cannot be set more than once after they start running. This can be used to keep the items in the website as consistent and accurate as possible so nothing wrong can happen with them being used at a given time.

Use only one side effect at a time.

It is typically best to stick with one side effect at a given time. Side effects refer to what happens in addition to getting certain values ready in the programming process. It is best to keep the programming process as simple as possible in this case.

Create more accurate and direct names.

Finally, all processes must be used with their own unique and specific names. This is to ensure that the process of generating data will not be all that hard to handle. If the right plans are created in this case then the overall process of coding items will be a little easier for all to work with.

Watch for cut and paste processes.

While cut and paste processes may be useful and can help anyone to save time in the process of getting items ready, you need to be rather cautious. Use cut and paste if the program is a little easier to work with and is not going to be far too complicated. If the program is going to be easier to read though cut and paste processes then it should be just fine as it is. The key is to ensure that the programs being used are as easy to handle as demanded and will not be all that tough to use.

Programming and tech processes are all fascinating things for people to take a careful look at when it comes to finding ways to get a program to really stand out and to work as well as it needs to. The right plans must be established as a means of getting anything to work properly and with more than enough control as needed. After all, a good code setup needs to be designed to keep anything running with ease and clarity in mind.


Author Bio

David Miller is an educational researcher who has several years of experience in the field of teaching, online testing and training. He is associated with prestigious universities and many leading educational research organizations. Currently, he is pursuing research in eLearning software and is also a contributing author with ProProfs.

How to Turn a Static Website Into a WordPress Theme?


Still a number of business owners are running a static HTML website. But when it comes to making changes in the static site, it becomes mandatory for the website owner to have HTML programming knowledge. So, if you lack coding skills you must migrate your static site to a dynamic platform. WordPress is a highly popular dynamic platform and its popularity is not going to abate too soon. You don't have to throw all your HTML and CSS files away when moving to WP platform. Rather you can convert your HTML files to WordPress.

When converting HTML files to Wordpress theme, generally WP default theme named TwentyThirteen is being used. To carry out the conversion you'll need a copy of HTML as well as CSS files for your current site, which will be later converted to WP theme format. There are various choices you get in terms of the program, which is used to make edits in your file. Well, you can choose text-editors such as Notepad and Notepad++ or rather use Dreamweaver instead. For this purpose, you can take up HTML to Wordpress Service.

Here's a step-by-step procedure following which you'll be able to Convert HTML to Wordpress Theme.

Step 1: Creation of Files and Folders

Begin with creating a new folder on your system’s desktop. Next, give a name to the folder. Choosing an easy to remember name won't let you forget where the folder is saved, such as the name of your WPTheme. Once you've named your folder create two files namely style.css and index.php, and add both these files to the newly built folder.

In order to make your WordPress platform recognize the files you've just created, make sure to create a comment block for the style.css file including the information like theme name, URI, a brief description, version, author and author URI.

Later, verify whether the TwentyThirteen theme is set to be your active WP theme or not. Subsequently, in the WP admin panel go to Appearance and then the Editor. Open your style.css file and copy the content from it, and paste it into the newly built style.css file.

Step 2: Create new PHP files

To Convert HTML to Wordpress Theme in the second step you'll need to open WP theme editor, wherein your existing theme will be segregated into different parts – the header, footer, sidebar and main index. You can make use of the same components for building some other WP themed site. For doing so, you'll need to divide the components into different PHP files. Next, all you need to do is to copy of the code of each HTML section and place them in their respective PHP files.

Get logged in your WP admin panel. Open the theme editor followed by the file in which you want to copy the code. For instance, open header.php file of your static website; copy the code and then paste it into the newly crafted header.php file. Follow the same procedure for rest of the files.

Step 3: Use Newly Created PHP files to fetch data

To bring in data from newly crafted PHP files, open the index.php file in your WP theme folder saved on your desktop. Add PHP code to your file top and just after the tag, as show below:



Now you have constructed your own WP theme. But wait! Your theme is developed, but you may find it to be blank. You'll have to add content to it.

Step 4: Add your content

Now you may have to add content in your theme. How will you display the content in your tailor-made WP theme? For this purpose, you require WordPress’ loop function – The Loop.

Installing the loop function, requires copying the following code into your index.php template.



Step 5: Initiate your Theme

To set-up your theme, visit a FTP client and sign in to your website directory.

Go to wp-content>>themes folder.

Upload your new theme folder to this folder. Open your WordPress admin panel, go to Appearance>>themes tab. Your theme will now be visible just click on Activate.

That's it, you are done!

About Author:

Sarah Parker is a developer comes technical writer at Designs2HTML Ltd. She loves to share relevant and useful tutorials on WordPress markup conversions on Twitter to treat technical professionals with required stuffs.

How To Make a Line Break/New Line in Java

How To Make a Line Break/New Line in Java
Line Break or New Line : I hope you understand what it is, in HTML you use <br> tag to make a new line so in Java if you want to make a new line it's not that hard but it has several methods depends on the platform.

Coming to the point, most of the java beginners think this is the one and only way to make a new line : System.out.println("\n"); but It's not true.. let me tell you something you might think that whatever you program using java will work on other java supported platforms, YES! they will work on other platforms but there are few things that has to be changed in order to get the functions work.. for example this tutorial; this line of code : System.out.println("\n"); would make a new line only on Windows. As I said before there are few things that are different from platform to platforms.

If you want to make a new line on Mac you must use this : System.out.println("\r"); and for Linux you have to use this : System.out.println("\r\n");. So I came up with something that works on all the platforms, It's pretty simple and works perfectly.

First you need to make a public string and set the value to make a new line(You can also just make normal string and set the value)
Add this line of code before your main event
public static String breakline = System.getProperty("line.separator");

Whenever you need to make a new line just use this line of code 
You can add this wherever you want to
System.out.println(breakline);

Please comment if you have any doubts..!

How To Get Response Headers From a HTTP Request in Java

With this Java program you can get the the response headers from a HTTP request. You may have seen HTTP headers in Google Chrome/Mozilla Firefox network feature in inspect element (it just automatically captures HTTP).

All you have to do is run the program from command-line or on eclipse (or any IDE you want), after executing the program you will be asked to enter an URL to get the response headers from HTTP request (Note : make sure you don't enter URL's without 'http://'). Within seconds you will get the HTTP request response headers one after the next line.

This program has 7 namespaces, of course you need them in order to compile/execute the program
import java.util.Scanner;
import java.net.URL;
import java.net.URLConnection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;

and we are using a public string that helps to make a line break
public static String BR = System.getProperty("line.separator");

Okay let me put all the parts together, it uses Scanner(that to get the users input), Map, List, Set, Iterator, a while loop, String Builder and finally it prints.

Program Source Code
import java.util.Scanner;
import java.net.URL;
import java.net.URLConnection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;

/* 
Author : Mohamed Shimran
Description : Getting Response Headers From a HTTP Request
Blog : http://ultimateprogrammingtutorials.info
Facebook : http://fb.me/54j33dh4
Twitter : http://twitter.com/54j33dh4
 */
 
public class httpRequest {
public static String BR = System.getProperty("line.separator");
public static void main(String[] args) throws Exception {

  String Link;
     Scanner in = new Scanner(System. in );
     System.out.println("Enter Link To Get Response Headers From HTTP Request :");
     Link = in .nextLine();
   
System.out.println(BR);

 URL url = new URL(Link);
 URLConnection conn = url.openConnection();
 
 Map> HF = conn.getHeaderFields();
 Set HFS = HF.keySet();
 Iterator HFI = HFS.iterator();
 
 while (HFI.hasNext()) {

      String HFK = HFI.next();
      List HFV = HF.get(HFK);

      StringBuilder strbld = new StringBuilder();
      for (String value : HFV) {
   strbld.append(value);
   strbld.append("");
   }
      System.out.println(HFK + "=" + strbld.toString());
   }
   }
}

Process
javac httpRequest.java

java httpRequest
Enter Link To Get Response Headers From HTTP Request :
http://www.ultimateprogrammingtutorials.info

null=HTTP/1.1 200 OK
ETag="5064ad83-05c5-4cef-bbba-a3030b0727da"
Transfer-Encoding=chunked
Date=Wed, 15 Jan 2014 14:12:06 GMT
X-XSS-Protection=1; mode=block
Expires=Wed, 15 Jan 2014 14:12:06 GMT
Alternate-Protocol=80:quic,80:quic
Last-Modified=Wed, 15 Jan 2014 14:10:59 GMT
Content-Type=text/html; charset=UTF-8
Server=GSE
X-Content-Type-Options=nosniff
Cache-Control=private, max-age=0



How To Get Response Headers From a HTTP Request in Java

Final Words
What can I say? It's just another simple java program by me(of course got help from many resources). I hope you really like it or found it useful, share it if it deserves and PEACE!.

Four Pointers For Finding Computer Science & IT Jobs

job search strategy, career, jobs, it, job hunting, job seeking, job advice, computer science,

Are you on the hunt for computer-related positions? Here are four pointers that could help you land that dream position.

1) Ask Around.
Whether you’ve been working at the same company for years, or have just graduated from college, chances are you have made some friends and acquaintances wherever you have been. These people are valuable resources, and they could be the portals to your first – or next – career path.

Put the word out there as much as possible that you are seeking employment in your field. You can post a message on Twitter, Facebook or professional sites like LinkedIn stating what you are looking for and your qualifications.

Talk to former professors and academic advisors, former colleagues, neighbors and even family members, because you never know who has a connection in the industry who is looking for just the skills you have to offer.

2) Get Yourself Prepped For Interviews.
Those who believe in positive energy and manifesting your dreams say that it is best to make yourself into what you want to be before you even have the opportunity in front of you.

In the professional realm this means: preparing for the interview, updating your resume so it is presentable and current, and getting a few professional pieces for your wardrobe that would correspond well with the job you desire. Having a couple of pairs of dress pants, button-down shirts and/or tasteful dresses can help you look the part when you go for future interviews.

3) Exhaust All Avenues in Your Search.
While you can find jobs in IT via employment websites and local newspapers, there are also ways to have access to jobs that might fly under the radar. Working with an IT staffing agency is one method that can be beneficial. They typically have a lot of different positions open at any given time, because they have relationships with many companies on a local (and sometimes even national or international) level. This means that you can be specific about the field and kinds of roles you are looking to take on.

Once you make a connection with a representative, he or she can be on the lookout for appointments that might fit your skills and experience level. It is almost like having a personal assistant in your professional corner.

4) Stay Flexible.
There are a lot of computer science jobs out there in the economy right now. If you get offered an opportunity – or discover one – that is not exactly what you are looking for, consider checking into it anyway. Sometimes even lower-level positions can be a foot in the door at a great company. Also, many businesses promote from within, so if you prove you are more than matched for your current post, you could get moved up quickly.

Every job has the potential to increase your experience level and expand your skillset, as well as your circle of contacts. You never know where the job of your dreams will come from, so it’s best to keep an open mind.

Carlos works in IT for a large corporation, but before he was hired at his current job, he sought the services of a staffing agency to help him find work and gain experience. He thinks these firms, as well as the other tips on this list, can help others in his field find the work they are looking for.

The Burning Question: How Can I become an iPhone Developer?

The Burning Question: How Can I become an iPhone Developer?
If you are in anyways related to the programming or development filed and are planning to move to towards iPhone development, and then there are some other considerations also other than having grip over basic programming skills. As you know that the iPhone applications and software market is booming significantly, and new updates and additional plug-ins are launched almost every day. If you can quickly compare the iPhone application of today with that installed in iPhone 2 or 3, then you will surely find a significant difference in many respects.

It is because of the fact that not only the exterior and interior hardware of the device is changing, it’s processing and adaptability is also changing significantly and speedily. For this reason, programmers with obsolete knowledge of applications and games are no more welcomed in the field of developing, and they are required to upgrade their programming toolbox and knowledge. Some of the basic things, from the many, that you will require to get command over for becoming an iPhone app developer are as under:

Get a Mac Device
Mac Hoo

Mac is a type of operating system that all Apple devices use, including the iPhone. It is like a backbone of Apple, and therefore, you need to have command over this operating system, and not just the one you are using currently. Windows is a common operating system and it is able to perform almost any job using this operating platform, but iPhone development. All your programming and other development skills will be tested on the Mac operating system and you will have to be aligned to all upgrades in the Mac OS.

Command over SDK
Iphone SDK Hoo
Do you think that object oriented programming is enough to be an iPhone app developer? Think again then. There is a command toolkit for every device that carries a set of programming protocols. This can be considered as the special language for that particular device, which carried some codes and variables that apply to the particular device only. For this reason, other than your command over C language, Java or any other programming language, you will have to learn the software Development Kit (SDK). For testing and implementing the language protocols, you will need the Mac system, and this gain defines the importance of having a Mac device.

App Submission
Apple Store Picc
You app will not be registered until you sent a file of it to the Apple app store for submission. The company wants to ensure that your application does not have any offensive or inappropriate content or images that can dilute the repute of the company. There are a number of applications that have been released without permission of Apple, but such applications can be banned at any time, and the developer or the sponsoring company can also be charged for it. For this reason, it is important that you follow the parameters set by the brand you want to target and generate your revenue from.

How To Submit Software, Mobile App and Game On Softpedia

Softpedia Blue Background
Softpedia is a site where you can find computer programs and technology based articles. It's owned by SoftNews NET SRL, a Romanian company. It was launched in 2001. My programs have been reviewed by the Softpedia editors thrice. I submit my programs whenever they are ready to be released.

I have been asked a few times about this(how to submit..). It's pretty easy to submit your programs to Softpedia all you have to do is fill the form fields and submit.

They have different pages to submit for different platforms such as Windows, Linux, Mac etc.

Submit Windows Softpedia

Submit Games and Tools

Submit Mac OS Software

Submit Linux Software

Submit Mobile App

NOTE : you can submit your java programs in any section except Mobile.

Make sure you go to the right page, if you have a PAD file for your software already just fill the PAD form fields and submit if not fill the regular submission forms and submit. Don't forget to give your regular email address they'll send you an email when your program has been published.

C# - Operators and Expressions

Operators are used to process the data. Expressions are created by combining the operators with variables and constants.

For example:

int number1, number2, sum;
number1 = 10;
number2 = 20;
sum = number1 + number2;

 In the last statement, two variables using the + symbol. The + is a operator also there are many operators in c#.

Data Types and Variables

 

A data type specifies whether or not a variable can store a number, a single character or text. Variables are names given to the memory location for storing data. Data Types are used to specify the types of values related to variables.

Thinkspace Seeks To Launch Software Development To High Schools Worldwide

Thinkspace is an organization created by sixteen year old James Anderson, Thinkspace seeks to "inspire the next generation of app developers" through coding zones worldwide. Thinkspace was formally launched by James Anderson this month(september) with the campuses in Plymouth and Northern Ireland. James Anderson came up with the concept for Thinkspace once he became frustrated with UK's educational system's approach to computer information technology related topics. Instead of plan to change the curriculum(course of study), Anderson wanted to figure around it by making Thinkspaces among schools.

How To Make A Lyrics Fetcher In VB.NET

Description of the program : You can get the lyrics of songs with the artist name & the song name from this program.

 As usual just create a new fresh project and add the following tools to your form

  • 2 Buttons
  • 2 TextBoxes
  • 1 RichTextBox
  • 1 SaveFileDialog
Usage of the tools that you have added(Don't forget to change the buttons text : 
  1. Button1 - Fetch
  2. Button2 - Save
  3. TextBox1 - Artist Name
  4. TextBox2 - Song Name
  5. RichTextBox1 - Lyrics
You have to add System.Web reference, select add reference from project menu then search for it and click ok :

Adding reference to VB.NET

How To Force/Prompt Your C# & VB.NET Program To Run As Administrator

If your code will target or access secured files or libraries, then your program needs Administrator Privilege. It's easy to run your program as Administrator, simply you can right click your program and select run as administrator, and in C# & VB.NET theres a XML Manifest that tells the .NET Framework to prompt the user to run the program as Administrator, we can easily configure your program to prompt the user to run the program as administrator.

How to configure your program to prompt the user to run your program as Administrator?

1 : Go to Project(in your visual studio menustrip) and select Add New Item(or simply CTRL+SHIFT+A shortcut to open Add New Item)

outling





















2 : Choose Application Manifest File and click add(actually your debug folder has a manifest file but we are adding a new one)
man

























3 : You will find a new file in your Solution Explorer called app.manifest and you will fall into that file automatically lol, inside that file you would have some text(of course XML)

  
  
    
      
        
        
      
    
  

  
    
      

      
      

      
      

      
      

    
  

  
  


4 : Inside that file find  <requestedExecutionLevel level="asInvoker" uiAccess="false" />

5 : Replace asInvoker with requireAdministrator

6 : That's all

Now whenever you run your program, your program will prompt to run the program as Administrator.

Infographic : Brief History About Programming

Here is a Brief History About Programming in a form an infographic which i found while surfing over the web pages :)

brief  Programming



Click here to view the image

How To Create A Updater In VB.NET


Needed:
1x a ProgressBar
2x a Label

start a new form:

How To Make A Stopwatch In VB.NET

Today i am going to teach you how to make a stopwatch in visual basic 2008/ visual basic 2010 the features are start, stop, mark and reset this is not a advanced stopwatch, but this has the basic features of a stopwatch probably this is for beginners so lets get started with opening your visual basic 2008 / visual basic 2010

1 . Create a new project
2 . Add a label, 4 buttons, 1 listbox and a timer
3 . Go to timer properties and change timer interval to 1 
4 . I recommend you to arrange your tools like this

5 . Time for coding double click form and add all these codes
Public Class Form1

    'Author : Mohamed Shimran
    'Blog : http://www.ultimateprogrammingtutorials.blogspot.com

    Dim StopWatch As New Diagnostics.Stopwatch
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Dim elapsed As TimeSpan = Me.StopWatch.Elapsed
        Label1.Text = String.Format("{0:00}:{1:00}:{2:00}:{3:00}", Math.Floor(elapsed.TotalHours), elapsed.Minutes, elapsed.Seconds, elapsed.Milliseconds)
    End Sub
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Timer1.Start()
        Me.StopWatch.Start()
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Timer1.Stop()
        Me.StopWatch.Stop()
    End Sub

    Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
        Me.StopWatch.Reset()
        Label1.Text = "00:00:00:000"
        ListBox1.Items.Clear()
    End Sub

    Private Sub Button3_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
      ListBox1.Items.Add(Label1.Text)
    End Sub
End Class  
6 . Now debug the program and the program would work like this


Hope you enjoyed the tutorial.