Hi All,
I want to know, what is a rails way of converting a subclass record to another subclass record, just changing type isn't working and also superclass to subclass and vice versa.
Thanks in advance
Markiv
I'm localizing my iPhone app for multiple languages, and in addition to changing some of the strings I need to change some backgrounds. Is it possible to query the iPhone and get the user's language code?
Thanks!
I'm trying to integrate vBulliten and Django's user databases. I know vB uses a md5 algorithm to hash it's passwords, with a salt. I have the salt data and the password for each vB user, and would like to know how to import those accounts onto Django.
I've tried the obvious, changing the Django user's password to;
md5$vb's_salt$vb's_password
This just throws back Django's log-in form, with a message saying "username and password does not match"
Any ideas?
I have a silverlight application that is set to use 100% browser height.
As I dynamically add controls to a canvas (which can be dragged around), I would like the expand the canvas vertically.
Ideally show the browser scrollbar so the user can move up or down, if that can't be done, use the scrollbar control. I would also need to handle the user changing the size of the browser. Any suggestions on how to do this ?
Cheers,
Faced problem while setting background color for any element in Visual Studio 2010 editor. Selection color doesn't override this background color. So then it's very inconvenient to work with selections in editor.
Case when only string literal is selected it's almost impossible to distinguish colors and see what part of string is selected.
Is there any possibility to fix the problem by changing some options? Or it's a Visual Studio bug?
I'm wondering if it is possible using .NET to call a remote web service and in effect specify which IP the call is made on.
I'm consuming a service that limits the number of calls I can make based on IP. The service costs in the 20k range after the free limit is used up. I'm very close to enough calls but not quite there using the free service. My server has 3 IP so I could in effect triple the number of calls I could make to the remote service by changing the IP.
Where I work, we use Bugzilla extensively for bug and feature tracking. We take advantage of the built in milestones to help us manage our timelines better, but sometimes priorities shift and milestones need to be rearranged. During this time we use the "change several bugs at once" feature to move them around, but the result is a ton of bugspam for everyone involved (except the person actually doing the changing, of course).
Is there any way to easily turn off emails if many bugs are being changed at once?
I maintain and develop on the Windows Mobile platform.
I know the market is changing rapidly with iPhone and Android gaining market shares.
There are also app development platforms like rhomobile/titanium.
Are there any platform/non platform specific mobile conferences this year?
What would be some of the important/useful conferences to attend in the mobile arena?
Thanks in advance.
Im building an automatic refreshing comment section for my website using jQuery .load. So I am using a javascript 'setTimeout' timer to check for new comments.
But after doing some stuff like changing comment pages or deleting (all using ajax), a few old timers keep running, even though I used clearTimeout before loading new ajax content.
Is there some way to clear ALL javascript timers when I load new ajax content?
i am trying to change the input field when users changes the quantity of items in a text field.
Here i am iterating my list from my database. Now i have to make invoice for customer.
In my code , if i am changing quantity of a single item, then it is effecting all the other items in the list. I want to change only to the specific items,where its quantity has been change.
Below code is giving me error. It is changing all the items value on single change of item quantity.
my code;
<script type="text/javascript">
$(document).ready(function(){
$(function() {
$('input[name="quantity"]').change(function() {
var unitprice = $('input[name^="unitprice"]').val();
$(this).parents('tr').find('input[name^="price"]').val($(this).val() * unitprice);
});
});
});
</script>
<tr>
<td height="65%" valign="top" width="100%">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<s:iterator value="#session.BOK" status="userStatus">
<tr style="height: 10px;">
<td width="65%" align="left"><s:property value="bookTitile"/></td>
<td width="10%" align="left"><s:textfield name="unitprice" value="%{price}" size="4"/></td>
<td width="10%" align="center"><s:textfield name="quantity" value="%{quantity}" size="2"/></td>
<td width="15%" align="center"><s:textfield name="price" size="6"></s:textfield> </td>
</tr>
</s:iterator>
</table>
</td>
</tr>
output looks like this image...
I'm making a slideshow and the images won't be static, they'll be pulled in dynamically through an array and finally it will look like this:
What i'm wondering is, what is more CPU friendly, CSS3 & jQuery making transitions fade simply by changing the CSS class of the div that will fill the screen, or, Canvas with drawn on it refreshing each time?
I have a criteria page in my asp.net application. When user clicks report button, firstly in a new page results are binded to a datagrid, then this page is exported to excel file with changing content type method.
That normally works, but when large amount of data comes, system.outofmemoryexception is thrown.
Does anyone know a way to fix this problem, or another usefull technic to do?
Hi,
I have some abstract class, in one of its method I use a string field which is supposed to be specific to the subclasses. I wonder what is the bect practice to implemnet this? via field and setting the field value in a consructors of the subclasses? via a static field and changing the value in every subclass?
What would you suggest?
We are building a site with Coda-Slider and are wondering if its possible to change the title of the page when changing tabs (without having to refresh the page)? I'm not that great at jQuery yet (let alone straight javascript), so I'm not sure if this is even possible. We're using version 2.0 of Coda-Slider and loading the latest jQuery libraries from Google.
I have a file that I need to "protect" so that it cannot be copied! I am using Python on Windows XP.
I think it may just be changing file permissions??
Hi,
I am developing one application using C# for processing MSWord files. My application gets hang when I pass invalid .doc file as an input. For example, if I have one foo.pdf file and I pass it to my application after changing its extension (foo.doc).
Is it possible to check whether file is valid doc file before trying to open it?
Please enlighten !!!!
Thanks in advance
Hi I guess we cannot do this but was just curious if I could do something like -
Select * from Employee where EmployeeId=1
and then use the data in the above statement and directly insert into a table with just changing the employeeid...or just this way-
insert into Employee ( Select * from Employee where EmployeeId=1)
its probably stupid from my side...but I just felt the need to do this a lot of times...so just was curious if there was any way to achieve it..
Hi all,
I need my program to send a request to a server. The problem is, the server only recognizes ös,äs und üs, but JAVA and/or Android don't know them. `How can I send a request with a String like "Hermann-Löns" without JAVA/Android "changing" the ö.... Oh and btw., "oe" isn't recognized by the server too, already tried that...
thx for help!
I'm trying to display with css the navigation buttons that are located inside my jquery rotating banner.
Which are:
<a class="ls-nav-prev" href="#"></a>
<a class="ls-nav-next" href="#"></a>
For some reason I can't show them, I've tried changing their position, setting a z-index, adding a background-image and color.
Here's the website:
http://npmaudiovisual.com/esde/
This is what I have:
This is what I should have (buttons on corners)
I have a lotus view that stores a number. I need to perform some math against the value, but I am having a lot of problems getting the types to match up.
doc.numOfGold = numGold
and CInt(doc.numOfGold) = numGold
and CInt(doc.numOfGold) = CInt(numGold)
and doc.numOfGold = CInt(numGold)
all return type mismatch. I've tried changing the column properties to treat it as a decimal, with no better luck.
Any thoughts?
Thanks!
I have configured my emacs to run zsh shell within ansi-term. However, copy/paste no longer works i.e. nothing is getting pasted from kill-ring to the terminal.
Changing the TERM to vt100, or eterm doesn't solve the problem.
Would appreciate any ideas or solution.
Thanks
Sandeep
Hi,
Can any 1 please tell or show the difference in the behaviour of any program before and after I "set endian little" in gdb on solaris machine?
I want to know the effect of changing it.
Thanks!
Dear all,
By default GWT RichTextArea is transparent against the body background etc, this is true for Firefox, Chrome and Safari. But for Internet Explorer, it is not. Changing the css for like background-color etc doesn't seems to help, it is still giving me a white background within RichTextArea.
Need your assistance, thanks in advance :)
I have an array of strings that I would like to use the join function on. However, I would like to prefix each string with the same string. Can I do this in one line as opposed to iterating through the array first and changing each value before using join?