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

    Squid: debug_options for tracing and profit

    Hi all, I'm trying to figure out what Squid could possibly be doing that takes forever on some requests. I've gotten as far as figuring out that something happens between: fwdConnectStart fwdConnectEnd What exactly do those do, and can I improve granularity? What setting should I use? Thanks in...
  2. Trevoke

    tmpfs for temp dir ?

    Hi, We are trying to use tmpfs for the temp directory to see if things go faster. We used this page as our guide: http://everythingmysql.ning.com/profiles/blogs/using-tmpfs-for-mysqls-tmpdir A script called "tuning-primer" said that about 30% of tables were created on disks, but we are...
  3. Trevoke

    Apple bans modular programming

    Well, this is a very interesting article :) http://3dpancakes.typepad.com/ernie/2010/04/apple-bans-modular-programming.html The comments at the bottom are pretty nice, too. Tao Te Ching Discussions : Chapter 9 (includes links to previous chapters) What is the nature of conflict?
  4. Trevoke

    Why good programming is also bad communicating

    http://secretgeek.net/program_communicate_4reasons.asp This website is full of humorous entries, but this one, I felt, was important enough, and true enough, to deserve some mention here. Tao Te Ching Discussions : Chapter 9 (includes links to previous chapters) What is the nature of conflict?
  5. Trevoke

    Request for code critique: SGF parser

    SGF is the Smart Game Format, best used for storing go game records (though it'd work also for chess, or backgammon, etc). I'm developing a library to handle that format. Right now it only parses the files, but I am working on making it a paradigm of Ruby code. I've got some basic Cucumber...
  6. Trevoke

    Artificial Intelligence or Machine Intelligence?

    What is it called these days? Why? I heard in 'My own development as a professional' that apparently it was called MI nowadays.. ? Tao Te Ching Discussions : Chapter 9 (includes links to previous chapters) What is the nature of conflict?
  7. Trevoke

    Artificial Intelligence

    ... And now for something completely different! I'm looking for information on programs about Artificial Intelligence : Master's and Doctorate. I already heard about http://mai.kuleuven.be/ ... Does anybody have any good ones to recommend? I'm not particularly limited by where in the world it...
  8. Trevoke

    Fixing date format on table (sqlite)

    I guess the first question is, will this update each cell with the proper data? update table set date_cell = (magic involving date_cell) And if so the next question is.. what's "magic" ? :) Will I get the proper result with: UPDATE mytable SET date_cell = (SELECT strftime('%Y-%m-%d...
  9. Trevoke

    Tracking which user moves files

    Is it possible to keep track of which users move which files, and the from/to of said move? Tao Te Ching Discussions : Chapter 9 (includes links to previous chapters) What is the nature of conflict?
  10. Trevoke

    External programs without opening command line window (MS Windows)

    I need to parse word documents. Best solution I've found to do so is using 'antiword'. If there is a Ruby solution, I'll definitely go for it, because it'll solve this problem too... report = `c:/antiword/antiword.exe -m cp850.txt "#{@filename}"`.split("\n") It's nice -- but if I run this as a...
  11. Trevoke

    Representing a variable with your own code

    I'm going to be iterating through a set of data and, depending on a filter, it may go into one variable or another (only two variables to be considered for this example). Each variable represents an HTML table. I could do a big if-else, or iterate through the data twice, but I hate repeating...
  12. Trevoke

    Data massage/torture with Ruby for Excel

    I have a SQL table with: Date | Name | Procedure | Count Date and Name can be repeated ad nauseam, until we run out of procedures to be counted. I want to separate it on a spreadsheet so that each separate sheet is a 'Name'. I want one line per date, and I want the procedures to become column...
  13. Trevoke

    Backwards-compatibility of sql 2008 studio (express)

    Can I use SQL Server Management Studio 2008 Express to connect to a MSSQL 2000 server ? The wording on the Microsoft website was unhelpful to me. Tao Te Ching Discussions : Chapter 9 (includes links to previous chapters) What is the nature of conflict?
  14. Trevoke

    SELECT * INTO table IN db

    I am using SQL 2k. I have two db (db1 and db2) on the server SERVER1. Table1 is in db1. I want to create a copy of table1 in table2 on db2.. use db1 select * into table2 in db2 from table1 gives me 'incorrect syntax near the keyword 'IN'. The examples I found online say I have to do 'db2.db'...
  15. Trevoke

    Change command prompt and make it permanent?

    In the days of yore, the command: PROMPT $D$T$_$P$G would give us: Thu 01/29/2009 2:19:08.56 C:\Documents and Settings\username> as a prompt. That rocks. Now .. How do I make it permanent? Either I screwed up, or putting it into autoexec.bat is not enough. Any ideas? Tao Te Ching Discussions...
  16. Trevoke

    How to display mount points in "My computer"

    We have run out of alphabet letters for drives, so we've started using mount points. Is there a way to display those mount points in 'My Computer' so we can see at a glance the free space on those drives? Tao Te Ching Discussions : Chapter 9 (includes links to previous chapters) What is the...
  17. Trevoke

    Project Euler

    I originally posted this in Squaring the Circle, and then I found this forum.. If you haven't heard of http://projecteuler.net/ , you may want to go give it a try now :) It has a collection of various math-related problems which can/should be solved using some computational power. Part of the...
  18. Trevoke

    Ruby way to time how long a script takes to run?

    I'm trying to use Ruby to measure how long my scripts take to run. Is there a better way than defining two DateTime objects, initializing them as 'now' at the beginning and at the end, and looking at the difference? Tao Te Ching Discussions : Chapter 9 (includes links to previous chapters) What...
  19. Trevoke

    How does 'inject' work on enumerables?

    I read the rdoc but it's a little verbose for me.. I found this code online to compute nCr : def nCr(n,r) a, b = r, n-r a, b = b, a if a < b # a is the larger numer = (a+1..n).inject(1) { |t,v| t*v } # n!/r! denom = (2..b).inject(1) { |t,v| t*v } # (n-r)! numer/denom end Rdoc...
  20. Trevoke

    understanding code about arrays, hash, counting

    While looking to solve a problem on http://projecteuler.net, I accidentally fell on a solution that was too condensed for me to understand (I am a Ruby beginner). I have issues with a few lines, they should be easy but I come from C++ and am not used to 'easy' :) file = File.open("names.txt")...

Part and Inventory Search

Back
Top