hello all
i have a problem i have some dynamic button and i want to put some style on it
like my other button(Xaml button).how can i fetch the xaml code using c#?
I get this error
object has no attribute 'im_func'
with this
class Test(object):
def __init__(self, f):
self.func = f
def __call__( self, *args ):
return self.func(*args)
pylons code:
class TestController(BaseController):
@Test
def index(self):
return 'hello world'
Hello, once hardware is rotated, I use (void)didRotateFromInterfaceOrientation to adapt view when rotation is enabled but, wich method or how to detect that iphone got back to vertical position in order to readapt view???
Hello,
For each click I want to increase the font size.
$('#fontplus').each(function('click') {
var fs = $('#bod').css('font-size');
$('#bod').css('font-size',fs+1);
});
<div id="fontplus">+</div>
Thanks
Jean
Hello,
I must warn you, this code will heart your eyes, so please don't judge me, i'm trying to improve the way I handle errors
all my tests are like this :
if ($something < 27)
{
$error_IP= '<div class="error_message">something bad</div> ';
}else{
$erreur_IP='';
}
and here's the ugliest thing :
if( !isset($_POST) || ($erreur_captcha !='') || ($erreur_email !='') || ($erreur_hebergeurVide != '') || ($erreur_paysVide != '') || ($erreur_slotVide != '') || ($erreur_rconVide != '') || ($erreur_tick != '') + a lot more :d )
What do you suggest to me to optimize my errors handling ?
Thank you
Hello guys,
can somebody tell me how to pipe the output of the serial port to a file in Windows?
In Linux the command would be:
cat /dev/ttyS0 > /opt/logs/Serial.log
Thanks in advance
Hello everyone,
What is Eclipse doing when building workspace process is running? Can i disable it because it is taking a long time to complete and i dont know if it is necessary. Thank you
Hello,
I have an ASP.NET web application which was previously published using the Publish feature of VS2008.
Recently I switched to "Web Deployment Projects" for VS2008. When deploying I noticed that the ~/App_GlobalResources directory is not copied to the release folder on build anymore.
How can I make sure the App_GlobalResources directory is copied along?
Hello,
GNU Emacs 23.1.1
Fedora 13
I can select the colour theme by
M-x color-theme-select
I scroll down and select the
clarity and beauty
This works ok. However, in my configuration I am not sure how to select this. This is what I have, but doesn't work.
(require 'color-theme)
(color-theme-ClarityandBeauty)
many thanks for any suggestions,
Hello all,
I was wondering if its possible to reference one android project from another android project. I have two projects, test1 and test2. I have added test2 in the project properties of test1 under the projects tab. Unfortunately it keeps throwing a NoClassDefFoundError. Also, would the second android project (test2) be installed as a separate apk on the phone or would it be part of the encapsulating android project (test1) ?
Thanks very much!
Hello,
i own a website where users can vote/rate things and i want to improve the poor inputbox (from 1 to 10) to improve visual rendering.
I was thinking of a bar, which have 10 ' | ' you can move the cursor from one to ten (it doesn't have to be AJAX because the rating is only added at the end of the form)
I'm sure you already seend this king of thing but i actually can't find any plugin of it.
Any ideas please ?
Hello,
I've removed the primary key of one table of my MySQL database, but now, when I use the MySQL Administrator and try to edit some data of this table, it doesn't allow me to do this.
The button edit that appears in the bottom of the table keeps visible, but disabled to click.
Hello,
are there free, recommendable Tools for data modeling?
ERM/ORM Diagrams
Creating database models (SQL SERVER
2005)
Simple to use like Visio(no license
here)
Code generation is only a nice to
have (VB.Net)
Hello,
I have a jquery callback function. In that function I want it to change the value of a varible that is in a higher scope, for somereason it is not doing that. Here is the code.
Thanks
function add() {
var returnedData = {
my_id: 0
};
$.post("add_event.php", { event : toSendText }, function(data) {returnedData.my_id = 5;}, "json");
if(add_page == true){
alert(returnedData.my_id);
window.open('content-list.php?cal_id=');
}
}
hello,
i am developing wpf application..
i need your suggestions.
i have to make reports in my application...
so which one is best, by crystal report or by using sql server reporting service..
friends what you say ? give ur suggestion which one is best and why ???
Hello,
I would like to know if is there any way to convert a plain unicode string to HTML in Genshi, so, for example, it renders newlines as <br/>.
I want this to render some text entered in a textarea.
Thanks in advance!
Hello
I have a .NET CF project. In the project directory I put a simple xml file (users.xml) which has to be read by the device. When I debug the application on device emulator and try to load the file from code, the Exception is thrown (FileNotFoundException "Could not find file '\users.xml'.").
Is there a mechanism to automatically deploy also configuration files to a device emulator?
Hello,
I am developing a web application, where i want to give freedom of changing style elements of css linked to a page via an admin screen. So I am wondering is there any way I can load CSS file into a C# object or into XML passable formate and update it from the admin screen inputs?
Thank you,
Krishnaraj
Hello I'm watching a directory using FileSystemWatcher.
When a file is created into that directory - my watcher grabs and transfers it to the network drive.
My problem is that when a Microsoft-office file is opened, a temporary file is created in the watched directory. I can't find a way to ignore these files and also could not find when I should move these file to the network drive.
Hello,
I can easily draw the projection of a 3D set of points onto the plane with normal vector (1,1,1), by using the matrix
(-sqrt(3)/2 sqrt(3)/2 0)
(-1/2 -1/2 1).
I want to do the same thing, but for a projection onto an arbitrary plane with normal vector (a,b,c) instead of (1,1,1). How to find the matrix?
Thanks in advance!
Hello, I want to know whether the disk that a given volume resides on is removable (CM_DEVCAP_REMOVABLE). Looking for pointers on win32.
Clarify: What I am really trying to find out is whether the disk that the volume resides on is connected on a port (eg. USB) that is external to the computer.
Hello,
We have an .NET client app working against SQL Server 2005 (clustered), do I need to do something special in the client app to make it cluster aware?
Thanks.