If I am developing a class and don't know how it will be used, are there any drawbacks to declaring all the member functions virtual? Is this a good or bad design?
Hi,
Does anyone know of a good way to have a user enter an amount of time (hours and minutes) using visual studio controls? At the moment i have two numeric up downs, one for time and one for minutes that i then parse to create a timespan. The only other idea i have is a text box that a user can enter a "00:00" time in, and validate the input. Both of these ways seem a bit bad (in UI terms) though.
Any ideas?
Thanks
SUMMARY :
I have a view where I need to replace the term link "taxonomy/term" by my view link, because the view uses arguments to find content with terms
how can I put in link argument the term which is display :
[term_name1] link "display_view/term_name1", [term_name2] link "display_view/term_name2"
I used [tid] field to put argument in link
display_view/[tid]
but it only display the first term, and not the real term (for example if multiple taggs it only display the first) and put all the terms in one single link :
[term_name1 term_name2] link "display_view/term_name1"
so why [tid] or [tid_1] don't run ? is there another field, or do I need php ?
really need help ! :)
DESCRIPTION :
Hello, I made a view table to display store content
it display : user name, title, taxonomy term to type (book, disc...), taxonomy term for taggs (subject of objects)
for example :
USER | TITLE | TERM TYPE (only one) | TERM SUBJECTS (taggs)
user1 | James Brown disc | disc | soul jamesbrown
user2 | rolls book | book | cars rolls travel
so I display different types of terms
and in subjects it can have a multiple because it's taggs
I use arguments so it can have display for example only store from an user, or from an taxonomy (for examples only the disc, or the disc about soul)
so I can link display_view/argtermtype/argtermsubject
(I separate the type and subject)
MY NEED :
what i want is the terms of the view don't redirect on taxonomy/term but on my view
so I have to :
change the link of terms in view to redirect on display_texts/all/all
replace [all] with the [term] argument
MY PROBLEM :
I can't have the right field of terms displayed in the links of terms
in fields, I :
checked "Output this field as a link"
put the link "display_view/[tid]" for term type and "display_view/all/[tid]" for term subjects
NOT checked "Link this field to its term page"
what it does :
[tid] put in link FOR ALL THE LINE the SAME TERM
and it put all the terms in one single link !
that's to say, it creates the links :
USER | TITLE | TERM TYPE (only one) | TERM SUBJECTS (taggs)
user1 | James Brown disc| [disc] display_texts/disc (ok !) | [soul jamesbrown] (BAD only one link!) display_texts/all/disc (BAD it's not the new term !)
what I need :
USER | TITLE | TERM TYPE (only one) | TERM SUBJECTS (taggs)
user1 | James Brown disc| [disc] display_texts/disc| [soul] display_texts/all/soul [jamesbrown] display_texts/all/jamesbrown)
MY QUESTION :
so
how can I put in argument the term which is display ?
I try things like [tid_1] but doesn't work
is there any list of fields somewhere ?
or do i have to use php code ?
how to separate link terms ?
if I check "Link this field to its term page" links are separate but it replace my link by "taxonomy/term" link
think's in advance for any idea !
What I must to learn to write php web-site graber (parser)?
It's just must collect any other information from other websites, as weather forecast, wiki "on this day", some news and other useful and interesting "every day" information!
and what i must to read for writing m3u player on php?
sorry for my bad english
Heya! My name is Ale, and this is the first time that I post in this website.
I've a little problem: I have to open a linker file, that have ".a" extension. I use Dev-C++, I don't know if it would be useful for you :-P
I hope you will answer soon!
Oh, and excuse me for my bad English, tell me if I made some mistakes!
Thanks!!
Hi.
When I try to sync with my SVN (I'm using unfuddle) through ZendStudio I get the following error:
Some of selected resources were not committed.
svn: Commit failed (details follow):
svn: MKACTIVITY request failed on '/svn/test1234_a/!svn/act/58ae0e6d-2301-0010-8300-cb465553b788'
svn: MKACTIVITY of '/svn/test1234_a/!svn/act/58ae0e6d-2301-0010-8300-cb465553b788': 400 Bad Request (http://test1234.unfuddle.com)
I think this is some type of proxy error, but how can I fix this (using ZendStudio).
Thanks.
I found the following claim in the documentation for Net::OpenSSH:
Note that using password
authentication in automated scripts is
a very bad idea. When possible, you
should use public key authentication
instead.
What's flawed in using password authentication in automated scripts?
Say I have an object that gets some data from HttpPost and some from the database. I think I want to allow the ModelBinder to go to the database/repository for the that data missing from the post. In practice, is this a good or bad idea?
i use DotNetZip in my project.
using (var zip = new ZipFile())
{
zip.ProvisionalAlternateEncoding = System.Text.Encoding.GetEncoding(866);
zip.AddFile(filename, "directory\\in\\archive");
zip.Save("archive.zip");
}
all ok but when i use method AddDirectoryByName i have a bad directory names.
I have a page called ..hi i get this error when visiting the page. Why is that illegal?
Server Error in '/' Application.
HTTP Error 400 - Bad Request.
Version Information: ASP.NET Development Server 10.0.0.0
Many bad things happened and continue to happen (or not, who knows, anything can happen) due to undefined behavior. I understand that this was introduced to leave some wiggle-room for compilers to optimize, and maybe also to make C++ easier to port to different platforms and architectures. However the problems caused by undefined behavior seem to be too large to be justified by these arguments. What are other arguments for undefined behavior? If there are none, why does undefined behavior still exist?
Here's what I am looking to accomplish, I have a class that has an enum of some values and I want to subclass that and add more values to the enum. This is a bad example, but:
public class Digits
{
public enum Digit
{
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
}
}
public class HexDigits extends Digits
{
public enum Digit
{
A, B, C, D, E, F
}
}
so that HexDigits.Digit contains all Hex Digits. Is that possible?
Does anyone know how you can turn off autocompletion on a textfield in Django?
For example, a form that I generate from my model has an input field for a credit card number. It is bad practice to leave autocompletion on. When making the form by hand, I'd add a autocomplete="off" statement, but how do you do it in Django and still retain the form validation?
I'm totally confused on this matter, some say use tables and others say it's a bad practice to make use of tables and div tags should rather be used. What is the correct way when developing sites for mobile devices .mobi
ISO 8601 and RFC 3339 seem to be two formats that are common the web. Should I use one over the other? Is one just an extension? Do I really need to care that bad?
Hi,
I'm creating an interactive e-book for the iPad. This book will contain multiple pages that will consist of a lot of animations (frame and motion animations), transitions,... I was wondering what my development options are, should I use OpenGL, Quartz,...?
I've use UIImageView.animationImages before and found that it had really bad performance. What's the best way to draw frame based animations?
Does anybody have some good pointers to resources on this?
thanks in advance,
Thomas
If I'm not wrong, because of its nature in factory method there is cyclic dependency:
Base class needs to know subclasses because it creates them, and subclasses need to know base class. Having cyclic dependency is bad programming practice, is not it?
Practically I implemented a factory, I have problem above, even I added
#ifndef MYCLASS_H
#define MYCLASS_H
#endif
I'm still getting
Compiler Error C2504 'class' : base class undefined
And this error disappers when I remove subclass include from base class header.
I'm developing a form generator, and wondering if it would be bad mojo to store JSON in an SQL Server database?
I want to keep my database & tables simple, so I was going to have
`pKey, formTitle, formJSON`
on a table, and then store
{["firstName":{"required":"true","type":"text"},"lastName":{"required":"true","type":"text"}}
in formJSON. would this slow down the DB server too much to set live?
Any input is appreciated.
I have had horrible procrastination habits since gradeschool, and now that I'm in college, I still am having a hard time beating this bad habit. I find myself easily distracted from doing real "work" and find myself wandering off doing something else that I enjoy more.
Tell me how you personally beat procrastination; or share your struggles.
I'm just curious, but is there a name for the process using print statements to debug your code? An example in pseudocode
x=3.2e39
print x
y = function1(x)
print y
z = function2(y)
print z
w = function3(z)
print w
Executation:
3.2e39
3.2e36
NaN
NaN
reveals some bad math in function2. If there's no standard name, what do you call it?
I wonder whether anyone knows some research done with the question "What is good/bad in long/short branches in version control?"
I'm specifically interested in academic researches performed in this field. My questions are:
What problems (or conflicts) long branches may produce and how to deal with them
How to split a big task onto smaller branches/sub-tasks
How to coordinate the changes in multiple short branches, related to the same code
Thanks in advance for links and suggestions!
I keep reading about how bad Frames are. One feature I really like is how the user can drag a splitter to resize the frames. If I don't use frames, how might I go about providing the same feature?
Is it bad idea to have static CComPtr member variables in an application.
Since we cannt control destruction of static variable and it can happen after CoUninitialze .
I'm developing a form generator, and wondering if it would be bad mojo to store JSON in an SQL database?
I want to keep my database & tables simple, so I was going to have
`pKey, formTitle, formJSON`
on a table, and then store
{["firstName":{"required":"true","type":"text"},"lastName":{"required":"true","type":"text"}}
in formJSON. would this slow down the DB server too much to set live?
Any input is appreciated.
We've all had good and bad managers. What's the best trait your manager can have to allow you to be effective in your role and allow you to love your job?
For me it's allowing me creative freedom to make decisions.