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 Chriss Miller 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: Bong
  • Content: Threads
  • Order by date
  1. Bong

    Joining multiple ranges

    I'm trying to re-do all my formerly Excel tasks in LO-Calc. I'm in the process of making macros in OOBasic that I have had in VBA. I can do most of what I want although I don't really understand the whole Dispatcher thing and "star" and "uno" but whatever. One thing I could do in VBA was...
  2. Bong

    reusing a window

    I tried searching but I don't even know how to phrase the search. I have a Web page with a button attached to a script. Basically, the script does some calculations and then opens a window sending some of the results of that calculation as data. It works fine but I'd prefer if the new page...
  3. Bong

    using struct.pack

    Greeting, I can't seem to get what I think should happen using struct with floating point format. Say I want to pack 0.5: >>> import struct >>> struct.pack('f',.5) '\x00\x00\x00?' >>> I would expect 4 bytes and the first one at least ought to be non-zero. Is this a problem with struct or with...
  4. Bong

    open for append ('a')

    I can successfully open a file for reading ('r') or writing ('w') but I'm trying to open for updating ('a') and I can't get it to work. I set a variable, outfile to 'x:/projmn/time.txt'. This file (and path) exists. I then do: try: f = open(outfile,'a') except: a=raw_input("could not...
  5. Bong

    reading text from IFRAME; used to work

    Greeting. I have a small page to display formatted information from a text file (that is updated from a Java application). The page is: <html><head> <script src="dcsched.js"></script> </head><body> Dog and Cat schedule <iframe id="if1" src="file://h:/java/d&c.txt" align="right"></iframe> <div...
  6. Bong

    changing the line color in gtk.DrawingArea

    Greeting. I'm very new to Python. I'm using GTK to build an "attitude" visualization tool. I've got it working to my satisfaction but I would like to have the reference axes, the projections, and the target vector be different colors. Using the gtk.gdk.GC (graphics context object), that I...
  7. Bong

    getting the contents of an iframe

    Greeting, I searched a little but couldn't find anything I was able to understand. My goal is load some data into a frame (iframe), manipulate it a little, and then replace the contents of the frame with this (now manipulated) text. To that end, I'm only at the point of trying, without...
  8. Bong

    importing the servlet classes

    Greeting. I've built several applications in Java (although I'm still at a very basic level of ability) but now I am trying to build an applet<-->servlet application. I never really gave much thought to where I was importing the classes from, I would just import them: import java.awt.*...
  9. Bong

    Output without linefeed

    Greeting. I am working on an application to build a dataset that represents a memory image (from a satellite dump, but that's not important). Using Excel, I specify the order, size, and calibration of the various fields I want in the dumped data. Then a macro builds the buffer according to the...
  10. Bong

    bit operations

    I am trying to implement a CRC16 function in order to test some software. VBA might not be the best language for this but it would be convenient to have the function right there in Excel. Anyway I have the spec for the CRC computation and I have my input string (hex) converted to a collection...
  11. Bong

    reading binary data from a file

    Greeting. I want to input data from a binary file and display those data in Excel as HEX strings. Putting aside the HEX string for now, I tried just getting each byte of binary data but it didn't work like I was hoping. First I tried: open tstdat3.bin for binary as #1 cells(1,1)=input(1,#1)...
  12. Bong

    a really basic question on &quot;:=&quot;

    I tried to look in old threads for this but I don't even know how to start: Sometimes when I use the Macro Recorder, the manufactured code contains the operator, ":=", as in Selection.MoveDown Unit:=wdLine, Count:=4 What does this operator signify and how is it used generally? I infer from...
  13. Bong

    yet another RegExp question

    Greeting. I have a string of the following form: "<bunch of white space> MANAGER: <manager's lastname>, <manager's firstname> <initial> <bunch of white space> <Employee's lastname>, <employee's firstname> <initial> Status: <a bunch more stuff I don't care about> " I want to get the "employee's...
  14. Bong

    referencing Classpath for data

    Greeting. This is a variant of the issue explored in thread269-891589 I have a program that reads a text file to fill in items for a Choice. The target platform is a Sharp PDA (Zaurus 5500) running Linux. I have the text file in the same place as the class files and I invoke the application...
  15. Bong

    Using DDE between two Tk app's

    I have a Tk app that contains little more than a text widget: package require dde dde servername receiving pack [frame .f1] -side top pack [text .f1.t1] -side top Then I have another Tk app that is supposed to display a string (tagged) in the first app's text widget: package require dde dde...
  16. Bong

    5-byte binary

    I had occasion to write a 5-byte number to a binary file. The only way I could think of to do it was to "format" the number into a 64-bit (W) number, "scan" it into a HEX string, parse the string 1 byte at a time, and write out the 5 individual (least significant) bytes: set t4 [binary...
  17. Bong

    assigning STDIN/STOUT to a widget

    I know this can be done because Tkcon and ASED seem to do it. Never the less, I seem to be too thick to figure out how they do it. Nevermind that it's a silly idea; that I should just use entry and label widgets, now I'm intrigued. The purpose is to have only a small proc that does a little...
  18. Bong

    Greeting. I was looking at the ipk

    Greeting. I was looking at the ipkg download for Tcl to the arm processor (Zaurus). One package was Tcl and another was &quot;encoding files&quot;. What are encoding files? Bob Rashkin rrashkin@csc.com
  19. Bong

    working with binary or HEX data

    I'm trying to do something I know how to do in Tcl but not, apparently in Java: I have a binary file. It consists of sequential uniform length records (lets say 256 bytes each). I want to read 1 record, compute a checksum (by converting each byte to an integer and summing them), then write out...
  20. Bong

    Getting the x,y of an object in a canvas

    Greeting. I am sorry if this is a stupid question but I'm very new to Java. I have an application that takes a file of number pairs (say, x-y data), plots an &quot;x&quot; at every point, does a least squares fit and draws the resulting line. I would like to be able to click on a point (say...

Part and Inventory Search

Back
Top