User Profile

Collapse

Profile Sidebar

Collapse
FLX
FLX
Last Activity: Sep 4 '07, 04:03 PM
Joined: May 29 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Developing an RSS scraper, but getting lost in all the regexps

    Hello,

    I'm trying to scrape daily titles from http://www.doopes.com/?cat=35444&lan...xc=&inc=&opt=0
    But i'm getting lost using preg_match. Can someone help me with this script?

    Thanks in advance!

    [php]
    [Enter code here]<?php

    $today = date("Y-m-d");

    // Get page
    $url...
    See more | Go to post

  • FLX
    replied to Cant put a wait on external application?
    in .NET
    please, someone?

    Regards,

    Dennis
    See more | Go to post

    Leave a comment:


  • FLX
    started a topic Cant put a wait on external application?
    in .NET

    Cant put a wait on external application?

    Hello all,

    I have problems letting this application wait. I tried everything in my knowledge.
    Here is the code:

    Code:
                        System.Diagnostics.Process procdemux = new System.Diagnostics.Process();
                        procdemux.StartInfo.UseShellExecute = true;
                        procdemux.StartInfo.CreateNoWindow = false;
                        procdemux.StartInfo.RedirectStandardOutput
    ...
    See more | Go to post

  • FLX
    replied to C# reading XML?
    in .NET
    I think its because the xml file is formed by an external application, and it doesnt have a wait on it, so it already starts grabbing while its still compiling.
    See more | Go to post

    Leave a comment:


  • FLX
    replied to C# reading XML?
    in .NET
    Hello again,

    I have the feeling that there still is something wrong with the code.
    JIT gives the following error:
    Code:
    ************** Exception Text **************
    System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
       at System.Xml.XmlTextReaderImpl.Throw(Exception e)
       at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
       at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
    ...
    See more | Go to post

    Leave a comment:


  • FLX
    replied to boolean for uneven numbers
    in .NET
    hello oohay251,

    Thanks for your very quick reply! When i use that code, my whole code suddenly saying stuff like: "Invalid token '=' in class, struct, or interface member declaration"
    I dont think that will work. Do you maybe have another example? maybe based on my code?

    Thank you very much, its highly appreciated!
    See more | Go to post

    Leave a comment:


  • FLX
    started a topic boolean for uneven numbers
    in .NET

    boolean for uneven numbers

    Hello,

    I'm an beginner and i try to make a boolean for uneven numbers, but i cant figure out how!
    This is as far as i came:

    Code:
    int number = 171;
    bool checkEvenNumber = ???
    string mesg = Convert.ToString(checkEvenNumber);
    MessageBox.Show(mesg);
    Does anyone know what todo at int number?

    Thanks in advance!

    Regards,

    Denn...
    See more | Go to post

  • FLX
    replied to C# reading XML?
    in .NET
    Awesome man, you made my day! there was a slight error in VidNode tho, it needed to be:
    Code:
    XmlNode VidNode = doc.SelectSingleNode("/MediaInfo/File/StreamKind[@ID='Video']");
    Thanks so much :D

    Regards,

    Dennis...
    See more | Go to post

    Leave a comment:


  • FLX
    replied to C# reading XML?
    in .NET
    hello all,

    the error that JIT spits out is "System.NullRef erenceException : Object reference not set to an instance of an object.". I also looked up xpath, but i cant find a good example of extracting a single value, can anyone help me with that?

    Regards,

    Dennis
    See more | Go to post

    Leave a comment:


  • FLX
    replied to C# reading XML?
    in .NET
    Dear mwalts,

    First of all, thanks for your swift reply, its highly appreciated.
    The code that you have posted unfortunately doesnt work. JIT debug catches errors at line 36, which is the "newWidthBox.Te xt = xmlwidth.InnerT ext;" line.
    Does anyone know what is wrong with it?

    Regards,

    Dennis
    See more | Go to post

    Leave a comment:


  • FLX
    started a topic C# reading XML?
    in .NET

    C# reading XML?

    Hello,

    I'm a beginner and i got serious issues with reading xml in C#.
    This is my XML doc:

    Code:
    <?xml version='1.0' encoding='ISO-8859-1'?><MediaInfo><File CompleteFileName='ToDo'>
    
    <StreamKind ID='General'>
    
    <Stream ID='0'><Tag ID='Format/String'>AVI</Tag>
    
    <Tag ID='OveralBitRate/String'></Tag>
    
    <Tag ID='FileSize/String'>698
    ...
    See more | Go to post
No activity results to display
Show More
Working...