Go to home page mail me! RSS Feed

JQuery Mobile is here and looking good…

JQuery mobile not to be confused with JQTouch is now available, and I have to say its looking very promising. If you are a big JQuery fan like me and you are interested in build one or more UI for a mobile platform then look no further – the new JQuery Mobile is Touch-Optimized Web Framework for Smartphones & Tablets.

jQuery mobile framework takes the "write less, do more" mantra to the next level: Instead of writing unique apps for each mobile device or OS, the jQuery mobile framework will allow you to design a single highly branded and customized web application that will work on all popular smartphone and tablet platforms.

image

DotNetKicks Image

A quick and dirty JavaScript Ellipsis function

While working on my upcoming cool project, I wanted a JavaScript function that will perform an Ellipsis, bare in mind that I usually use C# and already have a .NET method that will do just that. However, in this case since my web application is 90% JS, I figured I could just do that client side. Here is what I came up with, I just wrote this 5 minutes ago, so use at your own risk.

Ellipsis (plural ellipses; or "three little points of suspension"; from the Greek: ἔλλειψις, élleipsis, "omission") is a mark or series of marks that usually indicate an intentional omission of a word in the original text.

String.prototype.ellipsisText = function(location, maxCharacters) {
    var text = this;
    if (this.length > 0 && this.length > maxCharacters) {
        if (typeof (location) == 'undefined') location = 'end';
        switch (location) {
            case 'center':
                var center = (maxCharacters / 2);
                text = this.slice(0, center) + '...' + this.slice(-center);
                break;
            case 'end':
                text = this.slice(0, maxCharacters - 3) + '...';
                break;
        }
    }
    return text;
}
DotNetKicks Image

A very interesting robots.txt file

from last.fm

 

User-Agent: *
Disallow: /music?
Disallow: /widgets/radio?
Disallow: /show_ads.php

Disallow: /affiliate/
Disallow: /affiliate_redirect.php
Disallow: /affiliate_sendto.php
Disallow: /affiliatelink.php
Disallow: /campaignlink.php
Disallow: /delivery.php

Disallow: /music/+noredirect/

Disallow: /harming/humans
Disallow: /ignoring/human/orders
Disallow: /harm/to/self

Allow: /

DotNetKicks Image

10+ JQuery Tooltips

In my search for an awesome light weight tooltip, I can across these and a whole lot more, figured I’ll post them and save you the work. I didn’t take the time to review them so its all on you.

  1. Tipsy is a jQuery plugin for creating a Facebook-like tooltips effect based on an anchor tag's title attribute - http://onehackoranother.com/projects/jquery/tipsy/
  2. ColorTip is a jQuery Tooltip Plugin - http://tutorialzine.com/2010/07/colortips-jquery-tooltip-plugin/
  3. clueTip - The clueTip plugin allows you to easily show a fancy tooltip when the user's mouse hovers over (or, optionally, clicks on) any element you designate in your script. If the element includes a title attribute, its text becomes the heading of the clueTip. - http://plugins.learningjquery.com/cluetip/#getting-started
  4. Simple tooltip - http://dev.mariusilie.net/content/simple-tooltip-jquery-plugin
  5. Orbital Tooltip - The concept behind the Orbital Tooltip is to allow more flexibility to developers needing more specific positioning for their tooltips. With this jQuery plugin, you can position a tooltip around any element in a 360 degrees around it - http://www.userfirst.com/our-blog/2008/12/01/orbital-tooltip/
  6. BsTip - http://benchsketch.com/bquery/index.html
  7. Simpletip - Simpletip is a plugin for the popular jQuery JavaScript library. It allows you to create tooltips with ease on any element on the page using the power of jQuery's selectors and event management. The tooltips can be static, dynamic, or even loaded through AJAX with a variety of different visual effects. - http://craigsworks.com/projects/simpletip/
  8. jQuery plugin: Tooltip -http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
  9. jQuery TOOLS tooltip - http://flowplayer.org/tools/tooltip/index.html
  10. Popup Bubble: - http://www.dvq.co.nz/web-design/create-a-jquery-popup-bubble-effect/
  11. vTip - http://www.vertigo-project.com/projects/vtip
  12. qTip is an advanced tooltip plugin for the ever popular jQuery JavaScript framework. - http://craigsworks.com/projects/qtip/
  13. BeautyTips is a jQuery tooltips plugin which uses the canvas drawing element in the HTML5 spec to dynamically draw tooltips (sometimes called "talk bubbles" or "help balloons") associated with a html element on the page. - http://www.lullabot.com/files/bt/bt-latest/DEMO/index.html
  14. TinyTips - http://www.mikemerritt.me/demos/tt-1-1/index.html
DotNetKicks Image

Job - Marketing Communications / Copy Manager

My company (Benchmark Brands, Inc.) is currently looking for a superb user interface developer. Here is a summary of the job.

Reporting to the VP, Creative Director, the Marketing Communications/ Copy Manager will be responsible for overseeing the development of marketing communications, promotional communications, direct response product copy, and rich media that support the Brand’s mission as the Comfort Footwear and Foot Health authority. You will manage a team of 6 (copywriters, editors and proofreader), writing promotional and benefit oriented product copy for the Foot Smart print catalog(17 events per year), the FootSmart.com website, FootSmart campaign e-mails as well as editorial content for FootSmart.com that drives Social Media and SEO efforts. Content must be compelling and embody strong direct marketing fundamentals, effectively communicating the Brand story, as well as features and benefits of a product that present the Brand effectively to our target audience of baby boomers and seniors. The Marketing Communications/Copy Manager will be heavily involved in creative concepting and will be hands on in leading their team in collaborating with Catalog Marketing, Internet Marketing and Merchandising Teams in footwear, hosiery/socks and health products to ensure the preservation and cohesiveness of our brand and style.

 

Contact me if you are interested or post a comment here.

DotNetKicks Image

Job - Network Operations System Administrator

My company (Benchmark Brands, Inc.) is currently looking for a superb network operations system administrator. Here is a summary of the job.

The Operations Systems Administrator provides direct and on-call support for Windows Networking, Windows Active Directory, Cisco devices, Exchange Server, MS SQL and MS Office environments. The Operations Systems Administrator is responsible for the day-to-day end user support, including hardware support, software support and copier/printer troubleshooting. The position also requires LAN/WAN/VPN Connectivity troubleshooting and Linux Thin clients. The position requires excellent troubleshooting skills and attention to detail. The Operations Systems Administrator will be responsible for project planning, tracking, and communication. Strong communication skills are required for this position.

 

Contact me if you are interested or post a comment here.

DotNetKicks Image

Job – User Interface Developer

My company (Benchmark Brands, Inc.) is currently looking for a superb user interface developer. Here is a summary of the job.

 

Reporting to the Director, Internet Store Operations, the User Interface Developer I  will be responsible for coding website and email designs on all major browsers and email clients. The individual we seek will be well versed with major graphics and HTML editors along with the latest front end coding techniques used to optimize designs for the Internet. You will work closely with multiple departments including Web Development, Creative and User Experience to ensure that the execution of designs are rendered as a seamless experience for our customers.

 

Contact me if you are interested or post a comment here.

DotNetKicks Image

Publish content in App_Data folder

If you are having problems as I was with the App_Data folder particularly will publishing content other than databases that are located in that special folder then here is the solution. Although, you may include any ordinary file as part of the project, visual studio does not copy it to the publish folder because it does not know what it is. I created a BinaryTap database – my key value store and saved it into the App_Data and executed a project published command and I noticed the database file itself wasn’t copied. After research here and there, it turns out you have to let Visual Studio know that “file A” needs to be part of the publishing package by indicating that its content. To do so, you bring up the properties window of that file and select “Content” as the “Build Action” and viola!

 

image

DotNetKicks Image

Get week number from date

Here is a simple way to get the week number given a certain date and time.

int week = System.Globalization.CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(
    dt, System.Globalization.CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Sunday);

DotNetKicks Image

TryParse on nullable types

For some unknown reason you can’t do a TryParse on nullable types or should I say the out parameter of a TryParse can not be nullable? For example this just won’t work.

DateTime? dt;
DateTime.TryParse("12/12/2010", out dt);
Error 4 The best overloaded method match for 'System.DateTime.TryParse(string, out System.DateTime)' has some invalid arguments

The solution or workaround is to use two variables to accomplish the goal, here is an example.

DateTime? dt1;
DateTime dt2;
dt1 = DateTime.TryParse("12/12/2010", out dt2) ? dt2 : (DateTime?)null;
DotNetKicks Image

Next entries »