text stringlengths 8 267k | meta dict |
|---|---|
Q: Using EF over WCF How can I expose an Entity Framework IQueryable<T> over WCF?
I'm thinking of writing an N-tier application framework and I would like to use Entity Framework and WCF.
I am aware of WCF Data Services, but I do not want REST or HTTP. This is because I want to have bidirectional communication between ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7583999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Combining different datatypes into a void type I am creating a search tree that would handle concatenated key. ie a key is a combination of multiple data types. For example key might be a concatenation of student_id,student_name,student_age...How should i create such a key when i pass these three values to create ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: 3 vertical divs floating with 1 background, background scrolls with shortest Well I have 3 div's floating next to eachother. And the 3 divs are in a bigger div with background image.
Now are the left and right div 600px in height and that is set and the middle (container) is auto height. But I want the background of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mdpi and hdpi images are not correctly loaded into the device android i have images accordingly int the hdpi and mdpi folder but when i run the application the hdpi images are loading fine on the high resolution devices but when i run on medium resolution 320 x 480 the hdpi images are loading not the medium ones. i ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: EF-Code First: Unable to create a constant value of type ''. Only primitive types ('such as Int32, String, and Guid') are supported in this context I am currently having trouble with some some linq using EF code first. My current code works fine:
My database model
public class MyDatabase : DbContext
{
public D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Problems with XSL and HTML tags I'm just learning XML and XSL, so please bear with me if this is a stupid question. I can't seem to find an easy answer to this, so I'm assuming I'm making a simple mistake that folks who write guides wouldn't think to address.
I have the following XML (just a snippet, here), that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: using pair and make_pair in standard C Is there any way to use std::pair and std::make_pair in C? seems that they are applicable in C++.
As I used
#include "utility"
it says it can not find such file
thansk for any suggestion
A: It's C++-only. C has no templates, so you will have to roll your own with macros to em... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to preview an ad using the preview_url in the creative_spec? I'm developing a Facebook connect site that manage Facebook Ad Campaigns and I have a small
problem.
When I'm creating an Ad using the API I receive the preview_url in the creative_specs of the ad created and then I want to show it in my website.
Howev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Dynamic Code Generation and security I encounter a problem with the JSON.Net serialization library and I wanted opinion of people more expert than me in CAS and AppDomain management.
To have more information on the problem, you can refer to the issue 21575. I submitted a patch for this issue.
The idea is that Dynami... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is this code Oauth 2.0 compatible? Facebook announced that all apps must migrate to OAuth 2.0 by 1st of October 2011
October 1, 2011 OAuth 2.0 Migration As we announced in May, all apps
must migrate to OAuth 2.0 for authentication and expect an encrypted
access token. The old SDKs, including the old JS SDK a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: android: Softkeyboard perform action when Done key is pressed I have an EditText. I want that after typing some text, when user presses the Done key of the softkeyboard, it should directly perform some search operation which I have also implemented in a button click event.
A: Try this
editText.setOnEditorActionList... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: Glassfish - Unable to open Admin Console - throws NPE I have a Glassfish 3.1 production server that is suddenly acting up. Last week it was fine. This morning the it is throwing an NPE when attempting to load the admin console (localhost:4848). It is also throwing this same error when trying to run 3 of the 4 app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ODBC Connection in Asp.Net (Connect and Dispose) I Open and Close ODBC connection while the page is up and running. When and where should i put the Connection.Dispose method? I tried on the Page_Disposed but it never makes it there.
Public Class _WepPage1
Inherits System.Web.UI.Page
Dim MyConnection As New Odbc.Odb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use Solr DataImportHandler with XML Files? I'm researching using DataImportHandler to import my data files utilizing
FileDataSource with FileListEntityProcessor and have a couple questions
before I get started that I'm hoping you guys can assist with.
1) I would like to put a file on the local filesystem in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Plone: Pass a variable from PloneFormGen Custom Script Adapter to Mailer Adapter I have a PloneFormGen form with a Custom Script Adapter that, on form submission, generates a new uid and creates a folder with that uid as its ID.
from DateTime import DateTime
uid = str(DateTime().millis())
target.invokeFactory("Fold... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Check for IP address in table - mySQL PHP Alright. I have this contest signup form with 3 fields that inserts it into a mySQL DB... as well as emailing it. I am adding this code that will check the form for the users current IP, and disallow the submission if it exists.
This seems to be executing without error now..... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Stuck with understanding this regex I'm stuck with this regex
((["0"-"9"])+ ("-")*)*
(["0"-"9"])* ["a"-"z"] ( ["a"-"z","0"-"9"] )*
( ("-")+ (["a"-"z","0"-"9"])+)*
What I understand so far is:
((["0"-"9"])+ ("-")*)*
can be a number between 0-9. The plus means it can be repeated (e.g. 1157). Not sure about ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Combine delegates with an OR operator Looking up values in two different tables with LinqToSQL, and combining the results based on what is found in what resultset.
How can I combine two Funcs based on given conditions:
// a filter for a LinqToSQL query:
Func<ComputerDetail, bool> filter;
// declare the default f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Rails 3, redirect from https to https, overwrite _path helper I want to have mixed https/http site.
Moreover I want have redirects from https to http(ie. after user login successfully it should redirect to root page at http).
Gems like:
*
*rack-ssl
*rack-ssl-enforcer
works perfectly but only If you want to h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Use ScrollViewer inside another Scrollviewer The structure of my wpf application is like:
<Scrollviewer>
<Grid>
<Scrollviewer>
<DataGrid>
My Goal is, if the DataGrid exceeds the height of the screen to use it's own Scrollviewer. At the Moment only the outside ScrollViewer is used and so i have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: how to read xml data from a DATASET object in c# I just used this code to read xml data from an XML file.It successfully reads the data from file.I Just want to know how can I read SelectSingleNode data from an xml dataset.
public DataSet ds =new DataSet();
public FileStream stream = null;
stream = new FileStream(s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Maximum Combobox items in Windows Forms I need to have a combobox that can have a large number of items (around 700), but there seems to be a limitation on how many items a combobox can contain (100!). Is there a way that this limitation can be extended?
UPDATE:
I cant really explain the scope here, but a search box... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Most efficient way of going about programming this in Java Okay lets say you have a simple program which took letter a-z, and if you typed in "c" it would do something, for example "e" might add 2 random numbers, "h" displayed the word "hello", "x" displayed the time etc.
Now how i'm attempting to go around this by... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Inserting a new entry to android calendar I am trying to add a new event into the android calendar. Here is the code I am using
Intent intent = new Intent(Intent.ACTION_EDIT);
intent.setType("vnd.android.cursor.item/event");
intent.putExtra("title", event.getSummary());
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to block inserts in SQL Server from the same user only - serializable isolation I have the following table
CREATE TABLE [dbo].[Test]([Id] [int] NOT NULL,[Name] [varchar](50) NOT NULL,
CONSTRAINT [PK_Test] PRIMARY KEY CLUSTERED
(
[Id] ASC
)
WITH (PAD_INDEX = OFF,
STATISTICS_NORECOMPUTE = OFF,
IGNORE_DUP_KEY=OFF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing the size of a standard About panel In my app I display a standard About window using the method orderFrontStandardAboutPanel:of NSApplication.
The panel thus presented has a size of 285x335 pixels. Is there a way to make it bigger?
Thank you.
A: You should probably read this article and this technote.
You'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IE8 opacity chops off background image I have a small problem with IE8.
I have the following fiddle: http://jsfiddle.net/H577j/
In this I have two div and a h3. The h3 has got a background image and is at the same time shifted negatively with margin.
The div that the h3 tag is inside has an opacity, made with both f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to load xml file in classic asp
Possible Duplicate:
How to parse xml with Classic asp?
I want to load one XML file in classic ASP.
I am using
blnFileExists = objDom.Load(Server.MapPath("\a\abcfiles\admin\image_name.xml"))
but when I write blnFileExists it gives me false.
What should I do?
A: Write the co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get post meta from a wordpress page to another? I have an about page in wordpress, I wanted its content to appear in the home page, I managed to do that using this code that I found through searching
<?php
$my_id = 256;
$post_id_256 = get_post($my_id);
$content = $post_id_256->post_content;
$content = apply_f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to make code wait untill an animation ends in android? I have an EditText with android:maxLength="17" and used buttons with onClickListener to update text of this EditText the process here is that when the text length reaches to 16 the EditText animate's towards left with distance of approx one character using ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: how to set width for messagebox in GXT/GWT? how to set width for message box? or how can we format the message that we display in the message box into multiple lines?
Thanks!
A: Use the setMinWidth and setMaxWidth functions to set the minimum/maximum width for the MessageBox in pixels.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7584105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: displayDiv.fadeIn('3000'); does not fade slowly on this webpage Technically displayDiv.fadeIn('3000'); should fade in the image slowly but on this page it does not:
Please see: http://jsfiddle.net/BpXbn/3/ (on hover of "ice white image")
Is there a possible reason for this or a way to fix this so the fade in works i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to save objects in list without unique ID (belongsTo, hasMany) When I have collection, where each object is unique but they belong to some parentId, how should I store it?
My Idea is
*
*ArrayList <MyType> objects_list; // to store those objects
*ArrayList <int[]> parents_list // to store parent_id vs int[] o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scrolled-menu UIComponenet in ios i want to build a scrolled-menu uicomponent like the image given below.could u guys help me which is the best place to start.Am i supposed to use a toolbar with button embedded with scroll? any help is much appreciated..
A: I would use a UIScrollView with your buttons as subviews... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rounding using regular expressions Is it possible to use a regular expression to perform rounding on a number? The problem is that I've got a lot of numbers to more than 2 decimal places in a file and I need to move them to 2 decimal places.
It's in source file so ideally I'd like to use Visual Studio's find and rep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to force ASP.NET forms authentication to use absolute URL for ReturnUrl parameter? When you use ASP.NET forms authentication, and you want to surf to a secure page like securepage.aspx, you would be redirected to this URL:
http://www.example.com/login.aspx?returnurl=securepage.aspx`
Is there a way to get the ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Unwanted dependency logging with log4j I'm using a project call JarClassLoader (JCL) which allows me to load a jar from an InputStream. This is very helpful, but I've found that the JarClassLoader leaves an log4j.xml file and loads that file at runtime. I'm using slf4j for my logging statements, and also using log... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: django - multiple queries into one I want to find the Records with a certain tag within 100 mile radius. I have two queries that work independently (see below) but I don't know how to put them together.
Also Records model has a foreign key pointing to the GeoLocation model called geo_location. I want to be able to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to set in a binary form of number at some position 1 or 0 Suppose I have an eight bit number, I want to set at each bit position number 1 or zero, it is dynamic situation.
Suppose for example such situation, user enters two numbers which are equal or differs only by one, and I want that at each iteration from 0 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to decrypt the text Thanks for previous replies
I am doing encryption and decryption for my log in authentication. i used
define('VECTOR', 'EXfPCW23'); //example, not the actual used VECTOR / KEY
$key = 'lolwatlolwat';
$filter = new Zend_Filter_Encrypt();
$filter->setEncryption(array('key' => $key));
$filter->s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Excluding an ID from a global styling I am setting the style of list items like so:
ul.list li {
background: #FFFFFF;
padding: 0 5px 0 5px;
height: 20px;
}
ul.list li:hover {
background: #F7F7F7;
}
but I want to define a special list item for the title of the list only it inherits the previously de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I setup libxml in Eclipse Indigo CDT C++ This all is under Mac OS X 10.6 and the libxml libraries seem to be in /usr/local/libxml2/libxml, I added this to the GNU C++ support but still I get errors for the code that uses libxml. I couldn't find anything that explains what to do to get it working and my projec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UIImageViews added to UIScollView never get deallocated, Memory Leak? This is my first post and you are my last hope.
I have a list with images in my iPad app, if you select one, my class MyViewController which extends UIViewController is loaded and shown (by just setting window.rootViewController, by using UINaviga... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to select distinct values from 2 tables with sort in one query? I have
*
*table1 : country, theOrderColumn1
*table2 : country, theOrderColumn2
I want to join DISTINCT country from these two SELECT statements:
SELECT DISTINCT `country` FROM `table1` ORDER BY `theOrderColumn1`
and
SELECT DISTINCT `country` ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: C Windows buffer size In windows lets say i'm using the recv function to receive data from a socket.
I'm curious how big would an optimal buffer be? I could make it 1024 bytes or I could make it 51200 bytes, or bigger. I'm wondering which one would be better for performance.
This doesn't only apply to the recv funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: session time out I use asp.net and set the session timeout using
Session.Timeout = 1440;
but the session timed out, is there anything shall I fix or adjust in iis 7 and 6
Best regards
A: This may work
<configuration>
<sessionstate
mode="inproc"
cookieless="false"
timeout="1440"
/>
</confi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to check sql version in wix Is there any way to find the sql server is 64 bit or 32 bit in machine using wix.
I am building the wix in visual studio 2010.Based on configuration the installer will install. At install time it will check sql is 64 or 32. If OS is 64bit but 32 sql is installed my installer will in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP: How to correctly loop through multi-dimen post arrays If I have a form with fields like this.
THERE WILL BE MULTIPLE ROWS OF THESE FIELDS HENCE THE SQUARE BRACKETS
<input type="text" name="txt-receipt-number[]" value="" />
<input type="text" name="txt-stock-number[]" value="" />
<input type="text" name="txt-re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting background color for Spinner Item on selection I am using the Spinner control in my code. I want the item to get highlighted (i.e., background color changed for that item) on selection. How can this be achieved?
A: create a xml: for ex:mybg.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Security concerns regarding username / password vs secret URL I have a simple site with a sign-up form. Currently the user can complement their registration with (non-critical, "low security") information not available at the time of the sign-up, through a personal (secret) URL.
I.e., once they click submit, they ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: deleting nested categories from a table I have a table called categories which looks like this
+-------------+--------------+---------------+
| id | catName | parentId |
+-------------+--------------+---------------+
| 1 | Category 1 | 0 |
| 2 | Category 2 | 0 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is Collections.syncronizedList effectively a vector? Does Collections.syncronizedList(new ArrayList()) effectively makes the arrayList a vector? If no then what extra does it do?
If yes then why was it introduced in the first place?
Thanks.
A: It provides a synchronized view (a wrapper) of any list. The differences... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Tabs and document.ready fn I used jQuery tabs to implement different versions of the same page in 3 tabs... I found out that if I load the first page then second and third tabs dont implement $.ready and whts inside it.
If I load the third tab then all tabs have proper jquery job done. The case is when I proc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a problem with a Zend framework site and windows web hosting? Is there a problem with a Zend framework site and windows web hosting?
The web hosting guy at the company I work for said that there is a problem and the site will only work on a linux based hosting. He gave me the credentials and told me to try.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Dynamically create more than one instance of class and reference it I want to dynamically create more than one instance of the BindingSource class to be public throughout my Form.
If I use Dim o As Object = Activator.CreateInstance(GetType(BindingSource)) it will only create one instance of this class.
How can I cre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is a document/NoSQL database a good candidate for storing a balance sheet? If I were to create a basic personal accounting system (because I'm like that - it's a hobby project about a domain I'm familiar enough with to avoid getting bogged-down in requirements), would a NoSQL/document database like RavenDB be a good... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to apply DRM on a .mp3/.wav file Can anyone help me to apply DRM on .mp3 or .wav. I know about DRM, but i have no idea about it's implementation process. If anyone has any idea on DRM's implementation(for .mp3/.wav) pleae help me. It would be great if this is for C#. It would be nice if any of you give me some S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Purpose of MySQL support for "where col = 1 = 0"? I recently discovered a statement in my code where I built up a MySQL statement that looks like the following:
select * from atable where col = 1 = 0
I was surprised that this actually is valid syntax - treated like "col = 0". I would like to understand why this is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to stretch an iOS UISlider I want to use the standard iOS slider in my application, but wanted it to be a bit stretched so it doesn't "disappear" under my finger... neither google or the books informed me about this.. Is is possible? thks!
A: Set a custom thumb image then, using setThumbImage:forState:
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7584192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simple jquery script not working in safari This script works in firefox, IE, and chrome, but not safari. Any ideas?
The really strange thing is that when I put an alert() at the end of the .get() callback, it executes (even in safari). So the code isn't crashing, it's just not modifying the DOM.
<html>
<head>
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sharer link with parameter in URL I have a popup window with a Facebook custom share link.
http://www.facebook.com/sharer.php?u=<url to share>&t=<title of content>
How can I use a url u with a parameter like http://google.com/?q=bla? It looks like facebook always cut of the parameter.
A: You should URL encode the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I obtain the hostname or address of my .js script from inside the .js script? I have a web site which downloads the same script from any number of different servers:
<script type="text/javascript" src="http://server1.example.com/hello.js"></script>
<script type="text/javascript" src="http://server2.example.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Detect a realm authentication failure reason in Tomcat I wrote a custom Realm for Tomcat 7. I wrap it in the lockout Realm provided by the default installation of Tomcat. The lockout feature works fine, but in my web.xml, I have
<error-page>
<error-code>403</error-code>
<location>/forbidden.html</location>
</error-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Get relative path to image in another project in same solution I have a Silverlight project with several projects in my solution. I want to get a relative path
to an image in project A from project B inside my helper C# class.
solution
-Project A
-Helper.cs
-Project B
-image.jpg
Helper.cs need a reference to i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ios 4.3 uploading file to wcf json web service I've been killing myself over this bug/problem for a few days now, and I am going insane. I have no idea why it is break. I was wondering if you guys and gals can lend me a hand and rid of my insanity. So thank you in advance.
What I am trying to do: upload a .wav fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which event of repeater control fires at the time of page_init or page_load? I have a scenario like facebook wall where I need to display image of user in repeater control who posted.
I have tried myrepeater_ItemCommand1 or myrepeater_ItemDataBound but not working.
Code behind
protected void myrepeater_ItemDataBound... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need to convert date in d-m-y format to Ymd within query I need to compare dates within a query, the date is stored in the database like d-m-y (24-Mar-11) and I need to convert it to Ymd (20110324).
This is what my query looks like, I need to convert the C.SP_COMMENTS_ACTIVITY_DATE to Ymd
Is it possible to do this a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Styling form in jQuery-Dialog On my jQuery - Dialog I have a form with multiple form fields. There I have a link to add "Attributes". Now I want to have this on the left side of the dialog and on the same line like the submit button. The div "somediv" must be an inline-element.
How can I achieve that?
jsFiddle - htt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584227",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET MVC 3 Architectural Direction I am converting a classic ASP website to .NET. The application already has a back-end database with stored procedures for communicating with the DB. I want to use MVC3 and EF for this project.
My question is where is a good moderate example of these working in this environme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find a specific char in an array of chars I am doing an application where I want to find a specific char in an array of chars. In other words, I have the following char array:
char[] charArray= new char[] {'\uE001', '\uE002', '\uE003', '\uE004', '\uE005', '\uE006', '\uE007', '\uE008', '\uE009'};
At some point, I wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: tfs 2010 best practice we have a very tricky situation which am sure can be avoided if dealt with properly.
There were 5 different branches of a specific application in our TFS 2010. All the branches were merged into 1 branch and since the merging was done by a system administrator who wasn't part of the development... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: refresh page after 3 seconds using c# I want my code to refresh the page once its shown the success label for 3 seconds.
How can i do this in c# code?
i have this following:
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Mail;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I perform GET method in android? I want to get this data ---->"#1$Egypt$مصر@"
from this link --> "http://184.173.7.132/mobile.aspx?action=4"
I used this code but the response is NULL
public HttpResponse doGet(String url) throws Exception {
HttpResponse response = null;
try {
HttpClient... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iphone Drawing gradient inside a polygon I want to draw a gradient inside a polygon using core graphics. I am able to draw a hexagon using the code below but i don't know how to fill this hexagon with a gradient color. Any help will be really appreciated.
- (void)drawRect:(CGRect)rect
{
// Drawing code.
CG... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Solr schema and boosting by keywords/tags for item When users searches and clicks a result, we store this search keyword in the DB.
What we get is a list of keywords for every item with the number of times item was clicked for that keyword.
In solr schema I have multivalued field "keywords". How can I add that numbe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Python (OpenCV) Median filter trouble I need to do a (fast) median filter of some images from Python, and after some time on Google it seems like OpenCV is the way to go for speed (even in Python). I got OpenCV up and running, and filters like Erode and Dilate works fine:
cv.Erode(cv_im,cv_im,None,6)
cv.Dilate(cv_im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DeepLink in Facebook Fanpage i'm looking for a solution to proceced deeplinks to a facebook fanpage like:
http://www.facebook.com/myfanpage?sk=app_MYAPPID¶meter=2
I need to get the value of parameter in my Fanpage app.
A: Use the app_data parameter in your link, and the value of this will be passed to your app ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is CodeIgniter suitable for large intranet applications that do not use MySQL? I don't really plan on using active record or any of the built in database constructs native to CodeIgniter for database access. I have Oracle, SQL Server, and others. I want to use PHP PDO (unless anyone thinks that's bad) because of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: XML Schema regex for integer range, excluding 0 I'm developing an XML schema and I need to restrict an integer to being within a ranger of -20 to 20, but not 0.
I was going to use minInclusive and maxInclusive for the -20 to 20.
I tried to add the regex "="^(?!0).+", but that does not appear to be a valid XML rege... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL distinct values across columns I have the following table:
id lb rb ls rs ch bk ot
1 10000 10001 10001 10001 10001 10001 10000
2 0 10000 0 10001 0 10000 0
3 0 0 10000 10001 10000 0 0
4 0 0 0 10000 0 0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Object reference error I have this piece of code:-
What I want is that in button click i want put some value in user control.
I get Object reference error.
if (Page.FindControl("pr1") is Control)
{
Control previewControl = Page.FindControl("pr1");
Label titleLabelPreview = (Label)previewControl.FindControl("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Composition/Delegation in C# Okay, I need to use some third party library and the resulting code is hard to unit test, because the classes don't implement interfaces (i.e. I can't isolate my code from the dependencies it has on theirs, which in turn relies on databases and who knows what else).
My solution - wrap t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Not Null contraint on entire table I was wondering if there is any way to make a single Not Null constraint that could apply to all the attributes in my table. I know I could add one to each line, but I am just trying to learn to be more efficient. I tried searching online and I didn't find anything on this topi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Perl: SSH Tail as File Handler I am creating a log parser that has the ability to "stream" a log as it is written.
The log resides on a remote host, so I am creating a file handler using a combination of
SSH and tail. The following works quite well, but I do have some questions regarding error handling.
*
*If th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Aptana Studio 3 / Eclipse : strange different widths for tabs/spaces in PHP editor? Somehow in a PHP editor in Aptana Studio 3 I get very strange behaviour of spaces before indented lines.
The spaces seem to change in width (!) after you type them. Even with a monospace font the text columns are not aligned.
For exa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript - Flash Sound Recording I would like to capture sound from a browser and send it to a server.
I decided to use red5 for the reasons listed on this interesting page that claims to do exactly what I need.
It requires the following:
*
*A running red5 server
*A flash object that can capture the microphone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Oracle PLSQL function throws PL/SQL: numeric or value error: character string buffer too small ,for returning large data I have the following PLSQL functions that returns following error when returning a large data.
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
MODIFIED PLSQL FUNCTIO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: User control resize
Possible Duplicate:
“ResizeEnd” equivalent for usercontrols
I feel stupid, but I can't find a solution to a problem that I think it's easy.
I have a user control that (basically) shows an image drawing it during onPaint stage:
protected override void OnPaint(PaintEventArgs e)
{
if (img != ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to remove handler at control I have a control which has in a constructor
_myWebService.ForwardMessageCompleted += new EventHandler(OnForwardMessageCompleted);
private void OnForwardMessageCompleted(object sender, AsyncCompletedEventArgs e)
{
activity.IsActive = false;
if (e.Error ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Firefox Sync issues I want to read the bookmarks and history from Firefox Sync accounts in one of my iOS Apps and I got it working for all "new" accounts (those with an email as login name), but it fails for old accounts (those where the user could still create their own login name). And I'm not sure what's the prob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Event on data changing in bindingsource I have DataGridView and BindingSource with DataSet. When I filled dataset using datatable adapter I would like some event triggered when each row has added to dataset.
A: The RowsAdded event is fired everytime a row is added to the DataGridView.
Check http://msdn.microsoft.co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NHibernate - LAZY LOADING PROBLEM -Initializing[]-Could not initialize proxy - no Session."} Hi I use Fluent NHibernate and I am little confusing with Lazy Loading.
*
*I queried object in database
*modified object properties
*update database with this object
Here is code:
public class Credentials
{
public... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Better and a Faster way to read a string from a URL I am using this code to read content from a given URL. Is there and faster and better way to do it?
private static String readUrl(String urlString) throws Exception {
BufferedReader reader = null;
try {
URL url = new URL(urlString);
reader =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issue with slow updating of html 5 canvas after mousemove / mouseclick event I have recently been experimenting for the first time with html 5 and specifically the canvas object.
I seem to be having some issue with mouse events.
The program is a grid of faces with different coloured backgrounds randomly changed. The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sorting the EdgeList in boost::graph I would like to to sort the edge List of boost::graph defined as followed:
struct Vertex{
int index;
};
struct Edge{
double weight;
};
boost::adjacency_list<boost::listS, boost::listS, boost::undirectedS, Vertex, Edge> Graph;
After adding the vertices and edges, how to I sort ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Improve this insert class function php I hate to type the INSERT query, you always miss out with some stuff, and get syntax error. Therefor, I want to create my own function, to let me do this. This is what I got so far:
$data['test'] = array('username' => 'john',
'password' => 'hello',
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MATLAB/Octave: cut a lot of circles from a image I have an matrix (image) and information about interesting part within circles
(center corrdinates and radii given). I want to cut for all the circles the
parts of the matrix in order to do some more calculations for each circle. Or at least I want to have a bitmask w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Permission denied for SplFileObject I'm running php 5.3.8, on xampp (the newest version, 1.7.7 I believe), on Windows7 64bit. When I try to construct a SplFileObject giving it a directory path I get following message (both in read, or write mode):
failed to open stream: Permission denied
The folder exists, and I set... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SIGPIPE when echoing variable inside bash script I have a cronjob running on a debian box. At certain points through the script, I set variables via
HOSTNAME=$( hostname -s | tr A-Z a-z )
then later, I log that value to syslog (so I can see that everything is running properly)
function log {
# just echo it
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can you sort and throw all the `nil` results in the back? I would like to start sorting all my results by a new field. Unfortunately, a lot of my older fields have a nil for a timestamp. How can I perform this method and put all the nils in the back?
.sort{|a,b| b.offering_referral_timestamp <=> a.offering_referral_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7584335",
"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.