|
He must be suggested to join anti-if campaign.
// ♫ 99 little bugs in the code,
// 99 bugs in the code
// We fix a bug, compile it again
// 101 little bugs in the code ♫
|
|
|
|
|
|
The reason I'll go home now (for today):
public SendAction(final Mail oMail, final boolean probe) {
this(oMail);
setText("Send Probe");
send_as_probe = true;
}
public SendAction(final Mail oMail, final int later) {
this(oMail);
setText("Send Later");
send_later = true;
}
Nice. It's pretty clever (sort of )- someone wanted to call the same object in another way...
see'ya tomorrow... need to go home and daze my programming mind with some beer...
Torsten
I never finish anyth...
|
|
|
|
|
Looks kind of funny... feels like the urge for booze increases... cheers mate
(yes|no|maybe)*
|
|
|
|
|
right - that helps most times. Did I mention that I live really close to a German Biergarten[^]
I sorted out all of the booleans (there were some more in the deeper code...) and deleted 2 constructors in this Action.
public SendAction(){
setId(SendAction.ID);
}
public SendAction(final Mail oMail, final SendMode oSendMode) {
this();
}
regards
Torsten
I never finish anyth...
|
|
|
|
|
TorstenH. wrote: Did I mention that I live really close to a German Biergarten
who doesn't, every german citizien lives near one... and in bavaria... which I actually do...
(yes|no|maybe)*
|
|
|
|
|
If only something would point me in the right direction...
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/home/fitpccom/public_html/fit-pc1/includes/version.php) is not within the allowed path(s): (/home/fitpc:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/fitpc/public_html/fit-pc1/includes/joomla.php on line 71
Warning: require_once(/home/fitpccom/public_html/fit-pc1/includes/version.php) [function.require-once]: failed to open stream: Operation not permitted in /home/fitpc/public_html/fit-pc1/includes/joomla.php on line 71
Fatal error: require_once() [function.require]: Failed opening required '/home/fitpccom/public_html/fit-pc1/includes/version.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fitpc/public_html/fit-pc1/includes/joomla.php on line 71
|
|
|
|
|
I spotted it! Line 71 is using PHP.
This is not the age of reason, this is the age of flummery, and the day of the devious approach. Reason’s gone into the backrooms where it works to devise means by which people can be induced to emote in the desired direction.
|
|
|
|
|
Let me fix this for you
guyzz I haz a problem with my app. i get this weird error when i try to run it can soembody fix for me an give me proper codz plz? i haz no clue what is wrong as i cut and pasted exactly what was on that website
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/home/fitpccom/public_html/fit-pc1/includes/version.php) is not within the allowed path(s): (/home/fitpc:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/fitpc/public_html/fit-pc1/includes/joomla.php on line 71
Warning: require_once(/home/fitpccom/public_html/fit-pc1/includes/version.php) [function.require-once]: failed to open stream: Operation not permitted in /home/fitpc/public_html/fit-pc1/includes/joomla.php on line 71
Fatal error: require_once() [function.require]: Failed opening required '/home/fitpccom/public_html/fit-pc1/includes/version.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fitpc/public_html/fit-pc1/includes/joomla.php on line 71
Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
|
|
|
|
|
gavindon wrote: guyzz I haz a problem with my app.
Oh no, a lazy n00b in need of help!
Luckily we have uber Google searches[^]
It's an OO world.
|
|
|
|
|
Look at the paths - user fitpccom causes the trouble:
/home/fitpccom/public_html/fit-pc1/includes/version.php
/home/fitpc/public_html/fit-pc1/includes/joomla.php
But, well, you're right: require_once should be renamed to require_thrice .
"...then shalt thou count to three, no more, no less. Three shall be the number thou shalt count, and the number of the counting shall be three. Four shalt thou not count, neither count thou two, excepting that thou then proceed to three. Five is right out. Once the number three, being the third number, be reached,..."
|
|
|
|
|
Private Function GetFullName(firstName As String, middleName As String, lastName As String) As String
Dim fullName As String
Dim firstEmpty As String = String.IsNullOrEmpty(firstName)
Dim middleEmpty As String = String.IsNullOrEmpty(middleName)
Dim lastEmpty As String = String.IsNullOrEmpty(lastName)
If firstEmpty Then
If middleEmpty Then
fullName = lastName
Else
If lastEmpty Then
fullName = middleName
Else
fullName = lastName
End If
End If
Else
If lastEmpty Then
fullName = firstName
Else
If middleEmpty Then
fullName = String.Format("{0} {1}", firstName, lastName)
Else
fullName = String.Format("{0} {1} {2}", firstName, middleName, lastName)
End If
End If
End If
Return fullName
End Function
I wasn't sure if I should put this in "Clever Code" or "Hall of Shame".
This is not the age of reason, this is the age of flummery, and the day of the devious approach. Reason’s gone into the backrooms where it works to devise means by which people can be induced to emote in the desired direction.
|
|
|
|
|
There is a small change in the specs, we now have two more optional (middle?) initials. Please adapt your code...
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
I actually know two people with 5-letter initials (they each have double middle and double last names).
This is not the age of reason, this is the age of flummery, and the day of the devious approach. Reason’s gone into the backrooms where it works to devise means by which people can be induced to emote in the desired direction.
|
|
|
|
|
Here it is pretty normal to have several "first names", in Dutch we actually call them firstnames (plural), although first, second, third, etc. would be more logical. I have four. So we don't really have a middle name or middle initial, when you ask me for a middle initial you'd get three of them. And all that is without double or composite names.
How about the code?
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Luc Pattyn wrote: How about the code?
Ok, I'll construct the N-name control. The user can enter any number of name parts, and select (from a drop-down) the type each name part is. It will look a bit like this:
[First v] _________
[Middle v] _________
[Last v] _________
[Freak v] _________
[Add Name Part]
Of course, there will be validation rules (e.g., last names cannot appear before first names). Happy now?
This is not the age of reason, this is the age of flummery, and the day of the devious approach. Reason’s gone into the backrooms where it works to devise means by which people can be induced to emote in the desired direction.
|
|
|
|
|
No
(yes|no|maybe)*
|
|
|
|
|
AspDotNetDev wrote:
Of course, there will be validation rules (e.g., last names cannot appear before first names). Happy now?
No. In Bavaria, the "family name" (which is called the "last name" in English) comes first. Also Hungarians do it this way.
|
|
|
|
|
Then I'll add "Family Name" and "Given Name", and they will not have the same validation rules.
This is not the age of reason, this is the age of flummery, and the day of the devious approach. Reason’s gone into the backrooms where it works to devise means by which people can be induced to emote in the desired direction.
|
|
|
|
|
Hmmm. This looks to be a Power-ful example for making a case for compiler localization: if you want an executable for say Tagalog, just change your display language in VS and re-compile. The compiler would pull in different rules for name construction based on Phillipine conventions. Then voila! You have no need to re-write your logic.
|
|
|
|
|
The multiple names is not SOOO uncommon here in the U.S.A. anymore either.
The nanas were arguing about the middle name for our second daugher, so we just gave her "Amber Ann" as the middle name!
|
|
|
|
|
AspDotNetDev wrote: 5-letter initials
In Spanish speaking Latin America (maybe all Spanish nations?) you have two last names - your father's first last name and your mother's first last name. When a woman marries, they add their husband's first last name on to their name (so my wife has five names, excluding the 'del' and 'de'). Our niece already has five names so when she marries she'll have six names!?
You think this is strange but every time they ask for my surname they wait for me to say a second one and I have to explain to them I'm British and don't have a second one; they think I'm the crazy one!
|
|
|
|
|
I think it's very weird in some countries there is the culture of splitting First and Last names. Some web sites/places don't even have middle name field.
I wonder why this is, here in Brazil it's always one field for the name only. Is there any need for splitting the names? I find it more confusing only. Worse for the websites that have only first and last names. Do I use:
"Franco, Fábio dos Santos" or "dos Santos Franco, Fábio". Here everywhere, it's only one field for registering anywhere, field splitting were never missed.
|
|
|
|
|
It can be useful to split names. That way, companies can send you emails and address you by your first name (or given name, or whatever name part it is common to address people by in a given region). So, they can say "Dear Joe" rather than "Dear Joe Blo III". It is also useful to let the user know that all portions of the name must be entered. For example, if entering credit card details, it is a handy reminder to users to have first/last name so they know they must enter their whole name. While unfair to those with different naming conventions, first/middle/last is the standard for English websites (some add title and others, but the main thing is first/middle/last). It might be best if they allowed for a toggle, so you could switch between first/middle/last or just "full name".
This is not the age of reason, this is the age of flummery, and the day of the devious approach. Reason’s gone into the backrooms where it works to devise means by which people can be induced to emote in the desired direction.
|
|
|
|
|
AspDotNetDev wrote: companies can send you emails and address you by your first name
someString.Split(' ')[0];
AspDotNetDev wrote: let the user know that all portions of the name must be entered
lblName.Text = "Full Name:"
I know that name splitting has it's usefulness, like displaying in formats like "Last, First Name" the way the user wants, but I believe single field names benefits outweighs by far the benefits of multiple field names. Not only on the functional perspective, but also on development. It's much simpler to have only one column on the database to hold a name.
A better solution would indeed be a toggle, but then, that adds overhead to development.
|
|
|
|
|
How would your code handle a user who enters: "Mr. Fabio Franco, Ph.D."?
Or how about these:
- "Mr Fabio Franco, Phd"
- "Mr Fabio Franco the first, phd cna"
- "Mrs. Fabio Franco"
- "Fabio Franco, Mr"
- "Fabio Franco III"
- "Fabio"
There is quite a bit of variation out there, and I'm sure more variation I don't know about in other cultures. Users do funny things when you let them (try to) think for themselves.
This is not the age of reason, this is the age of flummery, and the day of the devious approach. Reason’s gone into the backrooms where it works to devise means by which people can be induced to emote in the desired direction.
|
|
|
|