instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
i am checking intersection of two objects.. and i have a class MBR with data meembers low[2] and high[2].. but i am not getiing intersect..c an you explain this function.. intersects(const MBR* h) const { for (int i = 0; i < 2; i++) { if (low_[i] > h->high_[i] || high_[i] < h->low_[i]) return FALSE; } retu...
stackexchange/codereview
How can I have changes in my vimrc take effect without restarting VIM?
stackexchange/codereview
I have a site where users can make posts. The users can be from all over the globe so when they post, I am storing the posted date as DateTime.UtcNow. I am using the JQuery time ago plug in to show the posted dat similar to stack overflow (1 min ago etc...) But I am not sure how to convert to date I have stored in the ...
stackexchange/codereview
Need some help. This javascript code should set the target of the form and submit it. doesn't work in safari 5.0.2 ... why??? <html> <body>You will be redirected to PayPal in a few seconds. <form action="https://www.paypal.com/webscr" id="paypal_standard_checkout" name="paypal_standard_checkout" method="POST"> ...
stackexchange/codereview
I have a project converted from .NET 1.1 to 3.5 being developed in 2008. If I open the project on Windows 7, it converts the size of everything to 120dpi sizes. If I then open it with 96 dpi it changes back. Is there any way for me to develop so it looks good in both, and not have Visual Studio change the sizes if op...
stackexchange/codereview
I have a Static Resource that provides for a list of genders to be used as a DataSource to the ComboBox. When the combo box renders, there is no text/content in any of the ComboBoxItem's. public class Gender { public string code; public string description; } public class LookupTables { public List<Gende...
stackexchange/codereview
I have created an iPhone application. I want to integrate SoundCloud API with my application. I have created one separate application to integrate SoundCloud API. It is working fine with SoundCloud API. But I tried to integrate with my existing application, I am getting following error. Already I have added the SoundC...
stackexchange/codereview
I have represented the image now I want to save the image and the description in database how do I do it. Anyone please help.
stackexchange/codereview
I know that SELECT * FROM Table will list all columns in the table, but I am interested in listing the columns in alphabetical order. Say, I have three columns, "name", "age" and "sex". I want the columns organized in the format |age| |name| |sex| Is it possible to do this with SQL?
stackexchange/codereview
I have a form application in C#. When I change the monitor's DPI, all the controls move. I used the code this.AutoScaleMode = AutoScaleMode.Dpi, but it didn't avoid the problem. Does anyone have an idea?
stackexchange/codereview
I've got 3 groups of radio buttons and 1 set of check boxes. How do i check if a radio button is selected in each group of radio buttons and at least one check box is selected? And if not, maybe pop an alert window. So thats : one radio button needs to be selected from all three groups and one check box (all four are m...
stackexchange/codereview
I need to connect two ObjectDataSource tags. First will have a query string parameter and the second has a parameter, which is one of the fields in the result set of the first one. The relationship is one-to-one, so I can't put second one in a grid and use control parameter <asp:ObjectDataSource ID="OrderObjectDataSour...
stackexchange/codereview
My problem is: I want to start a process via a thread and that process should execute his job. As far as I started the process, he remains into memory and does nothing until I close my main program. (like it was some kind of suspended) And only after exiting main program, this process is starting to do what he must. ...
stackexchange/codereview
I'm extending WebFormViewEngine and when I override FindView and debug at runtime, the masterName parameter seems to always be an empty string. What does the parameter masterName represent? MSDN is no help: "The name of the master". public override ViewEngineResult FindView(ControllerContext controllerContext, str...
stackexchange/codereview
I'm starting up a rather large-scale open source server project written in C# which targets both the MS.NET and Mono platforms. However, I realized that Mono only has limited support for LINQ to SQL, and no support for the Entity Framework at all. Two ORMs I have considered are NHibernate and SubSonic. However, I have ...
stackexchange/codereview
In sql server 2005/2008, can anyone please advise me on how can i generate scripts automatically of all the objects that let say starts with "Client_" I already have a query that identifies all the object that starts from "client_", but i also want to generate there scripts automatically. Doing it manually is a huge ta...
stackexchange/codereview
if i have a textblock which i want to vary in width by the size of its contents, but i want the left of the textblock to maintain a certain spacing from the right of the container... how is this accomplished? I feel I'm overlooking something simple. Im specifically using WPF, if that matters.
stackexchange/codereview
Why does [].all?{|a| a.include?('_')} return true?
stackexchange/codereview
I'm getting a FileNotFoundException when I'm trying to download the file http://tfob.azstarnet.com/images/authors/Alcal%C3%A1_Kathleen_small.jpg. The problem is almost certainly the fact that the URL has an accented character in the string. How can I deal with that? This is how I'm downloading it. Log.d(TFOB.TAG, "Imag...
stackexchange/codereview
I have a for loop where i want to orderby the name alphabetically a b c d looking how to do this, wondered even if i could use linq orderby inside the forloop?
stackexchange/codereview
I have the following code wich throws an error with Rails 3 : module Auditions module Search def self.included(base) base.extend ClassMethods ... base.named_scope :not_rated_by, lambda { |user_id| { :conditions => ['NOT EXISTS (SELECT * FROM audition_tags bar WHERE bar.user_id =...
stackexchange/codereview
Regarding having several libraries each with their own tags/trunk/branches structure... and you want to get trunk from each into a working-directory. Easy to setup, I think. An empty SVN dir "libs", using svn:external on each library you want. But this sounds rather ugly, like a hack to avoid using a proper build scrip...
stackexchange/codereview
I have report which consists of 5 questions (there can be only one answer or multiple choice answer). Question are different for each report. So everytime I generate questions and answers as RadioButtons (one answer) or CheckBoxes (multiple choice answer)...But now I really don't know how to save those answers (I'd lik...
stackexchange/codereview
I created a UIPickerView inside an UIActionSheet, using the following tutorial: Add UIPickerView & a Button in Action sheet - How? I've noticed that the UIPickerView does not respond to touches below the bottom half of the UIPicker. Perhaps just below the selection bar, but not any more below. Has anyone had any sim...
stackexchange/codereview
What are the main possible reasons of breaking down a Maven project to sub-modules?
stackexchange/codereview
Is there any way to get the object under the mouse in Excel sheet (not in the form). The reason is that I have bunch of charts and some shapes on them. When I click the shape on the specific chart, macro is launched, doing some stuff to the current chart (ActiveChart). However, this works only if chart is activated pri...
stackexchange/codereview
My company want to use java to develop a document management project based on OCR technology. Who with OCR development experience can recommend which OCR SDK are better?
stackexchange/codereview
This seems like it should be easy enough, but I'm not able to figure out out tonight and have been searching but not finding anything relevant on the forums. All I want to do is change the scale of a UIImageView to shrink it or grow it. [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1]; [UIView ...
stackexchange/codereview
I have a content type built by CCK in Drupal 6. If I export it, I get a php code. How can use this code in my module's hook_install, to have this content types imported when the module is installed?
stackexchange/codereview
Is there a way to store small data in RAM memory using PHP so that I can have access to the data between different session instead of regenerating it. Something similar to memcached (I don't have access to memcahced). My current solution is just to save the data in file.
stackexchange/codereview
I wrote a small GWT app that includes a websocket servlet. I installed jetty-hightide 7.1.6 on my ubuntu 10.04 server and I cannot access the websocket servlet. However I can access it no problem when running on my local machine for testing. I didn't do any configuration to jetty I simply dropped the war file for the G...
stackexchange/codereview
Is it possible to query the Wikipedia API for articles that contain a specific template? The documentation does not describe any action that would filter search results to pages that contain a template. Specifically, I am after pages that contain Template:Persondata. After that, I am hoping to be able to retrieve just ...
stackexchange/codereview
How can I test if the SQL Server database is in Single User Mode in a SQL script?
stackexchange/codereview
I need to use ASP.Net gridview and do operations like sorting paging and selecting checkboxes in my asp.net mvc content view. I dont what to do. I've written something like this: <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> ...
stackexchange/codereview
I've been studying code of some different libraries, and notice that some will provide equivalent generic and non-generic functions in the same class. One example is the IServiceLocator interface of the Common Service Locator project: public interface IServiceLocator { object GetInstance(Type serviceType); obje...
stackexchange/codereview
Can someone point me to an up-to-date and exhaustive list of extended permissions for Facebook Graph API? I've been using (http://developers.facebook.com/docs/authentication/permissions), but that list doesn't include music, books, etc. Is that a subset of one of the existing permissions?
stackexchange/codereview
I have some entries in a field that look like this: NEvada city or nevada City... Is there a way to update the database so that entries have initial caps: Nevada City?
stackexchange/codereview
I'm playing around with a new C# email library and would like to test it as much as possible. I've used several POP3 email servers (e.g. Exchange, Hotmail, Gmail, etc.) to test support for the most popular email MIME formats e.g. text/plain, multipart/alternative, etc. Does anyone know if there is a repository of sampl...
stackexchange/codereview
I've got a DBML file in my project with all my LinqToSql objects. Initially I imported them from the DB, and all was well. Now as my DB has been growing, I've been adding the new tables to the diagram in the O/R Designer, but they always get appended to the end of the XML. This is a bit of a pain, because when I'm d...
stackexchange/codereview
How to set a Timer, say for 2 minutes, to try to connect to a Database then throw exception if there is any issue in connection?
stackexchange/codereview
Getting a "No output returned from plugin" error message from a Nagios/NRPE script 1) Running Nagios v3.2.3 and NRPE v2.12 2) The script: OK_STATE=0 UNAME=/bin/uname -r echo "OK: Kernel Version=$UNAME" exit $OK_STATE 2) Command line results on the Nagios Server using NRPE Same OK results fo...
stackexchange/codereview
From reading on Stack Overflow I've seen that many of you don't recommend using Timer Task. Hmmm... but I already implemented this: I have this code: detectionHandlerTimer.schedule(myTimerTask, 60 * 1000, 60 * 1000); The thing is that work of myTimerTask lasts some time. I would like this behavior: wait 60 sec. do ta...
stackexchange/codereview
i'm having a set of segments (each defined with two points; 2D) and want to know for every segment x, how many other segments y1,..., yn are intersecting x. How would you do that efficiently in CGAL? I don't have any experience with the CGAL library and Computer Geometry at all. I just need an algorithm for doing the s...
stackexchange/codereview
I understand that you must calculate the SHA1 of the info dict in the torrent file, I am struggling Parsing the info dict, Do i Need to decode the bencoded info dict before calculating the sha1 hash?? How do I do it?
stackexchange/codereview
Does anyone know of any good functions for validating a date via input text box in codeigniter like this: dd/mm/yyyy? Thanks
stackexchange/codereview
here we are comparing gene table records like: first will take gene a and compare this with all genes a,b,c for example aa,ab,ac same will take b then ba,bb,bc so on....... so here matching results are a nd b is 2 because matching records are 589,822 common gene terms for b c count is 1 because matching record 586 and ...
stackexchange/codereview
Is there in Java any command or proccedure that I can restart my appliation itself? I developed a Java desktop application, but after some time it's going hang. I don't know why, so I want to restart my application itself. Is it possible?
stackexchange/codereview
I conisder moving to Nginx but I want you to ask if is possible to rewrite urls into that schema, and if you could help me a bit: A url like http://example.com/username into profile.php?u=username. But then, will I have problems in accessing other pages like e.g. home.php A url like http://example.php/questions/1020...
stackexchange/codereview
I have a requirement to display lists of newly-created and updated pages in our Episerver intranet - say the last ten of each. I've tried using FindPagesWithCriteria but this returns no results. Here's the code I've tried: PageDataCollection recentPages; PropertyCriteriaCollection criteria; PropertyCriteria upperBound;...
stackexchange/codereview
I'm trying to use a dictionary. Whenever I want to check if an element is present in the dictionary, I do this: int value = results.get("aKeyThatMayOrMayNotBePresent"); if (value != null) // ... But then the compiler says I can't compare an int to a <nulltype>. What's the correct way to check for null in this case?...
stackexchange/codereview
I'm trying to write small application which allows to send dbus commands (to Amarok) through web page. I'm using python + mod_wsgi, because I need to run the script with the same user as Amarok. When I connect to the Amarok through normal shell, it works. But after connecting through the script, I get the following ...
stackexchange/codereview
let me ask the question first. Where is the correct place to call a function that load a list of values to be display on a view? I create a controller like this public ActionResult Create() { SeaModel newSea = new SeaModel(); return View("Season/CreateSea", newSea); } //I not quite sure if this should go here...
stackexchange/codereview
I have a legacy database with the following table (note: no primary key) It defines each a record for each accommodation "unit" and date, and the price for that date. CREATE TABLE [single_date_availability]( [accommodation_id] [int], [accommodation_unit_id] [int], [arrival_date] [datetime], [price] [dec...
stackexchange/codereview
Which is better idiomatic clojure practice for representing a tree made up of different node types: A. building trees out of several different types of records, that one defines using deftype or defrecord: (defrecord node_a [left right]) (defrecord node_b [left right]) (defrecord leaf []) (def my-tree (node_a. (node_b...
stackexchange/codereview
I use NUnit for Mono/C# on my Mac, but I need to use Microsoft.VisualStudio.TestTools.UnitTesting for unit testing. How is Microsoft TestTools' UnitTesting different from NUnit? Can I just change the namespace and recompile to get the same result, or do I have to rewrite the test? Can I copy some of the assemblies to ...
stackexchange/codereview
I want to add a static text (some sort of explanation/welcome text) on the very top of a view (over the filter) in Drupal 6.x with Views "2". I want this text appear only when the view is not filtered (i.e. on initial load of the page). My problem is that the only place I figure out to make it work partially is in the...
stackexchange/codereview
For this problem (stackoverflow.com/questions/4086435/), I tried to make a Python 3 version of the library python-websocket (github.com/mtah/python-websocket/), here is my code: https://gist.github.com/663175. Blender comes with his own Python 3.1 package, so I added my file directly in its «site-packages» folder. I ge...
stackexchange/codereview
Is there a way to read multiple inputs on the same line in C# like I would in C++? I have included an example: #include <iostream> #include <string> using namespace std; int main () { cout << "Format: name age"<< endl; int age; string name; cin >> name >> age; return 0; }
stackexchange/codereview
How can i change custom SurfaceView width and height. is this possible?
stackexchange/codereview
I just created a new table using a Rails migration, then I created a model where I added in its relationships. I have restarted my console, and the MySQL console shows the table in the project_dev database. When I try to create a new record in my Ruby console, I get: Mysql::Error: Table 'project_dev.trace_users' doesn'...
stackexchange/codereview
I have a problem with print url on view: <?php foreach ($rows as $id => $row): ?> <?php print $row; ?> <?php ?> <a href="<?php echo url('vote', 'id='.$row->nid) ?>" class="voter"></a> <?php endforeach; ?> I am getting Fatal error: Unsupported operand types in /{uri}/includes/common.inc on line 1436 Could somebody...
stackexchange/codereview
i've used the following code to repeat the image in the background but its not working can any one help? Layout.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:backg...
stackexchange/codereview
Using SWI-Prolog's listing predicate (or SICStus' predicate in its list library), we have: lists:subtract([], _, []) :- !. lists:subtract([A|C], B, D) :- memberchk(A, B), !, subtract(C, B, D). lists:subtract([A|B], C, [A|D]) :- subtract(B, C, D). which does this successfully: ?- subtract([2,3,4,5],[3,4],X)...
stackexchange/codereview
I have a visual studio click once deployment. It's upgraded from VS 2008. The part that i'm having a problem with is the Prerequisites. I need for the .net 4 framework and Visual Basic PowerPacks 10.0 to be deployed with the app. I have the check box checked to "Create setup program to install prerequisite componets...
stackexchange/codereview
I've gotten really rusty with TSQL I'm ashamed to say. Using Entity Framework has made me forget what little TSQL I even knew. And I haven't exactly made very complex queries with Entity Framework either, just never had the need to sad to say. This is one exercise our professor gave us this Friday: "Monica buys a gallo...
stackexchange/codereview
There have been a number of other questions on AttributeErrors here, but I've read through them and am still not sure what's causing the type mismatch in my specific case. Thanks in advance for any thoughts on this. My model: class Object(db.Model): notes = db.StringProperty(multiline=False) other_item = db.Referen...
stackexchange/codereview
i'm wondering how to achieve this kind of thumbnail gallery... http://cargocollective.com/saintea like when you roll over the thumbnail, it gives an highlight effect to the title at the same time even though they are two separate elements. I could make them as one file, but the reason why I want to have them separate ...
stackexchange/codereview
in my user edit page, there is a line as follows: <%= devise_error_messages! %> The problem is this does not output errors the standard way that the rest of the app does: <% flash.each do |key, value| %> <div class="flash <%= key %>"><%= value %></div> <% end %> My question is, how do I get the devise error messa...
stackexchange/codereview
Hi: I am confused about what is cached by the hibernate cache. From the docs, I know there are there types of cache in hibernate. First-level:the transaction-level. It seems that the entity to be persisted by a session are cached here. Second-level cache: I really have no idea about this cache,from the api,it said this...
stackexchange/codereview
I'm relying on a server backend for my WP7 app. The server part is to be installed by the administrator on a host computer (not important). I have to change the url in the app dynamically the first time the app is running on the phone (the user will be prompted to enter the url, and it will be saved in the isolated sto...
stackexchange/codereview
How can I make header and footer on a BlackBerry screen with scrollable content in between?
stackexchange/codereview
I have a question, that may sound strange. I am interested to know if J2EE containers allow to the applications deployed, to open direct server sockets (by-passing essentially the container) for their own purposes. I know that it is strange to want to do that, but the reason I am asking is because, I have read that a j...
stackexchange/codereview
I am working on iphone aaplication.. As I have seen in iphone app, the controls used in app are statically predefined in interface builder and uiviewcontroller... But I have to deal with situations where I do not know what type of control to create..The controls are known to me at runtime of application.... How do i po...
stackexchange/codereview
I'm looking to deploy two rails projects. One with Ruby 1.8.7 and Rails 2.3.8, and another with Ruby 1.9.2 and Rails 3.0.1. I'm trying to set up a situation where www.example.com is Ruby 1.9.2 and shop.example.com is Ruby 1.8.7. What's the best way to set this up with Passenger and RVM?
stackexchange/codereview
I have a string like this: "These are Pi (\u03a0) and Sigma (\u03a3).". How can i convert this to contain and print effective characters, using C++ standard libraries? This solution http://msdn.microsoft.com/en-us/library/system.text.encoding.utf8(VS.80).aspx, use .NET framework (/clr compiling), that i want to avoid p...
stackexchange/codereview
level: beginner Below snippet is part of code that counts letters in an array. How do you say this in english? counts[letters[i] - 'a']++ ; I understand the substraction mechanism but i'm a bit confused by the shorthand way to write the letter count incrementation. full code: class CountLettersInArray { public st...
stackexchange/codereview
I'm using Silverlight 4 to develop a Windows Phone app. I have a control defined by the following XAML: <Grid x:Name="LayoutRoot" Background="Transparent" Margin="0,0,0,20"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Grid.Column...
stackexchange/codereview
I have searched Google and abroad and I cannot find anything about CFWheels Unit Testing. Does anyone know if it exists and if so can you point me in the right direction? Thanks, Darren
stackexchange/codereview
Is it possible to put multiple repeating gradients on a single sprite master image? I've got about 5 1px X 400 px gradients that could be combined to reduce the page requests. It's pretty much my last place to go for reducing object requests. I haven't seen any techniques for this while searching. My own experimentatio...
stackexchange/codereview
I have a task to change envelope icons on the main Activities view page (Work Place, My Work -> Activities) for every row in the grid, depending on the custom status of the row in crm 4.0. I need to do it using JavaScript. Does anybody know if there is a way to do that and where should the JavaScript code be placed? I...
stackexchange/codereview
When I try to connect oracle database under Linux,it throws errors like this: SQL> conn / as sysdba ERROR: ORA-09817: Write to audit file failed. Linux Error: 28: No space left on device ORA-09945: Unable to initialize the audit trail file Linux Error: 28: No space left on device df command shows there's no space left...
stackexchange/codereview
i have a problem in alternating the color of background, blue and white, in my tr tag.. here's my code: I am running django 1.1.1 {% for item in results %} {% if forloop.counter0|divisibleby:3 %}<tr>{% endif %} <td>{{ item }}</td> {% if forloop.counter|divisibleby:3 %}</tr>{% endif %} {% endfor %} do you have any ...
stackexchange/codereview
Consider this F# code to sum the numbers below i that are multiples of 3 and 5: let isMultipleOfThreeOrFive n = (n % 3 = 0) || (n % 5 = 0) let sequenceOfMultiples i = seq {1 .. i - 1} |> Seq.filter isMultipleOfThreeOrFive Since i is an int, you'll overflow if i is large. This version with BigInteger takes c...
stackexchange/codereview
... PAnalyzeInfo = ^TAnalyzeInfo; TAnalyzeInfo = record pPitch: array of Single; pEnergy: array of Single; pPitchAccent: array of Single; pEnergyAccent: array of Single; pDicAccent: array of Single; pScore: array of Single; pBoundary: Integer; szRecWord: array of array of AnsiChar; ...
stackexchange/codereview
When using Vim with on a terminal with a light or white background, most color schemes are subtly broken. How can I fix this? Is it possible to use a color scheme which is designed for a light or a white background? How can I chose a vim colorschemes which uses white/or lightgrey as background color?
stackexchange/codereview
I have a UITabBarController which has been created programatically. There are 6 tabs within the tab bar which has forced a more button to appear, which is great and works beautifully! Whilst testing the app, one of the testers raised a point. When they select the more button, then select one of the options in the more ...
stackexchange/codereview
I'm developing an android app that creates a calendar on the phone the first time the application is installed. When I create an event, either programmatically or using the device itself, the event will show up in the calendar but its title is missing. I'm testing my code on HTC nexus one. Since I'm getting the same b...
stackexchange/codereview
In Redmine it's possible to assign One Task to multiple users. http://www.redmine.org/issues/408 I think discussion is going on anybody have nice solution to manage this one step by step.
stackexchange/codereview
I am trying to program a counter into a website via JavaScript and have found exactly what I need here: http://www.w3schools.com/js/js_timing.asp What I am trying to do is count down from 30 to 0. Once the counter reaches zero I want to display an alert. I have been able to get this to work. The only function that I ca...
stackexchange/codereview
I am trying to use PHP mod_rewrite to alter some URLs. As a test, in my .htaccess I have the following: RewriteEngine on RewriteRule ^(.*[^/])$ index.php?test=$1 #RewriteRule ^([^/]+)/$ index.php?test=$1 In my index.php file I have simply <?php print_r($_GET) ?> What I would like to happen is that when either mysite....
stackexchange/codereview
i am trying to get an android app to send tcp data to a server on my network. The server was written in c#. When i use the code below to transmit data, the server only receives a whole series of \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0. Does anyone know why? Socket socket = new Socket(host, port); PrintWriter pw = new ...
stackexchange/codereview
I'm currently building a simple "jQuery Image Slider" but it does not work as i hoped. It's incredible slow and unresponsive, and the last image does not do anything. URL: http://fusionmedia.dk/jquery/ What is the problem? Thanks in advance
stackexchange/codereview
I had this working yesterday, I don't know what I did to break it. Here are the routes for a RESTful controller: brand_responsibilities GET /brands/:brand_id/responsibilities(.:format) {:action=>"index", :controller=>"responsibilities"} brand_responsibilities POST /brands/:brand_id/responsibilities(...
stackexchange/codereview
I have a class declared in a unit, and it needs to work with a specific bitmap. It is declared in the DFM of my test unit like this: object ImgTop: TImage Left = 208 Top = 568 Width = 777 Height = 41 Picture.Data = { 0A544A504547496D616765A1CF0000FFD8FFE000104A46494600010101025802 [tru...
stackexchange/codereview
I'm trying to use QScintilla on MacOS X, I added LIBS += -lqscintilla2 in the .pro, with this quite simple code: #include <QApplication> #include <Qsci/qsciscintilla.h> int main(int argc, char* argv[]) { QApplication app(argc, argv); QsciScintilla *qscintilla = new QsciScintilla; qscintilla->show(); ...
stackexchange/codereview
I'm using WMD-Editor (the modifed one at github). I'm using PHP as the backend. When I send the contents of Editor and try to echo them, they don't come out as expected. I'm using $_POST to receive the data and then placing it into a mysql database. For example when I try to make a list: Dummy Text This is It display...
stackexchange/codereview
I was trying to call a Javascript function using Flash. The function is called when the user clicks on the Enter Site button. The Firebug console registers the button as being clicked returning 'closeIntro is not defined'. The function is defined at the top so I'm not quite sure what is going on. Site having issue. htt...
stackexchange/codereview
I'm trying to selectively process a field in my Django/Python application based on whether a user is logged in or not. Basically, I have a model similar to the following: class Resource(models.Model): uploaded = models.DateTimeField() name = models.CharField(max_length=200) description = models.CharField(ma...
stackexchange/codereview
I was reading stuffs about pattern recognition. Recently I want to make a survey of methods to evaluate similarities of vectors. As far as I know, there are Euclidean distances, Mahalanobis distances and Cosine Distance. Can anyone present some more names or keywords to search?
stackexchange/codereview
void S(){} struct S{}; int main(){ S(); } In the code above, the expression 'S()' in main is treated as a function call expression rather than an attempt to create a temporary of type 'S'. Which portion of the C++ Standard talks about the resolution of such an expression in favour of a function declaration? For so...
stackexchange/codereview