<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Nic0tiN&#039;s Blog &#187; English</title>
	<atom:link href="http://www.nic0tin.ch/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nic0tin.ch/</link>
	<description>Remember Me!</description>
	<lastBuildDate>Wed, 15 Feb 2012 22:18:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on AppBlocker &#8211; Monitoring software (C#/MySQL) by nic0tin</title>
		<link>http://www.nic0tin.ch/2011/12/18/appblocker-monitoring-software-cmysql/#comment-30</link>
		<dc:creator>nic0tin</dc:creator>
		<pubDate>Wed, 15 Feb 2012 22:18:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.nic0tin.ch/?p=232#comment-30</guid>
		<description>Hi Johan,
Yes, sessionstore.js is kind of an art :) 
_lstRunningProcess is a type of List&lt;Processus&gt;.
Processus is a class I created to send the process to the MySQL Server.
If you want to extract the title of the firefox tabs, go with this:
&lt;code&gt;
Newtonsoft.Json.JsonSerializer js = new Newtonsoft.Json.JsonSerializer();
var reader = new Newtonsoft.Json.JsonTextReader(new StreamReader(@_strFFProfile));
//@_strFFProfile is the path to the sessionstore.js file.
JObject _obj = js.Deserialize&lt;JObject&gt;(reader);
foreach (var window in _obj[&quot;windows&quot;])
{
  foreach (var tab in window[&quot;tabs&quot;])
  {
    Console.WriteLine(&quot;Opened tab (title):&quot;+ &lt;strong&gt;tab[&quot;entries&quot;].Last[&quot;title&quot;].ToString()&lt;/strong&gt;);
  }
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Johan,<br />
Yes, sessionstore.js is kind of an art <img src='http://www.nic0tin.ch/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
_lstRunningProcess is a type of List&lt;Processus&gt;.<br />
Processus is a class I created to send the process to the MySQL Server.<br />
If you want to extract the title of the firefox tabs, go with this:<br />
<code><br />
Newtonsoft.Json.JsonSerializer js = new Newtonsoft.Json.JsonSerializer();<br />
var reader = new Newtonsoft.Json.JsonTextReader(new StreamReader(@_strFFProfile));<br />
//@_strFFProfile is the path to the sessionstore.js file.<br />
JObject _obj = js.Deserialize&lt;JObject&gt;(reader);<br />
foreach (var window in _obj["windows"])<br />
{<br />
  foreach (var tab in window["tabs"])<br />
  {<br />
    Console.WriteLine("Opened tab (title):"+ <strong>tab["entries"].Last["title"].ToString()</strong>);<br />
  }<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on AppBlocker &#8211; Monitoring software (C#/MySQL) by Johan</title>
		<link>http://www.nic0tin.ch/2011/12/18/appblocker-monitoring-software-cmysql/#comment-29</link>
		<dc:creator>Johan</dc:creator>
		<pubDate>Wed, 15 Feb 2012 13:19:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.nic0tin.ch/?p=232#comment-29</guid>
		<description>Hi,

I&#039;ve been looking for code like this for a few days. Reading and processing the sessionstore.js file seems to be an art!

I&#039;m trying to translate your code to VB.Net, and I&#039;m struggling with this one line:

_lstRunningProcess.Add(new Processus(p.Id, &quot;firefox&quot;, tab[&quot;entries&quot;].Last[&quot;title&quot;].ToString())); 

What kind of object is _lstRunningProcess and what is &quot;Processus&quot;? If it means &quot;Process&quot;, then the values passed to it doesn&#039;t really work out.

In VB I&#039;ve got the following so far:

_lstRunningProcess.Add(New Processus(p.Id, &quot;firefox&quot;, tab(&quot;entries&quot;).Last(&quot;title&quot;).ToString()))

Could you help? I&#039;m also having issues with the Newtonsoft.Json.JsonSerializer telling me that there is &quot;no source code available&quot;, but that&#039;s another day&#039;s concern.

Do you think you can help with sorting out that one line?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;ve been looking for code like this for a few days. Reading and processing the sessionstore.js file seems to be an art!</p>
<p>I&#8217;m trying to translate your code to VB.Net, and I&#8217;m struggling with this one line:</p>
<p>_lstRunningProcess.Add(new Processus(p.Id, &#8220;firefox&#8221;, tab["entries"].Last["title"].ToString())); </p>
<p>What kind of object is _lstRunningProcess and what is &#8220;Processus&#8221;? If it means &#8220;Process&#8221;, then the values passed to it doesn&#8217;t really work out.</p>
<p>In VB I&#8217;ve got the following so far:</p>
<p>_lstRunningProcess.Add(New Processus(p.Id, &#8220;firefox&#8221;, tab(&#8220;entries&#8221;).Last(&#8220;title&#8221;).ToString()))</p>
<p>Could you help? I&#8217;m also having issues with the Newtonsoft.Json.JsonSerializer telling me that there is &#8220;no source code available&#8221;, but that&#8217;s another day&#8217;s concern.</p>
<p>Do you think you can help with sorting out that one line?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

