Software giant rushes out Security Advisory to warn customers about code for a zero-day vulnerability in SharePoint collaboration server that's making the rounds on the Web.
I have checked this question as well and this one as well. I am trying to implement the model described in this question.
What I want to do is, on the add function of message controller, create a record in thread table(this table only has 1 field which is primary key and auto increment), then take its id and insert it in the message table along with the user id which i already have, and then save it in message_read_state and thread_participant table.
This is what I am trying to do in Thread Model:
function saveThreadAndGetId(){
//$data= array('Thread' => array());
$data= array('id' => ' ');
//Debugger::dump(print_r($data));
$this->save($data);
debug('id: '.$this->id);
$threadId = $this->getInsertID();
debug($threadId);
$threadId = $this->getLastInsertId();
debug($threadId);
die();
return $threadId;
}
$data= array('id' => ' ');
This line from the above function adds a row in the thread table, but i am unable to retrieve the id. Is there any way I can get the id, or am I saving it wrongly?
Initially I was doing the query thing in the message controller:
$this->Thread->query('INSERT INTO threads VALUES();');
but then i found out that lastId function doesnt work on manual queries so i reverted.
This article presents some of the changes in Visual Studio 2010 for Visual C++, focusing on new the build system (MSBuild), multi-targeting, IntelliSense and browsing experience.
Office Communications Server, which provides integrated voice, conferencing, IM, and telephony, is one of those products that are difficult to explain in simple terms. It takes a brave man to take on the task, and to provide a simple guide to installing it: Luckily for us, Johan is that man. In the first of a series, he explains what it is, how it benefits your enterprise, and how to make it happen.
I'm trying to install PHPUnit in Ubuntu 10.04 but I get these error messages
sudo pear install -a pear.phpunit.de/PHPUnit
Duplicate package channel://pear.phpunit.de/File_Iterator-1.3.3 found
Duplicate package channel://pear.phpunit.de/File_Iterator-1.3.2 found
install failed
I tried reinstalling PEAR, upgrading it; updated the PEAR and PHPUnit channel; cleared the PEAR's cache but still no luck, I keep getting the same error.
Does anyone have the same problem and know how to solve it?
Thank you.
After successfully delivering many corporate trainings as well as the private training Solid Quality Mentors, India is launching the Public Training in Hyderabad for SQL Server 2008 and SharePoint 2010. This is going to be one of the most unique and one-of-a-kind events in India where Solid Quality Mentors are offering public classes. I will [...]...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
In this article, we will learn about on-premises Free SQL Azure development tools and how Azure developers can use these tools in their day to day development activity.
In this article, we will learn about on-premises Free SQL Azure development tools and how Azure developers can use these tools in their day to day development activity.
In this article, we will learn about on-premises Free SQL Azure development tools and how Azure developers can use these tools in their day to day development activity.
I have a list grouped by Region and it currently shows all the items for each city. I want to reduce to only the most recent advisory for each city.
I have tried to use an xsl:for-each statement but I am messing up the names/parameters.
List is called mlc
The list contains the fields:
Title
City
Region
Advisory
DateCreated
TT (calculated number field to find the number of minutes from the DateCreated to end of today which I intended to use the smallest to find the most recent)
I have the list grouped by Region and it currently shows all the items for each city. I want to reduce to only the most recent advisory for each city.
Contoso dispose d'une application mobile et d'un site Web qui renvoient des informations d'utilisation. Une sonde (en JS depuis les pages HTML, en Objective-C sur iOS, en Java depuis Android, en C# depuis Windows Phone, en C# ou en JS depuis Windows 8+) envoie via HTTP POST ces informations d'usage en JSON à l'adresse http(s)://webtracker.contoso.com/t/. Le but de ce tutoriel est de montrer comment on peut mettre en ?uvre la réception de ces informations de sonde de façon à ce que cela puisse monter...
I have a table of data as follows
id status conversation_id message_id date_created
1 1 1 72 2012-01-01 00:00:00
2 2 1 87 2012-03-03 00:00:00
3 2 2 95 2012-05-05 00:00:00
I want to get all the rows from the table in date_created DESC order, but only one row per conversation_id. So in the case of the example data above, I would want to get the rows with id 2 and 3.
Any advice is much appreciated.
I'd like to use the deployJava.js tool to have Java automatically detect the currently installed JRE and install an updated version if necessary. My initial impression when reading about deployJava.js was that it would do this out of the box when you simply set a version number as a function parameter for the "runApplet" function. But this has never seemed to work.
Is it even possible to do this, and if so, how?
Here is my current code for launching my applet:
<script type="text/javascript" src="https://www.java.com/js/deployJava.js"></script>
<script type="text/javascript">
var attributes = {id:"applet", name:"TheApplet", code:"TheApplet"};
var parameters = {jnlp_href: "http://localhost/TheApplet.jnlp"};
deployJava.runApplet(attributes, parameters, "1.6.0_31");
</script>
Thanks
As you all know the SharePoint Conference last year in Las Vegas was a great show (here are links to broadcasts of several of our sessions). I followed the show with a ticket to see U2s 360 concert (unlike any other spectacle in rock-and-roll). Since then, Ive often been asked, Is there going to be another SPC in 2010?. The answer is: The next one is October 3-6, 2011 in Anaheim, California. The weather in Cali is truly unbeatable, and the conference is sure to be another smash with great content...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.