User Profile

Collapse

Profile Sidebar

Collapse
Oralloy
Oralloy
Last Activity: Apr 17 '24, 11:24 AM
Joined: Jun 24 '10
Location: Santa Barbara, CA, USA
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hello Anastasiia123,

    Perhaps you ought write a book called C++ worst practices.

    My "best" practices include enabling all warnings and treating them as errors.

    Four people tried to get me fired for that. I was creating errors in their code. . .

    Let us embrace the worst, it is for the best.

    [snip - rant about success oriented programming]

    Cheers,...
    See more | Go to post

    Leave a comment:


  • Hello Ashik,

    These sorts of problems stink. Conversion of outdated formats (e.g. your VS2017) are not always clean.

    My general approach is to create a new project and introduce the elements incrementally.

    When it fails, you will have a much reduced problem to resolve.

    Good Luck!

    --Oralloy
    See more | Go to post

    Leave a comment:


  • Oralloy
    started a topic Problem With Comparison Operator <=> in G++
    in C

    Problem With Comparison Operator <=> in G++

    Hello folks,
    I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
    The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
    This is as boiled down as I can make it.
    Here is my compilation command:
    Code:
    g++-12
    ...
    See more | Go to post

  • Oralloy
    started a topic FPGA Question

    FPGA Question

    Hello Folks,

    I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA.

    My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++ language.

    Are any of you able to point me at a working example for the OrangeCrab boards? I have one available, so a working example is something I can insert my work into.

    Searching the 'net...
    See more | Go to post

  • Presumably you were able to sort this out.

    Will you take a moment to show the rest of us what the solution was?
    See more | Go to post

    Leave a comment:


  • Oralloy
    replied to Data Bulk in Database Write
    in C
    Lady WeaknessForCats ,

    Thank you for getting back to me. I appreciate your deep and thoughtful response. If I was rude, please accept my apologies as that was not my intent.

    I had looked at some of those types of articles, and couldn't decide if it was going to give me useful information, or if it would provide a false (or useless) statistic for what I am trying to measure. Also, I was trying to avoid reinvention of...
    See more | Go to post

    Leave a comment:


  • So what I'm reading is that you don't have a database correctly configured.

    If you don't have a connection, asking an empty Connection object for its connection string is kind of silly.

    Or, perhaps you've got a variable name mismatch between _Conn and _con?

    You could use an ODBC connect string in your code, like
    Code:
    String a = "Driver={SQL Server};Server=myServerAddress;Database=myDataBase;Uid=myUsername;
    ...
    See more | Go to post

    Leave a comment:


  • Oralloy
    replied to Algorithm to identify point connection
    mercus,

    You will have to use an adaptive algorithm that finds disjoint sets. The algorithm is recursive...

    Algorithmically , I would try the following:
    Code:
    Create three sets - non-sampled points, water, and islands. 
    non-sampled points and water are sets of raw data.
    islands is a set of sets, each entry will be an island. 
    
    Find-Water
    For each point in non-sampled, if elevation is
    ...
    See more | Go to post

    Leave a comment:


  • Oralloy
    replied to Fingerprint database interpretation
    scy277,

    No. Not really. There are always ways of spoofing the system inputs.

    Put another way, how would your presence at the time the staff were entered into the database allowed you confidence that all staff members were correctly logged?

    Security systems are based on trust. Do you trust the people who recorded the data, or no?

    On the other hand, if you want to validate against other...
    See more | Go to post

    Leave a comment:


  • I suggest that you run an SQL query from within Excel, if you can. Then the logic will be simpler.
    See more | Go to post

    Leave a comment:


  • Oralloy
    replied to Need a procedure in VBA (ms access)
    Iterative Algorithm

    In this, I agree with ADezii - you will never be able to match all patterns for names correctly, but you can solve for all of your data.

    I've done this before, and it took quite a few pattern matches to get through a large (ca. 100,000 records) database. I did not fully check every result, but my method left me with high confidence. I started by formulating a solution and testing it. Then, I would...
    See more | Go to post

    Leave a comment:


  • Oralloy
    replied to Data Bulk in Database Write
    in C
    weaknessforcats ,

    You are the recognised expert, so I will try to explain in an intelligible way....

    I am working on an embedded system running Linux that has both a hard-disk and flash memory. The flash memory is accessed as a hard disk using the JFFS2 file-system. In addition on hard-disk fail, the system will restart and use the flash in place of the hard-drive, but with a reduced level of writes.

    The...
    See more | Go to post

    Leave a comment:


  • burolla,

    My apologies, I haven't received notification messages correctly, and I lost track of this conversation.

    There is a cross-tab query available in access.

    Unfortunately I'm not in a position to write one for you right now.

    Try looking up the SQL keyword "TRANSFORM" .

    This is an implemnetation of a Pivot query.

    Luck,
    Oralloy
    See more | Go to post

    Leave a comment:


  • Shawn29316,

    Does PhilOfWalton's example get you off of the ground?

    Oralloy
    See more | Go to post

    Leave a comment:


  • Oralloy
    replied to Different sub Directories in a database
    Shijo,

    Use tablespaces.

    ref: PostgreSQL Documentation 9.5: CREATE TABLESPACE

    Cheers!
    Oralloy
    See more | Go to post

    Leave a comment:


  • Oralloy
    started a topic Data Bulk in Database Write
    in C

    Data Bulk in Database Write

    Folks,

    Pardon my question here, but I am trying to get a handle on I/O levels when writing to a SQLite database.

    My requirement is to limit the amount of write to a JFFS file-system, so that we do not suffer catestrophic failure before end of system life.

    Two models are held available - keep the database in memory and copy to flash periodically, or just keep the database on the flash.
    ...
    See more | Go to post

  • Shawn29316,

    Is there any reason that you need to execute an update query?

    What prevents you from building the required view of your database, and then use that as the basis of your report?

    Alternately, as a view is just a (sometimes updatable) query, you can just build your query as a stored query and base the report on that.

    Or, am I missing something obvious?

    Cheers,
    ...
    See more | Go to post

    Leave a comment:


  • Look-Up On Google

    Recardo de Mila,

    Give a query to google: VBA read MAC address; there are some interesting answers.

    This looks promising (a rewrite of several examples):
    Code:
    ''--local computer is "."
    Let Computer = "."
    
    ''--get queryable system object (win management service?)
    Set WinMgmts = GetObject("winmgmts:{impersonationLevel=impersonate}!\\"
    ...
    See more | Go to post

    Leave a comment:


  • Hey blitz,

    Are you trying to use a real clock value, from your system, or are you just faking it with the three nested loops?

    Kind Regards,
    Oralloy
    See more | Go to post

    Leave a comment:


  • Oralloy
    replied to How can i extract image name from URL?
    Use a Regular Expression (RegEx)

    Good Morning Ackon,

    Try pattern matching and taking off the last part. Most languages allow capture of parenthetic sub-expressions.
    Code:
    Complete regular expression: ".*/([^/]*)"
    Captured component is:       "([^/]*)"
    Kind Regards,
    Oralloy
    See more | Go to post
    Last edited by Oralloy; Oct 9 '16, 05:11 PM. Reason: Added salutations.

    Leave a comment:

No activity results to display
Show More
Working...