Can someone explain this to me? In particular the difference between:
http://github.com/whymirror/greg and http://piumarta.com/software/peg/
The former being a re-entrant version of the later.
Hi !
Noticed strange thing. If I build & run my GL-ES app on simulator for 3.0 SDK -- frame rate around 30 fps. If I change to 3.1.3 version -- frame rate drops to 4-5 fps.
What happens ?
Thanks
For each web request (file or directory) that doesn't start with /en-US/, I want to
serve up the original resource if it exists, otherwise serve up the /en-US/ version.
How would I do this using rewrite rules in a .htaccess file?
Who can give me a link for the operator= of vector in MSDN?
Why I can only find operator[]?
If operator= is just something default, like copy everything in A to B, how this following code works?
vector<double> v(100,1);
v = vector<double>(200,2); // if operator= is just a trivail version, how to make sure the old v get cleared?
So in assembly I declare the following String:
Sample db "This is a sample string",0
In GDB I type "p Sample" (without quotes) and it spits out 0x73696854. I want the actual String to print out. So I tried "printf "%s", Sample" (again, without quotes) and it spits out "Cannot access memory at address 0x73696854."
Short version:
How do I print a string in GDB?
Hi All,
I am pretty new in developing cocoa applications. I have developed a small UI application using cocoa. I wanted to add some information on about screen, currently it shows the app name and version which is 1.00.
Can any one help me how i can add some information in about screen, is it possible to add information programmatically instead of hard coding it ?
Any help will be appreciated.
Eclipse Vaadin plugin has cool autobuild feature. Just clicking "restart application" in debug console will bring up to date application version to live.
Unfortunately importing maven generated vaadin project(using m2e) and copy-pasting .project buildCommands and natures from vaadin eclipse plugin generated project does not works.
I'm unnable to "Run on server...", tomcat does not deploy app for unknown reason. I can see app in wtpapps folder but it still does not deploys.
I am trying to figure out the best way to use ANT to precompile JSPs that will be deployed to an Oracle application server. Even though I am deploying to an Oracle app server I would like to avoid using Oracle's version of ANT.
Hi there,
I have a whole bunch of mavenised projects, and I want to check that each project has the correct version of a parent pom.
One way could be to checkout each project in turn, and then have a script that reads the parent section.
Or is these some way of determining this from looking at the repository?
Has anyone else had to do something similar?
Thanks.
I'm looking for a random number generator that I can run in PHP, C and Java that will always return the same sequence of numbers for a given seed.
Here's the Java implementation I would use: java.util.random source
Whilst this would be fairly straightforward to port to C and PHP, there is potentially a lot of work to get all the edge cases correct and handle differences in number representation. I'd be extremely happy to just copy and paste a fully tested version should it exist.
Follow is my trigger of Sybase ASA 8.0 script:
Create trigger dba.test after insert,delete,update order 1 on
DBA.tb_press
referencing old as _old new as _new
for each row
begin
--How to detect deleteOperate,updateOperate?
if deleteOperate then
insert into syncLog(tableName,keyId,version,operate)
select tb_press,_old.id,1,'delete'
end if;
end
how to determine whether to insert ,update,delete operate.
Is there a plugin for Visual Studio C++ 2008/2010 express edition just like wave-vs.net live pair programming program? Or do I have to download and install the full version of Visual Studio?
Hi,
I have a sample xml as;
<?xml version="1.0" encoding="iso-8859-9"?>
<DropDownControl id="dd1" name="ShowValues" choices="choice1,choice2,choice3,choice4">
</DropDownControl >
I need to create a UI representation of this XML using XSL. I want to fill the drop down list with values specified in choices attribute.
Does anyone have any idea about this ?
Thanks in advance :)
In the following code I am using XPath to find all of the matching nodes using XPath, and appending the values to a StringBuilder.
StringBuilder sb = new StringBuilder();
foreach (XmlNode node in this.Data.SelectNodes("ID/item[@id=200]/DAT[1]/line[position()>1]/data[1]/text()"))
{
sb.Append(node.Value);
}
return sb.ToString();
How do I do the same thing, except using Linq to XML instead? Assume that in the new version, this.Data is an XElement object.
i found this code in http://code.google.com/p/verysmallforumforgae/ manin.py:
from django.core.paginator import ObjectPaginator
but i can't find ObjectPaginator ,my python's version is 2.5
where is it ?
thanks
var_dump('<a>')
// or
var_dump("<a>")
// or
var_dump("\x3Ca>")
// all result in
string(3) ""
What is going on? Only putting a space after the less-than sign works for me.
PHP Version 5.2.10-2ubuntu6.4
Is there a way to force QtCreator to recompile all the resources (images / qss files) i have specified in my qrc file every time i build the project?
Currently if i change some styles in my qss file but dont remove the file and re-add it to the qrc file the old version of my qss file is used.
Thanks.
I am trying to update all of my Textmate bundles to the most current version. Is there a way to do this without doing each bundle individually? If not how do I update an individual bundle? I don't know how to use svn so I would prefer to use the git repository.
Thanks for helping a noob! :)
With respect to an application that has both a web and desktop client version:
What is the best practice for the desktop client which needs access to a SQL Server?
What are the benefits of connecting to the database from the application vs using a web service?
Which one provides better security?
What type of scope would call for one vs the other (enterprise intranet vs. web app, etc)
Are there any other considerations that are necessary when choosing on platform?
Can I write my owm template in TextFormatter used in Logging Application Block in C#?
Basically I want to write my exception log in atext file and in specific format where I want to include database information and software version.
Error 3 Could not load file or assembly 'Microsoft.Practices.ObjectBuilder, Version=1.0.51205.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)
I am trying to update a simple web app that was built with struts2, jsp and standard servlets.
I am trying to redirect a url to a specific action but can't seem to get it to work right.
For example, the url that is correct is:
http://localhost:8080/theapp/lookup/search.action
Here is my web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd"><web-app>
<display-name>theapp</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
And here is my struts.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration
2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd">
<default-action-ref name="search" />
<action name="search" method="search" class="com.theapp.SearchAction" >
<result>index.jsp</result>
<result name="input" >index.jsp</result>
<result name="error" type="redirect">site_locator_mobile/error.action</result>
</action>
The problem here is that if I don't specify the correct url as above, I just get the index.jsp file, but without any properties in index.jsp being processed because the information is contained in the servlet.
What I would like to is if someone just entered:
http://localhost:8080/theapp/lookup/
than they would be taken to:
http://localhost:8080/theapp/lookup/search.action
Thanks
The last release of Graphics32 1.8.3 is dated with March 2007.
When will there be an official Delphi 2010 compatible version?
Is there any public SCM repository of Graphics32?
This question relates to the command line version of cURL.
I'm trying to download a file from a cgi script.
http://someserver/perl/dl.pl?ID=2
Using a browser the filename comes up as 'remotefilename.gz'
cURL wants to save the file as 'dl.pl?ID=2'
How do I get cURL to save to a file with the filename from the response header??
When I deploy my ASP.NET application to my server I get this error:
add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
I have installed IIS and AJAX but this error occurs anyway.
What am I doing wrong?