text stringlengths 8 267k | meta dict |
|---|---|
Q: How can i figure out the type of all the scripts in the directory I want to know How can i figure out the type of all the scripts in the directory "/usr/bin" ?
A: I think what you are looking for is file(1) which identifies file types based on magic numbers. Wrap this in a shell script like the one below to get a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: what i can set create/last modified/last access of a file? in: How to get create/last modified dates of a file in Delphi? i have found as get create/last modified/last access date/time of a un file, but for set this value in a file, what i can to do?
Thanks very much.
A: Try the SysUtils.FileSetDate function from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Two queries faster than than one? I have a table with columns:
CREATE TABLE aggregates (
a VARHCAR,
b VARCHAR,
c VARCHAR,
metric INT
KEY test (a, b, c, metric)
);
If I do a query like:
SELECT b, c, SUM(metric) metric
FROM aggregates
WHERE a IN ('a', 'couple', 'of', 'values')
GROUP BY b, c
ORDER ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Ext JS - Problems getting the real char typed ? Here is my problem... Considering this code...
'keydown': function (textThis,e) {
var cc = String.fromCharCode(e.keyCode);
Ext.MessageBox.alert('Caracter',cc);
}
I always get the the char I type but in uppercase... Even if I type it in minus... How can I solve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a way to download partial part of a webpage, rather than the whole HTML body, programmatically? We only want a particular element from the HTML document at nytimes.com/technology. This page contains many articles, but we only want the article's title, which is in a . If we use wget, cURL, or any other too... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Should a table connecting two tables have its own ID? I have two tables:
First
------
id
name
Second
------
id
name
And another table connecting the first two:
Third
------
first_id
second_id
The third table is there only to resolve the M:N issue. Should it have its own ID?
A: No, you normally don't need an id f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Migrating MVC 3 site to Azure web role I am trying to migrate an existing MVC 3 web site to an Azure web role. My development environment uses a host header:
lcladmin.mysite.com
The host header is setup in my hosts file to point to 127.0.0.1. If I use the default settings in ServiceConfiguration.csdef the site loads... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Database Selection and Datetime Sorting (real-time Python dashboard) I have a dashboard for real-time updates and latest notifications.
Imagine this is a blogging system where you can subscribe to authors posts and comments.
I then want 2 type of notifications to appear in my dashboard, sorted by insertion time:
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: XML parser Jar confusion I need to know which jar contains the following class
com.ibm.xml.jaxp.datatype.XMLGregorianCalendar
kindly help me
A: Use the following code snippet:
System.out.println(com.ibm.xml.jaxp.datatype.XMLGregorianCalendar.class.getProtectionDomain().getCodeSource().getLocation());
A: this jar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Secure hidden variables in rails? When I've worked with drupal, where you might normally pass variables through the client via a hidden field on a form, there was an option to use a 'secure hidden field', which meant that the hidden values you were passing through were done via the authenticity token and maintained ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I implement incremental search on a listbox? I want to implement incremental search on a list of key-value pairs, bound to a Listbox.
If I had three values (AAB, AAC, AAD), then a user should be able to select an item in the available list box and type AAC and this item should be highlighted and in focus. It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Reorder legend without changing order of points on plot I keep running into this issue in ggplot2, perhaps someone can help me.
I have a plot where the order of the variables in the legend is in reverse order to how they are displayed on the plot.
For example:
df=data.frame(
mean=runif(9,2,3),
Cat1=rep(c("A","B","... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: int/char conversion in network frames with C++/boost::asio Using g++ and boost::asio, I'm trying to format network message frames containing the size of the data to be transmited:
+----------------+------------------------+
| Length | Message string |
| 4 bytes | n bytes |
+----... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: setContentView causes Null Pointer Exception I have my main activity trying to call a method from an imported package. I have posted the call and method below. The error message I am getting is that the line
setContentView(twitterSite);
I am getting a null point exception!
TweetToTwitterActivity twitter ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: rspec+capybara+selenium+spork not closing browser The same problem with rails tests as here, but on Mac OS X.
And when I start specs next time, they hang on js specs until I close the browser manually. And those tests fail, I need to restart specs again.
What's the solution here?
A: https://github.com/timcharper/sp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: my first jquery plugin: need tips for doing it better + timeout problem I'm building my first jquery plugin and would like some tips to do it better. I also have an error in my code which I like to get rid off. I'm trying to refresh the content of my widget via a setTimeout in my ajax success callback. it is working... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Attempting to globally cache data in a C# WebService but having issues I am working with an API that runs pretty slowly, and as a result my application is taking a pretty big performance hit. I have managed to optimize some of the code and cut down the loading time considerably, but I would also like to cache some d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Keep on running an app after the screen auto-locks - Phonegap (Android/iOS) I am developing an app that tracks the users movement over GPS (bike riding in particular) and I realized that when the screen auto-locks, the app would stop running (if I'm not mistaken, I'm not completely certain on this).
Is there a way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Sending an email from a batch job that is defined in a JSP I have a batch job that runs outside any request, response scope.
I would like to be able to define the email content in JSP since the email content is primarly an HTML document with placeholders for values.
Basically, I would like to be able to run a JSP ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does Hashtable not take null key? Why does Hashtable not take a null key?
Also why does HashMap allow null keys?
What is the purpose of making these two classes Key behaviour so different?
A: It is just an implementation detail.
Hashtable is the older class, and its use is generally discouraged. Perhaps they sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Javascript minification and HTML5 manifest We have created a HTML5 application which also works in offline mode. The HTML element includes the manifest attribute and our manifest includes all necessary files to be able to use the application offline. We are trying to find a way to minify our javascript files in an a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using OpenGL in Matlab with Java? In Matlab I have
import javax.media.opengl.GL;
How do I now use OpenGL? Can anyone provide a very small sample?
Please note: If this wasnt in Matlab then it would be easy. But the question specifically relates to using this in Matlab.
A: MATLAB comes with the JOGL 1.x libraries a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Disable the building of one project in an Eclipse workspace I have a workspace with some projects of mine and a really big project, which takes two hours to be built. I would like to disable the automatic building of this wide project while maintaining the build enabled for the other projects. Is that possible? How ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I change the culture of a WinForms application at runtime I have created Windows Form Program in C#. I have some problems with localization. I have resource files in 2 languages(one is for english and another is for french). I want to click each language button and change language at runtime.
But when i am cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to create C# program that sends to local message queue. I have a C# Program that is attempting to send to my own local Windows message queue. I have installed message queue and out of desperation gave all access rights to "Everyone" on both the Message Queue itself and the Public queue that I'm trying to write ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Nivo Slider CSS Positioning Issue hoping someone may be able to help here; i've got what appears to be a css glitch on my nivo slider. Each slide is dropping about 20px below where it should appear. See what i mean here; http://whatscooking.goodstuffdesign.co.uk
Any help, is hugely appreciated.
Matt
A: You have not... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: implement Drag and Drop in UITable view **I need to implement Drag and Drop in my table view.I have a table View in left side of my screen and i have an image View on right side of an screen.
I need to Drag a image from my table view to right side image view.
let me explain ..
I have an class named as "myClass" whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: BASH while line numbers in file is smaller than x i want to make a loop that reads some files
and i want it to stop when wc output is smaller than 5 in this case
the file "file" contains the names of the files that will be worked on
for i in `cat file`
do
echo printing $i ...
a=`wc $i`
while [ $a -gt 5 ]
do
echo 3
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "My Contacts" group google contacts I just wrote a small python script that gets me all the groups on my google contacts list, however for some reason "My Contacts" does not show up in that. I'm using the 3.0 api and was having similar problems with the 2.0 api too. The following is an except taken from the Google 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MapOverlay draw() method optimization Here is my draw method. I have 755 roads and about 10 coordinates on each road. So I need two for loop to draw paths. It is running too slow. Any help on optimizing this code. Maybe I don't have to create some of objects.
Projection projection = mv.getProjection();
roadL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: redirect user depending on location I am getting the user's location from his IP address. What would be the best practice to redirect the user to preferrable language website only once? It has to be possible to pick another language and not be redirected again.
A: I would say store a cookie with location preference... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sorting JTable causes NullPointerException I have a JTable which, when the appropriate button is clicked, begins to fill with the results of a file tree walk that goes on in the background. This works fine.
I then decided I want the table to be sorted. After some reading I created a TableRowSorter and set the table ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Generated Div cause havoc I'll try and be as adequate as I can describing this problem.
I'm developing a web-application in Vaadin (GWT-like framework) where I make use of modal windows for displaying tables and other information.
The modal windows are in varying sizes but I'd like to use the same CSS classes for a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make hidden div which appears when file is found? I was trying to make hidden div which shows on when .txt file is found.
I want the div to show the content of the .txt file.
Is that possible?
I have tried to make it by using jQuery but without success.
Idea is simple: div box with constant dimensions which s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add a column to a sql server table with a asp.net form I am using C# form and need to enter a column name to the "varchar(100)" textbox and submit the form to create a column on the "Products3" table in sql server. I am getting this error "Error Creating column. Incorrect syntax near 'System.Web.UI.WebControls.TextB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DrawRect does not get called in a simple customized UIView In the code below, my drawRect method is never called. Note tht HypnosisView is inherited from UIView. Can some experts here help me out? Thanks a lot!
- (void)drawRect:(CGRect)rect
{
// This code is never getting called....
NSLog(@"in drawRect...");
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Incorrect url generated by URL.Action and Html.ActionLink I have routes:
routes.MapRoute(
"NewsRoute",
"News/{newsId}/{newsTitle}",
new {
controller = "News",
action = "News",
newsId = UrlParameter.Optional,
newsTitle = UrlParameter.Optional
}
);
routes.MapRoute(
"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Injecting content into specific sections from a partial view ASP.NET MVC 3 with Razor View Engine I have this section defined in my _Layout.cshtml
@RenderSection("Scripts", false)
I can easily use it from a view:
@section Scripts {
@*Stuff comes here*@
}
What I'm struggling with is how to get some content in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "369"
} |
Q: JNA: Read Data back from memory to Structure I want to estimate deviceinformations of a printer with JNA.
interface GDI32Ext extends GDI32
{
public static class DEVICEMODE extends Structure
{
public static class ByReference extends DEVICEMODE
implements Structure.ByReference
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Difference between servlet/servlet-mapping and filter/filter-mapping? As part of exploring/learning Struts2, JSP and Servlets, I see from here and there that servlets and servlets-mapping can be used in web.xml. However, Struts2 mentions filters and filter-mapping too for web.xml.
What is the difference between both... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Partitioning by Year vs. separate tables named Data_2011, Data_2010, etc We are designing a high volume SQL Server application that involves processing and reporting on data that is restricted within a specified year.
Using Partitioning by year comes to mind.
Another suggestion is to programmatically create separate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Random NSNumber from array I'm trying to make an IBAction pick a random float from an NSMutableArray (10.00, 2.56, 4.25, 1.95).
Here's what I tried:
In the viewDidLoad:
NSMutableArray *numberPicker = [NSArray arrayWithObjects:
[NSNumber numberWithFloat:10.00],
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reopen SQLiteOpenHelper when my application is stopped as "close()" was never explicitly called on database" I'm using the SQLiteOpenHelper. When my application is normally closed, the database is closed normally in the method onDestroy(), too. When it's force closed, the database is left open and later, when my app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: run WebClient.DownloadStringCompleted before loading MainPage_Loaded in silverlight I want to load this event handler before MainPage_Loaded
WebClient wc = new WebClient();
wc.DownloadStringCompleted += new
DownloadStringCompletedEventHandler(wc_DownloadStringCompleted);
wc.DownloadStringAsync(new Uri("./ImageLi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SCALA Lift MongoDB MongoRecord compilation errors I'm attempting to setup a simple DB for the Scala Lift (2.4) framework
Below is my User.scala model.
package code.model
import net.liftweb.mongodb._
import net.liftweb.json.JsonDSL._
import com.mongodb._
class User private() extends MongoRecord[User] with ObjectIdP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make binding between XElement and ListBox ? I hold XElement - that appear as this
<Root>
<child1>1</child1>
<child2>2</child2>
<child3>3</child3>
<child4>4</child4>
</Root>
I want to show this Element + value on some ListBox.
So i define this xaml - but nothing work ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NSpredicate with round function I need to use NSPredicate with a round function.
e.g. :
Child* child1 = [self myFirstChild];
NSPredicate *predicate = [NSPredicate predicateWithString:@"round(SELF.age) > 12"];
BOOL twelveOrAlmostTwelve = [predicate evaluateWithObject:child1];
There is no such function in documentati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to: Save position/order of UITabBarItems after the have been reordered Okay, I have searched around for a answer to this question and so far come up with none.
Heres my question: I am using the default TabBarApplication provided by Apple. And since I have created 10 tabs it is using the default reordering proce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Select a value in a language if in another is empty I have a table with key_id, id, text, lang.
I need to retrieve all the text fields (so without limit) in the table in a language (eg. DE), but if in this language the field is empty, I need to retrieve it in English.
Example:
key_id, id text lang
1 1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can i put part of a div inserted in a div outside? I have 3 divs like this image:
Two of those divs have the same width and height and the last one (red div) should go outside but not all, only a part (10%) I tried margin-left: -10px; but it didn't work.
Thanks.
A: Try using absolute positioning and assigning ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Evaluation Order of Subscript Operator Does there exist any order for evaluation of expressions in case of an array.
If an expression E is of the form E1[E2], where E1 & E2 are also expressions, is the order of evaluation of E1 & E2 fixed ?
Here is my code :
#include<stdio.h>
int main(){
int a[5] = {1,2,3,4,5};... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Finding new entries in a MySQL table Is it possible to find out if new entries where made into a MySQL table?
For example a table has 10 records and someone adds 2 new.
How do I write a php line to detect the new records (only) and insert them into another table?
Any help would be appreciated.
A: New is relative. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NSManagedObject delete not working, can still retrieve the object I am trying to delete a managed object, is there something I am missing?
[managedObjectContext deleteObject:managedObject];
NSError *error;
if (![self.managedObjectContext save:&error]) {
NSLog(@"Whoops, couldn't save: %@", [error localizedDescr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF UserControls interfere with each other Simply put: I have a UserControl that contains a DataGrid and some dependencyproperties to apply binding to the DataGrid.
Let's say I have 2 of these controls on a page. When I select a row in one control, this row is also selected in the other control! This is NOT somethin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Asp.net MVC - Map Claim identity to custom user identity I'm trying to figure where is the best extension point in the ASP.NET MVC3 infrastructure to map custom user informations (loaded from local database) after received the Claim Authentication from Azure AccessControl Service 2.0
I tried to achieved this by ove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why ThreadPoolExecutor has BlockingQueue as its argument? I have tried creating and executing ThreadPoolExecutor with
int poolSize = 2;
int maxPoolSize = 3;
ArrayBlockingQueue<Runnable> queue = new ArrayBlockingQueue<Runnable>(2);
If i try 7th,8th... task continuously
threadPool.execute(task);
after the queue... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Extending QString to overload construction I would like to extend the QString class from Qt to provide some convenience for converting to/from various string types.
For example, I would like to be able to write lines like:
MyStringClass myString(_T("Hello World!"));
and get a MyStringClass object that behaves just ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Handling unreadable/not found files in MVC (PHP) I'm still writing my simple MVC for learning and eventually make a framework for my applications and now I'm writing the routing class and have faced dilemma. Since this community is big, I wanted to hear different opinions before continue. At some point entered URL m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Connect to exchange asyncronously using powershell I have the following code to connect to my office 365 account using powershell:
$Cred=GET-CREDENTIAL
Write-Host "Connecting..."
IMPORT-MODULE MSONLINE
CONNECT-MSOLService -credential $Cred
$s = NEW-PSSESSION -ConfigurationName Microsoft.Exchange -ConnectionUri http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to position Highcharts dataLabels depending on the value? I'm using Highcharts to display a bar chart, with 2 bars overlaying each other, and a dataLabels at the right of them, displaying the exact value.
The problem here is that when the value is above 80%, the label is overflowing from the chart int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: iphone calculator keyboard I am pretty new to iPhone development, so I don't know if this is even possible, but is it possible to customize a keyboard so it looks like a calculator? I know how to use inputAccessoryView to put buttons on top of the keyboard, but I would like to put the add, multiply, divide and subtr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Intellij - how do I add a text file to the resources I am reading a *.properties file using properties.load and a file name.
I want to add the properties file to the jar or to the classpath.
*
*How do add a file to the jar?
*How do I read from the jar?
A: Place the file in the source folder, it will be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does facebook-java-api support app request I'm currently trying to add the facebook apps request from our java server using facebook-java-api (3.0.5-snapshot) (http://code.google.com/p/facebook-java-api/)
But it's seem that it's support everything except the apps request.
I was wondering if anybody manage to make ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Selenium Export test cases as PHP-phpunit is missing in my Selenium IDE 1.2.0? I really in need of converting/exporting my test cases to PHP. But PHP-phpunit formatter in Selenium IDE 1.2.0 is missing. Can you please tell me how can I get it? Its really urgent please.
A: The PHP formatter has been removed starting ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Jira PHP SOAP updateissue doesnt work I tried updating component for issue in Jira using SOAP in PHP, it didnt throw any exception, it returned isuue but component was never updated.
Any ideas?
here is my sample code:
$myIssue="";
$myIssue['components'][] = array("id" => "10769", "name" => "component name");
$soap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Methods for categorizing 'plugin' DLLs In my team, we are creating a .NET (WinForms) application that loads additional assemblies (DLLs) as pluggable components.
These actions needed to be classified into product categories, in order to be presented in the GUI in an organized way.
We've just started to implement thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I recognize a mouse click on a line? I have a WPF application. There is a canvas. I draw line when user drag the mouse over the canvas (from mouse down to mouse up). I take initial point, when mouse is pressed down and final point, when user does mouse up. Then I calculate the distance and draw the line in si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: flot: integration example with fancybox and like? I'm using flot to display a set of graphs on a web page. Now I'm looking for a floating window that's quite popular these days, like those used for showing a gallery.
fancybox looks quite nice and capable. My question is: has anybody used fancybox to display a flot ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Avoid bitmaps being recycled automatically in android In my application, I am storing some bitmap images in the HashMap.
with the hashmap as a member of a class ImageHolder.
I need the images in the HashMap in my program for further processing on the images.
When I run my application, the bitmap image is automatical... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Python: Type error when drawing contour plot despite using the search function I've been unable to find an answer. I got two assumptions, but don't know in how far they may apply. Now the problem:
I'd like to plot a contour. For this I've got here the following python code:
import numpy as np
import matplotlib.pyplo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Programmatically start an Eclipse IApplication does anyone know how to programmatically start an Eclipse IApplication?
It is an commandline Application and I want to write unit tests for it.
It should work so:
org.eclipse.equinox.app.IApplication app = new myApp();
try {
app.start(???);
} catch (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to get halfbrothers/sisters in SPARQL? I have this RDF dataset with a family that has the hasParent realtionship. To search for all brother and sisters pairs I have the following query:
SELECT DISTINCT ?name1 ?name2
WHERE {
?subject1 oranje:hasParent ?object .
?subject2 oranje:hasParent ?object .
?su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Wordpress footer has body background image overlapping On http://www.teampaulmitchellkarate.com/ the footer where "this website is created by" should continue all the way down and not cut off half Grey(its showing part of my background image).
I've made the BG image smaller but then it cuts off in the middle of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: My first try to output my Drupal7 module as a custom block failed This is my first try to create a Drupal module: Hello World.
I need it to have it displayed as a custom block and I found this can be implemented by 2 Drupal7 hooks: hook_block_info() and hook_block_view() inside my my helloworld module. In Drupal 6 w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Set_radio codeigniter from database [EDIT REGISTRY] I have following code:
echo form_radio($arr_gen_fem,
($btn_value == 'Editar') ? ( isset($row_new_person) ? $row_new_person->gender: set_value('gender')) : '');
I need display the value from database for edit registry, but this not display.
The prob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JQuery DatePicker -> dateformat, how to output dayNamesMin instead of dayNamesShort? Hi there i am trying to output the selection of a date. Using the D option gives me days like 'Thu' or 'Mon'. When i try to localize this format using the 'nl' localisation, the the output is again nicely in 3 letters such as 'don' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: System Setting ties notification volume to ringer volume By default Android treats the Ringer and Notification sounds as one audio stream.
To change this you sould deselect the check box labeled "Use incoming call volume for notifications" on android settings.
Is it possible to do it programmatically?
A: Android - ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: nanosleep() syscall waking up with bus error? I'm looking at a core dump from an embedded MIPS Linux app. GDB is reporting SIGBUS, and the thread handling the signal appears to be sat in a syscall for nanosleep - the higher level code basically called sleep(verylongtime);
Assuming another process didn't send that si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Variables in memory on server once session times out I've created a web site that is used mainly to do reporting on multiple locations and e-mail reports and things like that. Since its dealing with a lot of information I've set it up so it grabs a bunch of information at one time then I go through it with linq and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Non-JavaScript pop-up for non-JavaScript users? I was wondering if it's possible at all to do something like the following:
Let the website examine whether a visitor has Javascript enabled or not. If not a pop-up will appear telling them to enable JavaScript for a better website view.
It doesn't have to be a pop-up,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Operation on 2 entities - how and where to design? There are interfaces
interface Male {
boolean likes(Female female);
}
interface Female {
boolean likes(Male male);
}
There's also interface
interface GoodCouple {
Male getMale();
Female getFemale();
}
You're given 2 sets:
Iterable<Male> males = ...;
Itera... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Passenger and Resque - Restarting on Deploy I'm rolling out resque as my scheduler in my newest app, and noticed an interesting little quirk. The app we're building is just a REST API, and isn't being hit all the time. So, what it IS doing all the time is running some scheduled every two minute jobs to update the da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery: Match a list with less than X items I want add a class to lists, but only if they have 3 or less items:
var ol = $('ol');
var len = ol.children('li').length;
//0 based?
while(len < 2) {
$("ol").addClass("small-list");
}
http://jsfiddle.net/hryZ4/2/
How would I add such a conditional clause?
All I fou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: bad reference to MS.Practices.Data I have two project who reference to the same path of:
Microsoft.Practices.EnterpriseLibrary.Data.dll
I use
Database database = DatabaseFactory.CreateDatabase();
one project compiles OK and the other shows error:
Error 1 The type
'Microsoft.Practices.EnterpriseLibrary.Common... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Storing org-mode TODOs inside source code I like keeping TODOs inside my source code next to lines that need updating. Can I include these in Org-mode's agenda?
A: You would need to add those files to your org-agenda-files. But this is going to clutter your agenda with all the stuff inside your source files and the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Xcode environment variables for sub projects My current Xcode iOS project uses a number of static libraries. The different code modules in the static libraries have various levels of debug that I can switch on/off with #defines from within that module.
What I want to do is have all the debug default to off in the li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: MochaUI Post data and MochaUI.updateContent I'm playing around with mochaUI and am having a hard time getting POST data to work correctly. I have a form and a submit button. I am using MochaUI.updateContent to work within panels. In the main panel, I have the form and the following js:
<script type="text/javascript"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make CustomClass savechanges() working in Linq? I am trying to get Linq going on Northwind and I am really lost..
I have a CustomClass named Ordr with the properties OrderID, EmployeeID, _ShipRegion
I do a simple query:
Dim query = From c In dbcontext.Orders _
Where c.EmployeeID = 2
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Vanilla JavaScript version of jQuery .click So maybe I'm just not looking in the right places but I can't find a good explanation of how to do the equivalent of jQuery's
$('a').click(function(){
// code here
});
in plain old JavaScript?
Basically I want to run a function every time an a tag is clicked but I don... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: Referencing crosstab grand total field in another formula I need to refer the grandtotal field generated in the cross tab - in a formula field.
Is there a way to do it? The database fields can be referenced using table.fieldname but how to identify the grandtotal column?
I then need to show a curve based on the tota... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is there no built-in Set data type in Haskell? Is there anyone who can explain to me why there's no Set datatype defined in Haskell?
Sidenote:
I'm only learning Haskell as part of a course on logic in which set theory is very important thus it would be really handy to have the notion of a set in Haskell. Having... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How to get sign of a number? Is there a (simple) way to get the "sign" of a number (integer) in PHP comparable to gmp_signDocs:
*
*-1 negative
*0 zero
*1 positive
I remember there is some sort of compare function that can do this but I'm not able to find it at the moment.
I quickly compiled this (Demo) which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Ninject WCF Error OK, I'm at my wits end after hunting this error down for the past two days:
Error activating IUserIssueRepository
No matching bindings are available, and the type is not self-bindable.
Activation path:
2) Injection of dependency IUserIssueRepository into parameter userIssueRepository of constructor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Silverlight 4. Need same instance in multiple groups I want to display a class presenting a worker who have different skills.
The datagrid must be able to group by Skills
So worker 1 have skills C# and Java
Worker 2 have skills SQL and C#
My grid should display the following
C#
*
*Worker 1
*Worker2
Java
*
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: String manipulation in R to create dataframe column I have an R dataframe(df) which includes a factor column, Team
Team
Baltimore Orioles
Kansas City Chiefs
...
I just want to create a new column, nickname, which just refers to the last name
Nickname
Orioles
Chiefs
As a first stage, I have tried splitting the fac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iTunes Connect: App name with special characters (german 'umlaute') Today I wanted to submit a new german app with an 'umlaut' in app name: "Börse".
There are plenty of Apps in the AppStore with special characters "Diät, Führerschein" etc.
When I enter the app name a JavaScript onBlur event send the name to a server... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is the Javascript date object always one day off? In my Java Script app I have the date stored in a format like so:
2011-09-24
Now when I try using the above value to create a new Date object (so I can retrieve the date in a different format), the date always comes back one day off. See below:
var date = new Date("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "397"
} |
Q: Dojox charting programmatically using store series I have been trying to get dojo charting working using the programmatic method. I have tried the following but the graph is not showing.
//Requirements
dojo.require("dojo.data.ItemFileWriteStore");
dojo.require('dojox.charting.Chart2D');
dojo.require('dojox.charting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Primary Key Generated From External System What are the general guidelines for the following scenario:
You need to create a table where the PK is a value that is generated from an external system. It is unique, similar to using a SSN.
Does it make sense for this to be the primary key? Especially considering it will... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Am I presenting my viewControllers correctly? I am developing an app which requires the user to login first before using the rest of the service.
This app is made out of tab bar controller with 4 tab bar items. All these 4 tab bar items has navigation controller.
Right now, I am presenting the loginViewController mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.