gowtham's Profile




  • 2

    I used the System.Xml.Linq.XElement for the purpose. Just check code below for reading the value of first child node of the xml(not the root node).

            string textXml = "<xmlroot><firstchild>value of first child</firstchild>........</xmlroot>";
            XElement xmlroot = XElement.Parse(textXml);
            string firstNodeContent = ((System.Xml.Linq.XElement)(xmlroot.FirstNode)).Value;
    • 9 answers
    • 0 votes
  • Let us start by creating a new project (for details on using Leiningen, see this guide:

    $ lein new nzb

    Now edit project.clj to contain the following:

    (defproject nzb "0.1.0-SNAPSHOT"
      :description ""
      :url ""
      :license {:name "Eclipse Public License"
                :url "http://www.eclipse.org/legal/epl-v10.html"}
      :dependencies [[org.clojure/clojure "1.4.0"]
                     [org.clojure/data.zip "0.1.1"]])
    • 10 answers
    • 0 votes
  • the following XML in the example.nzb file:

    <?xml version="1.0" encoding="iso-8859-1" ?>
    <!-- <!DOCTYPE nzb PUBLIC "-//newzBin//DTD NZB 1.1//EN" "http://www.newzbin.com/DTD/nzb/nzb-1.1.dtd"> -->
    <nzb xmlns="http://www.newzbin.com/DTD/2003/nzb">
       <meta type="title">Your File!</meta>
       <meta type="tag">Example</meta>
     <file poster="Joe Bloggs &lt;[email protected]&gt;" date="1071674882" subject="Here's your file!  abc-mr2a.r01 (1/2)">
         <segment bytes="102394" number="1">[email protected]</segment>
         <segment bytes="4501" number="2">[email protected]</segment>
    • 10 answers
    • 0 votes
  • Asked on January 24, 2019 in XML.
    It is worth mentioning that when you embed SVGs into another SVG with:
    <image x="10" y="20" width="80" height="80" xlink:href="image.svg" />

    then the embedded SVG takes a rectangular shape with given dimensions.

    That is to say, if your embedded SVG is a circle or some shape other than a square, then it becomes a square with transparency. Therefore, mouse events get trapped into that embeded square and do not reach the parent SVG. Watch out for that.

    A better approach is using a pattern. To fill a shape, either a circle, a square or even a path.

     <pattern id="pat" x="0" y="0" width="500" height="500" patternUnits="userSpaceOnUse">
       <image x="0" y="0" width="500" height="500" xlink:href="images/mysvg.svg"></image>

    Then use the pattern like this:

    <circle cx="0" cy="0" r="250" fill="url(#pat)"></circle>
    • 6 answers
    • 0 votes
  • Asked on January 24, 2019 in XML.

    Use the image element and reference your SVG file. For fun, save the following as recursion.svg:

    <svg width="100%" height="100%" viewBox="-100 -100 200 200" version="1.1"
      <circle cx="-50" cy="-50" r="30" style="fill:red" />
      <image x="10" y="20" width="80" height="80" xlink:href="recursion.svg" />
    • 6 answers
    • 0 votes
  • Asked on January 19, 2019 in Windows.

    Download fciv.exe directly from http://www.microsoft.com/en-us/download/confirmation.aspx?id=11533

    shell> fciv.exe [yourfile]

    will give you md5 by default.

    You can read up the help file fciv.exe -h

    • 7 answers
    • 0 votes
  • Asked on January 19, 2019 in Windows.

    Right-click on the file you want to run a checksum against and choose “Properties” from the context menu. 3. Click the tab labelled “File Hashes” at the top of the window to see the MD5, SHA-1 and CRC32 hashes for the file you selected

    CertUtil -hashfile pathToFileToCheck [HashAlgorithm]
    HashAlgorithm choices: MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512

    So as an example, the subsequent generates associate degree MD5 substantiation for the file C:\TEMP\MyDataFile.img:

    CertUtil -hashfile C:\TEMP\MyDataFile.img MD5


    • 7 answers
    • 0 votes
  • Asked on January 19, 2019 in Windows.

    There is no error for Pandas 0.12.0 and NumPy 1.8.0.

    I have managed to create a big DataFrame and save it to a csv file and then successfully read it. Please see the example here. The size of the file is 554 Mb (It even worked for 1.1 Gb file, took longer, to generate 1.1Gb file use frequency of 30 seconds). Though I have 4Gb of RAM available.

    My suggestion is try updating Pandas. Other thing that could be useful is try running your script from command line, because for R you are not using Visual Studio (this already was suggested in the comments to your question), hence it has more resources available.

    • 7 answers
    • 0 votes
  • Asked on January 19, 2019 in Windows.

    I encountered this issue as well when I was running in a virtual machine, or somewere else where the memory is stricktly limited. It has nothing to do with pandas or numpy or csv, but will always happen if you try using more memory as you are alowed to use, not even only in python.

    The only chance you have is what you already tried, try to chomp down the big thing into smaller pieces which fit into memory.

    If you ever asked yourself what MapReduce is all about, you found out by yourself…MapReduce would try to distribute the chunks over many machines, you would try to process the chunke on one machine one after another.

    What you found out with the concatenation of the chunk files might be an issue indeed, maybe there are some copy needed in this operation…but in the end this maybe saves you in your current situation but if your csv gets a little bit larger you might run against that wall again…

    It also could be, that pandas is so smart, that it actually only loads the individual data chunks into memory if you do something with it, like concatenating to a big df?

    Several things you can try:

    • Don’t load all the data at once, but split in in pieces
    • As far as I know, hdf5 is able to do these chunks automatically and only loads the part your program currently works on
    • Look if the types are ok, a string ‘0.111111’ needs more memory than a float
    • What do you need actually, if there is the adress as a string, you might not need it for numerical analysis…
    • A database can help acessing and loading only the parts you actually need (e.g. only the 1% active users)
    • 7 answers
    • 0 votes

    @echo off
    >output.txt (
    echo Checking your system infor, Please wating...
    systeminfo | findstr /c:"Host Name" 
    systeminfo | findstr /c:"Domain"
    ipconfig /all | find "Physical Address" 
    ipconfig | find "IPv4" 
    ipconfig | find "Default Gateway"
    • 7 answers
    • 0 votes