instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have set my credential in web.config as : <authentication mode="Forms"> <forms loginUrl="Login.aspx" name=".ASPNETAUTH" protection="None" path="/" timeout="20"> <credentials passwordFormat="MD5"> <user name="Nayeem" password="pwd"></user> </credentials> </forms> </authenticat...
stackexchange/codereview
Sorry if this is duplicate but I've been going crazy for the past two hours over this. After changing the Master Page in ASP.NET MVC 1.0 application, I keep getting this familiar error when I try a postback without filling in the mandatory form elements which are validated by the server: "Validation of viewstate MAC f...
stackexchange/codereview
Imagine I have two tables: PETS SPECIES The SPECIES table has two columns: ID - Species ID Number DESCRIPTION - Description of the species (DOG, CAT, TURTLE, etc.) The PETS table has two columns: NAME - Name of the pet SPECIES a link to the ID field of the SPECIES table If I want a list of all pets named FLUFFY w...
stackexchange/codereview
Recently i started digging into jquery's ajax function. I've made a lot of improvements, but im insecure in one point. How to secure my ajax calls.. For example this code for deleting a link: // Delete link $('.delete_update').live("click",function() { var ID = $(this).attr("id"); var dataString = 'linkid='+ ID...
stackexchange/codereview
I have 2 linked lists. I have the same object in both of those lists. By same object, I mean the object has the same state, but is referenced by a different object pointer. I can call .remove(object); from the first list to remove it, but if I do the same for the second list it is not removed (because the object pointe...
stackexchange/codereview
As per MSDN, it is not possible to determine, whether reboot or shutdown occurred using WM_ENDSESSION Message. I've found the only way to do this, but it's quite ugly and works only for Windows 2000 Server, not for 2008 Server. The reason I'm asking is that I'm in process of porting Linux daemon to Windows as System Se...
stackexchange/codereview
Possible Duplicate: What does <link> tag do besides including stylesheets? <link rel="stylesheet" type="text/css" href="example.css" /> With the link tag we can define a relationship type and mime type, but I've never seen it done. What are some examples of real uses for the other rel attributes? What sort of suppor...
stackexchange/codereview
I have an event that monitors for changes to a datagridview. I don't want this to be triggered when the datagrid is bound for the first time and it's configuration is done. Is it possible to 'opt-out' of triggering an event in certain circumsttances? Thanks.
stackexchange/codereview
I have an image, which is float: left; a ul tag is wrapped around this image. It is on the right-hand side of the image. Custom bullets contained in the ul are partially overlapping the floating image. When the ul is displaced to the right a little, this is fixed. But, to do this, I need to determine, whether the ul is...
stackexchange/codereview
In PHP, What is is the difference between: Constants and static variables? Extending a class and creating its object? I know how they can be used, but I can't clearly distinguish between them.
stackexchange/codereview
I randomly came up with a data set with 3 examples {1,2,3.5} I tried to use the following two clustering techniques: 1.Hierarchical clustering with q=2 and Ө =1.1 2.Sequential Clustering. No matter using which clustering technique,I always came up with the following two clusters {1,2} and {3.5} Is this correct?It is qu...
stackexchange/codereview
I want to write a simple client-server application using corba and java. I'm using Netbeans 6.8 IDE, but I can't find any plugin for corba in my netbeans version. So, my question: Is there any plugin or smth else to add support of corba to netbeans? thanks
stackexchange/codereview
I'm using Joomla 1.5 and I would like to add the jQuery library in the backend of joomla to help me add interaction in the design of my component views. I would like jQuery to be added in the HEAD section of certain pages of the administration and of course without conflicting with the MooTools library that is already...
stackexchange/codereview
I am implementing the back end for an online store. The store receives new products periodically. Each product comes with a sequence of images for a 3D rotation effect on the website. What is a good approach for uploading these images onto the web store? I'm currently using a web form but uploading each image using...
stackexchange/codereview
I'm using ipinfodb.com for a while to get the Latitude and Longitude from the user IP to view the google streetview. But recently ipinfodb has changed their database, and most the latitude/longitude values are changed, because of which I dont get the streetview. I'm using "Google Maps Javascript API V3 Services" but no...
stackexchange/codereview
I have iPhone application in the App Store. Do I have to compile my app with iOS 4.2 SDK in order to allow it run on iOS 4.2 devices? Or compiling using iOS 4.2 is required only to allow using new features of new iOS? I will appreciate if you can clarify this issue... Thanks! Yoash
stackexchange/codereview
i want to be able to send mails using php. i have no experience in this. i got some scripts like http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php. I want to send a html mail which needs to be formed using data from a mysql database. I have email addresses stored in a database and want to design a sc...
stackexchange/codereview
well i have a asp.net aspx page, which references a css file have the font size defined in css as 2em; problem want to give option to user to change this to any value he wishes irrespective of the bad effect to display format question please suggest ways to achieve it easily, efficiently and the most simplest way p...
stackexchange/codereview
I'm currently running python suds against a wsdl file and its corresponding 50+ xsd files. The following call to Client takes about 90 seconds: from suds.client import Client url = 'http://localhost:7080/webservices/WebServiceTestBean?wsdl' client = Client(url) After I run the last line above, I get a Client instance...
stackexchange/codereview
How can I portably (I am mostly interested in windows and linux) generate a new file name in a specified directory, with specified filename prefix and suffix? std::string UniqueName(std::string const& dir, std::string const& prefix, std::string const& suffix); Any suggestions to implement this f...
stackexchange/codereview
I'm having a bit of a moral dilemma, as to if we are using automapper if the right way and if our architecture is valid. I'm a relatively new developer but this just feels wrong to me. My colleague is a big fan of automapper (understandably so it rocks) but my issue is that we are using it just for the sake of it an...
stackexchange/codereview
Using SVG, how can I set the appearence of the svg element to be the table that it contains? The element I'm trying to change is below: <rect style="fill: rgb(0, 0, 0); fill-opacity: 0.784884; stroke: rgb(0, 0, 0); stroke-width: 0.447214; stroke-miterlimit: 1; stroke-opacity: 0.784884; stroke-d...
stackexchange/codereview
I'm working on a planet generation tool in C++ and currently I'm trying to generate textures and heightmaps. I'm using a 3d perlian noise function for this, so every time I generate a texture or heightmap I will calculate the value of the noise function for every vertex on the surface of the sphere. These co ordinates ...
stackexchange/codereview
I've noticed that in PHPMyAdmin I can individually index columns or I can use checkboxes to select fields and then click index and they're indexed in a different way. Does this mean that if for a given table I have 2 columns of that table that define each row as unique (instead of just a simple single column id`) I sh...
stackexchange/codereview
I currently have an image which has every suit and value of a deck of playing cards in it. There is an UIImageView to show this picture, with width and height set to show just one card at a time and view mode set to "top left" so it doesn't stretch. Now I'm just showing what happens to be the top left card, the ace o...
stackexchange/codereview
I have made a very simple page using google maps API with several fields where users are going to put some data. It looks like following - http://aiworker2.usask.ca/marker_field_db.html What I want to do is store the data into MySQL database using javascript/Ajax. I have found several examples that has used Jquery. I'm...
stackexchange/codereview
I am unable to get databinding to UI. Questions Do I have to implement DependencyProperty OR INotifyPropertyChanged ? Its simple databinding and I am thinking I dont have to use above properties. XMAL CODE <Window x:Class="Pr.child" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="h...
stackexchange/codereview
private void BindFields() { m_QuantityBinding = new Binding("Quantity"); m_QuantityBinding.Source = m_LotData; txtBoxQuantity.SetBinding(TextBox.TextProperty, m_QuantityBinding); } private void LoadLotData() { m_PrioInterface = new PriorityInterface.PriorityInterface(); m_LotData = m_PrioInterfac...
stackexchange/codereview
I currently have two tables, one is called games, the other called rounds. Here is the structure to help out: rounds +-------------+----------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------------+----------+------+-----+---------+----------------+ | ...
stackexchange/codereview
I'm trying to create a page in Sinatra, so that whatever you post (under the parameter name "command") will be echoed back to you. Here's my current approach: post '/eval' do "I got #{params[:data][:command]}." end If I try to post anything to /eval, it results in an internal server error. What am I doing wrong?
stackexchange/codereview
I have been looking for a way so that in Lua script I can access custom attributes for a class. I know that I can implement a normal C# method and in that method access the Attribute using normal Reflection and then do a registerMethod on the Lua-object. But in this case I don't want to write a C#-method but just write...
stackexchange/codereview
I have a SL4 DataGrid with a column containing a checkbox: <data:DataGridTemplateColumn Header="Check" CanUserSort="False" > <data:DataGridTemplateColumn.CellTemplate> <DataTemplate> <CheckBox x:Name="CheckRead" Click="CheckRead_Click" IsChecked="{Binding Acknowledged, Mode=TwoWay}" /> ...
stackexchange/codereview
Is there a way to force Coded UI Test Builder to use it’s already recorded classes? It creates very similar classes even within single recording session. E.g. the only difference in URL in two classes generated below. I’d like to reuse code – no sense to have such duplications. Anything besides manual cleanup? public c...
stackexchange/codereview
I'm trying to create an associative array, create an empty array, and then add a (indexName -> value) pair: var arrayName = new Array; arrayName["indexName"] = value; // i know i can also do the last line like this: arrayName.indexName = value; When I assign the value to the indexName I want indexName to be dynamic...
stackexchange/codereview
I've got an issue with a legacy system I've inherited. Every night a dump from live is run (to script) and restored to QA from said script e.g.: mysql [params] < path/to/backup.sql This causes the creation of lots data in the bin logs (DB is a few gigabytes). The bin logs don't seem to get flushed automatically - I c...
stackexchange/codereview
I would like to do something like this in SQL Insert Into storedproc2 SELECT column1, column2 from Tablename My goal is to have each row of data in tablename processed using the storedproc2 stored procedure, which itself handles any insertion necessary in the logic flow.
stackexchange/codereview
I want to Create SharePoint Site Directory WebPart which contains links to all the sites created by using Microsoft Office SharePoint Services 2007. Thanks in Advance, Shyam
stackexchange/codereview
For example, MessageBox function has LPCTSTR typed argument for text and caption, which is a pointer to char or pointer to wchar when _UNICODE or _MBCS are defined, respectively. How does the MessageBox function interpret those stings? As which encoding? Only explanation I managed to find is this: http://msdn.microsoft...
stackexchange/codereview
I made an Atom feed in Django using a class that looks something like this: class AtomFeed(Feed): feed_type = feedgenerator.Atom1Feed # ... def item_pubdate(self, post): return datetime.datetime(post.date.year, post.date.month, post.date.day) The resulting XML for an item: <entry> <title>..</t...
stackexchange/codereview
I have a formset with can_delete set, i.e. I want to allow people to be able to delete the objects. I want to customise the layout of each of the forms, like this: http://docs.djangoproject.com/en/dev/topics/forms/#customizing-the-form-template . I can add the fields for each form with {{ form.name_of_field }}, etc. Ho...
stackexchange/codereview
I am rewriting a CGI script to make use of fastcgi module. My initial program consists of two scripts. One "requires" the other. In terms of efficiency, do I need to rethink the whole "require" script and combine them both into one file? The scripts can be summarized as below: Script A : use FCGI; # Do a lot of stuff a...
stackexchange/codereview
I want to create an automated UI test that will test my syncfusion grid. My problem is that the recorder can't recognize this control (or any syncfusion control). I've searched a lot in the internet but I couldn't find any extension so the recorder will recognize my controls (I'm using WinForms, not WPF!), or at least ...
stackexchange/codereview
I just want to send the value of my dropdownlist with a requestparameter. In my case being Kidscalcula_web/start.htm?klasid=myValueHere I know a way of doing this but it sounds so irrational to use it for this. If I was bored I'd probably write some jQuery to do a post and send the parameter for instance.Now it reall...
stackexchange/codereview
Possible Duplicate: what is pvoid Hi, Is PVoid is same as void* ? I want to know how to pass a pvoid to a function. Say PVOID p; // In calling fn callFn(&p); //In calee callfn(PVOID p) { //change p here *p= *s; or p = *s; }
stackexchange/codereview
I'm having a silly little problem with Eclipse. I'm trying to install Rational ClearCase SCM adapter in Eclipse (Helios SR1) CDT Linux 64 bit. I downloaded ClearCase plug-in form here. I tried both SCM adapter version 7.0.0.2 and 7.5.0.0. I got this error in both case? Cannot complete the install because some depend...
stackexchange/codereview
I want to transfer a folder containing different types of file from my server to Rackspace File Cloud using Rackspace File Cloud API for PHP. Can i transfer a folder to Rackspace File Cloud? What is the corresponding php code for it?
stackexchange/codereview
I am new to python scripts . I have few repetative testing tasks such logging to various IM's ex (OCS,different public messengers) etc . Is it possible to automate these tasks using python . If so from where do I start with ? Working on windows 2003 server . I know the basics of python. want to enhance the skills ....
stackexchange/codereview
I have PHP source code of http://www.sitename.com. This site is located on Windows Operating System and Apache Web Server. I have .htaccess file as follows, DirectoryIndex index.php RewriteEngine on # THE MAIN sitename SITE RewriteCond %{HTTP_HOST} (.*)sitename\ [NC] RewriteRule ^(.*)/...
stackexchange/codereview
I am making a math program that reads in numbers from an edittext box, and creates / LU factors a matrix. When a user clicks into this field, the regular keyboard shows. It would be easier for the user if it were a numeric keyboard. When I use android:inputStyle="number" the amount of numbers allowed to be entered into...
stackexchange/codereview
Can anyone help me with the below error: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; Tablet PC 2.0; InfoPath.3) Timestamp: Fri, 5 Nov 2010 15:43:56 UTC Message: Object ...
stackexchange/codereview
I am getting the below error when trying to access a WCF Silverlight enabled service hosted in a standard way in a web app. I am trying to return a List of type <ER_Theme> to the Silverlight app. This is the Services.References.ClientConfig generated in the Silveright app: <configuration> <system.serviceModel> ...
stackexchange/codereview
Our C# application needs to connect to SQL 2005 and 2008 databases and check what the current status of database mirroring is (eg. is it enabled, suspended, paused, disconnected etc). Are there properties where I can check this? All our databases that are being mirrored have no witness and manual failover (synchronous ...
stackexchange/codereview
I have a dropdown list in which I select how many people are going to a party. When the user changes the value of the dropdown list, I want as many fields as the number selected to appear and hide the rest. But I don't know how can I hide or delete fields because I don't know their index.
stackexchange/codereview
I've been using Eclipse without issue (I mean, besides the usual) for several weeks now. It's been speedy enough for my purposes. But as of today around noon, anytime I start typing an HTML tag or other autocomplete-able element, my whole System bogs down so much it's completely unusable. Watching in Task Manager, I sh...
stackexchange/codereview
So I give the first page and macros must visit all pages of this site. (open a new tab for example of each page) This one I found in the net, but this macros visit only links in one starting page, and not visit the second level in deep. Thank you for the help! //imacros-js:showsteps no //Testing forum post http://f...
stackexchange/codereview
I'm looking for a runtime memory debugger, capable of showing memory usage (not just leaks) per function or line of C++ code on Linux. I am trying to track down a spike in my program memory usage. I have used Valgrind and Purify and I found that there are are no leaks. I expected that, as after that spike, the memory u...
stackexchange/codereview
I've built a "Quick Links" drop-down select box for my Drupal-based web app. The select box is implemented as a standard Drupal form, which appears on all pages in the site. When the user selects an option and submits the form, I want to redirect the user to the appropriate page, but have them return to the original pa...
stackexchange/codereview
#include<unistd.h> int main(int argc, char **argv) { int ret; ret = execve("/bin/bash", NULL, NULL); return 0; } i m confuse about why the null values are passsed in execve please help.....
stackexchange/codereview
I'm aware of mutuable vs immutable arguments in Python, and which is which, but here is a weird issue I ran into with mutable arguments. The simplified version is as follows: def fun1a(tmp): tmp.append(3) tmp.append(2) tmp.append(1) return True def fun1(a): b = fun1a(a) print a #prints [3,2,1] ...
stackexchange/codereview
Haskell's Text.JSON library uses an abstract data type called Result, it's basically their form of Maybe, but instead of Nothing, there's Error String. Anywho, I need to use liftIO to convert a function call returning an IO thing to a Result thing inside of my implementation of JSON.readJSON. I'm new to monad transform...
stackexchange/codereview
Is there a good way to parse a SQL statement to ensure it contains only a SELECT statement and nothing else? I am using C#, System.Data.SqlConnection, and MS SQL Server
stackexchange/codereview
I'm setting up an environment and am going to be doing some transactional application performance monitoring. In my environment, I want to install an application (thick or thin client), that uses web services (i.e. XML over SOAP). I'm having no luck in finding any freeware or something simple. Does anyone know of any?...
stackexchange/codereview
I'm trying to create a function that will replace 0's, 1's, or 2's with spaces in a string. I'm going about it by iterating through the string and comparing each individual character. My function will work if I compare str_in[i] == '0', but if I add the or statement it returns nothing. Snippet: string omit_num( strin...
stackexchange/codereview
I have modified a short piece of pyqt code to produce real-time rendering of a user's expression. I have used sympy's pretty-printing function for this, however the output does not appear correctly as the QTextBrowser uses a proportional rather than a monospaced font. As a beginner I would also welcome any other though...
stackexchange/codereview
I know there are many other questions out there, but I can't seem to find exactly what I want. Let's say that I'm having 5 apps right now: App1 and App2 are the full and lite version of the same myApp, and I want to share data between them App3 is independent but using in-app purchases and App4 and App5 are two other,...
stackexchange/codereview
I am thinking about writing a quick chat application for a client to help them solve some of their communication needs. Clearly, writing a simple chat is no brainer, but the company have serious scaling needs, so it is probably a good idea to build the service on a noSQL storage from the beginning. Besides the obvious ...
stackexchange/codereview
I created a Java project that contains three configuration file log4j.XML QueueConfig.xml rabbitmq.properties I put these three files into a resource folder. Then I created a jar file of my project. This jar file is added to another project. It isn't able to find the correct location of the configuration files. My fi...
stackexchange/codereview
I have a WCF service that is hosted in IIS6. The important part of the method looks like this: public MyUser[] GetUsers(string appName, string[] names) { List<User> users = new List<User>(); foreach (string user in names) { MembershipUser mu = this.ADAMProvider.GetUser(user, false); //Unmanaged call...
stackexchange/codereview
Scenario: I created a xcode project called "Importing" which I read an XML file in and import content into my core data database. I then have a second "main" project where I add the SQLite file into the main bundle and import using the code from Core Data Books example. I made changes to the .xcodedatamodel in my "impo...
stackexchange/codereview
For some reason, PropertiesMustMatch has absolutely no effect. Do I need to make some other connection beyond what the project built for me? Also, by adding a new PropertiesMustMatch bind for ConfirmEmail, that also has no effect. Any ideas?
stackexchange/codereview
We are looking for a SilverLight library that will allow us to create graphs that describe relationships in terms of linked nodes. I was hoping that someone could suggest one if it exists. An example of what I'm looking for would be Prefuse; which is a java library. Thanks
stackexchange/codereview
I've got a class with a list(4 item) of data and I want to show all in a combo box. how do i do that maintaining Model-View-Controller?
stackexchange/codereview
I am using PrettyPhoto lightbox, and trying to set a rel attribute on a link when another non-jQuery javascript library makes that link active (it sets the links class to active) so the PrettyPhotot lightbox will open. I don't want the link to open unless it is an active link. I am successful in setting the attribute,...
stackexchange/codereview
I'm trying to generate a Time object initialized to the next instance of a specific weekday and number of minutes past midnight. My data (representing a schedule) looks like: weekday, start, finish. Weekday is the day of the week between 0 and 6, and start/finish are integers representing minutes past midnight on that ...
stackexchange/codereview
Can anyone please tell how to trim the video using UIVideoEditorController?
stackexchange/codereview
I have an entity which has property Person person(user defined object) so I wanted to setProperty("person", new Person()) however got an IllegalArgumentException "....Person is not a supported property type". It is a simple class with field String name and String country which implements Serializable. class People{ P...
stackexchange/codereview
I have a string in a django/python app and need to search it for every instance of [x]. This includes the brackets and x, where x is any number between 1 and several million. I then need to replace x with my own string. ie, 'Some string [3423] of words and numbers like 9898' would turn into 'Some string [mycustomtext] ...
stackexchange/codereview
I am looking for the SQL to do : And thing about field list must be totally dynamic. I dont want to go change my SQL each time an admin add a field into the fields table. Table content ------------- CID text category CID | text | category ---------------------- 1 | ... | apple 2 | ...
stackexchange/codereview
I have a "best practice" question about resolving merge conflicts. Let's say I have master and need to merge a feature branch into it which introduced logging facilities. Further, let's say that during the merge, I get conflicts because some print statements in master were modified which were replaced with logging stat...
stackexchange/codereview
I have a WPF application that I want to look like it is hosted inside another - non-WPF - application. In real life this non-WPF app is an ActiveX inside Internet Explorer, but for the sake of illustrating the problem I use a simple Windows Forms app. I use the Windows API function SetParent, which there are dozens of...
stackexchange/codereview
Environment: Rails 3.0.1, MySQLI have a Users table, and I want to search for users by city. I have the following code in users_controller: def output @results = User.select(:fname, :lname).where(['city = ?', params[:text1]]).all output.html.erb in View: <% @results.each do |r| %> <%= @r.fname %> <%= @r.lname %> <% en...
stackexchange/codereview
I have a quick question. I am supposed to create a small multithreaded program to grab data from multiple sensors and I have knowledge of both pthreads and qthreads. I have access to both libraries. personally I am biased towards using Qt because of its design and various functionalities. But is there a significant adv...
stackexchange/codereview
I'm completely new to MySQL. I'm attempting to write a query that inserts a row into the table, but only if the previous row was inserted over 5 minutes ago. Additionally, I'd like my PHP code to have some way of knowing whether the data was inserted or not. This is my attempt: IF (SELECT max(EntryDate) from MyTable) ...
stackexchange/codereview
I've seen this sentence: the general rule is, if you have variables of primitive type that must be shared among multiple threads, declare those variables volatile from this article, and this sentence: In general, any data that may be undated asynchronously should be declared to be volatile. from this pa...
stackexchange/codereview
I'm trying to write a post-commit hook, I have a Git repository on a mapped drive (V:), msysgit installed in C:\Git, and Python in C:\Python26. I'm running TortoiseGit on Windows 7 64 Bit. The script is: #!C:/Python26/python import sys from subprocess import Popen, PIPE, call GIT_PATH = 'C:\Git\bin\git.exe' BRANCHES ...
stackexchange/codereview
can anyone tell me how to call a javascript function on button click in jquery mobile application . I am using jquery mobile in my mvc application. I want to call a jquery function on focus of a textbox. I can not make the call in the traditional way Please help
stackexchange/codereview
I have a tricky copy and paste problem. I have an excel 2007 workbook, called Summary, with two sheets in it (sheet 1 and sheet 2). I have a list of the names of excel workbooks that reside given folder on my hard drive typed into Column A on Sheet 1. I am trying to open each of those workbooks, copy specific cells i...
stackexchange/codereview
I'm using Javascript to grab a variable passed through the URL: function get_url_parameter( param ){ param = param.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var r1 = "[\\?&]"+param+"=([^&#]*)"; var r2 = new RegExp( r1 ); var r3 = r2.exec( window.location.href ); if( r3 == null ) return ""; else ...
stackexchange/codereview
Is there way to use .htaccess as follow mydomain.com redirects to mydomain.com/index.php and mydomain.com/everything except index.php redirects to mydomain.com/index.php?u=everything except index.php In other words, convert everything (directories, sub-directories, pages and so on) to a simple string param to pass thro...
stackexchange/codereview
Just a general question, open for discussion... I'm very much liking JSF so far, I'm new to it, but I prefer it to Struts. From a professionals standpoint, do you see a strong future for JSF ? Is it worth an investment as a young programmer to learn JSF 2.0 over Struts or another similar framework ? Should I stick to r...
stackexchange/codereview
I have created one custom control. This is the method which causes problem :- private void Update(object newContent) { //lock (this) //{ if (grid == null) base.ApplyTemplate(); ContentControl oldWrapper = this.currentWrappedControl; ...
stackexchange/codereview
Possible Duplicates: C++ : implications of making a method virtual Why is 'virtual' optional for overridden methods in derived classes? I wonder, what is documented behavior in the following case: You have class A { virtual void A() { cout << "Virtual A"<<endl; } void test_A() { A(); } } class B: publi...
stackexchange/codereview
If I want to always send an event to the initial state of a gen_fsm when I have spawned it, where should I put that function call? Right after start_link or from the process that invoked start_link in the first place. Are there any best practices here?
stackexchange/codereview
This is a follow-on from: Overlay on top of Streaming MPMoviePlayerController I've seen the various threads about checking for a new Window and then using that to apply my custom views to my fullscreen video however in SDK 4.1 this doesnt appear to be the case. I have tried a timer and listening for UIWindowDidBecomeKe...
stackexchange/codereview
I met a case when I use mshtml to detect the event when click on a htmlelement like a href, I use the code below: DOMEventHandler onclickhandler = new DOMEventHandler(doc,null); onclickhandler.NewEventHandlers += new DOMEvent(DOMEventMethods._click); doc.onclick = onclickhandler; void _click(IHTMLEventObj obj) { ...
stackexchange/codereview
This is related to my previous thread, but opened a new one here as it involves Apple's own sample code. Open the sample code and modify the app so it will display in landscape and add a textfield to the view. Run the app and open the image picker, select an image and you will be returned to the previous screen in land...
stackexchange/codereview
I'm really sorry for the first post as i didn't explain everything. Basically i have 3 tables, One for posts, One for Categories, & Another to link categories with posts. I want in a single MySQL query to select posts that are under a specific category. posts(id,title,body) --------------------- 125,Some title,Blah bla...
stackexchange/codereview
How do I go about making true ajax requests to an asp.net page? (Not update panels). I read this tutorial but couldn't get it working. Is there a better approach? Or should this work? http://encosia.com/2008/05/29/using-jquery-to-directly-call-aspnet-ajax-page-methods/
stackexchange/codereview
In short: I want to login some users to other sites with my login details. It would look like this for example with rapidshare: I would put the rapidshare link in an iframe on my site. Before the iframe loads, i would place the rs logged in cookies at the users browser, and do a POST data on the login action page with ...
stackexchange/codereview
I am developing a web system to handle a very large set of small images, about 100 millions images of 50kb ~ 200kb, working on ReiserFS. For now, it is very difficult to backup and sync those large number of small files. My question is that if it a good idea to store these small images to a key/value store or other no...
stackexchange/codereview