hi all,
There is a problem in this code I can not detected
<?php echo "<a href ='$rows['Link']'> .$rows['UploadName']</a> "; ?>
Do you find you have a solution???
Thank you very much.
I am working on a search query in PostgreSQL, and one of the things I do is sort my query results by the number of parameters matched. I have no clue how this can be done. Does anyone have a suggestion or solution?
Table
brand color type engine
Ford Blue 4-door V8
Maserati Blue 2-door V12
Saturn Green 4-door V8
GM Yellow 1-door V4
Current Query
SELECT brand FROM table WHERE color = 'Blue' or type = '4-door' or engine = 'V8'
Result Should Be
Ford (3 match)
Saturn (2 match)
Maserati (1 match)
I am getting a Unexpected error in some of the Selenium RC code. Some time it works fine but sometimes it gives the Unexpected error and the scripts stop at that line only.
Example:
There is script for "Login" than it click on the link than fills some form than press some button.
Sometimes its run till Login, sometimes till click of a link sometimes it executes full.
Please give me some solution for this its urgent.
I mostly want to hear peoples thoughts. This is more like a poll then anything else. Please do not answer if you don't mind it or fairly like or dislike it. I am wondering if it became a solution for anyone or made one easier.
The lack of expression trees in Compact Framework has bugged me for some time now, but I haven't really looked for a solution.
Today, I've found a blog post about an alternative System.Linq.Expressions built on top of Mono System.Core and used e.g. by db4o (you can find it here).
My question is - have you used this library and if so, what were your experiences with it (especially regarding performance)?
I have a hyper link control and I set the NavigateURL and the ImageURL property at runtime. I also need to set the class of the image tag that it generates but I cannot figure out how I can do that. The solution mentioned here
http://stackoverflow.com/questions/1428879/apply-css-class-to-image-in-asphyperlink
does not work because the image url is hard coded.
any ideas?
Programming challenge: Given a set of integers [1, 2, 3, 4, 5] I would like to generate all possible k-combinations in ascending size order in Java; e.g.
[1], [2], [3], [4], [5], [1, 2], [1, 3] ... [1, 2, 3, 4, 5]
It is fairly easy to produce a recursive solution that generates all combinations and then sort them afterwards but I imagine there's a more efficient way that removes the need for the additional sort.
I have forms that I want to display in different languages : I used the label parameter to set a parameter, and used ugettext() on the labels :
agreed_tos = forms.BooleanField(label=ugettext('I agree to the terms of service and to the privacy policy.'))
But when I am rendering the form in my template, using
{{form.as_p}}
The labels are not translated. Does somebody have a solution for this problem ?
Hi,
I am getting the following error: Invalid authorization specification
I've narrowed down the error to my connection string. I have verified the server name, database, user & password are correct. Here is the string:
"Provider=SQLOLEDB;Server=xxxxx.db.12345.hostedresource.com;Database=foo;UID=fooUser;PWD=fooPW"
The SQL server is hosted on Godaddy so I don't have access to its settings.
Please help, I've scoured the internet for a solution!
I want to check server response in javascript. For example I have a server A which will host the script. On excuting the script it will check if the server B is responding or not. If yest continue other wise redirect to server C. Is this possible with Javascript/Jquery? If not what could be a possible solution in PHP?
I'm trying to send an email in Java but when I read the body of the email in Outlook, it's gotten rid of all my linebreaks. I'm putting \n at the ends of the lines but is there something special I need to do other than that? The receivers are always going to be using Outlook.
I found a page on microsoft.com that says there's a 'Remove line breaks' "feature" in Outlook so does this mean there's no solution to get around that other than un-checking that setting?
Thanks
In Java, is there a way (at runtime) to obtain the bytecode which defined a particular class?
Put another way, is there a way to obtain the byte[] array passed to ClassLoader.defineClass(String name, byte[] b, int off, int len) when a particular class was loaded? I see that this method is declared final, so creating a custom ClassLoader to intercept class definitions seems out of the question.
In the past, I have used the class's ClassLoader to obtain the bytecode via the getResourceAsStream(String) method, but I would prefer a more canonical solution.
Are there any libraries or frameworks that provide the functionality of a browser, but do not need to actually render physically onto the screen?
I want to automate navigation on web pages (Mechanize does this, for example), but I want the full browser experience, including Javascript. Thus, I'd like to have a virtual browser of some sort, that I can use to "click on links" programmatically, have DOM elements and JS scripts render within it, and manipulate these elements.
Solution preferably in Python, but I can manage others.
Hi,
i have an icon image and text like the following, the code source of everything is :
<img src="...." align="absmiddle" /> My Title Here
The problem is that the icon is not aligned vertically with the title in chrome better than firefox.
I think the absmiddle doesn't work at all ! is there any solution, i don't want to use a table with 2 columns to fix this issue.
Thanks
What does Error 3112 indicate when compacting an MDB file?
The Error description is "Records can't be read; no read permission on 'xyz123.mdb'"
There is a known issue with the Compact function on some versions of Access MDBs. Is the solution in this case to run the Microsoft utility JETCOMP.EXE on this file?
What are the other possible causes of this error?
Does anyone know if activemodel works with 2.3.5? I'm looking for this exact functionality (namely, validations for non-AR objects) and I'm trying to find a clean solution for a Rails 2.3.5 app.
Or if anyone knows of a good gem/plugin to use that can mimic activerecord like validations for non AR objects, I'm all ears
I am trying to have a UI which is a full screen UIWebView. When the view is touched the tool bar appears.
I can do everything but get the touchend event in the UIWebView. I have tried putting a UIColor.Clear'd UIView ontop and catching TouchEnd there and passing it on, but would like a better solution.
I understand that we are not supposed to subclass the UIWebView from the docs.
Ideas?
I'm trying to build a wedding-stuff related directory.
I basically have a whole load of links that are sorted by 2 categories: ZIP code and type of link.
Also I need the users to have the ability to rate links and leave comments.
What is the best software solution to build this?
I use jquery's .submit() to intercept user's submit event, however I found a problem.
When the user single click the submit button, the form is submitted normally, but if a user deliberately fast click it multiple times, it will submit multiple times, which will cause duplicated data in the database.
What's the solution for this kind of problem ?
Hi guys,
I have a table where fields are 40 varchars long, but from time to time I would have to store text ( 250-1000 characters long ) there. What would be the best solution, to try and fit it into the table or just make a separate text file associated with each table?
Thanks!
Is there any way to register a global event handler for catching mouse events in a Silverlight application? I'd like to avoid subscribing to the mouse event handlers of each FrameworkElement and find a more elegant solution (bubbled events).
Thanks
Hello All,
How do i Convert .doc format to pdf file from iphone .
i Want same layout as .doc format.
i Tried with html format but did not get any success.
anyone suggest any solution would be appreciated.
Thank you.
Is it possible to "peek ahead" while iterating an array in PHP 5.2? For example, I often use foreach to manipulate data from an array:
foreach($array as $object) {
// do something
}
But I often need to peek at the next element while going through the array. I know I could use a for loop and reference the next item by it's index ($array[$i+1]), but it wouldn't work for associative arrays. Is there any elegant solution for my problem, perhaps involving SPL?
My question may be a noob one but:
I want to execute a php script when a user timeout. The only way I found to do so is to make the server execute a script every second or minute for instance, get the last activity of every user and execute a script when the last activity is older than (now() - timeout).
is this the appropriate solution? Is this will slow the website significantly?
Many thanks in advance!
Hi,
I have a class Test in C:/proj/test_xml/Test.java. Given
parser.parse("test.xml");
I need a way to parse test.xml whether it is in current directory, proj or in C:/
Also, the solution should not make use of java.io
Thanks