instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Have you guys met something similar? Exception type: System.ComponentModel.Win32Exception Exception message: The operation completed successfully . Exception stack trace: ------------------------ at System.Drawing.BufferedGraphicsContext.CreateCompatibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, Int...
stackexchange/codereview
If I push view controllers and/or present modal view controllers on a UINavigationController, how can I find out what is the top most UIViewController? Or in my case, I want to know if a certain UITableViewController is the top most or not. I tried using: self.navigationController.topViewController == self ... but thi...
stackexchange/codereview
I'm regularly using the gnu-utils patch and diff. Using git, I often do: git diff Often simple changes create a large patch because the only that changed was, for example, adding a if/else loop and everything inside is indented to the right. Reviewing such a patch can be cumbersome because only line by line manual com...
stackexchange/codereview
I'd like to implement a forgot password function for my website. I hash the passwords using sha1. How would I recover this for the user? What's the best method for implementing this?
stackexchange/codereview
I am using forms authentication on ASP.NET. If I try to access a page by copying the query string and pasting it into the browser, it allows me access to the page. How can this be prevented? I want the user to always have to login.
stackexchange/codereview
I have a shellscript with connects to a a different machine with ssh and a key so it does not need the username and password. When i run this script from commandline it works fine.. but when I run this script from php shell_exec it does not work. If I make an ssh connection with PHP and run the script as my own user it...
stackexchange/codereview
When user clicks on linkButton it needs to open new window to display some data. I try this: string url = "~/SomePage.aspx"; string cmd = "window.open('" + url + "', '_blank', 'height=500,width=800,status=yes,toolbar=no,menubar=no,location=yes,scrollbars=yes,resizable=no,titlebar=no' );"; ...
stackexchange/codereview
I'm using a variable in Javascript which will be set via Php e.g. var usesInterview = <?php echo 1;?> If not, then var usesInterview = <?php echo 0;?> How best should I handle this in my code? There will be a If statement to check for the variable and determine the route to take. I've tried using typeof() == 1 and when...
stackexchange/codereview
I am new to android and my task is to display ...... when entered more characters in EditText? Thanks in advance
stackexchange/codereview
i send mail like this: string sampleDisplayName = "Me"; Microsoft.Office.Interop.Outlook.Application sampleApp = new Microsoft.Office.Interop.Outlook.Application(); Microsoft.Office.Interop.Outlook.MailItem sampleMessage = (Microsoft.Office.Interop.Outlook.MailItem)sampleApp.Cre...
stackexchange/codereview
So I have this grid. It's a very nice grid. Lovely, really. Except when I have nothing to populate it with. In that case, I'd really like to display a message indicating that, "No URLs have been loaded for evaluation.", but either I'm missing something critical or the emptyrecords option isn't behaving the way I'd expe...
stackexchange/codereview
I want to make a web application by using jsp servlet and bean am using Netbeans IDE. I want to know where I should place the database connectivity code so that i can use my database code with every servlet, means I do not want to write the connectivity code in everypage where I need to use the database. Please help me...
stackexchange/codereview
I want to make a CSS class so that i can use it like this <input type="button" class="hoverbuttons"> So how do I make a class so that my button will hover? I have two buttons already. Assuming those URLs to be URL1 and URL2 how can I make them hover-able using CSS?
stackexchange/codereview
I have limited experience with JSON, and am trying to extract image URLs from a data feed - This is what I have for a source - <HTML> <head> <script type="application/javascript" src="jquery-1.4.3.min.js"></script> <script type="text/javascript"> $(function() { $.getJSON('http://pipes.yahoo.com/pipes/pipe.run?_i...
stackexchange/codereview
I am trying to write a bat file for a network policy that will install a program if it doesn't exist as well as several other functions. I am using GOTO statements depending on whether or not certain criterion are met. However, it seems that the labels are not firing correctly as all of them do. I have simplified my sc...
stackexchange/codereview
I have a complex App that runs reliably, but I'm puzzled why I need to retain a particular NSArray ('sources') twice to prevent a crash (although no exception is reported on the console, but the application crashes and returns to the springboard). A snippet of the code is included below. There's too much code to paste ...
stackexchange/codereview
In PHP I can do this: print <<<END This uses the "here document" syntax to output multiple lines END; Is there a way to do something similar in Python? I want to dump a big chunk of HTML without worrying about escaping e.g. angle brackets.
stackexchange/codereview
In Objective-C what is the best method to extract an image url from HTML text? I've got a chunk of HTML text which may contain one or more images. I want to be able to get the src URL of each image.
stackexchange/codereview
I have the regexp: \[IN\](\d+)\[/IN\] Which works fine for: ...[IN]34[/IN]... ...[IN]1[/IN]... ...[IN]12[/IN]... etc But it doesn't quite work for decimals, IE: ...[IN]3.5[/IN]... ...[IN]2.8[/IN]... ...[IN]9.4[/IN]... etc How do I make it match these as well? Thanks!
stackexchange/codereview
A client do not want to consider MonoTouch for a new project. MonoTouch.info has a long list of apps, but I have not found any on the caliber that can convince a client too choose a technology. The client has seen the list, and actually use the bland screenshots as an argument against MonoTouch. Where can I find examp...
stackexchange/codereview
I read this and that. I want this exactly: 1.4324 => "1.43" 9.4000 => "9.4" 43.000 => "43" 9.4 => "9.40" (wrong) 43.000 => "43.00" (wrong) In both questions the answers points to NSNumberFormatter. So it should be easy to achieve, but not for me. - (void)viewDidLoad { [super viewDidLoad]; UILabel *myLabel = [...
stackexchange/codereview
I have a FIFO which has an interface that looks something like this: entity fifo is port ( CLK : IN std_logic := '0'; DIN : IN std_logic_vector(31 DOWNTO 0); ALMOST_EMPTY : OUT std_logic; ALMOST_FULL : OUT std_logic; DOUT : OUT std_logic_vect...
stackexchange/codereview
Since upgrading to ASP.NET MVC2, we've noticed the Windows application event log is full of entries as follows: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 11/4/2010 3:29:16 PM Event time (UTC): 11/4/2010 7:29:16 PM Event ID: 2039870297302976340236 Event sequence: 6422 Event occ...
stackexchange/codereview
I'm planning to develop a Rich Internet Application, so I'm searching for choosing IDE and frameworks for a rapid development. This web application will be a web-based ERP, so I need something that helps me about developing data-entry and data-searching forms, and data-reports. It should possibly have desktop-like look...
stackexchange/codereview
Is it possible to detect if a class is of certain type?
stackexchange/codereview
I'm writing a server querying tool, and I have a little bit of code to parse arguments at the very top: # Parse arguments p = argparse.ArgumentParser() g = p.add_mutually_exclusive_group(required=True) g.add_argument('--odam', dest='query_type', action='store_const', const='odam', help="Odamex Master query.") g...
stackexchange/codereview
Firstly, I am an iPhone programming noob (I know that's not very helpful). But I do speak english :). I am making an app that is basically a soundboard, that is you press a button and it plays a sound effect. One thing I wanted to add was a view which came up when a sound was playing, that said something like "A sound ...
stackexchange/codereview
I'm starting to develop my new study project. Because I want and need to run it on different platforms (Linux and Windows) I decide to use Java. Also, because I want to learn something new - I have decided to use Qt Jambi. And here are my problems and doubts. I think that most of it are because I do not understand ever...
stackexchange/codereview
i whant to ask, if there is simple way to start clean JSF project in Eclipse? I mean, so preoject with configuration and sample data? I need something like Matt Raible's App Fuse, but created for Eclipse, Ivy and Jboss server
stackexchange/codereview
I am trying to get data from a server using the following code. + (NSString *) getData:(NSString *)methodName parameters:(NSDictionary *) parameters error:(NSError **)error { NSString *body = [UdoziProxy getRequestBody:methodName parameters:parameters]; NSMutableURLRequest *request = [UdoziProxy createRequest:body]...
stackexchange/codereview
I am trying to change the above parameters on a profile specifically set up for the log reader on a SQL Server 2008 transactional replication publication, but cannot find where to do this. Any help very much appreciated.
stackexchange/codereview
Wow, this title gave me immediately "The question you're asking appears subjective and is likely to be closed." Anyway, after some searching and reading, I decided to ask it. Coming from my question: What are the first issues to check while optimizing an existing database?, which boiled down to necessity to stress lo...
stackexchange/codereview
Simple question: I need to increase the timeout for an ashx.
stackexchange/codereview
I have this: public MyView: UserControl { public IList<Person> PersonList { get; set; } public MyView() { //code } public void Display(MyData myData) { DataContext=myData; } //code } The XAML for this includes a ComboBox : ItemsSource="{Binding RelativeSource={RelativeSource Self}, Path=Pers...
stackexchange/codereview
I have 2 RichTextBoxes (rtb1, rtb2), I something wrote in rtb1 and click on enter key, on this event is added text from rtb1 to rtb2. I solved this in code behind, it is possible this same write in XAML? C# code: private void rtb2_PreviewKeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) ...
stackexchange/codereview
It doesn't make sense to me, because the code is very simple and "FieldStorage" exist in documentation. #!/usr/bin/env python print 'Content-type: text/html' print import cgi def Main(): form = cgi.FieldStorage() print '<html>' print '<body>' print 'ola' print '</body>' print '</html>' if __na...
stackexchange/codereview
I have read this question. I have same issue, but I don't understand the answer from lubos hasko. How exactly can I do it? Can you someone post me full walkthrough? When I run code below, something is installed, but in list of service, I could not find it. I have this, but this not work: using System; using System.Coll...
stackexchange/codereview
I have a situation where i need to search for couple of objects in my code files. currently i m doing it by seaching using visual studio search option for every text i want to search. I want to use regular expression ( search -> use -> regular expression ) to search all my text at once using OR operator. Please sug...
stackexchange/codereview
I have Strawberry Perl 5.10 and mod_perl2 installed per these instructions on the mod_perl mailing list without a problem. However, trying to install various Apache2:: modules that my scripts use result in errors. One (Apache2::Reload) I was able to install despite this: C:\>cpan -f Apache2::Reload CPAN: CPAN::SQLite...
stackexchange/codereview
last question for the night! when my website is viewed in IE, it is all screwed up compared to mozilla or chrome. I have no idea how to fix it. I think it has to do with the below divs in my site...but I'm not sure which ones. #quicklinks { width: 550px; float: right; background-color:#9D9AFF; } #buttons { width: 200p...
stackexchange/codereview
I am trying to get a 31x31 png icon to display without much luck. I have lost count of the different settings I have applied to numerous copies of the icon. Used all combinations when saving as a PNG from within Photoshop. Even tried downloading an ICC color profile for the iphone - again no luck. Can anyone tell me ho...
stackexchange/codereview
Basics: I have a Windows .NET Form application with an embedded WebBrowser control. It is triggering a download which opens the "Save Download" dialog. I would like to click on the "Save" button automagically. I found this other StackOverflow question: Press save button of "File download dialog" of internet explorer vi...
stackexchange/codereview
This is a shellcode to exploit the bufferoverflow vulnerability. It sets the setuid(0) and spawns a shell using execve(). Below is the way I have interpreted it: xor %ebx,%ebx ; Xoring to make ebx value 0 lea 0x17(%ebx),%eax ; adds 23 to 0 and loads effective addr to eax. for setuid() int $0x80 ...
stackexchange/codereview
I have ten text files (tab delimited, 200K rows). My intention is to seek characters [, ], | and replace them with a, o, u, respectively. Any hints how to do this using Windows batch script or Powershell?
stackexchange/codereview
I always hear the word token, eg. request a token. I usually replace that word with "key". But what does it mean exactly?
stackexchange/codereview
I have used this PHP mail script for a while now and it served me well... I need to ask a few things. Right now, it just sends an email to me with the information posted. then it just Echo's back to the user if it was submitted successfully or not. How can I add a CC field to send the user some direction on what to do ...
stackexchange/codereview
C++03 3.6.1.3: The function main shall not be used (3.2) within a program. ... I wonder why this rule exists... Is anyone aware of any system/implementation where it would be a problem if main were used? P.S. 1. I know the definition of the term used. 2. I know there are simple workarounds like calling a single MyMai...
stackexchange/codereview
So for example: I have file.mp3, I know that my desired format can play sound with out video (for example FLV) so how to put encoded mp3 data using ffmpeg from mp3 container into flv (where to get articles/code samples on this)? I mean not from cmd but from C++ using ffmpeg as library. (see tags)
stackexchange/codereview
I am learning SQL Server by exercising some problems. In one of that problems I have 4 database tables: ORDERS, SHIPMENTS, WHFICHES and ATTACHMENTS One of them is hold attachment references to other tables that is named ATTACHMENTS. It has 3 columns: LREF (Unique ref as primary key) RECREF (Records ref) RECTYPE (Recor...
stackexchange/codereview
Can somebody refer me reference book for in depth understanding of C and C++ exception handling mechanisms.
stackexchange/codereview
I'm trying to inject a bean defined in a Spring context into a CDI managed component but I'm not successful. The bean is not injected, instead a new instance gets created each time the injection should be performed. My environment is Tomcat 7 with JBoss Weld. The Spring ApplicationContext is straighforward: <beans> ....
stackexchange/codereview
I have been provided with the php info: http://elfs.se/phpinfo.php Theese are the instances that mention cUrl: configure command (...) '--with-curl' (...) cURL support enabled cURL Information libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15
stackexchange/codereview
I've got the following text box in my Silverlight app: <TextBox Text="{Binding Model.PercentOfSale, Mode=TwoWay, StringFormat=p}"/> where PercentOfSale is defined as a double. The display in the text box is as expected: 0.00 % However, when I enter a new value (say 15) I get: 1,500.00 % So the value is being multi...
stackexchange/codereview
I have a couple of queries that I need to run one to a linked server and one not like this Dim InvestorLookup As String = "DECLARE @investor varchar(10), @linkedserver varchar(25), @sql varchar(1000) " InvestorLookup += "SELECT @investor = '" & investor & "', @linkedserver = '" & db & "', " InvestorLookup +...
stackexchange/codereview
Hi i have an AsyncTask in my application called in OnCreate() that retrieve some data over the web and display an indeterminate progress bar while downloading. The problem is when i start the app the screen remain blank until the AsyncTask is finished. The code is something like that. public void onCreate(Bundle save...
stackexchange/codereview
I am having problem to calculate the % value on the base of subtotal per each row and in the column. As you may see from the snap shot# 1, I am unable to calculate the percentage value basing upon the sub-total value (i.e. from the 1st row). And this is how i want to show my output as shown below snapshot.
stackexchange/codereview
What is the difference between .NET and ASP.NET? How are they related?
stackexchange/codereview
As mentioned in a previous question I am trying to check that all my ResultSet are closed. For that I want to use AspcetJ but after 1 day of hard fight I am not able to use aspects in a plugin context. What I want is to have an aspect project defining several aspects to check resultset and then launch a new eclipse deb...
stackexchange/codereview
how to turn off autocomplete in autogenerated form input element's? in zend form's?
stackexchange/codereview
I would like to upload some files on a server Share Point. My questions are: 1) I started developing my project as a Windows Service but I read several parts of this WebService. It's mandatory that it's be a WebService? 2) I added the references to. Dll take it from my SharePoint Server (as seen in most discussions) bu...
stackexchange/codereview
After _facebook = [[Facebook alloc] init]; and [_facebook authorize:kAppId permissions:_permissions delegate:self]; How can I tell whether the _facebook is (still) logged-in/valid to do further [_facebook requestWithMethodName: ...]? Or should I just simply [_facebook authorize:...] again and again? Thanks!
stackexchange/codereview
Is there anyway to check if an object is alloced or not? Thanks. Edit: Here's a better question. Is it ok to alloc an object that was already alloced without changing it's initial value?
stackexchange/codereview
i have search on the site but i haven't find the same problem as mine when i do a pinch out on my video, the notification "MPMoviePlayerPlaybackDidFinishNotification" is called. after, the "done" button put the video in pause and the player works badly... I don't understand why this notification is called... this is m...
stackexchange/codereview
I am trying to display display .xls file data in a browser(prefer ie,ff,chrome and safari) as a web content. The thing is i have an .xls file in my computer where i'll all the data manipulations in the xls file and want the data in it to b displayed in a browser for others to see just as a content in a webpage. I am p...
stackexchange/codereview
I am having a WCF application hosted on IIS. I am initializing an IoC container in a custom ServiceHostFactory. Basically what I would like is to be able to "inject" that IoC Container to each Service instance created within the scope of that ServiceHost. How would you accomplish that? Ariel
stackexchange/codereview
UML classdiagrams are a standard graphical notation to describe classes and their relationships. Is there a standard textual notation (DSL) to describe the same? Don't say XMI or EMF;-) I think you could do that with Corba IDL and use Interfaces for classes, but this is somehow too much on the Corba side. You could use...
stackexchange/codereview
I'm playing a bit around with ANTLR, and wish to create a function like this: MOVE x y z pitch roll That produces the following AST: MOVE |---x |---y |---z |---pitch |---roll So far I've tried without luck, and I keep getting the AST to have the parameters as siblings, rather than children. Code so fa...
stackexchange/codereview
How do I generate cryptographically secure random numbers in javascript?
stackexchange/codereview
Novice question: Is it possible to build my project (using BuildEngine or so) if I write a pre-commit hook in C#? What I want to do is, build the project upon commit on my dev server and accept the transaction if build succeeds. Is it even possible? If so some hints would be highly appreciated.
stackexchange/codereview
Im Getting a Frequent enough BAD_ACCESS when i call this Quartz function: CGContextDrawPDFPage ((CGContextRef)context, (CGPDFPageRef)pageRef); Here is how i call it: CGContextRef context = UIGraphicsGetCurrentContext(); //translate, scale CGPDFPageRef myPageRef = CGPDFDocumentGetPage ([PDFDocument sharedPDFDocument].d...
stackexchange/codereview
Is anyone aware of any example projects that demonstrate creating a custom Soft Input Panel that can be installed on Windows CE 6.0? What I'm trying to accomplish is to show the soft input panel keyboard as discussed in this question: Pop-up keyboard in Windows CE 5.0 But then to create a keyboard that matches the look...
stackexchange/codereview
We got "out of memory" issue on production servers. What API can we use to get live memory (physical and managed) usage of the ASP.NET application? Thanks. PS: we're forbidden to profile memory with tools.
stackexchange/codereview
i would like to upload some files with php. i got the following warning: Warning: Maximum number of allowable file uploads has been exceeded in Unknown on line 0 But i can't find the maximum allowable files that can be uploaded. Can i ignore the size or setting the size higher to upload all my files? Thank you very muc...
stackexchange/codereview
When the user taps a menu item I need to create a new Activity. This Activity loads a lot of data then shows a map and takes some seconds to be shown. How can I use ProgressDialog from an activity to another? I actually cannot see it if I call ProgressDialog dialog = ProgressDialog.show(this, "", "Loading. Please wait....
stackexchange/codereview
Below code works perfectly on ever browser except IE.If someone could hel me in fixing this ,that would be really great! $(document).ready(function(){ $('#signup-form').submit(function(){ //check the form is not currently submitting if($(this).data('formstatus') !== 'submitting'){ //setup variables var for...
stackexchange/codereview
The hash value for key is caculated and is divided by a prime number. In general, Is there any standard prime number (say for 32/64 bit) for this? My understanding is the hashtable is not resizable/adjustable and its internal array depends on this. If I have a hashtable for only 5 elements will there be waste in key s...
stackexchange/codereview
I would like to know how to make rounded border in IE8. I'm using -moz-border-radius:4px; -webkit-border-radius:4px; for mozilla and safari.
stackexchange/codereview
I would like to script certain eclipse actions that are too repetitive. An example use case would be: Starting Tomcat, Starting GWT debug, then connecting to GWT debug mode. Best case scenario is if this could be done by shell via an external eclipse interface. But I'd settle for a macro in Eclipse itself as well. Are ...
stackexchange/codereview
I want to use JavaScript to print an HTML page in the landscape format.
stackexchange/codereview
I'm trying to do a school project where we are to create a Silverlight application that uses bing map as a kind of map editor for placement of chargeable stations for cars. Example: There are some requirements, it must support drag and drop and we must use MVVM (Model View View-Model). Now we have finished the drag an...
stackexchange/codereview
my rusty C++ skills got a fail after: #include <pcap.h> ... void Sniff::pcap_listen() { pcap_t *loc; char *dev; dev = pcap_lookupdev(errbuf); loc = pcap_open_live(dev,BUFSIZ,0,-1,errbuf); pcap_loop(loc,-1,pcap_callback,NULL); } error: argument of type ‘void (Sniff::)(u_char*, const pcap_pkthdr*, const u_char...
stackexchange/codereview
I have this text input field on a web page. User types in item names for purchase. I'd like to provide a dropdown with possible names, based on letters typed so far. Question is how to implement the search on the server (ASP.NET MVC). I'll probably load the whole collection of item names (there are over 100 000) in a s...
stackexchange/codereview
there are some special characters in my java code like this char c = 'ä'; (i know this is bad style and it could be avoided by using the UTF-8 code, but that's not the point of the question) while this code compiles and runs fine when using java 64bit from with an ide like eclipse, when i try to compile this via ant ...
stackexchange/codereview
Basically I have a Parent superclass which i.e is called MAMMAL. The mammal by default extends a UIImageview. Now I have tiger class which in turns extend the MAMMAL class and the mammal class has i.e a breastfeedbaby method. In my mammal.h class, i declare the breastfeedbaby method. Now , I want to be able to do somet...
stackexchange/codereview
I want to programatically generate ALTER TABLE statements in SQL Alchemy to add a new column to a table. The column to be added should take its definition from an existing mapped class. So, given an SQL Alchemy Column instance, can I generate the SQL schema definition(s) I would need for ALTER TABLE ... ADD COLUMN ... ...
stackexchange/codereview
I am very new in Iphone development. I have a requirement to display images in a tabular form [row column wise]. --------------------------------------- | Img1 img2 img3 img4 | | Img6 img7 img8 img9 | --------------------------------------- Will you please inform me the best way to accomplish this. Thanks in advanc...
stackexchange/codereview
I want to implement readmore/less feature. i.e I will be having html content and I am going to show first few characters from that content and there will be a read more link in front of it. I am currently using this code : var txtToHide= input.substring(length); var textToShow= input.substring(0, length); v...
stackexchange/codereview
I'm currently attempting to integrate a DLL (FooEmulation) into an existing project. The DLL assumes that it will only be used to emulate one Foo at a time, and uses a lot of static globals as a result. However, I want to be able to manage thousands of Foo instances at once. I have the source to the original DLL, so I ...
stackexchange/codereview
I am making an Analogue Clock in which i have to rotate the image in my pictureBox... e.g. i want to rotate my image by 6 degrees every second. what can i do for this? Thanks....
stackexchange/codereview
Given all the coverage FireSheep has been getting, I have been trying to work out the best practices for balancing HTTP / HTTPS usage for some sites I manage (e.g. blogging sites, magazine sites with user contributed comments). To me, its over kill to deliver all pages over HTTPS if the user is logged in. If a page is ...
stackexchange/codereview
how can I add my logo to my rss feed?
stackexchange/codereview
I have two observalbe collections like below public ObservableCollection<Employee> AllEmployees { get { return _allEmployees; } set { _allEmployees = value; } } public ObservableCollection<Employee> EmployeesToDisplay { get { return _employeesToDisplay; } set { _employeesToDisplay = value; } } They are bo...
stackexchange/codereview
function getIdModelsSliderJuwels(){ $collection = Mage::getModel("catalog/product")->getCollection(); $collection->addAttributeToFilter("attribute_set_id", 27); $collection->addAttributeToSelect('modellijnen'); // $collection->setRandomOrder(); // $collection->getSelect()->limit( 5 ); return $collect...
stackexchange/codereview
In android, how do I send a file(data) from a mobile device to server using http.
stackexchange/codereview
I have a question about the Bitmap class. If you want to set a lot of pixels on the bitmap, then you can use the SetPixel method, but it's very slow. There is a lot of documentation on how you can speed it up with the LockBits methodes etc, so i've created a method: SetFastPixelto speed it up a bit. However, and I'm re...
stackexchange/codereview
I'm working on a simple AppleScript that runs the following... do shell script "diskutil partitionDisk /dev/disk1 1 APM JHFS+ Test 1G" It's part of a bigger script. The above works fine but is there a way of viewing the progress? Anything will do really, preferably the actual command within a terminal window would be g...
stackexchange/codereview
I want to use X509_STORE_set_verify_cb_func to receive certificate validation errors. I then want to store these errors in a list and process it later after SSL_connect returned. However my application is multithreaded and I wanted to avoid any mutex locking for this callback. Any ways to pass a "void pointer" or store...
stackexchange/codereview
I currently have 2 x ASP.NET 3.5 web applications in IIS7 (lets call them WebParent and WebChild). WebChild is nested within the WebParent listing in IIS7 and is set up as an application (rather than just a virtual directory within WebParent). Both currently use their own (Classic) application pool. Both WebParent and ...
stackexchange/codereview
I'm almost there with a mod_rewrite rule, but I've caved in :) I need to rewrite country/[countryname].php to country/[countryname]/ however, [countryname] may have an underscore like this: 'south_africa.php' and if it does I want to replace it with a hypen: 'south-africa/' I also want to match if the country has nu...
stackexchange/codereview
I'm implementing a achievement system. One of the "badges" I'm trying to create will determine: If a user has joined in at least one coding challenge Then hasn't joined in 3 consecutive coding challenges Then started participating again. The badge is simply called "I'll be back" ;-) The tables users =================...
stackexchange/codereview