Logo

Hawk Software

Programming, web design, and more

Recent Posts

Category

Archives

Meta

What I’m Reading

Network, Programming, Speech/Voice Compression Comments Off

OK, so I needed a filler while I finalize changes to the next installment to the floating-to-fixed point series ;)   But hey, this is all good, if not varied, information.

Don’t use tables for layout

Accessibility, Web Design 1 Comment

First, in the interest of being honest and not putting myself above other web developers, I must admit to using tables on this website in the past.  Even worse, before that I used frames, but that is another topic ;)

I have been advocating the use of CSS instead of tables for layout for over six years after I was convinced by several articles on the subject.  This has been considered a web ‘best practice’ for many years now, so it is very surprising that so many websites STILL use them for layout.  I see several reasons this is so: Read the rest of this entry »

Ask Phil – Where are unicode Winsock functions?

Network, Programming Comments Off

Many people have asked questions similar to this:

When I get into winsock in globalization, I found out winsock.h has a lot of different data structure if _UNICODE turned on. But, there is no function support those data types. such as gethostbyname(…) only take const char FAR * name. How could I call gethostbyname when _UNICODE turned on in Visual C++?

My reply: Read the rest of this entry »

Floating point to fixed point code conversion – Part 2: Preparing your code

Programming, Speech/Voice Compression 2 Comments

See Part 1 for an introduction to fixed point code, and the reasons you may need to use it.

Starting off with clean, fully debugged, fully functional, and stable floating point code is a must. Fixed point code can be harder to interpret, so you do not want to be modifying the converted code every time you correct or add a feature to the original code. It is even better to start off with code that has not been heavily hand-optimized since it will be easier to understand and convert. Of course, make sure your algorithms are efficient and you are not doing something stupid like scanning through arrays non-sequentially and getting a ton of cache misses ;) Read the rest of this entry »

Ask Phil – UDP datagram loss

Network, Programming Comments Off

Mike asked:

I have a question about the loss of UDP datagrams.  System setup like below:

 /-------------\    Crossover    /-------------\
 | System A    |  <------------> | System B    |
 | 192.168.0.1 |      Cable      | 192.168.0.2 |
 \-------------/      100MB/s    \-------------/

If I have a test program to send UPD datagrams across this connection, assuming I am not overloading the link, should I expect any datagram loss? Read the rest of this entry »