I'm a PHP coder but need to code some JSP...
I need help... What is the equivalent of this PHP code?
foreach($_POST as $key => $value){
$$key = $value;
}
to jsp code...
Thanks!
I want to help me
In the following link i found nice code in Ajax
http://www.w3schools.com/php/php_ajax_livesearch.asp
I want to link my code with the code you see in the link above and replace dropdown list How can I do it for I could not
where is it change in code even my code work as Ajax ??
I wish .... I wish .... I wish any somebody can …
I want to make an intellisense code snippet using Ctl K + Ctl X that actually executes code when it runs... for example, I would like to do the following:
<![CDATA[string.Format("{MM/dd/yyyy}", System.DateTime.Now);]]>
But rather than giving me that string value, I want the date in the format specified.
Another example of what I want is…
I'm looking for an equivalent of PerlCritic for PHP. PerlCritc is a static source code analyzer that qritiques code and warns about everything from unused variables, to unsafe ways to handle data to almost anything.
Is there such a thing for PHP that could (preferably) be run outside of an IDE, so that source code analysis could be automated?
Hi, couldn't find it exactly from earlier questions, but I am probably repeating an earlier question, so apologies upfront ;-)
I am looking for a simple code to embed a QR 2D code generator on a website I am building. I assume their should be some free open source code for that but I could only find paid software.
Can anyone point me in the right…
Whether we're maintaining unfamiliar code or checking out the implementation details of an Apache module it can help if we can quickly traverse the code and build up an overview of what we're looking at. Grep serves most of my daily needs but there are some cases where it just wont do.
Here's a common example of how it can help. To find the…
Hi guys, I'm using latex to write a program listing of all my code and am following this:
http://texblog.wordpress.com/2008/04/02/include-source-code-in-latex-with-listings/
It works, but my code runs of the side of the page.
How can i fix this?
Thanks
i have an asp.net mvc website where i build up most of the page using C# for example building up html tables given a set of data from my viewmodel
i also have a lot of javascript that then dynamcially modifies these tables (add row for example).
the javascript code to add a new row looks extremely similar to my "rendering" code i have in…
All great developers write reusable code, don’t they? Well, maybe, but as with all statements regarding what “great” developers do or don’t do, it’s probably an over-simplification.
A novice programmer, in particular, will encounter in the literature a general assumption of the importance of code reusability. They spend time worrying about…
The build process template and custom activity described in this post is available here: http://cid-ee034c9f620cd58d.office.live.com/self.aspx/BlogSamples/CodeMetricsSample.zip Running code metrics has been available since VS 2008, but only from inside the IDE. Yesterday Microsoft finally releases a Visual Studio Code Metrics Power…
I am facing the following dilemma at the moment. I am using code from a scientific paper in a commercial project. So basically I copied and pasted the code from the paper's pdf into my code editor and use it in my own code. The code in the paper does not have any copy restrictions or license(like the GPL) so I thought I would be ok…
I would like to redistribute my app (PHP) in a way that the user gets the front end (presentation) layer which is using the API on my server through a web service.
I want the user to be able to alter his part of the app but at the same time exclude such altered app from the normal support and offer support on pay by the hour basis.…
I've often seen such comments be used:
function foo() {
...
} // foo
while (...) {
...
} // while
if (...) {
...
} // if
and sometimes even as far as
if (condition) {
...
} // if (condition)
I've never understood this practice and thus never applied it. If your code is so long that you need to know what this…
This question got me thinking what products of the programming effort belong to the employer, and what don't.
The two extremes are (0) the code - it apparently belongs to the employer and (1) the learned personal and technical skills. But what is in between? Who owns the pseudocode/algorithm? Who owns the general idea of the…
I've often seen such comments be used:
function foo() {
...
} // foo
while (...) {
...
} // while
if (...) {
...
} // if
and sometimes even as far as
if (condition) {
...
} // if (condition)
I've never understood this practice and thus never applied it. If your code is so long that you need to know what…
Starting a project with Zend Framework 1.10 and Doctrine 2 (Beta1). I am using namespaces in my own library code.
When generating code coverage reports I get a Fatal Error about Redeclaring a class. To provide more info, I've commented out the xdebug_disable() call in my phpunit executable so you can see the function…
All the questions I've seen regarding iOS universal apps (with or without cocos2d) deal with the "how to add graphics to a universal app".
My question is, how does the code need to be written to ensure that the sprites appear appropriately on the screen (given that an iPhone 5's resolution is not proportional to an…
Hi all
How to play a embedded code in lightbox type pop up?
Here is the whole code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta…
Quite some time ago I remember reading an article from 'Joel on Software' that mentioned collocation of information in code was important.
By collocation, I mean that relevant information about the code is present when the code is. I'm currently writing an article that has a small bit in it about…
In my projects I use quite a lot of static classes. These are usually classes that naturally seem to fit into a single-instance type of thing. Many times I use static classes and recently I've started using some singletons.
How many of these does it take to become a code smell? For instance, in…
I'm evaluating the Oracle Universal Connection Pool (UCP) included with their 11.2 JDBC driver, but cannot get the labeling functionality to work properly (which I'd like to use to minimize the amount of ALTER SESSION statements).
I'm basically following their sample code to implement the…
What would be the settings to build and have accepted an universal app for both the iPad and iPhone?
That is, what would be the settings in Project X Info Build for
Architectures [ARCHS] ("Standard(armv6)" or "Optimized(armv6 armv7)" or other)
Valid Architectures [VALID_ARCHS] ("armv6…
I have an ASP.NET MVC 4 application that using the Universal providers for session state:
<sessionState mode="Custom" sqlConnectionString="DefaultConnection" customProvider="DefaultSessionProvider">
<providers>
<add name="DefaultSessionProvider"…
Hello guys,
I was doing a project as Universal binary for iPhone/iPad. I created the iPhone app side
and I was doing to complete the iPad too. I noticed one thing, on iPad classes I use the UIPopoverController class, means that when I build now for 3.2 in the Simulator, it…
I'm trying to get an iPad/iPhone app to run on my iPad. (it builds and runs fine on the simulator) I went through the menu to create a new universal project. Then I added another library that my app will use (route-me), and i keep getting the following linker errors:
…