text
stringlengths
8
267k
meta
dict
Q: Index value not getting correctly updated I have a popup and i select the value and it gets updated correctly in my field. var boolArray = ['Yes', 'No']; textField.value = boolArray[e.index] == undefined ? textField.value : boolArray[e.index]; But when i send the somevalue to my service, it does update incorrec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Functions with in Stored Procedure- SQL 2008 I have a SQl Query which returns 30,000+ records, with 15 columns . I am passing a NVARCHR(50) parameter for the store procedure. At the moment I am using stored procedure to get the data from the database. As there are 30,000+ records to be fetched and its taking time, W...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I turn on javascript support on a PHP project in eclipse? Once a project has been created (PHP) is there any way to turn on javascript support for the project or would a new project have to be created? I would prefer not to create a new project. A: Either create a new PHP project and tick the Javascript supp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get values from controller I am trying to print hello world. For that i created class and return function in models folder, and the returning value is "hello world". In controller, i am getting the values from module like this: $value = new getValue(); $this->view->index = $value->hello_world();...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android ImageView/ RelativeLayout increase size by Dragging the corner of ImageView/ RelativeLayout i want to increase the size of ImageView/ RelativeLayout by Dragging the corner of ImageView/ RelativeLayout. But no difference in width and set it bottom. I set it by using android:layout_alignParentBottom="true" a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CSS: Two inputs side by side How can I make this: Look like this: I.e have the two fields and the sign in buttons side by side? Thanks A: Give both fields a different class and assign to the most left one float:left; HTML: <input type="text" class="field1"/> <input type="text" class="field2"/> CSS: .field1 { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: query MS access database with LINQ in c# Possible Duplicate: Query Microsoft Access MDB Database using LINQ and C# Im working with MS access database and wanted to know if i could use LINQ to query this database? I read about datasets, but by reading this: http://blogs.msdn.com/b/adonet/archive/2007/01/26/queryin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: manipulate visio format file programmatically I want to extract information from a Visio file and do some change on them(like using C++), then write them back? My question is: Is manipulating visio files(mainly reading and writing) programmingly possible? If so, any tutorial lin is preferred A: Reading/Writing Visi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: php RegExp: how to use newline in expression? For example it works: {<div\s+class=\"article\"><h2(.*)</div>}s If I do this way, I get nothing: {<div\s+class=\"article\"> <h2(.*) </div>}s I suspect that I should use some modifier, but I know which one from here: http://php.net/manual/en/reference.pcre.pattern....
{ "language": "en", "url": "https://stackoverflow.com/questions/7512781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: UIPopOverController issues while autorotation I am presenting a UIPopovercontroller using PresentPopOverFromRect: method. in Portrait Orientation. When i autorotate to Landscape UIPopoverController is not presenting at the proper position. How to position the UIPopoverController while autorotating the device. A: Yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Any harm in using global domain validity when obtaining ReCAPTCHA public/private keys? Just curious - is there any risk in using a public/private key obtained from ReCAPTCHA for intended use only on one domain, but then we ending up using it for another one. I intended to obtain it for a specific domain, but mistake...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: how to make RTSP server at android phone? I want send streaming video from android phone to computer server on RTSP. the server is coded using java. how can I do that? A: RTSP is just a streaming protocal which only includes information about a stream and no data. you can use it as a "tunnel" for data streams (e.g....
{ "language": "en", "url": "https://stackoverflow.com/questions/7512794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Solr DataImportHandler with optional sub-entities I'm configuring DataImportHandler to index my db but I run into this problem. I have a table A with a nullable integer field F that is the fk to another table (call it B). I was modeling this way: ... <entity name="main" query="select ..., F from A"> ... <entity ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I know my app is being Run inside Facebook If I have an app and it is run inside facebook. the first load I will get the $_REQUEST['signed_request'] but if you click on any link inside my app and navigate within the app you will lose that $_REQUEST['signed_request']. Is there any other way to know if my ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SSRS report export to Excel: need a column in "Number" format I'm using SSRS 2005 and I have a financial report. I would like a column to be in number format when exported to Excel. How can I specify a column to be exported in number format? A: Make sure your <MarkupType>None</MarkupType> not <MarkupType>HTML</Ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can't get sensible co-ordinates for note blocks I've been trying to resurrect an existing drawing check macro, and want to find the co-ordinates of any note blocks on each sheet. I've been modifying code found here using the GetAttachPos method from this page, but for some reason any co-ordinates returned come back ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can you access your online postgresql database when developing on your local machine? I want to start developing a django app on heroku which uses the postgresql database. I already got my hello world django app working on heroku, but now I am wondering how to develop with the postgresql database. How do people ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C++: insert into std::map without knowing a key I need to insert values into std::map (or it's equivalent) to any free position and then get it's key (to remove/modify later). Something like: std::map<int, std::string> myMap; const int key = myMap.insert("hello"); Is it possibly to do so with std::map or is there s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the use of setupUi(this) in Qt I am new to Qt. I have downloaded a source from net. The header file contains the following #ifndef MAINWINDOW_H #define MAINWINDOW_H ainWindow> namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explici...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Shift bytes of file in bash How can I shift some bytes of a file in bash? What I want to do is make a file corrupt to check that my program will handle corrupt files correctly. Thanks! A: To shift by, say, 3 bytes "left" and discard the shifted bytes: $ tail -c +3 file > file.shifted
{ "language": "en", "url": "https://stackoverflow.com/questions/7512827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I find files within a directory containing paths to /bin but not shbangs? I want find all files inside of a directory that make a call to /bin executable, but I do not want to include shbangs, like so: #!/usr/bin/perl #!/bin/bash All other files containing the path should be listed and show the code making...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where to modify threadcount in Weblogic 10.0 MP2 I need to modify the number of threads available in my Weblogic 10.0 MP2 environment for some perf benchmarking but I cannot seem to be able to find where exactly that option lies. Can anyone share this info please? thank you. A: Weblogic 10 does not use execute thre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: HTML5 and Internet Explorer? May be my question sounds stupid but I was wondering if it is possible to make Internet explorer (7 and 8) to recogonize HTML5 tags such as header, footer, section, aside etc, without using javascript ie. with css only? Thanks A: nope, it's not possible, you have to use JS you could cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: javascript - can i check if ajax is currently loading? i made a "scroll down, fire ajaxrequest, load more content" function. but for it to work properly, and not fire many times in succession because the user scrolls more before the ajax data is loaded into the document, i need to prevent firing more ajaxrequests if...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cross compile Qt source the Angstrom toolchain(any linux supported embedded toolchain would do) I am new to cross compiling and willing to get started with cross compiling Qt for beagleboard. Can some one give me specific instructions for this or recently tried tutorial. Please do not assume any knowledge on my part...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Static methods and Singleton in PHP I have the next class: class MyClass { private $_instance = null; private function __clone() {} private function __construct() {} public static function instance() { if (is_null(self::$_instance)) { self::$_instance = new self; } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VBA how to loop through a column in Excel I know start cell, and I need to go down through the column. And I need to exit cycle when the next cell is empty. How to do it in VBA code? Thanks for replies A: How about; '//get a range from anchor cell (a1) to the 1st empty cell in the same column; dim r As Range, cell ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cannot see files uploaded to Windows box running Apache I have Apache set up on our development server (Windows 7 Home Premium). I am creating a CMS site and using TinyMCE to allow for the insertion of images. This all works fine, but I cannot access the images uploaded. I can see and edit them if I view them on the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: grid of MouseArea in Qt QML I have made an Item in QT QML which contains a MouseArea element. Here is the code, import QtQuick 1.0 Rectangle { id: base width: 240 height: 320 x:0; y:0 color: "#323138" /////////////////////// MAIN FOCUSSCOPE ////////////////////// FocusScope { id: mainfocus height: base.heigh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPhone: showing UIWebview in UIActionSheet problem In my universal app I am trying to show webview in a uialertsheet but getting weird results, why is that webview shifted on left? and ok button is on the top? I want to just center and nicely fit to the uisheet window but with the OK button clickable on the bottom Y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bijection on the integers below x i'm working on image processing, and i'm writing a parallel algorithm that iterates over all the pixels in an image, and changes the surrounding pixels based on it's value. In this algorithm, minor non-deterministic is acceptable, but i'd rather minimize it by only querying distant ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: generic programming in c++ and typedef inside a class let's say I have the following code in A.cpp file: template <typename T> class A{ typedef T myType; myType foo(); } If I want to implement the foo function in this file , what is the syntax to write the function declaration? I thought it'll be: template <c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Landscape mode both side 180 degree I have developed a Flash game for Adobe Air. In the game I set it to only allow the display to be in landscape mode. If the device is rotated 180 degrees I want it to flip the view. However, at no time do I want the display to allow portrait mode. How can I accomplish this? her...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: java jndi ldap connection timeout I want to control the connection timeout by setting com.sun.jndi.ldap.connect.timeout property. It works well for values under 1000 ms, but if I set values bigger then 1000, the timeout doesn't increase (it remains at 1000). Here is the code I tried to test it with (the server is do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Recaptcha ErrorMessage I'm using the Recaptcha control in asp.net web forms. And i've faced with the problem about ErrorMessage. How to: * *Set ErrorMessage for it? *Show (hide) the ErrorMessage if the Recaptcha is (isn't) valid? A: If you grab the latest source code you should find examples in dotnet/tes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: References Tables: all in one or separate table? I have a group table - should option_id or extras_id should be in separate tables or all in one table? See below what I meant: group table: mysql> select * from `group`; +----+-----------+--------+ | id | name | type | +----+-----------+--------+ | 1 | Group O...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: msbuild: how to register different versions of the same dll? I have the following dll registration within my ms build now using the code below although we work with different code bases which might need different versions of the dll registered, i.e. MyLib.dll that represents the development version and another MyLib...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to read json I have following JSON object. {"feed":[ {"news": {"adopted_from":null,"user_id":null,"description":"this is test","id":2} }, {"news": {"adopted_from":null,"user_id":null,"description":"like unlike done","id":1} } ]} I want to retrieve the id of news. I tried in many differe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Capture contents of div into an image Does anybody know if it is possible to grab a capture of a particular div using php? What I would like to do is have a drag and drop container where users could potentially position a number of images using javascript and then I would like them to be able to save a copy of the r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Testing ActiveSupport::TimeWithZone objects for equality Can someone explain how d1 is greater than d2? They are the same damn dates (or atleast that is how they look to me). Loading development environment (Rails 3.0.8) ruby-1.9.2-p180 :001 > d1 = Event.first.updated_at => Thu, 22 Sep 2011 02:24:28 PDT -07:00 ru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How can we draw a vertical line in the webpage? For horizontal it is <hr>. but for vertical line? A: You can use <hr> for a vertical line as well. Set the width to 1 and the size(height) as long as you want. I used 500 in my example(demo): With <hr width="1" size="500"> DEMO A: There are no vertical lines in ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: 301 Redirect, mod_rewrite disabled if mod_rewrite disabled, is there any other way to redirect a domain to another one? Using htaccess too or any other way. A: To redirect the whole domain to another one use: Redirect 301 / http://newdomain.com/ Edit: To redirect a specific subdirectory use: Redirect 301 /dir http...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sending data with ajax from a link? (Without using ExtJS, jQuery or similar libraries) I have <a href="">follow me</a> and I want to send very simple post data to the page without reloading the page. Edit: Oh, onlclick will solve my problem. I've got it. Edit2: I mean, like <a href="" onclick="alert('jjj');">follow ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Deterministic Finite-state Automaton Questions I have this DFA described as (Q, q1, A, N, F) where Q = {1,2,3,4}, q1 = 1, A = {a,b,c}, F = {2,4}, N = { (1,a) -> 2, (1,b) -> 3, (1,c) -> 4, (2,a) -> 2, (2,b) -> 4, (3,a) -> 2, (3,c) -> 4, (4,b) -> 4, (4,c) -> 4 } So I have drawn the transition diagram...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Question on C# App MessageBox.Show() that called by Cpp App CreateProcess() I have done 2 tests. I got two applications that ran on the same computer. 1st time, when I click my CsAPP.exe. the MessageBox.Show() works quite well and a new window pop-up the way I wished. 2nd time, when I run CppAPP.exe there is a Crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: -moz and -webkit css no longer needed? I have been using the -moz and -webkit css styles for a while now for things like box shadow, text shadow, etc. And lately I have noticed that each FireFox, Chrome, Safari, and IE (9) all yield the same results with the standard box-shadow and text-shadow and similar css styles...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How to turn a LaTeX Sweave file (Rnw) into HTML? I searched for this, but couldn't find a solution. I understand that one could use the HTML markdown with Sweave, and then output it to HTML using: library(R2HTML) Sweave('temp1.rnw', driver = RweaveHTML) What I am wondering though, is if there a way to turn the .te...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: file_get_contents() in php not working I am using file_get_contents() in php that is not working when i am using like this. the file name is index.php <?php $content = "hi"; $content = file_get_contents('index.php'); echo $content; ?> I thought it prints hi more than one tym.. but it print that only one...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Maven + Scala + Java + Pelops = trouble I've a project in Java and Scala and I use maven to compile it. A Java class uses Pelops to access a Cassandra database and it is all fine (maven compile the entire project), but when I try to access Cassandra from a Scala object (using tha same import as in the Java fil) mave...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Text array to email body I have a backup log file from robocopy and would like to take last lines from that file and send it as email body. Log example: Total Copied Skipped Mismatch FAILED Extras Dirs : 85262 85257 1 0 4 0 Files : 637048 637047...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: parent class to return subclass Its hard to explain in word what I'm after but hopefully the code example below with the comments is sufficient. Basically I want the SubClass sc = new Subclass().method1() line to return the Subclass instance. public class SuperClass { public SuperClass method1() { //...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Querying nested documents in mongoDB I want to query my Mongodb collection (name: wrappers) and retrieve all documents that have field 'urls' that end with '.com' I am not sure on how to query nested documents and also using regex for queries. I am actually coding it in perl. However queries to run on the mongo shel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can´t trigger a javaScript method on the onload event of a form I am trying to call a JavaScript method on the onload() event of a form. Here is the code for the javaScript: <script type="text/javascript"> function gback(){ document.FM.action = "<c:url value='FModificar'/>"; doc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: simplejson in Python throws value error I've got a JSON string that I'm posting to my Python script. This is an example string: {"uid":"1111111","method":"check_user"} In my Python code I simply call simplejson.loads( str ) where str is the JSON string from the request. The JSON string seems fine as when I print it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SRP Algorithm Design I am reading Uncle Bob's Agile PPP, Specifically i am reading the SRP part of it, while reading about the principle i got a doubt that is it not that SRP is increasing the coupling in our design with so many small-small classes inter-dependent on each other? I know the book says that it reduces ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create an update for an extension in Magento My question is about creating update packages for a custom module extension that I have made. So far I have been able to export mu module by using the "create package extension" function and installing the module on another Magento using the "Direct package file upload" m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to fix exceeded limit of maxWarmingSearchers? Anyone know why and how to resolve this as I have a very busy updates and searches at the same time. Error opening new searcher. Exceeded limit of maxWarmingSearchers=2, try again later A: As per the Solr FAQ: What does "exceeded limit of maxWarmingSearchers=X" me...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Mysql query for selecting min/max values in a varchar field So I have a varchar column which is supposed to store product prices( don't ask me how I ended up with that, but now I have no option of changing this...sigh ), It can also be blank, or contain one of the texts(literally) "null","OUT" where both represents ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I generate an absolute url in a Zend Framework (1.11) controller action? I have a facebook application. Facebook says I need to redirect to a certain facebook url, in order for the user to give permissions to the application. I currently have a view phtml file, with the following which works fine: <script typ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: mod_rewrite fails to redirect into the lib folder I've got a rewriterule that works for everything except the lib folder. The rule is RewriteRule ^/uk(.*) $1 It's one of a much more complex set of rules but I've disabled all but this one. The rule works fine for everything but the contents of the lib folder: http://...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: is there any function like "strptime" in java suppose there is a time_string like: "wallclock(2011-09-22T01:52:00)" in C language, I can use "strptime(time_string, "wallclock(%Y-%m-%dT%H:%M:%S)", &tm)" to get date time and store it into the struct tm, and then use mktime(&tm) to get the date in seconds But in Java,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Working with code samples when they're images on a blog Quick question about something I've ran into alot recently: So many times I'm looking for information from blogs, and find really interesting and helpful examples, only to discover the blog author has shown the code as an image.. With no cut-and-paste available...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: remove back color from multiple positions in richTextBox I have a rich text box and I've implemented a search option for it. When the user searches a string, all the matches gets highlighted with yellow background. I want that when the user presses the search button again, all of the previous highlights will be remo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Multiple websites admin folder from central codebase I've written a small CMS system for my companies' customers. It is supposed to run the 'admin' folder off the same codebase. So if I have my codebase in the folder 'a.com/admin', then I could set up a new website on b.com, and when I go to 'b.com/admin', it should...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ExtJs3: how to make closable tab of tabpanel not closable and back? I want to be able to hide 'x' button near the tab title and to be able to show it back without a low level code manipulating DOM but using component level api functions if it is possible. A: You should manually hide the close button in the DOM. I t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: regexr how to exclude a string match I want to match the following: any string which contains any character, except / or . this is done using ([^/\.]+), how ever, I also want to add a string "faq" so to match any character, except if it's a string of "faq", some examples: Currently, my Regex: ^([^/\.]+)/([^/\.]+)/$ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linq2SQL, EDMX, interfaces (Preparing for a TDD enabled project!) Is there an easy way to create a Linq to SQL class for my "DomainModel" off an EDMX (Entity Framework)? I assume this IS what I want to do... At the moment I am guessing that if I have my myModel.edmx which is generated from SQL DB which contains an e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Replace the url without refreshing the page in .net My default url home page is http://www.brindesbb.com/Pages/Default.aspx. but I dont want to show Pages/Default.aspx in the address bar. can anyone suggest me how to replace the url without reloading (refreshing ) the page. Thanks in advance A: What you want to do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Django: Form in your Site Base template I need to create a form, not search, but a kind of profile switcher that will be present in the site base. Just wondering what's the best way of going about this? I'm not very familiar with middlewares but this sounds like the time to investigate it? Alternatively, I was thin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to calculate load time of Asp.net page using Jquery/Javascript? I am developing one web application in that I want to check load time of each and every page or controls load time.. How much time taken to load whole page contents? I want to calculate asp.net page load Time in Micro second/Second, How can I kn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Null values in matrix, why? I'm learning about dynamic programming via the 0-1 knapsack problem. I'm getting some weird Nulls out from the function part1. Like 3Null, 5Null etc. Why is this? The code is an implementation of: http://www.youtube.com/watch?v=EH6h7WA7sDw I use a matrix to store all the values and keeps...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: get a tooltip when hovering over a select list option using jquery I need a jQuery plugin that can show the option's text as a tooltip when we hover over a selectlist which has multiple select enabled. Else, can we do it manually.. if so can you give me some samples. [edit] I am using IE 8 and need this to work acro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create route with Zend_Controller_Router_Route_Regex I have one route defined in application.ini like router.routes.xx.route = "y/:var/:controller/:action/*" router.routes.xx.defaults.controller = "page" router.routes.xx.defaults.action = "index" I try to create one more route, which must take contol under urls *...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IE - no longer possible to remove box outline? the usual way to remove the IE link outline no longer seems to work for me - I'm using IE9 which doesn't have the outline, but when I switch back to 7 or 8 (using IE9's dev tools) the outline is there. My CSS is below - anyone any ideas? a:active, a:selected { bord...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to check JTextField text to String? I have a problem on checking the text and string. public boolean Isequals(Object c){ boolean check = false; if (c instanceof MyTextTwist){ MyTextTwist tt = (MyTextTwist)c; if (txtGuessPad.getText().equals(answer)) check = true;} return check; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7512999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery.fadeIn()/fadeOut(). Not working in IE7+8 I'm have a Ruby on Rails project which displays illustrations. There are category links at the top which fade out the illustrations, replaces it with new content and then fades back in. I am using jQuery 1.6.2. It works as expected in Safari 5, Firefox 6, Chrome 14 and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to use EF codefirst database initialisers in Migrator .NET migrations? I'm using Migrator.NET to manage schema changes on our production environment. Because I've been using EF code-first, all development to the database has been incremental to the code-first classes and no migrations have been applie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is "(id) sender" What does (id)sender in -(IBAction)PushButton: (id)sender stand for ? A: sender is an object that triggered an action, so in your case it is probably the button that was tapped. A: It's the object that triggered the event. E.g. sender will be the button that was pressed.
{ "language": "en", "url": "https://stackoverflow.com/questions/7513006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 4 pixel offset of "Like" button I would like to line up all of the social media buttons on my site. The LinkedIn, GoogleOne and Twitter buttons all align vertically, but I can't seem to figure out why the FaceBook "Like" button jumps down 4 pixels. I've tried adjusting the margin-top, the vertical-alignment css, e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Check image url multithreading I am using PHP to check whether an image link is broken or not. Using PHP and cURL I can get the HTTP status code. However, it is taking a lot of time when checking millions of images. Is there any better and faster ways of checking a large number of broken images? A: how about usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UIActionSheet and UIView I want to create a UIActionSheet but I've also a UIView and this last one must be selectable. How you can see I can't use the date picker. Ideas? A: You can't. A UIActionSheet is modal by definition.
{ "language": "en", "url": "https://stackoverflow.com/questions/7513013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery: If all children have same class How do I check if all children, or all selectors, have same class? The class is unknown... <script> $(document).ready(function() { var symbols = $("div:first-child").attr("class"); if ($("div").hasClass(symbols).length == 3) { console.log("sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Windows phone 7 Mango Development Links I am new to Windows Phone development. I am starting by learning C# and Silverlight. Does anybody have any links/resources for learning Windows Phone Mango? A: Try out these: * *http://indyfromoz.wordpress.com/windows-phone-7-resources/ *http://www.reddit.com/r/wp7dev/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I scroll an overflowed div to a certain hashtag (anchor)? On my webpage I have an overflowed div (i.e. with the vertical scrollbar). Inside the div, I have anchors with ids. When I put one of these ids in the URL (mypage.html#id), I want the div, not the page, to scroll to that anchor. How do I do that, prefe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Include remote JQuery-UI.css, problem in FF I include remote JQuery and JQuery-UI from Google. The page works for Chrome and Opera, but in FF it seems the JQuery UI styles are not loaded. In Firebug, when I open the page code and check the css file for the JQuery-UI, instead of the content I see: Reload the page to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Starting alarm service in android In my application i want to use alarm service for specific period of time.I'm taking start time and end time values from user and saving it in database,Now i want to start a alarm service at start time and alarm should go off at end time specified by user.I'm new to this topic and n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to sort objects by date ascending order? If I have a list of object: var objectList= LIST_OF_OBJECT; each object in the list contains three attributes: "name", "date","gender" How to sort the objects in the list by "date" attribute ascending order? (the "date" attribute contain string value like "2002-08-29 21:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: access the variable in my javascript from controller In my CSHTML I have some JavaScript which contains a string variable. How do I access this variable from my controller? A: When you invoke the controller you could pass it as parameter. For example if you are invoking the controller action using AJAX: $.post('/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to invoke local peripheral device from web script I am confused about invoking local app from web site. Is there any way to start an ipad/iphone app from web scripts? I remember that there is ActiveX with IE which could start a local device such as a camera or printer. JavaScript could invoke ActiveX. But the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Set a time limit to an oracle query I need to interrupt the execution of an oracle query if it is taking more than 10 seconds, and give user a message informing him about execution timeout. I googled a lot but i didn't find anything useful. Is there any way to set a time limit to oci_execute A: A profile can be us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Really Simple jQuery Sliding Photos So I'm looking for a basic jQuery photo-reel type thing to put on my site's homepage, and I found this page. What I want is simply what looks like a plain <img> (no text, no arrows to switch), which slides a new photo across every 5 seconds... simple enough. I found this sample co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MS-Chart Zooming of x-axis with scroll bar in c# I have added the scroll bar to the x-axis of my mschart control using this link Adding a scroll bar to MS Chart control C# and it worked as expected. But now my requirement is, I need zooming for both the axis. But since I removed Zoom reset button for x-axis, I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How does YouTube 3D flash player instantly switch to anaglyph in 1080p? A 3D Youtube movie like this: http://www.youtube.com/watch?v=SmV4ieSpk4k can be watched in various 3D technics. I want to make a simular player but I can't understand how YouTube's 3D player can switch instantly from Side-By-Side to anaglyph and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET Chart Controls, is it possible to use a gradient on a pie chart? I'm prototyping a chart using ASP.NET Chart Controls. I have the following code to generate my chart. I'm trying to get as close to the client's brand guidelines as possible. The brand guidelines are using gradients in the pie chart segments. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C++, non parameter types for templates: only const variables? I dont understand why a template parameter can be initialized only with a const variable. As in, why doesn't the following code work: #include <iostream> template <class T,int dim> class Vec { T _vec[dim]; int _dim; public: Vec () : _dim(d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: toggle parent's element with parent I have this structure <p>Integer ac porta felis. <a href="#" class="despLeerMas">...read more</a></p> <div class="none masInfodespLeerMas"> onsectetur adipiscing elit. Sed condimentum dictum vestibulum. Praesent odio dolor, dapibus et consectetur quis, pulvinar eu orci. Integer ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Validate input field in C# I have a input field that is supposed to take numbers only. How can I validate the string? Would this be ok: string s = "12345"; double num; bool isNum = double.TryParse(s, out num); Or does .Net have a solution for this? A: Single one line answer. Does the job. string s = "1234"; if (s....
{ "language": "en", "url": "https://stackoverflow.com/questions/7513064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Weighted logistic regression in Python I'm looking for a good implementation for logistic regression (not regularized) in Python. I'm looking for a package that can also get weights for each vector. Can anyone suggest a good implementation / package? Thanks! A: The “balanced” mode uses the values of y to automatica...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Is this the correct way to get file's size? I have retrieved all file names and store it to a string array. Following is the code: Dim fi As System.IO.FileInfo Dim file_size As Int32 'all file names are stored in Files string array Dim Files() As String Dim CurrentFile As String For Each CurrentFile In Files fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the cell value from another worksheet and assign it to the return value of UDF? Here is the little example of my two worksheets. Original Sheet: As you can see, this worksheet has two cells waiting to be recalculated at the later stage. (i.e. cells with red #Eval marker) Result Sheet: In the above Res...
{ "language": "en", "url": "https://stackoverflow.com/questions/7513077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }