I have a folder with more than 2000 files and I need to index their file names on a database(MySQL) using Java, but how could I do this?
PS: The MySQL connection part I already know.
In both my environment.rb and test_helper.rb files I have:
ENV["RAILS_ENV"] = "development"
I have one functional test written, however when I run it, the script tries to connect to my database using the "test" configuration settings which are in the database.ymal file & won't connect the the database.
How can I run my tests using the "development" environment settings?
I know this is a vague open ended question. I'm hoping to get some general direction.
I need to add cXML punchout to an ASP.NET C# site / application. This is replacing something that I wrote years ago in ColdFusion.
I'm a reasonably experienced C# developer but I haven't done much with XML. There seems to be lots of different options for processing XML in .NET.
Here's the open ended question: Assuming that I have an XML document in some form, eg a file or a string, what is the best way to read it into my code? I want to get the data and then query databases etc. The cXML document size and our traffic volumes are easily small enough so that loading the a cXML document into memory is not a problem.
Should I:
1) Manually build classes based on the dtd and use the XML Serializer?
2) Use a tool to generate classes. There are sample cXML files downloadable from Ariba.com.
I tried xsd.exe to generate an xsd and then xsd.exe /c to generate classes. When I try to deserialize I get errors because there seems to be "confusion" around whether some elements should be single values or arrays.
I tried the CodeXS online tool but that gives errors in it's log and errors if I try to deserialize a sample document.
2) Create a dataset and ReadXml()?
3) Create a typed dataset and ReadXml()?
4) Use Linq to XML. I often use Linq to Objects so I'm familiar with Linq in general but I'm struggling to see what it gives me in this situation.
5) Some other means.
I guess I need to improve my understanding of XML in general but even so ... am I missing some obvious way of doing this? In the old ColdFusion site I found a free component ("tag") which basically ignored any schema and read the XML into a "structure" which is essentially a series of nested hash tables which was then easy to read in code. That was probably quite sloppy but it worked.
I also need to generate XML files from my C# objects. Maybe Linq to XML will be good for that. I could start with a default "template" document and manipulate it before saving.
Thanks for any pointers ...
I'm looking for a library of XSLT to create SVG charts. I need pie charts, bar charts, line charts, all the usual suspects. I would hope for a reasonably simple DTD for the input files.
Without writing a custom ant task is there a way to use a timeout on a regular ant target? To give some background info ... we are using the delete task to remove all contents of a given directory. Sometimes this directory is massive with lots of generated folders and files. We wanted to have that task say timeout after 5 minutes. I could not find anything online anywhere ... any ideas?
i searched a little for the size of file in salesforce . i found this link
http://help.salesforce.com/HTViewHelpDoc?id=collab_files_size_limits.htm&language=en_US
its showing that file size can be upto 2 GB.i have to store IDs in a text file and want to make it scalable for for nearly about 1 Million record .file size will be equal to 15 MB .can any one please provide some good tutorial how to create such kind of files and using it in apex for retrieving and updating data
$id=(int)$_GET["id"];
$result = mysql_query("SELECT questionstable.*, categorytable.name
FROM questionstable
INNER JOIN categorytable
ON categorytable.id = questionstable.category
WHERE id=$id");
$row = mysql_fetch_assoc($result);
Warning: mysql_fetch_assoc() expects
parameter 1 to be resource, boolean
given in C:\Program
Files\EasyPHP-5.3.4.0\www\scsoru.php
on line 33
Can resources be extracted from a compiled iPhone app that is released to the iTunes store? I'm particularly interested in the security of XML files... if I have copyrighted data in an XML document in my resource directory, how likely is it for someone to extract that information and paste it around the internet?
If it's as easy as using a resource editor, how can that data be secured?
I have several PDF files stored in Amazon S3. Each file is associated with a user and only the file owner can access the file. I have enforced this in my download page. But the actual PDF link points to Amazon S3 url, which is accessible to anybody.
How do I enforce the access-control rules for this url?(without making my server a proxy for all the PDF download links)
I have a folder with custom classes in a ZF 1.10 application. The folder is located in public/library. How can I tell ZF where they are? Both application.ini and index.php set the path to the library but then ZF can't find the files.
Thank you
I'm looking for independent implementation of boost/tr1 shared_ptr, weak_ptr and enable_shared_from_this.
I need:
Boost independent very small implementation of these features.
I need support of only modern compilers like GCC-4.x, MSVC-2008, Intel not things like MSVC6 or gcc-3.3
I need it to be licensed under non-copyleft LGPL compatible license like Boost/Mit/3-clause BSD.
So I can include it in my library.
Note - it is quite hard to extract shared_ptr from boost, at least BCP gives about 324 files...
I'm building a .NET MVC application which will be deployed on a Windows 2003 server. The server has a folder @ c:\Website\Files which needs to be written to from the application.
How do I cope with this in my development environment so that the MSI setup file, which I will compile, will work correctly when deployed?
p.s. the folder is NOT located in a subdirectory of the application project
Hai.,
i'm using unbuntu 9.04 and i had all web developing dump has been installed in www folder., today morning unfortunately i delete the www folder via terminal. but i'm afraid about that issue., i dont have any knowledge for how to restore the www folder and included files asap.
IF anyone Could known the issue and how to rectify that issue., pls let me know.,
Thnaks in Advance.,
Hi,
In CSV file, Column is having some times numeric values and some times alphanumeric values.
when try to read the CSV files to DATASET, alphanumeric values is showing as null(Blank).
How to see alphanumeric values?
Thanks
Hi,
I'm just thinking if there is any way how to get information about element in HTML in my .NET application.
The input is HTML page and path to CSS files etc. I want to take e.g. H1 tag and found what will be the CSS for it. Is there any code or can I use IE and try to take this information from it automatically inside of my application?
Does anyone tell me how to block system calls within a program, please? I am building a system which takes a piece of C source code, compiles it with gcc and runs it. For security reasons, I need to prevent the compiled program from calling system calls. Is there any way to do it, from the source code level (e.g. stripping the header files of gcc, detecting malicious external calls, ...) to the executable level?
I have an XML file I can get via a URL. I know I can get the file using fopen, but sometimes I've seen scripts use curl. Is there an advantage to using curl over fopen to get XML files?
I have php scripts that do things like register, login, upload.
I would like to keep the HTML in a seperate file so that say I make a desktop client I can just use the php files to do the login register etc.
Basically to have say a front end, the HTML or desktop client and then only one backend, the php.
Is that possible?
Howdy,
Having built most of my DAL using NHibernate, I've now discovered that the SQL Server's Cascade On Delete rules also need to be taken into account in my HBM files too. I've been using bags for all my collections, but there doesn't seem to be a way to add a cascade="delete" attribute to a bag. I can change all my bags to sets, but that appears to mean I have changing all my IList<s on my models to PersistentGenericSet<s, which I don't really fancy doing.
Any advice?
Anthony
currently there's a xxx dir already in /home/yyy I'm trying to overwrite it
cp -fr ../xxx /home/yyy/
doesn't work still prompts me to overwrite the individual files. how do I fix it?
Hi,
I'm wondering what the best way is to use the XDocument.load and save methods on files located on a password protected netshare. I'm building an asp.net mvc application.
Is there a way to queue file uploads without resorting to Flash or Silverlight, just with cleverly used forms and JavaScript? Note that the upload should be executed asynchronously.
By "queuing" uploads I mean that if the user tries to upload multiple files, they should not be transferred simultaneously, but rather one at a time, in a single HTTP connection.
I have a repository using Rational ClearCase Explorer 2003.06.10+ which I want to migrate into Serena ChangeMan Version Manager 8.1.4.2.
Is this possible? The ClearCase repository was not used for all it's functions, just as a place to hold copies of documents, so the only thing I need to keep is the files and their version histories.
Hi everyone,
Whenever i try to turn off my mac. This finder toolbar apears on top. And it doesnt remove even i try to Force Quit this application using Command+Options+Escape.
Can anybody please suggest me wats wrong with it ?
http://rapidshare.com/files/394092080/Picture_1.png
Taimur
How to create a .BAT file to download file or folder from FTP server? (and replace with it existing file) (we have links like ftp://me:[email protected]/file.file and absolute file link like C:\Users\UserName\Some mixed ??????? English Adress\file.file) (using only native windows (xp vista win7 etc) BAT functions and files)