instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Do I have to pay license costs for reading / manipulating PDF's on a server to adobe?
stackexchange/codereview
I have the following code that fails to display object images. But displays normal images fine. My Model class News(models.Model): title----------- image = models.ImageField(upload_to='images') body------------ Template tag coding from django import template register = template.Library() from ----.models import --- d...
stackexchange/codereview
I've been trying to create a user date-of-birth selection field during sign up. The code looks like this: <div id="content"> <h3>Register</h3> <%= form_for(@user) do |f| %> <div style="width: 374px; margin: 0 auto;"> <%= f.label :name %> <%= f.text_field :name %> <div style="clear: both;"></di...
stackexchange/codereview
Are Bookmarks and Hyperlinks treated the same in PDF documents?
stackexchange/codereview
Seems to be that PyCrypt is required to be ported, in order to make that happen. Is it hard to do yourself?
stackexchange/codereview
It's a greasemonkey script. I don't know javascript so that makes this especially fun. function notify(){ if window.find("1 minute")==true{ alert("y"); setTimeout("alert('time to click soon!')",60000) } if window.find("2 minute")==true{ alert("y"); setTimeout("alert('time to ...
stackexchange/codereview
Mainly my project was to create some UI interaction. Degrafa supported Flex 3 and FXG supported Flex 4. Which would you choose in term of performance in UI and AIR 2.0?
stackexchange/codereview
I'm building a JS library which has a requirement of looking at form[action] and a[href] values and resolving them into absolute URLs. For example, I'm on http://a/b/c/d;p?q and encounter an href value of "../g" (assume there's no <base> element). The resulting absolute would be: http://a/b/g. Is there a JS library th...
stackexchange/codereview
i have a class .myclass i want to get the id of all textbox [html] who have this class. how i can do this. i need to do this in jquery
stackexchange/codereview
How would I convert a file to a HEX string using Python? I have searched all over Google for this, but can't seem to find anything useful.
stackexchange/codereview
I'm writing an open-source mini-book on jQuery Plugin Development Patterns and am interested in hearing what you guys feel are the most popular plugin patterns at the moment. (If you could provide an example too when answering that would be a big plus) There are at least 4 unique ones which I've identified so far, incl...
stackexchange/codereview
I've seen all the posts about setting preprocessor flags via the "Preprocessor Macros" setting. For some reason, Xcode seems to ignore my settings. I'm building an Xcode project that was created via CMake. Inside the Dependencies.cmake file, there are a few definitions added. For example: add_definitions(-DUSE_POCO)...
stackexchange/codereview
I'm wanting to use an XML file to show some messages in a flash application. I'm wanting to populate this XML file using a simple HTML form with a textarea and when a user submits the content it will post it to the XML file. The XML file looks like this: <messages> <msg>This is a sample message</msg> </messages> I'm pr...
stackexchange/codereview
I am relatively new to Android development and a quick google search turned up nothing of interest.
stackexchange/codereview
In Java EE security, if a user tries to access a secured resource, they are redirected to the login page. After successful login they are redirected to previously requested secure resource. Is it possible to redirect the user to a specific page, in my case application entry page? Something equivalent to Spring Security...
stackexchange/codereview
I'm trying to install Mercurial on a server of something, or even a Linux box, and have users in an intranet log in to use as a repo for them. This is just an academic exercise I'm pursuing out of curiosity. I'll be using VMWare to simulate a lan. What would be the best OS to host the Mercurial software on? Thanks!
stackexchange/codereview
I managed to run into this funny bug the other day where too quick modifications of the DOM caused the entire internet explorer to crash. So i was thinking, why am i even setting these values if i'm going to change them later anyway? (the modifications are very unpredictable so completely avoiding the scenario is impo...
stackexchange/codereview
i'm trying to insert multiple data using a query, i've tried the implode function, the while loop, for loop, but still can't be done.. can u help plz well i've a combobox box for selecting course name, created a function to get its ID and assign a variable. supose i'm a manager of a department and need to assign all s...
stackexchange/codereview
In MySQL I want to write a script and put multiple CREATE PROCEDURE statements into it, the usual ; won't work for some reason. Is there another way to run multiple CREATE statements in the same script? If so, how?
stackexchange/codereview
Thanks for your valuable time. I want to learn c++ design patterns. I searched on web but I was not getting documents which gives me better details about design patterns. I was getting good details but those were in different URL's, I required all the information in one place only so that it will be better to know wha...
stackexchange/codereview
I need to make a FuzzyQuery using an index that contains around 8 million lines. That kind of query is pretty slow, needing about 20 seconds for every match. The fact is that I can narrow down the results using another field to about 5000 hits before doing the fuzzy search. For this to work, I should be able to make a ...
stackexchange/codereview
I have plans to set up a website where people can create an account and create their own content. This content consists of text, images and likely audio. Users should also be able to download an iPhone, iPad, Mac or even a Windows app that syncs with their online content, so they can view their content offline, possibl...
stackexchange/codereview
So I have some NSButtons and NSImages (I assume they would be moved the same way) that I want to move. I want to move them to new coordinates on the window. I assume that I could figure out the coordinates I want to move them to on Interface Builder, and then move them programmatically. Additionally, how can I animate ...
stackexchange/codereview
I am looking for simple way to split parenthesized lists that come out of IMAP responses into Python lists or tuples. I want to go from '(BODYSTRUCTURE ("text" "plain" ("charset" "ISO-8859-1") NIL NIL "quoted-printable" 1207 50 NIL NIL NIL NIL))' to (BODYSTRUCTURE, ("text", "plain", ("charset", "ISO-8859-1"), None, No...
stackexchange/codereview
Brief description of UI and setup 1)Plain vanilla frame, with button1 and button2 and textarea1 and textarea2 2)Button1 launches a continuous running task using a swingworker myswingworker1 and the swingworker's process method continually updates textarea1 3)Button2 launches a continuous running task using a swingworke...
stackexchange/codereview
i am using a calendar extender control in my asp.net web application. i want to disable this control while clicking on a check box. i used disabled property of calendar extender. i set disabled =true . but i have 2 problems. it do not desabling the textbox associated with calendar extender control i am using a regu...
stackexchange/codereview
I am trying to create a actionUrl using the following code <portlet:actionURL var="actionUrl"><portlet:param name='action' value='viewModules' /></portlet:actionURL> and map that onto a spring controller However the controller does not respond as the generated url's ampersands are encoded e.g. <snip>&amp;p_p_lifec...
stackexchange/codereview
The txt is about 22,000 lines, and it's about 3.5MB. There are lots of duplicate lines in it. I simply want to remove the duplicate lines and also some lines which include specific strings not needed. My way is to read the file into a big list using readlines() method, then read the file as a big string using read() m...
stackexchange/codereview
I use the below code to create listview without listactivity.I need to know how to get the selected list item from this. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String[] myList = new String[] {"Hello","TEST","TEST","TEST4"}; ListView lv = new Li...
stackexchange/codereview
I have developed multiple WebServices in my project in ASP.NET. Now I need to deploy them as a single executable file. How can i do that?
stackexchange/codereview
I have a simple frame in a wxPython script that isn't refreshing like I'd like it to. Basically the frame starts out blank. The user can then select different datasets to view in a grid form. When the dataset has been chosen, the script creates a grid and puts it in a sizer in the frame. The problem is that the frame s...
stackexchange/codereview
Hey, I have a sequence of code that goes something like this: label.Text = "update 0"; doWork(); label.Text = "update 1"; doWork2(); label.Text = "update 2"; Basically, the GUI does not update at all, until all the code is done executing. How to overcome this?
stackexchange/codereview
I am using Phusion Passenger to deploy a rails application using apache2 on CentOS 5.5. For some reason, I keep getting this message when I start up apache: > service start httpd Starting httpd: Warning: DocumentRoot [/home/deploy/my_app/public] does not exist [ OK ] The directory most certainly does exist. Here ar...
stackexchange/codereview
I use simple js email validation like: function validation(email) { var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; return reg.test(email); } function check(){ if ($("#subemail").hasClass("bad")) { var subemail = $("#subemail").val(); if((subemail!=0)&&validation...
stackexchange/codereview
My plan is to be able to dynamically generate SQL tables. Since I know django can create SQL tables using models, they must have a function for this. The problem is I can not find this function in the Django folder, or maybe I simply don't recognize it. thnx
stackexchange/codereview
I had discussion with a colleague a while back on what would it take to create a better SharePoint from scratch. Some of the requirements: Document management Workflow management Good integration on the desktop (version control as part of OS) Rich web UI based on open standards Very easy to integrate, and extend I ...
stackexchange/codereview
This sub works fine: Private Sub UpdateInfo(ByVal text As String, ByVal timeStamp As DateTime) If Me.lstStatus.Dispatcher.Thread Is System.Threading.Thread.CurrentThread Then ' Do stuff with Else Me.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Send, New Action(Of String, D...
stackexchange/codereview
How can I show a string on a UIImage View? Ok Ive got this currently: - (void)viewDidLoad { [super viewDidLoad]; playerPositions = [[NSArray alloc] initWithObjects:box1,box2,box3,box4,nil]; [box3 drawRect:box3.frame]; } - (void)drawRect:(CGRect)rect { [super drawRect:rect]; CGContextRef context = UIGraphics...
stackexchange/codereview
In C++ what is the best way to return a function local std::string variable from the function? std::string MyFunc() { std::string mystring("test"); return mystring; } std::string ret = MyFunc(); // ret has no value because mystring has already gone out of scope...???
stackexchange/codereview
I am just getting started on web app development. I have an index.jsp that has just ONE line. < jsp:forward page="landing.do?"/> What does the above line do? page="landing.do?" actually refer to? what does the question mark "?" next to "landing.do?" signify? As Bozho rightly pointed out, a servlet called "acti...
stackexchange/codereview
Possible Duplicate: JavaScript getter for all properties Does JavaScript provide a method to access undefined object properties? In PHP the solution is to declare and implement __get() method in class. Solutions using try { .. } catch { .. } are not sufficient for me, because I already have very large amount of code...
stackexchange/codereview
What is the best way of integrating node.js with Scala (Java)? The simplest way I see so far is using Redis PubSub as a mediator, with node.js server handling HTTP requests and publishing messages to the request channel (via redis-node-client), and Scala actors (e.g. Akka Redis PubSub integration) subscribed the reques...
stackexchange/codereview
BLImageCache *sharedImageCache = [BLImageCache sharedInstance]; NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:indexPath ,@"IndexPath", nil] ; NSString *urlString; urlString = [[mNewsArray objectAtIndex:indexPath.row] objectForKey:@"imgUrl"]; urlString =[urlString stringByAddingPercentEscapesUsin...
stackexchange/codereview
Im using the FindWindow method from user32.dll to find a window and get the handle, but is it possible to get the form control from the handle? and the use it like an ordinary form? Example: int myhwnd = FindWindow(null, "MyWindow"); form myform = SomeMagic.GetFormFromHandle(myhwnd); myform.Visible = false; or do I ha...
stackexchange/codereview
A partition of a positive integer n is an non-increasing array of positive integers a[1] , a[2] , ... , a[m] satisfying a[1] + a[2] + ... +a[m] = n. m is called the length of this partition. We can list all the partitions of n in an specified order. For example, if we use the rule by which a lexicography sorts all th...
stackexchange/codereview
I found this paragraph in Oracle documentation if you want to select the name of each department along with the name of its manager, you can write the query in one of two ways. In the first example which follows, the hint /++ordered++/ says to do the join in the order the tables appear in the FROM clause w...
stackexchange/codereview
This is a direct quote from the textbook, Invitation to Computer Science by G. Michael Scneider and Judith L. Gersting. At the end of Section 3.4.2, we talked about the tradeoff between using sequential search on an unsorted list as opposed to sorting the list and then using binary search. If the list size is n=100,0...
stackexchange/codereview
Is it possible to explicitly use a CollectionViewSource inside a data template? Normally we'd put the CollectionViewSource in the resources alongside the template, but our model doesn't allow that because the 'source' of the collectionviewsource is a property of the DataContext at this level in the tree, meaning there...
stackexchange/codereview
I've written a Open Source program that I've released as GPL built using the Qt4 LGPL SDK. This program has the ability to search an optional Sqlite3 database for data. Here is what is making me lose my mind. I compile the program on the development machine. When I try to run it, I can errors about missing DLLs. I copy...
stackexchange/codereview
#include <stdio.h> int main(void) { int x = 1000; char *ptr = &x; printf("%d\n",*ptr); return 0; } Output: -24 /*In gcc 4.4.3 in Ubuntu 10.04 OS*/ With a warning: initialization from incompatible pointer type What I think if the base type of the pointer were of int type then it would have retrieved 4 b...
stackexchange/codereview
My goal is to display a .NET Windows forms message box from a pure C++ native Windows API-level program (not managed C++ or C++/CLI). That is, for learning purposes I want to implementing the C# code shown in the comment below, in pure C++: /* // C# code that this C++ program should implement: using System.Wind...
stackexchange/codereview
Ok yes it is a very silly question, but just that I am getting a little confused. I have a file structure which looks like this:- -Mainapplication -models.py -Helpingmodules -Folder1 -module1.py Now I have to import models into module1. So in module1.py I just did:- from Mainapplication import models Now ...
stackexchange/codereview
UIButton has a single initializer buttonWithType. But this is a factory method and will create an autoreleased object. Of course we can do something like: UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(10, 10, 50, 30)]; But in this case i will not be able to set the button's type as buttonType is a rea...
stackexchange/codereview
what would be the best approach to get count of $_POST i have a form where a user can create a input box, so i don't want to allow empty submission. i tried count($_POST), it always empty. This in if(!isset($_POST['submit'])) { //codes } else { die(count($_POST)); // return as empty } What would be the best way to ge...
stackexchange/codereview
Want to recalculate x and y in a centered layout relative to the current viewers resolution. I have two numbers a set of coordinates x and y. x=140 y=80 x and y was recorded in a resolution sessionWidth, sessionHeight sessionWidth = 1024 sessionHeight = 400 Want to recalculate x and y so that they are relative to the...
stackexchange/codereview
Hi i'm new developer of fb apps and i want to know how can i send a message to the wall of my friends using the new facebook.php class http://github.com/facebook/php-sdk I do it this $result = $facebook->api('/me/feed/', 'post', array($ids,'message' => 'Playing around with FB Graph..') ); This code work for th...
stackexchange/codereview
My browser extension embeds a div item to webpages opened by browser on the fly. div contains several children items such as buttons, spans, input boxes etc. Problem is when div is inserted to page, page's css affects the div and it's contents. For example if the page has a css such as : span { text-shadow: 1px 1px ...
stackexchange/codereview
I have a form with multiple submit buttons: using(Ajax.BeginForm("Submit", "myController", new AjaxOptions { HttpMethod = "Post" })) { %> <button type="submit" name="submitType" value="submit_a">a</button> <button type="submit" name="submitType" value="submit_b">b</button> <% } %> The controller method is as follows: ...
stackexchange/codereview
I am trying to set command line arguments for Xcode project related to iPhone Simulator Application. When i try to run the following script the line "make new launch argument with properties{name:"file:///Users/aakash/Desktop/sample_h.html",active:yes} " gives error: execution error: Xcode got an error: Can’t make or ...
stackexchange/codereview
I have an drop down in an Update form ‘id=”tak_id”’ being populated from an query”takType”. The drop down box has three options “sms, chat, tweet” with three different values”001,002,003”. The SELECTED value in the field is being repeated twice.How can I make the SELECTED value appear only once? The code is below <...
stackexchange/codereview
.NET RIA Services work with an HTTP binding. What about TCP or named pipes?
stackexchange/codereview
am creating a .xls file using PHP fopen write and append the contents to the file. Works fine with Excel 2003. But excel 2007 showing a alert before opening as un supported type. If i create file with .xlsx extension , it is not opening in 2003. Is there any standard way that works fine in both 2003 and 2007 versio...
stackexchange/codereview
I have a question regarding development for Ipad. Is there an advantage to develop an application with iOS over using a regular development for web application that can be opened in the browser?
stackexchange/codereview
I’m currently writing a windows service that’s sole purpose in life is to poll a database and, based on the resulting information, update some other data. I wrote this as a windows service because it seemed an ideal platform. I don’t need any user interaction. However, while developing it, I’ve noticed one or two iss...
stackexchange/codereview
The system need to be access by two kind of person . local user (use that is in local network) and public user (user that access with domain name) How do i make my rail app to limit some of my url that access to controller for the public user? Using two rails with same mysql database but different port and port forwar...
stackexchange/codereview
after parse xml. xml attributes data i stored in NSMutableArray *anArray; which is in MyAppDelegate. I used anArray in MyAppDelegate. For my xml i do have One root Tag and N number Child tag. my xml example: <root> <child name1="",name2="",name3=""/> <child name1="",name2="",name3=""/> <child name1="",...
stackexchange/codereview
If I expose my EF 4 Model objects (EF4 entities) as properties on my ViewModel am I "breaking" MVVM ? Do I have to duplicate each Model class as some sort of DTO and expose those DTOs from the ViewModel ? I understand the theoretical value of having the View "not know" about the Model, but the reality is that (if I d...
stackexchange/codereview
In c# we can't create an obeject of a abstact class or interface it means abstract class do not have any constructor, is it true ? or if it have then what is it's purpose there?
stackexchange/codereview
I have a PHP installation running 5.3.3 and when I use the code below: $sql = file('sql.txt'); var_dump($sql); All my single quotes are escaped. Why would this be happening. Magic quotes is enabled on the server (for some reason, it is out of my control) however I thought that magic quotes was only applied t...
stackexchange/codereview
After experimenting with a bunch of javascript tabbars (most fail when using forms), i've decided it might be a good idea to go native. Would anyone know how to incorporate native UIControls (tabbar & header) in a jqTouch app. I'd still need to retain control of the 'back' and 'info' buttons in the header. Thanks! Gle...
stackexchange/codereview
I need to use Wordpress Blog as my webpage. And I need to assign any post into page such as... I have three pages like Page -> Dog, Cat, Bird And I need to post A to page Bird B to page Bird C to page Cat D to page Dog E to page Cat And post A, B, C is in same category. Something like this. I try to create new pa...
stackexchange/codereview
i have a asp:TextBox control on the page. i'm setting it to a TextMode="MultiLine", I am not setting a number of rows or columns. I am setting a width and height in CSS for the control. asp.net is still adding, what i assume is a default, rows and cols attributes on the rendered control. cols="20" and rows="2" this isn...
stackexchange/codereview
How can I add a file field in drupal CCK ? Thanks
stackexchange/codereview
I have a SQL table Events (ID int, Event int, StartTime datetime, Duration int). Event is event code (1=system running, 2=break) Duration is the amount of seconds that the event was active. I'd like to get the amount of seconds that event 1 was active, but subtract the duration of event 2. E.g. event 1 was from 1:00 to...
stackexchange/codereview
Im trying to create a report in SSRS. The report calls a stored procedure for its data. I want to display the data in a table. But the thing is, the result from the stored procedure differs from time to time, because every customer has its own 'template'. This means the result for customer A could be : AccountNumber |...
stackexchange/codereview
I have a editable gridview. When I click on edit button corresponding to a row in the gridview I provide two textboxes to enter two new values.2 textboxes as I have 2 columns. Now this textbox are generated at runtime.I want to access this textbox in javascript and perform validation on them.This is the html syntax. <t...
stackexchange/codereview
I am working on some aspnet C# 3.5 webapp. We use IIS7 on our test server. This webapp communicates with SharePoint 2007 3.0 SP2 by webservices. We have a machineKey in both web.config (the one of the webapp and the one of the Sharepoint site). The two sites are on two different server. This communication is working fi...
stackexchange/codereview
There is a JSP script for login to a Server. Currently user credentials are being accepted through HTTP Header and the login.jsp file is so designed that once the user provides credentials the user is redirected to a redirectURL which is a fully qualified URL containing Username and Password in query string and hence t...
stackexchange/codereview
I am trying to overload == operator to compare objects like below. class A { int a; public: A(int x) { a = x; } bool operator==(const A& obRight) { if(a == obRight.a) { return true; } return false; } }; int main() { A ob(10), ob2(10), ob3(10); if(...
stackexchange/codereview
I have a question that I cant seem to find an answer on. This is my first time using RabbitMQ in a "big" application and am wondering how the queues work in a cluster. I understand that the routing information (queues, exchanges, bindings) is on all nodes in the cluster, but the queue its self resides on the machine th...
stackexchange/codereview
What seems to be happening is on a request some values I have retrieved are being stored in application state, but when I make changes to the values, the old values are still in application state for a while before finally going. I want a way to refresh the application state on each request.?
stackexchange/codereview
I have a java program as below for zipping a folder as a whole. public static void zipDir(String dir2zip, ZipOutputStream zos) { try { File zipDir= new File(dir2zip); String[] dirList = zipDir.list(); byte[] readBuffer = new byte[2156]; int bytesIn = 0; ...
stackexchange/codereview
It seems that this question gets asked frequently, but I am not coming to any definitive conclusion. I need a little help on determining whether or not I should (or must!) implement locking code when accessing/modifying global variables when I have: global variables defined at file scope a single "worker" thread readi...
stackexchange/codereview
Is there any open source/free software available that gives you semantically related keywords for a given word. for example the word dog: it should give the keywords like: animal, mammal, ... or for the word France it should give you keywords like: country, Europe ... . basically a set of keywords related to the given...
stackexchange/codereview
I have a project that is a library that links against libresolv, It works fine on recent distros: Ubuntu 10.x Fedora 13, Mandriva 2010.1 but on Centos 5.x I get the following errors glibc installed is: glibc-2.5-18.el5_1.1 g++ -DHAVE_CONFIG_H -I. -I./include -I/usr/include/postgresql -O3 -ansi -Wall -Wno-deprecate...
stackexchange/codereview
How to parse xml data which have special characters ( ' , " , < , > etc) in iOS? In NSXmlParser's delegate, when it reads special characters ( ' , & ), it thinks this is open new eplement? How can i ignore those special characters?
stackexchange/codereview
How do you output an array with FirePHP? I'm using FirePHP in a Zend Framework project. I can output the value of individual variables with: $logger->log('foo = '.$foo, Zend_Log::INFO); and see something like: foo = "Ponies!" However if $foo is an array I only see: foo = Array and the word Array is not clickable or ...
stackexchange/codereview
How can reverse engineer the list or site definition to caml in SharePoint 2010? Any tools availble?
stackexchange/codereview
I'm trying to implement an internal chat system for our admins to use, but I'm not too sure on the database design. I have this (below) so far, but would appreciate a verification and/or recommendation for improvement. Employees { EmployeeId (smallint) // ... } Chat { ChatId (int) Stamp (datetime) // O...
stackexchange/codereview
Suppose I have two tables Table1 and Table2 with the following data. Column1 Column2 Column3 AAA KKK 9 BBB LLL 7 CCC MMM 9 DDD MMM 5 EEE MMM 7 FFF NNN 9 GGG OOO 1 Column4 Column1 TTT DDD TTT BBB UUU EEE VVV BBB WWW A...
stackexchange/codereview
I use the following scheme to include PHP files: require($_SERVER['DOCUMENT_ROOT'] . "Path/To/My/Website/Path/To/My/File.php"); I would like to save $_SERVER['DOCUMENT_ROOT'] . 'Path/To/My/Website' in some variable, say $my_website, and write: require("$my_website/Path/To/My/File.php"); This way, if I decide to cha...
stackexchange/codereview
I would like to activate my Swing application programatically. I mean that I would like to write code that cause the JFrame to be visible and focused (the window header should be highlighted). I tried to use requestFocus(). It works only if application has at least 2 windows A and B: A is hidden, B is visible. Now if ...
stackexchange/codereview
I'm try out a few game mechanics and I tried to mimic WoW's periodic events such as "x damage every z seconds". I've used Timers so far to schedule periodic tasks in this case where I'm trying to regenerate health but is it really necessary to pass "this" in order to modify the instance variable, _mana? Do I really nee...
stackexchange/codereview
I'm using ASP.NET and jQuery. I have two dialog boxes, each of which have a button with a click event. The form started with one, and everything worked fine. You could enter a fax number, click a button, and stuff would happen. Adding in the second dialog box caused problems. The button in the first one just stoppe...
stackexchange/codereview
How can we listen to "http.Server" events? Or how can we instantiate a "http.Server" object? According to nodejs.org/api.html: "http.Server" is an EventEmitter with events like "request", "connection" .. etc. However I can't find a way to listen to these event as I am not sure how to instantiate a "http.Server" object....
stackexchange/codereview
I want to be able to make custom buttons which have an image background using a scale9 type background image meaning the width of the button can be dynamic. I have seen example on the web of people doing this on a per button basis but it seems to me that wouldn't it be better to create a new object which subclasses UIB...
stackexchange/codereview
I have a very interesting issue and i have been breaking my head on it since a long time. I am new to WPF and related things like MVVM and all. I have a window in which i place a user control which hosts a TabControl inside it. This tab control has Custom Radio Button and Combo boxes which expose few Dependency Propert...
stackexchange/codereview
I'm having trouble figuring out how I can count the number of logged-in users in my application. What I have: When a user logs in, they get a session (which is used when the user wants to visit a protected page) and the IsLoggedIn column for the user in the users table is set to 1 to indicate that the user is logged in...
stackexchange/codereview
Normally, we use regular expression match from left to right direction. I want to know whether there is some switch that can be used to match from the right to left in python? Or is this feature embedded in any other language? e.g. abcd1_abcd2 If given regular expression abcd, it will match two abcd strings. What I wa...
stackexchange/codereview
i have problem with UIACtionSheet and iPad keyboard , when try to show an UIActionSheet with firstResponder keyboard my sheet becomes like this : what is the problem ?
stackexchange/codereview