User Profile

Collapse

Profile Sidebar

Collapse
DjPal
DjPal
Last Activity: May 23 '10, 09:25 PM
Joined: Dec 4 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to stop embedded flash file from looping continuously

    I have a small problem when embedding an swf file in a flash cs4 project (adobe), when run, the embedded video loops continuously. If you play the swf file outside adobe flash, it doesn't loop.
    Any one know how i can stop the embedded file from looping?
    See more | Go to post
    Last edited by Niheel; May 24 '10, 03:42 AM. Reason: clean up details

  • DjPal
    started a topic How to stop embedded .swf from looping

    How to stop embedded .swf from looping

    Hi,

    I have embedded a .swf file into a new project in adobe flash,
    when i play the .swf file normally it does not loop, but in the project, the video loops, does anyone know how i can avoid the looping?
    Thanks so much.
    See more | Go to post

  • thank you very much.
    the items are now appearing vertically, however there is a large gap between each item and once the items reach the bottom, new items are allocated into another column.. could it be just one column? I tried AutoArrange as True and False but still get a second column..
    See more | Go to post

    Leave a comment:


  • DjPal
    started a topic autosizing picture in picturebox

    autosizing picture in picturebox

    Hi,
    I have a picturebox in C#, visual studio 2008. when a picture is sent into the picturebox, the image is does not resize to the size of the picturebox. I tried the "behaviour options" in visual studios properties but alas no luck.
    Is there a way around this?

    Thank you.
    See more | Go to post

  • DjPal
    started a topic arrange items in rows (vertically) in a list view

    arrange items in rows (vertically) in a list view

    Hi.

    I have a listview , and when items are allocated to it, they get displayed in rows, ie, one next to the other, whereas i would prefer it to place each item in a new line such that it is arranged vertically, is there any way of doing this?
    See more | Go to post

  • thanks a lot for setting me in the right direction!
    I now have;

    Code:
    s = r"(%s)" % ("\.".join(['(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)']*4))
    patt = re.compile(s)
    fn = "file"
    s = open(fn).read()
    i = 0
    
    results = []
    while True:
        m = patt.search(s, i)
        if m:
            results.append(m.group(1))
            i = m.end()+1
    ...
    See more | Go to post

    Leave a comment:


  • DjPal
    started a topic parse log file to obtain IP's with failed attempts

    parse log file to obtain IP's with failed attempts

    I am trying to parse through a log file to obtain the IP addresses with >5 failed
    login attempts, firstly I'm trying to get the IP addresses but there seems to be something wrong with the regular expression I think. would be good to export the addresses to another text file, does anyone have any ideas where to go from here?

    Thank you.


    [code=python]

    #!/usr/local/bin/python
    file = open(location)...
    See more | Go to post
    Last edited by bvdet; Feb 28 '10, 07:19 PM. Reason: Fix code tags

  • counting the occurrences of specific terms in a text file, in python

    Say I have a text file containing entries, and I want to count the number of entries which have the word "apple" in them.

    I have tried the following code, anyone knows what would help? learning python.

    -->
    Code:
    #!/usr/local/bin/python
    file = open("C:/Users/xyzl/Desktop/fruit.txt","r") #Open File.
    def appleno(fruit):
        res = 0
        
        for (apple) in auth:
    ...
    See more | Go to post
    Last edited by bvdet; Feb 28 '10, 12:37 AM. Reason: Add code tags

  • Thanks a lot everyone! Managed in the end!
    See more | Go to post

    Leave a comment:


  • hi sanjib65,

    brilliant! now everything i select is copied to the other listbox, but its not a 'move' since the items in the original listbox are still there after the move.

    so i modified the code as below but, all the items don't get removed! strange.

    private void btnMoverr_Click (object sender, EventArgs e)
    {
    foreach (int i in lstBoxl.Selecte dIndices)
    {
    ...
    See more | Go to post

    Leave a comment:


  • sorry im new to programming and dont understand it. im not purposely ignoring advice!
    See more | Go to post

    Leave a comment:


  • Hi
    sanjib65

    the aim is to move multiple selected items from one listbox to another listbox. i have tried the following code;

    private void btnMovell_Click (object sender, EventArgs e)
    {
    lstBoxl.Items.A dd(lstBoxr.Text );
    lstBoxr.Items.R emove(lstBoxr.S electedItems);


    but it just moves one selected item at a time.
    See more | Go to post

    Leave a comment:


  • Yes Dheeraj,
    I have two list boxes, and i want to move multiple items (yes, selected) from one list box to another!
    See more | Go to post

    Leave a comment:


  • Thanks guys.. still havn't solved the issue yet but incase you think of anything more let me know! cheers.
    See more | Go to post

    Leave a comment:


  • DjPal
    started a topic List Box : how to move multiple items in C# ?

    List Box : how to move multiple items in C# ?

    Hello,

    I am trying to move multiple items from one list box to another, i have tried the following code, but the output so far just gives me "{collectio n}" in the other list box.
    Code:
    private void btnMoverr_Click(object sender, EventArgs e)
            {
                
                //lstBoxr.Items.Add(lstBoxl.SelectedItems);
                //lstBoxl.Items.Remove(lstBoxr.SelectedItems);
    ...
    See more | Go to post
No activity results to display
Show More
Working...