Blog

Recover Deleted GIT Commits

Have you ever force-deleted a branch from GIT by accident? Of course, it confirms with you first, but chances are you were deleting other branches, too, and this one got in the way. Luckily for you, it’s possible to retrieve these missing commits.

If you’re using GIT Extensions, you can use the GUI to accomplish the work. To do so, click on Repository > Git maintenance > Recover Lost Objects…

Recover Deleted GIT Commits

Recover lost objects is a feature of Git that will locate dangling commits – commits without a reflog. You can also accomplish the below by running git fsck utility with the –full option.

Ordinarily GIT will remove these lost objects every two weeks through garbage collection. This means you have a limited window of time to recover anything you’ve lost. A helpful dialog will show while Git combs your local repository for dangling commits:

Recover Deleted GIT Commits

Once completed, you’ll see about two weeks-worth of sortable dangling commits:

Recover Deleted GIT Commits

You can check any number of commits that you want to recover. I’ve selected just one from the list. When you’re sure you’ve found the one you want to recover, click on [Recover selected objects].

You’re not done yet, though! You still have to find a place to put the now recovered commit. Close the dialog to see the commit you’ve recovered. Unfortunately it is based on the original date, so you may have to scroll back pretty far:

Recover Deleted GIT Commits

Once you’ve located your missing commit, all you have to do is create a branch at that commit, and you’ve recovered your data!

Recover Deleted GIT Commits

Critical Linux Server Security Issue Discovered

A critical security vulnerability has just recently been discovered in the Linux operating system. This may affect any website that is being run on a Linux server which hasn’t been patched. You can read more about it below:

http://www.wordfence.com/blog/2014/09/major-bash-vulnerability-disclosed-may-affect-a-large-number-of-websites-and-web-apps/

Within 24 hours of the vulnerability becoming public DLS Software Studios took immediate action to either patch our client’s servers or to notify them and make recommendations about what needed to be done.

Is your internal software development team or outside agency keeping up with critical security risks and taking the necessary steps to mitigate them before your entire business is at risk?

SSL now a ranking criteria on Google

Google has recently announced that they have started and will continue to rank sites that use SSL throughout the site higher than sites that don’t.  Aside from the obvious security reasons for implementing SSL on pages with protected data, this raises a strong argument for implementing SSL or increasing your use of SSL if you don’t already use it on all pages of your site.

We are recommending that all of our clients move forward with a full implementation of SSL.  If you are unsure what SSL is or how you would go about implementing it on your site, feel free to reach out to us at 866-313-0106 to discuss your options.

You can read more about this move here: http://arstechnica.com/security/2014/08/in-major-shift-google-boosts-search-rankings-of-https-protected-sites/

 

Easy Insert with ASP.NET 2.0

Using ASP.NET 2.0 makes inserting information from web user interfaces to a database a snap. Based on the 3-tier software architecture paradigm, an explanation and example of how to accomplish this task is below. The example will start with a simple data model you can use to insert the sample data. Next, there will be a proposed interface design to support the database. An example of how the ASP.NET code behind the interface can be set up to handle the data pass and lastly, a single line of code written to execute the passing of data from the ASP layer to the database.

First, construct a simple database using some ADO compatible database software such as MS SQL or Access. For the purpose of our example we will construct a model based on the following design.

FIELD TYPE
Name Text
Age Integer
Gender Integer

Next, create an interface to support the data model. This example uses Visual Basic as the programming code by which the data insert operation is executed. Similar results may be accomplished using another language such as C#. A text box control is suggested for the name field. A populated drop-down list is suggested for age, and a radio button list is suggested for the gender field. Also, a button should be added for the end-user to click as a trigger to perform the actual insert.

Don’t forget to add a SQL DataSource Control; configure it to include insert capabilities in advanced mode and include all the fields from the database. An example could look like:

<form id="form1" runat="server">
<div>
    Name:
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    Age:
    <asp:DropDownList ID="DropDownList1" runat="server">
        <asp:ListItem Text="18-25" Value="0" />
        <asp:ListItem Text="26-32" Value="1" />
        <asp:ListItem Text="33-40" Value="2" />
    </asp:DropDownList>
    Gender:
    <asp:RadioButtonList ID="RadioButtonList1" runat="server">
        <asp:ListItem Text="Male" Value="0"></asp:ListItem>
        <asp:ListItem Text="Female" Value="1"></asp:ListItem>
    </asp:RadioButtonList>
</div>
</form>

Now, in the ASP.NET interface layer, assign the appropriate parameters to the appropriate fields.

<asp:SqlDataSource ID="SqlDataSource1" runat="server">
    <InsertParameters>
        <asp:ControlParameter Name="Name" ControlID="TextBox1"
            PropertyName="Text" Type="Char" />
        <asp:ControlParameter Name="Age" ControlID="DropDownList1"
            PropertyName="SelectedValue" Type="Int32" />
        <asp:ControlParameter Name="Gender" ControlID="RadioButtonList1"
            PropertyName="SelectedValue" Type="Int32" />
    </InsertParameters>
</asp:SqlDataSource>

This code observes the contents of the controls named in the ControlID tags and points them in the direction of the database’s ControlParameter Name which specifies where in the database the information should go. Of course, data types are specified in Type and PropertyName is the control property from which the information should be extracted.

Now, here comes the fun part – a single line of Visual Basic to handle the pass from ASP.NET to the database. Simply double-click the button created in the user-interface, and add this line:

SqlDataSource1.Insert()

If all went as intended, the project executes and the user should be able to type in their name to the text box on the interface, select their age from the drop down list, select their gender from the radio buttons, click to submit and (voila!) the information is inserted into the database build from the initial data model.

This is one example of how more advanced versions of ASP.NET reduce development time. The ease with which data-driven applications may be constructed using these tools and supporting technologies is a testament to rapid application development techniques as they are applied to the web.

Computer Programming for Kids

Many students don’t get the chance to take a computer science class until high school or even college…a missed opportunity for our younger children. While it’s easy to see the importance of teaching kids how to use a computer, it might be just as valuable to teach them how to program. Not only does it show them what’s happening inside their computer and how computers communicate but it also teaches our kids other important skills like; math, logic and problem solving.

Microsoft has come up with a solution that is fun and educational for younger kids. Microsoft Kodu Game Lab is a visual programming language designed for the newer generations. Most IT types will enjoy the simplicity on the surface and the potential for advanced logic if desired.

Excellent tutorials teach the basics of logic and how to program several different characters to interact with their environment. You can teach small children how to program a Kodu, Rover, cycle or other objects to move with keyboard controls that can be customized easily.

One starts with a customizable world where the geography can be created with grade-school friendly tools. Then some sort of character is placed into the scene and programmed with a “When-Do” (If-Then) language that youngsters understand. Right click the character and click “Program” and a dialog gives a line “When + Do +” where the plus sign is clicked to add to the statement. When a Kodu “sees” an apple, it moves toward it, eats it, moves away from it, or whatever. Adding counters for apples eaten can be displayed in a choice of colors to keep score until a certain number is reached or a count-down timer ends the game.

For more advanced play, Kodu’s can interact with each other and non-player characters can follow programmable pathways until something comes into their space and they shoot at it (if desired). Heat-seeking missiles can be programmed to chase you around the corner in a highly entertaining fashion. Your Kodu can be programmed to glow orange when something sees you or a button can create countermeasures in hopes the enemy will destroy the decoy.

If they want to move past Microsoft Kodu Game Lab, they can start programming with Microsoft XNA. Kodu Game Lab can be programmed entirely from an X-Box with an X-Box controller, mouse and keyboard. The possibilities, and learning potential, are limitless if one is both creative and proficient.

If they decide to continue learning as a student, Microsoft Dreamspark continues where Kodu ends.

Here, they can choose from many Microsoft Technologies and download free, full versions of Microsoft Visual Studio Professional 2012, Microsoft SQL Server, Microsoft Robotics Developer Studio and many more. Also available (free) on Dreamspark are training and certification tools such as Pluralsight, Microsoft Virtual Academy, Free Microsoft Press e-books and certification programs.

If successful, your child can learn important academic skills and  possibly gain a love for programming and logic.

 

 

 

 

Pasadena Pacers iPhone App

Pasadena Pacers iPhone App - Main Menu

The Pasadena Pacers is the oldest running club in the San Gabriel Valley.  The Pacers iPhone App features…

Interval Timer

Our easy to use interval timer aides runners during workouts by alerting with a sound and vibration when your next interval should begin.  Times can be custom set and switched on the fly.

 

Sign-up Sheets

Check all current Pacers sign-up sheet opportunities and sign up to volunteer right from your iPhone.

 

 

Download on the App Store

 

 

Posted in iOS
Page 1 of 812345...Last »

Request a Free Quote

Email us below or call us at
866-313-0106

Request a Free Quote

Email us below or call us at 866-313-0106

Get a Fast & Free Quote

Email us below or call us at 866-313-0106
  • This field is for validation purposes and should be left unchanged.