Trying to decode the SDP sprop-parameter-sets values for an H.264 video stream and have found to access some of the values will involve parsing of Exp-Golomb encoded data and my method contains the base64 decoded sprop-parameter-sets data in a byte array which I now bit walking but have come up to the first part of Exp-Golomb encoded dat...
Hello
First, I'm not looking a way to parse an RSS-feed. I am creating an rss-feed myself, but now I've got a problem.
I'm putting some text to description (obvisiously), but it gives me errors of some unallowed chars (for example "&"). Is there a way to remove all these chars or should I parse every char manually?
Also, in my feed fi...
Suppose I have a text that I can easily parse. It consists of text and special identifiers. After parsing I get a list of tokens that correspond to text and special identifiers in the text.
The problem I am having is how do I transform it from this token list into some other form?
I can't understand how to approach this problem.
I tri...
What is the best/easiest way to sort a large list of words (10,000-20,000) by the number of times they occur in the list, in Java. I tried a basic implementation but I get an out of memory runtime error, so I need a more efficient way. What would you suggest?
ArrayList<String> occuringWords = new ArrayList<String>();
ArrayList<Integ...
I'm developing a system (in PHP) that will take in a string of text (from email, initially) and need to determine the beginning and end of a section of the text that contains name=value pairs of data, and parse that section so that the name=value pairs can be processed into a form submission. I am looking for ideas on what to use as deli...
Hello, I have some Dijit Tabs, and in those tabs I have some Dojo Text boxes and Fields. Some of my Dojo Tabs load when the page is loaded, and some load only when clicked on.
My issue is that I cant get the Tabs that load only when clicked, to work with the Dojo modules.
Its hard to explain, so I made a simple example to help. I h...
Hello guys, I need a tool to parse Lua table expressions. If all else fails, I will eventually just code a small Lua module to convert tables to XML, but for the time being, I am interested in a Ruby library doing that, but failing that, I would accept tool in any language, provided I can look at its source.
Here is an example snippet (...
Hi all,
i think i read every single web page relating to this problem but i still cannot find a solution to it, so here i am.
I have an HTML web page wich is not under my control and i need to parse it from my iPhone application. Here it is a sample of the web page i'm talking about:
<HTML>
<HEAD>
<META http-equiv="Content-Type" ...
json_decode function is not part of PHP 5.1, so I cannot use it. Is there any other function for this version?
...
I am using php 5.3 but when i try read an xml using xmlparser which shows the error Fatal error: Class 'XMLParser' not found .Please help me to solve this..
...
Is there a way to convert string arrays to int arrays as easy as parsing an string to an int in C#.
int a = int.Parse(”123”);
int[] a = int.Parse(”123,456”.Split(’,’)); // this don't work.
I have tried using extension methods for the int class to add this functionality myself but they don't become static.
Any idea on how to do this f...
I got this error An error occurred while parsing EntityName. Line 1, position 61. when saving this url
http://www.autorentalnews.com/t_inside.cfm?action=news_pick&storyID=36229
I don't know why i can't save url like this inside xml file
the element wrote like that
<New>
<ID>8b269f29-69a1-4551-8d72-4602df4e2c7e</ID>
<Title>Indus...
I need to create a regex parser for a project and I am using ANTLR v3 to do this. I am trying to find an up-to-date, Perl6-like regex grammar. Does anyone have a source? Googling for this has been difficult for some reason.
...
I am starting work on a project to be able to grab an arbitrary HTML snippet (e.g. all code within a <div></div> block) and generate the minimal CSS necessary to render the snippet on a blank page while maintaining the same visual styling it has on the originating web page. My sense is that all of the heavy lifting for this function can...
I'm having a problem with some code that used to work in PHP 4.X and is not working in PHP 5.2.4
First of all, there is a small example of a code similar to the one is causing the problem. Unfortunately, I haven't been able to reproduce the problem with a small example.
<?php
class Example{
public function showExample()
{
$ind...
What language and libraries are suitable for a script to parse and download small numbers of web resources?
For example, some websites publish pseudo-podcasts, but not as proper RSS feeds; they just publish an MP3 file regularly with a web page containing the playlist. I want to write a script to run regularly and parse the relevant pag...
Hey guys, I am trying to use Java's useDelimiter method on it's Scanner class to do some simple parsing. Basically each line is a record delimited by " | ", so for example:
2 | John Doe
3 | Jane Doe
4 | Jackie Chan
The method takes as a parameter a regular expression for which to match for. Can someone please provide me with the regul...
when programming Tcp/IP program, we often will do data packet assembling and parsing, so is there a framework to make our life easier?
I know this is hard to implement.
Edit:
to clarify:
application level packet
it may need to talk to c++ application, so .net serialization is not applicable.
...
Does anybody know of a python module to parse a doxygen style C++ comment string? I mean a string like this (simple example):
/**
* A constructor.
* A more elaborate description of the constructor.
* @param param1 test1
* @param param2 test2
*/
and I would like to extract the brief, the long description, the parameter...
I've been working on the specifikation / kitchensink for a meta language that can compile down to PHP for some time now. Now I want to begin building the thing. Before I have implemented tiny DSL's using PHP_Lexergenerator and PHP_Parsergenerator and they have worked very well but I have never build anything this scale before. I would ap...