Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: zackiv31
  • Content: Threads
  • Order by date
  1. zackiv31

    Help with Query

    I'm no SQL pro, but I have the following statement that works... but I want to add something else to it. SELECT p.id,p.user,p.userid,p.cat,p.storecat,p.ismature,p.title,p.bigimage,p.height,p.width,u.location FROM pp_photos p, pp_users u WHERE p.approved=1 AND p.storecat=0 AND p.userid=u.userid...
  2. zackiv31

    Simple RSS Reader

    I'm looking for a very simple download for php for an RSS reader/parser for my site. I use vBulletin on a part of my site and its able to supply a feed... In another php app I want to take that feed and take the data and output it as I wish. I've seen complicated solutions out there, MAGpie...
  3. zackiv31

    Help with this Regex replace... (easy?)

    I'm using Regexp::Common::Profanity to filter out profanity from user submitted data... I want to replace all occurrences of profanity with the appropriate # of asterisks... A four letter word ends up being: "****". Here's the start of what I have, but syntactically it's incorrect. $noprof =~...
  4. zackiv31

    Excel Application platform problem

    I've developed an application (that creates excel files) on my Vista box with Office 2007 on it. It runs perfectly well. When I move the App to another box (XP) with Office 2003 on it, and try to run it.. It tries to load Office 12.0 dll, which doesn't exist... How can I change my application...
  5. zackiv31

    You think you know Regex?

    I need to match these strings, and match them into filename, and arguments. Been trying for a while now, somewhat stuck on the last one :-/ "C:\PRO GRAM\SOM DIR\ABC.Exe" /abc C:\Program\ab fil\blah.abc /abc C:\blah\hmm.huh /okthen hello /crap hi C:\Program\ab fil\blah.abc C:\blah...
  6. zackiv31

    ActiveState install Spreadsheet::WriteExcel

    Ok figured out the package manager for ActivePerl.. but I'm having trouble installing SpreadSheet::WriteExcel. I checked out this page: http://ppm.activestate.com/BuildStatus/5.10-S.html and next to windows, it says it failed... So I think thats why its not showing up in my Perl Package...
  7. zackiv31

    pp -o output.exe myfile.pl (on Linux)

    is it possible to compile windows exe on a linux box? pp -o output.exe myfile.pl After doing this.. if I try to run it on linux (i know i shouldn't), it complains about a module.. so does linking modules not work with the above code? It specifically Complains about DateTime... but thats...
  8. zackiv31

    CPAN: pp install woes

    Googled for a good half hour and I can't figure out why I can't install pp from CPAN (or from source either). Gives some Zlib error, but Zlib 2.04 is installed.. cpan[15]> install pp Running install for module 'pp' Running make for S/SM/SMUELLER/PAR-Packer-0.977.tar.gz CPAN.pm: Going to...
  9. zackiv31

    How to Escape a variable Regex

    I have a function that parses an html page and extract phone numbers.. the problem is it matches lines of numbers that are part of HTML tags.. which I want to exclude. Here is how I get around it: while($html=~/((\d{3})[\s-\(\)\.]*(\d{3})[\s-\(\)\.]*(\d{4}))/g){ if ($html !~ /\<.+$1.+\>/){...
  10. zackiv31

    Convert HTML (&amp;#109; etc.) to string

    I want to convert this string to it's equivalent as regular text. I'm not familiar with type conversion in Perl but I'm sure you guys know it off the top of your head. Hint, it's an e-mail address. <a href="mailto:&#98;&#111;&#115;&#116;&#111;&#110;&#115;&#99;&#111;&#117;&#115...
  11. zackiv31

    REGEX: Capture multiple instances from one line (/g)?

    I have a variable that contains the html dump of a webpage.. lets call it $html. I want to extract all the e-mails from it, as well as all the phone numbers. I don't have a problem with regex's in general.. but if there are more then 1 e-mail or phone number on a line, how do I capture them...
  12. zackiv31

    Automate a simple Floppy Format

    Here's what I got, but I dont know how to sendkeys only when input is waiting for something: Process proc = new Process(); proc.StartInfo.FileName = Environment.GetFolderPath(Environment.SpecialFolder.System).ToString() + @"\format"...
  13. zackiv31

    General Design Question (should be easy for you)

    I have a program that I'm trying to break into multiple files for proper coding and easy expansion in the future. I have a button that scans the computer for certain attributes, and as it scans, I want it to update a ListBox (lstBox)... I get errors because I don't think I'm laying it out...
  14. zackiv31

    Working with Image Pixels

    I've been googling this and haven't found much besides ImageMagick.. I want to read in image files, bmps, jpg's, or whatnot, and be able to work with them on a pixel by pixels basis. (RGB values) Anyone have any experience with this or can point me in the right direction?
  15. zackiv31

    Image rotation (math question kind of)

    So I have an array of points (x,y) values, that represent the pixels of the image. The first value is 0,0, and the rest of the values are relative to the first. Ex: 0,0 1,0 -2,2 1,1 would produce 4 pixels like this: __xx ___x x___ where the top left 'x' is the first point. the second sequence...
  16. zackiv31

    Isn't numeric In subroutine?!?

    Here's my code, I'm trying to read in an image, and I get a weird error: /usr/bin/perl use strict; use warnings; #use Test::More plan => 1; use Test::Image; print "Hello\n"; my $i = Test::Image->new(Image::Imlib2->new("circle.jpg")); ok($i, "image ok"); I get this error output: Hello...
  17. zackiv31

    Analysing images?

    I've done this in Java, but wonder if it's possible in a scripting language... Is it possible to break down images, jpg or whatnot into different image components, RGB, black and white, etc, to do image analysis? I'm eventually going to be doing recognition on images for certain patterns. If...
  18. zackiv31

    UnauthorizedAccessException

    Here's my code: string drive = "c"; TextReader tr = new StreamReader(String.Format(@"{0}:\boot.ini.zives",drive)); tr.WriteLine("test"); tr.Flush(); tr.Close(); I'm running it under Administrator mode (the account), but I'm getting an access denied, with an UnauthorizedAccessException. The...
  19. zackiv31

    Regex !

    Why doesn't this work: string test = @"multi(0)"; if (Regex.IsMatch(test, test)) MessageBox.Show("this doesn't print"); In a larger context, I'm extract a line similar to string test, and then checking subsequent lines for it, but because it captures parenthesis, it doesn't match.
  20. zackiv31

    Sendmessage and user32.dll

    I'm driving myself crazy trying to find the codes for all keystrokes for the user32.dll SendMessage() function. [DllImport("user32")] public static extern int SendMessage(int hwnd, int msg, int wparam, int lparam); hwnd is the window. Ok I got that. msg is the action (like keyup/keydown)...

Part and Inventory Search

Back
Top