Hey guys,
I have a chat box with a user list.
I want to create a button for each member so if clicked, their username is added to the chatroom text box.
Whats the best way to do this?
Thanks
what is javafx? where we can use it? whats its advantage and disadvantage over the javascript and php? i want to make project by using the javafx where can i use it in project pls describe it. thanx
Hey guys, Im trying to do some data mining and analyze data based on locations.
For this site, http://www.dianping.com/shop/1898365
I am trying to figure out whats the latitude and longitude by crawling. But I cant seem to figure out where this information is stored. Can someone give me some pointers
Someone has accidentally dropped dual table.Now we need dual table and whats the way to bring it back to the original state before dropping of the dual table?
in this book i have I'm learning pointers, and i just got done with the chapter about OOP (spits on ground) anyways its telling me i can use a member selection operator like this ( - ). it sayd that is is like the "." except points to objects rather than member objects. whats the difference, it looks like it is used the same way...
Hey,
im using a connection to a server in my php script, opened with fsockopen() and i want it to share between different pages so i serialized it and saved it in a session variable but it seems that that ia a bad idea because when i do this nothing happens...
Not even an error.
The problem is that this connection requires a handshake so i cant reconnect everytime
Another question, whats the timeout of fsockopen or does the connection stay alive if the. original php script which called it is closed?
A client has asked me about building an iphone app that can take restaurant orders.
I have the resources to get this app done, but I had a few questions.
*Will this app require a portion of the sale to go to apple (if so how much?)
*Whats the best way to integrate a payment portal to this?
*Will I have to/should I have someone authorize the payments?
Thanks, All feedback is appreciated.
Isn't
A a = new A(); // A is a class name
supposed to work in C++?
I am getting:
conversion from 'A*' to non-scalar
type 'A' requested
Whats wrong with that line of code?
HI
I like to know why there are two Date classes in two different packages one in java.util.Date and one in java.sql.Date?
Whats the use of having two Date classes?
I am trying to get the src of all of the images in a page. But some pages use absolute paths and some do not. So I am wondering whats the best way to do this?
right now I am using this.
$imgsrc_regex = '#<\s*img [^\>]*src\s*=\s*(["\'])(.*?)\1#im';
preg_match_all($imgsrc_regex, $html, $matches);
In a twitter RSS feed the pubDate is published as
Sat, Jun 5, 2010 19:20
Using PHP, whats the best way to convert this into the time lasped since published. For eaxmple,
posted 4 minutes ago
posted 1 hour ago
posted 4 hours ago
posted 1 day ago
posted 2 days ago
posted 1 month ago
posted 2 months ago
You help much appreciated
The user will have a static list of items to choose from. Using a Picker View they will choose one of the items and then select how many of them they want.
Whats the best way to save this in core data? A Struct?
struct order {
NSInteger item;
NSInteger numberOf;
};
Or some sort of relationship?
Many Thanks
hi
Toyota
1999
Honda
2010
i want to extract car object from the above code whats the possible way. can i have the sample code or any example
thanks in advance
When i dump a table with uppercase letters using mysqldump it comes out as lower case in my dump.sql file. I found a report here in 2006, almost 4 years old http://bugs.mysql.com/bug.php?id=19967
A solution here suggest making linux insensitive. I rather not if possible. Whats the easiest way to copy a win32 db into linux?
Not sure whats going on here, or what could be the integer in this case. Here's the code:
def build_array_from_file(filename)
contents = []
File.read(File.expand_path('lib/project_euler/' + filename), 'r') do |file|
while line = file.get
contents << line
end
end
contents
end
filename is a string and I've checked to make sure the path comes up valid.
Any thoughts? Thanks.
I want to create a link like the following:
http://www.myurl.com/?IDHERE
What i want to be able to do is be able to goto the above link, and then pull whats after the ? (in this case IDHERE) and be able to use that information to perform a MySQL lookup and return a page.
Can anyone point me into the right direction? please know this is using PHP not ASP
Hi,
Please let me know whats the difference between a C++ structure and a C++ class apart from access specifier. I have seen inheritence , polymorphism in C++ structure?
Im trying to get the redirect link from a site by using curl -I then grep to "location" and then sed out the location text so that I am left with the URL.
But this doesn't work, it will outputs the URL to screen and doesn't put it
test=$(curl -I "http://www.redirectURL.com/" 2> /dev/null | grep "location" | sed -E 's/location:[ ]+//g')
echo "1..$test..2"
Which then outputs:
..2http://www.newURLfromRedirect.com/bla
Whats going on?
I'm trying to run .ajax and insert a data element from the onClick of an item from the page. Whats the best way to do this?
Something like this:
function grabinfo(foo){
$.ajax({
url: "infospitter",
method: "GET",
data: "id="+foo,
success: function(html){
$(#showstuff).html(html);
}
});
}
<input onClick="javascript:grabinfo(18343)" />
// and on page each item will have this button input
I have my matrix I have created, a pic found here.
http://s816.photobucket.com/albums/zz83/gavakie/?action=view¤t=matrix.jpg
The first three column what whats being grouped by but I can had the names of those columns, how can I do that in Reporting Services?
On login:
$result = mysql_query("SELECT `id`, `username`, `email` FROM `users`
WHERE `username` = '$username'
AND `password` = '$passwd'");
$userdata = array('id','username','email');
$_SESSION['user'] = mysql_result($result, 0, $userdata);
And when i want to print the users username
echo $_SESSION['user']['username']
it only prints the first letter :/
whats wrong`?
I've a dump file of a process I'm running (trying to find a memory leak)
One thing I've noticed is that when I dump the bigger objects via !do windbg tells me that they are GC generation 3 ??
All of these are byte arrays so when I look at all the byte arrays in the dump I can see GC generations 0, 1, 2 & 3.
Could someone explain whats going on here as I thought there was only 3 generations of GC.