Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Greggory Shaw

Pages: 1 ... 22 23 [24] 25 26 ... 30
346
General Discussion / Some changes - Os2notes.net
« on: February 17, 2015, 10:01:32 am »
I couldn't find out why the load time in 12+ seconds, and I needed to clean up the site anyways. Turns out it was the last thing I checked it was the PHP I added last week. Please email me if you are still have load time problems.


Also -  Vote for your motherboard:  https://www.polleverywhere.com/free_text_polls/P2Kvzr8BYo4ZgZu?preview=true
onLY four votes so far - don't make me track you down.

And send some best practices for OS/2: http://os2notes.net/os2installing.html


New - posted notes/info in the header look for new posts !


Greggory

347
Hardware / VOTE - for the top 3 OS/2 motheboards !
« on: February 14, 2015, 09:32:26 pm »
VOTE - for the top 3 OS/2 motheboards !

Webpage - http://os2notes.net/os2motherboards.html


1) Must still being produce (check new egg, it will show out of stock if discontinued).
2) Comment on the motherboards sound & lan results
3) Video card used.

Live Voting - https://www.polleverywhere.com/greggoryshaw195 (if submit button doesn't work, use 'enter' key).

Live Results - https://www.polleverywhere.com/free_text_polls/P2Kvzr8BYo4ZgZu?preview=true


Greggory

348
Hardware / Re: Here's my $366 ($288) OS/2 only build !
« on: February 12, 2015, 12:35:40 am »
Amazing proposal!
Any hope for a laptop ?

olu2


Thanks, the laptops are definitely Sigurd Fastenrath area !  Maybe I'll email and see if he can keep me updated. I had his fine work in mind while mak9ing this hardware list.

Greggory

349
Hardware / Re: Here's my $351 OS/2 only build !
« on: February 11, 2015, 01:50:28 am »
I beleive this is the best for OS/2 any thought ? It also works with Windows 7 and probably Linux !

Does anyone have one of these cards ?

AMD ATI Radeon 9550 256MB DDR2 3D S-Video DVI AGP Video Card
http://astore.amazon.com/os2noonlin-20/detail/B00G40LTH8


Greggory

350
Hardware / Here's my $366 ($288) OS/2 only build !
« on: February 10, 2015, 11:56:21 pm »
Here's my $366 OS/2 only build, $288 if you use your old case & PSU !

Keep in mind that it's a OS/2 only build no dual boot.

http://os2notes.net/os2machine.html

After looking around I found that the parts for this build that are new and still being produced, or can still be found new in the box. I plan on putting together a hardware webpage with the top 3 options for OS/2 in each hardware category.

I'm guessing any Intel Duo Core 2 will be good enough for OS/2, this motherboard uses (Core 2 Extreme / Core 2 Duo / Pentium D / Celeron).

So, all recommendations are welcome ! The current hardware pages are getting old and I think a new format would be good. I went through all of them before posting here.


Any thoughs ?

Greggory

351
Web applications / Re: New OS/2 news system & format ?
« on: February 06, 2015, 07:06:08 pm »
Does anybody have experience with the drag and drop files to browser using html5 - http://html5demos.com/dnd-upload

It would be nice to just drop a file on a standard submit news page (developed and used by everyone) and it be upload to Hobbes or any server.

352
Web applications / New OS/2 news system & format ?
« on: February 05, 2015, 06:49:41 am »
OS/2 Newspaper style - jQuery Pinterest Grid

Is anyone interested in this style format for news. Yes, not styled yet it's just a demo.

http://os2notes.net/os2news.php

And using one page that submits new to all new site - http://news.warpevents.eu/en/home/submit_news.html

Does anybody have experience with the drag and drop files to browser using html5 - http://html5demos.com/dnd-upload

It would be nice to just drop a file on a standard submit news page (developed and used by everyone) and it be upload to Hobbes or any server specific.

1) One html5 page
2) Drag & Drop once
3) A standard used by all

Interested in helping ???

Greggory
 

353
Programming / Re: Need PHP help for Os2notes.net !
« on: February 04, 2015, 11:12:55 pm »
1) I would like to filter out the .txt files in column one.
2) Add a html link for the filter out .txt item to column two.
2b) Parse the 'Short description' from the README.TEMPLATE & display it !
3) Filter an item by name or partial name.
...


Well, one was easy:

// parse short description
$myFile = $myFile = 'http://hobbes.nmsu.edu/download/pub/incoming/' . $fileinfo['name'];
$lines = file($myFile); //file in to an array not recommeded for large files, use $lines[4] to print short desc.

// get extension
$ext = pathinfo($fileinfo['name'], PATHINFO_EXTENSION);

// filter txt files
if ($ext !== 'txt') {

// rename extension
$textName = preg_replace('"\.(zip|wpi)$"', '.txt', $fileinfo['name']); // rename zip/wpi to txt

// split short description line in two, to print $pieces[1]
$pieces = explode(":", $lines[4]);

// print file listing here
}

// filter item
  $string = $item['title'];

  if(stristr($string, 'netlabs.org newsletter') === FALSE) {
     // filter in match 
  }

Funny note: always work with proofed data ! While I was working on this Hobbes processed the incoming directory.  I went over the code 3 or 4 times wondering why only the README.TEMPLATE was showing.

354
Applications / Re: jEdit 5.1.0 filebrowser
« on: February 04, 2015, 07:36:50 pm »
Just want to let you know that an updated  jEdit 5.1.0 with fixed file dialog and other
....

Thank you so much, I love jEdit !

Greggory

355
Programming / Need PHP help for Os2notes.net !
« on: February 04, 2015, 09:00:42 am »
Need for help with PHP for my site !

I have some php code for a Hobbes listing on my site that needs some help:

 http://os2notes.net/#ftplist

1) I would like to filter out the .txt files in column one.
2) Add a html link for the filter out .txt item to column two.
2b) Parse the 'Short description' from the README.TEMPLATE & display it !

3) Filter an item by name or partial name.
4) limit the items to be printed.


It would also help me with a new news format I'm working on, RSS to html format.

http://os2notes.net/pin.php


Thanks   

Greggory


Code: [Select]
<?php

$filetypes 
= array('-'=>'file''1'=>'directory''l'=>'link');

// little helper functions
function byteconvert($bytes) {
$symbol = array('B''KB''MB''GB''TB''PB''EB''ZB''YB');
$exp floorlog($bytes) / log(1024) );
return sprintf'%.1f ' $symbol$exp ], ($bytes pow(1024floor($exp))) );
}


$c ftp_connect('128.123.34.6');
ftp_login($c'anonymous''anonymous@anon.com');
$rawList ftp_rawlist($c'/pub/incoming');

function 
itemize_dir($contents) {
   foreach (
$contents as $file) {
       if(
ereg("([-dl][rwxstST-]+).* ([0-9]*) ([a-zA-Z0-9]+).* ([a-zA-Z0-9]+).* ([0-9]*) ([a-zA-Z]+[0-9: ]*[0-9])[ ]+(([0-9]{2}:[0-9]{2})|[0-9]{4}) (.+)"$file,$regs)) {
           
$type = (int) strpos("-dl"$regs[1]{0});
           
$tmp_array['line'] = $regs[0];
           
$tmp_array['type'] = $type;
           
$tmp_array['rights'] = $regs[1];
           
$tmp_array['number'] = $regs[2];
           
$tmp_array['user'] = $regs[3];
           
$tmp_array['group'] = $regs[4];
           
$tmp_array['size'] = $regs[5];
           
$tmp_array['date'] = date("m-d",strtotime($regs[6]));
           
$tmp_array['time'] = $regs[7];
           
$tmp_array['name'] = $regs[9];
       }
       
$dir_list[] = $tmp_array;
   }
   return 
$dir_list;
}

$buff $rawList;
$items itemize_dir($buff);
//$items = array_sort($items, 'date', SORT_DESC);


//the data you supplied. normally just an array 
$data $items

//show what we got going into sort 
//echo '<pre>'.print_r($data, 1).'</pre>'; 

function cmp($a,$b){ 

//get which string is less or 0 if both are the same 
$cmp strcasecmp($b['date'], $a['date']); 

//if the strings are the same, check name 
if($cmp == 0){ 
//compare the name 
$cmp strcasecmp($a['name'], $b['name']);
 } 
return $cmp


//sort using a custom function 
usort($data'cmp'); 
//show what we got after sort 
//echo '<pre>'.print_r($data, 1).'</pre>'; 

//foreach ($data as $filename => $fileinfo) {
//      echo  $fileinfo['date'] . " - " . $fileinfo['name'] . " - " . $fileinfo['time'] . "  | " . //byteconvert($fileinfo['size']) .  " " . "<br>";
//  }

$dir = array();
  
$file = array();
  foreach (
$data as $k => $v) {
    if (
$v['rights']{0} == "d") {
      
$dir[$k] = $v;
    } elseif (
$v['rights']{0} == "-") {
      
$file[$k] = $v;
    }
  }

foreach (
$file as $filename => $fileinfo) {
      

echo 
"
<table width=\"100%\">
<col style=\"width:69%\">
<col style=\"width:31%\">
<tbody>
<tr>

<td>"
"<li>" 
$fileinfo['date'] . " - " "<a href=\"http://hobbes.nmsu.edu/download/pub/incoming/"
$fileinfo['name'] .""     $item->id_str ."\" target=\"_blank\">"
$fileinfo['name'] ."</a>" 
."</li>" "
</td>

<td float=\"right\">" 
 
"<a class=\"various\" data-fancybox-type=\"iframe\"  href=\"http://hobbes.nmsu.edu/download/pub/incoming/"
 
$fileinfo['name'] .""
 
$item->id_str ."\" target=\"_blank\">Download</a>" ." | " "<a href=\"#\" class=\"togglelink\">Details</a>"   
 
"    <div class=\"toggle\" style=\"display: block;\">" 
 
$fileinfo['line'] ." </div>" " " ." | "
 
byteconvert($fileinfo['size']) . "
</td>
</tr>

<tbody>
</table>"
;
}

echo 
"directories: ";

foreach (
$dir as $dirname => $dirinfo) {
      echo 
"

<td>"
"<li>" 
"<a href=\"http://hobbes.nmsu.edu/download/pub/incoming/"
$dirinfo['name'] . ""
$item->id_str    "\" target=\"_blank\">"
$dirinfo['name'] . "</a>" " - " 
$dirinfo['time'] . "</li>" "
</td>


$dirname ] " 
$dirinfo['name']  . " | " 
$dirinfo['type']  . " | "
$dirinfo['group'] . " | " 
$dirinfo['month'] . " " 
$dirinfo['day']   . " " 
$dirinfo['time']  . "<br>";

}
?>



356
Great job and thanks Pete !

Can I post this on my site ?


Greggory

357
Hardware / Re: 20 Years OS/2 Warp - my new Video!
« on: January 19, 2015, 02:17:13 am »
Great video ! Thanks, I think I'm going to get a Sony next !

358
Multimedia / Re: Playing DVD
« on: December 06, 2014, 08:59:50 pm »
I've tried VLC and SMPlayer, but most DVDs will not play. Is it some kind of encoding problem?

It almost looks like it is scanning from track to track, but no output.

An old DVD from when DVD were a new thing plays just fine on either program.

Try my MPlayer package and libdvdcss-1.3.0.zip

I think only one didn't work.

http://www.os2notes.x10host.com/os2mplayer.html


Greggory

359
Setup & Installation / Re: Help ! How to: Installing MPlayer/2 !
« on: November 02, 2014, 11:39:05 pm »
Martin you can add this Article to the Os2world wiki if you like, I wrote it for there anyways.

http://www.os2notes.x10host.com/os2mplayer2.html


Greggory

360
Applications / Re: Is OS/2 Warp 100% compatible with DOS apps?
« on: November 02, 2014, 10:50:55 pm »
Some where on both there's an old migrate app and a database that list Apps compatible with Os2 (large amount of games).  If it's in the database it will create WPS object with predefined settings from the database.

I was thinking about writing a Drag & Drop install Rexx script to use that database for the more popular apps on Hobbes since most of those apps won't change.

Oh,

1) try DosBox or
2) computer /w an old ISA slot with a sound blaster card - not sure but I think the sound in DOS/WIN sessions /w PCI sound cards doesn't work, someone here should be able to explain that issue better.

Greggory

Pages: 1 ... 22 23 [24] 25 26 ... 30