Posts
 
Reputation
Joined
Last Seen
Ranked #297
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
98% Quality Score
Upvotes Received
66
Posts with Upvotes
52
Upvoting Members
31
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
15 Commented Posts
10 Endorsements
Ranked #180
Ranked #390
~89.2K People Reached
Favorite Tags

119 Posted Topics

Member Avatar for Reverend Jim

> The Netherlands is the largest per CAPITA consumer of cofee averaging 2.4 cups of coffee per person per day. That is a poor/misleading figure. The annual per capita consumption of coffee in Finland is 9.6 kg dry weight compared to 6.7 kg in The Netherlands (and 3.1 kg in …

Member Avatar for John_smith
10
21K
Member Avatar for Dalek Caan

Not done it exactly this way, but long ago (10+ years) I was involved with a project that used MicroFocus COBOL, although I don't know COBOL. The existing code originated on some other platform and was being ported to Windows. My role was to write DLLs to provide a wrapper …

Member Avatar for Jim_9
0
1K
Member Avatar for SalmiSoft

I am using an Arduino to prototype a project in which the real time is important. My device has a real time clock and internet access. I have some NTP code I can use to get the current time in GMT and I can apply an offset for the timezone …

Member Avatar for rubberman
0
264
Member Avatar for Simon180

The GetTickCount function retrieves the number of milliseconds that have elapsed since the system was started, up to 49.7 days Your comment suggests FreeTimer.Interval is 30000. So you set TotalTime, and hence the gauge progress, to the number of milliseconds that have elapsed since the system was started, less 30000. …

Member Avatar for rubberman
0
650
Member Avatar for Alyssa_3
Re: dev

Without knowing what the program is supposed to do it is difficult to judge if it looks right. However there are one or two things worth commenting on regardless of that. First, I suggest you use meaningful variable names because c, s, t, n, p, f, h, and l tell …

Member Avatar for SalmiSoft
0
309
Member Avatar for Christi_1

Chris, a good technique to trace errors like this is to simply use a pencil & paper and manually follow the instructions in your code. Set & change the values of your variables as you work through the code and your errors should become apparent. Later you will no doubt …

Member Avatar for Christi_1
0
1K
Member Avatar for AmritaHasan11

Reverend Jim, is that mandatory? What about a standalone machine with no internet access? Or one with access to an internal network only? What are the claimed advantages of creating the domain account?

Member Avatar for Reverend Jim
0
1K
Member Avatar for SalmiSoft

Kudos for the Favorite Tags and Favorite Forums options on the Finder menu. Are they new? I hadn't seen them before, but they are a significant improvement. They very much improve my view of the new design. Before I saw them I was drifting away but now I am more …

Member Avatar for diafol
0
235
Member Avatar for Bo_1

It is always a good idea to look at the source code in cases like this, if you have the VCL sources in your Delphi version. That way you can trace how the control responds to the double click. Basically what is happening is that TDirectoryListBox fires off the onDblClick …

Member Avatar for Bo_1
0
489
Member Avatar for webecedarian

I agree. Although I never posted a lot, I used to visit a few times each day and now I visit once every few days, with the interval between visits getting longer all the time.

Member Avatar for SalmiSoft
0
602
Member Avatar for asif49

The Welsh, being inventive people, don't need guns to perform mass murders: [5 killed by fire in Prestatyn](http://www.digitaljournal.com/article/349392) That is of course unusual and I don't mean to suggest that mass murder - or murder generally - is commonplace in Wales, but I am not convinced that lack of guns …

Member Avatar for weitau
0
7K
Member Avatar for abdoalghareeb
Member Avatar for SoftSoul6Co

There is no in-built way to do it so you have to roll your own. There are 2 sides to this problem: To get the data as booleans rather than dates you could probably use `Calculated fields`. To display the data using checkboxes take a look at http://delphi.about.com/od/delphitips2009/qt/dbgrid-checkbox.htm

Member Avatar for SoftSoul6Co
0
1K
Member Avatar for Bozlee

A lot depends on your goals. What are you aiming at? Desktop v Mobile v Web for example can influence your choice. What about your target OS? Also important. Professional v personal developments may mean different choices. It is impossible to answer your question without knowing this sort of information. …

Member Avatar for SalmiSoft
0
145
Member Avatar for Simon180

If all you want to do is to launch the app then the easiest way is not to find it at all. Just lauch the EXE without specifying its path (for example, Notepad.exe rather than c:\blah\blah\blah\Notepad.exe) and let the OS find it for you. If the EXE is in your …

Member Avatar for Simon180
0
231
Member Avatar for lmulloy

I had a similar problem with my Tosh. I put the machine aside for a few weeks till I had time to look at it and when I came back to it there was no problem starting it. After that it would sometimes start and sometimes not. I have not …

Member Avatar for rproffitt
0
247
Member Avatar for Orionizer

I don't see anything obviously wrong with your code so I would look at your data. For example, you check: if not VarIsNull(WS.Cells[X,3].Value) then but what about MillStyle:=WS.Cells[X,2].Value; Can `WS.Cells[X,2].Value` ever be null? What effect would it have if it were null? Also I suggest you step through this in …

Member Avatar for Orionizer
0
442
Member Avatar for R3CK2

Think what the value of `List2` is in this line: Writeln(UserFile, Score[List2]); or here: Writeln(UserFile, Score[List2]); You don't initialize List2 to any known value and you never change it.

Member Avatar for SalmiSoft
0
152
Member Avatar for Gobroski

Good that you have something working! That puts you ahead of the game already. Here are some comments on your code and your question. 1. Data encapsulation is an important part of OOP. You have many variables created in the interface var section. Only the hangman variable (the form) needs …

Member Avatar for Gobroski
0
227
Member Avatar for Simon180

There is a nice Marquee component at http://www.delphiarea.com/products/delphi-components/marquee/ It can scroll left or write. All you would need to do is handle its onWrap event and swap its direction, like this: procedure TMainForm.MarqueeWrap(Sender: TObject); begin if Marquee.BiDiMode = bdLeftToRight then Marquee.BiDiMode := bdRightToLeft else Marquee.BiDiMode := bdLeftToRight; Marquee.Reset; end; The …

Member Avatar for SalmiSoft
0
409
Member Avatar for diafol

The population in mid-2013 was England 53.9 (million) Scotland 5.3 Wales 3.1 N Ireland 1.8 source: http://www.ons.gov.uk/ons/rel/pop-estimate/population-estimates-for-uk--england-and-wales--scotland-and-northern-ireland/2013/index.html With 600 seats in parliament divided fairly among the population there would be 1 seat for every 106833 people. Based on this the allocation of seats to countries would be: England 505 Scotland …

Member Avatar for diafol
0
272
Member Avatar for hefaz

You want a de-compiler rather than a disassembler. I have seen a few mentioned over the years but have never tried them so can't comment on how good they might be. Google should be able to find them. You could start with: http://delphi.about.com/od/devutilities/a/decompiling_3.htm

Member Avatar for hefaz
0
141
Member Avatar for Simon180

I don't see anything wrong with this, assuming "'ADDR', 'PORT', 'PASSWORD'" is just dummy data to avoid publishing your real data, and that you enable the timer somewhere. I suggest you put a break point on the first line of both of these routines and step through the code line-by-line …

Member Avatar for SalmiSoft
0
118
Member Avatar for Clearner123

Check if your development environment includes a profiler. You can get a lot of information from a decent profiler. This will help you identify bottlenecks and the profiler will take care of the timing issues for you.

Member Avatar for Mayukh_1
0
328
Member Avatar for Dimitris_1

You are opening the file twice, once for writing & once for reading. The 2 commands you use are: fp=fopen("test_numbers.dat","w"); fp=fopen("./test_numbers.dat","r"); Perhaps you are trying to read the file in a different folder? Have you tried: fp=fopen("test_numbers.dat","r");

Member Avatar for vegaseat
0
164
Member Avatar for Fiorentino01^

Your bookings record tells you who the booking is for but doesn't tell you what was booked. You need to have another table to cross-reference each booking with the rooms booked. Personally I would put the booking dates into that cross-reference table, so that you can more easily cope with …

Member Avatar for SalmiSoft
0
243
Member Avatar for Simon180

Start a new project. Add a status bar and set SimplePanel TRUE. Add a TWebBrowser (and set Align alClient). Add this for the form's onCreate event handler: procedure TForm2.FormCreate(Sender: TObject); begin Application.OnMessage := MyMessages; wb1.Navigate('https://www.google.com/'); // Or whatever site you want end; Add a private procedure to the form: procedure …

Member Avatar for Simon180
0
2K
Member Avatar for SalmiSoft

I am using the MySQL C API and having problems defining a stored procedure. MY SQL script works fine in MySQL Workbench but the same script fails in my own software. A test script which shows the problem is: SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; CREATE SCHEMA …

Member Avatar for SalmiSoft
0
253
Member Avatar for pramudiyanto

A lot depends on how your matrix is defined. If you show the code you have so far, especially the matrix declaration, I'm sure you'll get some help.

Member Avatar for SalmiSoft
0
91
Member Avatar for Mya:)

The Loan Arranger. You could use the Finance icon supplied with Delphi. Not very nice & just a pile of coins, but at least you have it already.

Member Avatar for Mya:)
0
403
Member Avatar for Simon180

Can you use the MyRoomQuery.AfterUpdateExecute event? Put the if ... then goto ... code in a handler for that event?

Member Avatar for Simon180
0
284
Member Avatar for Wuhoo

It would be a legitimate thing to do in some circumstances. For example, a kiosk PC which should only allow the user to use one application, with no access to other apps or the OS.

Member Avatar for cgeier
0
311
Member Avatar for Michaël

Take a look in the Object Inspector at the events for the form. It has OnClick, OnMouseDown, OnMouseUp events that you can use to start/pause/stop the play. The Shift parameter to the OnMouseDown and OnMouseUp event handlers tells you which mouse button was pressed so you could use the left …

Member Avatar for SalmiSoft
0
2K
Member Avatar for Marialyn

That is a bit of a vague request. What do you mean by library? A collection of computer code or a place that loans books? What do you want the code to do? I wrote a system that implement 3M's Standard Interchange Protocl for a library automation project. See http://multimedia.3m.com/mws/media/355361O/sip2-protocol.pdf …

Member Avatar for SalmiSoft
-2
95
Member Avatar for ipage

The declaration is correct, so the problem is elsewhere. I don't have Delphi on this machine so can't test anything at the moment, but one simple problem is your code: if (TCharacter.GetUnicodeCategory(c) <> TUnicodeCategory.ucNonSpacingMark) or (TCharacter.GetUnicodeCategory(c) <> TUnicodeCategory.ucCombiningMark) then This will ALWAYS be true. I guess you meant to write: …

Member Avatar for ipage
0
3K
Member Avatar for JOSheaIV

I think you'll need to have some software running on the machine which physically has the serial port. You could write that software yourself, or buy it (eg http://www.advancedvirtualcomport.com/index.html).

Member Avatar for JOSheaIV
0
152
Member Avatar for DS9596

Each time round the loop you have 2 `cin.get(c);` lines. I suspect that you only want the one at the end of the loop.

Member Avatar for SalmiSoft
0
207
Member Avatar for Builder_1

A binary search may be implemented using recursion. Take a look at http://rosettacode.org/wiki/Binary_search#C.2B.2B

Member Avatar for SalmiSoft
0
133
Member Avatar for SalmiSoft

The 2nd monitor on my Windows 7 laptop stopped working today. It just showed black when I started the laptop. It has previously been working fine and I have not recently made any hardware or software changes. So far I have tried: - Checking video & power cables are connected …

Member Avatar for DaniWebUser_1
0
308
Member Avatar for cambalinho

So you want to draw the "foreground" of the bitmap but let the background be transparent, so the image appears to be drawn on your window rather than within a black square? If so, you need to mask the bitmap. Take a look at http://www.codeguru.com/cpp/g-m/bitmap/article.php/c1753/Transparent-Bitmap--True-Mask-Method.htm

Member Avatar for triumphost
0
2K
Member Avatar for majara

The terms Local and Global are, to my mind, out of date. Classifying variables as one or the other really relates to the way software used to be written, with a very simple structure. There are more levels now which don't have nice tidy names. To generalise, you need to …

Member Avatar for ddanbe
0
156
Member Avatar for Rahul47

What form does your data take? If you have an input string as a pointer to a null-terminated array of char, you can just walk the string a find the spaces. So you would check the first char then increment the pointer and check the next char. Repeat until you …

Member Avatar for Rahul47
0
214
Member Avatar for Abdellah_2

You could enumerate the fonts you want using the EnumFontFamiliesEx API call. Specify ARABIC_CHARSET as the character set in the LogFont you supply to the routine, and have your callback routine add the font names to your combo box. I don't have any VB code to do that but maybe …

Member Avatar for Abdellah_2
0
357
Member Avatar for Delano_1

I am surprised that you get this error message. I would have expected a different one, perhaps "Incompatible Types". What compiler are you using? `costumepmt` is defined as an `Array[1..7] of real` so it is not a single value, it is 7 values held in an array. So your code …

Member Avatar for SalmiSoft
0
3K
Member Avatar for arnab_1

I have been having a similar problem but in my case it was a wifi router at fault. Reboot the router and all would be OK for another hour or two. I then took the router out of service and the problem disappeared.

Member Avatar for RobertHDD
0
181
Member Avatar for Osagie_1

I am just guessing here ... but the manual says strtotime returns a timestamp on success, FALSE otherwise. Previous to PHP 5.1.0, this function would return -1 on failure. So, will FALSE be considered 0? So when the input is 100% $stamp will be set to 0 or -1, both …

Member Avatar for cereal
0
868
Member Avatar for humorousone

Whilst tinstaafl's approach has much to recommend it I personally do something similar to ddanbe. My view is that the tools I use most have simple ways of renaming controls and propogating the changes throughout the code, so the impact of changing the name when the type changes is minimal. …

Member Avatar for humorousone
0
261
Member Avatar for AntonyRayan

The BaseData class has 2 abstract methods: connected() and get(). The UserData class provides an implementation for the get() function but there is still no implementation for the connected() function. The error message is telling you that either you must declare the UserData class abstract or you must provide an …

Member Avatar for diafol
0
203
Member Avatar for CodeWarrior14

How have you defined primesets, SET1 to SET8 and MAX_TIMES? In your IsPrime routine you don't need to loop all the way to Value. Looping to Value/2 will do, because any number greater than Value/2 cannot be a factor of Value.

Member Avatar for CodeWarrior14
0
323
Member Avatar for SammyG83

You need to become familiar with the Random function. Use it to pick the values you wish to calculate with. Also use it to select a mathematical function; generate a random number from 0 to 2 and use this to specify which of your 3 mathematical functions to use. An …

Member Avatar for SalmiSoft
0
138

The End.