instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a .NET application, which I want to port to OSX. Up to now I used a DirectShow DLL for WebCam handling. Can I use an Objective-C DLL for Mono? How? I'm a newbie on Mac. Is there an existing (WebCam handling) solution for this? Is there a better solution?
stackexchange/codereview
In the following sections of code I am receiving errors that I am not sure why I am getting them despite using all of my resources to research them. This is SMLNJ coding. compComm (DeallocComm(var, exp), env, ip, codes, contIP)= let val loc = lookupEnv var env; val codes1 = emitByte(LDC, ip, codes); val codes2 = ...
stackexchange/codereview
I'm evaluating TurboPower LockBox library for digital signing. I've created a 1024 bit RSA key and tried to sign a 260 bytes of text with it. After changing one or two characters in the text the signature is still valid for it. Is that ok? Or maybe it's a problem with this library. Changing even one character has a cru...
stackexchange/codereview
When trying to obtain an array of objects from an IEnumerable collection of objects (cast differently than the array I want), I know I can first cast the source collection to the proper type, and then obtain an array from that, but the method ToArray<T>() gives me the impression that it can handle both of those operati...
stackexchange/codereview
With this toolbox I was performing calibration of my camera. However the toolbox outputs results in matrix form, and being a noob I don't really understand mathy stuff. The matrix is in the following form. Where R is a rotation matrix, T is a translation vector. And these are the results I got from the toolbox. It...
stackexchange/codereview
I'm building an LBS app that will integrate facebook places as part of its functunality and I'm trying to find out how to bring my set of POIs to facebook so that I can have them associated with my db of POIs... any clues how to do this thru the Graph API?
stackexchange/codereview
I have a widget which is injecting a popup into different web sites, as an absolute positioned div. I want the popup to look the same on all. however, the paragraphs and other html elements inside the div are effected by the hosting site CSS. Is there a way to reset all the properties of elements in the div in an effi...
stackexchange/codereview
How can I get following information about a SharePoint document. Created By Last modified by I am using alldocs table of sharepoint content database but can't find it very helpful.
stackexchange/codereview
I am having trouble fetching results from Core Data that are sorted by date. I have a DB table that contains football matches. Each match has a homeTeam, awayTeam and kickoffTime. The kickoffTime is an NSDate that stores the date and time the match will start. I want to display the results of a query in a TableView di...
stackexchange/codereview
I'm using the Python gdata package to interface with YouTube. I want it to use the latest protocol version. How do I do that?
stackexchange/codereview
Hi I'm trying to find out about what the differences are in operating systems of mobile devices compared to those in desktop machines. Specifically things like memory management, scheduling etc. I'm aware that mobile operating systems must need to do several other things like power management and worry about the smalle...
stackexchange/codereview
I'm having issues with the following situation: leeftijd:function(){ var testvar = "untouched"; var d = $('#gebdatumdd').val(), m = $('#gebdatummm').val(), y = $('#gebdatumjjjj').val(); x = "none!"; $.get("assets/...
stackexchange/codereview
I'm new to NHibernate and am having difficulties setting it up for my current website. This website will run on multiple webservers with one database server, and this leaves me facing some concurrency issues. The website will have an estimated 50.000 users or so registered, and each user will have a profile page. On th...
stackexchange/codereview
i have a strange problem with selenium. For example i want to login into an wordpress account: browser.Type("user_login", "admin"); browser.Type("user_pass", "mypass"); browser.Click("wp-submit"); browser.WaitForPageToLoad("30000"); in ie it works, but in chrome and firefox only sometimes? the user_login isn't always ...
stackexchange/codereview
I'm trying to migrate an MVC2 project to MVC3 - i've followed the instructions within the release notes and the app will compile, but the project depends on a few helpers located inside the previous MVCFutures and tosses: Compiler Error Message: CS1061: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'Sub...
stackexchange/codereview
Possible Duplicate: How can I tell whether an element matches a selector? I've been using jQuery for this javascript framework I've been working on and I was wondering if there is a way of checking if a given selector matches a given jQuery object. Something like: var divObj = $(document.createElement('div')); var r...
stackexchange/codereview
When working with asynchronous XHR-requests in Javascript, I often wonder, if there are conditions, for when the onReadyStateChange-callback can be called by the browser. If there were none, some problems would be caused, as shown by the following example: var state = -1; doAsyncXhrReqeust("foo.bar", function() { st...
stackexchange/codereview
I understand that to share variables between templates you have to use hook preprocess. I think I've got the hook preprocess bit ok. I've got this in my theme's template php file. function rootcandy_preprocess_views_view_fields__default(&$vars) { $vars ['brian'] = 'hello from brian'; In views-view-fields--default.tpl....
stackexchange/codereview
I want to know the difference between setInterval() (or) setTimeout() in DOM and polling in ajax. What is the main difference? If both are same, why the identified by two different names? What is mean by polling in AJAX? Any links or resource about this question would be more appreciative at the moment!!!
stackexchange/codereview
var postsidebar = from post in postrepository.GetAllPosts() join pstmt in postrepository.GetAllPostMetas() on post.int_PostId equals pstmt.int_PostId where (post.int_PostTypeId == 4 && post.int_PostStatusId == 2 && post.int_OrganizationId == layoutrep.GetSidebarDetailById(SidebarDetailsId)...
stackexchange/codereview
I have this in my code: double** desc = new double* [size_out]; for (int i = 0; i < size_out; i++) desc[i] = new double [size_in]; How do I delete this desc? Should I do: delete [] desc; or for (int i=0; i<size_out; i++) delete [] desc[i]; delete [] desc; or for (int i=0; i<size_out; i++) delete []...
stackexchange/codereview
my target to display output is directfb window. i need to develop an qt application. i found developing application in qtcreator is much easier but problem is output will be seen on X11 window. can any one tell me is there way to get it executed on directfb window. i have no search results for this in google. plz help ...
stackexchange/codereview
If i tipe heroku in console, i become this: ~onemore~>heroku /home/koli/.rvm/gems/ruby-1.9.2-p0@onemore/gems/heroku-1.13.1/lib/heroku/commands/pgbackups.rb:9:in `': uninitialized constant Heroku::Command::Pgbackups::Help (NameError) from /home/koli/.rvm/gems/ruby-1.9.2-p0@onemore/gems/heroku-1.13.1/lib/heroku/comman...
stackexchange/codereview
I am in doubt whether I should spend time for installing, studying and using "Internals Viewer for SQL Server" What are the most helpful practical uses to convince me to use it for SQL Server perforamnce tuning, troubleshooting or database design?
stackexchange/codereview
I want to log the stack trace from time to time in my application folder. writing to the log the result of debug_backtrace() , will cause to: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 11639862 bytes) in /var/www/trunk/api.subdomain.com/libraries/MY_Log.php on line 13 because of t...
stackexchange/codereview
I've used TEXT_IO package for creating files in the local(client) machine. From the documentation http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm#BABBBABB I see that it is "available for both client-side and server-side PL/SQL". What does this mean?. Does it mean I can use it to create file in...
stackexchange/codereview
I'm implementing an Auto-Twitter feature into my website that allows users to Auto-Post content to twitter, similar to YouTube's "AutoShare" feature. This means I'll need to store Twitter account information into a database, which is very sensitive and serious data. I wish to provide the maximum security for my users, ...
stackexchange/codereview
I am new to the windows phone 7 development world. I am developing an application in window phone 7. In window mobile application (smart device application) we can browse the content of the mobile device by selecting the tools -> Device Emulator Manager -> slecting the emulator & then after clicking the cradle we can b...
stackexchange/codereview
I have a JQuery UI dialog that auto opens when a user comes to my site so we can show an "Under Construction" dialog modally. Here is the code for the dialog: var $dialog = $('#dialog'); if ($.cookie("MySitePreviewCookie") != "firstView") $(function () { $.cookie("MySitePreviewCookie", "firstView", { expires: 1...
stackexchange/codereview
I've come across this when describing the Zookeeper configuration for HBase, and I'm unfamiliar with the term. Does the 'N' have anything to do with the number of nodes in my HBase cluster? Or the number of nodes I should use in my Zookeeper cluster?
stackexchange/codereview
I am new to shell scripting and programming. I am looking for a guide on how I can parse specific information from a plain text file with thousands of lines. Specifically I need to parse an email address from each line. The line looks something like this: "1272574001.H742765P10724.host.domain.com,S=4155:Return-path: `<...
stackexchange/codereview
I'm developing an application with Google App Engine and stumbled across the following scenario, which can perhaps be described as "MVP-lite". When modeling many-to-many relationships, the standard property to use is the ListProperty. Most likely, your list is comprised of the foreign keys of another model. However, ...
stackexchange/codereview
In ADO.NET you can add parameters to a command object to securely add user input to a SQL query. What is the equivalent for the other predicates common to a SQL query? I am writing a program that is essentially a very limited O-R mapper and SQL generator (it's focused heavily around a database with meta-information an...
stackexchange/codereview
I can't figure out how to construct a regex for the example values: 123,456,789 -12,34 1234 -8 Could you help me?
stackexchange/codereview
I'm trying to build a sort of form builder that'll allow me to define, display and store 'tests' in a flexible way. I.e. Allow the user, through the web interface, to create a new type of test/form ("Grouping") and define a set of fields that will be displayed on the form (any type of field, including date, text, radio...
stackexchange/codereview
I have been using namespaces to package my JavaScript code. In some of the examples that I have read, all caps have been used for the global name. For example: MYAPPLICATIONNAME.module.function Is using all capitals the best practice since it seperates the vars in the global namespace, or is it just more confusing?
stackexchange/codereview
I have like 1.0, 1.1, 1.2 branches and i want every commit that goesw into 1.0 to go automatically to 1.1 and 1.2 and every commit to 1.1 to go automatically get committed to 1.2 is it possible to make all this in a single transaction and automatically? can someone tell me how please? (can it be with example please?)
stackexchange/codereview
I'm using this two plug-ins jquery.validate and jquery.form separately, but I would like to use them together. I have a simple user form with a few fields to validate. The script with the plug-ins: $(function() { $("#my_form").validate({ submitHandler: function(form) { var my_options = { target: ...
stackexchange/codereview
i'm struggling with LLBLGEN and i guess ORM's in general. i have created an entity, lets use a library example to explain: i want to display a book object and also return a list of users who have loaned the book. so i need to return the book object which contains a list of users. DTO Book:: int bookId, string bookName ...
stackexchange/codereview
How would I go about converting an image in YUV colorspace to a JPEG image? I have a raw image data saved in a char* variable: char* frame = (char*)camera->getFrame(); // YUV colorspace image data I need to convert this to a JPEG image data instead. I don't want to save it to disk because I will be sending it in a str...
stackexchange/codereview
I am developing UI for a Wpf application. I have designs build by designer in Adobe Photoshop CS3. I am going through them and achieving the same in my project using WPF. In PhotoShop, while setting Drop Shadow, there is option to select Angle and there is a CheckBox for Use Global Light. I got some reference for this...
stackexchange/codereview
Where are they stored - is it in the server or in the browser?
stackexchange/codereview
I have a problem with Mockito. Is it possible to do such a thing: ClassX x = mock(ClassX.class) when(x.methodB()).thenReturn("toto"); String result = x.methodA(); I'm working with Mockito 1.7. I saw there was a "spy" system but they say it's not recommended to use it (why?) on the item we test... I tried that spy func...
stackexchange/codereview
Given two circles: C1 at (x1, y1) with radius1 C2 at (x2, y2) with radius2 How do you calculate the area of their intersection? All standard math functions (sin, cos, etc.) are available, of course.
stackexchange/codereview
I'm developing a fairly large application. It's basically an eCommerce app- with other "features" like Forums etc... The "back office" app will be called "Wokingham" What I currently have is something like this: (we have a naming convention bases on names of trees) MyCompany.Honeysuckle Project that contains the Model ...
stackexchange/codereview
I have a Telerik Menu in usercontrol that located in aspx page, I need to generate menu based on logged in user. So I need to bind datasource to the menu. My web site gonna have more than 1000 users per day. For preventing round trip requests, I generate the menu from session. I use InProc session for that purpose and...
stackexchange/codereview
I have creating the blindSearch method so as to write the convexHull Algorithm. but it doesnt work right, and doesnt remove the internal points. would you please help me? public Point pnt[] = new Point[1000000]; public Point temp[] = new Point[1000000]; private int count = 0; private int pointCount = 0; Point point1; P...
stackexchange/codereview
&(*_shmItr) == NULL this is quite noob question but, I m newbie to C++. in GCC 3.1.2 when you check _shmItr == NULL is perfectly fine, but as GCC 4.2.2 this is an error. I did google about the error. they says dereferencing and referencing again will solve the problem. and It did. I was happy. But as I m learning more...
stackexchange/codereview
I need to manage a Hyperlink object in GWT. What i need is : 1 - add it into a span (like InlineLabel) I tried Hyperlink affitta_3_span_1=new Hyperlink(result.get(i)[0], "");, but it create somethings like this : <div class="affitta_3_span_1"> <a href="#">t1</a> </div> in fact i need this : <span class="affitta_3_...
stackexchange/codereview
RoutedCommand and RoutedUICommand have a lot going for them. There's baked-in support for text and for keyboard gestures. You can bind a collection of RoutedUICommands to a Menu's ItemsSource and it will automatically create and bind menu items for you. Some commands (Cut, Copy, Paste) are automatically supported by ou...
stackexchange/codereview
I'm using web based database for which I need to add spreadsheet capabilities to its front end. I was thinking that I could use Google Docs Spreadsheets. Their Google App Script seems to have the functionally that I need. In particular I can use the URLFetch service combined with onEdit events to keep the spreadshee...
stackexchange/codereview
How do I properly fetch values from array in javascript: <html> <head> <script type="text/javascript"> function proc() { var cost = document.yoh.coz.value; var qtybuy = document.yoh.qbuys.value; var st = cost * qtybuy; var tbox = document.yoh.subtotal...
stackexchange/codereview
I have to generate PDF reports with many (defined at runtime) columns. These reports may span multiple pages horizontally when user selects many fields to show. I'm using DynamicJasper and could successfully generate dynamic reports when all the columns fit in one page. When they don't, report is cropped and only a few...
stackexchange/codereview
I've tried MailCore - have a problem with "library not linked" "reason - image not found"/ adding new copy file build phaze doesn't solve it; tried to use pantomime but have over 1000 errors with #include <Pantomime/Somefile.h> (i changed all this #include <Pantomime/Somefile.h> for #import "Somefile.h") its becouse a ...
stackexchange/codereview
I have a page that is rendered through xulrunner service. There is a form and a button under the form. For accessibility requirement, I forced the focus on the text field within the form when the user navigates to this page. However, sometimes JAWS always reads the Post Comment button label. Sometimes, JAWS reads th...
stackexchange/codereview
I've set stuff in a DataGridTemplateColumn.CellEditing DataTemplate. I want that when the cell editing loads and shows the template, keyboard-focus should be given to a certain control in the template. Consider this example, when you go edit mode, the textbox is not keyboard-focused: <Window x:Class="MainWindow" ...
stackexchange/codereview
I have two vectors defining two separate points in a three-dimensional space. One is static at the origin (0.0f, 0.0f, 0.0f) and the other one will be moving slowly. From this data i need to get a (three-dimensional) direction vector that describes the direction from the moving points current position to the origin. T...
stackexchange/codereview
I have a Maven profile for a Java project that is activated when doing a final build on a Hudson CI server. Currently this profile's only customization is to the Maven compiler plugin as follows: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>mav...
stackexchange/codereview
I'm trying to get this weekend in php. I get the current date by code : $start_date = date("Y-m-d H:i:s", time()); How I can get the current weekend depend on the curent date? Thank you!
stackexchange/codereview
I have to implement an iOS application, which connects to a web server and receives events from it, i.e. server long polling. I plan to use the AsyncSocket library. My idea is to open a socket on the iPhone, send it to the server the first time I connect to it, and then listen infinitely to the socket and update the G...
stackexchange/codereview
When we build a Maven project without doing mvn clean, we sometimes get "voodoo errors" such as NoSuchMethodError. I believe these are caused by moving/renaming files. I don't want to use the clean option in the CI, because it makes the build process take much longer. Is there another alternative?
stackexchange/codereview
Hi I have created Expandible list view using BaseExpandableListAdapter. If i scroll the list then I found the default cache color as black but my background colour of list is white. I want to set cachecolour as white. How to set cachecolorhint to a class that extends BaseExpandableListAdapter in android Thanks Sunil K...
stackexchange/codereview
I have logbook documents with a list of logs embedded: { type:'logbook', name:'my book', userRef:2, cdate: ...., logs: [ { color: 'red', weight: 200, cdate: ..., foo: 'bar' }, { color: 'blue', weight: 100, cda...
stackexchange/codereview
I have a view that should be setting an initial value for a form field based on a GET value. I want to test this. I'm currently using Django's test client but I am open to looking at other tools. Edit Sorry, I did not mention that I am well aware of the assertContains method but I was hoping there was a better way othe...
stackexchange/codereview
How can I read a simple Excel worksheet in a C# app? I'd like to be able to iterate each row and have a handle on each of the columns.
stackexchange/codereview
I have to program a digital synth for a school graduation project, and while I know most of the theory regarding synthesizers in general, I must confess to be a programming novice. I have to do it in C, as stated in the title. The simplest way to do it seems to be with wavetable oscillators, also so I can use a ramp wa...
stackexchange/codereview
I am developing an application that will provide instructions to making a product. The text will have bullets and/or numbered steps as well regular text paragraphs. I may have headings for various sections. The text will be placed into a scrollable TexView. I was originally planning on loading the text from a resour...
stackexchange/codereview
I wrote code to send email. It works fine but my goal is: When someone sent to non-existing email address, I want to log the result as 'false' or 'failure' etc (and when email address is valid, just say 'success') I've tried 2 things with the code below. provided non-email string 'foo@!' provided non-existing email a...
stackexchange/codereview
I want to run the following in a c# loop but I just don't know how to pass a multi value for a parameter with a comma. The actual cmdlet would be below and does work in exchange powershell: Set-CalendarProcessing –ResourceDelegates jonDoe@test.com,johnnydoe@test.com -identity testroom@test.com –AutomateProcessing AutoU...
stackexchange/codereview
When running sp_who2, it appears one of my SQL commands is blocking but waiting on a process that is "Sleeping" and "Awaiting Command". This doesn't make any sense. Any ideas what might be causing this? I know the DELETE is running inside a transaction that previously inserted a lot of rows into the table, could that ...
stackexchange/codereview
In my application there is a "loader" executable (let's call it "Loader.exe"). It searches a specific folder for DLL files and loads them one-by-one. Then the user can choose which plugin to run (plugins have windows and business logic). This is a kind of a plugin architecture I have currently implemented. The problem ...
stackexchange/codereview
In Android can the OnLongClickListener be used with EditTexts and TextViews or just Buttons?
stackexchange/codereview
I am writing a windows mobile application on C# and .NET CF that uses a large amount of data which is stored currently in RAM. Due to the virtual memory limitation in windows CE, I need to reduce the RAM usage. I was wondering if using a SQL CE database and storing the data in the database will reduce the RAM usage. So...
stackexchange/codereview
I build my own Richlist-Suggest-Popup for the URLBar along the lines of Mozilla. When reading their Source I don't understand how they simply do a setAttribute('image', image) as a richlistitem actually doesn't support this attribute. As far as I know the richlistitem DOM is supposed to look the following: richlistitem...
stackexchange/codereview
Here is an overly simplified version of what I am trying to do: #define LOGDIRECTORY C:\\logs\\ system("mkdir LOGDIRECTORY"); However the preprocessor, instead of swapping out the defined name is not. Instead the system command actually thinks LOGDIRECTORY is the name, and thus is shooting me errors when starting the ...
stackexchange/codereview
I'm populating an set of <article> in HTML with either an images or a flash movie depending on the attributes set in an XML like so, <article image="" flash="flash/1.swf"></article>// this article has flash only <article image="image/1.jpg" flash=""></article>// this article has image only There a "n" number of "artic...
stackexchange/codereview
I have a view with a filter by country. Country is an optional CCK text field with drop-down list selection from a predefined list. When I expose the field as an optional view search filter, I can select a country on the filter form just fine, but how can I handle no selection? I want the user to be able to "un-select"...
stackexchange/codereview
it's a secret message on a postcard. Please don't post the result, it would be nice if you could give a hint on how to find out what it is written in instead:
stackexchange/codereview
Can someone please tell me how to find out the pathname of the KornShell (ksh) on my machine and then change the interpreter line in all shell scripts (.sh) in the current directory that show a different pathname for ksh?
stackexchange/codereview
the app crash if enable text =cursor.getString(cursor.getColumnIndexOrThrow(KEY_BODY)); public String getPhone(long rowId){ SQLiteDatabase cb = mDbHelper.getReadableDatabase(); String text = null ; Cursor cursor=cb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, KEY_BOD...
stackexchange/codereview
I am new to templates. I try to define specialized template for function template, but my compiler returns error. It is simple max function, written just to practice templates; here's the code: template <typename TYP1, typename TYP2> TYP1 maximum(TYP1& param1, TYP2& param2) { return (param1 > param2 ? param1 : para...
stackexchange/codereview
Didn't find how to do that. What I found was more or less on the lines of this (http://blog.stevex.net/string-formatting-in-csharp/): There really isn’t any formatting within a string, beyond it’s alignment. Alignment works for any argument being printed in a String.Format call. Sample Generates String.Format(“->{1,10...
stackexchange/codereview
When a User (auth.user) is deleted, I'd like to prevent the cascading delete from clearing certain tables. How can I prevent Django's User model from executing the cascading delete?
stackexchange/codereview
2/1/2009 5:04:15 AM I get it from MySQL database and want to feed it in table from other where i get it. But it not worked in C# but using gui it work. How i can feed this date to MySQL database using C# code.
stackexchange/codereview
my controllers in my ASP.NET MVC application are dependent on the IDataContext which is a wrapper around the NHibnerate session so that i can easily substitute this later. I use the Microsoft Unity IOC container to inject my dependencies within the constructors of my classes. I first tried created a FakeDataContext wi...
stackexchange/codereview
I've got a short-lived client process that talks to a server over SSL. The process is invoked frequently and only runs for a short time (typically for less than 1 second). This process is intended to be used as part of a shell script used to perform larger tasks and may be invoked pretty frequently. The SSL handshaki...
stackexchange/codereview
Going from .Net to PHP because I want to explore the possibilities of the language I'm struggling to find some way to autogenerate a DAL. In .Net I'd just use visual studio to generate a datamodel, but how can I do that with PHP and MySQL, so I won't have to hand-type in all the classes? My current PHP IDE is Aptana.
stackexchange/codereview
My colleagues and I are maintaining and developing a Perl web-project that works via mod_perl. Now we are going through a major legacy code refactoring in which we have implemented some sort of an MVC pattern. Among other things, my task is to make sure that all HTTP response headers are processed and sent back to th...
stackexchange/codereview
I am trying to make it so that the Main Menu in Drupal 7 is printed in HTML like this: <ul id="navigation"> <li><a href="#" >Home<span>Introduction</span></a></li> <li><a href="#" >Features<span>The feature tour</span></a></li> <li><a href="#" >Pricing<span>Our fee made clear</span></a></li> <li><a href...
stackexchange/codereview
We have a web application running on our web server, however in one particular page, a link appears to be broken. Nothing is apparent the code so the creator of the application has asked me to check the log files to see if that can give us any clues. Can someone point me in the right direction as to how I would check ...
stackexchange/codereview
I am creating a web browser in Java. In this browser I am using JEditorPane for Browser Window. I am using "setPage(String url)" method to display the page. The browser can display the page but there are some problems which are as mentioned:: The browser is not displaying the java script. It is not displaying the A...
stackexchange/codereview
I'm currently trying to fetch the top 10 songs from itunes api, but it's giving me the following error : DOMDocument::load(http://ax.itunes.apple.com/WebObjects/MZStore.woa/wpa/MRSS/topsongs/limit=10/rss.xml) [domdocument.load]: failed to open stream: Redirection limit reached, aborting now this is the basic code for ...
stackexchange/codereview
Just a simple question : when should I use the term 'class', and when should I use the term 'type' in Python ? is 'class' only for user-defined types, and 'type' for built-in types ? or now that everything is a type ... should I use always 'type' even for user-defined classes ? ... ?
stackexchange/codereview
I have this short and simple code below but ajaxSuccess didn't get called. Any idea why? $.ajax({ type: "GET", async: true, url: "/userprofile", data: { 'username': username }, error: function (xhr, status, error){ } }); $().ajaxSuccess(function(event, request, settings) { alert("OK"); });
stackexchange/codereview
While trying to clone an existing Subversion repository using git-svn using standard layout, I got a bunch of W: -empty_dir (and W: +empty_dir) warnings. The cloned git repository seems to be working, i.e. I can do usual git operations and dcommit to SVN repository. The real problem is that the initial clone and rebase...
stackexchange/codereview
I have a table column like this, where I want to align an image and a text. The text must be in the middle of the image. <td><img height='50px' src='blabla'>Hello</td> The above aligns the text at the bottom of the image. I have also tried adding vertical-align:middle to the td style property, without luck. I have als...
stackexchange/codereview
I am wondering: what is the best instruction in terms of performance between those 2 versions: Background = Application.Current.Resources[condition ? BackgroundName1 : BackgroundName2] as Brush; and: Background = condition ? Application.Current.Resources[BackgroundName1] as Brush : Application.Current.Resources[Backgr...
stackexchange/codereview
I have inserted the following meta tag into 600+ web pages: <meta property="fb:app_id" content="APP_ID" /> How can I query Facebook for a result set of all pages that are administered by this AppID?
stackexchange/codereview
I want to clone an object with using the ICloneable interface and for some reason I can't clone in my program. Here is my code: public class GeoInfo : ICloneable { private long InfoID; private string InfoName; private Location InfoLocation; private string Description; private InfoTypes InfoType; ...
stackexchange/codereview
I have a vertex shader that transforms vertices to create a fisheye affect. Is is possible to just use just the vertex shader and use fixed pipeline for the fragment portion. So basically i have an application that doesnt use shaders. I want to apply a fisheye affect using a vertex shader to transform all vertices, an...
stackexchange/codereview