Hi,
Do you ever feel bad keeping office or lab computers "on" after day work? Is there anything useful you guys utilize those computers till you come back the next day morning.
Thank you.
Hi,
I have a raw YUYV422 buffer with 8-bit 4:2:2 Component Y’CbCr format (Y0, Cb, Y1, Cr order).
I know that ffmpeg's PIX_FMT_YUYV422 only handle 16-bit buffers.So I am getting Bad memory error when scaling that buffer into YUV420P.
Can any one give me a clue, how can I use this buffer with ffmpeg to covert into YUV420.
Thanks,
Raghu
My staging and production servers are on different servers and domains.
Which would be the best way to deal with external APIs that have a key that relies on domain names?
Is this bad practice and both should be on the same server?
I have implemented a custom wizard control in C# windows forms by creating a base form which has the shared components and then making child forms for each step of the process. I then have a class which hides/shows the child forms when you move from one step to another. The problem is that flickering is bad when moving between forms. Does anyone know a way to either keep this method and reduce the flicker or refactor it to make it use a single form (which should definitely reduce the flicker)?
Some time ago (~4-5months ago) I attented a lecture about JEE and at some point the lecturer started talking about webservices and how hard it is to create a good one because all the IDEs make them in a bit different way (or something like that) and that in general it's better to use Netbeans to create them as Eclipse has some issues, the thing is he didn't really say why Eclipse is bad. Now I'm wondering is what he said true and why, is it really better to use Netbeans for webservices and why?
I need to install a plugin like this:
script/plugin install git://github.com/apotonick/cells.git
and it just creates a new empty folder in the plugins dir, "cells"
(i use eclipse and rails)
Is that a bad question, i dont get it?(-6 votes)
What programming languages are a good choice for High Integrity Systems?
An example of a bad choice is Java as there is a considerable amount of code that is inaccessible to the programmer. I am looking for examples of strongly typed, block structured languages where the programmer is responsible for 100% of the code, and there is as little interference from things like a JVM as possible.
Compilers will obviously be an issue. Language must have a complete and unambiguous definition.
Too bad I don't have a server but a XP to serve some scheduled ruby scripts. So, what's the recommended way (gem/plug-in?) to write logs on Windows XP from ruby scripts?
I don't think I'm missing anything. Then again I'm kind of a newbie.
def GET(self, filename):
name = urllib.unquote(filename)
full = path.abspath(path.join(STATIC_PATH, filename))
#Make sure request is not tricksy and tries to get out of
#the directory, e.g. filename = "../.ssh/id_rsa". GET OUTTA HERE
assert full[:len(STATIC_PATH)] == STATIC_PATH, "bad path"
return open(full).read()
I have a document storage application that I need to integrate with a scanner software or create one on my own. I have very limited funding so buying an expensive alternative isn't really an option.
I thought about just linking to the customer's scanning software's executable and opening it when they want to scan but that just seems like a bad way of doing it.
Anyone have any suggestions on how I do this?
Thanks as usual,
Eroc
I have just stumbled upon Bad Behavior - a plugin for PHP that promises to detect spam and malicious crawlers by preventing them from accessing the site at all.
Does something similar exist for ASP.NET/ASP.NET MVC?
I am interested in blocking access to the site altogether, not in detecting spam after it was posted.
I've always used PHP, but recently I've been reading about why it's bad. I love Python, but I don't know how it works with the web. I've never even seen Ruby... what is worth learning? Should I stick to PHP?
hi everybody
i have a problem please help me
i have 4 select tag in my php page and when i post my parameters to my page all of select tags
clear and i want my selected item dont change - excuse me for my bad english
So I need to close a particular connection, but the problem is another thread is, at the same time, doing a select() which has the socket as one of the file descriptors it's watching.
Will the select() terminate gracefully, or will anything bad happen?
good stuff
// ok to alias a List Type
using AliasStringList = System.Collections.Generic.List<string>;
// and ok to alias a List of Lists like this
using AliasListOfStringList1 = System.Collections.Generic.List<System.Collections.Generic.List<string>>;
bad stuff
// However **error** to alias another alias
using AliasListOfStringList2 = System.Collections.Generic.List<AliasStringList>;
Produces the compile error
The type or namespace name
'AliasStringList' could not be found
(are you missing a using directive or
an assembly reference?)
Everything seems to work fine until i want to submit the form and update the database.
Wildcard mapping works on requests like "/navigation/edit/1", but when i submit the form as:
var ajaxPost = function(Url, Params) {
Ext.Ajax.request({
url: Url,
params: Params,
method: 'POST',
async: false,
scope: this
});
};
it says "200 bad response: syntax error" and in firebug there is "Failed to load source for: http://.../Navigation/edit/1".
Any help?
I am trying to save the value "6.714285714285714" into a DOUBLE datatype field.
Unfortunately it does not fit at all and is cutted by one char. Storing larger numbers becomes less precise.
Already searched in the mysql manual and it seems to be that double is the most precise data type available. Anyone knows a practicable workaround?
Sorry for my bad english and thx a lot!
I am very bad at regular expressions, but I have a regular expression that is working okay, except for one issue:
/\/(.*?).php/
I only need this regular expression to find things like:
/this-a-valid-page.php {some words here} /anotherpage.php { some words here} http://www.google.com
but do not find URLs the problem i am having is that it find this parts of full URLS i want it to avoid these all together. http://www.google.com/page.php because i have another function that does something different than the filename reg exp.
I'm learning C++ from scratch, and as such I don't have an expert understanding of C. In C++, you can't cast a void pointer to whatever, and I understand the reasons behind that. However, I know that in C, you can. What are the possible reasons for this? It just seems like it's be a huge hole in type safety, which (to me) seems like a bad thing.
Is this a bad idea? Does calling a generic private constructor within a public constructor create multiple instances, or is this a valid way of initializing class variables?
Private Class MyClass
Dim _msg As String
Sub New(ByVal name As String)
Me.New()
'Do stuff
End Sub
Sub New(ByVal name As String, ByVal age As Integer)
Me.New()
'Do stuff
End Sub
Private Sub New() 'Initializer constructor
Me._msg = "Hello StackOverflow"
'Initialize other variables
End Sub
End Class
I am trying to run JUnit test with a 1.5 JRE, but get the error Message:
java.lang.UnsupportedClassVersionError: Bad version number in .class file
When I switch to JRE 1.6 (actually a JDK but that shouldn't matter, right?) everythings works fine.
So the questions are:
Do we really need Java 6 for the current JUnit version?
what is the newest JUnit version, that works with Java 5?
I only get this error on one machine and its only on one directory when trying to check out some source code:
Server sent unexpected return value (502 Bad Gateway) in response to OPTIONS
other folks can download it fine.
any ideas whats going on. I just uploaded to version 1.6.7 to see if it was a versioning issue but still see the error above.
In my Dispose methods (like the one below), everytime i want to call someObj.Dispose() i also have a check for someObj!=null.
Is that because of bad design on my part?
Is their a cleaner way to ascertain that Dispose of all the members (implementing IDisposable) being used in an object is called without having a risk of NullReference exception ?
protected void Dispose(bool disposing)
{
if (disposing)
{
if (_splitTradePopupManager != null)
{
_splitTradePopupManager.Dispose();
}
}
}
Thanks for your interest.
I have an object factory that hands out instances of certain "constant" objects. I'd like these objects to be protected against bad memory management by clients. This is how I've overridden the class's key methods. Am I missing anything (code or other considerations)?
- (id)retain
{
return self;
}
- (NSUInteger)retainCount
{
return UINT_MAX;
}
- (void)release
{
// nothing.
}
I'm using Java's DataInputStream with scala to parse some simple binary file (which is very bad exprerience due to the lack of unsigned types, even in scala, but that's a different story).
However I find myself forced to use mutable data structure, since Java's streams are inherently state preserving entities.
What's a good design to wrap Java's streams with nice functional data structure?