I have 3 forms and 3 db.I have data in db.
Now,i want all of them to print in a single page.
I am using wamp server for php.
I googled but,could nt find out.
Give a snippet.Thnx in advance.
Hey.
I have a large amount of log data that I need to get some relevant information out of.
The syntax is:
WORD1 some text KEYWORD some text WORD2 WORD1 some text KEYWORD some text WORD2 WORD1 some text KEYWORD some text WORD2 WORD1 some text KEYWORD some text WORD2
Would it be possible to use regex to get a certain block out of it - so that when I queried some keyword it would return WORD1 some text THIS_KEYWORD some text WORD2
PS: There could be multiple instances of one keyword, it should return all of the blocks (preg_match_all, PREG_SET_ORDER?).
Not completely a programming question, but its close enough so here goes:
In Mac OS I'll put user-specific files for my app in ~/Library/Application Data/{MyApp}/ and in *nix I'll put them in ~/.{MyApp}/ - where should I put them for Windows?
I'll be using Ruby's File.expand_path to get to this directory, so if there's a windows equivalent of ~ then that's fine.
(Answers for Windows XP, Vista and 7 would be appreciated if they're not the same)
Hello,
I was just wondering about the use of a processor while downloading any data (say for example a movie) from internet. Can anyone tell me, how much a processor is really in use while downloading and in first place is a processor really required during download.
Hi
This is my program .when i submit the print button i can print the datas but they are not aligned in the table formatthe format in which i need the print to be...How can i print in the correct format
<html>
<head>
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.1.min.js" > </script>
<script type="text/javascript">
function PrintElem(elem)
{
//alert('ddd');
Popup($(elem).text());
}
function Popup(data)
{
var mywindow = window.open('', 'mydiv', 'height=400,width=600');
mywindow.document.write('<html><head><title>my div</title>');
/*optional stylesheet*/ //mywindow.document.write('<link rel="stylesheet" href="main.css" type="text/css" />');
mywindow.document.write('</head><body >');
mywindow.document.write(data);
mywindow.document.write('</body></html>');
mywindow.document.close();
mywindow.print();
return true;
}
</script>
</head>
<body>
<div id="mydiv">
<table width="200" border="1">
<tr>
<td>sss</td>
<td>sssss;</td>
<td>snssbsp;</td>
</tr>
<tr>
<td>ssss;</td>
<td>sssnbsp;</td>
<td>snbsp;</td>
</tr>
<tr>
<td>snbsp;</td>
<td>snbsp;</td>
<td>snbsp;</td>
</tr>
</table>
</div>
<input type="button" value="Print Div" onClick="PrintElem('#mydiv')" />
</body>
</html>
I am doing a project on Calculix Data Visualiser. It is a civil based project. I need to show the structure of beams before applying force and the structure after the force is applied.
I need to change the color of the beams to RED where more force is applied. But i am just able to change the color for lines and not for the phase as a whole. SO pls help me out.
I am working on cleaning up a mess that another programmer started. The created 2 identical databases for different locations but that obviously caused major issues. They are using cakePHP and there are quite a few relationships. I am pretty sure I will have to write a script to import that data from on DB to the other and keep all the relationships but was wondering if there is an easier way to do it.
I have a flash application (a game) and it needs to pass data to a php page to save the user, and the user's score. However I don't want the user to be able to alter the score him/herself or to initial a scoring without using the application.
What is the best way to do this?
I'm searching files and returning lines that include the search text, and I'm not really sure the best way to display the information I get. Every time I get a match, I want to show, in some sort of control, the File it came from, and the whole text line. (aka streamreader.ReadLine() result). First I tried just putting it all in a read-only text box, but it doesn't have a scroll bar.
What is the best form control to help me display this data neatly?
I am populating data using
<select name="test">
<option value='<%=session.getAttribute("tList")%>'><%=session.getAttribute("tList") %></option>
</select>
but the values are getting display in a single row in the combo box not row wise,where i am going wrong ?
I'm new in iOS development and i need simple example (project) with explained two-entity coreData with to-many relationship between A and B entities on iOS6 with storyboard interface and ARC. In storyboard should be two UITableView controllers which present entities A and B and two UIViewControllers which present adding string data from text fields
I searched in many books, sites, video lessons like "lynda.com", but i still not understand how and where i should implement two-entity coredata with one to-many relationship in code.
Can someone give me link to understandable tutorial or put the project on GitHub?
Im using c# .net windows application form. I have created many databases with many tables in each.
I have a datagrid view and a display button.
when i click on this button, the system must prompt me to enter the server name and after typing the server name, it should display all the databases related to that server in some combo box. and again if i select a database it should show all the tables present in that database into a combobox. and if i select a table, it should prompt an option to select only required columns into the datagridview. How can i do this?
<mx:Label text="{(item1 as INewsItem).displayName}"/>
For the above code in Flex, I get this warning :
: Data binding will not be able to detect assignments to item1.
Why? How to Fix it?
I have some statistics I need to report on a monthly basis. I need my query to return 0's for statistics which aren't there. The only way I know to do this is to use SQL to generate a list of days within the specified time period and LEFT JOIN the statistic data that I need to report on.
Problem is.... I've never not selected from a table like that... how do I do that?
Hi
I need to do periodical background task fetching data from a weather site.
How in rails can I fetch json from a remote url and store it on the server? Also, there doesn't seem to be any point in storing this in a db so how in rails can I store a variable available to all users?
Hi all, i want to ask about development in blackberry. I have background in .Net winform.
If i want to develop an application to show data from Ms.SQL server 2008 database in blackberry. what should i learn and what should i do ? thank you for your advice.
I have laptop with an external e-sata/USB combo port. I have an internal Seagate SATA drive removed from another laptop. I want to recover the data in this disc. Is it possible to connec t this hardisk through the e-SATA port? If so, what cable would I need to connect in?
Is there any existing Python library that can validate data in Excel format? Or what kind of keyword should I use to search such an open source project? Thanks.
My script is:
[Bindable]
[Embed(source="loader.swf")]
public static var Icon:Class;
and my mx is:
<mx:Image source="{Icon}" y="125" x="0"/>
It works but when I try to export it it won't because of:
Data binding will not be able to detect assignments to "Icon"
What am I doing wrong?
Can anyone tell me how to execute a .bat file from a PHP script?
I have tried -
exec("C:[path to file]");
system("C:[path to file]");
nothing is working. Ive checked the PHP manuals and googled around but cant find a good answer. Anyone know where im going wrong?
I'm running windows 2003 server and have successfully manually ran the .bat file and it does what i need it to, I just need to be able to launch it programatically.
thanks
The Core Data Programming Guide talks a lot about what not to overwrite. So the question is: What is good to overwrite?
Like I see it, I can't overwrite -init or -initWithEntity:insertIntoManagedObjectContext:
So where else would be a good overwrite point to set up some basic stuff? Or is it generally not needed to do custom initialization? Does the whole thing rely only on accessing properties which then start to do fancy things? So no custom initializations?
im using symfony with doctrine and zend.
i wonder if i wanna validate the user input data, should i use validation from symfony, zend or even doctrine?
i think i should go with symfony, but are there times the validation from zend or doctrine would be better?
thanks