text
stringlengths
8
267k
meta
dict
Q: In Javascript, is it not recommended to use ==, and how to use ===? Possible Duplicate: Javascript === vs == : Does it matter which “equal” operator I use? In Douglas Crockford's book Javascript: The Good Parts, it is recommended to not use == at all, due to hard to memorized rules. Do advanced or seasoned Javas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using pycurl to get next page google results I have written code to search something on google using pycurl. I would like to be able to use pycurl to do this but all help is greatly appreciated. I am looking for the ability to search a term and then "click the next page button" or "click the indexed numbers at the b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: StructureMap: Multithreaded env. No default instance defined for PluginFamily I'm dealing with structuremap error for quite a while. The error is: StructureMap.StructureMapException: StructureMap Exception Code: 202 No Default Instance defined for PluginFamily SomeNamespace.ISomeInterface, SomeNamespace, Versio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to create a web service that receives and sends xml based on xsd files? I need to create a .NET web service that accepts xml, uses this to query a database, and then returns xml. I have been given xsd files for the request and response. Could someone point me in the right direction for where I start from or an e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the relationship between XNA and XNA for Windows Phone? What is the relationship between XNA and XNA for Windows Phone? Is that latter a true subset of the former like the .NET Client Profile? Mostly a subset (like Silverlight vs Silverlight for Windows Phone)? Or is it simply a similar API like WPF vs Silv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Javascript for google image ripping broke with update I grabbed a few small scripts and threw them together to take google's new image layout and turn back into the old one, then take the images and replace them with the full size versions. Worked great until about last week. Not sure what changed on the server side...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to retrieve HTML from silverlight Webbrowser control out of frames i need to get the html of a frame inside the silverlight webbrowser control. i've looked at the following questions How to retrieve HTML from Webbrowser control out of frames in .net (c#) accessing Frames rendered in webbrowser control in C#.net...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jqGrid multiselect - limit the selection of the row only using the checkbox Good morning, I'm working on a jqGrid that have the multiselection active. I need to limit the selection of the row only using the multisel box, not by clicking everywhere on the row. Thats's because I need to do some action by clicking link...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Show Views when Editing Edittext in Landscape Mode? I have been searching for a solution to this for a long time and would be very grateful for your help- I have an EditText with a TextView next to it, which shows line numbers. Normally when editing an EditText in landscape mode only the EditText is displayed. Is i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where is the .JS file in this code? And why are they calling it this way? Where is the JS file and is this Async the fastest way to call JS? I guess they then have PHP calls in the .JS for updating the Ad stats?? The code: <script type="text/javascript"> (function(){ var acc = "acc_230d269_pub"; var st = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Passing a struct with a byte array inside to a interop-ed method I have a situation where I have to pass a struct to a C method (declared as extern in my C# file). This struct however is quite complicated. I already used successfully the approach with AllocHGlobal, but I would like to understand if is possible to ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I change directory (cd) with Ganymed SSH API? I must be missing something here, but how do I call something like "cd /root/some/dir/" with Ganymed SSH API? * *I created a Connection object *In the first session created, I called "cd /root/some/dir" *In the second session created, I called "ls ." or "./...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: OnChecked event on radiogroup in listview fired multiple times I have created an application containing radiogroup in each row of listview. The problem is that when i scroll the listview, the selection of the radiogroup changes as the oncheckedevent for the radiogroup fires multiple times. Here's my getView functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Django - Iterate through postdata from ModelMultipleChoiceField I am creating a form which will allow a user to send an email to multiple people (students). I have used ModelMultipleChoiceField to create checkboxes for each user, however I'm not sure how to deal with the data that gets posted. Here's my view so far:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to include DLLs to published application? In my solution I reference DLLs file from Libs folder. When I publishe application they don't copy to published folder. Is there anyway to make them to be copied too? A: You should put your DLLs in the Bin folder. The publisher will copy that folder. A: In addition to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Find sub list inside a list in python I have a list of numbers l = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] [0, 0, 0, 0, 0, 1, 0, 0, 0, 0] [0, 0, 2, 1, 1, 2, 0, 0, 0, 0] [0, 0, 2, 1, 1, 2, 2, 0, 0, 1] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using Multiple Detail Views with Split View Controller As you know, a UISplitViewController has one root controller and one detail view controller only, but I want to use another detail view controller. When I select the list items from the root controller (popover controller), the selection should fire different de...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: about android invalidation? Now, I have a Framelayout, it includes two views. when I call the top view's invalidate() method, I found the another view's onDraw() also be called. I suppose the another view's onDraw() should not be called, Is there a way to stop the onDraw be called? Is there someone tell the reason w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DockPanelSuite .Can I hide/Disable x and down arrow + tab header Really like the free Dockpanelsuite.New to it and was wondering if possible. I would like to hide the x and down arrow + tabheader Is this possible? Thanks A: The close button can be hidden on a per-DockContent basis via the CloseButtonVisible propert...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: haltonset: understanding skip and leap If i read the doc of how to construct a Halton quasi-random point set and it mentions that it's possible to 'skip' the first values and then retain the 'leap' values. Don't understand what the 'skip' and 'leap' really mean. Have tried the following: >> p = haltonset(1,'Skip',50...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Yii Retrieve and store in a variable a renderPartial file I have a php file under protected/views/directory_controller_name with formatting like that <p> <?php echo $model->title;?> </p> ... I display the file with classic method in the controller : $this->render('filename',array('model'=>$model)); But know, I ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: three axis graph in R I have a question regarding generating a graph in R in a three dimension. Suppose, i have the following data in a csv format file; CPU_Usage Power_Consumption(Watt) Bandwidth 50 59 20MB Now i want to represent this on xyz axis where the x-axis represents cpu,y rep...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to loop through :eq for an unknown range using jquery? How to loop through a jquery each loop using filter :eq for an unknown range? for example, I would like to loop through the following: $("#list li:eq("+ i +")").each(function(i) { i++; }); This code does not work A: $("#list li:eq("+ i +")").each(fun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Watching function call Is there a way to trace all calls to a certain function? The purpose is to plug-in a debug function when "listening" to a function call. For example, I will say "listen to all calls to mysqli_query()", so I can send the function name (and perhaps the arguments) to a debug/log function. A: The...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQuery messing with my form Quotes I have a form that uses .delegate to apply input validation to the form however, it appears any form with quotes just disappears.. No errors, the quote just disappears. Anyone know why this is happening? The only work around is to output the default value in the textbox as & #34; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Unable to maintain uniform scale when resizing window, OpenGL + Java = JOGL I'm using JOGL (Java OpenGL wrapper) for the first time and I have an issue I can't figure out, I'm not sure if this is related to JOGL or OpenGL in general. I render on a GLCanvas inside a JPanel inside a JForm (the whole point of the progr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to improve rendering performance with multiple equal and heavy movieclips? I have 25 kind of heavy movieclips on the screen. They show many bitmaps, each one of in one of their frames. The problem is that the application gets unusable when they are on screen. And even after removing them the app keeps slow. Usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: server listens to multiple ports c I need to example to a program for an single thread server that listen to multiple ports in c (linux red-hut) ? should if use one socket? A: You can't bind to multiple ports, thus you can't listen either. You need to use one socket per port. It shouldn't be hard to do so. Simply ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pyodbc connection error when trying to connect to DB on localhost I have a local DB on my machine called 'Test' which contains a table called 'Tags'. I am able to access this DB and query from this table through SQL Server management studio 2008. However, when using pyodbc I keep running into problems. Using this: c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to set the size of DataGridView VB.net Program http://www.repairstatus.org/program.png The DataGridView fetches the data from a MySQL server but it does not fill the entire box in size. Ideally I would like to manually set the table size to fit the box at least width-wise because the rest will fill up once the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CodeIgniter 2: How to extend CI_Controller multiple times? I have successfully extended the CI_Controller class by creating a MY_Controller.php which I have placed in the application/core directory. core/My_Controller.php looks something like this: class MY_Controller extends CI_Controller { function __construc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Uploadify with NodeJS | Post parameters not being sent I'm building my latest app using nodeJS and need to be able to upload multiple files. I have chosen to use Uploadify flash based file uploader. Unfortunately the 'scriptData' vars don't seem to be being sent. Usual method of retrieval of POST vars in node looks ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I change the column type (xtype) of a grid using Sencha Designer? I'm using Sencha's Ext Designer to create their Cars example, but I can't find the correct property to change the Price column so that it renders like a number. The code behind it refers to an xtype, but this property is unavailable in the de...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Template specialization with polymorphism I'm wanting to invoke a specialized templated function by using a pointer to it's base type. I'm not sure if this possible so I'm open to suggestions and/or alternatives. Here is an example of my situation: class CBase {}; class CDerivedClass : public CBase {}; template<cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to run some code as an object is being destroyed? In C# I know that my objects are garbage collected when they go out of scope and there are no more pointers/references to it. Is there a way to run some custom code when this garbage collection occurs? A: Yes, it's called a finalizer. http://msdn.micr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: env->FindClass("java.lang.Math"); env->FindClass("java.lang.Math"); fails. Why? gcc -I/System/Library/Frameworks/JavaVM.framework/Headers test.cpp -framework JavaVM -o test && ./test http://developer.apple.com/library/mac/#samplecode/simpleJavaLauncher/Listings/utils_h.html#//apple_ref/doc/uid/DTS10000688-utils_h-D...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AVAudioPlayer Notification issue So I'm almost done with my app and I've hit a wall and cannot get around this final problem. I basically have 2 view's. A main page and the game play screen. On the first play the game works fine, but when i leave the main screen and then return to the game screen all the sounds are...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GD+PHP: Exception to see if imagefail fails? imagetruecolortopalette($dst_image,true,$colorcount); imagepalettecopy($dst_image,$src_image); $transparentcolor = imagecolortransparent($src_image); imagefill($dst_image,0,0,$transparentcolor); imagecolortransparent($dst_image,$transparentcolor); So I want something lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Products catalogue: filter by parameters I need to make the filter products by features. So, products model: <pre style='color:#000000;background:#ffffff;'><span style='color:#800000; font-weight:bold; '>class</span> Product<span style='color:#808030; '>(</span>models<span style='color:#808030; '>.</span>Model<span ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting value array on input:chechbox Why in following PHP code output var_dump for checkbox($service_un) in offset[1] is empty? this variable($service_un) get values checkbox_un in following HTML code that are as array but not know why in output var_dump on offset[1] values input:name="checkbox_un[1][]" are empty. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to Adjust the second div I have two Div http://jsfiddle.net/KuX3G/ future |--- futureBorderL | |--- futureBorderR The futureBorderR Div is not up to the line, which is the right one. Plz suggest. Thanks!!! A: add float:left for #futureBorderL Demo: http://jsfiddle.net/KuX3G/2/ A: if i understand you correctly...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What purpose does overflow: hidden; serve? I have a web page with a header area in the middle. Elements are then part of the header. Can someone explain what overflow: hidden; does here. I don't understand why I need it or what it does. #hdr_mdl { margin: 0 auto; overflow: hidden; width: 980px; z-ind...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Socket.io not sending a message to all connected sockets I'm trying out node.js and socket.io. I wan't to use to remove a ping function I have to get updates from my server. Here is an example code of what I'm doing: var app = require('http').createServer(), io = require('socket.io').listen(app), cp = requ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: GPS Specific questions for Service application I am working on a simple application that I need to be run as a service and report gps position every 3 minutes. I already have a working example based on the tutorial, but still have the followin doubts. * *The starting of the service GPS1.Start(5*60*1000, 0) Says...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to filter out duplicate requests in UIWebView I am writing an iPhone app that integrates with Foursquare via OAuth. I am able to log in, obtain an access token, and use the API endpoints. I do the log in with a UIWebView. The problem is that for every tap on the web view (Login, Allow, etc.), two identical req...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why Would Slickgrid Ajax/Infinite Scroll Produce Intermittent Blank Rows? In scrolling through a remote data source, SlickGrid works correctly, but often adds a series of empty rows. For instance: Good Good Good Empty Empty Empty Good Good Good Good It seems like, in the process of loading the data, in creates the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problems with Scala constructors and enums I have the following class definition in Scala: class AppendErrorMessageCommand private(var m_type: Byte) { def this() = this(0x00) def this(errorType: ErrorType) = this(getErrorTypeValue(errorType)) private def getErrorTypeValue(errorType: ErrorType) = { if(er...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Where to store fixed NSString variables in Cocoa Application? I have different classes, that have NSString fixed variables (like @"/Users/user/media", or xml commands). I think to store everything in class is a bad design. What is the best place to store fixed NSStrings? Might something like preferences file? P.S. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert to DateTime from string containing decimal and comma millisecond separators Given the following 2 strings notice the ".185" and ",185" * *2011-09-15 17:05:37,185 *2011-09-15 17:05:37.185 Reading from a file (not in my control) and I can see they have dates in both formats. I need to create a function t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Django queryset custom properties I have user profile like class UserProfile(models.Model): completed_tasks = models.ManyToManyField(Tasks) then task model class Tasks(models.Model): <...fields...> Then I want to filter some task and have a queryset property "completed" that marks if task objects is in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I'm trying to make a CSS and Javascript menu with current class I want to build an app made in javascript, PHP, and CSS, but I'm stuck in a dumb place. I want to make a menu to load links in an iframe called "zero". And it works, now I want to make it so that when you clik on a link the background of the link goes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPhone iOS 4 UIButton toggle highlighted state on and off I got a UIButton with style "Info Dark" set up in interface builder in my iPhone 4 app. One of the properties of the button is "Highlighted", which displays a white highlight around the button. I would like to toggle this white highlight on and off, indicatin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL query for selecting distinct field and then ordering by date I would like to sort a table by date. I have multiple records for the same artist name but they have different dates e.g. ARTIST:DATE Gerd:2011-09-28 Gerd:2011-09-01 Simon:2011-07-01 Simon:2011-10-02 Franco:2011-01-10 Franco:2011-09-15 Franco:2011-07...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Upload file security >> Restricting names and extensions not enough? (can not rename, or move files) "The most important safeguard is to keep uploaded files where they cannot be directly accessed by the users via a direct URL. This can be done either by storing uploaded files outside of the web root or configuring t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Universal application has black iPad screen I've just finished my app for iPhone and it is working fine. I now want to make the app universal but am getting a black screen when running it on the iPad simulator. Here is what I have done so far: * *When electing to make universal, I allowed xCode to create my "-i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My OnClickListener is not firing Can someone please help me? I have been searching for hours and I cannot find a solution. Why won't my onclicklistener not work? It works for the first time but will not work for the doLogin method. Why? @Override public void onCreate(Bundle savedInstanceState) { super...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visualize HTTPS in WireShark I am trying to do a http bot to make me, my online check in. I used the wireshark application to store the http request and response while i was make the check in.But when i try to visualize what was sent in the request/response i am not able to to see the https packets. For example : I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: wrong og:description Facebook does not get information from description Open Graph tags I do get following error but not for description field The og:url property should be explicitly provided, even if a value can be inferred from other tags. I do have in header (Wordpress) <meta property="og:description" conte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to generate dynamic elements using jQuery? How can I generate dynamic html elements using jQuery? Is it possible to remove it on button click? i.e. I have to generate textbox on button click and contain of textbox is going to display in one label. Like this: http://jsfiddle.net/kDSQa/5/ User can add upto 3 email...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to unify validation across layers/tiers In a typical MVC application we have validation that occurs in many different places. It might be client-side, in the controller, and then again at the data level. If you have a business layer, then there is additional validation there as well. How do we unify all these ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Node.js module for MongoDB There are several MongoDB modules available for Node.js in the following link - https://github.com/joyent/node/wiki/modules#wiki-db-nosql-mongo Please, suggest me one (I'd like to know why you choose that one?). A: Mongoose is a popular choice. But the documentation is just as bad (if not...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Ordering UITableView Sections Loaded From pList I have a sectioned UITableView being populated by data from a pList. The root of the pList is a dictionary, each key of this dictionary is loaded into an array, which is used to define the section headings (and presumably order). Currently my sections appear in the tab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: I want to implement TabBarController and add Navigation Controller View but in vain Iknow how to add a TabBar with two TabBar buttons on it by Interface Builder. And I link each button to a Navigation Controller. Now I want to learn how to do everything programmatically. Now I can see a TabBar in simulator but with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a md5 hash of a string in C? I've found some md5 code that consists of the following prototypes... I've been trying to find out where I have to put the string I want to hash, what functions I need to call, and where to find the string once it has been hashed. I'm confused with regards to what the uint3...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: #include, error LNK2005 Alirhgt, i tried to sort this one out myslef but can't. So, i have a task to build a paint program in the console, i have a set of functions dealing with the console. My task being only to connect them logically to do something useful. The problem is that everytime i #include the two files gi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP CLI: what directory? I have a php cli script which is executed from /, but the script lies in /opt/script/script.php. How can I get the dynamic location of the script from within the script $location = ... (Get the location of the script) echo $location == '/opt/script' ? 'YAY' : 'Stupid'; Output YAY That kin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I write data to file and access it from outside the app (without SD card)? I am pretty new to Android programming and writing my very first app for my Diploma Thesis. Now I am all but finished but have one thing left that I couldn´t get an answer to anywhere on the net. So maybe someone here can help. Part o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: is it possible to scan the android classpath for annotations? I want to scan the classpath for certain annotations in Android. I have only found one solution to this problem: http://mindtherobot.com/blog/737/android-hacks-scan-android-classpath/ And as the author writes this solution works, but has several limitatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Django- Get Foreign Key Model How can I Get A Foreign Key Model Type? For Example: class Category(models.Model): name = models.CharField(max_length = 100) class SubCategory(models.Model): category = models.ForeignKey(Category) title = models.CharField(max_length = 100) I Want To Get category Model In S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: How do I correctly call LsaLogonUser for an interactive logon? I'm trying to use LsaLogonUser to create an interactive logon session, but it always returns STATUS_INVALID_INFO_CLASS (0xc0000003). From what I have found in searching online, the memory layout of the KERB_INTERACTIVE_LOGON structure is tricky, but I'm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Which ORM tool is compatibe with Firebird 2.5? I want to use Firebird 2.5 SuperServer as back-end to .NET 4.0 application. Which ORM tool is compatible to work with .NET 4.0 & Firebird 2.5? A: You could also try out Telerik OpenAccess ORM. A: People are using NHibernate with Firebird. The wiki docs list only Fireb...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Secure authentication system in python? I am making a web application in python and I would like to have a secure login system. I have done login systems many times before by having the user login and then a random string is saved in a cookie which is also saved next to that user in a database which worked fine but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Has anyone created an FTP adapter for the Windows Azure Service Bus Brokered Messaging service? Let us say that I have an FTP server getting XML files sent each day, and that I want to post theese to the Windows Azure Service Bus Brokered Messaging service. Has anyone created a tool (and is willing to share) that wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using Old iPhone 3G for testing, remove the sim card? I just got an old iPhone 3G for testing. It doesn't have a plan attached to it, but I just put in the sim card and it said it will take a while to activate. When everyone has test devices, do you just leave the sim card out? What about when testing location ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Network traffic isolation behavior of network switches First-timer on Stack Overflow here. I'm surprised nobody seems to have asked this question, and I hope this is the right place to ask this. I'm trying to determine if I should expect regular network switches (just simple switches, not routers) to have the capabi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails Rendering Issue Whenever I'm trying to render the games partial, the view it's being rendered in gives a nil return. here is the games partial: <%= flash[:notice] %> <tr> <% @games.each do |game| %> <td><%= game.name %></td> <td><%= link_to('Pick!', vote_up_game_path(game.id), :meth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: { int == nulltype } vs. { Integer == nulltype } Why java complains about // int i; if( i == null ){ } and not about // Integer i; if( i == null ){ } A: Because Integer is a reference type, and an int is not - that is, as int is not a pointer, it cannot point to nothing. A: int (primitive type) can't be null A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Model that references many of itself? Given the following class, how would I allow a node to have a many to many relationship with other nodes (such as parent_node and child_nodes)? class Node include MongoMapper::Document key :text, String end A: Can children have more than one parent? If not, many/belongs_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Margin problems in CSS IE vs Firefox I'm trying to make a banner in HTML/CSS. However, I'm having trouble with the margins in one of my div's. It works perfectly in Firefox, but not in IE. #lowerText{ float: left; margin-top: 50px; margin-left: -185px; color: rgb(255, 199, 142); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Non-selectable columns in HTML table I have a table with multiple columns. I want content of each column to be selected individually. When I start selecting first column, second, third ... are automatically getting selected. When I select one column I want make other columns non selectable. I have tried applying fol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Traverse Directory Depth First I need to traverse a directory depth first without using boost but I have not been able to find a good tutorial how to do this. I know how to list the files of the directory, but not sure how to about this one. This list the files of a directory: A: Use the ftw or nftw functions if yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What's the easiest and quickest way to get the MIME/Media/Content type of a given URL? So I'm going to transfer a file from a remote server to my server but before I transfer it I want to know what sort of file it is. If it's an HTML file I'll deal with it in a certain way, if it's a PDF file I'll deal with it in a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: input type="file" is not opening the file browser from Chrome Extension I'm not sure if it's a bug or something simple that I just missed... Here is a simple test case. The index.html is: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Test file input field</title> </head> <body> <lab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Creating communication protocol over TCP Sockets? I have an Arduino microcontroller with a Sparkfun WiFly shield. I build a simple program in C#/.NET that connects to the Arduino using System.Net.Sockets: Socket Soc = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); public void SendMsg(s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TypeError: 'in ' requires string as left operand, not generator in Python I'm trying to parse tweets data. My data shape is as follows: 59593936 3061025991 null null <d>2009-08-01 00:00:37</d> <s>&lt;a href="http://help.twitter.com/index.php?pg=kb.page&amp;id=75" rel="nofollow"&gt;txt&lt;/a&gt;</s> <t>honda just rec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: track how many times an if statement was used true I think the question speaks for itself, I'm writing a program in c++ and there is a part where the console asks the user which type of input they want to use while (loop == 5) { cout << "\nWould you like to enter a depoist or a check? "; //asks for a choice cin ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In map, is it guaranteed that the int is initialized to zero? For example, count the occurrence the words in a book, I saw somebody simply wrote: map<string, int> count; string s; while (cin >> s) count[s]++; Is this the correct way of doing so? I tested on my machine and seems so. But is the initialization to zero...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Confining a swipe gesture to a certain area (iPhone) I have just managed to implement detection of a swipe gesture for my app. However I would like to confine the area where the gesture is valid. Thinking about this I came up with a possible solution which would be to check whether the start & finish coordinates are...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenCL only reads/writes from/to 1/4 of the buffer memory and crashes sometimes I have a problem with OpenCL, which is that it executes the entire command queue, but it only reads only 1/4 of the input and writes only 1/4 of the result. No matter how many iterations, always 1/4. And also it sometimes randomly crashe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get cell title from table view I have a custom table view and each cell has a title and a button. When the user clicks on the button, I need the title of that cell to appear on another view. How do I get this? A: It's not very tough here are the 2 solutions: When you are creating the cell, assign tag to the label y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java Mysql Timeout Error tried everything * *connectTimeout=0&socketTimeout=0&autoReconnect=true *changed wait_timeout to 31536000 and interactive_timeout= 286399969 but still continue to get the error. com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet succ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Drawable item don't show up I just started Android development and working on a little app related to google maps api. Am using the Google Map View for this and following this tutorial.. I've created a custom itemizedOverlay, which has a constructor like this(as told in the tutorial) - public pujaItemizedOverlay(D...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: java.lang.NullPointerException ERROR I'm getting this null error on this line but I'm doing an if check and setting an empty string if null. Am I doing this wrong? java.lang.NullPointerException at form.setSam((teamBean.getHead().getNone().getCode() == null) ? "" : teamBean.getHead().getNone().getSamCode().toStri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where to call HttpResponse.RemoveOutputCacheItem()? I use the below code for caching public class HomeController : Controller { [OutputCache(Location=OutputCacheLocation.Server, Duration = 1000, VaryByParam = "id")] public ActionResult Index(string id) { ViewBag.Message = "Welcome to ASP.NET MVC!...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using Curl to Automate Upload Files to ASP.NET Application I am trying to use cURL to automate some deployment tasks to an ASP.NET Application. But I am having some problems with it. The login part works perfectly but i guess the application for some reason has some sort of control for this kind of tools. These appl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Coordinates of world continents I am building a script that's powered by google maps where user chooses the a location from a map and save the long, lat in database aa a part of directory listing form. I was thinking to add a search functionality by world continent for (America, Asia, Europe, Africa). but this requi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Documentation from all comments in Visual Studio 2010 How can create a documentation from all classes, methods and attributes comments in Visual Studio 2010 for the C# language? A: Try Sandcastle and the Sandcastle Helpfile Builder. It creates CHMs and MSHelpfiles or HTML Pages in MSDN Style. Its simple to use and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I debug EF? (analyze SQL queries) How can I debug the Entity Framework? Can I see which queries it is actually trying to execute to the SQL server, to troubleshoot issues? A: Check out the MVC Mini Profiler: http://code.google.com/p/mvc-mini-profiler/ It's very lightweight, doesn't intrude on your app, and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: iOS Support Multiple Rotations without Animation I am recreating the Camera app interface for my iPhone app. When it is rotated on its side, instead of rotating the entire UI, I only rotate the icons, just like the normal camera app does. This has worked just fine, but with iOS 5 the notification center orientation ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sending an object via datagram sockets java I'm implementing this example as I want to broadcast to multiple clients. While trying to use the socket to send another object(which has been serialised), I'm getting an error which says that socket(in the example) can't send the object via it. Can't a datagram socket sen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7627833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }