instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm trying to write a script that when clicked will add a couple of entries to the PATH Environment variable in Windows, instead of making the changes manually. I see .bat files being used all the time on Windows for a variety of reasons, so can a .bat script help me with something like that?
I actually need to downlo... | stackexchange/codereview |
I have updated my url pattern from:
(r'^(?P<slug>[-\w]+)/$', 'bugs.views.bug_detail'),
to
(r'^issue/(?P<id>[0-9]+)/(?P<slug>[-\w]+)/$', 'bugs.views.bug_detail'),
So I'm now relying on the primary key in the URL since the slug can change at any time. I have about 40-50 links that I need to 301 to spiders/crawlers.
Wha... | stackexchange/codereview |
I've been using the IPreUpdateEventListener for auditing entities, in particular using the FindDirty method to find the changed properties:
public bool OnPreUpdate(PreUpdateEvent updateEvent)
{
int[] dirtyFieldIndices = updateEvent.Persister.FindDirty(updateEvent.State, updateEvent.OldState, updateEvent.Entity, up... | stackexchange/codereview |
I have a folder with some sql files that I would like to be processed as PHP and I would like the output to be text/plain. I can force sql files to be processed by PHP like this:
<FilesMatch "\.sql$">
ForceType application/x-httpd-php
</FilesMatch>
Is there a way I can set the default content-type when these files... | stackexchange/codereview |
I have a git repo that has about 3 or 4 months worth of code. Is there a way to tell git to stop tracking files before a certain commit?
| stackexchange/codereview |
I've got a hypothetical Reseller who can supply some Services; all Services are same: they threat some IRequest data, plus some IExtraData, and provide an IResponse.
Please read this code (working on C# 2.0):
public interface IResellerService<in TIn, in TInExtra, out TOut, in TOutExtra>
where TIn : IRequest
... | stackexchange/codereview |
Possible Duplicate:
Activity restart on rotation Android
I connect to i ip-cam with thread. When I rotate screen, activity restart and new thread restart?? I only want to set ImageView fullscreen when ı rotate... How can I stop activity-restart???
public class ViewCam extends Activity implements OnClickListener {
p... | stackexchange/codereview |
What are the best practices/guidelines for writing test suite for C++ projects?
| stackexchange/codereview |
I have some files, which are embedded in a resource. How can I save these files on disk via C#?
| stackexchange/codereview |
I have a user control with a property of type List<Something>:
Private p_myList As New List(Of Guid)
Public Property MyList() As List(Of Guid)
Get
Return p_myList
End Get
Set(ByVal value As List(Of Guid))
If value Is Nothing Then Throw New ArgumentNullException()
p_myList = value
... | stackexchange/codereview |
I have written a custom scrollbar class in javascript for use in a "freezepane" structure.
Performance in most browsers (including IE6!!!) is good. But in firefox 3.6 (beta 4 is fine) it is very jerky.
When the scrollbar is moved, the onmousemove event calculates a position then sends the new position to a callback tha... | stackexchange/codereview |
I would like to have my own caption bar and therefore I am using basically a panel (Name: pnCaption) and remove the original caption bar in CreateParams. But the ability to move the window by MouseDown-MouseMove in the new panel is a problem.
Normally you would use the NCHITTEST message. BUT this isn't signaled if the ... | stackexchange/codereview |
For example I have an XML structure as follws:
<element1>
<element 2 name = "Blah" value = "Something">
<element 3 name = "Blah" type = "Something">
<element 3 name = "Woo" type = "Wibble">
<element 4 name = "Hello">
<element 4 name = "Goodbye">
</element4>
</element3>
<element2>
</ele... | stackexchange/codereview |
In my installation the users login with Shibboleth [1], but the rule [2] I've set up to be executed on "User has logged in" event, isn't executed.
On the other hand, when I login as administrator through the normal Drupal way, the rule is executed.
Does this mean that the external login event isn't handled at all?
Is t... | stackexchange/codereview |
I need to load the Recaptcha library on demand, with javascript (using Prototype):
var captcha = new Element('script', { type: 'text/javascript', src: 'http://api.recaptcha.net/js/recaptcha_ajax.js' });
$$('head')[0].appendChild(captcha);
captcha.onload = function()
{
Recaptcha.create("dsfahsldkjfhlasdjfc","recaptcha... | stackexchange/codereview |
does Visual Studio 2010 not have a "join lines" keyboard shortcut?
EDIT - That is when on line X anywhere, I hit a shortcut key once, and then line X+1 joins to line X (eliminating CR between them so to speak)
| stackexchange/codereview |
Hey, This is just a simple exercise from class that I decided to have a go at putting an exception in. According to the book input for this problem is supposed to be in the following format: APRIL 19, 2009 What I'm trying to do with my exception is make sure the user(whoever grades it) follows those parameters so my pr... | stackexchange/codereview |
So, I've got a table structure in SQL Server 2005 that has the following composite primary keys:
Id int
Culture char(5) (eg: en-US, en-GB etc...)
Created datetime
The User table has PrimaryCulture and SecondaryCulture columns representing the users language preferences. The Application table contains a single Culture... | stackexchange/codereview |
I'm using SQL Server 2005 and I want to synchronize two tables which have the same definition but exist in different databases. MERGE INTO only exists in 2008 and I'd prefer a syntax where I don't have to specify columns in the UPDATE. So I stumbled upon various posts using the following syntax:
UPDATE Destination FROM... | stackexchange/codereview |
Similar to a question posted here, am looking
for a solution in Java.
That is, how to find the index of nth occurrence of a character/string from a string?
Example: "/folder1/folder2/folder3/".
In this case, if I ask for 3rd occurrence of slash (/), it appears before folder3, and I expect to return this index position... | stackexchange/codereview |
I'm absolutely sure this will be a trivial, newbie question, but hey - what's stackoverflow for?
I want to make use of the jQueryUI Spinner; and I'd like to grab the required files from Google. I have the following in my <head>:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js" type="text/ja... | stackexchange/codereview |
I create new process from a java code using ProcessBuilder
ProcessBuilder builder = new ProcessBuilder("/path/to/bin");
Process process = builder.start();
In this case, I am not interested in seeing error/output. Is it necessary to grab OutputStream and ErrorStream? Is it automatically ignored?
Output may be large (... | stackexchange/codereview |
I want to convert a floating point value to its integer representation. As this will be used in comparisons, the default rounding mode (round_to_nearest) is not appropriate for me. As far as I know I can't specify the rounding mode to the FPU in a C++ standard compliant way (not even in C++0x). What are the other ways ... | stackexchange/codereview |
I am looking for a Ruby gem or library that does logarithmic regression (curve fitting to a logarithmic equation). I've tried statsample (http://ruby-statsample.rubyforge.org/), but it doesn't seem to have what I'm looking for. Anybody have any suggestions?
| stackexchange/codereview |
My .jrxml file contains 2 text and one param
Following is my java code for jasper report, When i run the code it creates pdf file but it is always empty any help ?
public class TestReport {
public static void runReport(String reportFile) {
try{
Map parameters = new HashMap();
pa... | stackexchange/codereview |
I have two collections of objects (List list1 and List list2). There is a property on each called "ID". I know that list2 will always have more items than list1, I just need an easy way to get a collection of all the items that exist in list2 but not list1 using LINQ lambda expressions.
| stackexchange/codereview |
Page x creates a pop-up window (page y). When page y is closed, I need an event to trigger on page x.
Any help is appreciated. Thanks.
| stackexchange/codereview |
I am having some difficulty accessing my svn repository. Cannot browse the repository, do updates and/or commits, basically nothing can be done. I get "can't open file /format permission denied" error.
Other users are able to perform all operations normally. Is there a way some logging can be enabled to figure out what... | stackexchange/codereview |
We have a c dll that was written years ago to call symantec's virus scanner, carrier scan. Well it doesn't run on windows 64 and I have to get a new version up and running. I found some code here - http://vaibhavkulkarni.wordpress.com/2007/11/19/a-icap-client-code-in-c-to-virus-scan-a-file-using-symantec-scan-server ... | stackexchange/codereview |
I'm looking for a tool that will assist in the conversion from SSRS to Crystal. I've found numerous tools that will go the other way (From Crystal to SSRS), but none that will work for my specific need.
| stackexchange/codereview |
I had previously a mailer set up to send me emails to all user accounts. But now I'm trying to debug it. So I gutted it out completely and it still sends emails to me.
I have absolutely no reasoning or understanding as to why. Insanity! :D
controller
def org_blast_send
Delayed::Job.enqueue OrgBlast.new(params[:subje... | stackexchange/codereview |
does someone had an similar issue with maven and jetty, that jetty is run with an old war althought mvn clean is run.
My pom uses failsafe to start jetty with mvn verify.
| stackexchange/codereview |
Tom Kyte suggests to use EXTRACT to get the difference:
extract( day from (x-y) )*24*60*60+
extract( hour from (x-y) )*60*60+
...
This seems to be harder to read and slower than this, for example:
( CAST( x AS DATE ) - CAST( y AS DATE ) ) * 86400
So, what is the way to get the difference between two Timestamps in se... | stackexchange/codereview |
Actually I have two different version of JAR like java1.4 and java1.5. I need both but at runtime means when my server start I want to load the specific type of JAR. Please give me some code to resolve this issue. I am using WebSphere Application Server 6.1
| stackexchange/codereview |
I am writing a remote service for an application using WCF, in which login information is kept in a database. The service requires session establishment through a login or account creation call. There is no ASP involved.
Now, when a client starts a session by calling an exposed IsInitiating method, I check the account ... | stackexchange/codereview |
When dealing with .vimrc configuration files in Linux and Windows (two systems I've been using so far) and trying to keep configurations cross-platform, I've found mainly two solutions:
Create a new folder for vim files in /home/user, so both systems have the same vim dirname (instead of default .vim in linux and vimf... | stackexchange/codereview |
Your user wants a report sorted by date. This report is being created using C# and ODP.NET
You do a sort on the Date column and the output is not exactly what the user expected.
Upon some closer inspection, you find that the date column is a varchar2 field.
The values in the column are stored in DD-MON-YY "01-JAN-10" ... | stackexchange/codereview |
I create a Flex application that works with a browser using a database with the MySQL server that I can create, modify and delete data from a database.
The problem I encounter now is that I want to see my program with Adobe AIR (virtual machine). At the display that does not pose a problem. The problem is that air can ... | stackexchange/codereview |
I'm developing a classified ads site which will have display same sidebar on almost every page. A list of categories which are fetched from the database.
I find myself duplicating the same code in each controller to do this. i.e.
before_filter :load_categories
Where :load_categories performs a simple
private
def loa... | stackexchange/codereview |
In SQL Server, how can I get the referenced table + column name from a foreign key?
Note: Not the table/column where the key is in, but the key it refers to.
Example:
When the key [FA_MDT_ID] in table [T_ALV_Ref_FilterDisplay].
refers to [T_AP_Ref_Customer].[MDT_ID]
such as when creating a constraint like this:
ALTER T... | stackexchange/codereview |
If I have a type with a big-old (lots of params) constructor, is it a valid approach to implement a protected parameterless constructor simply for the purposes of creating a derived "Fake" type to use for stubbing in unit tests?
The alternative is to extract an interface, but this is not always desireable in a codebase... | stackexchange/codereview |
I have a Gmail account. I.e., myemail@gmail.com.
I have associated my website email to it. I.e., contact@mydomain.com
Is it possible to use PHPMailer to send email via Gmail (for reliability, less likely to get flagged as spam, etc.), but have "contact@mydomain.com" as my sent email?
I'm using the code found here:
Send... | stackexchange/codereview |
We have found a problem on our application (a select query that join too much tables). The solution of this problem is to set fetch="select" on the <join> tag in our hibernate mapping file.
<subclass extends="...">
<join table="MyTable" fetch="select">
...
</join>
</subclass>
But this mapping is generated by ... | stackexchange/codereview |
There are some css properties that can only(as far as I know) be modified as a set of values, like text-shadow (text-shadow:<xOffset> <yOffset> <radius> <color>;). I've seen some referred to as shorthand values, even though I've never seen the longer syntax version.
So, in a nutshell I'd like to modify individual parts... | stackexchange/codereview |
Here is the complete workflow:
Initialize the repository and the workspace
$ fossil new repo.fossil
$ mkdir workspace
$ cd workspace
$ fossil open ../repo.fossil
Add an image file to the repository
$ fossil add image.jpg
$ fossil commit -m "added image.jpg"
Start fossil server:
$ fossil server
Open the web interface... | stackexchange/codereview |
I have a longtext in my db where i have some special chars like Ã
How i can convert it to "à"? I've tried using utf8_encode and _decode but it seems not work.
Document charset is utf8, and longtext field too.
| stackexchange/codereview |
I want to use Git and Github for the development of a project. But college requisites says that I must use a SVN repo of their own.
I think it should be possible to develop using Git–Github and use the SVN as a mirror of the Git Repo. Nobody will commit directly to the SVN repo, only to the git repo.
My question is, H... | stackexchange/codereview |
(In the application start up event, I added my main view to app's Window in the following codes:
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
MyViewController* vc = [[MyViewControll... | stackexchange/codereview |
I'm using Ubuntu 10.10
So that's what I did.
Hello.java:
class Hello {
public native void sayHello();
static { System.loadLibrary("hellolib"); }
public static void main(String[] args){
Hello h = new Hello();
h.sayHello();
}
}
Then I ran the follwing com... | stackexchange/codereview |
How can I configure a schedule intervals:
@Schedule(persistent=true, minute="*", second="*/5", hour="*")
outside of the application code?
How can I configure it in ejb-jar.xml?
Can I configure it outside the application (kind of properties file)?
| stackexchange/codereview |
I have just started using WPF. I'm getting my head around styling system since. I come from a CSS background and I would like to set margin in percentage.
<Style TargetType="TextBlock" x:Key="workflowNameTextBlock">
<Setter Property="Margin" Value="50"/>
</Style>
Currently value... | stackexchange/codereview |
I have a table logging web page hits. Something like: {VisitId, VisitorId, Url, Date}
(The visitor ID is a GUID stored in a cookie)
I would like to create a Visitor object that has a collection of Visit objects.
class Visitor {
public virtual Guid VisitorId { get; set; }
public virtual IList<Visit> Visits { get; se... | stackexchange/codereview |
I have a C# class with overloaded static methods like these:
// Added to the Simple class in Tutorial\Extend\csextend.cs
public static int Foo(IEnumerable<int> values)
{
return 1;
}
public static int Foo(IEnumerable<string> values)
{
return 2;
}
I get an error when I try to call these from IronPython 2.6. I a... | stackexchange/codereview |
Ok I admit it, I'm a total C++ noob.
I was checking the book Data Structures and algorithms in C++ by Adam Drozdek, in the section 1.5 : "Polymorphism" he proposes the next example:
class Class1
{
public:
virtual void f()
{
cout << "Function f() in Class1" << endl;
}
void g()
{
cout... | stackexchange/codereview |
We have many old snapshot views lying around and I need to find out when these snapshot views were created.
There is a twist - we are no longer running ClearCase and the hardware we used to run it is no longer around. However, we still have all the files used internally by ClearCase still lying around, so I can go t... | stackexchange/codereview |
I am creating an extension of ItemizedOverlay. When a user taps a pin on the map (onTap) I want to display a RelativeLayout, which is included in the same .xml file as the map. When the RelativeLayout is visable, it covers the map.
Since this view is the context for the main class, I do not know how to access the view... | stackexchange/codereview |
In ruby I frequently use File.expand_path(File.dirname(__FILE__)) for loading config files or files with test data. Right now I'm trying to load some html files for a test in my clojure app and I can't figure out how to do it without hard coding the full path to the file.
edit:
I'm using leinigen if that helps in any ... | stackexchange/codereview |
New to MVC so forgive me if the terminology is a little off.
I'm using ASP.NET MVC3 beta and VS 2010.
I'm not sure if this is an error of concept, of syntax, or what.
Essentally, what I'd like to do is, for _layout.cshtml, I would like to include the jQuery script for any Controller whose ActionResult sets ViewModel.U... | stackexchange/codereview |
Not sure if this makes sense but:
I have a form with a number of TableAdapters attached (bound in VS).
Depending on user selection, a DataTable is filled by one of the TableAdapters and passed to another form for display/Edit in a DataGridView. How do I then persist any changes to the DataTable back to the database?
I... | stackexchange/codereview |
I'm getting started in Python programming. I'm reading a basic tutorial, but this point is not very clear to me. I would appreciate any help you can give me.
| stackexchange/codereview |
I have 2 list objects, one is just a list of ints, the other is a list of objects but the objects has an ID property.
What i want to do is sort the list of objects by its ID in the same sort order as the list of ints.
Ive been playing around for a while now trying to get it working, so far no joy,
Here is what i have s... | stackexchange/codereview |
I have a jsTree with checkboxes that shows up just fine. I can open
and close the nodes, check and uncheck the checkboxes, etc.
The problem comes in when I try to get all the nodes that have been
checked. Below I list all the ways I have tried, along with the error
messages I get when I try each one.
$.tree.plugin.chec... | stackexchange/codereview |
I heard of yet another way to do the share button, which is on
http://www.facebook.com/share/
It include this Javascript file:
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
Is it compatible with the old and new Facebook Javascript SDK too?
| stackexchange/codereview |
Is it possible or How can i give a type to a FlashMessage in Zend?
For example
/* This is a "Success" message */
$this -> _helper -> FlashMessenger('You are successfully created a post.');
/* This is an "Error" message */
$this -> _helper -> FlashMessenger('There is an error while creating post.');
/* This is just ... | stackexchange/codereview |
I understand there is a select_Year but i can't figure out how to use it:
= f.select_year("dob", :start_year => DateTime.now.year, :end_year => DateTime.now.year - 100 )
This is incorrect..how would you actually write this? My attribute is :dob
| stackexchange/codereview |
I'll release an app in a few days, but one thing I wonder is this:
1) How and when do I get that special link to the App Store?
2) Any way to set up that badge shortly after submitting the app? Or must I first wait until it's approved and published on the store, then search for it on iTunes and then copy the link?
| stackexchange/codereview |
I have a small form with a checkbox and a couple text fields in an update panel. When the user checks the checkbox the text fields are prepopulated with values. When the user unchecks the checkbox, the text fields are cleared. The update panel updates when the user clicks the check box
I've also added a small javascrip... | stackexchange/codereview |
The following Regular Expression (url) pattern doesn't match the named group :
^/(.+?)/(.+)?(_p(?<Page>\d+))?
I don't know why this doesn't work in optional block:
?()?
What's the problem with this pattern and how can i get the correct result?
| stackexchange/codereview |
I was recently going over a coding problem I was having and someone looking at the code said that subclassing list was bad (my problem was unrelated to that class). He said that you shouldn't do it and that it came with a bunch of bad side effects. Is this true?
I'm asking if list is generally bad to subclass and if so... | stackexchange/codereview |
I've got a timer that won't trigger the associated function when the time runs out. I did set a Tick event. I set the Interval property to 12000 and I did myTimerObject.Start();.
I did however set off this timer in a seperate thread (somewhere in a BackgroundWorker). My theory is that even though the timer seems to sta... | stackexchange/codereview |
Curious to know if any has been because googling didnot helped much.
Thanks
| stackexchange/codereview |
I have a asp.net 4.0 web site and I'm using some external web services to retrieve some data that I display.
I have created proxies for those web services using the wsdl tool. I'm setting an url and I'm setting PreAuthenticate = true and Credentials = new System.Net.NetworkCredentials(userName, password) on the web se... | stackexchange/codereview |
For example, std::vector<int&> vec_int; this seems to be invalid in c++. Why is this invalid?
| stackexchange/codereview |
If I dismiss the the modal VC and present it (or another one) again in less than a certain amount of time, it does not appear.
Am I missing something?
| stackexchange/codereview |
Do we have Activator.CreateInstance available in DotNet 3.5 ?
| stackexchange/codereview |
The embedded ruby code in my view is...
<p id="notice"><%= notice %></p>
but when the URL reads...
http://0.0.0.0:3000/projects/3?notice=Project+was+successfully+created
the generated HTML is...
<p id="notice"></p>
I'm expecting it to read...
<p id="notice">Project was successfully created</p>
What gives?
EDIT: ... | stackexchange/codereview |
this is my first time doing a gallery of videos using ASP.NET,
I believe there are many articles on the net regarding this, but I would like to see some recommendation and different point of view :
what are the tools used?
how to not allow user to download a video?
what the difference between vimeo,dimecasts.net choic... | stackexchange/codereview |
I have a custom Swing component called NavigationLink which extends JLabel and implements a key event listener like so:
addKeyListener(new KeyAdapter() {
public void keyReleased(KeyEvent e) {
boolean actionInvoked = e.getKeyCode() == KeyEvent.VK_ENTER || e.getKeyCode() == KeyEvent.VK_SPACE;
if (acti... | stackexchange/codereview |
I want to start using modular CSS, but I'm having trouble figuring out the best way to implement it. I was thinking I could just use a bridging technique, where I have one in my HTML and then @import statements for each module. While I like the simplicity of that method, I'm concerned about the negative effects it has... | stackexchange/codereview |
Is there anyway to display a progress while downloading a file from ftp in order to show the download progress status ?
Thank you.
| stackexchange/codereview |
Given the input from a free-form search field, I need to query the LDAP system and return user records. Our LDAP schema includes a "preferredName". Possible valid inputs include: "LastName", "GivenName", "PreferredName LastName", "LastName, PreferredName", "GivenName LastName", etc., including such variations as multip... | stackexchange/codereview |
What challenges in shared memory parallel programming (particularly multicore) cannot be solved or cannot be solved efficiently using a Cilk-style solution (i.e. nested data parallelism with per-core work stealing task deques)?
| stackexchange/codereview |
I have following query
Select
a,b,c,
case totalcount
when 0 then 0
else abcd/totalcount
end AS 'd',
case totalcount
when 0 then 0
else defg/totalcount
end AS 'e'
From
Table1
In this query, I have same case statement in... | stackexchange/codereview |
I am looking out for possible end users of virtualization tools like VM Ware or Hyper V etc.
Couple of groups I could think of are Developers, Corporate customers. I could not think of more because I have very very limited knowledge in virtualization.
Does virtualization need any OS support? Say I have to use a virtual... | stackexchange/codereview |
I'm using Axis2 1.5.2 to pass Dates between client/server. But when using java.util.Date Axis2 throws this error:
date string can not be less than 19 characters.
Anyone knows a workaround or how to fix it?
| stackexchange/codereview |
ok say we have
<span class="foo">7</span>
<span class="foo">2</span>
<span class="foo">9</span>
and want to apply a css class of 'highest' to 'span.foo'.text > 7
and css class of medium to values > 4 and <= 7
and css class of lowest to <= 4
example of desired result:
<span class="foo medium">7</span>
<span class="foo... | stackexchange/codereview |
What problem(s) does Apache Maven solve? Am I correct in thinking that it basically solves (prevents even) versioning nightmares on external third party .DLLs. Any examples of how it would help in this? DOes it also help in any way, with inter-project (or package in Java) dependencies?
Finally, is it basically a build ... | stackexchange/codereview |
I'm working on a hybrid data structure that is an ordered double-linked list where each node contains an array[] of SIZE. My difficulty is the add method.
Using unit testing provided by the professor, a test string is broken up into individual characters and added to the list using a provided comparator. The default ... | stackexchange/codereview |
A couple of questions:
I've never really used JS listeners other than onclick and onkey events, so I wondered if someone could help me with what I need in order to reload the page every X seconds?
Secondly, the page contains bare minimum, literally just one input box. Do I still need to include the html head and body?... | stackexchange/codereview |
I recently upgraded a project to Grails 1.3.5. This deleted everything in the /lib dir, though the project continues to work, so I guess the way dependencies are specified (and the location they're stored) has changed. I want to remove some libs that I'm no longer using, but can't do this until I find where the depende... | stackexchange/codereview |
I've downloaded Jboss jboss-5.0.0.CR2-jdk6.zip file and extracted the zip. Then I've set system variable JBOSS_HOME=F:\jboss-5.0.0.CR2. When I'm trying to run the jboss by double click on run.bat it executes for a while and then windows are automatically closed. If I run the run.bat file from command prompt it shows th... | stackexchange/codereview |
i get 2 linker errors when trying to compile my program which includes these two files (causing the problem, in particular the lines in bold)
and i'm new to C++ so excuse my ignorance.
Assignment1.obj : error LNK2001: unresolved external symbol "public: class Vector __thiscall Vector::operator^(class Vector)" (??TVecto... | stackexchange/codereview |
i have a problem with my gridview contains a textbox to set a date.
<asp:gridview ID="Gridview1" runat="server" AllowPaging="True"
AutoGenerateColumns="False"
DataSourceID="AccessDataSource1" CellPadding="8" ForeColor="#333333"
GridLines="None" CellSpacing="5" Height="361px" Width... | stackexchange/codereview |
When i execute it in firefox mozila than this code is working well (in case of register user) but when we try it in IE (iternet explorer 8) then alert("sorry u must have to login first"); this message is comming. ( in both cases as register or gest).
Another thing: for gest user returning data from server is null. me... | stackexchange/codereview |
I have a string with roughly 2k URLs embedded in it and need help with regular expression pattern to extract the URLs.
Example of string with URLs embedded
"blahblahblah;http://subdomain.server.com/index.asp?id=1000;blahblahblah;"
The URL will always begin with "http://subdomain.server.com/" and end with the first ";... | stackexchange/codereview |
I have two similar functions I hope to refactor to remove duplication:
IEnumerable<TotalType> GetTotalForMonths(string id, DateTime lastTotalDate)
{
for (int i = 0; lastTotalDate.AddMonths(i + 1) <= DateTime.Now; i++)
{
var totalStartDate = new DateTime(lastTotalDate.AddMonths(i).Year, lastTotalDate.Add... | stackexchange/codereview |
So my site's main page display's applications for a PMP. Users can rate these apps with 'Like', 'Dislike', or 'Neutral/None' (every app is rated Neutral/None by default.)
On the main page I wanted to list the games by the highest difference (So it would take the total Like's and Dislike's then add them together.) I'm h... | stackexchange/codereview |
I am trying to set up my routes for the will paginate plugin so I don't have ?page=1 at the end of the url, and so I can later try to use page caching.
I've been browsing around online and I found a few tutorials explain to use map.connect, however, I am having trouble getting it to work with my application.
Here's an ... | stackexchange/codereview |
I have a tab control, and a few tab items. I am successfully listening to the SelectionChanged event, and checking if the tab I'm interested in is the currently selected one.
I'm using this code (below), and stepping through the debugger, I can see that my branching logic works as designed; however, the issue I'm havin... | stackexchange/codereview |
I'm trying to migrate my solution (an ASP.NET web app with about a dozen dependent assemblies) to VS 2010 and am hitting some new build errors.
Error 909 Running transformation: System.IO.DirectoryNotFoundException:
Could not find a part of the path 'c:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\Som... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.