Syndicate content

Pages with category Development

  • As I was looking for a COFF Browser today (a tool that would show me the internals of a DLL or EXE file) I stumbled upon a page talking about Assembly Language and the GoAsm tools.

    The page is here: [page was removed]

    Interestingly enough, he has a link to an advanced assembler called GoAsm. This is specifically for MS-Windows and they do not release the source code of the assembler (at least, not that I can see...) But it is still interesting to see such tool suite around. 8-)

  • Problem: Associate, easy! De-associate... but how?!

    The association of a label with another widget is easy to obtain. You want to do that especially if you want to hide the widget or apply some similar effects to it so both, the widget and its label are affected. This is especially true if you hide the widget.

  • In MS-Access, you can select a special value for your combo boxes called:

    "Find a record on my form based on the value I selected in my combo box"

    In older versions of MS-Access, all you had to do is select the option and be done with it. However, the option would have no effect if the form was not properly assigned a source query.

    In order to paliate to that problem, Microsoft decided to check the current form status and, if unlinked, hide the option altogether so you cannot make a mistake.

    The problem is that for many people the train of thought was not automatically that way.

  • You may have noticed that whenever you create a Datasheet you can double click on the right edge to resize the column to the widest text currently defined in that column.

    This is neat but if I create a table with 10 columns, that's work. Especially if I need to reload data in that table each time I use it, 10 times an hour. (i.e. 100 x double click would definitively kill me!)

    Of course, you may not need to resize all 10 columns each time, but wouldn't it be neat to have the columns width auto-adjust with the data you put in that Datasheet table?!

    I think it would be!

    The solution

  • Today I noticed many errors on one of my websites. Looking closer into it, I noticed that the code for the mo_references Drupal module stopped working.

    It took me some time, especially because the code seemed to work just fine as all the files could easily be displayed.

    Actually, that was not the case. The unpack() character 'a', which I used, was transformed from a simple string that gets trimmed, to all the characters, including the NULL characters. Ouch! Now we have to use the 'Z' character instead.

    I use it to unpack() a tar file by loading 512 bytes of data in a ...

  • Got an email from SourceForge.net today and they mentioned a new binary editor that works under MS-Windows.

    Yes, they have one in DevStudio, but it's cumbersome to open a file in that more. You have to go through hoops and it often changes a tiny bit between versions and even just installs!

    This one's small and fast and works on large files too.

    It's called Frhed.

  • I've been working on a TCP/IP server/client with Qt and got a problem which I present in the attached package.

    The example called tcp-bug. Start it with:

    tcp-bug -s

    in one console and then start the same command without the -s in another console:

    tcp-bug

    The client (this second tcp-bug without the -s) saves the file sent by the server in /tmp/out.html and it has to be exactly the same as the example.html file in the project. If not, then the transfer failed.

    Most often, the transfer works so I wrote a script called many-hits.sh to run the client many times and test the result. ...

  • Since December 2008, I have noticed that many RSS feeds include invalid ampersand characters. XML has a very specific way to handle the ampersand character, you have to write & and not just &. Although it is similar in HTML, in XML it is actually enforced.

    This is neat, it ensures that your files are really valid.

    [toc hide:1]
  • Simple Sum

    When you create a form in MS-Access and include a sub-form with a table in it, you may want to compute the sum of a field. This is done simply by creating a TextBox and writing the following in that box content:

    =Sum([Column-name])

    Where "Column-name" is (obviously) the name of the column you want to sum up.

    This is neat, but it breaks if the specified column has an unsupported type. Very strange, but for me it breaks with a currency column! That feels a bit weak to say the least. According to my testing and what I have found on the net, it should work with any ...

  • I have a table with a few columns, two of which are integers, one of which can be NULL in which case the other integer is to be used in my query.

    CREATE TABLE my_table (col1 INTEGER NOT NULL, col2 INTEGER);

    If `col2` is NULL, then use `col1`. As is, there is how my query looks like:

    SELECT MIN(IF(col2, col2, col1)) AS smallest FROM my_table LIMIT 1;

    In other words, I need to get the row with the smallest integer, but if one column is NULL, I want to use the other column value.

    On a very small sample, the query is still very fast, but the real version is not unlikely to have thousands ...

Syndicate content

Diverse Realty

Diverse Realty Team

Want a New Home?
Want to Sell Your House?

Call Alex at
+1 (916)
220 6482

Alexis Wilke, Realtor
Salesperson
Lic. # 02024063

Cory Marcus, Broker
Lic. # 01079165

     

Terms of Site Index

Find the page/content you are looking for with our index.