User Profile

Collapse

Profile Sidebar

Collapse
kronus
kronus
Last Activity: Mar 28 '14, 06:22 PM
Joined: May 15 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I have started looking at my own post and I started to think that maybe this wasn't making much sense to anyone other than myself.

    Say I have a file with the following:
    Code:
    /var/www/vhosts/something.com/images/1.jpg
    /var/www/vhosts/something.com/images/2.jpg
    /var/www/vhosts/something.com/images/3.jpg
    /var/www/vhosts/something.com/images/4.jpg
    /var/www/vhosts/something.com/images/4.jpg
    ...
    See more | Go to post

    Leave a comment:


  • I don't know if I understand your reply, because I am trying to read each individual line of file1 to grep the entire web site.

    So are you saying that I should write:
    Code:
    #!/bin/bash
    
    grep –f files_over_2000_bytes.txt * > matched_line.txt
    See more | Go to post

    Leave a comment:


  • This is what I came up with:

    Code:
    #!/bin/bash
    
    while read LINE
    
    do
    
    grep –nr $LINE * > matched_line.txt
    
    done < files_over_2000_bytes.txt
    See more | Go to post

    Leave a comment:


  • grep text file line by line and grep a directory for a match of each line

    Hi everyone,

    This is my first time posting to the UNIX form and it might be a strange request, but I believe I have most of the pieces.

    Here's the overall goal -- I am trying to find the links in a large web site that are linked to files over 2000k.

    I used the command line to find all files on the server that are larger than 2000k by using the following:

    Code:
    find ./ -size +2000c >
    ...
    See more | Go to post

  • kronus
    started a topic PHP, Pear, SMTP and random equal signs in html emails
    in PHP

    PHP, Pear, SMTP and random equal signs in html emails

    Hey everyone,

    I am stumped once more and you guys have always helped in one way or the other.

    I am just now starting to fool around with using PEAR to send html emails. Following the sample scripts -- http://www.phpmaniac.net/wiki/index....ple_recipients -- I was able to send html emails with no problem.

    However, when I applied these concepts to a dynamically generated email,...
    See more | Go to post

  • XML to ArrayCollection, sort and then convert to XML again

    Hi everyone,

    Please tell me what I am doing wrong:

    I have an xml data coming to my Air application that looks something like this:
    Code:
    <project name="Sales Demos" path="/Company Home/Client Spaces/Sales Demos" type="{http://www.myCo.org/model/content/1.0}folder" id="71f36dcd-b59b-11dd-8205-5992b4466fe5" modified="Nov 18, 2008 3:51:20 PM" size="" icon32="/images/icons/default.gif"
    ...
    See more | Go to post

  • Flex MouseEvent.MOUSE_UP MouseEvent.MOUSE_DOWN & listeners detect hold down mouse

    Hi everyone,

    Yes, I need to use you guys as a sounding board once more :-)

    I have a button that has two listeners one for mouse up and the other for mouse down and they point to the same function.

    Code:
    $btnRewind.addEventListener(MouseEvent.MOUSE_DOWN,onBtnBack);
    $btnRewind.addEventListener(MouseEvent.MOUSE_UP,onBtnBack);
    I want the end user to keep holding down their...
    See more | Go to post

  • kronus
    replied to Flex, Datagrids, rows & how to expand a row
    Left something out that is pretty important to making this work:

    expand is a state:
    Code:
    	<mx:states>
    		<mx:State name="expanded">
    			<!-- <mx:SetProperty name="height" value="196"/> -->
    			<mx:AddChild position="lastChild">
    				
    				<mx:Canvas x="10" y="33" width="100%" height="100%"
    ...
    See more | Go to post

    Leave a comment:


  • kronus
    replied to Converting string into a numeric date value
    Thanx 4 d idea of treating it as one object/instance.

    After making my replaces, then it was time to return the whole xml object:
    Code:
    			public function createDateModified(s:String):XML
    			{
    				var i:int = 0;
    				var retStr:String = '';
    				var str2xml:XML = new XML(s);
    				var xml2list:XMLList = new XMLList(str2xml);
    				var list2col:XMLListCollection = new XMLListCollection(xml2list);
    ...
    See more | Go to post

    Leave a comment:


  • kronus
    started a topic Converting string into a numeric date value

    Converting string into a numeric date value

    I'm receiving an xml file that has a child called modified and it represents a date value in the form of a string -- Nov 14, 2008 -- and in my app, I have items associated with each object and I'm trying to sort them by the date modified field.

    So what's the problem, right?

    Well, obviously Sep 14, 2008 is before Nov 14, 2008, but when doing a sort process, ActionScript will come back with Nov coming before Sep, because...
    See more | Go to post

  • kronus
    started a topic ActionScript, Alfresco and callbacks

    ActionScript, Alfresco and callbacks

    I need further help in understanding how callbacks work with Alfresco.

    I am able to connect to alfresco and I’m trying to return a list of users from three groups, but it seems that I don’t quite understand how callbacks work, because it’s returning all three groups to my function at once, rather than having the function return the result of each set of users from their respective groups.

    Code:
                // returns
    ...
    See more | Go to post

  • kronus
    replied to Flex xmllist to datagrid into a single row
    I was able to use the labelFunction for the datagridcolumn to populate the datagridcolumn, along with the use of the headerText to give my column a header.

    First, the new mxml
    Code:
            <mx:DataGrid id="myUserList" height="100%" width="65%" dragEnabled="true" dropEnabled="true" dragMoveEnabled="true" styleName="blueContainer1" backgroundColor="#2C4054"
    ...
    See more | Go to post

    Leave a comment:


  • kronus
    replied to Flex xmllist to datagrid into a single row
    I figured it out and it was something simple. I had to send my XML to an XMLListCollecti on. I renamed the variables so that the code could be easy to follow. And I had to take out the Datagrid columns section of the mxml

    Code:
    			private function gotUsersOfGroups(x:XMLList):void
    			{
    				var xmlListString:String = '<users>';
    				xmlListString += x.children().child("userName");
    				xmlListString
    ...
    See more | Go to post

    Leave a comment:


  • kronus
    started a topic Flex xmllist to datagrid into a single row

    Flex xmllist to datagrid into a single row

    I have made a lot of datagrids work in my time, but I seem to be missing something.

    I'm receiving an xmllist and all I'm trying to do is set the dataprovider. It should be straight forward, but it's placing all the children of '<userName>some Name</userName>' into a single row.

    Here's the xmllist that I'm receiving:
    Code:
    <users><userName>rob</userName>
    <userName>testd3</userName>
    ...
    See more | Go to post

  • kronus
    replied to Flex, Datagrids, rows & how to expand a row
    I figured it out.

    It was an epic “programming” journey over the weekend for me to figure out how to do the rollover on the items within the datagrid.

    First, I found out that this lib(flexlib:VAc cordion) cannot be used with Flex Builder 2, which is what I have at home. Then I found out that Flex Builder 3 can only run with Java 1.5, which is the version of Java that is allowed to install on 10.5 OS, which I am running...
    See more | Go to post

    Leave a comment:


  • kronus
    started a topic Flex, Datagrids, rows & how to expand a row

    Flex, Datagrids, rows & how to expand a row

    Hi Everyone,

    It's been a long time and I'm always appreciative of your help.

    I'm working on a Datagrid at the component level in Flex.

    I know that I can expand a row within the Datagrid by clicking on a row:

    Code:
    		private function onItemClick(e : ListEvent) : void
    		{
    			// setting these xml properties will automatically update the itemRenderers on the fly
    ...
    See more | Go to post
No activity results to display
Show More
Working...