auto

Passing auto typed vars to function in D?

This doesn't work in D: void doSomething(auto a, auto b){ // ... } I'm just curious, will this ever work? Or is this just technically impossible? (Or just plain stupid?) In anyway, can this be accomplished in any other way? I suppose I could use the ... and look through the argument list, but I'm kinda making a library for lazy n...

Auto Executing Script For linux??

My Actual Problem was to auto execute a sh file to another host and return that output in my system. Is this possible?? "" I've to execute file @ host2 and get write input @ host1 "" ...

WPF Label adapt FontSize to it's Width and Height

Hi all, I need to develop a Label control in WPF, on .net 3.5 and VisualStudio 2010, which FontSize automatically makes the text fill the control area. I dont know if create a CustomControl inheriting from label or create a UserControl which contains a Label control. I've seen an example here using a ValueConverter, but I'am not under...

WPF program can't start with a hidden main window?

I have a WPF program that is auto run via an entry in the registry on user login. The program starts with its main window hidden, checks a few things and if the startup conditions are right, makes the main window visible, otherwise the program exits with status code 0. Sometimes when the program runs, windows will present a popup saying ...

Why no initial values on {get;set;} accessors (VS 2010 C#)

This must have been asked many times but I cannot find it....sorry... Why is the following not permitted? public string MyString = "initial value" {get; private set;} (Visual C# Express 2010) ...

top navigation menu using <li>

I have build a top navigation using LI tag with display:inline/float:left property. We can not set width for the LI tag. The menu items are coming dynamically from the database. The requirement is, menu should always cover 100% width even in case there is only one item. if there are 5 items then also it should cover 100% space. Any id...

Format Table Variable Output with FOR XML AUTO

Using SQL Server 2008. I have a table variable with a single column and single row. If I do this: Declare @testsToRun Table ( testsId BigInt ) Insert Into @testsToRun Select testsId From tests Where testsId = 10 Select Top 1 * From @testsToRun For Xml Auto , Type , Root('testMessage') I get XML that looks like this: <testMessage>...

Javadoc integration with kate

I had been using netbeans for sometime now but I am trying out kate these days & loving it due to its configurable command line tools. :) However what I miss desperately is a code complete window with the javadocs in it as we get in netbeans- that way I dont have to remember any of the apis. Is there some plugin for kate (Java and/or C...

Auto-Logout with multiple tabs open

Hi, we've implemented a system similar to the one described in this other SO post. Basically, if the user doesn't do anything for 14 minutes, we prompt them that they will be logged out. If they click on "keep me logged in" we do an ajax request to keep their session alive, otherwise, they are redirected to the logout page after a minute...

Auto update sluggable field with Doctrine

Hello everyone, I'm using CodeIgniter with Doctrine in a project. One of my models has the Sluggable behavior. The slug is created according to another field X when the object is saved. I was wondering if there was a way to automatically update this slug field when the X field is updated. At the moment, if I update the X field, the slu...

scan documents using wia auto document feeder in xp and above

Hello guys, AM developing a scaning utility, that will scan using auto document feeder. i want to work on xp and above. The idea i have got is to use wia v1 for xp and wia v2 for vista, but i don't know how to go about it but i don't know much about the auto document feeder\ any ideas ...

Get image slider to auto play

Hi. I am trying to get my own image slider to auto play with an interval of 4000 milliseconds. I've tried using setTimeOut but I cannot seem to get it to work. I would appreciate it if someone could help me out. Here is example of the slider: http://www.matthewruddy.com/slider-intervalissue/ Any ideas how I can get it to auto play? He...

AntHill? How to add a project to the hill?

Anybody use AntHillPro for auto builds? If so, I'm curious how you add a .NET solution/ project to the hill (to be compiled along with everything else, etc.) This is one of those "had to be done yesterday" things but no one on my team understands how to do this (I'd expect it to be the most basic question anyone would ask when you use...

orientation auto rotation

hi guys i have 2 different views for a single nib. when i rotate the screen on iphone "simulator", the view rotates perfectly fine and the output is the desired one. but when i deploy my project on iphone and go through the same process the view doesnot change on changing the phone orientation ? in view did appear i have used [[UIDev...

Auto resizing wpf elements with scroll bars (Rich text box, list box) vb

Hey guys, I'm having a problem where I have elements such as Listboxes and Rich Text boxes that I want to set to size automatically in xaml according to the size of the window, but I only want it to resize to the size of the window and then put scrollbars if the content is any bigger than that. Unfortunately, the only way I can get scr...

Meaning of C++0x auto keyword, by example?

Hello, auto a = (Foo<T>*)malloc(sizeof(Foo<T>)); auto *b = (Foo<T>*)malloc(sizeof(Foo<T>)); I don't think it's important that templates are there, but the question is: are a and b of the same type? g++ -std=c++0x -Wall (4.4) doesn't give any errors or warnings, but I haven't run the program so I don't know if it does the same thing. ...

excel - auto balance from previous balance and value

Hi, I've never realy used excel before and I thought I'd use it to store my account details. I was wondering if someone could help me with a formula. Let's say column A contains balance and and B value (transaction value of a negative or positive number). I'm looking for the balance to automatically work itself out. From what I can g...

uiwebview autodetection phone number

hi friends, Is it possible on uiwebview autodetection phone number is stored with my json value on contact page automatically(without manual data entering in it). Regards, sathish ...

How to enable/disable auto brightness mode from API

Hi, I want to control the system settings "auto brightness", setting it ON or OFF.I'm able to control the brightness level but only if AUTO is OFF. From what I read until now there is a SCREEN_BRIGHTNESS_MODE in Settings.System but only for API level 8 or higher and also not recommended to mess wit it. But currently my phone has Android ...

auto-size iframe cross domain

I am making a web widget using iframe and javascript and i would like to make my iframe resizable to it´s content (which is loaded from other domain). I have done some search(inclusive here at StackOverflow) and i find a couple of topics but i couldn´t find any conclusions about this issue. Is this possible or not? Because atm i have ...