text
stringlengths
8
267k
meta
dict
Q: How to make div width almost 100% I have such a html code: <div id="outer"> <div id="inner"></div> </div> How can I make #inner div to have width 100% of #outer but minus 10px? Here is my css: #outer { width: 100%; max-width: 500px; } A: Simply set a margin-left and/or a margin-right of 10px: #inner ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: $.get command running out of sequence in JavaScript I am have a JavaScript that is not running in sequence. The script establishes an unload function. It uses the $.get jQuery command to retrieve a file, then it is supposed to print the file to the external device. I added some alert boxes, so I would know whethe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Module Pattern code loaded at run-time as normal anonymous functions I'm using Javascript Module Pattern, for the many benefits it gives, and I'm loading a JS file at run-time using: return $.ajax({ url: "../../Scripts/myFile.js", dataType: "script", cache: true }); the 1st line of myFile.js is myModule...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: datetime goes one hour forward when using unix timestamp with localtime settings Firstly i want to tell my server time setting : its +3 Europe/Istanbul and in php i am using date_default_timezone_set('Europe/Istanbul'); I use datetime type in my mysql table, when i insert row, its written like 2011-10-01 15:16:09 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook Like Request Is it possible to request the likes of a particular object for a specific time? I have to know the likes till 2011-09-30. Like: SELECT url, share_count, like_count, comment_count, click_count, total_count FROM link_stat WHERE url="'.$url.' and date <= '2011-09-30'" Are there any date co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What platforms will my app that targets the .Net 3.5 framework run on? I'm writing a C# app (in VS 2008). If I target the .Net 3.5 framework, will it run on Windows XP and above? Will XP users potentially have to download a .Net upgrade? UPDATE If the app is intended for business / corporate environments do you thin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Anchor element becoming display:block in HTML5 instead of display:inline with cufon I got <a> elements that are display:inline in html4 and page displays fine (like I want it to). Now I am updating my page with new html5 and as a result following cufon link becomes display:block instead of display:inline, which is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Call and Execute a Function on a DLL using VBScript My target DLL file is Microsoft DirectInput dll file which is located here: C:\Windows\System32\Dinput.dll I have monitored an application which uses it for API. I just see that it has call for "DirectInputCreateEx" on Dinput.dll and I did not found any other usefu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using red5recorder in Asp.Net page I have setup the red5 server on my local machine and want to create a Asp.Net application which will have a recorder module (red5recorder) to enable recording the video using the client webcam and microphone. Have gone through the red5recorder site, could only find some javascript ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Batch posting to feed I am conducting test for a future project. I tried to rapidly post 100 - 200 test messages to a test user's feed from a server creating ~20 threads in parallel to send them as fast as possible. I got positive response to each one of those requests (including the id of the item being created in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WaitForExit for programs of type MS Word - process already started In my app I want to open *.rtf file, and than wait for it to be closed. Often user has MS Word to open *.rtf files and here is the problem. Code below works, but only when "WINWORD" process has not been started yet. When it is, calling Process.Start(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: remote debugging gdb multiple process I am unable to debug a child process of a remote debugging session. I found a similar question How to debug the entry-point of fork-exec process in GDB? I am following the same procedure, although for a remote target. Is follow-fork-mode child supported for remote targets ? Foll...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Handling postbacks from an AJAX Rating Control inside a Repeater I have a Repeater control with a Rating control (from the latest AJAX Control Toolkit) inside: <asp:Repeater ID="repStudents" runat="server" onitemcommand="repStudents_ItemCommand"> <ItemTemplate> <%# Eval("FirstName") %> <asp:Rating ID="warn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Uploading images in cloud9ide? Anyone else can't upload via the drag and drop function images in clou9ide? The name of the image appears in the file browser in the ide, but the image is broken (displays the broken image icon, in chrome). In fifrefox I get HTTP error [24]:500 not_defined callback is not defined0.1. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jquery plugin to change HTML checkbox style ! Just like the stackoverflow style’s input tag I found a jquery plugin to do that! But I forget the name Plz help! A: Have a look at the TagIt plugin. However, it's not related to checkboxes at all.
{ "language": "en", "url": "https://stackoverflow.com/questions/7620301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: domElement.getClientWidth() and domElement.getClientHeight() return 0 I try to get size of GWT element with CssClass using standard methods, but it returns 0; Canvas canvas = Canvas.createIfSupported(); if(canvas == null){ /*alert code*/ } Element e = canvas.getElement(); canvas.getElemen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Too many try/catch block for PDO In the controllers class files, most of the method functions include try/catch block something like this: try { $stmt = $this->prepare($sql); $stmt->execute($params); $result = $stmt->fetchAll(PDO::FETCH_ASSOC); //foreach() or so on... } catch (Excep...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I serve CSS to Django in development? I've been all through the documentation, and it just doesn't make sense to me. I ran collectstatic, I set up /static/ directories in both my app and my project directories, I added STATIC_URL and STATIC_ROOT to my settings.py file (but I have no idea how to know if they'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Windows Phone 7 Add PivotItem to Pivot with code in real time, how? How can I add Pivot Items in runtime, and add some content to it? A: You can create PivotItems at runtime just like you would create any UIelement. For example like this: PivotItem pitem = new PivotItem(); //create pivotitem pitem.C...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does CSS work in JqueryMobile In jqueryMobile, only the first page section seems to be loaded. When the user is redirected to a second page, the of that page is added to the first page, no headers are loaded. If that is correct, how do we manage CSS files in jQueryMobile? Do I need to specify ALL the website ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Remember user input from other website A registration webpage impressed me by knowing all my name, address, email, telephone number. This is the first time i visit this website. I guess that it might remember from other website with same id or name such as id="firstname" id ="telephone" but i don't know exactly what...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Open Graph Beta, how do you post that two Facebook users are friends within in an app? In our app, you can be friends with each other (just like you can be friends on Facebook). Is it possible to use the Open Graph Beta to post an update in the News Feed, Ticker, and Timeline that a user (who is already authen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: email_hashes and deprecated connect.registerUsers It is very important that Facebook Connect and Facebook app users aren't duplicated in our website. So if they already have an account on our website, when they connect through FB Connect or our Facebook app, we want to link rather than create another account. We t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails 3 Nested resource routes inherits parent constraints, how to avoid it? It you define constraint on "id" in parent resource: resources :foo, constraints: { :id => /CONST/ } do resources :bar end The nested resource will inherits that constraint for its own id, thus the generated routes will be like: /foo/:fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Get PID from ShellExecute I am launching a process from ShellExecuteEx, and I really need to get the ProcessID (It's part of the requirement of this class). Somehow all the important SHELLEXECUTEINFO returns null. So for example if I use this code: exInfo.lpVerb = "open"; exInfo.lpFile = "C:\\Windows\\system32\\cmd...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best server side technology with Adobe Flex as UI I am new to web technologies. I along with my friends want to develop a web application. There is one guy in our team who knows Flex technology. I would like to use Java Springs framework at the back end. The web application caters to students a Music school. And fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there referrer header while using SSL? Is there referrer header within domain while using SSL? A: If a website is accessed from a HTTP Secure (HTTPS) connection and a link points to anywhere except another secure location, then the referrer field is not sent. The upcoming standard HTML5 will support the att...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is this the correct approach to design a shopping cart Android application? I have a requirement to develop a shopping cart Android application. The features should include * *Ability for any customer to register *Ability to login with his credentials *Search and select products *View history about his previo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cursor should appear from start in editText in android I have a screen which have editText and a button, now when we click on the button it will fetch the Text from another screen and set to the editText. The problem is when the text has been set to edittext cursor position is coming at last. I want that cursor posi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript accessing functions of same class In the following code: function xyz(x) { //something this.x = x; } xyz.prototype = { a: function () { //do something }, b: function () { //pre this.a();...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is that how 'Long' works (in Java)? Look at this Java code: class PerformanceTest2{ public static void main(String args[]){ Long sum = 0L; for(int i=0;i<Integer.MAX_VALUE;i++) sum += i; System.out.println("Sum = " + sum); } } It is observed that it takes longer for t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: RemObjects SDK - how to retrieve client GUID from server when connecting to server? Does somebody know how to retrieve client GUID when connecting to server in RemObjects SDK ? (using SuperTCP/IP protocol) A: To get the session ID of the current connection on the server, use SessionID property: SessionIDString := G...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# Clicking on a certain point on the screen I am trying to perform a mouse click through c#. I used the mouse_event function to do it. private const int MOUSEEVENTF_LEFTDOWN = 0x02; private const int MOUSEEVENTF_LEFTUP = 0x04; [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.St...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: css - style the edge of the selected area in table I have a selectable table (jQuery UI selectable). How do i "access" the edge (top, left, right, bottom) width css, or do I have to use javascript? Update: with "accessing the edge" I mean for example create a border around a selected area in a table (select td eleme...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WP7 localization does not work I'm trying to do a simple localization of my app, making it support English (default) and Danish. I've followed the MS tutorial, and I've looked at some samples but for some reason the simulator does not show the danish version when I choose danish language as the simulator language. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: get formated output from mysql via python Hi I want the following output from my query: OK|Abortedclients=119063 Aborted_connects=67591 Binlog_cache_disk_use=0 But I dont know how to generate it. this is my script: #!/usr/bin/env python import MySQLdb conn = MySQLdb.connect (host = "...", user="...", passwd="...")...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting a variable - constructor/get/set C# i haven programmed in a while so i forgot something. ive got a "Kunde" class. with some variables: class Kunde { private string _navn; private string _adresse; private int _postnr; private string _by; private int _telefonnr; private int _mobil; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ninject getting a generic type in ToMethod I have a repository like this: public class Repository<T> : IRepository<T> where T : class { private readonly ISession session; public Repository(ISession session) { this.session = session; } } I use NHQS and I usually do this to get a ISession obj...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I POST variables using jQuery / Javascript to another page? How do I use POST using jQuery/Javascript to send to another page and redirect to that page? Sending variables using GET... In Javascript window.location = 'receivepage.php?variable='+testVariable; When it is receive by PHP... $var = $_GET['variable...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mongodb import and deciphering changed rows I have a large csv file which contains over 30million rows. I need to load this file on a daily basis and identify which of the rows have changed. Unfortunately there is no unique key field but it's possible to use four of the fields to make it unique. Once I have ident...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: using Android HttpGet/HttpPost to communicate with odbc database: is there a faster way? I'm writing an app to use an Android device to get and set data from an Access database on a local area network. I'm using HttpPost and/or HttpGet to communicate with php pages on the server which in turn communicate with the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Insert index column in table with large data now i have a table with some columns and a large amount of data: Table1 Column1 Column2 Column3 data1(string) data2 data3 At the moment, the primary key is column1 typed with string. I need to add a new column Column0 with seriel interger, an index really. Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery toggle mouseover/enter & mouseout with a simple function I have html. <p class="textlimity" title="heyheyhey"> asd</p> now in js i would like to toggle the textlimity text() on mouseover and mouseout so i written. var textlimity = ""; var texlimity_temp = ""; $(document).ready(function(){ $('.textlim...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stubbing out functions or classes Can you explain the concept stubbing out functions or classes taken from this article? class Loaf: pass This class doesn't define any methods or attributes, but syntactically, there needs to be something in the definition, so you use pass. This is a Python reserved word that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Why is it a bad idea to use 'new'? Possible Duplicate: In C++, why should new be used as little as possible? Is it really a bad idea to use 'new' in instantiating a class in C++? Found here. I get that using raw pointers is ill-advised, but why have a 'new' keyword at all when it's such bad practice? Or is it? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Get directory listing from any URL As far as I have read, PHP can only get the file listing from local server on which script is running. What I need is the list of files in a directory on an external URL, which is not FTP but an HTTP URL, such as www.google.com. Is this possible in PHP? Here is example of what I wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: DevExpress XtraGrid control's Is not showing data in the xtragrid view i created one application which uses devexpress xtragrid control. I used xtragrid control on the user control of devexpress. And used that user control on the form. And in the load event of user control i bind the data to the xtragrid control by ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Editfield scroll fails to reach top in blackberry I am having 2 EditFields in my login form with names Email: and Password:. Just below email I have login button. Suppose I come down till login, I can scroll back only till password field.The cursor fails to reach Email field. In simulator, I tried using arrow keys ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Jsoup Element.attr() returning unexpected value (Android) i'm using JSoup to parse a webpage like this, and make it into two string arrays, one for each of the items text values (to be displayed in a ListActivity) and one for the links. some of these text values have special characters which jsoup has trouble parsin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to convert image file data in a byte array to a Bitmap? I want to store image in SQLite DataBase. I tried to store it using BLOB and String, in both cases it store the image and can retrieve it but when i convert it to Bitmap using BitmapFactory.decodeByteArray(...) it return null. I have used this code, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "135" }
Q: HTML5 Canvas | How can I make this work smoother and better? I am trying to create a wave animation in my canvas, but it works really slowly (Probably because of bad code). How can I make this work smoother, and make the Wave(Math.sin) look more like a sea wave? Here is the code: <!DOCTYPE htm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C#: override GetHashCode, what does this code do? Here's the code I found in the Nhibernate 3 Beginners Guide to override GetHashCode. I don't understand why it uses result * 397. If 397 just a random number he use to generate unique result?? Can we just GetHashCode for firstname, middlename and lastname, then combi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Vector.indexOf won't work for my class I'm building simple phonebook. Thus a have created a class "Person": public class Person implements Comparable<Person> { String Name; String number; public Person(String name,String Num) { Name=name; number=Num; } public String getNumber() { return number; } publ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do i set Maven to retrieve dependencies first from my own remote repository (Archiva)? How do i set Maven to retrieve external dependencies first from my own remote repository (using Archiva), and if its not found, Archiva will download from external sources, and at the same time saves the downloaded dependency?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: document.write loop not working remotely The problem: doesnt output an image. image name (1).jpg up to (42).jpg <script type=text/javascript> var i=1; while (i<=42) { document.write("<div style=min-height:200px; onmouseover=\"innerHTML=\'<img style=width:800px; src=("); document.write(i); doc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Links in HTML image map not working in FireFox, Opera, Chrome and Safari Is anyone able to help here? I have an image map formed of a .png image which has several 'polygon' areas defined in it, each with a link behind it. The links work in IE, but for the other browser types listed above, the links do nothing except...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Interface Downcasting Please suppose I have the following extension method in order to be able to force evaluation of an IEnumerable: public static List<T> EvaluateNow<T>(this IEnumerable<T> collection) { if (collection == null) { throw new ArgumentNullException("collection"); } else { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XCode – XCode 4.2 beta ARC will not compile I'm trying to build a simple OS X Command Line application in XCode 4.2 beta (Build 4D58). But I'm getting an error when I try to compile it saying: /Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:57:22: error: 'CFMakeCollect...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implementing Directshow IFileSourceFilter interface in a CSource based Filter I implement simple Directshow Filter which derived from CSource filter. It work fine. What i want is to add the filter IFileSourceFilter. So what i do for this is: I implement FileSourceFilter interface with two methods: HRESULT Load(LPC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting CDATA XML Section Using Linq I have searched around looking for ways to get at the CDATA section text area and found very luk warm solutions using linq. I need to extract the XML imbedded in the CDATA Section so I can pull out different pieces of info. I have the following XML: <Envelope> <Warehouse /> <P...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Getting RunTimeError while writing Junit with EasyMock? i am writing the junit using easy mock for my program. Below is the test method public static void doBeforeEachTestCase() { private static FibanocciProg mock; mock = EasyMock.createMock(FibanocciProg.class); FibanocciProg testObject= new FibanocciProg(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# SQL and LINQ duplicatekeyexception adding a record.....newbie I have a database with this tables: PERSON ==> id=>int_primarykey(asc) name=>nchar(20) town=>nchar(20) EMAIL ==> id=>primarykey(asc) idperson=>int mailaddress=>nchar(20) telephone ==> id=>primarykey(asc) idperson=>int telnumber=>nchar(20) So I have ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CURL and dropdown array I'm trying to submit a form via POST, however the website has regionand city dropdown, the dropdown is constructed like this There ar dropdowns for each region, but their hidden so most of them are region_id => '', however my post and their post are identical, yet it still says please select ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Black Hole Exploit" notice from AVG for a web site I have a website I run for a relation and their AVG came up saying "EXPLOIT BLACK HOLE EXPLOIT" or something like that. This seems to happen when the website is infected, and I think it is infected. I found this line of code on all the pages, and I didn't put it th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use stemDocument in the R language tm (text mining) package? I am trying to stem a Corpus using stemDocument in the R language tm package which calls Java. I have tried the example in the tm manual: data("crude") crude[[1]] stemDocument(crude[[1]]) and get the following error: Could not initialize the Gener...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to paint to a bitmap First of all: I'm sort of new to GDI, so please excuse me (and do let me know) if I make any misconceptions. What I'm trying to do: I'm trying to let my WM_PAINT code paint to a bitmap instead of to the screen with BeginPaint(). I would also like to display the bitmap on the screen while als...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: On a Day Like Today program I have made a program that finds the current date and then do a search in a php array and shows what happens On a Day Like Today. The only problem is that the program can't read the months 10-12 correctly. Here is my code: The php array: $anniversary = array( '1/01' => array ( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i add several forms in MainForm of C#.Net? I want to add several forms in MainForm of C#.Net. We can go to next form with Form like that. Form frm=new Form2(); frm.ShowDialog(); like that.If we go with that method,Form2 will apper with new form.Not in MainForm. I want to do following picture. http://i.imgu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to use komodo edit as git core.editor (i.e. without forking)? When using a gui text editor (e.g. komodo edit) as core editor for git (commit messages), that editor process must not be forked or else git will assume an empty commit message, because it "thinks" the editor would already be finished witho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What do those CSS properties mean while centering a form element? While searching for how to center a form element in CSS, I found that I have to set margin to auto and then set a width property. But, what does width represent here? When I for example set the width to 350px I get the form to the center, while when s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sencha Touch Panel rendering issue We are developing a tablet oriented application in Sencha Touch with multiple List objects side by side surrounding each one by a panel, all of this inside a big panel in our Viewport view (consider we are follow MVC strategies recommended by Sencha Staff). Our problem is we are tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: string from php script to flash I'm using facebook php sdk to get friend list of an user. But I'm strugling to get that list to flash. The idea is that the list is always new, depending from the user loading the application. So what I need is one .html file which is loaded with php script to proccess friend list an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iterate over argument list in linux shell I want to iterate over the argument list in shell, I know how to do this with for var in $@ But I want to do this with for ((i=3; i<=$#; i++)) I need this because the first two arguments won't enter into the loop. Anyone knows how to do this? Looking forward to you help. c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: gcc compiler error: "cannot find -lcs50 collect2: Id returned 1 exit status" I have a problem in 'c' language inside compiling with gcc. * *I am using "Cygwin" with (gcc-core, gcc-g++, gdb, make & other supportive packages) inside windows xp. *I installed "Cygwin" on this path "C:\Cygwin\". *My home directory: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Python get a "sub" 2d list from bigger 2d list? How would you get a 2d sublist from a bigger 2d list? gridx = 10 gridy = 16 grid = [[0]*gridx for i in range(gridy)] subgrid = None # I want to get a subgrid given an x,y grid origin (bottom-left) and x,y subgrid size A: If you want to slice your 2D list at the limi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Manipulating the app.config file for unit tests I have isolated the NUnit tests for my C# app in an assembly called Tests.dll. The associated configuration file is called Tests.dll.config. This is what Nunit uses rather than my app's actual config file. It looks like this (only showing a couple of config options the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to set the location of WPF window to the bottom right corner of desktop? I want to show my window on top of the TaskBar's clock when the windows starts. How can I find the bottom right corner location of my desktop? I use this code that works well in windows forms app but does not work correctly in WPF: var desk...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Playing video on iOS using OpenGL-ES I'm trying to play a video (MP4/H.263) on iOS, but getting really fuzzy results. Here's the code to initialize the asset reading: mTextureHandle = [self createTexture:CGSizeMake(400,400)]; NSURL * url = [NSURL fileURLWithPath:file]; mAsset = [[AVURLAsset alloc] initWithURL:u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to get data in MySQL table into Java JTable? I'm working on Java project, and I need to load a particular set of data in to JTable. Can someone explain to me how to do this? These are my fields in the "mrnform" table in database called "order_processing". `Date` varchar(10) NOT NULL, `RegNo` int(11) NOT NULL, `...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Creating elements with jquery .click I'm currently working on a small "dress-up" type feature for a friend's website, but have run into a logic issue. The items that you may use to dress your avatar must be bought. Bought items are loaded on screen for users to click (as an image) and when clicked should create a j...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Funny font in the build messages in Codeblocks using g++-4 (Cygwin) as compiler I am using CodeBlocks 10.05 with Cygwin 1.7 to compile some C++ codes. The operating system is WinXP SP3. The compiler used is g++ 4.5.3. When I build the following program: #include <stdio.h> #include <stdlib.h> using namespace std; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Windows Phone 7 DownloadStringCompleted and what was the url? Or params? private void button7_Click(object sender, RoutedEventArgs e) { WebClient client = new WebClient(); client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(client_DownloadStringCompleted); client...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Fixing non-displayed headerlinks I have the following page I'm working on: http://69.134.44.19:8000/products.html?v=products In Google Chrome and Firefox, it displays correctly, in IE, however, all the links are pushed down under the logo. It also (I now realize) isn't using my :hover thing in my css for all of my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Same domain JQuery $.ajax sending OPTIONS as REQUEST_METHOD My problem is very similar to this one but I don't see why my requests would be cross-domain. Here is what I get with firebug: All domains are the same, I don't understand why Firefox and IE have this behaviour. You can test here, just click on one of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does one get the height/width of an SVG group element? I need to know the width and height of a SVG element? Im trying to use the following: $('g#myGroup').height() ...but the result is always zero? A: svg <g> elements don't have explicit height and width attributes, they auto size to whatever they contain. Y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Rotating images generically So this is working well for me so far but I do not want to make a new method for every image on the page. How do I get the control "Card" in the codebehind method when it is called so I can use the same method on every image button. Is there a better way to do this? All I want is to rotat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extending an Entity, error on ReportPropertyChanged I am trying to find out how to extend an Entity by adding a property based on calculations. In the example below I created a MyProperty property that I attribute to the current number of seconds (as an example). However when I try to trigger "ReportPropertyChanged"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP classes used within classes? I understand that $something->function(); is calling a function within a class but what does $something->somethingelse->function(); mean? A: I assume you mean $something->somethingelse->function(). It means that a property of $something named $somethingelse is another object that ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using strings in a switch case for a menu? I'm making an app for a forum currently, and I'm adding a favorites section where you can add your favorite sections for quick access. I have a menu set up that has a list of the different sections, so what I did was make a switch case to decide what to do when a certain me...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I get my a tag background to sit on top of my div background? Newb question. I'm trying to use z-index, but it doesn't seem to be working the way I would expect. Here's my code: <a id="favoritelink" href="#" style="margin-left: 600px" class="addtofavorites" title="Add to Favorites"></a> <div class="descriptio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bind array of classes using jQuery Is it possible to simplify the following jQuery using a for loop? $("#nav li a.h").mouseover( function () { if($(".content.h").is(":hidden")) { $(".content.h").fadeIn('fast'); } } ); $("#nav li a.e").mouseover( function () { if($(".content.e").is(":hidden"))...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: rso between flex and red5. I can create but cant read so im still stuck on this that i can create remote shared object but cant read while im notified about changes. im using trunk version of red5, and flex 4.0 with flash builder. in debug i can see that changeLog has name of the changed value of rso, but object its...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the purpose of Datasets? I want to understand the purpose of datasets when we can directly communicate with the database using simple SQL statements. Also, which way is better? Updating the data in dataset and then transfering them to the database at once or updating the database directly? A: I want to unde...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: PHP strtr vs str_replace benchmarking I'm curious what the most performant method of doing string transformations is. Given a n input string and a set of translations, what method is the most efficient in general? I currently use strtr(), but have tested various looping methods, str_replace() with an array, etc. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generate random coordinates around a location I'd like to have a function that accepts a geo location (Latitude, Longitude) and generates random sets of coordinates around it but also takes these parameters as a part of the calculation: * *Number Of Random Coordinates To Make *Radius to generate in *Min distanc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How can i perform the following conversion? Formatter fmt=new Formatter(); Calendar cal=Calendar.getInstance(); fmt.format("%tc",cal); System.out.print(fmt); // Instead of System.out.print(fmt); i want to print the value of fmt on JTextArea.But as we know JTextArea accepts only String value.So how can i convert For...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Customize UISearchBar: Trying to get rid of the 1px black line underneath the search bar My question is already specified in the title: I would like to get rid of the black line drawn on the bottom of the UISearchBar. Any ideas? Here's an image of what I mean: UPDATE: I think that the line is part of the UITableVie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: convert mysql dump file to access db I have mysql dump file and I need to convert it to ms access, I have no access to phpmyadmin so I can't use the programs that connect to the mysql db, so I need for a software to convert mysql dump file to ms access db. just i have this dump file in hand thanks if you can help
{ "language": "en", "url": "https://stackoverflow.com/questions/7620566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: mmap and munmap behaviour The Open Group standard says that munmap should be called with a page aligned address, but there doesn't seem to be any requirement that mmap should be returning a page aligned address. Is this something you need to handle when you're writing portable code? A: mmap will only map whole page...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to optimize this mysql query? I have this query SELECT id FROM btn WHERE parentid =0 AND (mem_id =ANY(SELECT mem_id FROM network WHERE frd_id='401') || mem_id ='401') ORDER BY btn.date DESC LIMIT 0,20 & this query SELECT mem_id FROM net WHERE frd_id='401' gives me result like this mem_id 34 45 633 24 22 I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }