I'm trying to write a regular expression for strings that are numbers in JSON. I'm still new to writing Regular expressions, I found a diagram of a machine for JSON numbers here , but I'm not sure how to attack it.
Here are some strings that should be found by the regex.
"22",
"55.75466",
"-44.565"
"55e-2"
"69234.2423432 E78"
Any help is appr...
There's a huge buzz in the business analytics world about the In-Memory database HANA by SAP. I'm struggling to see its real innovation compared to current open source databases. OK, it has indexing, graph support, column storage, etc… but that's not really new in my opinion. The fact that it is In-Memory is not new either, see Memcached and Re...
I just wanted to try out Flying Saucer to generate a PDF from an xhtml code. So what I did was to make a layout in LibreOffice, let it generate the xhtml code and (wanted to) hand this over to the parsing library (in java) to generate the pdf.
However, I couldn't take over all of the xml-code 1:1 as i needed to escape things.. so i escaped all ...
Possible Duplicate:
This version of the application is not configured for billing through Google Play
I already have an application (with inapp purchase) in android market. My problem is inapp purchase functionality is not working properly and I re-write the code again. Now I want to run the application to test but i getting error message....
When I try to hook up the EventSource to my controller it keeps saying:
EventSource's response has a MIME type ("text/html") that is not
"text/event-stream". Aborting the connection.
I made the following class to help with the handling and preparation of a response. In this class I believe I set the responseType accordingly to text/event-st...
I'm using WebClient's DownloadStringAsync method to download an html page if the user clicks a certain button. If they want to stop the current operation before it's completed and start a new one, I call CancelAsync method and also set the WebClient object to null. In the event handler of the second button, I also reinitialize the WebClient o...
Have quite a strange problem
below is my menu activity_action_bar_main.xml and it complains on the
android:icon="@android:drawable/ic_action_view_as_list"
row
And it complains on my icon
[2012-11-15 02:38:53 - TabsimpleActionBar] W/ResourceType( 3908): Bad XML block: header size 789 or total size 0 is larger than data size 0
[2012-1...
public class emp
{
public int id { get; set; }
public string name { get; set; }
}
public class employee
{
public List Result { get; set; }
}
I want to convert above class
List e=new List();
to
List onj =new List();
Can anyone guide me? Thanks in advance.
Solution to answer:
List onj = e.Select(employee => employee.Name)....
I'm working with igraph for R. My graph is based on an edgelist which includes parallel edges (more than one edge with the same source and target). I would like to convert these parallel edges to an edge attribute weight. Is there an eay way to do this?
If there is no easy way. how can I identify these parallel edges?
duplicated(E(net))
d...
I have 2 XML file for list View. One for views and other for use first.
note_list.XML is :
and list_otem.XML is :
in below code, i set adapter for list:
ArrayList noteList;
ListView lv;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R...
Error 50 The command "SubWCRev "C:\Users\texasman\Desktop\flash\FD\"
"C:\Users\texasman\Desktop\flash\FD\FlashDevelop\Properties\AssemblyInfo.cs.rev"
"C:\Users\texasman\Desktop\flash\FD\FlashDevelop\Properties\AssemblyInfo.cs""
exited with code 9009. FlashDevelop
I get that error trying to build flashdevelop's latest trunk. I was in...
I have some problem with Jboss-as-7.1.1, i properly deploy but when i send the request from client side i am getting some error.
javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory org.jboss.naming.remote.client.InitialContextFactory from classloader ModuleClassLoader for Module
My error Log:-
18:39:50,432 INF...
I'm trying to establish a connection to an Oracle database using BasicDataSource using DBCP.
I downloaded commons-dbcp-1.4-bin.zip from here.
There are three jar files on the classpath.
commons-dbcp-1.4
commons-dbcp-1.4-sources
commons-dbcp-1.4-javadoc
I'm using the following code for the connection to be established.
import java.sql.Conne...
While defrecord is the preferred form -for the general case- in Clojure for defining an "entity", in ClojureScript one can find far more references to deftype, as reflected in various documentation.
What is the difference between both forms? Which should one prefer?
Solution to answer:
deftype creates a bare-bones object which implements...
I'm struggling to get my head around this and was wondering if someone could explain the reasons for this.
I have three classes:
class Angel {}
class Person extends Angel {}
class Employee extends Person {}
When I attempt to execute this code
public static void insertElements(List...
void findWay(int column,int sum,char *array,int s,stack_t sta)
{
if(array[s+column+2]=='0')
{
When I debug program, I am getting an error which is "Address 0x53 out of bounds" (if(maze[s+column+2]=='0') at this line). Why?
Someone please help me.
Solution to answer:
Because s+column+2 exceeds the bounds of the array, you need to alloca...
Like the question at Dynamic class method invocation in PHP I want to do this in Dart.
var = "name";
page.${var} = value;
page.save();
Is that possible?
Solution to answer:
There are several things you can achieve with Mirrors.
Here's an example how to set values of classes and how to call methods dynamically:
import 'dart:mirrors';
cl...
I'm aware that there are loads of questions on the topic but none of the solutions i found here worked for me.
I'm using Spring with Jetty 6 so i don't have a web.xml file. The mapping for the spring dispatcher servlet is set to "/" in jetty's config
dispatcher:
… mapping:
...
I try to get list from service like this:
static void Main(string[] args)
{
MyClient proxy = new MyClient();
List l = proxy.Func(1).ToList();
}
X is class from DLL of entity framework project.
My function in service look like this:
public List Func(int NUM)
{
ProjectContext MyContext...
I want to use bing search api to obtain search result count for given query, however, Bing API seem to not return any fields containing the search result count.
Should I specify some option to request URL? Or Bing API not return the result countt?
Solution to answer:
You can obtain the result count, but it's not as obvious as I thought i...