custom

Wordpress different featured image size for different post types

You can enable featured images for posts and set their size by using the following code in your function.php file: add_theme_support('post-thumbnails'); set_post_thumbnail_size(107, 69, true); but this sets the image size globally for any post types. Im using wordpress 3.0 and have created my own custom post type. Is it possible to ap...

Core Data question

Hi, the problem I am trying to solve in an application that is using Core Data is to be able to hold a calculated value in a NSManagedObject custom ivar. The calculated value that I want to store is in fact an image. I do not want to persist these images; I build them and destroy them throughout the lifetime of the application. I tried a...

Add Custom Control To ComboBox

Hi All I create a custom User control and I want this custom control placed inside a combo box. I'm using this code: public class UserControlComboBox : ComboBox, IMessageFilter { public readonly NimaDatePickerUC.MiladiNimaDatePickerUC UserControl = new NimaDatePickerUC.MiladiNimaDatePickerUC(); protected override void WndProc(r...

iPhone Problem with custom cell

I try this code but it's a mistake because i have a repetition of title and description... Someone can help me please? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; CustomCell *cell=(CustomCell *)[tableView dequeueReusableCellWithIden...

Error with custom rendering my list view..please help !

Hi, I am trying to render my listview containing names of doctors and few more details using a tablelayout component showing 4 textviews in each listview item. But I get an error while I am doing this..PLEASE HELP! I have a project deadline tomorrow. When I debug by code, the control goes till IconicAdapter() constructer, from there it ...

ASP.NET MVC: generating action link with custom html in it

Hello! How can I generate action link with custom html inside. Like following: <a href="http://blah-blah/....."&gt; <span class="icon"/> New customer </a> ...

google maps custom markers / shadow help needed

Hi all, so I have google maps directions on my website, I have managed to change the icon, although I can't seem to get it to align it with the original marker shadow (which I actually need help removing also, it's just a good point to show that my custom marker is off). I hope this made sense? The url is: http://www.emuholidaypark.com....

Applying Class to Customer Zend Decorator

I found code that would change the standard dt and dd tags to table tags for a Zend_Form_Element. Here is the code I used: $element->setDecorators(array( 'ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td', 'class' => 'element')), array('Label', array('tag' => 'td', 'class' => 'rightAlign')),...

Zend Framework: How to add a custom validation rule in Zend Form?

Hi I have a created a zend form, works fine along with validations. Is there anyway I can add a custom validation within this form for the email address, for example I want to set a validation to check if the email address supplied by the user is hotmail, as I want to accept only hotmail email addresses. <?php class Application_Form_R...

SSIS Custom Task - How to Debug?

I'm writing a custom SSIS task. At the moment, each time I make a code change, I'm having to recompile and re-gac the containing assembly, restart my test SSIS package, delete and re-add the task from the tool box, then re-add the task and run the package. Does anyone know if there's a way of stepping through my custom ssis task code at...

Linq orderby two-column sort with custom comparer

List<MyObject> objects = (from a in alist join b in blist on a.ID equals b.ID where a.Number != 4 orderby b.Rank, a.CustomField select a).ToList(); This is my query and I want to use a custom Comparer for the CustomField property. Is there a way to do that in a two-field orderby? I am able to do this: List<MyObject> o...

WordPress Mobile Pack Custom Page Template

Heya, Hoping someone can help. I've inherited a WP based website which has WPMP already installed & activated & working on it (I can see it work on many pages). I've had to create a custom template & a few pages that use this template. Unfortunately, when I switch to mobile mode (or check out the new pages on my iPhone), no posts show...

Excel Custom Data Format

I'm using NPOI to generate XLS spreadsheets. NPOI is an Excel Spreadsheet generation library/API that is available on codeplex, enables you to create workbooks, formatting, formulae and so on and so forth....I use it to create workbooks with multiple sheets that contain the output of the various calculations. I've used the following cus...

Custom installation file for Windows program

Hi, I need to create an installation file for Windows in such a way that the setup: Registers the .exe at startup so it launches everytime machine is booted Runs the .exe and opens a webpage upon completing installation . Could anyone please give me some tips on how I could do this? ...

Drupal 6: How to sort/filter search results by date

Hello, How to customize standard search behavior in Drupal 6? I need search results to be sorted by date. In example, people want to show items within 2 past weeks or something like that. I've tried a lot things on this reference without luck. Have you ever encountered such problem? Any help will b appreciated. Thanks! ...

Actionlinks add wrong parameter when custom routes is used

I am using this custom route to enable paging in my index method in Home controller: routes.MapRoute( _ "HomePage", _ "Home/Index/{page_num}", _ New With {.controller = "Home", .action = "Index", .page_num = ""} _ ) But when I navigate to any page for example page 2, actionlinks append the page number to the url: ...

Look for great ways to popularize custom software program

Hey all, I work in a software company with the orientation of recovery, partition, and backup. We began custom software program, but we are a little bit lack of such marketing experience. Any one here could tell me some advice.. Thank u all ...

Array, EAV, Serialized LOB for custom fields?

I've been trying to answer a complex Mysql data structure problem for custom fields for an online app. I'm fairly new to Mysql so any input is appreciated. The current database is a relational database and each user of the service will share the same database and tables. Here is an example of what I'm trying to do. Let's say I'm tryi...

how to disable custom errors only for a specific IP address

Hi, Does anyone have any idea how to disable asp.net custom errors only for a specific ip address? this will ease debugging exceptions on my server from my office.. Thanks in advance ...

EBAY: Custom Form Fields

Hi guys, I'm trying to create similar select boxes on my ebay product page. Any ideas would be greatfully apreciated! See caption below; http://markup.io/v/wnmqqc4e4a33 ...