text
stringlengths
8
267k
meta
dict
Q: Image for individual post/article using MySQL and PHP I have a member based website and what I have built a system where registered users can submit reviews. Those are submitted to a MySQL database using PHP and then queried out onto a review page, like review.php?id=246. However, I want users to be able to upload a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IE8 is not accepting my privacy policy The development version of the site is at http://dev.blueankh.com userid: fix password: demo. The application is writen in php and the privacy policy is in a header created with the header() function. The site works with firefox but not IE. When I use fiddler2 it shows the priv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Beautiful Soup line matching Im trying to build a html table that only contains the table header and the row that is relevant to me. The site I'm using is http://wolk.vlan77.be/~gerben. I'm trying to get the the table header and my the table entry so I do not have to look each time for my own name. What I want to d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Aquamacs/emacs: focus-follows-mouse not working as expected I'm working with Aquamacs 2.3a [latest version] on Mac OS X 10.6.8. I would like to switch between frames/buffers by just moving the mouse. As far as I found out by searching for this problem, you can put the following code in Preferences.el to make it work...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Error integrating simple GoogleMaps app with core app I'm doing my GPS app. Standalone app with GoogleMaps works smoothly (map intent is easy to invoke). I tried integrating it my core app (which has several other intents) and I'm having problem launching it. I've tried this: public class MapaG extends Activity { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: using oracle sequences with jpa (toplink) I have a sequence object in my oracle db: create sequence BASE_SEQ minvalue 1 maxvalue 9999999999999999999999999999 start with 100 increment by 1 nocache; I use jpa(toplink) for my web application. I have base class for all my db objects: @MappedSuperclass @Inheritance(stra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What encryption do I have to use with openssl? I would like to create a SSL certificate for my server(apache), i'm following this tutorial: https://help.ubuntu.com/community/OpenSSL My question is: what is the stronger encryption to create a key with openssl? Thank you A: There's a whole section about creating self...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Are the .js files being cached? I recently made a website and I made a change to a .js file, but when I delete the .js file from the FTP server and upload the new one, the new file doesn't show up on the website. I checked the source code behind the .js file on the website and it's not right, it's showing the source...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: php oop call a class within a class I need help trying to call a class function within another class. Here's my setup: db.php class db { function connect(){ //db connection code here } function query($sql){ //perform query and return results } }//end db class main.php class main { function test(){ $sql = "select * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Return a value to external invoker C++ I am invoking a C/C++ program (exe) from C#, I want to return a float value from my C/C++ to the C# code, I have the exe code which writes file a for a single value, instead I want to return that value to C#. How can I do that? A: You could output the result of your C/C++ prog...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: android setTypeface I have a simple main class public void onCreate(Bundle savedInstanceState) { databaseHelper = new wecDatabasesManager(this); databaseHelper.open(); super.onCreate(savedInstanceState); series = databaseHelper.getSeries(); startManagingCursor(series); setListAdap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to know app was purchased in Android? I have to implement in app purchase in my application, so I used below link http://developer.android.com/guide/market/billing/billing_integrate.html Almost everything is working. But I have doubt that is how to know if in app product was purchased or not for particular devic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Insert query on page load, inserts twice? On my games page, I have a page where they play a game. On that page I have a query $insert_user_activity = mysql_query("INSERT INTO game_activity (user_id,user_full_name,game_id,game_name) values ('$user_id','$full_name','$browser_id','$game_title')"); Which will log it in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Do I need to use HeapLock and HeapUnlock functions in winapi whenever I want to use HeapAlloc or HeapFree? Do I need to use HeapLock and HeapUnlock functions in winapi whenever I want to use HeapAlloc or HeapFree in a multithreaded program which use the same handle to a heap? If yes, does HeapLock block until it get...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: replacing non-alphanumeric characters within a text I want to put inside parentheses the non-alphanumeric characters within a text. For example: "I would like to add * parentheses % around certain text within cells*." I want to put inside parentheses via regex method the non-alphanumeric characters within above st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to integrate checkboxes with jquery to a custom html? I've a situation where i should integrate the check boxes with custom html and also in turn i need all the functions of normal checkbox. Can you guide me how to do that? I'm new to jquery.. A: I'd ignore the html checkbox altogether for this design. I'd bui...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: dynamic web project creation option in eclipse helios I have installed eclipse helios from zip file with name 'eclipse-java-helios-SR1-win32' which means it is for win32 and SR1. But, after extracting these files and opening eclipse IDE I cannot create a dynamic web project from New->I cant find dynamic web project ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use accelerometer values to control FPS on PC? If I was running a FPS like counter-strike on my PC would it be possible to have the phone (connected to the PC via WiFi/Bluetooth) act as the mouse and control the character's looking direction? For example, the player stands up in front of his computer and points his ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Mobile and iScroll Problem So I had found a good solution to solve the fixed header and footer problem in jquery mobile which is the iscoll library. To get the iscroll library to work with the jquery mobile, I'm using this third party script: https://github.com/yappo/javascript-jquery.mobile.iscroll Everythin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQuery Mobile dialog fields clearing issue I'm new to jquery mobile and need some assistance in solving an issue. I have four links in a jsp page implemented through jquery mobile framework. Each link on click opens different jquery modal dialogs. Each link opens a new jsp in modal dialog. I have some common fiel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: javascript to select all checkbox in gridview i am searching for the javascript that performs select all - deselect all feature in asp.net gridview. So if a header checkbox is selected all the item templates checkbox should be selected. if any item template checbox is deselcted, the header checkbox should also be de...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change variable value using onchange I want to change the value of value using a change event listener. Is it possible? Here is my sample code: <select name="select1" onchange="updatevariable(this.value)"> <option value="2" >2</option> <option value="15" >15</option> </select> <script type="text/javascript"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Undefined function or method 'Ei' for input arguments of type 'sym' syms x1 x2 x3 theta gamma beta rho miu sigma; f=-(exp(i*x1)-1)*Ei(1, x2)/(i*x1); Undefined function or method 'Ei' for input arguments of type 'sym' A: the function Ei does either not exist or is not in your matlab path. Edit: this function seems ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I create a custom token in Drupal 7? I need to create a custom token that can fetch a value from a mapping table based on nids. I need to know the hooks I should implement to create the custom token. A: You'll need to implement hook_token_info() and hook_tokens. The best thing you can do is download the Exam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Mysql didn't get perfect result in Android Application First Image u can see List of college. When i clicked first college i got perfect result when i clicked last college i didn't get Result..plz help here 1)ListCollege.java//First Activity it's give me list of College//First Image collegelist=(ListView)findVi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: new discovery of retain ,or my misunderstanding? @interface DataMode : NSObject { NSString * name; } @property (retain) NSString * name; - initWithName:(NSString * )name_; @end @implementation DataMode @synthesize name; - initWithName:(NSString * )name_ { if ([super init] != nil) { name = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JSF h:panelGrid with ui:repeat My problem is ui:repeat inside a h:panelGrid. Its a big table from a list of objects.. All objects are saved in one list. I tried this: <h:panelGrid columns="1000"> <ui:repeat var="item" value="#{item.list}"> <h:outputText value="#{item.string}" /> </ui:repeat> </h:panelGrid>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trouble to open application on Blackberry Simulator I am trying to open my application on simulator 9800.i am using JDE 6.0.when i tried to debug my application i got some message on my console. [0.0] UIE: Foreground app package.MyApp@ has no screens. This should be corrected. [0.0] UIE: Foreground app package.M...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Converting CvSeq to CvMat I have a sequence of CvPoint2D32f points in CvSeq and I want to convert it into a CvMat. How can I do that? A: Have a look at cvSeqToArray. It will dump the sequence to a contiguous array of any type (in your case, it will be float). You can then create a matrix header for that array by ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In Ruby, how can I remove numeric words from a phrase without splitting phrase into words and losing word delimiters? I am trying to remove numeric words from a phrase. I am writing the following: phrase = 'hello 234234 word' words = phrase.split(/\W/) words.reject!{ |w| w.match(/^\d+$/) } words.join(' ') or, one-l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is wrong with the below PostgreSql insert function.. throwing error I have written a function in PostgreSQL which accepts two parameters viz varchar and int . The aim is to insert record CREATE OR REPLACE FUNCTION fnInsert(varchar,int) RETURNS void AS 'BEGIN Insert Into testtable(col1,col2) values ($...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Updating a value using jquery I have created a shortlist system, its like what is used on realestate websites so you can make a list of favorites (using a session arrray) which you can come back to. The system uses jquery to update the session array with a new shortlist item. What I am not sure how to do is update ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to get json data in jquery How can I get the comments from below json data? { "data": [ { "id":"123", "from":{"name":"name","id":"12"}, "message":"Message", "comments": { "data": [ { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using const_iterator when overloading a const operator[] I really do not understand what I am doing wrong below. I have a class named Settings with the structure listed below, and two of the functions listed below as well. What I am having trouble with is specifically where to put the const modifiers when overloadin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: convert string to NSDate object I am getting string "2011-09-24T00:30:00.000-07:00" from webservice. I don't know the what is this format and want to convert in date object in objective-c. So any know how to convert this string to date. Thank you very much A: There is a small problem obtaining the date/time from t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get rid of the xmlns declarations inserted by the XmlSerializer? I have this type: [Serializable, DataContract] public class A { [DataMember(Order = 1)] public int P1 { get; set; } [DataMember(Order = 2)] public XmlSerializableDictionary<string, string> P2 { get; set; } } Where XmlSerializableDicti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: 2D php array into an HTML table How can I achieve with a PHP array, to have as result in an html table the following result: Server1 db_1 Server1 db_2 Server1 db_3 Server2 db_1 Server2 db_2 Server3 db_3 A: Like this? $servers = array( 'Server 1' => arr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I customize the position of a QuickAction? I have a clickable FrameLayout and I want to display a few quick actions on top of it after a long press. I can create a QuickAction to pop out of it like the old Twitter app, but I'm not sure how to display it like the current one. A: It's been a while but like...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loading web user controls from blob storage in asp.net I am storing user control file in some other location may be in blob storage or some other place. ( not in my project work space ) and i store the url of the user control in database . Now how can load this usercontrol to my web page ? A: I'd used following ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error in linq join query in MVC 4 I am trying this query: public ActionResult Index() { var topics = from t in db.Topics join subs in db.Subjects on t.SubID equals subs.SubID join mems in db.Members on t.MemberID equals mems.MemberID select new ViewModel { Topi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does rails 3.1 include the entire jQuery library? I have been really puzzled because I was trying to work out some jQuery tutorials in coffeescript for rails 3.1 and it seems like none of the animation functions of jquery work. For example, this does nothing: /assets/javascripts/my_controller.js.coffee: $(document)....
{ "language": "en", "url": "https://stackoverflow.com/questions/7538200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: chrome extension javascript problem I started trying to write chrome extension and I'm having problem with simple function: script inside "backgroound.html": chrome.tabs.onUpdated.addListener(function(tabId,changedInfo,tab){alert("a")}); manifest.json file: { "name": "ogys", "version": "1.0", "description": "...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to store huge numbers in PHP I need to convert a number from 36-th base into an integer. The original number length is about 10 characters which seem to be bigger then PHP's limits for integers. In my case the original number looks like this: 9F02tq977. When converted I get the following result 8.46332972237E+12...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: block reading in perl I need to read one block from file and then need to match the particular patterns and get the values for the matched pattern. > Call report:$VAR1 = { > 'service_status' => 'DIAL-IN-SEQUENTIAL', > 'called_id' => '761', > 'id' => '41298', > 'redirect_numbe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ways to get location of the client from the browser? What i need is the lat/long of the client(via browser) Found some articles on the net,found some in stack overflow itself(an old article) Get GPS location from the web browser. it was answered almost 18months ago -- wondering if there's any other(more efficient) w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: HTML5 Audio m4a Is it possible to play m4a music files using html5 audio? If that is not possible do you know of any flash player that can play m4a outside JWPlayer, I need a free one. A: Any Flash player should be able to play MP4 content - this capability is coded into Flash, not the player product built on top o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sass excluding application.css file for a page I just upgraded my project from Rails 3.0.7 to 3.1.0 and I see that I can use SASS now. I have a page in my application which is just a promotional page at /home/subscribe.html.erb and I would like it to not inherit the css declarations being used throughout the applica...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I find user by username rather than email in ruby on rails 3.1? I've tried a few things but can't seem to get my head round it. I've been practicing and know how to do this using email but how can I do it using username? def self.authenticate(username, password) user = find_by_name(username) if user...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: show view count on rss feed in drupal i have a drupal site and i want to add to the RSS feed a view count what that i found that should do this is this code but so far i get a null value <?php print $node->links['statistics_counter']['title']; ?> and i can't run any SQL query because i can't match the nodes for it....
{ "language": "en", "url": "https://stackoverflow.com/questions/7538222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to covert a mdf into excel sheet i have installed SQL server Express Edition 2005 by using my application i am saving data in tables which is created in SQL Server so that i have to copy in that data in to excel file any please help me how to do this A: Read data from MsSql table and write each row into CSV fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I get the CPU and Memory useage I want to know the memory and CPU usage in php, because I'm using cronejobs sometimes the CPU is overloaded so in this case I don't wan to start more process, I just want to skip this cron. A: Take a look at this library http://phpsysinfo.sourceforge.net/ Demo: http://phpsysi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to covert a mySql DB into Drupal format tables Hi there i have some sql tables and i want to convert these in a "Drupal Node Format" but i don't know how to do it. Does someone knows at least which tables i have to write in order to have a full node with all the keys etc. ? I will give an example : I have theses...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: swf not showing up? I have a wordpress theme I'm adapting to a clients needs, but I can't make the sidebar ads, which are 125x125px, show a same sized swf instead of a image. If I insert a swf link, it show a broken image thumbnail. Please help me achieve this. If it helps you, the url of the website is http://inf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reverse the display of a date using jQuery I have a date returned in this format YYYY-MM-DD, e.g. 2011-04-29. Using jQuery how can I make the date 29-04-2011? A: You can use .reverse() var pieces = '2011-07-27'.split('-'); pieces.reverse(); var reversed = pieces.join('-'); A: var parts = '2011-07-27'.split(/-/)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can extract generic entities using Lingpipe other than People, Org and Loc? I have read through Lingpipe for NLP and found that we have a capability there to identify mentions of names of people, locations and organizations. My questions is that if I have a training set of documents that have mentions of let's say s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IE7 & 8 add unwanted drop shadow to a table inside of another table I have the follwing jsfiddle http://jsfiddle.net/PrkUW/ There you will find a list-table which has a drop shadow filter applied to it. Inside one of it's rows I have another table, inner-table, which doesn't have any drop shadow declared on it. The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using std::complex with iPhone's vDSP functions I've been working on some vDSP code and I have come up against an annoying problem. My code is cross platform and hence uses std::complex to store its complex values. Now I assumed that I would be able to set up an FFT as follows: DSPSplitComplex dspsc; dspsc.realp = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Reflection to Bind Business Objects to ASP.NET Form Controls This looks like a really useful way to simplify databinding ASP.NET controls to a generic business object. I've yet to use this in a fully fledged live project and so I'm not sure how accurate their performance metrics are. Off the top of my head I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I run an ASP.NET website globally [or atleast in my LAN] I made a site using VS10 Ultimate [ASP.NET] and when I build & run it runs the severer locally, while I want to test it for security issues via Linux. How can I run it globally ? Thank you! A: Your development machine probably has IIS installed. Copy...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OpenGL clipping I have been reading articles about clipping now for hours now but I dont seem to find a solution for my problem. This is my scenario: Within an OpenGL ES environment (IOS,Android) I am having a 2D scene graph consisting of drawable objects, forming a tree. Each tree node has its own spatial room wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Java if-statement currentTimeMillis, check if specific time has passed I've ran into an odd problem. I'm trying to check if the current time is greater than powertimer. When I run the method the if-statement returns true even though powerup.getPowertimer() - System.currentTimeMillis() is greater than 0 which I test...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Facebook Request Dialog - Invite to External Website FB.init({ appId:'Application ID', cookie:true, status:true, xfbml:true }); FB.ui({ method: 'apprequests', message: 'Here is a new Requests dialog...'}); How to redirect the user to my external website rather than the Canvas Page inside facebook...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to change Symbol Number to Upper Case... in the "richTextBox.Lines" array? How to change to Upper Case SymbolNumber... in the "richTextBox.Lines" array? I have a problem with "ToUpper()", because it is working only with the "String" data, but I need change the case to upper by number of the symbol. For example.....
{ "language": "en", "url": "https://stackoverflow.com/questions/7538279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: python GUI frameworks / libraries suited for data analysis programs I'm looking for a good cross platform (mac, windows & linux) python GUI framework / library that will make my life easier while writing a data analysis program. Since my data is represented by custom data classes, it would be great if the GUI framew...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to embed a flash object on my website? Well, I must say this is embarrassing to ask, but to my defense I'll say that throughout my years of web development I've never encountered a case where embedding flash was absolutely necessary. The Question * *Simple, how do I embed a flash object of any kind (*.swf or i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Dynamic page layouts with Smarty Templates I am a php student and i am also new to smarty.I know smarty syntax for some extent and I can use it for very basic needs.I am currently planning on a social networking project and as it will be a quite a complex project I don't have a clear understanding of following quest...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Releasing recursive class module in VBA I've been playing around with a class module which contains multiple versions of itself to build up a tree structure. I've noticed the process of building the tree is very fast. Roughly 2 seconds for a 7 level tree with 6-8 branches per subtree. Unfortunately the program runs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: CSS Box model width problem I am newbiew to css. Please have a look of this simple two column layout first. http://www.vanseodesign.com/blog/demo/2-col-css.html I want to ask why the width of content + width of sidebar =/= width of container? A: Width of content = 610px Width of padding in content = 5+5 = 10px Tota...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to send mass emails from c# and check if they were delivered I need to implement the web application for sending marketing emails to the partners of the company. There are some requirements I have no idea how to solve it. * *The first one is how to check if the email was delivered? I'm sending emails through...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Placing a button inside a rendered partial that hides the partial <%= render :partial => "list" %> Inside this partial there is only one div. I would like to have a button in the top right corner of the div to close the div. I would like the button to "not render" the partial and just display the rest of the index....
{ "language": "en", "url": "https://stackoverflow.com/questions/7538302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using dispose() method instead of close() method to a form What is happening when I close a form, which was opened using Show(), by using Dispose() instead of Close()? Can someone tell me in detail, what happening in the Dispose() method? A: The basic difference between Close() and Dispose() is, when a Close() meth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: php & wordpress ASC / DESC using href AND sorting I have been battling with trying to get this code working on my site. I would like to have the ability for the user to sort posts in ascending or descending order from clicking href link. This option should be remembered when the user then chooses to sort the post li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use Binding like proxy? <Setter Property="IsChecked"> <Setter.Value> <MultiBinding> <!-- Get value for property --> <Binding Path="IsPressed" RelativeSource="{RelativeSource Self}" Mode="OneWay"/> <!-- Set value to ViewModel's property --> <Binding P...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Vkontakte Audio Search with HTTP API Sorry for my English. I know very little English. I am trying pull data from here : http://api.vk.com/api.php?api_id=2539386&count=200&v=2.0&method=audio.search&sig=c2b83d95d3d5914de0aa6ae7ca1c1007&test_mode=1&q=beatles c2b83d95d3d5914de0aa6ae7ca1c1007 = md5->141080534api_id=2539...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to solve the vm budget memory heap error in lazy loading bitmaps? I have been using Image loader class for lazy loading in list view. It works fine but I have been dealing with lots of bitmap that will be downloaded from web service. so now I get bitmap size exceeds VM budget. Increased bitmapfactory size to be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Visual C++ can't write into exe after I compiled my project in C++ (VisualStudio) around 3-4 times, I can do it anymore due to LNK1168 that stands for "VisualStudio can't write into the exe". I've looked up in my TaskManager, the exe is NOT running. Normally I have to wait for like 5 minutes but that isn't a real so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Importing a existing Web Application , into Eclipse I need to import a existing Web Application , into Eclipse . Please see the Structure of my Web Application as shown in the below figure . http://imageshack.us/f/220/structurek.jpg/ From Eclipse IDE , while using import What option i need to select that is should...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jquery slider and jquery kwicks issue I am using the jquery slider from http://www.gmarwaha.com/jquery/jcarousellite/ and the jquery kwciks as shown here http://mottie.github.com/Kwicks/. The problem is when click the first element it expands perfectly, and also the second. but if I click the third element it is not...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 3.1 on heroku worth it? I just upgraded my project to rails 3.1 since I saw the sass feature and the moving of public folder files to the assets folder and considered these major changes I should adjust to, especially the sass feature which is pretty cool. however, when looking at heroku, i came across this po...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Scrollview problem In an activity, I have list of buttons and a listview. For every category I have a button and on click of that it shows corresponding data.Here is my xml code. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: save the data of custom metabox to database I want to save the data of my custom meta box to the corresponding table in a field. my custom metabox.. add_action( 'admin_init', 'blc_add_custom_link_box', 1 ); add_action( 'save_post', 'blc_save_linkdata' ); function blc_add_custom_link_box() { add_meta_box( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom Sorting in Linq to Entities based on QueryString Spent all day trying to find ready to use solution for "Sort data in LINQ bases on Query String" without any results. SO, I have a LINQ query in action: public AcrionResult MyAction(int perPage = 10, string orderBy = "DESC", sting sortBy = "id") { var some ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to prompt an alert box in cakephp? <?php $this->redirect(array('controller' => 'Users', 'action' => 'login', )); I would like to redirect and prompt and alert box saying your registration was successfully. How should I modify this code? A: You can use $session->setFlash("message");. In your Layout/View use $se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flex Spark tabbar : initialize hidden tabs problem is I have a spark Tabbar, with many forms in each tab. But I have a single global save button. Problem is, if I don't open a Tab, it doesn't get initialized and therefore the forms it contains do not exist.. How Can I make it as if the user had clicked on every ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: return more then one JSON object in the same response and parsing it i have the following code: (simplified for readability) C# foreach(DataRow dRow in myDS.Tables[0].Rows){ Company myCompany = new Company(); myCompany.id = int.Parse(dRow["id"].ToString()); Companies.Add(m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Help with overriding python import In application no.1 I have a settings.py file, and a utils.py, which contains the following: from application_one import settings def someFunction(): // do some logic here based on imported settings Then in application no.2 I do: from application_one.utils import someFunction...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using dconf watch callback I'm trying to use the dconf api to capture the background change event, in an Ubuntu 11.04. I've created a client and can read the background value, but when I change a dconf value (through dconf-editor), the callback function is not called. How should I use the callback technique? Thanks....
{ "language": "en", "url": "https://stackoverflow.com/questions/7538366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change field in model metadata to read only in runtime based on criteria I'm creating a generic interface for editing pages and on some pages eg the start page I need to disable or remove some fields. The form is rendered with Html.EditorFor. What is the best way of doing this? A: You could write a custom editor t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to start sound after sound in soundmanager2 How can i start sound after sound in soundmanager2, i mean when the first sound ends, second sound to start and when the second end the third start and etc and etc.. A: var soundArray = ['sound1', 'sound2', ...]; var chain = function (sound) { soundManager.play(sound,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Adding an indexed table view with sections from SQLite I have a table view which is populated from data from an SQLite database. I would like to make the table an indexed table view with sections. Can anybody suggest the best way to do this ? All the examples I can find use a plist which I am not using. Thanks ! A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to change default folder So I'm developing with my team and we are using Github for that. Now, default folder is usually in C:\Documents and Settings\username\.ssh\somefolder now when I want to commit&push changes I MUST commit from this folder, but its annoying because I'm editing and testing files on my wam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In Magento 1.6, changes to login.phtml don’t reflect I customized the file app\design\frontend\base\default\template\checkout\onepage\login.phtml to hide the login fields in onepage checkout. It works well in 1.5 version. When I do the same modifications in 1.6 version, nothing changes in the frontend. I observed th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Martin Odersky's ScalaDay's 2011 Example: Yielding a Map? I was working through Odersky's ScalaDays 2011 keynote talk, where he constructs a phone number synonym generator in remarkably few lines of code, when I got to this particular line (assigning charCode): val mnem: Map[Char, String] = // phone digits to mnemon...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Python group by array a, and summarize array b - Performance Given two unordered arrays of same lengths a and b: a = [7,3,5,7,5,7] b = [0.2,0.1,0.3,0.1,0.1,0.2] I'd like to group by the elements in a: aResult = [7,3,5] summing over the elements in b (Example used to summarize a probability density function): bResu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: "JSR-303 Provider is on the classpath" Means I am using Spring MVC 3. Here is the my model, public class MarketPlace { @NotNull(message="This Template Name is required") @Size(max=50) private String templateName; public String getTemplateName() { return templateName; } public void ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In Python, how to catch the exception you've just raised? I've got this piece of code: jabberid = xmpp.protocol.JID(jid = jid) self.client = xmpp.Client(server = jabberid.getDomain(), debug = []) if not self.client.connect(): raise IOError('Cannot connect to Jabber serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: cancan and enums only on "show" action I'm using cancan in my rails 3 application with mysql DB. When i create a rule based on an enum column i always get AccessDenied only for "show" action. Any idea why? I use enumerated_attribute to enforce enums in the models and an actual ENUM type column in the database. Examp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Face Detection on Camera video input on iPhone I am working on a project that needs to do face detection on a camera video input (like security camera). I managed to open Video input via AVFoundation framework. I managed to capture a UIImage from the video input, then feed into opencv library to do face detection. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to delete firefox cookies in C#? I delete firefox cookies by this code: if(Environment.SpecialFolder.ApplicationData + @"\Mozilla\Firefox\Profiles\cookies.sqlite") { File.Delete(Environment.SpecialFolder.ApplicationData + @"\Mozilla\Firefox\Profiles\cookies.sqlite"); } but when I run firefox, deleted file resto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how can I wait for results in javascript? I have a bit of javascript code that is getting loading in some data from an RSS feed. I then need to process that data and then get some more data from another RSS feed, but it is dependant on the results of the first feed. When I run my app, it processes both feeds at the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7538400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }