Z5 Concepts

Apple iOS 5 for iPad, iPhone, and iPod Touch : Where is iMessage?


by on 13. October 2011 19:06

Where is iMessage? I can't find it anywhere...

 

I just updated my iPhone 4 with iOS 5 and am trying to take advantage of the wonderful iMessage app. I have several friends and family who have iOS devices and I want to be able to communicate "freely" with them. Ha.

 

Come to find out, it is easily integrated into one app, “Messages”. See below.

 

iMessage - iPhone 4 - iOS 5

 

 

Well, what is iMessage?

"Thanks to iOS 5, anyone with an iOS device can now easily keep in touch—for free!—by using Apple’s new iMessage service, found within the Messages app. iMessage works without any per-message charges from cellular providers or monthly texting plans; instead, you’ll send messages over your device’s 3G or Wi-Fi connection.

iMessage works with any iOS 5-capable device, sending anything an SMS or MMS can—text, photos, video, contact cards, or map locations. The feature allows iPhone users to talk to iPad users, iPad users to send video to iPod touch users, and so on. You won’t be able to use iMessage to contact people with Android devices or BlackBerry phones—that’s still the province of text messaging.

iMessage is easy to set up and use: All you need is an Apple ID, and you can start messaging your fellow iOS device users."

 

To set up iMessage, do the following:

 

“To start using iMessage, open the Settings app and tap the Messages menu. You’re prompted to enter your Apple ID—that’s the email address you use for buying apps in iTunes and logging in to iCloud. If you don’t have one, you’ll be prompted to create an account.

 

If you’re setting up iMessage on your iPhone, people who know your mobile number will always be able to use it to message you; you can also supply iMessage with an email address where other iOS device users can reach you. If you’re using an iPod touch or iPad, you can message people only by email address, so you’ll have to supply one during the setup. You can use any email address you own—such as your iCloud or Gmail account.

 

Once iMessage has verified your email address, you’re brought to the Messages settings screen. Here, you can enable or disable iMessage altogether; turn on Read Receipts, which lets others see when you’ve read their message; or allow the Messages app to send your text as an SMS if iMessage can’t get through. This applies to the iPhone only. Disabling this setting prevents your phone from automatically reverting to SMS—and racking up texting charges—should iMessage fail. It doesn’t, however, disable SMS entirely.)

 

Other settings let you choose the email address or addresses you’d like people to be able to reach you at. (You can associate multiple addresses.) There’s also an SMS/MMS section, which allows you to enable or disable MMS Messaging (iPhone only), Group MMS Messaging (iPhone only), Show Subject Field, and Character Count (iPhone only).”

 

Credits: Brief overview of iMessage from Serenity Caldwell

 

 

Tags:

Apple | iOS | iOS 5 | iPad | iPhone | iPhone apps

iPhone development - How to make high resolution Icons for iPhone/iPad apps


by on 26. August 2011 13:31

Making apps isn't necessarily easy. However, making icons should be!

 

Apple iPhone 4

 

I've been developing apps for close to a year now and I recently found out the best way to make icons specific to the device. If this is old news for you, sorry. But for me, it was new. I knew there had to be some way to make iPhone app icons more crisp, especially on Apple's high resolution iPhone 4 model.

 

 

So, let's get started.

 

 

In your Xcode project, you should have an appname.plist file. Open that up! Once you have opened the plist file for your project, add a new "node," if you will, at the bottom. This is where you will select "Icon files." Please note: Pay close attention to the plurality of the word files.

 

 

 

From this point on, you can add several Strings underneath this particular "Icon files" node. Here is an example:

 

For more details on this issue, please visit the developer center's article on this matter.

 

 

 

Tags:

iOS | iPhone | OS X Lion | iPhone apps | apps | iPhone development | Xcode

Apple Mac Mini 2011 - Windows 7 with Apple Boot Camp Utility


by on 2. August 2011 14:45

Having issues installing Windows 7 in the Boot Camp Utility? I sure did!

 

Let's look a bit closer on those issues.

 

I bought the Mac Mini in hope of getting rid of my PC desktop, which was a great PC, but it was time to combine and make room for more stuff! Hehe. Anywho, not to spoil the story, but I did finally have success in installing Windows 7 on the 2011 Apple Mac Mini.

 

When opening the Boot Camp Utility on the Mac Mini, it basically asks you three things:

  1. Install Windows 7 on install USB flash drive
  2. Download Windows Support files
  3. Create Windows Partition or Remove Windows partition.

 

When you choose to unload a Windows 7 ISO to the USB flash, it seems to work fine. It unloads the files to the USB, then creates the partition. Once it completes, the Mac mini reboots and tries to boot to the new Windows partition. When it does this, I received two errors.

 

The first time, I received a "NLTDR is missing. Press CTRL-ALT-Del to restart" message. I believe this just means it couldn't find the proper files to install windows, but for more information on this, check out this link: http://support.microsoft.com/kb/318728.

 

Secondly, I receive  "No bootable device -- insert boot disk and press any key." Sadly, Cry, after speaking with Apple support, even though the Mac mini acted as if it would work with the USB Flash drive, it will not. Unfortunately for some users, you will have to get a USB optical drive (dvd or cd) and boot the Mac mini, hold "option" key, and select the optical drive as your startup, and use the Windows 7 installation disk.

 

Not so fast...

 

Once I was finally able to boot into Windows setup, I am told, "Windows must be installed to a partition formatted as NTFS." Even though I used Bootcamp to create the Windows partition, he wasn't compatible with Windows 7.

 

The quick and easy fix.

 

On the Windows setup screen, there a couple of buttons below the Partition list, one being Format. Select the appropriate partition, probably says, "BOOTCAMP." Make sure the partition size matches up with the size that you set for the Bootcamp partition. Once you have clicked that, you can click the Format button. It will format it pretty quickly, and then you can continue in the install of Windows 7 on that partition.

 

With all that said, installing Windows 7 on the 2011 Mac Mini is definitely possible. Was it easy, definitely not!

 

If you have any questions, please feel free to comment or e-mail me at dj@z5concepts.com.

 

 

Tags:

Apple | OS X Lion | Mac mini | Apple Boot Camp

iPhone - What Should Be Your First iPhone App?


by on 1. August 2011 14:56

If I were to start over, I believe my first iPhone app would be Instagram,

followed by Air Force+ of course. :)

 

 

  

 

    One thing I love about Instagram is the Twitter integration that then integrates to my Facebook account. The ability to set the focus on each image is a big hit to me. And then you can apply some pretty neat effects to the pics to brighten them up, give them some 1977 look, or Gothamize them. :)

 

Another iPhone app recommendation.

 

  


    Air Force+.

 

    It provides a quick and easy way to stay on top of everything happening in the U.S. Air Force. Another great feature, especially for the Aircraft buffs, is the Aircraft feature. It gives great details for the most current list of aircraft that support the entire U.S. Armed Forces. Pretty neat!

 

 

    And thirdly, Songify. Songify is something fun for the whole family. We recently went on vacation, and everyone was begging to use my iPhone to create a fun song with the Songify iPhone app. It was a hit! I've really enjoyed the synthesizer making me sound great! LOL.

 

    I know there are a ton of apps on the Apple App Store, and it really comes down to preference. You will download many apps that you may just not like, and some that are your, "I can't live without" ones. Have fun and enjoy your new iPhone. 

 

Hope this helps! 

 

If you are a new-comer to the iPhone and want more suggestions on apps to download, check out this link.

 

 

 

 

Tags:

Apple | iPhone | iOS

OS X Lion Launchpad - Launch pad duplicate apps - OS X Lion Upgrade


by on 22. July 2011 04:14

Anyone having issues with there Launchpad having duplicates of certain apps , such as Mail, iCal, etc? I have, and very surprised that Apple didn't resolve this issue for us. Anyways, the fix is rather simple. 

When we first tried running Safari, we received this CT Plugin error message:


The application Safari quit unexpectedly. The problem may have been caused by the ct-plugins plug-in


After getting pretty frustrated, googled it and couldn't find the exact solution. I was told to go to my Library folder and delete a bunch of files, but that didn't work. 


After some time, I realized, that whenever I went to the Applications folder, Safari worked fine. I then went to the Launch pad and noticed I had duplicate apps...


The issue seemed to be that I had created folders under my Applications folder and when the upgrade occurred, it set each application's folder back to the root folder of Applications.


So, if you have duplicate apps in the Launch pad, check your application's folder, and make sure you don't have duplicate sub folders with applications in them.

Tags:

Apple | OS X Lion

ASP.NET C#.Net - Microsoft Chart Controls with Two Y-Axes


by on 2. June 2011 15:00

In ASP.NET, you may want to implement a solution with the Microsoft Chart controls that has multiple series, but have two different scales for the Y-Axis. First of all, your “SelectCommand” must return the correct number of columns, with data, for this to work smoothly. Secondly, you must make sure the properties are set properly for each series for the Chart controls to know how to display them. Please see my example below.

 

<asp:Chart ID="Chart5" runat="server" Width="750px" Height="500px"

                       Palette="BrightPastel" DataSourceID="SQLDataSource1">

 

 <titles>

 

  <asp:title Name="Title1" Text="Our Chart"

             ShadowColor="32, 0, 0, 0" Font="verdana, 14.25pt, style=Bold"

             ShadowOffset="3" Alignment="TopCenter" ForeColor="SteelBlue">

  </asp:title>

  <asp:title Name="Subtitle2" Text="Me vs. You"

             ShadowColor="32, 0, 0, 0" Font="verdana, 10pt, style=Bold"                                                     

             ShadowOffset="3" Alignment="TopCenter" ForeColor="SteelBlue">                         

  </asp:title>

 </titles>

 

 <borderskin skinstyle="Emboss"></borderskin>

 

   <series>

    <asp:Series Name="You" ChartArea="ChartArea1" ChartType="column"

               IsValueShownAsLabel="true" XValueMember="yourxvalue_datacolumn"

               YValueMembers="yourY1value_datacol">

    </asp:Series>

    <asp:Series Name="Me" Color="Green" ChartArea="ChartArea1"

                IsValueShownAsLabel="true"  ChartType="column"

                XValueMember="yourxvalue_datacolumn"

                YValueMembers="yourY2value_datacol" YAxisType="Primary">

    </asp:Series>

    <asp:Series Name="Overall" Color="Goldenrod" ChartArea="ChartArea1"

               LabelFormat="{0:##0}%" IsValueShownAsLabel="true" BorderColor="Goldenrod"

               BorderWidth="3" ChartType="Line" XValueMember="yourxvalue_datacolumn"

               YValueMembers="yourY3value_datacol" YAxisType="Secondary">

    </asp:Series>                              

   </series>

 

     <chartareas>

<asp:ChartArea Name="ChartArea1" BackColor="Transparent" >

        <AxisX Interval="1" Title="XAxis Title" >

          <MajorGrid LineColor="Silver" />

          <LabelStyle font="verdana, 10pt" />

        </AxisX>

        <AxisY Title="Y1 Axis Title">

          <MajorGrid LineColor="Silver" />

          <MajorTickMark LineColor="Black" LineDashStyle="Dash" LineWidth="3" />

          <LabelStyle font="verdana, 10pt" />

        </AxisY>

        <AxisY2 Title="Y2 Axis Title" Minimum="0" Maximum="100">

        <LabelStyle ForeColor="Black" font="verdana, 10pt" />

        </AxisY2>

       </asp:ChartArea>

       </chartareas>

 

</asp:Chart>

 

<asp:SQLDataSource ID="SQLDataSource1" runat="server"

                  ConnectionString="<%$ ConnectionStrings:default %>"

                  SelectCommand="YourStoredProcedure" SelectCommandType="StoredProcedure">

</asp:SQLDataSource>

 

 

 

 

In the first section, you can set your width and height property for better viewing and needs to be relevant to the page you are displaying them on. You also must set your DataSourceID property to whatever data source you are using. There are also different palettes to choose from to spice it up a bit.

<asp:Chart ID="Chart5" runat="server" Width="750px" Height="500px"

                       Palette="BrightPastel" DataSourceID="SQLDataSource1">

 

Within the “Chart” node, there are several different sub-nodes, such as the “Titles” node. Here we get to set the titles and sub-titles for the particular chart to give a brief overview of what the data in the chart is displaying. You can modify the font however you like. The alignment property allows you to move it around the top of the chart.

<titles>

 

  <asp:title Name="Title1" Text="Our Chart"

             ShadowColor="32, 0, 0, 0" Font="verdana, 14.25pt, style=Bold"

             ShadowOffset="3" Alignment="TopCenter" ForeColor="SteelBlue">

  </asp:title>

  <asp:title Name="Subtitle2" Text="Me vs. You"

             ShadowColor="32, 0, 0, 0" Font="verdana, 10pt, style=Bold"                                                     

             ShadowOffset="3" Alignment="TopCenter" ForeColor="SteelBlue">                         

  </asp:title>

 </titles>

 

Also under the Chart node, you have the series node which sets up the data on the chart for you. In the section below, you will see that you will need to know the columns of data you will want to represent for each series.

In each <asp:Series> node, you set up the “ChartType”, “XValueMember”, and the “YValueMember.” The ChartType can be many different types, but you usually want each series to have the same ChartType and in this case, we have it as column. Now for the third series, our second Y-Axis, we will use a ChartType of “Line” for a better representation of the data for that series.

Now remember, we are setting up this chart to have two separate scales for the second and third series. So notice the additional property YAxisType. In the second series we have it set to “Primary” which will be the main Y-Axis on the left of the chart, and in the third, we have it set to “Secondary” which will display on the right of the chart.

There are also other properties you can add, such as the LabelFormat. In this case, we have a percentage, and we want the label on the chart to have the % sign displayed. 

<series>

    <asp:Series Name="You" ChartArea="ChartArea1" ChartType="column"

               IsValueShownAsLabel="true" XValueMember="yourxvalue_datacolumn"

               YValueMembers="yourY1value_datacol">

    </asp:Series>

    <asp:Series Name="Me" Color="Green" ChartArea="ChartArea1"

                IsValueShownAsLabel="true"  ChartType="column"

                XValueMember="yourxvalue_datacolumn"

                YValueMembers="yourY2value_datacol" YAxisType="Primary">

    </asp:Series>

    <asp:Series Name="Overall" Color="Goldenrod" ChartArea="ChartArea1"

               LabelFormat="{0:##0}%" IsValueShownAsLabel="true" BorderColor="Goldenrod"

               BorderWidth="3" ChartType="Line" XValueMember="yourxvalue_datacolumn"

               YValueMembers="yourY3value_datacol" YAxisType="Secondary">

    </asp:Series>                              

</series>

 

 

 

Lastly, we get to the section of the ChartAreas which does the beautifying of our scales. J

In order for you to have two Y-Axes, you need this section in your code. Most of it is pretty self explanatory. The key thing to notice in <AxisY2> is the properties, Minimum and Maximum. This will allow you to set the scale for your second Y-Axis. Typically, the primary Y-Axis can range from 0-10000, but your secondary Y-Axis may only range from 0-100 (for percent anyhow). Without this range being set, chances are you won’t see the Y2-Axis, depending on the primary Y-Axis range.

<chartareas>

<asp:ChartArea Name="ChartArea1" BackColor="Transparent" >

        <AxisX Interval="1" Title="XAxis Title" >

          <MajorGrid LineColor="Silver" />

          <LabelStyle font="verdana, 10pt" />

        </AxisX>

        <AxisY Title="Y1 Axis Title">

          <MajorGrid LineColor="Silver" />

          <MajorTickMark LineColor="Black" LineDashStyle="Dash" LineWidth="3" />

          <LabelStyle font="verdana, 10pt" />

        </AxisY>

        <AxisY2 Title="Y2 Axis Title" Minimum="0" Maximum="100">

        <LabelStyle ForeColor="Black" font="verdana, 10pt" />

        </AxisY2>

       </asp:ChartArea>

</chartareas>

 

 

 

 

If you have any questions or problems, feel free to e-mail me at DJ@z5concepts.com



ASP.NET C#.NET GridViewRow with ASP.NET CheckBox control


by on 19. May 2011 13:55

When developing with C#.NET in Visual Studio, developers work with the ASP.NET GridView control, there are many cases when needing the ability to check each row in a GridView in order to call a function on button click or even on CheckChanged. In my case, I was needing to allow for the user to delete multiple records at once, either by selecting all or by individually checking each check box.

 

So, here we go:


In the .aspx page where you have your GridView control, you should have the following:

 

 

<asp:GridView ID="GridView1" runat="server" DataSourceID="DSN">

 

<Columns>

 

</Columns>

 

</asp:GridView>

 

 

 

 

Inside the <Columns> node, you should add the following code:


 

     <asp:TemplateField>

      <HeaderTemplate>

       <asp:CheckBox ID="cbSelectAll" runat="server" Text="All" AutoPostBack="true"

                     OnCheckedChanged="chkSelectAll_CheckedChanged" />

      </HeaderTemplate>

      <ItemTemplate>

         <asp:CheckBox ID="cb" runat="server"></asp:CheckBox>

      </ItemTemplate>

     </asp:TemplateField>

 

 

 

 

 

After adding the above code, it should look as so:


 

 

 

    <asp:GridView ID="GridView1" runat="server" DataSourceID="DSN">

 

    <Columns>

     <asp:TemplateField>

      <HeaderTemplate>

         <asp:CheckBox ID="cbSelectAll" runat="server"

                       Text="All" AutoPostBack="true"

                       OnCheckedChanged="chkSelectAll_CheckedChanged" />

      </HeaderTemplate>

      <ItemTemplate>

         <asp:CheckBox ID="cb" runat="server"></asp:CheckBox>

      </ItemTemplate>

     </asp:TemplateField>

    </Columns>

 

    </asp:GridView>

 

 

 

 

 

Now, in the code behind file, the .aspx.cs file, you will need to add the following method(s) in order to allow for select all on that column and a button click event. See below:


    

    protected void chkSelectAll_CheckedChanged(object sender, EventArgs e)

    {

        CheckBox checkbox;

        foreach (GridViewRow row in GridView1.Rows)

        {

            checkbox = (CheckBox)(row.Cells[0].FindControl("cb"));

            checkbox.Checked = ((CheckBox)sender).Checked;

        }

    }


In my particular example, I had a button on the .aspx page that was clicked once all rows were checked, to fire and grab the DataKey of each row and update the record in the database, so you may or may not find the following useful.

   

    protected void btnDeleteSelected_Click(object sender, EventArgs e)

    {

        foreach (GridViewRow r in GridView1.Rows)

        {

            String ID = GridView1.DataKeys[r.RowIndex].Values["ID"].ToString();

            CheckBox cb = ((CheckBox)r.Cells[0].FindControl("cb"));

            if (cb.Checked)

            {

                //write your SQL Connection code here

            }

        }

        GridView1.DataBind();

    }

 

 

 

 

If you have any questions or problems, feel free to e-mail me at DJ@z5concepts.com

Tags:

ASP.NET | C#.NET | Troubleshooting | Visual Studio 2005 | Visual Studio 2008 | Web hosting | Websites

C# - ASP.NET - Use FindControl on TemplateField ItemTemplate


by on 11. March 2011 20:46

Say for instance you have a

 

<asp:HyperLink ID="HyperLink1" runat="server" Text="Hyperlink"></asp:HyperLink>

 

 control on in you TemplateField ItemTemplate of a GridView control, and you need to some how modify the NavigateURL property of that control. You can utilize the FindControl function of the Gridview as so:

 

protected void Page_Load(object sender, EventArgs e)

{

 

    String NavigateURL =

   ((HyperLink)NameOfYourGridView1.FindControl("HyperLink1")).NavigateUrl;

 

}

 

If you try and use this on Page_Load or even in the GridView1_OnDataBound event, you will more than likely get Object reference not set to an instance of an object error. The key in using this properly is going to be in the OnRowDataBound event.

See, every row has the HyperLink control on it and how does it know which HyperLink to find in the GridView for modification purposes? It doesn't. So we must call this in the OnRowDataBound event as so:

 

 

    protected void GridView1_OnRowDataBound(object sender, GridViewRowEventArgs e)

 

    {

 

      if ((e.Row.FindControl("HyperLink1") != null))

      {         

          //this demonstrates how to append a string to a hyperlink or url using

 StringBuilder class

          StringBuilder url = new StringBuilder();         

          url.Append((HyperLink)e.Row.FindControl("HyperLink1")).NavigateURL);

      }

    }

 

 

If you have any questions or problems, feel free to e-mail me at DJ@z5concepts.com

 

www.z5concepts.com

 

Tags:

C#.NET | Visual Studio 2008 | Websites

C#.NET - ASP.NET : Date Format in Item Template with Bind()


by on 25. February 2011 21:29

The following information is to show how to use the date format in item template in ASP.NET with C#.

To format the date when calling the Bind() function on your .aspx page, see below for details:

 

 

<asp:TextBoxID="txtBox" runat="server" Text='<%# Bind("DateDataField", "{0:d}") %>'>

</asp:TextBox>

 

 

 

If you have any questions or problems, feel free to e-mail me at DJ@z5concepts.com

Tags:

Troubleshooting | Visual Studio 2005 | Visual Studio 2008 | Web hosting | Websites

C#.NET - Converting milliseconds since Epoch to DateTime


by on 14. September 2010 02:42

     Have you ever retrieved a long string of numbers for a datetime before? Chances are that this string of numbers is the number of milliseconds since Epoch, aka Unix Date. According to Wikipedia, Epoch or Unix date is "defined as the number of seconds elapsed since midnight proleptic Coordinated Universal Time (UTC) of January 1, 1970. Yes, believe it or not, this sometimes happens when trying to retrieve the datetime of some piece of data.

     C#.NET allows for you to convert this long string of milliseconds to retrieve a more user friendly date and time. Depending on Daylight Savings Time, the converted time may be off by an hour, which you can modify the code to add/subtract an hour if needed. You can see this in the code below.

 

 


 

 

    static string epochTime(string d)

    {

 

        long e = long.Parse(d);

        DateTime dt = DateTime.Parse("1970-01-01").AddMilliseconds(e);

        dt = dt.AddHours(-4);   // This is to allow for specific time zones.

        d = dt.ToString();

        return d;

 

    }

 

 

      If you have any questions or need help, feel free to e-mail me at dj@z5concepts.com.

 

Tags:

Troubleshooting | Visual Studio 2005 | Visual Studio 2008 | Websites


Theme by Z5 Concepts