Hi
I have read about the select algorithm and I have a question maybe it looks silly!!! but why we consider the array as groups of 5 elements ?? can we consider it with 7 or 3 elements??thanks
This is probably a silly question, but here it goes.Imagine you have the following classes:
public class C
{
}
public class D : C
{
//A subclass of C
}
public class A
{
C argument;
}
Now, I want to have a class B, that inherits from A.This class would obviously inherit the "argument" field, but I wish to force the "argument" field in B to be of type D, rather than C.Since D inherits from C this shouldn't create any problems.
So, how would achieve this in c# ?
I know it might be silly, I have just started with WPF.
I want to switch to a different view when a user clicks on a control, for example showing a detail page after a click on a list. This view would replace the original.
In a web application this would be navigating to a different page. What is the local idiom for that?
I need to insert mutiple data in the field and then to retrieve it as an array.
For example I need to insert "99999" into table item_details , field item_number, and the following data into field bidders associated with item_number :
userx
usery
userz
Can you please let me know what sql query should I use to insert the info and what query to retrieve it ?
I know that this may be a silly question but I just can't figure it out .
thank you in advance,
Michael .
I know this is probably a silly question.. When would I need to write my own iterator? Is it just when designing my own container class? Are there any other times when I would want to create my own iterator?
Examples would be appropriated.
-Jon
how can I get the current time in hh:mm format? I need to be able to tell between AM and PM and compare between the current time and a second time as well. I'm sure it's a silly function but i can't seem to figure it out.
Sorry for this silly question, but is there any way to restrict using directives to the current file so that they don't propagate to the files that #include this file?
I have this silly argument with a friend and need a authoritative word on it.
I have these two snippet and want to know which one is faster ? [A or B]
(assuming that compiler does not optimize anything)
[A]
if ( foo () );
[B]
int t = foo ();
if ( t )
I have a bunch of (50+) XML files in a directory that I would like to insert into a SQL server 2008 table.
How can I create a SQL script from the command prompt or Powershell that will let me insert the files into a simple table with the following schema:
XMLDataFiles (
xmlFileName varchar(255)
, content xml
)
All I need is for something to generate a script with a bunch of insert statements. Right now, I'm contemplating writing a silly little .NET console app to write the SQL script.
Thanks.
If I have a function like the following:
function catchUndefinedFunctionCall( name, arguments )
{
alert( name + ' is not defined' );
}
and I do something silly like
foo( 'bar' );
when foo isn't defined, is there some way I can have my catch function called, with name being 'foo' and arguments being an array containing 'bar'?
This silly scripting language doesn't have a % or Mod(). I do have a Fix() that chops off the decimal part of a number. I only need positive results, so don't get too robust.
how do people view encrypted pictures like on this wiki page? is there a special program to do it, or did someone decide to do some silly xor just make a point about ECB? im not a graphics person, so if there are programs to view encrypted pictures, what are they?
Silly question, but why does the following line compile?
int[] i = new int[] {1,};
As you can see, I haven't entered in the second element and left a comma there. Still compiles even though you would expect it not to.
Is there any way by which I can attach the back button of my browser to any particular link?
Actually I am designing a login page in PHP. After login I want the back button of my browser to open any particular page that I want, how can I do that in PHP?
Actually I am not a PHP guy, so my question might sound silly to some. :P
Hi,
I have done something quite silly and not sure how to fix it.
I modified some of the gnome keyboard short cuts and was trying to disable the "Run Application" command. In the process I assigned it to the delete key and every time I hit delete the "Run Application" window comes up.
It would not normally be a problem but the "Keyboard Shortcuts" no long has the short cut in the window so I can't disable it.
Any help advice would be appreciated.
Cheers
Ben
using visual studio 2008 Asp.net HTML Designer
Howdy,
Silly question but im using the HTML desinger in vs2008 to produce a ASP.net webform page, and i cant seem to find a way to select/group multiple controls with the mouse and move them all about the page in one group to keep them all aligned.
I can select multiple controls with cntrl/click combo, and use the align options, but once they are selected i cannot move them aroound the webform as a group
any advice appreciated
I am trying to use facebook API and some functions/objects used in tutorials are NOT defined in facebook.php (downloaded from github.com).
Am I so silly or is there some other think I should know?
Thanks for help,
Roman
Hello.
I know i am asking a silly question, the thing is I wanted to do a project where i am thinking to build a database with a front end using .net or c#. I am totally new to these languages. I thought posting here would give many experts advice. Can anyone tell me which book to prefer for it? (I would be glad if the book was a pdf online )
Thank you.
You know, I think I have to check current user in the model callbacks (like before_update). Rather than rely solely on adding where ('something.user_id = ?', 'current_user.id') in the controllers. I need something like Thread.CurrentPrincipal in .NET
Is it safe to put reference to current user in User model? I'm sorry I don't really understand how it works under the hood yet.
Or how you do it The Rails way?
Sorry if this a silly question.
Guys I know this question is silly but just to make sure:
Having in my class method:
boolean equal(Document d)
{
//do something
}
I'm overloading this method nor overriding right? I know that this or similiar question will be on upcoming egzam and would be stupid to not get points for such a simple mistake;
A silly question, perhaps, but at this time of night, StackOverFlow is my only friend.
I'm playing with NHibernate and wanted to factualize these 2 statements regarding Sessions in web applications.
1) You should only ever have 1 ISessionFactory per database for the lifecycle of an application.
2) You should only have 1 ISession per HttpRequest or batch of HttpRequests (i.e. conversation)
[I don't want tool or framework recommendation, just want to confirm the above]
I have a bunch of (50+) XML files in a directory that I would like to insert into a SQL server 2008 table.
How can I create a SQL script from the command prompt or Powershell that will let me insert the files into a simple table with the following schema:
XMLDataFiles (
xmlFileName varchar(255)
, content xml
)
All I need is for something to generate a script with a bunch of insert statements. Right now, I'm contemplating writing a silly little .NET console app to write the SQL script.
Thanks.
Of course, by 'advanced' I mean here just something beyond what every programmer does know. I'm currently more-or-less comfortable with the basics and want to understand the most important, most elegant and most practically applicable achievements of modern type theory.
I just do not have much time, desire and mental powers to study all the formalistics more thoroughly and that may change in the future. But there is something really attractive for me in that branch, that just forces to ask silly questions like this :)
Thank you very much!