development

Umbraco Development Setup Visual Studio

Hi, I am a new developer for Umbraco. I am having problem setting up my Visual Studio 2010 as a developer platform for umbraco 4.5.x with TFS and between remote teams. My current setup is to open the whole umbraco site in Visual studio and tideup with TFS. Obeviusly this means that some of the files and folders gets locked up when comm...

How not to give up on VIM?

Hi, I have started to do some programming using VIM. I have very mixed feelings so far. On one side I do love the idea, on the other - it is just hard to remember everything. So I took the approach of learning while actually doing some stuff (for Ruby on rails development). Unfortunately there is no chance in hell for me to be more pro...

jQuery Plugin: Get the "this" object inside other functions

Hi, I am trying to crate a panorama slider as a jQuery plugin, and I have the following code.. $.fn.panorama = function(settings) { var myPanorama = this; .. this.mousedown(function(e){ //do stuff $(this).css... //this all work } //Call mouseup on document in case user lets go of mouse outside dr...

How can an app hook into text selection system-wide?

I'd like to be able to track text selections across any application -- is there a hook to enable this behavior on Win32? Bonus: Anyone gurus know the equivalent hooks for OS X & Linux? ...

How to set fakemail as default MTA in OS X

Hi, I'm looking for a way to make fakemail the default gateway for all emails sent by my system. When using mail, PHP mail or any programming language email sending, I want the mail to go to fakemail. Is it possible ? If yes, how ? I'm on Snow Lepoard. Thanks. ...

Pretty-printing Wordpress HTML output for development purposes

Is there a simple way (plugin / function) that uses Tidy or some other lib to pretty-print Wordpress's HTML output? It's unreadable as it is and it's almost impossible to write a theme with proper indentation with all the includes / hooks going on all over the place. Performance is not an issue as this only needs to be active for devel...

Detect if user has any application running in fullscreen

I did a notifier app in C# that sits on the taskbar and display a balloon when i get something from it, similar to Google Talk when you receive a new email but at the momment it ignores if i am running an application on fullscreen or not and just do it is job. How can i detect and make sure an application is in fullscreen mode ? I dont ...

Android Development: Button onClickListeners Help

Basically, so far I've just got an add and minus button which will change the value of a TextView. I followed the second example under "Event Listeners" on http://developer.android.com/guide/topics/ui/ui-events.html The problem is I get 4 errors when I go to compile, I don't see what I'm doing wrong? Please can someone point out if th...

Alternative to having to select device every time I run an Android application?

Is there some way to have Eclipse NOT present the Android Device Chooser dialog every time I run the Android application I'm developing? I'm using a running Android device, not an AVD. There's got to be some place I can set my default device to be the Android device so that I don't have to double-click on the device entry in the ADC di...

How To Encrypt The Source Code Of PHP Files

How can I encrypt the source code of PHP Files? I have used some proprietary software which have their source code encrypted. Plus the encryption code also makes the execution faster. How can this be done? ...

What features should a new SQL-based Rapid Development tool have?

I am interested in developing a new SQL-based RDS which can generate prototype CRUD-oriented 4GL code which can then be easily customized. So I am looking for opinions, suggestions, etc. in what features should a new RDS have? I have looked at several products. FileMaker is more or less the type of product I'm looking for, but it's no...

NsMutable array retain count

Hey, i used the instruments to find leaks in my iphone app and i found that i have leak in this line in my code tableViewController.dataSource = [[NSMutableArray alloc] initWithArray:[subjects_dic allKeys]]; the property dataSource defined as retain. is this a mistake ?! ...

QA vs. Development positions

This isn't a coding question, but a career question that I am stumped on. Any advice is greatly appreciated. I graduated college this past spring and since then have worked in the QA department for a large e-commerce website for the past three months. My duties including running automation and manual tests, writing test scripts, writin...

Iphone compile warning

Hey, im compiling my app , which is working great and i wanted to ask you 2 questions 1. im getting about 14 warnings like that no '-addCategory' method found which i know how to solve but even after i cleaned everything added the function to the header file and compile again it's still there i cant get rid of it. 2. im pretty ne...

How to optimize/refactor such code?

In the current project, there are lots of GetData() method, which get different kind of data from hand written database at run time, and set them in different fields in a class. The projects then have such methods. void GetData(Datatype type, int& value); void GetData(Datatype type, double& value); void GetData(Datatype type, long& valu...

Firefox Extension intercepting dictionary action "add word to dictionary"

I am looking for a firefox extension solution to intercept a firefox dictionary action: When a user chooses the action "add word to dictionary" i want to modify that word before it gets inserted into the user's down dictionary file persdict.dat . Is this possible? And how can it be done? Is there anything special i need to take care o...

Developing FireFox extension, clipboard

I want to listen on an event (clipboard event ?) in order to alter the clipboards content. Actually i did not find out how i can grab the clipboards content after it has been filled (using ctrl+c). I tried to redefine the shortcut ctrl+c, but this way i only get what was in the clipboard before i pushed the shortcut. Where do i need t...

How to Develop TSQL in Visual Studio 2010 Database Projects

Silly sounding question, I know... Let me lay some groundwork first. I have successfully created a database project comprised of the hundreds of tables, stored procedures, indexes, et.al. that make up our production database. I have successfully added the solution to source control (TFS). I have made a change (as a test) to some of th...

What are the advantages of doing unit testing over plain "assertions" ?

I am currently building an application with one of the models being fairly complex. I am currently using assertions raise "error message" if "settings failed" question is - what are the advantages of using the Unit:testing frameworks over these assertions? ...

Mobile cross-platform classes

Does the fact that different mobile platforms can use similar languages implies that you can reuse classes between these platform ? For example c++ code on iOS, Android and Symbian devices. Or is there some other things to take into account, libraries, etc. ? In the same spirit would it be possible to share C# code between iOS, Android ...