instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am working on a Firefox extension and I want to know when a page initiates a xhr request, I saw a few codes but they were pretty big, is there any simple sample to achieve this?
I am testing this code :
function TracingListener() {
//this.receivedData = [];
}
TracingListener.prototype =
{
originalListener: n... | stackexchange/codereview |
I have a method expecting WCHAR**, i need to get some data back from this method. I am declaring an array WCHAR[100] and passing it to the function. The compiler throws this error:
WCHAR result[100];
UINT i;
hr = SomeFunc(handle, &i, result);
error C2664: 'XXXX' : cannot convert parameter 3 from 'WCHAR [100]' to 'WCHA... | stackexchange/codereview |
Most data structures are designed to hold data.
Data is something that means something to a computer.
Information is something that means something to a human.
What data structures are designed more for information rather than data?
Examples might include things like xml, .jpg, and Gray codes which all have an informat... | stackexchange/codereview |
messaging passing
or
remote procedure call
irrespective of the architecture or not?
| stackexchange/codereview |
This is XML
<?xml version="1.0" encoding="UTF-8"?>
<person>
<fullname>Guilherme</fullname>
<age>10</age>
<address>address,address,address,address,</address>
</person>
<person>
<fullname>Guilherme</fullname>
<age>10</age>
<address>address,address,address,address,</address>
</person>
This is POJO, ... | stackexchange/codereview |
I only just bought a web domain yesterday(cryptum.net) and I intend to upload some files to it. My problem is I don't have a good PHP5 download script. I just want a simple script that will save the file to the users download folder. The files are located on the websites ftp server. Here is what I have so far-
<?php
$... | stackexchange/codereview |
How can I add a reference of a COM DLL in my application?
I have tried to add kernel32.dll and user32.dll but these are not supporting..
| stackexchange/codereview |
I have a weird error which I can't figure out.
I am creating a Windows Phone 7 app where I create PivotItems on the fly that contains a ListBox.
Heres the code -
PivotItems = new ObservableCollection<StatusItem>();
DataTemplate itemTemplate = App.Current.Resources["PivotItemTemplate"] as DataTemplate... | stackexchange/codereview |
i am doing a Wpf Application and i create a Control with the shape of an eye ,i put a Ellipse(eye) in a Canvas and my purpose is when the cursor of the mouse enter in the Canvas the Ellipse follow the cursor of mouse.
Do you have any suggestion how perform this task?
Thanks so much for your attention.
Cheers
EDIT
I ha... | stackexchange/codereview |
var item = list.Where(t => somecondition);
I would love to be able to find out the index of the element that was returned, in fact, in my case all I want is an index, so that I can .Skip() into the list by that much.
Is there a way to do this in an IEnumerable? I'd hate to use a List<T> for this, but that does have a ... | stackexchange/codereview |
I have a MySql db which has data up to few GBs. Additionally, I execute LIMIT queries which require some free space to be available for execution. I'm using C#.Net to know the total and available disk space. Is there a way to know how much free space is needed to execute SORT/LIMIT queries successfully?
| stackexchange/codereview |
I am passing a url dynamically for a javscript widget using the following
"url": document.location.href,
However the issue is my url is sometimes of the format
http://www.mysite.com/product.aspx?id=33&blahblah
However I want to remove all characters after '&' including '&' and make the url
http://www.mysite.com/produ... | stackexchange/codereview |
I am following this thread to disable/ enable the click on a button,
Best way to remove an event handler in jQuery?
its idea is that you can also use the live() method to enable/disable events. What will happen with this code is that when you click on an a tag-element, for instance, .load-item, it will add the class d... | stackexchange/codereview |
Basically I have a Flex Line Chart and x-axis looks like this:
---|--------|--------|--------|--------|--------|--------|---
November December January February March April May
This is fine but I also want to show the year that the months belong to, like this:
---|--------|--------|--------|--------|-------... | stackexchange/codereview |
My project install was perfectly fine until yesterday but today my install gets stuck at the following,
Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
Java version: 1.6.0_20
[INFO] Surefire report directory: C:\Perforce\project-name\target\surefire-reports
Basically after this line the install does not proceed ... | stackexchange/codereview |
In this link it says it does:
http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/MultimediaPG/UsingAudio/UsingAudio.html
However I have searched for an example that works on the web and can only see people complaining they can't get it to work. I have a working AudioQueue example for PCM but th... | stackexchange/codereview |
I am a pretty experienced Ruby, Objective C, and Java programmer and I was watching a video on emacs (because I have been using Vi) and noticed that it is also a LISP interpreter. That spiked my interest, and brought up an interesting question: For someone that knows modern high level languages such as Ruby, Java ,and ... | stackexchange/codereview |
I have two photos of a house, the camera is only moved about 1 meter or approx 1 foot from its position for the second photo. So for the first and second photo, they are very much the same but with some minor difference being the perspective.
I want to generate a mapping, a correspondence between the first photo and th... | stackexchange/codereview |
I have a given URL with specific IDs. I'm suppose to pass those IDs to this URL as argument and retrieve the XML in java. Any clue?
| stackexchange/codereview |
The following are 2 div, side by side. But once a width: 100px is added to #right, they won't be side by side any more. The second div will wrap to the next line. The browser's width is like 1200px, so it is not a concern, and this happens on both Firefox and Chrome. What is a reason for that?
<!DOCTYPE HTML PUBLIC... | stackexchange/codereview |
I have this right now:
$('#markAll').live('click', function () {
checkAll(true, $('.cbPick'));
$('#markAll').text("");
$('#markAll').prepend("<strong>Unmark all</strong>");
});
When i press #markAll, it marks every checkbox with .cbPick, and then it changes the text from (previous "Mark all") to "Unmark alL". Now if y... | stackexchange/codereview |
Here's the premise:
I have many classes where I need to perform an action BEFORE any method from any of the classes is called, my solution was to have all of the classes extend a parent class which would define a call() function which would look like:
public function call($method){
//do the something I need to do b... | stackexchange/codereview |
I want to to use MFMailComposeViewController to send an email, and I already have that set up, but I'm having trouble actually attaching an image, which is a screenshot, into the email.
Here's the line of code.
[composer addAttachmentData:image mimeType:image/png //png undeclared//fileName:@"GameOver Screenshot.png"]; ... | stackexchange/codereview |
As my project requirement i have to highlight the table row on onClick. There is any way to do this? Or please suggest me the alternative?
| stackexchange/codereview |
In Zend Framework, we can forward to another controller's action using _forward()
E.g.
// Inside controller1
$this->_forward('foo', "controller2");
echo $this->getResponse(); // Echo the response of foo action at this point
But the _forward is taken at the end of request cycle, what if I want to forward happen immedia... | stackexchange/codereview |
I have a stored procedure I don't want to modify. It's rather large and complex, and I don't want to add any more confusion to it.
So what I would like to do is have another store procedure that calls on the big one, and uses the result set to perform further selects / joins etc.
| stackexchange/codereview |
What is the best way to document a dependency property?
Should I put the xml documentation on the field:
/// <summary>Documentation goes here</summary>
public static readonly DependencyProperty NameProperty =
DependencyProperty.Register(...)
or on the property:
/// <summary>and/or here?</summary>
public strin... | stackexchange/codereview |
Regards to all.
I'm developing a Image compression system using Python Image Library. The basic workflow is:
Read all images of a certain directory with : find /opt/images -name *.jpg > /opt/rs/images.txt
Read this file and storage the result in a Python list
Iterate the list, create a Image object and passing like a ... | stackexchange/codereview |
I'm very new to OpenGL and programming with a graphical element in general.
Currently I have a texture that is mapped using vertices that are generated by another part of the code -- these four points that represent the corners change a few times a second. As it is implemented, this image will jerkily 'appear' in diff... | stackexchange/codereview |
I am a total novice in DB2. I am trying to help someone else out who is an SQL Novice.
What I am trying to do would look like this in SQL Server:
declare @MaxValue int
select @MaxValue = Max(ID_COLUMN) from MainTable
insert into MainTable (ID_COLUMN, OTHER_STUFF)
select TEMP_ID + @MaxValue, MORE_OTHER_STUFF
from T... | stackexchange/codereview |
I using rails3 and trying to build some complex associations.
I have Product, Version and Property models.
class Version < ActiveRecord::Base
belongs_to :product
has_many :specs
has_many :properties, :through => :specs
end
class Product < ActiveRecord::Base
has_many :versions
has_many :specs
has_many :pro... | stackexchange/codereview |
If I create a toolbar with a label and a button like this:
<ToolBar Height="26" >
<Label>Hi mom</Label>
<Button>Press me</Button>
</ToolBar>
The button text centers on the toolbar and does not get clipped.
How can I make the text on the label appear with an equal apperance as the button?
| stackexchange/codereview |
I've downloaded an open source third-party assembly for use in my WPF/.NET 4/VS2010 project. I've added a reference to the project's DLL and verified that VS2010 can see it by walking through the exposed classes in the object browser. When I add a "using" directive to the appropriate class in my project, Intellisense... | stackexchange/codereview |
This has been driving me crazy for 2 days now - hope someone has seen this before.
I have this issue where the first click of a control within a repeater or grid view fails to fire the ItemCommand event, all subsequent clicks work. The controls are being loaded into a placeholder on Base.aspx like so
private void L... | stackexchange/codereview |
I'm working on this project that uses proxy server and curl in c and i cant find a good tutorial that teaches me how to. Can you please help me?? i need an example code that shows the use of a proxy server to connect to google.com. maybe using the CURLOPT_PROXY option..
Thanks in advance.
| stackexchange/codereview |
I have spark.components.TileGroup that contains buttons.
I would like the buttons to appear like tabs on top of the ViewStack they serve
At the moment, if I have 6 items in the TileList it lays it out as 2 rows with 4 items in the top tow and 2 in the bottom, so the jaggy edge is at the bottom
[ITEM 1][ITEM 2][ITEM 3]... | stackexchange/codereview |
I am developing a site in asp.net mvc 2.0.I already implemented image uploading functionality.
Here while ordering the shirts by user,user will see the front side of the t-shirt.
But now my client want to see both front and back side of the t-shirts.Is it possible to implement like this in asp.net mvc 2.0.I think it is... | stackexchange/codereview |
I uninstalled the maven plugin but when trying to run the project that was perfectly running before the plugin I have "Referenced classpath provider does not exist: org.maven.ide.eclipse.launchconfig.classpathprovider". I assume I have to change the launch configuration for the project. Can anyone provide the steps to ... | stackexchange/codereview |
Super quick question...
How do you take a some particular function's (user-defined) argument and cast it as a character-string?
If for a simple example,
foo <- function(x) { ... }
I want to simply return x's object name. So,
foo(testing123)
returns "testing123" (and testing123 could just be some random numeric vector... | stackexchange/codereview |
I tried just using the date's string representation but it didn't work (i.e. no results):
gql = "SELECT * from Shout where when='2010-11-05 16:57:45.675612'"
This is my Shout class:
class Shout(db.Model):
message= db.StringProperty(required=True)
when = db.DateTimeProperty(auto_now_add=True)
who = db.StringPr... | stackexchange/codereview |
I have the following code:
var qry = from sv in Context.DocStore_SearchValues
where sv.Category == category
select sv;
return qry.FirstOrDefault() != null;
I am getting this message:
Unable to create a constant value of
type
'SSS.Model.Suburban.DocStore_Category'.
Only primitive type... | stackexchange/codereview |
I have a certain oracle package file (pbk with pks). I want to execute one of the methods in the package from sqlplus. I want to do so without compiling the package into the oracle database.
Is this possible ? if so how ?
| stackexchange/codereview |
I have a draggable that is being dropped on an isometric grid of droppables that overlap. The droppables are the grey tiles, img tags, and look like the first image attached. They are set to highlight blue when a draggable is over them.
Here is the source code for the droppable:
$(".sprite").droppable({
... | stackexchange/codereview |
Anyone got a tutorial on the designers concept implementation of Whirlpool in C, or the Whirlpool algorithm in general? I find the source code hard to understand, mostly because I do not know anything about the algorithm. I am not a cryptographer, nor am I a good mathematican, so their documentation kind of went over m... | stackexchange/codereview |
I have a domain model specifying the interfaces or my domain and I'm using DI to hook it up to an entity framework 4 repository implementation. In my domain I have the following:
public interface IInboundGateway : IGateway
{
ICollection<IInboundNumber> InboundNumbers { get; set; }
}
I then have my entity framework... | stackexchange/codereview |
Possible Duplicates:
difference between compare() and compareTo()
Java: What is the difference between implementing Comparable and Comparator?
What are the keys differences between Comparable and Comparator.
and which is preferred over the other in what scenarios?
Thanks
Updated - GOOD LINK WITH EXAMPLE!!
http:/... | stackexchange/codereview |
I was trying to add a java-script to a page which is generated on the fly.
I tried this, but it seems like it is not working.
<SCRIPT SRC=\"sorttable.js\"></SCRIPT>
I always have to inline javacode along with the html for it to work.
Any clues ?
| stackexchange/codereview |
My question is simple, is the next code safe?
struct Parent {
B* _a;
Parent(B* a) : _a(a) {}
};
struct Child : public Parent {
B _b;
Child() : Parent(&_b), _b(2){};
};
int main() {
Child c;
return 0;
}
Two more points:
I am interested in the part of passing a reference to a member object to... | stackexchange/codereview |
How can I inject a property to a class I don't have access to using Guice? I only have access to the .jar that contains that class.
Also, I need the injected property to be available from the start of a Web Application (I suppose I can do this with a Servlet though).
Thanks
| stackexchange/codereview |
Trying to upload a word document then attach it to an email which is sent.
Currently getting an IO exception - Illegal characters in path.
Here's code:
try
{
var fileName = Path.Combine(Server.MapPath("/"), ResumeUpload.FileName);
ResumeUpload.SaveAs(fileName);
using (var resumeContent = new StreamReader(... | stackexchange/codereview |
I want to create control that will allow user to design his own website structure. I imagined that inside UpdatePanel is control(s) with TextBox ( for page name) and Button 'add below'. It would looks like:
| "Questions" |
| [ add below ] |
| "Tags" |
| [ add below ] |
| "Badges" |
| [ add below ] |
no... | stackexchange/codereview |
I am working on creating a GUI to interface with a Citrix XEN server. I dont know how to execute commands from my within my application on my widows system on the XEN Server.
I was thinking using SSH but again I dont know how. Does anyone have an example of how to do this? How to establish a SSH tunnel when the user p... | stackexchange/codereview |
The C source for java.exe is included in the JDK. Has anyone ever managed to compile this code to an executable on Windows using Visual Studio?
I've created a Win32 console app, added all the files from the 'launcher' folder in the java src.zip.
The code for java.exe includes 'jvm.h' which isn't in the JDK. Where can I... | stackexchange/codereview |
I want to create a PdfWriter Object and set Events for Header and Footer.
The problem is it works if I create a new PDF. But my problem is I already have a PDF in Output Stream. Please find my sample code below.
Document document = new Document();
try {
// step 2:
FileInputStream is = new FileInputS... | stackexchange/codereview |
I have been programming Android apps for quite some time, and my client asked if we could hide the telephone number on dialing screen when phone.apk is making a call.
I'd appreciate if anyone could tell me what is the best approach for doing this. Should I make the changes in the phone.apk or any easy to update the ... | stackexchange/codereview |
I have checkedlistbox which is populated by month. I want to make alternate month in ChekedListbox as read only
| stackexchange/codereview |
// F# Brute force:
let closest_pairs (xys: Point []) =
let n = xys.Length
seq { for i in 0..n-2 do
for j in i+1..n-1 do
yield xys.[i], xys.[j] }
|> Seq.minBy (fun (p0, p1) -> (p1 - p0).LengthSquared)
closest_pairs [|Point(0.0, 0.0); Point(1.0, 0.0); Point (2.0, 2.0)|]
Type... | stackexchange/codereview |
okay, I am beating myself up over this. I am need to load a array in people last name stored in a table. Then sort the last names and print them out in alphabetical order. This must be done using the bubble sort algorithm.
here is what I have so far
CREATE OR REPLACE PROCEDURE TEAM_TABLE_SORT AS
TYPE player_Name_ty... | stackexchange/codereview |
I created a control that is as wide as the form. Then I setup the grid with
dataGridView1.Dock = DockStyle.Fill;
dataGridView1.BorderStyle = BorderStyle.Fixed3D;
dataGridView1.AutoGenerateColumns = true;
dataGridView1.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells);
When run... | stackexchange/codereview |
I'm trying to get into MVC and currently reading the wrox professional ASP.NET MVC book.
I kind of get it so far. Instead of each URL going to a page it goes to a controller. The controller action then gets the data and decides what view to use.
I also understand that if I have a url like/product.aspx?id=100 then the c... | stackexchange/codereview |
Can anyone tell me about CSS frameworks, and how to use them?
| stackexchange/codereview |
Is there a way I can reuse Styles for more than 1 TargetType eg. ComboBox and TextBox
<Style TargetType="ComboBox, TextBox" />
is there such a thing? Or is the only way duplicate the style and target each style to differnt types?
| stackexchange/codereview |
I have the following using searchlogic:
@todos = Todo.contact_user_id_is(current_user).
contact_campaign_id_is(@campaign).
current_date_lte(Date.today).
done_date_null.
ascend_by_current_date
I only want @todos to contain a Todo record for a single contact_id (co... | stackexchange/codereview |
Every single time I run my app, I want a new log file to be generated with the time stamp. Something like MyFile-4Nov2010-132122.log.
I've seen the use of the DailyRollingFileAppender however I want it to roll each and every time as opposed to just daily.
| stackexchange/codereview |
How do I create a 'user defined function' that returns a 'cursor' back to the user from the following query:
SELECT
P.AddressId,
P.DepartmentId
FROM
Person P
INNER JOIN
ACCOUNT A
ON p.UserId = A.UserId
I'm looking for a solution that is written in TSQL and is compatible with SS2008. Any column labeled Id... | stackexchange/codereview |
Okay, so I'm getting this error from the lines:
System.Data.Linq.DataContext.CheckNotInSubmitChanges() +42
System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) +54
What I'm doing is tracking an application's state and logging each request. The app renders output in Json, Xml and Html.
The thing ... | stackexchange/codereview |
I have a binding problem in silverlight and I cannot make it work...
I have a control which has a model behind.
The control code behind looks like this
.....
public ClientListingVM()//constructor
{
ClientListingViewModel model = new ClientListingViewModel();//this is my model
DataContex... | stackexchange/codereview |
I'm going to have to download a number of datasets via simply POSTing at an url and getting XML in return. I will be able to speed this up by doing more than one request at a time, but here's the hook:
It will need to run on both Windows and Linux, so threads and forks are both out. (Since this is purely IO-bound i don... | stackexchange/codereview |
I'm not sure whether I need to add an exit button to my app. Is there any point to doing this? And if on exiting one activity or service is not .finish() or closed properly could this cause a lot of damage?
| stackexchange/codereview |
I was wondering if it was possible to use a for (or for each) loop to trace the properties of an event to the output window. I know I can trace the event in one go, like this:
function myFunct (evt:IOErrorEvent):void
{
trace(evt);
}
Unfortunately this gets a little crazy to read in some situations, such as a long ... | stackexchange/codereview |
we want to manage the credentials of the actions of the backend from
the backend.
How to get the list of the actions of an app? After that we could show
the credential of each one through getCredential().
2nd question: i found the function to get the credential of an action
(getCredential()), but how to set the credent... | stackexchange/codereview |
There are a million lightbox type modal overlay scripts out there.. but I am looking for one that has the ability to be automatically triggered, depending on the path that leads there. So a property would have to live in the url string that triggered it. Has anyone seen or implemented any such thing? I know colorbox ... | stackexchange/codereview |
I have an extremely large db table (around 30GB data file), and I started optimizer on it with
mysqlcheck --optimize -A
Now, it's already taken more than 2 hours, and I'm not sure when it's going to finish. Would it result in data loss if I prematurely kill the job, because I want the table to be unlocked urgently?... | stackexchange/codereview |
I have a pop over view. When this popover gets dismissed, I want to get notified.
Is there any way to do it?
| stackexchange/codereview |
I'm trying to get an item of an array by its key. The array is in fact a SolrObject, which implements ArrayAccess, so I understand that I can access its items as I would in an array.
This is the structure of my $myobject:
SolrObject Object
(
[116809] => SolrObject Object
(
[title] => Array
(
... | stackexchange/codereview |
does anyone know how to watermark video from the Linux command line using a simple tool?
Watermarking in ffmpeg isn't supported in the current version, and requires a custom compile.
Max.
| stackexchange/codereview |
I have embedded a flash video on my website.
I am having the problem that it seems to rescale fine in Firefox on the Mac, but in Firefox in Windows it just crops the video.
Here it my HTML
<object width="650" height="500">
<param name="movie" value="How To Add A Location">
<embed src="http://www.fribblesoft.com/zs-cont... | stackexchange/codereview |
I have created an application that compiles and runs like a charm on OS-X. I would now like to start getting it to work on Windows. To start, I copied the project to a windows machine and just tried to compile, but got this error:
:: warning: Qmake does not support build directories below the source directory.
Any ... | stackexchange/codereview |
I have a bunch of elements on a page, all of whose ID's are stored in an array called ids[].
I have initialized a third-party DOM script for each of these divs that detects when the element has been dragged. The next step is to assign a function to the onDrag event of each element.
For simplicity's sake, I'd simply ... | stackexchange/codereview |
I am making a PhoneGap-based iPhone app which will connect to a Rails backend. I'm using jQuery to create an Ajax request to Rails server. I'm successfully getting a server response, but I'm having problems with getting cookies and managing sessions.
By default, Rails sends a Set-cookie header when responding to an HTM... | stackexchange/codereview |
is it possible to programatically select/deselect activities I am following on the news feed preferences page under MySites? I want to be able switch on/off notifications for both custom events and those provided by Sharepoint 2010 out-of-the-box.
| stackexchange/codereview |
My Treeview shows the plus sign on all nodes, by default.
Even those nodes without children, which is wrong.
However, once I've tried to expand that node, the plus sign disappears.
I populate the Treeview dynamically.
Here's some code:
protected void CategoriesTreeView_TreeNodePopulate(object sender, TreeNodeEventA... | stackexchange/codereview |
I am using Rational Rhapsody for Linux and is wondering if it is possible to configure it to open source code with an external editor instead of the built in editor. I would prefer to be able to edit code using emacs via emacsclient.
According to the documentation the following procedure should set Rhapsody to use an e... | stackexchange/codereview |
I have a newbie question about jQuery. Why is it that I can trigger the click event below even though the element has changed class? Even though I change the class from "edit" to "tide", $(".edit").click() is working on that element.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/... | stackexchange/codereview |
What I want to achieve is something like this.
::::::::::
...hi....
..........
..........
The hi is in the middle of the 2 colors.
I have it working for 1 color, and another color underneath, but would like the colors to split up in the middle of the text. (I'll be using button images if no one can come up with a solut... | stackexchange/codereview |
For instance if I have http://www.mywebsite.com/about.aspx. Store about.aspx (or whatever page we're on) in a variable. Also need this to work even if there is information after the page in the url such as a query string.
| stackexchange/codereview |
Just a curious question.
I noticed that when you generate a non fatal php error,
<b>Warning</b>: implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed in...
but the links are nonsense.
If they are going to link it why do they not link it to the php manual?
or is there someway you can r... | stackexchange/codereview |
For some reason the argument I pass to my if statement is not true for even though it should be heres my code:
if (currentAttribute == cBusName)
{
NSLog(@"currentAttribute == cBusName");
}
current attribute and cBusName are both NSMutableStrings an both equal "1" but the NSLog never outputs the str... | stackexchange/codereview |
Scenario
I want to design a server which loads plug-in assemblies from third party vendors. The third party vendor needs to follow some contract while implementing plug-in assemblies. The third party plug-in assemblies needs to be copied to a specified deployment folder of the server. The server will dynamically load t... | stackexchange/codereview |
I get the error when identifier not found in this snippet. Please help what is the bug
typedef struct
{
Int32 frameID;
Int32 slotIndx;
Int32 symNumber;
}ControlList, *controlListPtr;
Thanks
| stackexchange/codereview |
I want to develop a keystroke converter which will convert any keystroke into my local language. For example, if user type "a" then it will be replaced with it's corresponding unicode letter "\u0995"
I used a code similar to: https://stackoverflow.com/global-low-level-keyboard-hook-freezing-in-c-net-3-5 There, i edited... | stackexchange/codereview |
I have a MS SQL database that I am working on, within this database I have a view that queries information to be printed on a INITIAL letter (sent one time). My idea is to have a table that stores the incident number of the record for this letter and the date it was printed so that I can cross reference this table when... | stackexchange/codereview |
Is it possible to post a Game Request using the Facebook Javascript or PHP SDK?
I'm looking for something similar to streamPublish but for the Request channel. AFAIK the only methods i've found involve using FBML. I'd like a more extensible means than fb:request-form
| stackexchange/codereview |
Recently I come across below code ...
if [ ! $?target -o $target = "" ]; then
echo "Target is not set"
fi
I am curious to understand logic of above code snippet.
It seems that it is checking, if I am correct, whether "$taget" is set or not or "$target" is empty or not.
I google to find how $?variable works, bu... | stackexchange/codereview |
I am a beginner here, but I have been dealing with this unknown issue for a while now. Please view this simple program that I have coded and explain why it will not compile for me. The thing is that I have copied this code from a teacher and it works fine on his machine. Then when I tried to run the example on my ma... | stackexchange/codereview |
manager for role 3 and team leader for role2
//get userid from login session
$memberid = $_SESSION['SESS_MEMBER_ID'];
//get role from session
$role = $_SESSION['SESS_ROLE_ID']
while($res = mysql_fetch_array($role)){
if($role=='3'){
$teamleader = mysql_query("select * from dept_user where lead_id='$member_id... | stackexchange/codereview |
I have tried this on IDE SharpDevelop not on visual studio.
I am using the namespace like this:
using System.Data.OleDb;
But it is showing me following error:
'Data' does not exist in the namespace 'System'(are you missing an assembly reference?)(CS0234)
| stackexchange/codereview |
I have a table like:
<table>
<tr>
<td>...</td>
<td><div class="stretch"></div></td>
</tr>
</table>
I need to get the .stretch to fit the height of the td. Currently the div has a height of 0. What am I missing?
| stackexchange/codereview |
I'm writing an application where I have many objects (data models) that are identified by a unique String ID that every such object possesses and these objects can refer to each other by their IDs.
So far so good but now I need to keep track of which object keeps a reference to another object and of course there are ca... | stackexchange/codereview |
I want to call a Java class from a batch file.
How can I do that?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.