Sunday, January 11, 2015

SPARQL Query Tool

SPARQL is an RDF query language, it able you to retrieve results set based on your conditions from an RDF file (such as Tuertle file(s)) or from a SPARQL endpoint (such dbpedia which stores data from Wikipedia web site).
You can imagine what can you retrieve from a rich data web site such as Wikipedia, for example the following SPARQL query will retrieve all triples from Wikipedia web site where "Jordan" is the subject for all these triples:

select ?xlabel ?ylabel
where
{
:Jordan ?x ?y.
?x rdfs:label ?xlabel.
?y rdfs:label ?ylabel.
FILTER(lang(?xlabel) = "en")
FILTER(lang(?ylabel) = "en")
}


you can try this example or other examples on the dbpedia endpoint web query explorer at the following link:
http://dbpedia.org/snorql/

There are several SPARQL query tool to execute SPARQL queries and retrieve the results set such as Twinkle and Jena. Each of these tools has a lot of advantages and some disadvantages, we have developed a new SPARQL query tool that combines the advantages for these tools and avoid the disadvantages.

you can find more about our SPARQL query tool here:
http://programmervision.blogspot.com/p/sparql-query-tool.html


Actually, when you work on semantic web field you already work on the feature of the web.

Thursday, January 8, 2015

Merge Multi-VCF files to one VCF file

Actually there are several methods to import contacts to your new mobile from your old mobile ,  but sometimes the result of exporting contacts process is appeared as multi- VCF files ,so - at this situation - you should to merge these files to one file to import it to your new mobile.

Here is the trick  !!!


  1. Open your command prompt (by enter "cmd"  at run dialog) .
  2. Change your directory to that one have the VCF files(ex: suppose the contacts files located at c:\ContactFolder, type cd c:\ContactFolder) 
  3. Type the following command :
Copy *.vcf allContact.vcf

Now you will find a new file called allContact.vcf at the same content folder, you can use it to import your contacts to your new mobile.

Monday, November 25, 2013

How to turn off magic_quotes_gpc at Godaddy hosting

If You try to deploy your Joomla website at Godaddy hosting , you may face a problem that you should turn off  magic_quotes_gpc, in this article I will explain the correct way to do that.

After I had searched for in the internet and try many solves , I Found the best solution as following  :

(1) First of all do not try to turn off the magic quotes in your .htaccess file, it won’t work on godaddy.
(2) Second, if you’re running PHP5 on your account, rename your php.ini file to php5.ini, make sure it’s in your root folder.
(3) Third, make sure all the lines in your php5.ini file end in a semi colon ;
(4) Fourth, add this line to your php5.ini file:
magic_quotes_gpc = Off;


the  source :
http://support.godaddy.com/groups/web-hosting/forum/topic/how-to-turn-off-magic_quotes_gpc/


Saturday, May 25, 2013

HtmlEditorExtender (ASP 4.5)

This Tutorial  about using HtmlEditorExtender in your aspx pages.
Frst of all  HtmlEditorExtender  can be added as extender for a regular textbox control for example :


<asp:TextBox ID="txtMessageBody" runat="server" TextMode="MultiLine" Rows="10" Width="100%"></asp:TextBox>
<ajaxToolkit:HtmlEditorExtender ID="txtMessageBody_HtmlEditorExtender" runat="server" Enabled="True" TargetControlID="txtMessageBody">
</ajaxToolkit:HtmlEditorExtender>

but if you try to run your web site the following error will be appeared  : 
"Sanitizer provider is not configured in the web.config file. If you are using the HtmlEditorExtender with a public website then please configure a Sanitizer provider. Otherwise, set the EnableSanitization property to false."

So you have two choices to solve it  : 
First choice :
If your page is not public you can set the EnableSanitization property to false in your HtmlEditorExtender

Second Choice :
  1. Add "HtmlAgilityPack.dll" and  "SanitizerProviders.dll" in your "Bin" Folder
  2. Add The following in Your Web.Config file :
Under Configuration tag  add

<configSections>

<sectionGroup name="system.web">

<section name="sanitizer" requirePermission="false"

type="AjaxControlToolkit.Sanitizer.ProviderSanitizerSection, AjaxControlToolkit" />

</sectionGroup>

</configSections>

<runtime>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<dependentAssembly>

<assemblyIdentity name="HtmlAgilityPack" publicKeyToken="bd319b19eaf3b43a" culture="neutral" />

<bindingRedirect oldVersion="0.0.0.0-1.4.6.0" newVersion="1.4.6.0" />

</dependentAssembly>

</assemblyBinding>

</runtime>

Under System.Web  tag add 
<sanitizer defaultProvider="HtmlAgilityPackSanitizerProvider">

<providers>

<add name="HtmlAgilityPackSanitizerProvider" type="AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider"></add>

</providers>

</sanitizer>




Then The Result is

 




Monday, September 17, 2012

Solve Toad Problem : ''00.00.0000 00:00:00'' is not a valid date and time

Yesterday , I had a problem at Toad  , when I exported data to Excel file I had the following error :

 EConvertError ''00.00.0000 00:00:00'' is not a valid date and time.

After two hours I found the solve :

  1. From "Utilities" Menu select  "Task Scheduler"
  2. You will found one task or  more that have the same error above and it is highlighted  with white color.
  3. select  it  - if you can't then just click mouse on it and then move mouse to title bar - then delete  it
  4. That It !! Enjoy

Note:It works for all toad versions  

Sunday, August 5, 2012

New Update for Tango Program

Hi All !!!!
Are you one of Tango program  lovers ?!!!
There is a new update for "Tango" released in 31/7/2012,which has these new feautres :

Note: There is a previous update for  "Tango"  includes "Send & recive FREE text messages with your Tango contacts"



Monday, July 30, 2012

Search and Find People's Phone Numbers

Would you like to know who called you with unknown number ?!! , O.K it is almost possible  :D
Follow these steps :

  1. Go to  http://www.truecaller.com/  
  2. In "Free phone number search" box write the unknown number.
  3. If you have not registered before then a new page for registration will appear and you must register by your account in Facebook, Twitter , Google+,..etc(may be you will ask to rewrite the unknown number)
  4. Wait for a moment then the result will appear in gray box!!
Note: You can download a mobile version of "truecaller" program but you should note the program will import your phone numbers and save it in program's DataBase to able other people for search and find it.