• Member Avatar for chriswelborn
    chriswelborn

    Began Watching getting a line position

    if I have something like the following file = open(filename, 'rb') for line in file: #do stuff Once I find what I'm looking for in file and it's placed in …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in getting a line position

    `enumerate()` is great for grabbing an index and item at the same time, and `f.tell()` can tell you the current position in the file: for i, line in enumerate(file): print('{lineno} …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in Get current scripts path/location and name.

    Here is the parameter expansion version, which seems to be better than calling 2 unnecessary commands: APPPATH="$(realpath ${BASH_SOURCE[0]})" APPSCRIPT="${APPPATH##*/}" APPDIR="${APPPATH%/*}"
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching How to filter filenames in ComboBox

    Hi, I am Populating a combobox from a directory but im wanting to filter some file names from showing in a specific Combobox. Im a newb at this VB stuff …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in How to filter filenames in ComboBox

    You could use `RegEx`, but that may be overkill. I think `GetFiles` supports glob matching like `GetFiles("C:\dir", "*.exe")`, but you don't want to call `GetFiles` multiple times. So maybe a …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in How to make funny questioner game

    [Windows Batch Scripting](http://en.wikibooks.org/wiki/Windows_Batch_Scripting) It's good for Sytem Administrators and small tasks, much like the Linux world's [BASH](http://en.wikipedia.org/wiki/Bash_%28Unix_shell%29) (though in my opinion BASH is much more powerful).
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching How do you post formatted code?????

    I click the Code button and it erases all the code I typed and won't let me type in the box any more. I am getting realy annoyed trying to …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in How do you post formatted code?????

    just type it out. Put a blank line before the code, make sure all of the code lines are indented with 4 spaces. # I did not use the </>Code …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in python program help

    Indention level matters in Python. I see you assign `s` in `main()`, but the code following that is actually outside of `main()` because of it's indention level. In other words, …
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching python program help

    teacher assigned out of the book "python programming: an introduction to computer science. second edition. page 384 # 19 is as follows this below is verbatim from the book and …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in python program help

    What is the error? Copy and paste the stacktrace/output. Also, formatting your code would help you get an answer. It makes it much easier to spot simple errors. Use the …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in Time to ask that question again ...

    Fair enough. Put that idea on the back burner until it can be done smoothly. I can't really think of anything I would improve right now. Every once in a …
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching Time to ask that question again ...

    Time once again to ask that question: What could I be doing better? More specifically, I'm looking to answer the following: * Is the UI clear and concise? Is it …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in Time to ask that question again ...

    I kinda wish you could toggle a live preview for the editor. It shouldn't be shown all the time (might be bad for large posts), but when it's shown it …
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching c progam begginer

    how to write a c program that allows the user to input grade and get the mark range using the switch statement,and the program only terminates when the user presses …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in c progam begginer

    Sounds like homework. If you post what you have tried so far I'm sure you would receive the help you are looking for.
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in Shell script to find file type

    The file command alone can give you some insight into what type of file you are dealing with. # Get file type description. filedesc="$(file $1)" # Use regex to test …
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching Shell script to find file type

    I am working on a shell script that takes a single command line parameter, a file path (might be relative or absolute). The script should examine that file and print …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in Shell script to find file type

    I took a different approach to solving this problem. Instead of grepping for newline characters from the start, I used the `file` command to tell me the mime type of …
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching Automatic Number Plate Recognition Software

    Hi everyone! I want to develop an Automatic Number Plate Recognition program in visual basic 2010 using windows forms. I need the program to pull the characters from a captured …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in Automatic Number Plate Recognition Software

    You'll need to use something like [OCR](en.wikipedia.org/wiki/Optical_character_recognition). I've never messed with it myself, but I can see from a quick google search that there are [libraries](http://www.atalasoft.com/products/dotimage/ocr/tesseract) available for .Net.
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching How to make funny questioner game

    How to make funny questioner game @echo off Color 0 Echo Echo Echo Echo Welcome to funny questioner game Echo 1) start Echo 2) exit Set/p type= If%type%==1start 1 If%type%==2exit …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in How to make funny questioner game

    This would probably be better for [Shell Scripting](https://www.daniweb.com/software-development/shell-scripting/113) [Snippets](https://www.daniweb.com/software-development/shell-scripting/code/_/113). Also, some [code formatting](https://www.daniweb.com/community/syntax) would help.
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in I need a Hecadecimal converter that converts to Binary, Octal and Decimal

    Don't get me wrong. If you get stuck writing your program we will help you in any way we can.
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching I need a Hecadecimal converter that converts to Binary, Octal and Decimal

    Any Turbo C programmer out there that are capable of doing this for me :D I cant figure this out :D thank you and God Bless :D
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in I need a Hecadecimal converter that converts to Binary, Octal and Decimal

    ..replied to the third post. Bumping to remove from 'Unanswered'.
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching Any Turbo C experts around there? :D I need help

    I dont know how to program in Turbo C, My brother need a Hexadecimal Converter that's programmed in Turbo C Hexadecimal to Binary Hexadecimal to Oct Hexadecimal to Decimal ) …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in Any Turbo C experts around there? :D I need help

    ..replied to the third post. Bumping to remove from 'Unanswered'.
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching I need Programming experts here :D

    I dont know how to program in Turbo C, My brother need a Hexadecimal Converter that's programmed in Turbo C ( Hex to Bin Hex to Oct Hex to Dec? …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in I need Programming experts here :D

    3 posts for 1 question? Usually people don't just write programs for you here. Why does it have to be in Turbo C? Can it be in C?
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching Lock computer with bios

    Hi guys, Does anyone know if its possible to set and activate a bios password in .net? Regards.
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in Lock computer with bios

    You are talking about very low-level stuff, which would vary depending on the BIOS. I doubt this functionality is baked in to the .Net framework. It would pose serious security …
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching Searching for (Python) scripts

    Hi All, Is GitHub the "gold standard" for finding open source scripts online for people to use in their own development? Where else do people look? Thanks, Tubs
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in Searching for (Python) scripts

    scripts or libraries? For libraries I would look at [PyPi](http://pypi.python.org), that is the standard. For scripts, there is no "gold standard". Just google for whatever tool you are looking for. …
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching c++ programing

    develope a software or patch so that i can get free chips to really use them in game I need any patch or moded .apk so that i can get …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in c++ programing

    This comment is here to remove this crazy post from `Unanswered`. Don't ask people to write software/patches for you.
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching lblMessage Need to Retrieve FirstName and LastName code-behind

    Hello, Working on this program as to where I need to cultivate this Message to retrieve both the First and Last Name. Working with Cookies with ASP.NET. A simple log …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in lblMessage Need to Retrieve FirstName and LastName code-behind

    Are you sure that `Session["LastName"]` is being set properly in the first place? I mean the cookie is being set properly? I think the only reason your new code wouldn't …
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching Hash Table on C#

    Can anyone please help me to add number of strings to a hash table. Actually i am trying to make a "hangman game". I want to store the answers in …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in Hash Table on C#

    using System; using System.Collections.Generic; // Creating and adding answers. Dictionary<String, String> answers = new Dictionary<String, String> () { {"mykey1", "myanswer1"}, {"mykey2", "myanswer2"} }; // Adding on the fly. answers.Add ("mykey3", …
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching Learning To Program, My Uneventful, Non Fruit Bearing Journey

    So, I've wanted to learn how to program for a while now. Like 10 years. I have gotten nowhere with my endeavors. I haven't been able to go to college …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in Learning To Program, My Uneventful, Non Fruit Bearing Journey

    I always say that it helps to have a problem to solve. Find something you want to do, maybe a tool to make your everyday tasks easier, or making a …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in An example of a threading background decorator (Python)

    @vegaseat, from the [Python doc page for multiprocessing](https://docs.python.org/3/library/multiprocessing.html#introduction): > It runs on both Unix and Windows. It's stdlib stuff so I assumed it was cross-platform, but to be honest I've …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in Unanswered should not include snippets

    I second removing 'Unanswered Solved'. I think people post a question and then answer it by their self right away. I'm glad the post is available to the community, but …
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching I want to save the capture fingerprint into database.

    I want to save the capture fingerprint into database. the below code is given with SDK which fired on fingerprint capture. Please help which value i can store into my …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in I want to save the capture fingerprint into database.

    I would refer to the API documentation for `DataResult<fmd>`. I'm sure there are methods to help you retrieve the images it captures. I'm not sure which SDK you are using, …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in work out the program duration times

    Another simpler method would be like this: def get_button_width_simple(totalseconds): """ Given datetime.timedelta.seconds, determine width in chunks of half hours, where a half hour == 100 pixels. """ pixelsperhalfhour = 100 …
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching work out the program duration times

    Hi guys, I'm working on my python script to create the button for tv programs. I know how to create the variable to get the program title for the programs …
  • Member Avatar for chriswelborn
    chriswelborn

    Replied To a Post in work out the program duration times

    If I understand your problem, you want to scale the button size based on how long a show runs? Kinda like the guide on a cable box? Here is one …
  • Member Avatar for chriswelborn
    chriswelborn

    Began Watching An example of a threading background decorator (Python)

    Run two calls to a function simultaneously with this threading @background decorator.

The End.