text stringlengths 8 267k | meta dict |
|---|---|
Q: Is it possible to use fluent migrator in application_start? I'm using fluent migrator to manage my database migrations, but what I'd like to do is have the migrations run at app start. The closest I have managed is this:
public static void MigrateToLatest(string connectionString)
{
using (var announcer = new Tex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: How do I submit a JSON to SOLR using Zend_Client? How do I submit a JSON to SOLR using Zend_Client?
Assume the JSON I am using is (It was taken from the SOLR WIKI, so I assume it is right).
$JSON ='[{"id" : "3", "title" : "test3","description":"toottoto totot ototot "}]';
I see no error in the solr error log, thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to remove controls with runat="server" specified in asp.net I have a webpage with server accessible controls, see 'FileIconLink' below:
<body>
<p class="FirstTitle style5">Downloads:</p>
<div id="BreadcrumbDiv">
<p style="padding-left:5px; ">Page Loading...</p>
</div><!--/BreadcrumbDiv-->
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Not showing facebook connect button with Facebooker 2.0 I'm developing a rails application with Facebooker 2.0, my problem is that the facebook login button only appears when the user's in not already logged in in his facebook account, if the user is logged in, it disappears.
I'm using this code to show the button:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to do this operation in UITextView (iphone) In My textView there is a default value of "First name "
I want to implement such operation in it..
1) it should be shown "first name" firstly
2) when I start editing it should became nil
3)when I am complete with my editing if the field is still nil then it should be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Writing multiple content types to web part Page response stream Is it possible to write more than one content type to a Page's response stream in ASP.NET?
I'm working on a web part in a Sharepoint application which first writes some HTML to the page response stream in order to close a modal dialog and then writes a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C++ member function pointers in class and subclass I have one base class which holds a map for function pointers like this
typedef void (BaseClass::*event_t)();
class BaseClass {
protected:
std::map<std::string, event_t> events;
public:
// Example event
void onFoo() {
// c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Silverlight and MVC: post object to controller method I have an MVC project in which a controller action returns some JSON data (i.e. via /Home/GetData URL). This action also takes a custom object as a param.
This signature for the action is JsonResult GetData (MyCustomObject o)
I also have a client Silverlight proj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: php problem with function and eval on array I have function:
function selects($sql,$tmpl) {
preg_match_all('/{[^}]*}/', $tmpl, $m);
foreach($m[0] as $key => $val) {
$find[] = $val;
$replace[] = '$row[\''.str_replace(array('{','}'),"",$val).'\']';
}
eval($replace);
while($row = mysql_fetch_array($sql))
{
$selects... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Grails global styling I was wondering how one would apply a global stylesheet to their entire site? I want to add twitter bootstrap, and a select number of other global styles, so that all the visuals are consistent.
Would I add a <link> to the layouts/main.gsp file?
UPDATE
Seems it's the css/main.css file that I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how do you copy a url into variable I'm trying to copy a url that looks like this: http://domain.com/myfile.php?test-main
So I'm trying to get the url so I can add variable r to the end like so: http://domain.com/myfile.php?test-main?r=stuff
When I use $_SERVER['REQUEST_URI'] it just copies the file name myfile.php ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Namespaces and Mixins I'm trying to clean up our namespaces. Basically our setup is somewhat like
class myClass
include myModule1
include myModule2
@important_var #critical instance variable
Basically @important_var is a telnet handler that almost all methods need to get at. This works fine with the way it is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TFS not updating development Server We just started using TFS, what's happening is that when a developer modify a code file TFS updates it automatically, but when i go to development server to move files from Development server, files dates are not updated. Is there any easier way of moving files from TFS to staging... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Struts2+Spring 3 validations issue I am trying to use struts2 validations. I have a setup with Struts2.2.3 and Spring 3.0.5. I have a -validation.xml in place. Fields are getting validated and error message is getting displayed on the server console, but its not getting displayed on the UI. Also action is not gettin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: alternative to htmlspecialchars We can use htmlspecialchars to stip out html tags.
$name = $_POST['inputbox1'];
$name = htmlspecialchars($name);
echo "Welcome".$name;
Is there another alternative?
A: PHP's strip_tags(..) might be what you're looking for.
A: If you're looking to actually strip the tags, check out ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Load content via ajax in plone page I'm working on a website which has been developed in plone. Now I'm facing an issue, I would like to load certain content from a template via an ajax call on normal Plone page(on some event trigger).
Do I need to create any python script??If yes where has it to be placed? and more... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Shebang Notation: Python Scripts on Windows and Linux? I have some small utility scripts written in Python that I want to be usable on both Windows and Linux. I want to avoid having to explicitly invoke the Python interpreter. Is there an easy way to point shebang notation to the correct locations on both Windows ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "92"
} |
Q: IE8 crashing after browsing a site for a few minutes All,
I've a problem with a site I coded. It works fine under other browsers, but IE8 crashes after clicking around a few times. It doesn't show any error message, just crashes.
I attached WinDbg and made a dump when it crashed. When analyzing the dump WinDbg show ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: turning pixels off got a question about turning pixels off on a screen. I can make a black image and show it full screen on my pc. Yet the screen looks black but the pixels aren't off. You can see the difference between an off screen and a black screen.
I am wordering if it would be possible to turn these pixels of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any way to reverse NSNumericSearch so NSStrings with numbers in them can be ordered in 9, 8, 7, 6... etc? I have code that returns an NSComparisonResult. My codes works great for sorting my arrays in Ascending and Descending order when they are NSStrings with only alphabetic characters in them.
When the NSS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Prompted for password on git pull origin [branch] When I attempt to git pull origin [branch] in order to pull in changes to the repo, I am prompted for a password. My system password and just hitting enter return: "fatal: Authentication failed".
The thing is, I never entered a password for this project in the past a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How can I set the width of a button during run time? I want to set the button width during run time and I want it to be equal to 50% of the display width.
I used the following but I have a problem "nothing appears in emulator" and says
"Process stopped unexpectedly. Please try again"
.java
public class experimen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery clueTip: show/hide on mouseover and sticky on click I'm using the cluetip plugin together with the jQuery FullCalendar to show event details which works quite good. I would like to have a link in each description that the user can click on. But I don't want to have the users have to click on each event to sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are the best cross-platform application development tools? I have an application I built in Flash that runs with no problems on Windows and OSX. I'd like to extend it to mobile platforms and I want to be able to call programs written in the native language of each platform.
I understand that Flex can be used o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Header information, headers already sent. I have tried looking at the code and eliminating whitespace as suggested but it didn't work This error i can't get rid off on my debug output in wordpress.
Warning: Cannot modify header information - headers already sent by (output started at /home/zonafu54/public_html/www/w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reduce folder lists to lowest common folder I have a giant list of file paths that are simply too large for our SCM to process. I need to whittle them down based on the lowest common level folder. For example, given the following paths:
//folder1/folder2/folder2
//folder1/folder2/folder5
//folder1/folder3/folder6
//... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get a part of CSS code to JavaScript/jQuery? I have asked a question few days ago and I got a answer, that wasn't truly answering it but it gave me an idea... The code below was in that answer and I quite understood it after a moment...Except one part. I wanted to animate some radial gradients and that guy ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django AJAX - suggestions I have made a functional site with django, but I have two forms which reside in separate pages. Since all the activities of the webapp will be centered around these forms, I want to put them both on the main page, to save space and preseve the "desktop" look and feel.
What would be the cor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: web2py: How to rename a table? How do I rename a database table in web2py? If there is not a direct way, what is the best workaround to do this? All I found was this thread http://groups.google.com/group/web2py/browse_thread/thread/ef724508324347e2/7966a423c293bdec where the creator of web2py says he does not have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to remove actionPerformed methods in NetBeans When a JButton is added to a content pane, we can set an action by double clicking the button or Right click->Event->Action->actionPerformed.Let say, we set somthing to happen. Then we need to remove that function.It can be done easily by deleting the code we wrote i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Can't deploy Play application into Heroku I'm having issues deploying a Play application into Heroku. I've had no problems deploying other basic applications without modules, but this one is giving me the following error:
@ubuntu:~/$ git push heroku master
Counting objects: 812, done.
Delta compression using up to 4... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can you enable auto-DataTemplate selection based on data type like you can with an items control? We're writing a very specialized ItemsControl which actually has three ContentPresenter's per 'row', each bound to a different object (think poor-man's grid) instead of the more common one, like a ListBox.
Now with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Insights for pages that have been liked So I would think this would be an easy thing to do, but I'm completely lost right now. I have a website. It has a facebook page. That fb page has a bunch of likes and all is good. We also have the "like" button on various webpages throughout our website. If I go to those webpa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: looking up svn content by hash Content in the svn repository is uniquely identified using two pieces of information:
*
*repository path
*revision number
I am looking for a way to recover that information from a fixed-length message (say, 8 or 16 bytes). It is not enough to identify content in the repository f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Database Deployment issues I'm having a hard time deploying my website.
I got through some errors and they got resolved and I successfully published my website but when I try to open any page it gives me 404 or 500 Error
My host provider told me that if this page is using a database and it's not deployed then this i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Header Cache Expire - dynamic site and ad server clicks? I did some research on speeding up your php mysql site. We update new information on our site every 12 to 24 hours.
I found that Header Expire Cache Control in the browser helps speed up the site.
Here is my code:
Header("Cache-Control: must-revalidate");
$o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Set default syntax to different filetype in Sublime Text 2 How do I set a default filetype for a certain file extension in Sublime Text 2? Specifically I want to have *.cfg files default to having Ini syntax highlighting but I cannot seem to figure out how I could create this custom setting.
A: You can turn on syn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "746"
} |
Q: How to make a such animation of UItextView or TTTextView as shown in picture an App Shopper implement
As shown in picture:
there is a table item or a button "Read More..."
when click this button, the button animates to this piece of words' end to show all words up. As shown in picture 2
*
*Is it a UITextView?
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any difference between manually adding a DbSet or allowing the table to be automatically created? I have a type called TypeA and somewhere in TypeA there is a property of TypeB (which contains nothing other than an ID and String).
Using Entity Framework, I have created a DbSet of TypeA - public DbSet<TypeA>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: c# Namespace already contains a definition for inherited class so how to add a constructor I am carefully treading into WCF attempting to follow tutorials and convert my ASMX project to a new WCF project and I've stumbled upon a mystery about coding of my constructor in WCF.
My ASMX webservice allowed me to have a c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unable to get NSEnumerator to display next item in my array I am new to Objective-C and I have researched this online for weeks now. Almost every example is the same on every site and does not fully make it clear to me how to integrate it into my code for an Xcode 4 App.
The example seen everywhere is:
NSEnumerator*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I speed-up the table reconstruction in MySQL when altering the schema? I have a relatively big MySQL InnoDB table (compressed), and I sometimes need to alter its schema (increasing column size or adding a field).
It takes around 1 hour for a 500 MB table with millions of rows, but the server doesn't seem to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hibernate Criteria Transformers.aliasToBean is not populating correct values I am trying to create BO by joining my entity classes
Criteria criteria = session.createCriteria(Report.class,"r");
criteria
.createAlias("template", "t")
.createAlias("constituents", "rc")
.createAlias("rc.entity", "pe")
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to pass console arguments to application in eclipse? I have the following line in a batch file.
java Client "127.0.0.1" 9876
It contains the name of my java class and two arguments. My application requires these arguments to run properly.
Is there any way to pass these arguments when running the application in e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Looking for code sample for a Grouped UITableView that is populated from an an NSMutableArray of objects (NOT FROM CORE DATA and NSFetchedResults) Looking for code sample for a Grouped UITableView that is populated from an an NSMutableArray of objects (NOT FROM CORE DATA and NSFetchedResults).
Consider a rolodex of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Setting an Error Message located in language file In a form I have a callback function that checks if a number is_available.
If it returns TRUE it shows an error message.
The callback is working but it displays : lang:shortcodes.not_unique instead of the content given in a separate file.
I can't figure out what is w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Stream video from ffmpeg and capture with OpenCV I have a video stream coming in on rtp to ffmpeg and I want to pipe this to my OpenCV tools for live streaming processing. The rtp linkage is working because I am able to send the incoming data to a file and play it (or play if via ffplay). My OpenCV implementation ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Question about java.util.Calendar I'm trying to understand the behavior with the following code.
My local time zone is UTC -7 (Arizona).
Calendar cal = Calendar.getInstance();
cal.set(Calendar.MINUTE,40);
cal.set(Calendar.AM_PM,Calendar.PM);
System.out.println("1 UTC -4 Hour:" + cal.get(Calendar.HOUR_OF_DAY));
Syste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: With an Azure project, when managing multiple service configurations, where are the current configuration choice saved I'm wondering about this because i'd like to find a way to create a post-build event that is different whether I'm trying to compile and run in the emulator or wheter I'm compiling and publishing to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C++ Memory/Input Problem I'm trying to create a small program in c++ where the user puts in multiple lines and the program outputs all the lines of after a EOT command is given (ctrl-d)
But i'm getting some error's when executing the program. I think i did a lot wrong.
(This is an hypothetical exersise, i don't want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use Eval() with a column name that contains a dot(.)? In my SQL Server table there is a column slno. (yes, it contains a dot) that is working fine in SQL Server. However, <%#Eval("slno.")%> is giving an error:
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'slno'.
How can t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: C# shift two dimension array fast method I have a 2D string array in C# and I need to shift that array to left in one dimension
how can I do that in efficient way
I dont want use nested for and i want an algurithm in O(n) not O(n2)
for (int i = 50; i < 300; i++)
{
for (int j = 0; j < 300; j++)
{
num... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Why do "single statement" blocks require not using semi-colons? I'm usually a C# programmer and going to Delphi has been full of "interesting" discoveries. The one that baffles me the most is single statements in Delphi.
Example C# block
if(x)
Foo();
else
Bar();
Example Delphi block:
if x then
Foo() //note ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Left function in c# what is the alternative for Left function in c#
i have this in
Left(fac.GetCachedValue("Auto Print Clinical Warnings").ToLower + " ", 1) == "y");
A: It's the Substring method of String, with the first argument set to 0.
myString.Substring(0,1);
[The following was added by Almo; see Justin J ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: javascript getting setting deleteing cookies I am having trouble setting and deleting cookies in php Ive got no problem.. in javascript eh.. lots I know this question is everywhere but all the answers I come across seem to bring me the same fate so I have no idea whats going on.. this is what I have currently.
SetC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Global named event equivalent in Unix What is the global named event object equivalent in Unix? I need to create a named event-like object in unix so that another process can set it
pseudocode in Win32:
HANDLE hEvent=CreateEvent(...,"Global\\CSAPP");
while(1)
{
WaitForSingleObject(hEvent);
...
}
In another ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I create an AVAsset with a UIImage captured from a camera? I am a newbie trying to capture camera video images using AVFoundation and
want to render the captured frames without using AVCaptureVideoPreviewLayer. I
want a slider control to be able to slow down or speed up the rate of display of
camera images.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ face detection/recognition implementations I'd have thought that google could answer this question, but I've not had much luck.
Does anyone know of any open source C++ implementations of any face detection algorithms other than the Viola-Jones (boosted cascades of Haar-like features) method?
Also, does there ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Arithmetic operation within string concatenation without parenthesis causes strange result Consider the following line of code:
<?php
$x = 10;
$y = 7;
echo '10 - 7 = '.$x-$y;
?>
The output of that is 3, which is the expected result of the calculation $x-$y. However, the expected output is:
10 - 7 = 3
My question... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Concatenation function: splitting and merging cells Assuming column A23 (#) is 22, B23 (Last name) is Danielle, C22(middle name), D22 (last name) is Anderson.
This example has no middle name.
By using the =CON
I want a combination of the first letter in the student’s first name, the first letter in their middle na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: sql subquery syntax asp.net I am trying to excute this sql query
Dim str As String = "UPDATE table1 SET " & _
"number = '" & strc & "'," & _
"code = '" & "123" & "'," & _
"line= '" & dd1.text & "'," & _
"sellr = '" & txtrun.text & "'," & _
"endu= '" & txtex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Long click on rectangle I created a view with rectangles which are clickable using the method onTouchEvent (using ACTION_DOWN motion). I want to enable a long click on the rectangle which open a dialog, and I tried to do it using ACTION_UP, but then the dialog is presented only after I release the finger. How can I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iPhone - is CGContextSetStrokeColorWithColor not creating wanted color? I am having some weird troubles with drawing some lines in an application.
My drawRect is using
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetStrokeColorWithColor(context, [UIColor colorWithRed:57 green:172 blue:255 alpha:1]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it valid to give a style element an ID? It says here that it is not within HTML4, though I don't really see where that's spelled out in the text.
From what I can tell, based on this, it is ok to do so in HTML5 but I'm not entirely sure (assuming style is an HTML element?)
I am using this to rotate out a styleshee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: how to get and auto enter current date in sqlite db in java? I want to automatically enter the date time of the data into the database table. I am using the Date field and used timeEntry=DATE('NOW') but when I did a query, the output is "DATE('NOW') instead of the time.
Can anyone kindly help me out ? Thanks.
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: img.onerror does not seem to work for IE8 I am trying to load an image from a url to check internet connectivity. When no internet connection, it should display a dojo warning dialog. This works for Firefox but does not for IE8.
Following is the code snippet:
var img = new Image();
img.src = userGuideUrl1_img + '?' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Need iPhone card flip effect , can't figure out how to do it I'm writing a card game and need a animation to flip them over from one side to the other along the y axses. What would be the easiest way to do this? Is there any good tutors?
This is what I did:
Found some sample code for using UITransitionView. But it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Will everything work the same if I cut and paste my .cpp to the bottom of my .h? I have a very simple class and I'd like to consolidate it to a single .h file. Will everything work the same if I cut and paste the guts of my .cpp to the bottom of my .h?
In particular, there are static member variable initializations ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to generate and insert datetime into a mysql database (PHP) Hey I need to insert current datatime into mysql database.. this is the format:
0000-00-00 00:00:00
A: Most easily done with MySQL directly using the NOW() function.
INSERT INTO tbl (datecol) VALUES (NOW());
If you need PHP to produce a value other th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can't get the correct parameters from PayPal's new screen I'm developing an application in rails, my problem is that now with the new design of PayPal's screen, when it redirects the client to my web page to notify him if the transaction has been done correctly, I only get in [:params] the controller's and the actio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Setting local field from timer I have the following problem in my unit test. The class with tests:
class TestClass {
boolean stopTest = false;
@Test
public void test() {
// do something
Timer timer = new Timer();
timer.schedule(new TimerTask() {
public void run() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Centering text overlays over images in div containers I have two images to be displayed in two div boxes. I would like the box positions to be fixed and also for text overlays (captions) on the images. The images keep changing and are of varying sizes, so fixing the size of the box prevents the page elements from ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to hook up Data Binding, Linq, DataGridView in the MVC way? I'd like to separate the presentation logic and the controls as much as possible in a MVC fashion:
class MyModel : INotifyPropertyChanged {
private IEnumerable<Domain> _domains;
public IEnumerable<Domain> Domains {
get { return _domai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Memory allocation doubt with type pointer to char This program is supposed to prompt for the number of letters in a word(to be entered later) so it knows how much space to allocate. It seems to work OK, however it doesn't seem to matter if you allocate less memory than needed for the word to be stored.
Is it a bug t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a semantic way of using 3 select boxes to choose 'Date of Birth'? I'm currently building a web form and I need users to enter their DOB.
I have used 3 select boxes at the moment. One for the Day, one for the Month and one for the Year.
I have wrapped them within a 'Date of Birth' label and styled things up ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: vb6 - NUMERIC and microsoft ole db provider for sql server First of all sorry for the bad english.
I want to make the following query: "select top 1 NumeroLote from tblLote where convert(numeric(12), Documento)=28405"
The data for "Documento" is stored on a varchar field and sometimes is recorded as "002008" or "200... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: rsync with delta transfers to synchronize based on timestamps I use rsync command to delta transfers. What rsync does is that it would transfer only changes. Now I have two machines each of which have two folders whose contents get changed from time to time. What I want is to have a script that when executed replace... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to loop through all tables in SSIS and export each one to a flat file named after the table (e.g. table1.txt)? Questions says it all.
Using SSIS I want to be able to loop through all the tables in a given database. For each table I want to be able to export all of the data to a flat file (.txt file) that is pip... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which method should I use to create my first open source Ruby Gem with Rails 3.1? Should I use the new Rails 3.1 rails plugin new command, jeweler or bundler to create my first Ruby on Rails Gem? Which tutorials would you recommend to help me get started with writing open source Gems for Ruby on Rails?
A: Generally... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ajax.BeginForm Update unique div id in For Loop Update
I ended up just using Session Variables to pass in the values to the Ajax.BeginForm block. It's a hack that I didn't want to use, but I just couldn't find another way...
Original Post
I am using a For Loop that assigns each comment div in the loop a unique id l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Wordpress with SQL Server I was wondering if there is any way wordpress (php) can be used to write to a SQL Server . Simpler the better. We are currently looking at transferring our website over a CMS (preferrably wordpress) but we have all SQL Server databases.
Thanks for the insight guys.
A: This is actually qui... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: is it possible to get the height of a cloned jQuery object? Sample jQuery:
$('document').ready(function(){
var $theP = $('p');
var $theDiv = $('div');
$theP.html($theP.html() + "<br>div height: " + $theDiv.outerHeight());
var $theClone = $theDiv.clone();
$theP.html($theP.html() + "<br>clonded div... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Question about .profile generated by ubuntu 11.04 I noticed the following lines at the bottom of my ~/.profile that was generated from when I installed Ubuntu 11.04:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
I see the logic there, but should... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Every Python IDLE run starts a new process Windows 7: I'm using Python3.2 with IDLE. Every time I edit and load my program, I get a new "pythonw.exe *32" process (as shown by Windows Task Manager)--even if the program just prints Hello World.
This is a special nuisance if the program is on a static RAM drive, becaus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Recover a SVN repository from within a SVN repository OK - so I managed to create a SVN repository within another SVN repository on a remote network svn server. See screenshots for details. I used the Tortoise client when I originally made that fatal error. Bottom line, I just need to pull the data off of the existi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change direction of disclosure triangle How can I change the direction of the disclosure triangle programmatically?
In Interface Builder it's possible by changing the value "Control -> Layout" from "Left to Right" or "Right to Left".
I made a diff of a NIB file. The only change was NSCellFlags2.
Is this documented a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MessageSource and PropertyPlaceholderConfigurer cannot load messages but with classpath* My applicationContext.xml is in path:
src/main/resources/META-INF/spring
and property files are in path:
src/main/resources/messages
and I load spring context in web.xml as follows:
<context-param>
<param-name>contextConfi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VBA Recordsets: Why does the way I declare my array, in the Fieldvalue parameters of .addnew, matter? I've been trying to dynamically add to a Recordset but I am unable to do so. The .addnew function of a adodb.recordset seems to not allow just any type of array to be passed to it's fieldvalues, values parameters. F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there another way to call this function besides using php's eval? So there's a php function in a database field. Here's what it looks like:
'$put_fname_fn = function($filename) {
return $filename.'.Z';
};'
I'm executing it like this:
$code = fetchFromDatabase(); // Get the function string
eval($code);
$put_f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: JPA Equivalent of Oracle TopLink's addBatchReadAttribute We're using JPA, and when a collection of objects returns from a query, a separate query is executed for each "child" object related through a foreign key.
For example, in our Authorization entity class, we have the following Client object mapped:
@JoinColum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Wrong object referenced when click event is activated I'm attempting to create an accordion effect for a document where when you click on an <h1> the rest of the document (the <div.container>) with toggle sliding up and sliding down. I keep running into a problem however. Here is the code:
HTML
<article>
<h1>Tit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Building with Eclipse and Remote System Explorer First with the background...
*
*We have a Linux server that supports multiple projects.
*The Clearcase server and repository are installed on this Linux server.
*Different projects require different cross-compilers and libraries, and all of them are installed o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Firebird TIBQuery insert with returning ... INTO I have a firebird 2.x database with Generator and a trigger to generate the key field.
I need to get the returned value from below query.
INSERT INTO XXXX (vdate,description) values ('"+ VDate +"','"+ Description +"') returning vno INTO :ParamVoucherNo
I tried severa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: array position objective-c I have an NSArray. Lets say that i have 3 objects inside it. e.g
test (
{
Code = A;
Comment = "None ";
Core = Core;
},{
Code = B;
Comment = "None ";
Core = Core;
},{
Code = C;
Comment = "None ";
Core = Core;
})... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery Date Range Picker latestDate is not working? im using this jQuery Date Range Picker and im trying to limit the user for choosing a date in the future in the picker. i tried using latestDate but its not working what is the right way to this ?
jQuery_1_6("#dateRange").daterangepicker({
earlie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Camping model ignores association module App::Models
class Team < Base
has_many :players
[...]
end
class Player < Base
belongs_to :team
end
When calling @team.players (or @player.team):
NoMethodError at /team/red
undefined method `players' for [#<App::Models::Team (...)>]:ActiveRecord::Relation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Common sense when storing currencies? After reading up on how to best handle users in multiple timezones properly, I've learned that the way to go is to store all dates in an normalized, application-wide timezone - UTC and then apply the diff between the normalized timezone and the individual users timezone when out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Setting range of a colormap in Matplotlib I'm using matplotlib to plot a simple graph:
cm=plt.get_cmap('Blues')
nx.draw_circular(G,
node_color='White',
edge_color=range(G.number_of_edges()),
edge_cmap=cm,
node_size=900,
width=4
)
I want to set a range on the colormap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Remove an Object/Row from a Core Data Entity There are a couple answers similar to this (Like deleting an entire entity). But none that have worked for me. I am just looking for simple way to fetch the object I want to delete using NSPredicate and then delete only that object. I only want to delete one object/row. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use jQuery slideDown() to display _almost_ all contents? I have a div within a div. On page load, they should both be hidden, then when I trigger the slideDown() function on the outer div, I want the inner div to remain hidden. How can I achieve this?
<script>
$(function(){
$('.body').hide();
$('.disp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7574753",
"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.