<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Free Palestine &#8211; Diary of an Emacs tragic</title>
	<atom:link href="https://emacstragic.net/category/free-palestine/feed/" rel="self" type="application/rss+xml" />
	<link>https://emacstragic.net</link>
	<description>Jason Lewis</description>
	<lastBuildDate>Fri, 06 Sep 2024 02:11:04 +0000</lastBuildDate>
	<language>en-AU</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://emacstragic.net/wp-content/uploads/2018/12/cropped-jason-lewis-profile-picture-square-150x150.jpg</url>
	<title>Free Palestine &#8211; Diary of an Emacs tragic</title>
	<link>https://emacstragic.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">38469313</site>	<item>
		<title>We vote for Palestine</title>
		<link>https://emacstragic.net/free-palestine/we-vote-for-palestine/</link>
					<comments>https://emacstragic.net/free-palestine/we-vote-for-palestine/#respond</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Fri, 06 Sep 2024 02:11:04 +0000</pubDate>
				<category><![CDATA[Free Palestine]]></category>
		<category><![CDATA[free palestine]]></category>
		<category><![CDATA[Palestine]]></category>
		<guid isPermaLink="false">https://emacstragic.net/?p=1859</guid>

					<description><![CDATA[This site is great. Use it to send your local council election candidates an email asking them to take action for Palestine: https://wevoteforpalestine.net Free Palestine! From The River To The Sea, Palestine Will Be Free Stop the genocide.]]></description>
										<content:encoded><![CDATA[
<p>This site is great. Use it to send your local council election candidates an email asking them to take action for Palestine:</p>



<p><a href="https://wevoteforpalestine.net">https://wevoteforpalestine.net</a></p>



<p>Free Palestine!</p>



<p>From The River To The Sea, Palestine Will Be Free</p>



<p>Stop the genocide.</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/free-palestine/we-vote-for-palestine/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1859</post-id>	</item>
		<item>
		<title>Execute a script from MicroSIP on call answer</title>
		<link>https://emacstragic.net/windows/execute-a-script-from-microsip-on-call-answer/</link>
					<comments>https://emacstragic.net/windows/execute-a-script-from-microsip-on-call-answer/#comments</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Wed, 29 May 2024 06:50:22 +0000</pubDate>
				<category><![CDATA[Free Palestine]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://emacstragic.net/?p=1816</guid>

					<description><![CDATA[MicroSIP is a fine open source SIP VOIP soft phone. It mostly does exactly what one needs. However I wanted to make it open the browser and lookup the number of the inbound caller when you answer the phone. It turned out to be trickier than expected as MicroSIP uses the old INI file format [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><a href="https://www.microsip.org/">MicroSIP</a> is a fine open source SIP VOIP soft phone. It mostly does exactly what one needs. However I wanted to make it open the browser and lookup the number of the inbound caller when you answer the phone.</p>



<p>It turned out to be trickier than expected as MicroSIP uses the old INI file format for passing in the command.</p>



<p>Upon reading the source, I saw that MicroSIP uses the function GetPrivateProfileString to read the ini file and this was never designed to cope with long strings with spaces in them.</p>



<p>I came up with a solution to use the good old 8.3 filename format in windows for the path names.</p>



<p>To discover the file names you can use <code>dir /X</code>. Edit the cmdCallAnswer line of the micrisip.ini file. </p>



<p><code>cmdCallAnswer=C:\Users\foo bar\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\foo bar\launch_browser.py https://example.com/path</code></p>



<p>becomes something like:</p>



<p><code>cmdCallAnswer=<code>C:\Users\FOOBAR~1\AppData\Local\Microsoft\WindowsApps\python.exe c:\Users\FOOBAR~1\LAUNCH~1.PY https://example.com/path</code></code></p>



<p>Also, MicroSIP works perfectly well under wine too!</p>



<p>This is the script I wrote for launching the browser:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: python; title: ; notranslate">
import sys
import webbrowser

def main():
    if len(sys.argv) &lt; 2:
        print(&quot;Usage: launch_browser.py &lt;URL&gt; &#x5B;param1=value1] &#x5B;param2=value2] ...&quot;)
        sys.exit(1)

    base_url = sys.argv&#x5B;1]
    query_params = sys.argv&#x5B;2:]

    # Construct the query string
    query_string = &quot;&quot;.join(query_params)

    # Combine the base URL and query string
    full_url = f&quot;{base_url}{query_string}&quot;

    # Open the default web browser with the constructed URL
    webbrowser.open(full_url)

if __name__ == &quot;__main__&quot;:
    main()

</pre></div>


<p>I hope this helps someone and Free Palestine! Stop the genocide!</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/windows/execute-a-script-from-microsip-on-call-answer/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1816</post-id>	</item>
		<item>
		<title>##palestine on libera</title>
		<link>https://emacstragic.net/free-palestine/palestine-on-libera/</link>
					<comments>https://emacstragic.net/free-palestine/palestine-on-libera/#respond</comments>
		
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Wed, 13 Dec 2023 04:19:56 +0000</pubDate>
				<category><![CDATA[Free Palestine]]></category>
		<category><![CDATA[free palestine]]></category>
		<guid isPermaLink="false">https://emacstragic.net/?p=1783</guid>

					<description><![CDATA[Today with the help of two other members, elisa and xph I created ##palestine on the libera IRC network. Drop by and say hello: https://web.libera.chat/?channel=##palestine or ircs://libera.chat:6697/%23%23palestine]]></description>
										<content:encoded><![CDATA[
<p>Today with the help of two other members, elisa and xph I created ##palestine on the libera IRC network.</p>



<p>Drop by and say hello:</p>



<p><a href="https://web.libera.chat/?channel=##palestine">https://web.libera.chat/?channel=##palestine</a></p>



<p>or</p>



<p> <a href="ircs://libera.chat:6697/%23%23palestine">ircs://libera.chat:6697/%23%23palestine</a></p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://emacstragic.net/free-palestine/palestine-on-libera/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1783</post-id>	</item>
	</channel>
</rss>
