Monthly Archives: December 2011

Posted by Melissa Penta on December 22, 2011

How to use Firebug on your iPad and iPhone

One of the toughest obstacles when debugging your code is not being able to update it live on your browser and see what is going on when it is going on. If you are a developer, you most likely heard of the life saving tool called Firebug – a plugin for Firefox (and Chrome also has a Lite version) where you can inspect, debug and change code on the fly. But did you know that you can use firebug on your iPad and iPhone? Martin Kool shares his technique for using a javascript bookmarklet to open Firebug right on your Safari browser. I believe that web development debugging for the iPad just got easier.

Here is how you do it (from martinkool.com):

    1. Surf to this page on your iPad or iPhone and bookmark it
    2. Rename the bookmark to “Firebug”. As you can see, the URL is uneditable right now
    3. Tap on this textarea
    4. Tap it again, choose “Select All” followed by “Copy”
    5. Edit the Firebug bookmarklet, remove the URL and paste the bookmarklet
      Choose “Done” (on the virtual keyboard) and you’re all set

Opening the bookmarklet on any webpage should bring up the familiar plugin at the bottom of your screen.

Check out the original post from Martin Kool


Topics: , , , ,

Posted by Michael Alfaro on December 21, 2011

Skillshare – Learn new skills. Share your skills. A community marketplace to learn anything from anyone

Found this today, and I have to say it looks awesome!   I’m going to be signing up for a course in the very near future, I’ll let you know how it goes.  People sharing what they know instead of hoarding information for Job Security (you know who you are), nice!

What is Skillshare? from Skillshare on Vimeo.

Skillshare is a community marketplace to learn anything from anyone. We believe that everyone has valuable skills and knowledge to teach and the curiosity to keep learning new things. This means our neighborhoods, communities, and cities are really the world’s greatest universities. Our platform helps make the exchange of knowledge easy, enriching, and fun.

All of the classes happen in the real world. That means offline despite what we nerds may consider to be “real.” We believe that learning should happen in groups around shared interests and passions. When you bring together a variety of voices and hands-on instruction, truly spectacular things happen. This magic just can’t be replicated over a webcam and chatroom. We’re here to spread this magic and increase the gross happiness index around the world.


Topics: , , , ,

Posted by Michael Alfaro on December 15, 2011

Execute SQL Queries directly in LINQ

Sometimes you have complex SQL that uses DB specific functions, and to put into LINQ is more work then it’s worth.  So our Developer Sergio found this article how do to directly execute SQL through LINQ: http://msdn.microsoft.com/en-us/library/bb399403.aspx

“LINQ to SQL translates the queries you write into parameterized SQL queries (in text form) and sends them to the SQL server for processing.

SQL cannot execute the variety of methods that might be locally available to your application. LINQ to SQL tries to convert these local methods to equivalent operations and functions that are available inside the SQL environment. Most methods and operators on .NET Framework built-in types have direct translations to SQL commands. Some can be produced from the functions that are available. Those that cannot be produced generate run-time exceptions. For more information, see SQL-CLR Type Mapping (LINQ to SQL).

In cases where a LINQ to SQL query is insufficient for a specialized task, you can use the ExecuteQuery method to execute a SQL query, and then convert the result of your query directly into objects.

In the following example, assume that the data for the Customer class is spread over two tables (customer1 and customer2). The query returns a sequence of Customer objects.

C#

Northwnd db = new Northwnd(@"c:\northwnd.mdf");
IEnumerable<Customer> results = db.ExecuteQuery<Customer>
(@"SELECT c1.custid as CustomerID, c2.custName as ContactName
    FROM customer1 as c1, customer2 as c2
    WHERE c1.custid = c2.custid"
);

As long as the column names in the tabular results match column properties of your entity class, LINQ to SQL creates your objects out of any SQL query.

The ExecuteQuery method also allows for parameters. Use code such as the following to execute a parameterized query.

C#

Northwnd db = new Northwnd(@"c:\northwnd.mdf");
IEnumerable<Customer> results = db.ExecuteQuery<Customer>
    ("SELECT contactname FROM customers WHERE city = {0}",
    "London");

The parameters are expressed in the query text by using the same curly notation used by Console.WriteLine() and String.Format(). In fact, String.Format() is actually called on the query string you provide, substituting the curly braced parameters with generated parameter names such as @p0, @p1 …, @p(n).”


Topics: , , , ,

Posted by Michael Alfaro on December 13, 2011

Photomash Mobile Application for iPhone and Android is here!

Photomash

The Local Wisdom team is thrilled to announce the launch of its second mobile app in 2011, Photomash.

This unique photo app gives iPhone and Android users the ability to take pictures and turn them into fun, creative images. Users simply take a picture with their phone, erase portions of the image with their finger and replace those portions with new pictures. Each time an area is erased, images available within view of their phone’s camera show in the erased portion, allowing the user to add a picture within a picture.

Photomash ChallengesOur team here at LW has used Photomash at parties, weddings, and even internal meetings and the Photomash challenges and templates provide a jump start for those who might need a little extra help getting their creative juices flowing. For examples of some inspirational Photomashes, check out the creations we’ve received so far.

Once you’ve finished perfecting your Photomash, you can share your creation with friends, family, even coworkers via Facebook and Twitter. For more information about Photomash, visit photomashapp.com, or peruse our Facebook page at Facebook.com/Photomashapp. To download Photomash for $0.99, visit the Apple App store on iTunes or the Android Marketplace.

Special thanks go to our R&D team:

  • Shawn Venkat, VP
  • RJay Haluko, Creative Director
  • Tim Jaeger, Sr. Information Architect & Mobile Developer,
  • Chris Smith, Programmer
  • Ryan Bailey, Programmer
  • Patrick Pierson, Programmer

Topics: , , , ,

Posted by Michael Alfaro on December 7, 2011

Disable password policy settings in BPOS and Office 365 with PowerShell-PasswordNeverExpires

We switched to Office 365 about 90 days ago, and it’s been working great.  Now we’re running into the 90 day default password policy from Microsoft which we want to avoid.  We found how to turn off the policy for all current members of our 365 subscription.  Here’s the original source: http://blog.atwork.at/post/2011/10/30/Passwordneverexpire-Kennwortrichtlinie-andern-in-BPOS-und-in-Office-365-mit-Hilfe-von-PowerShell.aspx

“Office 365 has a password policy, which is by default set to expire on a regular basis (90 days). There are some guidelines which help to make sure that the password is secure:

  • Use 8 to 16 characters
  • combination of upper- and lowercase letters
  • at leat one numer or one symbol (be aware that the symbol is available in every language on every keyboard)
  • Do not use spaces, tabs, line breaks, your user name

Each user is able to change his password at any time. If a user forgets his password it can be reset by an Office 365 administrator.

In some cases – for example for service accounts – it is useful to change the password expiration policy to never expire.

In this post I will show you how you can disable the password expiration for Office 365 and for BPOS as well.

Password Policy change to never expire in Office 365

In office 365 you need only two lines to disable the password policy. First open the Microsoft Online Services Modul for Windows Powershell. (Download: 32bit or 64bit).

Connect to Office 365

Connect-MsolService

In the dialog enter the credentials of an administrator:




To change a single user:

Set-MsolUser -UserPrincipalName <username> -PasswordNeverExpires $True

To change all users at once:

Get-MsolUser | Set-MsolUser -PasswordNeverExpires $True




That’s it. You can control the result with the following command:

Get-MsolUser | fl


Topics: , , ,

Posted by Michael Alfaro on December 5, 2011

Blackberry Web Browser emulator, in Chrome!

Ran into this one today.  Have a client that “needs” a website to work on blackberries even though the words have long been written on the wall as far as RIM is concerned.  One of the the new pages isn’t working properly within the blackberry browser although it did work fine from our test environment, big surprise right!

How do we debug it, its not like firebug is built into the blackberry browser itself right.  Luckily, RIM did buy a company that makes an emulator for phones including theirs which runs within chrome made by TinyHippos – http://ripple.tinyhippos.com/

Check it out, very useful.  Since it’s in chrome, the web developer tools work, so it’s helping us debug something that otherwise, we’d probably have toss our hands up for :)


Topics: , ,