custom

Rails custom routing for auto-login

I want to set up auto-login by giving the user a link/key they can use like http://domain.com/4yT67rw. The last 7 digits are random and assigned to the user model. Is it possible to do this with custom routing? I imagine it would have to be something like a regex to detect that it is a key and not a model name or error. Would be grea...

Add a second Address line into this custom function (Filemaker Pro)

I want to add a second Address field into this custom function (ie. Apt. #101). If you wanted, you could explain how the Case(not IsEmpty works and I would be willing to attempt to add the second address field in myself... Let( [ x1 = Name; x2 = x1 & Case(not IsEmpty(Address); Case(not IsEmpty(x1); "¶") & Address); x3 = Case...

FCKEditor how to add a Toolbar Button ?

Hello all readers. I like to add a button on FCKEditor toolbar that will execute some JQuery code on Click event. Is there any solution ? What I like to do with that is the following: I have create a database driven File System Manager that is build on ExtJS and CakePHP. Now on some other page I have create a form that use the FCKEdi...

iPhone Dev: Create own index

I currently got two problems I, both about the index of a UITableView I want to change the color of some section-tags in the index, to show that there are new changes within this section. I need to position the index on the left side of the table so it doesn't interfere with the detail disclosure Button Is there a way to realize this...

using jna with FAR PASCAL custom dll

Hi, I am using JNA to access a custom DLL which seems to be using the FAR PASCAL Calling Conventions, but the JVM crashes every time i try to access it. Development Guide of the dll says: BOOL FAR PASCAL GetIomemVersion(LPSTR); And Dependency Walker tells me: _GetIomemVersion@4 public class PebblePrinter{ public interface Iomem exte...

Wpf Custom Media element

Hey guys I'm fairly green when it comes to wpf, so I need a little help, here is what im looking to do. I want to create a custom media element, I want to be able to load a video and play any where from 15 secs to 1 min of the video, I want to be able to dynamically set this on load up based on user settings. I'm loading tons of videos...

Custom sort-order with SQL-Server and .NET Entity-Framework

Hello! I have a table I store contacts and their phones. Contact: ContactId (int, PK), FirstName (varchar), LastName (varchar) Phone: PhoneId (int, PK), ContactId(int FK), Number (varchar), SortOrder (tinyint) I want that under each contact, the user should be able to maintain the priority of the phones, meaning that the SortOrder co...

Custom css select boxes using jquery

Hi all, I'm using this script http://mondaybynoon.com/2009/02/23/creating-custom-form-elements-using-jquery-selects/ to create custom css select boxes in my page. Javascript code that is used to apply the css styles on selectboxes, uses their id as a parameter: $(document).ready(function() { $('#cont').selectbox({debug: true}); }); <...

custom annotations

If I create a custom annotation like this: public @interface TODO { String msg(); String start_date(); } then a method: @TODO ( msg="will be developed!", start_date="05/01/2010" ) public static void Calculator() { } after I call it: Calculator(); If I wanted that the compiler warn me about it how could I do tha...

WPF Custom Control "OnSourceTypeChanged" method is not invoked

Hey pals, let's put it short: I'm trying to create a WPF custom control that inherits from WPF Image. I have added a dependency property called "Source Type" to my control so that when databound it sets the "Source" property of the image to what I want. But the problem is that my method to perform the source changing task (i.e "OnSourc...

Getting a Target to run BEFORE anything else runs when building from Visual Studio

Hi, I'm trying to get a one-time costly target to run only when building a certain top-level project (that has many dependencies). I have no problem on getting this working from plain msbuild / command line build. I do this with setting and InitialTargets on the project, or alternatively with < BeforeBuild />. The tricky part is ...

how to write a custom control in c# to work with any windows text processor application?

I am trying to write a custom control in c# using windows api which should interact with any windows text based application. for e.g. notepad I had looked at tinyspell and it works like anything. can any one suggest how to get started? also if u know how tinyspell would work, plz help me. u can find tinyspell here http://www.tinyspell...

Android: view/ drawable custom styles possible?

What I'd like to do is change the state (really, the background) of an EditText to reflect validity of its contents. E.g. if the user enters 999 where 999 is contextually invalid, the EditText should have a red border in place of the default orange border, likewise once the text is valid it should have a green border. Methods I've expl...

Custom control with invalid property generates no error

for examle <app:CustomDropDown ID="test" runat="server" InvalidProperty="SOMETHING" /> This does not generate an error. Sometimes i spend hours trying to figure out why my custom controls are displaying no data. Most of the time it turns out they are using and old non existing property and yet no error is generated on execution. What...

C# Draw Custom Button on Existing Window's TitleBar

I need to figure out how to draw a custom button next to the minimize, maximize and close buttons within the Titlebar for ALL open windows. I have seen some solutions for how this might be done for a user created form, but none for existing windows. The end product will be a button next to the minimize button (on every window) that wi...

GridView sorting doesn't work when I Enable Caching in Custome Paging and sorting

Hi , I have a GridView that use a stored procedure for custom paging and sorting . It's OK and works fine (Both paging and sorting) , But the problem is when i Enable Caching in ObjectDataSource like : EnableCaching="True" It properly cache every page that the user visit , But at this case when the user want to sort it raise an e...

custom Dialog by extends dialog or alertDialog

hello,I want to make a custom Dialog,because i donot like it"s style,i want get a rounded rectangle rather than rectangle . i know to implement it by theme in Manifest.xml . for example :the code at activity write: android:theme="@style/Theme.CustomDialog Theme.CustomDialog.xml @drawable/filled_box true filled_box.xm...

Custom Tally Counter

Hi... I'm developing on a tally counter app. It should have a custom picker view like display showing the current count. Something like the one found in the simple, but nice, app from Pixel Research Labs. I've started to read a book on Core Animations, since I think this is the place to find what I'm looking for. Am I right? Does anybo...

Custom Tag in HTMl

Hi, I want a shopify like functionality in my app which I am developing. Shopify template engine support this syntax in theme files. <ul id="blogs"> {% for article in blogs.frontpage.articles limit: 3 %} <li><a href="{{ article.url }}">{{ article.title }}</a></li> {% endfor %} </ul> I also want this type of functionlity for min...

Custom Installer : Detect Ajax Framework

Hi one and all, i am building a custom installer for a site, and am wanting to find out, how do i detect for certain system requirements, ie my site uses ajax, so how do i check if ajax is installed, if not install it? Can i do the same for sql express? An idea that would also be great is to maybe as the user if they would like to ins...