instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I've got a file that is a binary java file that was compiled using a proprietary program. I've tried to open this up in some of the standard decompilers but they will not recognize it.
I suspect it's because some specific proprietary headers have been added, based on looking at the file in a hex editor. Is there any w... | stackexchange/codereview |
I have web app that does periodic scan operations, and on a specific page, shows the status of those operations (and any previously-completed ones). I have an Ajax request that I send using jQuery, and it returns the same page I'm currently on, modified given a time variable (last updated) to include just the running ... | stackexchange/codereview |
I am working on a Java project which makes heavy use of Observer pattern to make sure every data object state is up to date. I grew tired of maintaining this mess and am trying to implement a solution that would decouple the terrors of Observer pattern from my precious data objects.
I was able to abstract away the det... | stackexchange/codereview |
I'm using Mercurial on Win32 (Server 03). I'd like to copy a Subversion repo on my local drive to a Mercurial repo on my local drive so that I can test the merging abilities of mercurial vs subversion.
Is hg convert the right command to use?
After I do this:
"c:\Program Files\TortoiseHg\hg.exe" convert c:\dev\Subve... | stackexchange/codereview |
I have string which contains either A ,B, C, or D (example A123 or B235 or 2B35 but not AB123)
I want to find the index of A,B,C or D
In C # we write as
String s = "123B";
index = s.IndexOfAny(new char[] = {A,B,C,D});
How to write in Objective-C??
| stackexchange/codereview |
How could you detect when the user has rolled back the system date? The usage situation is to prevent circumventing licensing and the program will need to detect a roll back made that happened when it was not running.
| stackexchange/codereview |
This is the code of a nested master page in my project:
<%@ Master Language="C#" MasterPageFile="~/Presentation_Layer/Pages/home.Master" AutoEventWireup="true" CodeBehind="cmsNestedMasterPage.master.cs" Inherits="livetest.Presentation_Layer.Pages.cmsNestedMasterPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID=... | stackexchange/codereview |
Possible Duplicate:
Is there a performance difference between i++ and ++i in C++?
Can anybody explain me why ++i is faster then i++ when we want to increment integer value
I guess it might refer to any programming language.
| stackexchange/codereview |
quick question
Can you use the free() function without having to prior call a malloc ??
ei.
void someFunc( void )
{
char str[6] = {"Hello"};
//some processing here ....
free(str);
}
I get no compiling errors but Does this work or is it correct at all ?
Thank you,
| stackexchange/codereview |
The following profile maintains centering in the main browsers in OSX and WinXp. But is offset to the left in the iPad with the width shorten by the larger margin on the right.
.wrapper {
width: 900px;
margin-right: auto;
margin-left: auto;
position: relative;
border: 1px solid #9B9B9B;
}
<body>
<di... | stackexchange/codereview |
Currently my project delveoped in WPF with Framework 3.5 and I am planning to convertert from 3.5 to 4.0? Is there anything to be done to successfully convert from 3.5 to 4.0 or is it normal conversio procedure?. Is there any preformance degradation will be there in some controls?
| stackexchange/codereview |
How would you write a Parsing Expression Grammar in any of the following Parser Generators (PEG.js, Citrus, Treetop) which can handle Python/Haskell/CoffeScript style indentation:
Examples of a not-yet-existing programming language:
square x =
x * x
cube x =
x * square x
fib n =
if n <= 1
0
else
... | stackexchange/codereview |
I have a reporting tool that runs against an MS SQL Server using EF4. The general bulk of this report involves looping over around 5000 rows and then pulling numerous other rows for each one of these.
I pull the initial rows through one data context. The code that pulls the related rows involves using another data cont... | stackexchange/codereview |
I am new to java and i am having alot of problems trying to display images into my program.
I have placed the images in the proper map and have placed them into a array:
private Image[] images;
images = new Image[9];
images[0] = new ImageIcon("images/hang1.png").getImage();
images[1] = new ImageIcon("im... | stackexchange/codereview |
I have a model like this:
class User < ActiveRecord::Base
validates_length_of :name, :in => (2..5)
end
I want to test this validation:
it "should not allow too short name" do
u = User.new(:name => "a")
u.valid?
u.should have(1).error_on(:name)
end
But then it does not test which kind of error was set on name.... | stackexchange/codereview |
I have one asp.net application, in which i have one text box for entering home page url. By default this text box contains http://. If the user entered additional text rather than the existing text, it will make the validation. Otherwise leave it as it is. How it possible? Please help me by providing the regular expres... | stackexchange/codereview |
I need to build a local fake http server. It will listen all my http request and will decide which packet will be dropped or forward or delayed. Can I do that ? If I can how can I do it ?
| stackexchange/codereview |
I just got floored by a command from my manager, saying that in our newest version of our coldfusion 8 powered site, we would not be using any views.
He believes that what our contractor said with Coldfusion 8, that the performance benefit is minimal, and that it is very inconvenient to have to lookup the code for a v... | stackexchange/codereview |
I have created a java program which works with java I/O. I have implemented Serializable interface, but it still cause java.io.NotSerializableException on the following part of my code while I am trying to write objects into a file:
oos.writeObject(ep);
How it is possible while I am implementing serializable?... | stackexchange/codereview |
I am building a system that allows for an entry into the database (think user accounts if you want) to have an image associated with it. These will be small images and there won't be many of them.
I know the general pros/cons of using a BLOB and it doesn't seem like it will be a problem in this case. Security on this p... | stackexchange/codereview |
Is there a way to know when an entity is being initialized? It would be great if the Entity Framework supported the ISupportInitialize interface, but it doesn't appear to.
Basically what I'm trying to do is update a LastModified property when a certain other property is updated. However the OnXxxChanged function is ca... | stackexchange/codereview |
I am looking for a markdown parser, preferably Javascript, that I can customize. In particular, I would like to remove the option for using actual HTML tags.
I tried editing the source of showdown, but couldn't figure it out.
Jquery integration would also be nice, though not a must.
BTW, since I have started looking in... | stackexchange/codereview |
I'm using the following login form in my web app. It works fine in IE7, FF3.6 and Chrome7.0. Except for the fact that Chrome does not seem to recognize this form as a login form and therefore does not offer me to save the username/password. Both FF and IE do offer me to remember the username/password.
Here's the form:
... | stackexchange/codereview |
I need to get two fields from a database table (retrieved using linq-to-sql), one field is a datetime (and is a fixed field) and the other is always a decimal, but the field can be different.
The table holds currency data which is processed twice a day and in different currencies so could have fields such as AM_USD, PM... | stackexchange/codereview |
I have my minecraft_server.jar file as my source. I want to run that and take the output of it to my .jar application. How?
| stackexchange/codereview |
Consider this route in bootstrap.php...
Route::set('crud', 'staff/<controller>(/<action>(/<id>))', array(
'controller' => '(activities|users|default-emails)',
'action' => '(new|view|modify|delete)',
'id' => '\d+'
))->defaults(array(
'directory' => 'staff',
'action... | stackexchange/codereview |
Is it possible to POST data to JSONP? Or does all data have to be passed in the querystring as a GET request? any sample code.
thanks
| stackexchange/codereview |
UPDATE 2: http://htmlpurifier.org/phorum/read.php?3,5088,5113 Author has already identified the problem.
UPDATE: Issue appears to be exclusive to version 4.2.0. I have downgraded to 4.1.0 and it works. Thank you for all your help. Author of package notified.
I am scraping some pages like:
http://form.horseracing.betfai... | stackexchange/codereview |
I have the following code that fetches all the Windows Services running on a certain machine. If the machine is the one I am running, it works fine, but if its a remote machine, I get a 'Access Denied' exception because I am not passing in the username/password.
My question is, how/where can I pass in the username/pass... | stackexchange/codereview |
We have a Scala server that is getting a node tree using Protocol Buffers over a socket and we need to attach additional data to each node.
In a single threaded context and when both the node tree and the associated data will have their strong references removed at the same time (due to going out of scope), is there an... | stackexchange/codereview |
I'm working on a UserViewModel, and I'm wondering if it's appropriate to do minor calculations in the VM, or if I need to separate it further and calculate elsewhere.
Public Class UserViewModel
Public Property UserName As String
Public Property Email As String
Public Property Website As String
Public Pr... | stackexchange/codereview |
I'm exporting some data I have in a database into Excel. Although the below code works fine, I would like to know how to manipulate headers, colours, and generally the way the cells look?
page.aspx
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"... | stackexchange/codereview |
I actually have an application deployed on a Tomcat server but in the future I think I'll pass to JBoss.
Now I have to implement the use of https for communication and I don't know if it's better to implement it first on Tomcat or if is better to pass to JBoss first and then implement everything. Is https management so... | stackexchange/codereview |
These options appear on the admin page /admin/content/node in the "Update options" drop-down.
| stackexchange/codereview |
I have a serious problem with select boxes in Chrome.
I have a hidden DIV with a form containing a SELECT box in it. The DIV is hidden with css "display:none".
I then have a button which shows the hidden DIV on click using jQuery: $("#addForm").show()
The problem is, the SELECT box doesn't work when the DIV is shown. :... | stackexchange/codereview |
i have developed an application that has 3X4 icons on widget. i need to navigate among the icons using up, down, right, left arrow keys how do i do it using qtcreator. and default color of text is black is there a way to change it to some other color. i tried editing palette of widget to change color of text but it was... | stackexchange/codereview |
I have read here http://www.microsoft.com/downloads/en/details.aspx?FamilyID=5765d7a8-7722-4888-a970-ac39b33fd8ab that to instal .NET 4.0 CP (client profile) you must have WinXP SP3 or above. This is somewhat worrying to me as there are many people on SP2 or below.
Is there any way I can run a .NET 4.0 app on any versi... | stackexchange/codereview |
I am making a Firefox extension and looking for a way to store data
I see the sqlite database is available and wonder if it is possible for other extensions to do queries to my database?
From what I have found I can not see any way to do that.
Are there any other solution in Firefox to store private data.
Bob
| stackexchange/codereview |
I need to add pretty basic audio player functionality to a client application I'm writing (I think it will be WPF based).
Can anyone please recommend a good audio player library with basic functionality (Playback control, Basic EQ and that's it) and a .NET API?
| stackexchange/codereview |
Is there any tool or sth to view Session with all key values elements in debug mode?
I can use immediate Window to check but I need to know Key. I would like to have clear view of what is actually in the session,
| stackexchange/codereview |
Say I have something like this:
obj match {
case objTypeOne : TypeOne => Some(objTypeOne)
case objTypeTwo : TypeTwo => Some(objTypeTwo)
case _ => None
}
Now I want to generalise, to pass in one of the types to match:
obj match {
case objTypeOne : clazz => Some(objTypeOne)
case objTypeTwo : TypeTwo ... | stackexchange/codereview |
I have seen various questions on multi-site and multi-host Django, including subdomains and specific schemas per subdomain. What I have not seen is a solution (or tips so I can code one) to this problem.
I am using Django + PostgreSQL on a site, let's say myapp.com
The main site myapp.com is used for registration of c... | stackexchange/codereview |
I'm trying to understand a little code:
jg 0x00000047
dec esp
inc esi
add [ecx],eax
What is the value of eax? These are the four first sentences of the program and i don't know if there is a default value or if the previous sentences add something to eax.
My OS is Linux and the executable is compiled by gcc4.3 from a ... | stackexchange/codereview |
I get this error while loading a lib with dlopen():
Cannot dlopen load module '/usr/lib/pa20_64/libpthread.1' because it contains thread specific data.
I looked this up on google and the following export fixed it.
export LD_PRELOAD=/usr/lib/hpux64/libpthread.so.1
Can anybody tell me what exactly LD_PRELOAD does and w... | stackexchange/codereview |
There are 3 files in 'D:\log' folder, which names are 'log1.txt log2.txt log3.txt' respectively. I want to show some infomations by using 'FOR' MS-DOS command.
set /a C=0
for %%I in (log*.txt) do (
echo "%C%--%%I"
set /a C+=1
)
Output strings were like this
0--log101105.txt
0--log101116.txt
0--log101117.txt
... | stackexchange/codereview |
How can I call PrintIt foo from Set()? I get error that it can't find it...
I know it's possible to call it via MyObject.prototype.PrintIt but this way i will "lose" the object and it's property (Num)
MyObject = function(){
this.Num=6;
}
MyObject.prototype = {
initialize: function(){ ... | stackexchange/codereview |
There are two types Type1 and Type2 provided by different headers, which are both typedefs for some integer types but it isn't known which (and may be different across compilers, OSes, etc. anyway). Is this program guaranteed to work correctly (if it compiles)
Type1 a = ...;
if (a == (Type2) a) {
printf("a fits into ... | stackexchange/codereview |
I have a table view. When a user touches, app has to open a map of that place.
On the first touch it opens an empty map but on the second time it show annotation which is correct.
On the console i'm getting an error:
":
CGImageCreateWithImageProvider:
invalid image size: 0 x 0."invalid image size: 0 x 0."
Here is... | stackexchange/codereview |
i have a googlemap app that displays two items (itemizedoverlay class) and i have a Update button. When i press the update button, i want to remove the items from the map, and put again the same items but with the new latitude and longitude values (i have a service that actualice the latitude and longitude fields that ... | stackexchange/codereview |
How do you adjust the font size of an Android WebView? The following appears to have no effect:
private void fontSizePlus() {
fontSize = (fontSize < FONT_SIZE_MAX) ? fontSize + FONT_SIZE_INCREMENT : fontSize;
this.changeFontSize(fontSize);
}
private void fontSizeMinus() {
fontSize = (fontSize > FONT_SIZE_M... | stackexchange/codereview |
I cloned a git respository on my hard disc. This git repository contains not only the master but also a branch called newBranch. How can I checkout the new branch with tortoisegit?
I tried it with the switch/checkout command but nothing changed in my local files. What works is when I clone the two branches in different... | stackexchange/codereview |
I'm new to programming and I wrote a code that finds spam words for the first email but I would like to write a for loop that would do this for all of the emails. Any help would be appreciated. Thank you.
words = grepl("viagra", spamdata[[ 1 ]]$header[ "Subject"])
| stackexchange/codereview |
I'm using a function :
fu_has_permissions(udt_person('johny','superman'),'fly_away')
udt_person is a user defined type :
create or replace TYPE udt_person AS OBJECT
(name VARCHAR2(3),
id VARCHAR2(18));
I want to use bind variables whan calling this function, but i'm not really sure what am i doing wrong ... Here's... | stackexchange/codereview |
WebClient wc = new WebClient();
wc.OpenReadCompleted += new OpenReadCompletedEventHandler(wc_OpenReadCompleted);
wc.OpenReadAsync(new Uri(url, UriKind.RelativeOrAbsolute));
void wc_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
{
if (e.Error != null || e.Cancelled)
{
//randomly, this code get... | stackexchange/codereview |
I have a string that has a value that keeps on changing/updated and I want to kind of bind this to my cell.textLabel.text. How can I do this?
This is similar to the datepicker that we have on the iphone... the cell is updated everytime we change the picker view value
Here's how I had it laid out:
@interface DatePickerV... | stackexchange/codereview |
The event logs for my .NET application show that it occasionally deadlocks while reading from Sql Server. This is usually very rare as we have already optimized our queries to avoid deadlocks, but they sometimes still occur. In the past, we've had some deadlocks that occur while calling the ExecuteReader function on ou... | stackexchange/codereview |
I have a database that was originally in MyISAM and so had no foreign key constraints. As a result, there are quite a few orphaned rows where the record the foreign key refers to has since been deleted.
To fix this I decided to convert to InnoDB and add the foreign keys, with CASCADE for both updating and deleting. How... | stackexchange/codereview |
I have one div that has a dynamic height and another div that is a float. Is there a way in css I can link div2's height with the height of div1?
| stackexchange/codereview |
I use DataGrid of WPFToolkit to display some data.
The DataTable is initialized in myfile.xaml.cs with
myTable = new DataTable();
DataColumn col;
col = new DataColumn();
col.DataType = System.Type.GetType("System.Int64");
col.ColumnName = "ID";
col.ReadOnly = true;
col.Unique = false;
myTable.Columns.Add(col);
col = ... | stackexchange/codereview |
I am using PHP5 and MySql, I wondered if there was a way of setting variables automatically instead of writing them all out?
I am currently using code such as this:
$sSQL = "SELECT * FROM myTable";
$result = mysqli_query($dbi,$SQL);
if(mysqli_num_rows($result)==0){}
else
{
//loop and set array
while ($row =... | stackexchange/codereview |
OK, this is driving me nuts. I'm trying to screen-scrape the following bit of seemingly trivial HTML with phpQuery:
<td><nobr>10-05-2009</nobr><br>06:10<br>17:35 -1</td>
The date is easy since it's wrapped in the nobr tag, so eg. $element[':first-child']->text() does the trick. But how do I get my grubby mitts on th... | stackexchange/codereview |
I want users to be able to click back/forward button to move between tabs they have click,
but jquery ui's tab don't quite support this yet. Only option that I have found so far is this one, http://www.asual.com/jquery/address/samples/tabs/
is there any simpler or better solution to implement this?
| stackexchange/codereview |
I am kind of new to the whole domain-driven design thing and would love it if you could tell me where you think a service method like this belongs, in the application or domain layer:
List<Children> getChildrenByParent(Parent parent, int offset, int count) {
return repository.listChildrenByParent(Parent parent, int... | stackexchange/codereview |
#include<stdio.h>
#include<stdlib.h>
#include<pthread.h>
#include<unistd.h>
void *WriteNumbers(void *threadArg)
{
int start, stop;
start = atoi((char *)threadArg);
stop = start + 10;
while(start<stop)
{
printf("%d\n", start++);
sleep(1);
}
}
int main(int argc, char **argv)
{
pthread_t thread1, thread2;
... | stackexchange/codereview |
Basically I need to calculate the distance between a point and a line (which has two known coordinates on) in XY axis
I got the algorithm but I don't know how to implement it into ObjC.
Illustration: I have a line that pass
through two points A(100,300) and
B(200,100)
m = (y-y1)/x(x-x1) = 300-100 / 100 -
200 = -... | stackexchange/codereview |
I would like to split a string using a regular expression and have the separators / matched info included in the resulting array.
In java I used:
theString.split("(?<=[!><=}{])|(?=[!><=}{])|(?<= AND )|(?= AND )|(?<= OR )|(?= OR )")
But, javascript doesn't support lookbehind ?<=
For example I want string:
"Reason={Ex... | stackexchange/codereview |
I have a supplier that wants a sitemap that contains much more meta data than what you would see in a normal search engine sitemap. As a result I would like find a tidy way of extending django's sitemap module. Has anyone done this? Or could you provide this django Noob with the code to do it?
Mike
| stackexchange/codereview |
I'm currently building a class using TDD. The class is responsible for waiting for a specific window to become active, and then firing some method.
I'm using the AutoIt COM library (for more information about AutoIt look here) since the behavior I want is actually a single method in AutoIt.
The code is pretty much as t... | stackexchange/codereview |
My scenario is this:
I have two network shares (on the same network) that I would like to construct them as a A HREF network share. I tried to make it work with all the solutions given here but couldn't succeeed. These A HREF links are generated on the fly thru a application and sent as a HTML Outlook e-mail. I wanted ... | stackexchange/codereview |
This Java web-app I am using that other developers wrote is structured in the standard way. However, .class files are not located under WEB-INF/classes they are instead grouped together in a .jar and stored under WEB-INF/lib/myapp.jar.
The issue is that I can't find where the program tells Tomcat to load myapp.jar for... | stackexchange/codereview |
I am new to code igniter and am still learning the best practices.
In my site I have two menus,
One for users who are logged in.
One for users who are logged out.
I have these in two files in the views folder.
My question is:
How should I go about including these?
my best guess is to
in the controller call
if($loggedi... | stackexchange/codereview |
my query is not inserting and i'm not getting any errors. can't figure out why it's not inserting
foreach($_POST as $key => $value) {
$clean[$key] = mysql_real_escape_string($value);
}
if(isset($_POST['submit'])) {
$entry = "INSERT INTO test (Word, Type, Lang, Country, Gender, Advice, y_Advice, Notes,
EditorNotify,... | stackexchange/codereview |
Which is the correct syntax to animate the box-shadow property with jQuery?
$().animate({?:"0 0 5px #666"});
| stackexchange/codereview |
I am making a little dice game and I have a problem animating my dices:
I have 6 dices (My class Dice extends the TextView class) that I would like to make rotate.
So far, I know how to make them rotate individually (or all together with 6 different animations).
Is it possible to regroup in one animation or in an anima... | stackexchange/codereview |
I have a situation where it seems like I need to add instance variables to a category, but I know from Apple's docs that I can't do that. So I'm wondering what the best alternative or workaround is.
What I want to do is add a category that adds functionality to UIViewControllers. I would find it useful in all my differ... | stackexchange/codereview |
How to read IFRAME html code using WebBrowser?
I have site with iframe, and after few clicks new URL opens inside this IFRAME with some portion of HTML CODE. Is there a possiblity to read this?. When I am trying to Navigate() to this URL, I am redirected to main page of this site (it is not possible to open this link t... | stackexchange/codereview |
I have an externally provided .cpp file. It is a mixture of C compatible code and a bit of C++ as well. The C++ code is just a wrapper around the C to take advantage of C++ features.
It uses #ifdef __cplusplus macros to protect the C++ code, which is great. Unfortunately, if I try to compile using GCC, it treats it as ... | stackexchange/codereview |
We need to put some html as part of a yaml migration file for CakePHP. Is there anything out there that people use for this?
Thanks.
| stackexchange/codereview |
With the code below, I created 1 border (white). How can I create another border (Black) over the white border?
Image image = icon.getImage().getScaledInstance(widthX,heightY, Image.SCALE_SMOOTH);
icon.setImage(image);
int borderWidth = 1;
int spaceAroundIcon = 0;
Color borderColor = Color.WHITE;
Buffe... | stackexchange/codereview |
I can not find detailed information about what is supported like CSS and JS in the new mobile IE. Is it like IE9 or not?
| stackexchange/codereview |
My WPF application shows a tree of objects having some properties. These properties can be modified from the UI via data bindings. Objects themselves can be added or deleted. Nothing special.
The question is: What's the best way to be aware of changes somewhere in the objects tree?
Ideas considered so far:
Create a ... | stackexchange/codereview |
If I compile this Delphi 2007 project
program MyProject;
{$APPTYPE CONSOLE}
procedure Test;
var
i: Integer;
begin
if i = 666 then
i := 42;
end;
begin
Test;
end.
from the command line like
MSBuild MyProject.dproj /t:Rebuild /p:Configuration=Release /l:FileLogger,Microsoft.Build.Engine;logfile=log.txt;... | stackexchange/codereview |
I'm trying to solve a problem I've got on my homework.
How can I check if a value is within a range, e.g. 1 ≤ value ≤ 31, without using if, switch, or any other control structure, in Java?
| stackexchange/codereview |
I'm using PHP's IMAP functions to retrieve messages from a POP3 mailbox & was wondering is there any way to tell the new messages apart from the old ones?
Unfortunately I cannot just delete the ones that are retrieved as they need to stay on the mail server, so I'm now wondering that each subsequent time I connect, how... | stackexchange/codereview |
I have some C# code that looks like this:
uint a = 0x9E3779B9;
a += (uint)(url[k + 0] + (url[k + 1] << 8) + (url[k + 2] << 16) + (url[k + 3] << 24));
After that code, a == 228 452 386
Now I'm trying to translate this C# code to PHP, but in PHP the number doesn't overflow the same way:
$a = 0x9E3779B9;
$a += ($url[$k+0... | stackexchange/codereview |
I have a dictionary that has a place name as a key and as the value it has several lists of words, eg, 1 entry looks like:
{'myPlaceName': [u'silly', u'i', u'wish!', u'lol', [u'the', u'lotto'], [, u'me', u'a', u'baby?'], [u'new', u'have', u'new', u'silly', u'new', u'today,', u'cant', u'tell', u'yet,', u'but', u'all', u... | stackexchange/codereview |
I have an image cache in my application which is implemented using SoftReferences. Dalvik starts applications with relatively small heap, and then increases it in case of demand. But I'd like to have my heap size bigger from the beginning. That is because when I already have some images in the cache, and an activity st... | stackexchange/codereview |
Looking at some old code in Java 1.4 but I'm unfamiliar with Java.
Does Java 1.4 have generics? I've been looking through the code and haven't found any uses of generics, but that doesn't necessarily mean they aren't supported.
| stackexchange/codereview |
I'm using VS2010 and created a simple asp. web forms application, using Development Server to test it.
I try to store user data - queried from sql server - in the session, since I don't want to access database in every request. I'm using the 'Application_AuthenticateRequest' and the 'Session_Start' methods.
First round... | stackexchange/codereview |
Hey all, I have a jquery script that's a pretty fun game, you can view it here link text.
now after the play button is clicked, I send the users ip via ajax to see if it matches an ip stored with my site. if it does then the rest of the action is performed. I'm having trouble getting the 1st ajax to work. here's the sc... | stackexchange/codereview |
How on earth do you reset the sa password? I know how to go into the dialogs and reset a password. That's now what I'm asking about. It runs a little deeper than just click, click, new password, done!
I have no idea what the SA password is. Nor does the previous user of this machine. The previous user says he never had... | stackexchange/codereview |
I'm looping through JSONP with JQuery in order to get a list of usernames. I then want to send each username through the Twitter API to return a series of things (number of followers, etc). Then display it all together. This is part of a much larger "dashboard" based on political candidates. Because the code I've writt... | stackexchange/codereview |
my client side has counter.pl script running on homepage. that displays visitors counter
the client wants to change the visitor counter value.
when i checked the code in index.html,it points cgi-bin/counter.pl script
But wen i try to search cg-bin folder ther are only two files counter.jpg and .htaccess
now how to find... | stackexchange/codereview |
What I am looking for is to dynamically create two textboxes from the C# ASP.NET code (either normal textbox or HTML input text, I don't mind).
And then I tried (and failed) to define an event that fires when the first textbox loses the focus, so, what is written in the first textbox should be copied to the second text... | stackexchange/codereview |
I may not be able to explain this properly but please help me with this if you can spot the problem.
I made two versions of the site and both have a view in common. But in the information given below "Live Preview" is that the "Query" is the same but on "Other queries" I see a difference between the two. For the old on... | stackexchange/codereview |
So I've been searching for some time on how to either replace the in
call screen or put something on top of it....the only solution I have
found thus far is to make my own ROM, which doesn't make sense for
such a small portion of an OS. however I found these two apps (Full
Screen Caller Pictures and Full Screen Caller... | stackexchange/codereview |
I very happy using the datepicker from jQuery UI.
and the onSelect: function... works perfectly.
But:
How do I go about triggering a function when I click the "gotoCurrent"-button beneath the calendar. As far as I can see I can only trigger on onSelect by default, so I guess what I need to do is actually extend the fu... | stackexchange/codereview |
I have created an application where there's a series of command bindings attached to the MainWindow of my application:
(Code simplified for brevity)
<Window x:Class="DBBrowser.Design.Project.ProjectView"
...>
<Window.CommandBindings>
<Commands:DataContextCommandBinding Command="ProjectCommands:ProjectRoutedCo... | stackexchange/codereview |
I have a page that receives a JSON response. If there is more than one option in the JSON it will dynamically generate some radio buttons using a for loop in Javascript based on the greater length.
Something like:
for (var i = 0; i < length; i ++){
alert(i);
//draw the HTML radio buttons based on the d... | stackexchange/codereview |
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: An item with the same key has already been added.]
System.ThrowH... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.