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?
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?
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.
I need some classes to befriend other classes in my system. Lack of this feature made me publicize some methods which shouldn't be public. The consequences of that are that members of my team implement code in a bad and ugly way which causes a mess.
Is there a way to define a friendship in php 5.3?
(I am aware of http://bugs.php.net/bug.php?id=34044 You might want to vote there if there is no simple solution).
With iText I can use Java to open a pdf and write it. If the pdf has an owner password I can still open it but it can not be written.
Clearly the content is readable, it seems like at that point you could simply write the document to a new file. iText doesn't allow this, it throws a bad password exception. Is there a way around this?
Tried doing http://davidwparker.com/2008/09/17/site-wide-announcements-in-rails-using-jquery-jgrowl/
Am really bad with JS. Think I am messing up on the last part where it says "This code goes in your application.js file (somewhere in $(function){ //here })"
Am I not suppose to do a link_to_function and create a function with this code that references that link?
Really lost on this one.
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 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 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'm processing bad-formated HTML pages with JTidy. I am only interested in fixing a specific set of tags, for example . Is there anyway to tell JTidy to focus on only those tags?
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 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 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?
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 used two different command x/w and disas at the same address 0x405130,get totally different output:
(gdb) x/w 0x405130
0x405130 <_imp__printf>: 0x77c1186a
(gdb) disas 0x405130
Dump of assembler code for function _imp__printf:
0x00405130 <_imp__printf+0>: push $0x18
0x00405132 <_imp__printf+2>: (bad)
0x00405133 <_imp__printf+3>: ja 0x405109 <_imp___iob+1>
End of assembler dump.
I don't understand why it's like this,can anyone explain it?
I have a settings page that a user can enter some text and save directly to a combobox. Next time when page loads, combobox is filled in with the previous entered text. Also i have a modify button, so the user can delete or edit a value from the combobox.
My question is, what's the best way to save to user settings on the client with javascirpt/jquery?
I can only think of using an array and then (push/pop).,,Anyone got some bad experience with arrrays?
thx
From what I'm reading, $ is described as "applies a function to its arguments." However, it doesn't seem to work quite like (apply ...) in Lisp, because it's a binary operator, so really the only thing it looks like it does is help to avoid parentheses sometimes, like foo $ bar quux instead of foo (bar quux). Am I understanding it right? Is the latter form considered "bad style"?
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.
Pygame has shockingly bad quality. It's not worth my game. But then I still need to play music and sounds. What can I use which works with OSX, Linux and Windows and plays the sound properly unlike the terrible pygame module? pyMedia doesn't compile on OSX. It clearly isn't very good.
Thank you.
Hi,
Say there is a dict variable that grows very large during runtime- up into millions of key:value pairs.
Does this variable get stored in RAM,effectively using up all the available memory and slowing down the rest of the system?
Asking the interpreter to display the entire dict is a bad idea, but would it be okay as long as one key is accessed at a time?
Tim
Hi Team,
Could you please list some of the bad practices in SQL, that novice people do?
I have found the use of "WHILE loop" in scenarios which could be resolved using set operations.
Another example is inserting data only if it does not exist. This can be achieved using LEFT OUTER JOIN. Some people go for "IF"
Any other thoughts?
Thanks
Lijo
While I love PHP I find its biggest weakness is that it allows and even almost encourages programmers to write bad code.
Is there a language that encourages good programming practices? Or, more specifically, a web-related language that encourages good practices.
I'm interested in languages who have either a stated goal of encouraging good programming or are designed in such a way as to encourage good programming.
Hi,
I'm trying to debug a C program using Eclipse CDT-s debugger and gdb on a Windows7 system, and everything seems fine, except for the console not showing up, which is bad, because my program needs input at some points from the keyboard.
So how should I make Eclipse's debugger work properly?
Thank you.
I just built a web page that is employing several different javascript elements. I am just curious as to what is considered a fast vs. a slow load time. Mine is coming out to be about 490ms w/ four different javascript pieces. Is that good, bad or average? Wondering if I need to optimize my js elements or not.
What is the best way to detect if a jQuery-selector returns an empty object.
If you do:
alert($('#notAnElement'));
you get [object Object], so the way I do it now is:
alert($('#notAnElement').get(0));
which will write "undefined", and so you can do a check for that. But it seems very bad. What other way is there?