text stringlengths 8 267k | meta dict |
|---|---|
Q: SSIS: C# Script task: How to change a SQL connection string based on server environment that the dtsx is running on? I have a script task where i change the connection string for a db, however, it is missing one vital piece of information which is the server that the package itself is running on.
is there a way t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Implement URL aliases in CakePHP I'm new to CakePHP, though not new at all to MVC frameworks for web development. I'd normally go with Drupal when doing web sites that are not web apps but my employee feels that coding stuff from the ground up is far better than using pre built well tested and working solutions. Sig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accessing JavaScript function from C# class function? ASP.Net Web Application.
Is it possible to access a JavaScript function located on the master page from a C# class function?
Below is a description of what I'm attempting to do...
When user clicks save button, database procedure called that returns value indicat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting unused port number in C dynamically when running server process I am using C and writing a client-server program, and I would like to get an unused port number to run my server process. My server code is like this:
getaddrinfo()
socket()
bind()
listen
while(1)
accept()
I need to provide the unused port ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Planning to start Iphone game in Unity engine..Suggestions/Experiences? I am new on unity and iphone game development. I have been instructed to make a game for iphone. After alot of research and google I am now thinking to use Unity3d game engine as it compiles code for almost every device plus no extensive coding.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: MySQL Join Improvement I'm having trouble getting MySQL to return a query properly.
Here's my data:
id date value
2 2011-01-04 55.66
2 2011-03-23 22.33
2 2011-04-21 9.44
5 2010-01-04 104.55
5 2011-02-03 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I add draggable and droppable event listeners with jQuery mobile? I'm using jQuery mobile to build a mobile version of my site.
A lot of the features rely on drag/drop.
Since jQuery mobile uses Ajax to load the pages, the event handlers for draggable and droppable aren't added to elements on any page except ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Phantom JS to convert all HTML files in a folder to PNG I've started using Phantom JS on Windows, but I'm having a bit of difficulty finding documentation on its capability (probably the root of my problem).
Using Phantom JS I would like to do the following:
*
*Give it a local machine folder location,
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Backbone.js pushState is not working and gives a 404 error I have been watching the screencast from PeepCode on Backbone.js, and have done the coding with it.
I have finished the first part and now, I have a Router like this:
routes: {
'': 'home',
'blank': 'blank'
}
and also I have this to start the App:
$(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to break apart a string value and re-arrange characters So from what I have found I would have to write a swap method? Only problem is from the codes I have been looking over it is a bit over my head.
I am getting a value from a xml file, for example "20120411" What I would like it to be once passed to another... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is an alternative set-like data structure when modifying elements is necessary? STL sets are designed so that it is not possible to modify the elements in the set (with good reason, see stackoverflow). Suppose however I have a structure in which only one of the members acts as the key. Is there an alternative... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Find every occurrence of a regex in a file How can I list every occurrence of a regex in a file, where one line can contain the regex multiple times?
Example:
XXXXXXXXXX FOO3 XXXX FOO4 XXX
XXX FOO2 XXXX FOO9 XXXXXX FOO5
The result should be:
FOO3
FOO4
FOO2
FOO9
FOO5
The regex would be /FOO./ in this case.
Grep wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Use of Response.End in an MVC3 Action I'm trying to do something like this article suggests in my MVC3 site. However, I'm not sure I can use the Response.End in my Action.
My question is, how can I return a 401 status code from my Action if the HttpContext.User == null?
public ActionResult WinUserLogOn(string retur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Set size of the loaded image in AS3.0 I'm loading images from xml file. I want the images to have standard width when they are displayed.
Here are the snippets of the code that do the image processing:
var allThumbs:MovieClip = new MovieClip();
addChild(allThumbs);
allThumbs.width = 200;
allThumbs.height = 200;
ga... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: QueryPerformanceCounter in D? Is there something (planned) in the D Library to support high precision timers like QueryPerformanceCounter in c++ ? How can I have a portable High precision timer in D ?
Or if it is not available, what would be the highest percision timer in D ?
A: std.datetime has the StopWatch struc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Windows Mobile intercept notifications I know how to intercept regular SMS messages. But sometimes I get some special SMS notifications. Notifications are treated differently, it seems that the MessageInterceptor is unable to intercept such messages.
Is there a way to intercept those notifications?
LATER EDIT:
On so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating virtual directory tree in zip file using dotnetzip I am trying to create a zip file from code, I'm using dotnetzip
I want to create a directory tree in the folder that doesn't exist on disk. How do I do this?
I have tried using AddDirectory but this seems to want to find the directory on disk. I have also ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Django template variables from {% for %} loop into Javascript This is a Django template iterating through records. Each record contains a div that JS function fills in. In order for JS to know what to do, it needs to get a variable from each for loop iteration and use it. I don't know exactly how to achieve that or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: iOS - equal the UITextView string on the different viewController How can i equal a UITextView strings with another UItextView on different viewControllers
on ViewController1 :
UItextView *textView1;
on ViewController2 :
UITextView *textView2;
so when user enter some text in "textView" on ViewController2 the st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: OAuthException / An active access token must be used to query information about the current user When trying:
facebook requestWithGraphPath:@"me/friends"
In my iOS app I get the error
"OAuthException / An active access token must be used to query information about the current user"
I can query my own Facebook dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create 5 DIV with 1 DIV in the center I want to create DIV like the picture below. 1 Div on the center and 4 div around the center div. Could anybody help??I've tried but I couldn't do it.
.mid{
width:700px;
height:400px;
margin-left:100px;
background-color:black;
}
.navtop {
width:700px;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a way to tell if a directory specified by the user is a protected directory in Windows 7/Vista with UAC enabled (and not running as admin) There are several points where the user can specify a what directory that data is to be saved to, I would like to be able to notify the user if they have chosen a direct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Jquery xml file provides information details page pulls all info instead of selected I am trying to build on some basic ideas. I have an xml file which I have no problems loading onto a list type menu . My xml file has about 300 records and each record contains approviamtely 45 fields. (LASTNAME, FIRSTNAME, ADDRESS,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: c syntax in two different lines? I have this simple question about c syntax. When we write :
printf("hello world
");
compiler produces an error. Why? In this other case:
for (i = 0; i < MAXLINE - 1
&& (c=getchar)) != EOF && c != '\n'; ++i)
everything compiles fine. What is the general rule for all th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any math. function which gives sequence of numbers when ever i call it? I have the following function:
function random()
{
var whichProduct = Math.floor(Math.random()*5);
UIALogger.logMessage(whichProduct);
}
random();
This will give a random number in [1,4] whenever i call this function.
I want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I find the next nonalphanumeric or '_' character in a string in AS3? I need to strip a string from another and get the remnants. The string I need to strip is a Twitter username, so it can be variable length, but always starts with an '@' and can only contain alphanumeric characters or underscores.
For exampl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Excel interop libraries incompatible with ASP.NET? I have a simple web application which uses the Excel Interop libraries to read and insert into an Excel spreadsheet. I'm taking my due diligence to ensure that I don't use two dots and to ensure that all COM object references are released by using Marshal.ReleaseCom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WCF REST and SOAP Service without WebServiceHostFactory Despite reading a number of posts eg (This one seems popular) I can't seem to expose my service as multiple endpoints that are compatible with both the SOAP and REST protocol - my problem seems to be with the
Factory="System.ServiceModel.Activation.WebServi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can I use a SetTimer() API in a console C++ application? I have a console application that is using a DLL file that uses a SetTimer() call to create a timer and fire a function within itself. The call is below:
SetTimer((HWND)NULL, 0, timer_num, (TIMERPROC)UnSyncMsgTimer)) == 0)
It is expecting to receive timer me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Add active class to current page navigation link Hi I need help making my navigation show the active link highlighted on current page. In other words when I click on a link to go to a new page I want to see that link highlighted after the new page is opened. I could handle this with CSS by adding a class to the acti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Resolving LINQ Parameters that were passed to method in which LINQ Expression is I am working on LINQ to SQL translator. It should translate LINQ queries to SQL. I am focused on creating WHERE part of the query.
I am traversing LINQ Expression tree and then I get to a problem that I can't get to the value of actual ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting error while converting C MEX-file into pure c++ i am converting some C mex-files into pure C++. obviously i need to convert mxarrays and mex functions.
as you see in the code, it creates an mxarray at line 60,
mxArray *mxGradient = mxCreateNumericArray(3, out, mxDOUBLE_CLASS, mxREAL);
and at the line 61 a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C send() to socket and select() function I want to send(socketfd, ...) and I'm using the select() function. Should this file descriptor be in the writefds, or in the readfds?
A: readfds are for sockets you want to read from, writefds for those you want to write to. So writefds in your case.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7531661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Javascript (jQuery) remove last sentence of long text I'm looking for a javascript function that is smart enough to remove the last sentence of a long chunk of text (one paragraph actually). Some example text to show the complexity:
<p>Blabla, some more text here. Sometimes <span>basic</span> html code is used but t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Install vFrabric tc server (as bundled with STS) into Linux EC2 instance? I have been developing a Spring MVC web app using Springsource Tool Suite (STS). STS comes with vFabric tc server developer edition I believe. When I deploy the .war file into my EC2 Linux AMI instance running tomcat6, there are incompatibilit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Color of date tag in org-mode publish to HTML and boxes around text I am using org-mode version 7.4 to organize all of my research notes and then export to HTML so I can create a sort of personal wiki. I just have two questions:
1) Upon export to HTML, the org-mode date stamps appear a very faint gray, is there anyw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why is the constructor for my class not being called in this case? I am creating a new class instance like this:
Cube* cube1;
There is code in the Cube constructor, but it's not being run! Is this usual?
A: You're actually not creating any instance.
the variable you're calling cube1 is a pointer to a Cube.
To crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Ajax request works in safari, but not in Firefox (Vimeo oembed) I'm trying to get a vimeo embed code via the oembed API (json).
It works fine in safari, but in Firefox, it seems that the json returned is not interpreted correctly, as I get a null value instead of the javascript object (in the success method).
i'd gi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySql Strange Runs Of Command Denied Errors I have an intermittent problem with a MySql database.
Everything runs just fine for long periods of time, but then we suddenly get a run of errors being logged such as this:
MySql.Data.MySqlClient.MySqlException: UPDATE command denied to user
'user'@'ip.add.ress' for ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calculate number of days remaining I would like to calculate the number of days remaining before a date. In my database I have a timestamp corresponding to the end date. For example Friday 30. I would like to say something like that :
7 days remaining... 6, 5, 4, etc
Can you help me please ?
A: $days = round((times... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: regexp matching slug Please help with slug regexp.
I would appreciate if the code will be given in python.
Conditions:
1 #valid
1-1 #valid
1-1-1 #valid (infinite \d-\d)
1- #invalid
-1 #invalid
-1- #invalid
*NOTE 1 = \d
A: I would write it this way:
compiled = re.compile(r'\d(?:-\d)*$')
result = compiled.match... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: LLVM exceptions; how to unwind at the moment, i'm inserting variables into the beginning of block scope using CreateEntryBlockAlloca:
template <typename VariableType>
static inline llvm::AllocaInst *CreateEntryBlockAlloca(BuilderParameter& buildParameters,
const std::string &VarName) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: FrameTicks->Automatic in ClickPane causes constant processor activity I discovered that a MatrixPlot in a ClickPane causes one of my processor cores to cycle at about 50% activity if the option FrameTicks -> Automatic is present. I have cut down the code to the following (which doesn't do anything really):
a = Const... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Struts 2 Clarification needed I wonder how struts 2 validation is performed without specifying Validate = true in struts config xml. Can you anyone tell me the flow of Struts 2 validation using validation framework.
A: Validation happens through a combination of the "validation" and "workflow" interceptors. There ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to compile and run xv6 on windows?
Possible Duplicate:
How to compile and run xv6 on windows?
We are being taught xv6 in our course. Currently we use to login to linux server of our school using putty in windows.
There we make changes in source of xv6 (using vim), then compile and run it in qemu simply
make... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Very very basic query on programming in C -- displaying int value When I compile this little program instead of displaying "num1:7 , num2: 2",
it displays "num1:-1218690218 , num2:-1217453276". I think I'm not specifying what the program should display so its just giving me the int range instead.
I'm sorry.
#include... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: move a small circle around a big circle this i an interview question i encountered with HULU.
Given two circles, one has radius 1 and the other has radius 2. Let the small one rotate along the perimeter of the big one. how many circles will the small one rotates when it has moves one round inside the big one? and w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Threaded timed loops in Perl I'd like to, essentially, have a high-priority thread, that runs at a given interval (here 0.5 ms) and interrupts "everything", executes a short task, and then goes back to 'sleep'; using Ubuntu 11.04 and perl v5.10.1. The problem is, while I'm getting some sort of results, I am not sur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Big file upload causes browser to hang Small files go smoothly, even when uploading 100 5 Megabyte files at the same time (though it does only handle 5 at a time, queues the rest) but a 150MB file causes the browser to hang several seconds while it initiates.
function start(file) {
var xhr = new XMLHttpRequest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to collect functions results into one array and return this array? My php function looks like that
function generateTour ($lang, $db)
{
echo '<table border="0" cellpadding="0" cellspacing="0" width="100%">';
$title='title_'.$lang;
$txt='txt_'.$lang;
$result = $db->query("SELECT id, $title, $txt F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: looking for fastest way string to JSONObject in Android I used to use new JSONObject(string) to convert string to JSONObject. however, it is too slow performance-wise. Anybody have the faster solution?
A: Take a look at Jackson. They claim to be faster than any other Java JSON parser. It also parses the data in a s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Threads and processes? In computer science, a thread of execution is the smallest unit of processing that can be scheduled by an operating system.
This is very abstract!
*
*What would be real world/tangible/physical interpretation of threads?
*How could I tell if an application (by looking at its code) is a sing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Android permissions categories and DELETE_PACKAGES and INSTALL_PACKAGES permissions I have an application that requires the DELETE_PACKAGES and INSTALL_PACKAGES permissions. The app is NOT being distributed through the market and requires "unknown sources" to be enabled. When I install this application the install p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Change Background on DragEnter I want to change the background of a framework element when the DragEnter event is fired and revert its background when the DragLeave event is fired. Additionally, I want this applied in a style.
Heres what I have currently:
<EventTrigger RoutedEvent="Button.DragEnter">
<Be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: c++ full screen windows 7 I need code to resize my c++ program to fullscreen.
I use Dev-C++
I tried this but it doesn't work on windows 7
keybd_event(VK_MENU,0x36,0,0);
keybd_event(VK_RETURN,0x1c,0,0);
keybd_event(VK_RETURN, 0x1c, KEYEVENTF_KEYUP,0);
keybd_event(VK_MENU, 0x38, KEYEVENTF_KEYUP,0);
A: Don't fake k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Very Basic std::vector iterating std::vector<Ogre::SceneNode*>::iterator itr;
for(itr=mSelectedObjects.begin();itr!=mSelectedObjects.end();itr++){
itr->showBoundingBox(true); //here
}
I'm getting "expression must have pointer-to-class type" on the marked line, and I'm not sure why. Can anyone help?
A: Replace ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to embed jar in HTML There are a lot of resources on this already but I just can't seem to get it to work. What am I doing wrong? The jar file is at:
http://www.alexandertechniqueatlantic.ca/multimedia/AT-web-presentation-imp.jar
And the code I am using to embed is:
<APPLET ARCHIVE="multimedia/AT-web-presentat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Solr dismax boost query not working I have some video titles stored in my solr index. I query based on title but want to have the rating to influence the score. The rating is a typical 5star rating. This rating is stored within solr along with the videos. I tried using the dismax request handler but looks like solr ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Coalesce/IsNull functionality in LINQ How can I make a property in a class return a certain string if its a certain condition eg/empty
public class Person
{
public string Name{get;set;}
publc string MiddleName{get;set;}
public string Surname{get;set;}
public string Gender{get;set;}
}
List<Person> people = r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get innerHTML without using innerHTML I know innerHTML is supposed to be icky (and let's not start a debate. We're trying to phase it out at my work), but I need to be able to get the plaintext version of some HTML. Right now I have the lines...
bodycontents = document.getElementById("renderzone").innerHTML;
But I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does whitespace in my F# code cause errors? I've been tinkering with the F# Interactive.
I keep getting weird results, but here's one I can't explain:
The following code returns 66, which is the value I expect.
> let f x = 2*x*x-5*x+3;;
> f 7;;
The following code throws a syntax error:
> let f x = 2*x*x - 5*x +... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Android independent services how to? I was wondering if there is a way to create a service that will run as it's own process independent of an activity. I would want to service to run in the foreground so it would not be killed and also accessible to other .apk that wish to use it. How can I do this? I've read so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get Devise's model name I have:
devise_for :users
devise_for :admins
Then, on Sign In page, i want to show 'Admin Sign In' title when someone tries to access /admins/sign_in
How it could be done?
A: Use scoped views, they're described in the devise documentation, in the "Configuring views section".
Run:
rails gen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Blocking app from running on iOS 3.2 without blocking it on 3.1 I'd like to release an app that runs on old iPhones - that is, that runs on 3.1 - but blocking it from running on iPad's iOS 3.2.
Game runs perfectly on iPhones with iOS 3.1.3 and newer, and on iPads with iOS 4 and newer. However, some scaling issues o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Robohelp 8 Changing CHM Title Doesn't Work? I'm generating a Windows .chm file using Robohelp 8. The title bar of the generated .chm file is incorrect and needs to be changed. I've set the project title using File->Project settings, and regenerated the .chm file, but its title bar still has the old text. Is there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Problem in for-loop for add new input with a number increasing According to the example, i want in each times adding new input with putting number in fields(1, 2, 3), number increasing in each one from new input adding to name[+number increasing here+][] in the input.
Example: this example not worked true
I want thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Take disks online/offline I have a program that is doing raw IO to disks within Windows.
All works fine if the target disk is online. However, the default behavior in some Windows OSes is to have new disks initially offline.
I am having a hard time finding the correct API to do this on Windows. The command line eq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Converting from Java String to Windows-1252 Format I want to send a URL request, but the parameter values in the URL can have french characters (eg. è). How do I convert from a Java String to Windows-1252 format (which supports the French characters)?
I am currently doing this:
String encodedURL = new String (unen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: RValue references, pointers, and copy constructors Consider the following piece of code:
int three() {
return 3;
}
template <typename T>
class Foo {
private:
T* ptr;
public:
void bar(T& t) { ptr = new T(t); }
void bar(const T& t) { ptr = new T(t); }
void bar(T&& t) { (*ptr) = t; } // <--- Unsaf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to set the default value to the list box using jquery I need to set the this as a default value for my list box can any body help me out.
thanks
$(document).ready(function () {
var targetid = '<%:ViewData["target"] %>';
if (targetid != null) {
$("#lstCodelist").val(targ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: translating matlab script to R I've just been working though converting some MATLAB scripts to work in R, however having never used MATLAB in my life, and not exactly being an expert on R I'm having some trouble.
Edit: It's a script I was given designed to correct temperature measurements for lag generated by insula... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: living bytes increase without leak I'm making iPhone development and having (like lot of peoples) problems with memory management.
I'm often using "Instruments" in order to fix memory I have forgot to dealloc.
So I don't have memory leak anymore !
BUT... When I'm using the app the "Live Bytes" in Instruments is alwa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Proper syntax for container.dataitem binding to A Href tag I have a Datagrid with an ItemTemplate in it to convert a dataitem to a link. However, when I run the app it errors out with:
FolderID is neither a DataColumn nor a DataRelation for table Table.
Here is the line of code in question:
<b><a href="Performan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: javascript singleton scope problems with "this" Hi i am beginning using the singleton javascript design pattern, but i have some scope problems. Here i am just experimenting with a small ajax, retrieve and store singleton.
From within a function in the singleton i call another function (this.ready, called when the a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is NSLog causing EXC_BAD_ACCESS? I have a tablecell with a button and I want to hook this in to a method call in my main class.
I have it working, but I need to identify the button pressed. SO I have done the following:
in cellForRowAtIndexPath I do the following:
cell.myBtn.tag = indexPath.row;
[cell.myBtn add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Remap "te" to "tabedit" in vim I've started using Vim recently, and so far my main issue is with the buffer. I miss my Mac OS-style drawer with all open docs. I recently learned about tabs, and I think that's somewhat of a good solution, at least for when I have only a few files open. Opening a new tab is :tabe <fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JasperReports 4.1 + Hibernate 3.6 java.lang.NoSuchFieldError: BOOLEAN Iam getting an error when iam trying to call a report made in iReport 4.1.1.
Session sax = HibernateUtil.getSessionFactory().openSession();
Transaction transaction = sax.beginTransaction();
Map<String, Object> map = new H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Dreamweaver/MyBB/MySQl Database? I have MyBB installed on my server and apparently the template sets are stored via MySQL database instead of downloaded to the remote server. I would like to set up a path in Dreamweaver so I can directly edit template sets without having to go into the acp in MyBB. Otherwise, ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is NLTK's naive Bayes Classifier suitable for commercial applications? I need to train a naive Bayes classifier on two corpuses consisting of approx. 15,000 tokens each. I'm using a basic bag of words feature extractor with binary labeling and I'm wondering if NLTK is powerful enough to handle all this data without ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JavaScript Processing In Selenium And HtmlUnit I'm planning to use HtmlUnit in my Java application to test drive some website but I heard it may not be able to handle complex JavaScript, what is your experience with the level of complex JavaScript that both HtmlUnit and Selenium can handle?
Thank you.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7531818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Http Post with Blackberry 6.0 issue I am trying to post some data to our webservice(written in c#) and get the response. The response is in JSON format.
I am using the Blackberry Code Sample which is BlockingSenderDestination Sample. When I request a page it returns with no problem. But when I send my data to our we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Use JSONP to load an html page I'm trying to load an external page using JSONP, but the page is an HTML page, I just want to grab the contents of it using ajax.
EDIT: The reason why I'm doing this is because I want to pass all the user information ex: headers, ip, agent, when loading the page rather than my servers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Can't read achievements for certain users I'm experiencing some inconsistent behaviour when trying to read achievements from my app. I have 3 tests accounts, 2 of which I can read achievements. However the 3rd account always returns an empty array. All 3 accounts have the publish_action permission and I've tried usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: textField:shouldChangeCharactersInRange:replacementString: How can I correct this code. I want only numbers and range should be not exceed to 10.
My code is
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
NSUInteger newLength = [textF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sqlite3 / Webpy: "no such column" with double left join I am trying to do Sqlite3 query via webpy framework.The query works in SQLiteManager. But with web.db i get "sqlite3.OperationalError no such column a.id".
Is this a webpy bug?
import web
db = web.database(dbn='sqlite', db='data/feed.db')
account = 1
query='''... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Code equivalent of android:cropToPadding In my android app, I create thumbnails in xml this way:
<ImageView android:id="@+id/my_thumbnail
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@color/white"
android:padding="2dp"
android:sca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Inserting Clobs in Oracle with JDBC is very slow Hi i am trying to insert a clob using the jdbc, through a maven plugin. But it is taking about 10 minutes to insert. This is exceptionally slow, and i was wondering if there was another way to do it. The clob needs to have line breaks. My insert is being called fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jquery AJAX XMLHTTPRequest has no useful information in error state I'm running into brick wall after brick wall. I have an application that is making an AJAX call, but seems to never hit the server. Instead, jQuery returns with an error status in the XMLHTTPRequest object. If my XMLHTTPRequest object returned is ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get Url.Action inside extension method I'm using MVC3 (VB) with the Razor view engine, and I'm using the Chart helper to create a number of charts. I've got this code working:
In the view:
<img src="@Url.Action("Rpt002", "Chart", New With {.type = "AgeGender"})" alt="" />
which triggers this action in the Ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Spoon-library acts different on localhost then on webhosting I have a problem regarding the spoon-library (www.spoon-library.com). I have a folder with subfolders, each subfolder is a 'reference' from my dad his company. (although its translated to my native language). Each of the 'reference' subfolder contains imag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ForkJoin Framework Quicksort -- Collections does anyone know if a version of the QuickSort algorithm exists which uses the ForkJoin Framework introduced in Java7 and takes Collections as input? I've found some wich simply sort Integer-arrays and I'm currently rewriting it for use with Collections, but I don't want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Drupal Views- Filtering by multiple taxonomy terms I have a View set up to display featured Article nodes. For each node there are 2 taxonomy vocabs to use. The first is 'Featured' with a term 'Yes'; the second is 'Section' with terms: Home, Info, Blog etc. If a node has the term Yes (Featured vocab) and the term Bl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Encrypt Data in one "slot" in database I read over a great tutorial on how to encrypt the data using a symmetrical key in one column.
Click here to view it.
This has helped me set up a column for encryption, which is what I need. My problem is that I will constantly be updating rows in my database - so copying over... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Issue when using a custom font - "native typeface cannot be made" I'm trying to use a font I found on the internet, but the problem is that I get an FC with "native typeface cannot be made".
Here is the code in the getView of my ListVIew:
holder.tv_SuraName =(TextView)convertView.findViewById(R.id.Start_Na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: If using Xcode to make an iOS calculator, how would I add a decimal button? How to add a decimal button so I don't have to do whole numbers? If i wanted any decimal number like 1.2 or 100.4 or 3.0 or anything like that, how would I add it to the calculator I'm making?
A: You're not giving me much information in you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Eclipse IDE - Is it possible to have detached windows not always on top? Basically I have multiple monitors for development with Eclipse. I detach some of the windows such as the "Console" view so that I can have it fill my monitor. This is great as I can fill up my screens.
However in some cases I also want to have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Why does concurrent GC sometimes cause ExecutionEngineException (per MSDN)? According to MSDN, there is a "tip" stating that a .NET application running under heavy load with concurrent garbage collection (either <gcConcurrent enabled="true"/> or unspecified, since it's the default behavior) may throw an ExecutionEng... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What is the best way to CRUD dynamically created tables? I'm creating(ed) an ASP.NET application (SQL Server backend) that allows the user (a business) to create their own tables and fields. They will all be child tables of a parent table (non-dynamic) and have proper PK/FK relationships (default fields when the tab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: "Unresolved overloaded function type" while trying to use for_each with iterators and function in C++ //for( unsigned int i=0; i < c.size(); i++ ) tolower( c[i] );
for_each( c.begin(), c.end(), tolower );
I am trying to use a for_each loop in place of the for loop for an assignment.
I am unsure why I am getting thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to rename a single column in a data.frame? I know if I have a data frame with more than 1 column, then I can use
colnames(x) <- c("col1","col2")
to rename the columns. How to do this if it's just one column?
Meaning a vector or data frame with only one column.
Example:
trSamp <- data.frame(sample(trainer$index,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7531868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "446"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.