instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Is it possible to parse a complete HTML document as a complete jQuery object? When I try, e.g. var $tmp = $("<html><head><title>title</title></head><body><p id='test'>test</p></body></html>"); console.log($tmp); I get: [+] [title, p#test] [] i.e. an array combining all of the head's children with all of the body's. I...
stackexchange/codereview
What idiom should one use in Bash scripts (no Perl, Python, and such please) to build up a command line for another program out of the script's arguments while handling filenames correctly? By correctly, I mean handling filenames with spaces or odd characters without inadvertently causing the other program to handle th...
stackexchange/codereview
I have a strings.xml with a string-array resource. In another .xml I have a textview. setText() doesnt accept an array so how do I make my string array appear in the textview? I've done a search but can't seem to find something which addresses this issue. It is such a simple matter that I think I must be missing t...
stackexchange/codereview
I have to design a databse for the following situation. The data which I have is a test data which we get as a part of our testing process. I have a set of data with nearly 80 columns. First column is the # No, second is the time, next 10-15 are the enviormental factors like temperature,pressure,humidity etc. Rest 64 a...
stackexchange/codereview
I have three sample twiki names: names = [ "JohnDoe", "JaneMcAdams", "BillyBobThorton" ] I want to get the following back: * John Doe * Jane McAdams * BillyBob Thorton Now I have this which busts them apart on the cap (That's a good thing). re.findall('[A-Z][^A-Z]*', name) How do I ignore "Mc" as a split? ...
stackexchange/codereview
I am doing a firewall application. For that I tried some codes from codeproject HERE But the problem is the code is not compiling, giving linking error. I am using SDK 2008. Can anyone please tell me what .lib file should I use for WFP and where can I find it ? Thanks.
stackexchange/codereview
I have created a repository in a folder with my project, you know, git init, I have the Webstorm folder .idea and another one not related to this, I am not interested in keeping in the repository, and I don't want this folder to appear even as new files to add. I want to forget about these subfolders. How can I exclu...
stackexchange/codereview
I am working on one application. It is using j_security_check to authenticate user. It is working fine. It authenticates user. I want to display login failure page. For this i am using <login-config> <auth-method>FORM</auth-method> <form-login-config> <form-login-page>/webpages/login.jsf</form-login-page> ...
stackexchange/codereview
I had this code on a page using jquery 1.3, but now in jquery 1.4.2 it's breaking with syntax error/uncrecognized expression: $(document).ready(function(){ $("span[@name^=charge]").click(function(){ $("#" + $(this).attr("name")).show(); $(this).hide(); }); }); How do I fix that?
stackexchange/codereview
Does anyone have any sample code for detecting touches on a dynamically created UIView? I have found some references to touchesBegan but cannot figure out how to implement it...
stackexchange/codereview
hi i am developing an application that read data from sensors and write those data to an XML file when you press a key. i have 2 activity one for button and another is an Activity who implements sensorEventListener. the problem is my main activity is button and couldn't get data from event listener activity. i think t...
stackexchange/codereview
I've heard that there's a button you can hold to drag a selection of a table column in Firefox, but I'm looking for a cross-browser answer. I'm wondering if maybe I can put radio buttons above the columns, have the visitor select them, then, on the click of a button, have the columns copied to their clipboard. I'm su...
stackexchange/codereview
I've got a simple newsletter app with a subscription model with fields email and city. In this model I set unique_together('email', 'city') to avoid having subscription duplicates. class Subscription(models.Model): email = models.EmailField(_('Email'), max_length=75) create_date = models.DateField(_("Creation ...
stackexchange/codereview
No element is positioned above it there is no disabled property I do create this element on the server side and send it via Ajax to the client, which just put it in the correct place via $('id-of-elm').innerHTML=text_from_ajax; If I change it to radio it works. I am stumped.
stackexchange/codereview
I have a problem and this only happens on my PC (windows 7 64bits), if I echo the following: echo $_SERVER['REMOTE_ADDR']; I get : ::1 same thing if i insert in database. ????
stackexchange/codereview
Edit: This was all caused by a typo in my Other Link Flags setting. See my answer below for more information. I'm attempting to mock a UIWebView so that I can verify that methods on it are called during a test of an iOS view controller. I'm using an OCMock static library built from SVN revision 70 (the most recent as ...
stackexchange/codereview
Suppose we have the following code: void AFunction() { foreach(AClass i in AClassCollection) { listOfLambdaFunctions.AddLast( () => { PrintLine(i.name); } ); } } void Main() { AFunction(); foreach( var i in listOfLambdaFunctions) i(); } One might think that the above code would out ...
stackexchange/codereview
when i do a simple request using twitter api on ipad simulator, why does server send a 401 error while using iphone simulator it seems to work? i use MGtwitterEngine and SAOauthTwitterEngine. it looks like a common problem but i didn't find any solution throughout the web. SOLUTION control the response code in your MG...
stackexchange/codereview
Is there a function in C# that returns x times of a given char or string? Or must I code it myself?
stackexchange/codereview
Is there any reason why Dev C++ is not letting me do file.open(file_name_variable)? I don't understand why it's not letting me open anything but a hardcoded name like file.open("abc.txt") how do get around this? Don't use Dev C++? here's basically what I have: int open_file(string file_name){ ifstream file; fil...
stackexchange/codereview
My application uses MS SQL server 2008 and it is hosted in a Windows 2003 Enterprise Server SP2 (32 bit) 2-CPU 8 gig Ram VM machine. The application has 2 or more windows services.One of those service access the DB frequently. When the load of the DB is set 65k or something , the CPU usage hikes upto 75-95% and it doe...
stackexchange/codereview
I am trying to store the 10 digit mobile number in int, but it is saying that its out of range, how can i store in int, any help pls
stackexchange/codereview
I saw following statement somewhere - var someVariable:*; Why is someVariable declared as * (star) type? What is the use of declaring it this way?
stackexchange/codereview
Does any know the maximum number of UILocalNotification supported by iphone OS ? Apple documentation talks about a maximum number of 64 but I wonder if that is for each application or for all applications together. Documentation at: http://developer.apple.com/library/ios/#documentation/iphone/Reference/UILocalNotifica...
stackexchange/codereview
I'm trying to use the below method to send simple data through GameKit Bluetooth. However, when my 2 devices successfully connect and I tap the button to send, it just crashes at the last line showing "EXC_BAD_ACCESS". Any idea what's wrong? - (IBAction)sendAction:(id)sender { // convert an NSString to NSData N...
stackexchange/codereview
I need a way to be able to trigger full GC from a linux console script on ubuntu. I know this is extremely bad practice but without going into too much detail this keeps my server running, This is only meant for 1 or 2 days while I fix the actual problem, so I don't have to wake up in the night and perform manual GC t...
stackexchange/codereview
I have data on a all of the votes in the Danish Parliament in 2008-9. The problem is that each vote is recorded in its own .txt file with the following format (see the appendix of the post for a dump of three votes from R): Name Party Vote Anders Samuelsen LA For Rasmus Prehn S Imod ... ...
stackexchange/codereview
Currently I am careful to use different IDs for each widget, but if I used the same id for some widgets in different layout xml files, what would happen to my calls to findViewById? Would it get confused and return a widget from the wrong layout file? I ask because I was thinking of including a view (with a row of bu...
stackexchange/codereview
This seems like it should be easy but i've spent way too much time on it. Hopefully someone can help. char *string_labels[5] = { "one", "two", "three", "four", "five" }; void myFunction(void) { //can print them just like expected for(i=0; i < 5; i++) { printf("%s\n", string_labels[i]); } ...
stackexchange/codereview
I'm using Global360's libraries to interface with their system in C#. I need to access the PageInfo class accessible via public virtual object Page(int lPage) Member of MosaixDoc.ImageDocumentClass Unfortunately the return type is object, and I can't seem to find a PageInfo class or interface in the libraries. Is ...
stackexchange/codereview
Is there ANYWAY to do this? What i'm trying to do is hide the default audio and instead add a button plays and pauses the audio. Maybe with Tumblrs API?
stackexchange/codereview
I need to use an unmanaged VC++ dll. It has the following two functions that require C# wrappers: bool ReadData(byte* byteData, byte dataSize); bool WriteData(byte* byteData, byte dataSize); They both return true if they succeed, but false otherwise. Currently in C# I have a class (WRAP) with functions: [DllImport("ki...
stackexchange/codereview
I understand latency - the time it takes for a message to go from sender to recipient - and bandwidth - the maximum amount of data that can be transferred over a given time - but I am struggling to find the right term to describe a related thing: If a protocol is conversation-based - the payload is split up over many t...
stackexchange/codereview
I am still having problems with this so I can going to ask for more help. We are given: datatype which = STRING of string | INT of int Part 1. We are told we need to created another datatype named whichTree for a binary tree containing the values of type "which" where data is only at the leaves of the tree. I assumed ...
stackexchange/codereview
I am trying to following book : Pro ASP.NET MVC Framework by Steven Sanderson... The line container = new WindsorContainer(xi); produces this error: Could not convert from 'DomainModel.Abstract.IPeopleRepository, DomainModel' to System.Type - Maybe type could not be found** public WindsorControllerFactory() { C...
stackexchange/codereview
Any mobile/web developer who targets smartphones has the following questions in his mind: Should I develop on Native environment or just use a Framework? But which framework? Or just a web app wouldn't be sufficient to my purpose? And most of us have more or less but incomplete answer. yes we know, all of this approa...
stackexchange/codereview
Let's say I have a bunch of vector types (a la XNA) and some of them have static member Cross: type Vector3 = ... static member Cross (a : Vector3, b : Vector3) = new Vector3(...) I can define the cross function and it compiles: let inline cross (x : ^T) (y : ^T) = (^T : (static member Cross : (^T * ^T) -> ^T) ((x...
stackexchange/codereview
I'd like to add extra spacing on the sides and between tabs on the tab widget, but padding and margins dont seem to make any difference. I also played with setting the divider, tab strip left and right drawables, which didn't seem to make any difference either. Trying to make the tabs look like this:
stackexchange/codereview
This is with regard to data sent over a socket to a C application residing on a remote POS system. Binary data is sent from a php application, in the C app packet structure there is 64bytes stored for a string e.g. a product name. Now when I send the product name across network through php sockets, I use pack to conver...
stackexchange/codereview
i have a web application which which proccesses some request on some data that client selects, when the client selects more than 20 objects and clicks on proceed the client recieves this error, because the server takes a long time to process, however if the records are less and hence a timely response is recieved, no s...
stackexchange/codereview
Is there a nice filter I can use in Django template to allow me to turn a datetime into time period ago from now. e.g. {{ mydate | date_ago }} that would display things like 12 seconds ago 2 hours ago yesterday 4 days ago 2 weeks ago 12 jan 2001 where by after some distance it just displays the normal date.
stackexchange/codereview
I've come across a situation where I know a code I've created an MFC app in Visual Studio 2008 that generates a Tray Icon and some notifications. I've read I can use a different NOTIFYICONDATA structure for Windows Vista than for Windows XP by setting the cbSize property of the structure to initialize it. I've also rea...
stackexchange/codereview
Is there a way to check whether the user has enabled speech recognition (spoken commands) in System Preferences? (Mac OS X). If the user has it enabled, I would like to support additional speech commands. Unfortunately there isn't any method in NSSpeechRecognizer to check this and I can't seem to find any Carbon func...
stackexchange/codereview
In this tutorial http://www.codeproject.com/KB/IP/ThinVnc.aspx it says: ThinVNC is not a traditional VNC, as it does not implement the AT&T RFB protocol. Instead, it is built on top of today's web standards: AJAX, JSON and HTML5. But when looking at the code, it seems like Delphi to me so can someone explains...
stackexchange/codereview
char str[256]="cp /home/anup/unix_arch/w1.c /home/anup/Desktop/work.c"; sprintf(buf, "/bin/sh -c %s", str); system(buf); gives a error to see the cp --help and I'm unable to figure it out! If i do system("vim wave.c"), it displays a vim distibutors introductory page If i do system("rm wave.c"), it says to see...
stackexchange/codereview
I have something proble with my code.. I still didn;t understand how to execute function using Jquery Confirm Dialog..... here's my code <table align="left" id="tableQuestions" width="600"> <tr id="rowQuestion"> <td class="tblCell">Questions<br> <input type="text" name="question" s...
stackexchange/codereview
I have this page at http://kornar.co.uk/example.html But it doesnt render HTML. I know its there because when I check view source the HTML code is there, on my localhost it works perfectly, thanks for your help!!
stackexchange/codereview
For the last project of the semester, the goal is to run searches of a particular phrase on a lyric String inside an Song object, then rank the results based on the length of the substring match. The lyrics were read from a file and match the line breaks in that file. For example, searching for "She loves you" would r...
stackexchange/codereview
I expect both tests below (written for NUnit) to pass, but the Decimal version fails with, "System.FormatException: Format specifier was invalid", as does a Double version. I cannot figure out why. Can someone please shed light? Thanks; Duncan [Test] public void Integer_Format_Hex() { //Assume Int32 myValue ...
stackexchange/codereview
I am wondering how to do inside executional thread to be thread safe, let me explain it by example: lets say that I want to have pipeline of commands which should be executed continuously one by one, but in my thread I can't wait for them. Thread is normally slept, is awaeken if some command is enqueued, then it execut...
stackexchange/codereview
How expose a enum that is not in any operation? Can i do this in wcf? Thanks in advance.
stackexchange/codereview
I'm very new to drupal (started yesterday), I have created a content type called question and have added some questions. I want to create a question view page. When I go to add view -> node -> next. I select a page view but here is where I get confused. I'm not sure how/where to choose that it's questions I want to lis...
stackexchange/codereview
i have an asp.net mvc view that with the help of jquery ajax updates a div. Should i use a controller that return a PartialView or json? And the performances?
stackexchange/codereview
My application has 3 tab bar items, each mapped to a separate view controller. My problem is the first controller is a UINavigation controller, and it drills-down about 3 levels deep. I don't have any problems with the navigation, but when I click on a different tab bar item and then when I return to the first tab bar ...
stackexchange/codereview
My problem is that I want to create xml tree and get a simple string object (or even char*). And I can't save xml to file. So in the input I have xmlDocPtr with complete xml tree and want to get string containing xml but without using files. Thx for attention.
stackexchange/codereview
I have a query that looks like the following SELECT t1.Name, t2.ID, t2.name FROM table1 t1 INNER JOIN table2 t2 ON t1.ID = t2.ID Which gives me a massive list of values. But what I really want is only distinct values for t1.Name but with the related values for t2.ID and t2.name. The only way I can thin...
stackexchange/codereview
Hi I'm very new to javascript and Jquery. I found the Jcarousel plugin recently and I've tried several of the examples on sorgalla, but can't seem to figure it out. What i want is to populate the carousel with images(links) from a database, the selection of images i want to display are based on 2 date parameters i get ...
stackexchange/codereview
I am posting the model from the strongly partial view to the controller like this: [AcceptVerbs(HttpVerbs.Post)] [Authorize] public string ProcessRequest(Request request) { . . . However, the model arrives to the action but it's incomplete, i.e. complex properties of the request are null. I am sending the complete mod...
stackexchange/codereview
Using the Facebook PHP SDK, I'm getting the following error when I try to post a status update: Fatal error: Uncaught OAuthException: (#200) The user hasn't authorized the application to perform this action These are the steps I've taken: Get code: https://graph.facebook.com/oauth/authorize?client_id=FB_APP_ID&r...
stackexchange/codereview
In my android game I want to have a rhythm Mediaplayer object and a lead Mediaplayer object playing in sync. However at the moment the rhythm is a slight bit behind the playback of the lead Mediaplayer object. Is there a way I can make it so that both are started at the same time, for instance using Runnables etc?! It'...
stackexchange/codereview
i have an ms chart control. i would like to be able to scale the chart automatically around my dataset. for example, if my minimum data point is 100, i do not want it to start from 0, i want the y value to start maybe from 10 or something like that is there a way to set automatic chart scaling? how would i get the ma...
stackexchange/codereview
I am creating a PHP function that will take some values, one of which is an array, that I need to use in a MySQL query. I am creating the array as follows: $newsArray = createArticleArray(array(2,20,3),5); Then the function looks something like this (cut down for readability) function createArticleArray($sectionArr...
stackexchange/codereview
More specificaly, if I can pass parameters as well this would be ideal. This is for an internal project where a hyperlink will open an exe with parameters
stackexchange/codereview
I have a Swig-wrapped C library that I use in Ruby. I have no control over Swig or any interface definitions since that is done by the vendor of the interface. No I find that there's a function in the library that has a char ** output parameter defined (among others). Example function definition: void get_information(c...
stackexchange/codereview
Scenario: I have a C# application that uses Click-Once to install(puts an icon on the desktop that points to the application) itself on computers on the network. I have recently been integrating NHibernate into the program and everything runs smooth on my box. Its ready for internal testing and I need to put it on our ...
stackexchange/codereview
I am creating a new Silverlight app using RIA. I am using a Business layer and a data access layer, it looks something like this... Silverlight->ASP.Net/RIA->C# BLL class library->C# DAL class library My entity framework model is accessible in all layers. I'm not sure where to create the DataContext for my Entity Fram...
stackexchange/codereview
I know VERY little about UNIX commands, so I´ll do my best to explain what I want in plain English. Though my mac´s Terminal, I am connected to an ftp account by: ftp example.com When I do: get file.php I download it to the users directory. So now two related question: 1) How can I choose the download directory for t...
stackexchange/codereview
I'd like to display a picture on my form using PyQt4. Here is my code: import sys from PyQt4 import QtGui, QtCore class myWindow(QtGui.QWidget): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) #The setGeometry method is used to position the control. #Order: X, Y posit...
stackexchange/codereview
I need some help speeding up writing to serial. I found a few similar questions to this but nothing that dealt with the Processing language or Java so I'm hoping someone can help me with this issue I have. edit As John points out below, it appears serial just isn't fast enough to send this much data at the speed I wan...
stackexchange/codereview
I have a form that I have used before that is just a regular form. You fill out the form and hit submit and it returns a Thank You page. So it goes from form.html to mailPage.php and then Thankyou.html. I have used this same form twice now and it normally works fine but for some reason on this new site it is not sendin...
stackexchange/codereview
We are currently converting our webapp to UTF-8 from ISO-8859-1. And everything works great but requesting get/post variables from other sites (Signup forms). Some of this sites that post to our site have ISO-8859-1 encoding and som have UTF-8. The problem is that special characters gets URLencoded differently dependi...
stackexchange/codereview
I'm doing an ajax request using $.get and as result I could get a simple string or JSON, how to know if the result is JSON (object) or not ? EDIT: can I return a string and somehow transform it into object/JSON ?
stackexchange/codereview
I want to create a news application for my website. My question is how should i create drag-able panels/canvas inside another panel/canvas. What i exactly intend to do can be seen on netvibes.com . The website has different panels of every news group, and this panel could be moved from one place to other, but in a we...
stackexchange/codereview
I'm trying to do some Moq testing against Entity Framework 4. Is there a simple way to do it, like changing the connection type on the entities? Has anyone out there done this? Thanks
stackexchange/codereview
CREATE TABLE [dbo].[Project]( [ProjectId] [int] NOT NULL, [ProjectName] [nvarchar](255) , [ParentProjectId] [int] null, [ReleaseId] [int] ) insert into Project values (1, 'Project 1', null, 1) insert into Project values (2, 'Project 2', null, 1) insert into Project values (3, 'project 3', 1, 1) insert...
stackexchange/codereview
I am running into size limitations of temp folder of an Asp.Net MVC app that's deployed on Azure. Specifically, when the users upload the file that's large, say 100mb or more as the file is uploaded it exhausts the temp folder and soon the app disconnects. Is there a way of specifying a custom temp folder for an Asp.Ne...
stackexchange/codereview
Using Spring 3.0, I wrote an interface to hide from the application which template engine I was using for sending mail. The interface is public interface MailSender { public void send(String[] to, String from, String subject, String template, Map<Object, Object> model, boolean isHtml, Map<String, Re...
stackexchange/codereview
Here's an example of my object: var fruit = { apple: { } } var apple = this.rel; Will someone please tell me why this works: fruit[apple] and this doesn't? fruit.apple
stackexchange/codereview
I need to choose an option from dropbox in one site with NSUrlConnection and then get the source code of the page, how do I actually choose the option with code or is it possible?
stackexchange/codereview
We're using GWT 2.03 along with SmartGWT 2.2. I'm trying to match a regex like below in client side code. Pattern pattern = Pattern.compile("\\\"(/\d+){4}\\\""); String testString1 = "[ \"/2/4/5/6/8\", \"/2/4/5/6\"]"; String testString2 = "[ ]"; Matcher matcher = pattern.matcher(testString1); boolean result = f...
stackexchange/codereview
I am experimenting with Mongodb and NoRM in C#. From what I have read the ObjectId that uniquely identifies a document in Mongodb is a sort of "special" Guid (in the sense that is unique) but has some significant parts in it that permit a more easy sorting and indexing (timestamp,machine hash,processId and increment in...
stackexchange/codereview
In my application i have some view controllers and one objective c class ,how can i access the UI elemets of one view controller to change their values in objective class . To explain further , i have a UILable *lab in the firstviewcontroller and just imported #import "firstViewController.h" in my customclass.m file...
stackexchange/codereview
I am trying to compare two modules/classes/method and to find out if the class/method has have changed. We allow users to change classes/methods, and after processing, we make those changes persistent, without overwriting the older classes/methods. However, before we commit the new classes, we need to establish if the...
stackexchange/codereview
I've got a file called header.asp that is included in almost all the pages of my site using a SSI: <!-- #include file="header.asp" --> In header.asp I want to output some html depending on which file included it. Assume that the file being request is the file that includes header.asp. In PHP, I can check the $_SERVER...
stackexchange/codereview
How many characters can i store in 4kb when the characters are in utf-8 encoding ?
stackexchange/codereview
When debugging background threads using Visual Studio 2010, is there any nice way to let other threads run for a few hundred milliseconds or so without advancing a thread that's sitting at a breakpoint? Equivalent in effect to inserting "Threading.Thread.Sleep(100)" just before the current line, setting next statement...
stackexchange/codereview
I would like to create an email signature that requires a certain font to be present. I know that a large percentage of my email recipients have the proper font but for those that do not I do not want certain text displayed. How do I do this conditional CSS based on available fonts? Thanks.
stackexchange/codereview
I'm currently learning how to unit test my methods in a silverlight RIA project. I have some methods that the user is authorized. I though I could solve this problem by creating a mock authorizationservice. And then have the user be authorized in that way, but it seems that I a nullreference from the code because it ca...
stackexchange/codereview
We want to move to Qt for our widget library. Currently we're using WX and it's compatible with chm. I can't find anything to suggest that Qt is the same. We've invested a bunch in CHM tools for the non-technical people to write help files. Is there a way to view chm with Qt? If not, is there a reasonably easy p...
stackexchange/codereview
Possible Duplicates: reordering array attributes then save back to XML in php php loop not working as expected I have this XML: <picture id="2"> <title>B</title> </picture> <picture id="3"> <title>C</title> </picture> <picture id="0"> <title>A</title> </picture> Trying to achieve this XML: ...
stackexchange/codereview
I am including 'acts_as_rateable' gem in my Gemfile like this gem 'acts_as_rateable', :git => 'git://github.com/azabaj/acts_as_rateable.git' and then when I do bundle install it gives me this error message! Could not find gem 'acts_as_rateable (>= 0, runtime)' in git://github.com/azabaj/acts_as_rateable.git (at ...
stackexchange/codereview
I'm using the code below to insert content into a page. I need to insert some variables in the text to generate some dynamic values and am unsure how to do this. Can someone tell me what I'd need to change? Here's a slimmed down example of how I'm storing the data in my JS: var fruit = { 'apples': { 'golden...
stackexchange/codereview
I recently installed the Windows Phone 7 SDK with an existing Visual Studio Ultimate installation. Now when I attempt to open any XAML file, designer or just XAML, I get the error: This is for any XAML file; not just WP7. This happens with a brand new project; not just with my existing ones, so I am pretty sure it isn...
stackexchange/codereview
I'm looking for a way to influence Math.random(). I have this function to generate a number from min to max: var rand = function(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } Is there a way to make it more likely to get a low and high number than a number in the middle? For example; rand(...
stackexchange/codereview
I want to write a simple application to help me understand workflow 4.0 a bit. I have a sequence activity with a ReceiveAndSendRepply activity to communicate with my silverlight application. I want to create a List of Type Students and in my silverlight application, display in the datagrid. At the moment, I have a sim...
stackexchange/codereview
Part of my code will output HTML code to a file. I have a header that will be stamped in the beginning of all files. I would like to declare it as: NSString *myHeader = @" <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n \n <html xmlns=\...
stackexchange/codereview
My team uses a special type of file for configuration, and I would like to auto-indent (block indent) the file using emacs. I would like to increase the indentation by a tab size for an opening parenthesis - { or [, and decrease by a tab size for a closing parenthesis - } or ] . For example, files = { file1 = fi...
stackexchange/codereview
I have DisplayObject where width=600px, height=600px, x=0, y=0. (X and Y begin in the left upper corner.) I know only 4 points' coordinates. For example, these coordinates are (100,100) (100,-100) (300,500) (300,-500.) I'd like to transform this into DisplayObject where the four coordinates are: (100,100) (100,-100) (3...
stackexchange/codereview
Hey guys, the question pretty much asks itself... however, for more clarity: I have an element called "chuckPalahniuk" and it has classes named "choke", "fightclub" and "haunted". How could I get it so when I click on the "chuckPalahniuk" element, it removes "haunted" first, then "fightclub" on the second click and "ch...
stackexchange/codereview
Can anyone suggest whether "GWT" or "Vaadin" are a better choice to design an application? Also: what are the differences in coding style?
stackexchange/codereview