I am new at ipad and iphone development.
I would like to parse the table content of a PDF file.
This way i can map page number and set an internal link so i can jump to that page.
Could you please provide me a sample of code ?
As the title says, I want to parse some Java source code in Java. I'm pretty sure there are other java libraries that already perform this, but I couldn't find any.
Hi,
I am working on an iphone application in which I am consuming a webservice.
So i am parsing the XML file data. any idea about how to parse self closing tag
like: State/ and how to read data of self tag like: Contact Email="[email protected]" Name="PhD" Phone="123-521-3388" Source="location"/
I am parsing xml file using NSXMLPARSER class methods and library
Thanks,
The default methods for dealing with xml in c# seem incredibly crude to me, leading me to suspect that I must be missing something in my searches. What is considered the standard best practices to parse xml files in c#?
I want to use the foreach container to iterate through a folder matching something like: "Filename_MMYYYY.xls". That's easy enough to do; but I can't seem to find a way to parse the MMYYYY from the filename and add it to a variable (or something) that i can use as a lookup field for my DimDate table. It seems possible with a flat file data source, but not an excel connection. I'm using Visual Studio 2005. Please help!
I am reading a .xls file and then procesing it inside and rewriting it in the end of my program. I was wondering if someone can help me to parse the dates
as my input file name is like file_1_2010_03_03.csv
and i want my outputfile to be
newfile_2010_03_03.xls
is there a way to incorporate in matlab program so i do not have to manually write the command
xlswrite('newfile_2010_03_03.xls', M);
everytime and change the dates as i input files with diff dates
like
file_2_2010_03_04.csv.
Thanks
I am trying to parse the MySQL data types returned by "DESCRIBE [TABLE]".
It returns strings like:
int(11)
float
varchar(200)
int(11) unsigned
float(6,2)
I've tried to do the job using regular expressions but it's not working.
PHP CODE:
$string = "int(11) numeric";
$regex = '/(\w+)\s*(\w+)/';
var_dump( preg_split($regex, $string) );
Hi all, I was thinking of parsing live scores from a web site via PHP and them use them for an application I am planning to implement, so my question is is it legal to do that, parse info from web site and use it ? If I quote the source if the info ?
Hi, I'd like to extract the info string from an internet radio streamed over HTTP. By info string I mean the short note about the currently played song, band name etc.
Preferably I'd like to do it in python. So far I've tried opening a socket but from there I got a bunch of binary data that I could not parse...
thanks for any hints
The default methods for dealing with xml in c# seem incredibly crude to me, leading me to suspect that I must be missing something in my searches. What is considered the standard best practices to parse xml files in c#?
If I want to split a list of words separated by a delimiter character, I can use
>>> 'abc,foo,bar'.split(',')
['abc', 'foo', 'bar']
But how to easily and quickly do the same thing if I also want to handle quoted-strings which can contain the delimiter character ?
In: 'abc,"a string, with a comma","another, one"'
Out: ['abc', 'a string, with a comma', 'another, one']
Related question: How can i parse a comma delimited string into a list (caveat)?
This has to be pretty simple, but I'd like to parse the current URL and execute conditional code depending on whether the user is on the /sitemap/ directory.
So for example, if the site is example.com, and if the request is example.com/sitemap/.
Then I want to execute conditional code in that case. I'm using wordpress so I'm not sure if there is a built-in function that gets this...
A pure PHP solution is fine.
parse .ics Calendar file using Ical4J in android.i saw the http://ical4j.sourceforge.net/introduction.html.how to use that ical4j-1.0-rc3.jar file in my project.I need help related to this plz ?
"8,5,,1,4,7,,,,7,,1,9,3,6,,,8,6,3,9,,2,5,4,,,,,3,2,,,7,4,1,1,,4,,6,9,,5,,,,5,,,1,,6,3,,,6,5,,,,7,4,,1,7,6,,,,8,,5,,,7,1,,3,9,"
I'm doing a programming challenge where i need to parse this sequence into my sudoku script.
Need to get the above sequence into 8,5,0,1,4,7,0,0,0,7,0,1,9,3,6,0,0,8.........
I tried re but without success, help is appreciated, thanks.
All I can find information on for the URLLoader object in Actionsript 3.0 involves loading XML files, which I don't want to do. I'm trying to load in a .txt file that I want to parse, line by line with each line being delimited by a comma. Anyone know a method of doing this or a place where I can find some information on how to do this? Thanks!
I have a small website where some content is displayed within a HTML tag using AJAX. The content is simply taken from another page on the same web site. However, sometimes instead of loading the parsed PHP file, the browser displays a download box instead. I downloaded the file and this is what it looks like a text file mixed with binary or gzipped data. I can't paste the binary stuff here, but here are some of the headers:
Jul 2012 18:52:16 GMT
Server: Apache/2
X-Powered-By: PHP/5.3.10
Content-Encoding: gzip
Vary: Accept-Encoding,User-Agent
Keep-Alive: timeout=1, max=95
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html
HTTP/1.1 304 Not Modified
Date: Sun, 01 Jul 2012 18:52:16 GMT
Server: Apache/2
Connection: Keep-Alive
Keep-Alive: timeout=1, max=93
ETag: "2fc857-409-4c39691c59b40"
HTTP/1.1 304 Not Modified
Date: Sun, 01 Jul 2012 18:52:16 GMT
Server: Apache/2
Connection: Keep-Alive
Keep-Alive: timeout=1, max=92
ETag: "2fc854-3e5-4c39691b65900"
HTTP/1.1 304 Not Modified
Date: Sun, 01 Jul 2012 18:52:16 GMT
Server: Apache/2
Connection: Keep-Alive
Keep-Alive: timeout=1, max=91
ETag: "2fc847-3e3-4c3969197d480"
and large blocks of stuff like this:
µàl]&BaËÜk#ìÏ
When I first installed Perl in my WAMP setup, it worked fine. Then, after installing ASP.net, it began throwing 403 errors. Here's my ASP.net config:
Load asp.net module
LoadModule aspdotnet_module "modules/mod_aspdotnet.so"
Set asp.net extensions
AddHandler asp.net asp asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo
# Mount application
AspNetMount /asp "c:/users/jam/sites/asp"
# ASP directory alias
Alias /asp "c:/users/jam/sites/asp"
# Directory setup
<Directory "c:/users/jam/sites/asp">
# Options
Options Indexes FollowSymLinks Includes +ExecCGI
# Permissions
Order allow,deny
Allow from all
# Default pages
DirectoryIndex index.aspx index.htm
</Directory>
# aspnet_client files
AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
# Allow ASP.net scripts to be executed in the temp folder
<Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
Also, what are the code tags for this site?
I am trying to create a webserver that serves PHP scripts. Currently, it works as follows:
The client requests /index.php?test=value
The server invokes php index.php
The server feeds the HTTP request headers as STDIN to the PHP process
The server reads the output of php from STDOUT and returns it to the client
All of this is working except that the parameters are not being passed to the PHP script because:
var_dump($_GET);
returns:
array(0) { }
How do $_GET parameters get passed to the PHP binary when it is invoked?
My server running ubuntu 64bit, nginx, php-fpm. Everything is working well. But several days after. The browser display 'No input file specified'.After I restart php-fpm. Everything run well again.But this situation occur again and again.So I must restart the php-fpm several days.Anyone know what's the problem?
nginx -V output
sshadmin@ubuntu:~$ nginx -V
nginx: nginx version: nginx/0.9.7
nginx: built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
nginx: TLS SNI support enabled
nginx: configure arguments: --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module
Is there any option how could I turn off reloading of web page in Nagios web interface? Many times I checked many services and I needed the webpage to stay static and don't reload.
One solution come to my mind - turn off the whole reloading for a while. Problem is that other people are using it too and they may want it at the time I don't want it. If anybody know about any kind of workaround or solution, please don't hesitate to write an answer. ;-)
EDIT (+ reaction to the first answer): Maybe there could be a better way how to do it instead of modyfying nagios core. Interesting is, that I tried to disable javascript, it refreshed. I tried to disable http refreshing, it refreshed anyway. Has anybody know how and where is the refresh implemented?