I enjoyed the answers and questions about hidden features in sql server
What can you tell us about Oracle?
Hidden tables, inner workings of ..., secret stored procs, package that has good utils...
Emacs uses an older version of python(2.3) i have for the default python mode, is there a way for me to tell emacs to use the newer version that i have in my home directory?
btw I'm using a red hat distro and dont have root privileges.
Hi
Can any one tell how to use AJAXControlToolkit's Tab container in Master page.
My application has more pages, if I use tabcontainer i can include contentplace holder
for each panel.. but the problem is only the first page is being displayed for me,
when i click on the second tab nothing is being displayed ..
here is my application tab container
Friends,
I do not know why, but every time I add a ModelErrror my session is lost. Someone tell me how I can work around / fix it?
Session[CtSessionName + SessionId] = _ListaAcaoMenuInfo;
AcaoMenuInfoExt _SelecionadoAcaoMenuExt = _ListaAcaoMenuInfo.Where(p => p.Id_acao == id).FirstOrDefault();
if (_SelecionadoAcaoMenuExt.Is_AcaoInicial)
{
ModelState.AddModelError(String.Empty, "Error! Try Again, and Again, And Again!");
}
I have a custom control which has a property of type Collection< System.Drawing.Point . When I use CollectionEditor to edit this property, the CollectionEditor window shows "Object does not match target type." for the "X" and "Y" properties. But if I use System.Drawing.PointF instead, there's no failure.
Could anyone tell me why?
Using the ValidationProperty I've managed to connect a RequiredFieldValidator with my custom control. When I enable client script in the validator, JavaScript errors occur.
Is there a way to tell the RequiredFieldValidator how it can validate my custom control in the client?
Step into the confessional. Now's your time to come clean.
What's the worst code you personally have
ever written?
Why was it so bad?
What did you learn from it?
Don't tell us about code you inherited or from some co-worker. This is about your personal growth as a programmer and as a person.
Is it possible in mercurial to ignore changes within an entire directory.
For example I would like mercurial to not tell me that changes to the "class" directory have occurred since I don't want to version control the *.class files for my project.
hi i want to execute a command that is saved as a string
e.g
test.bat
call temp.bat "echo hello world" "echo welcome"
temp.bat
set first=%1
set sec=%2
%first%
%sec%
please tell me how to do this
thanks
Our product's solution has more than 100+ projects (500+ksloc of production code). Most of them are C# projects but we also have few using C++/CLI to bridge communication with native code.
Rebuilding the whole solution takes several minutes. That's fine. If I want to rebuilt the solution I expect that it will really take some time. What is not fine is time needed to build solution after full rebuild. Imagine I used full rebuild and know without doing any changes to to the solution I press Build (F6 or Ctrl+Shift+B). Why it takes 35s if there was no change? In output I see that it started "building" of each project - it doesn't perform real build but it does something which consumes significant amount of time.
That 35s delay is pain in the ass. Yes I can improve the time by not using build solution but only build project (Shift+F6). If I run build project on particular test project I'm currently working on it will take "only" 8+s. It requires me to run project build on correct project (the test project to ensure dependent tested code is build as well). At least ReSharper test runner correctly recognizes that only this single project must be build and rerunning test usually contains only 8+s compilation. My current coding Kata is: don't touch Ctrl+Shift+B.
The test project build will take 8s even if I don't do any changes. The reason why it takes 8s is because it also "builds" dependencies = in my case it "builds" more than 20 projects but I made changes only to unit test or single dependency! I don't want it to touch other projects.
Is there a way to simply tell VS to build only projects where some changes were done and projects which are dependent on changed ones (preferably this part as another build option)? I worry you will tell me that it is exactly what VS is doing but in MS way ...
I want to improve my TDD experience and reduce the time of compilation (in TDD the compilation can happen twice per minute).
To make this even more frustrated I'm working in a team where most of developers used to work on Java projects prior to joining this one. So you can imagine how they are pissed off when they must use VS in contrast to full incremental compilation in Java. I don't require incremental compilation of classes. I expect working incremental compilation of solutions. Especially in product like VS 2010 Ultimate which costs several thousands dollars.
I really don't want to get answers like:
Make a separate solution
Unload projects you don't need
etc.
I can read those answers here. Those are not acceptable solutions. We're not paying for VS to do such compromises.
I am running rails on a local server on windows.
I installed wkhtmltoimage to C:/Sites/wkhtmltoimage
Now I have to tell IMGKit where to find it, so I added a file initializers/imgkit.rb:
IMGKit.configure do |config|
config.wkhtmltoimage = 'C:/Sites/wkhtmltoimage'
end
But When I try to use IMGKit, rails tells me:
No wkhtmltoimage executable found at /usr/local/bin/wkhtmltoimage
But I set up a new path for it ?
What do I have to do now ? Please help.
I know there are ways to remove duplicates in Makefile. Can you tell me how to make the Makefile below more concise? Thanks!
And is there any tool to automate it?
CC=gcc
CFLAGS=-pthread -g -o
all: dotprod_mutex dotprod_serial
dotprod_mutex: dotprod_mutex.c
$(CC) $(CFLAGS) dotprod_mutex dotprod_mutex.c
dotprod_serial: dotprod_serial.c
$(CC) $(CFLAGS) dotprod_serial dotprod_serial.c
Usual method of applying mathematics to variables is
a * b
Is it able to calculate and manipulate two operands like this?
a = input('enter a value')
b = input('enter a value')
op = raw_input('enter a operand')
then how do i connect op and two variables a and b?? i know i can compare op to +, -, %, $ and then assign and compute....
but can i do something like a op b ,
how to tell compiler that op is an operator?? any tweaks possible?
On my Win7 PC I have a couple of virtual network adaptors that are used for VMWare server.
My HttpWebRequest times out when I have these adaptors enabled. Should I really have to tell it which adaptor to bind to?
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url.AbsoluteUri + "etc.txt");
request.Timeout = 2000;
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
{
using (StreamReader reader = new StreamReader(response.GetResponseStream()))
{
return reader.ReadToEnd();
}
}
I'm a software programmer who works on java, php.
However, yesterday i got an offer from a company in Business Intelligence. The HR said the job would be in the "implementation" part. Can someone please clarify if this means reporting ?
Is a reporting job challenging for a programmer ? I mean, can someone please tell me what all this would include ?
1) If I set HorizontalAlign property inside GridView’s ItemStyle tag:
<ItemStyle HorizontalAlign="Left" />
then Visual Studion will render this property as <td align=”center”>
a) Is there a way to tell Visual Studio to instead render HorizonatalAlign property as a style rule :
<td style=”text-align:center;” ... >
thanx
Hi,
In blackberry, we use a timeout to get the location, so that if it doesnt retun location in that much time period, we get to know. But in Android, there is no concept of timeout, can anyone please tell the alternative, that we can find out that after this much time there is no location update from GPS.
Thanks
I'd like to determine if my web app is read-heavy, write-heavy, or somewhere in between. I could take a guess, but I want proof.
Is there a query I could run in Sql Server 2005 that would tell me the overall read/write ratio? Are there any caveats I should be aware of?
Perhaps it can be found in a DMV query, or the Performance Dashboard, or examining a Sql Profiler trace. I'm not sure exactly how.
I'm reading the getting started guide of sproutcore, about the Todo app.
Around the beginning they tell to instantiate a controller from the SC.arrayProxy class.
But this class is not present in the docs!!! and even in google is nowhere to be found!
where does it come out from??
EDIT:
I discovered that SC.arrayProxy is only in sproutcore 2! I wonder what are the differences from SC.arrayController
Hi,
Can someone who uses CJ's Commission Detail Service (REST) tell me what a sample XML response is for this query.
None of CJ's Web Services documentation indicates exactly how the XML is formatted and as I don't have any commission payments yet I can only guess the result.
i have made a program in C using the gcc compiler. Right now it has no GUI components. So, I am basically compiling it with makefile and running it in the terminal. I need to deploy it so that the executable is standalone. So, basically I want the executable to have an icon and when clicked start the program in the terminal. Can anyone tell me how to do this?
Please state if you are developing on the front end, back end, or if you are developing a mobile/desktop application.
List your development stack
Language, IDE, etc..
Unit Testing or no Unit Testing
Be sure to include any AOP frameworks if used.
Tell me if it is easier for you to use debugging or to using logging during development, and why you feel it is easier.
I'm just trying to get a feel for why people choose debugging or logging based on their development stack.
I have bunch of flash videos and am adding my brand to all of them. The problem is quality gets worse. I am doing with this command: ffmpeg -i /input.flv -vhook "/usr/loca/vhook/drawtext.so -f /usr/share/fonts/somefont.ttf -x 5 -y 5 t MyBrand" -f flv -s 320x240 - | flvtools2 -U stdin /output.flv
Please tell me what I am doing wrong. I need the same quality.
Can you please tell me how can I setup cscope with aquamacs on MacOS?
I have followed a link from Google saying how to build a cscope database for my source code. But how can I invoke cscope with aquamacs?
Thank you.