instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
iam working on a project and need to add a filebrowserdialog to my programm in control desk from dSPACE... there is a way to do this in wxpython, but the problem is: i dont know how to implement this in my control desk program.. i need to be able to add a button, when i click on it, it should show a filebrowserdialog a...
stackexchange/codereview
I have a list of strings which I send to a queue. I need to split up the list so that I end up with a list of lists where each list contains a maximum (user defined) number of strings. So for example, if I have a list with the following A,B,C,D,E,F,G,H,I and the max size of a list is 4, I want to end up with a list of ...
stackexchange/codereview
We're planning to export an application layer AIDL interface. What are some best practices with regards for managing version compatibility? Does Android provide any version-related mechanisms for AIDL interfaces?
stackexchange/codereview
I'm having trouble getting the right size of a vector with struct elements. The element class is defined like this (I didn't omit any detail even though I think the only relevant fact is that it is a class containing an int and two doubles): class Interval { public: Interval(int _i = 0, scalar _l = 0, scalar _r = 0...
stackexchange/codereview
In Quota Details (appengine dashboard) there are two items under the Storage section. Datastore API Calls with a limit of 141,241,791 Datastore Queries with a limit of 417,311,168 What is the difference between these two? And why is the latter's limit 3x larger?
stackexchange/codereview
I'm debugging a large Silverlight application and i'm finding on every form all button controls receive tab focus twice before going to next control. I cannot reproduce this behavior in a simple hello world application though. Interestingly this problem does not occur on HyperlinkButton controls in the same form, just ...
stackexchange/codereview
I'm making a simple quiz database, where a question has an answer and one or more image files, and belongs to a subtopic which in turn belongs to a topic. Also each group may belong to one of three levels. I expect to show a question (and an image, if one exists), and compare the user's answer to the correct answer. I ...
stackexchange/codereview
If I change one ImageView's source to another, (and thus changing the Image) but then have more changes occur within the method and such. How can I force it to refresh to show the changes before the method ends? (As waiting for the method to end to show the changed images is not good for my purposes at all)
stackexchange/codereview
I must run the command "ulimit -n 400" to raise number of allowed open files before I start my program written in C, but is there a way to do the equivalent from within the C program? That is, increase the number of allowed open file descriptors for that process. (I am not interested in per thread limits.) Will it invo...
stackexchange/codereview
I have several rails applications deployed by nginx passenger. I want those applications to be monitored by using monit. How can I monitor those applications using monit? Should I monitor nginx as well?
stackexchange/codereview
I'm using Visual Studio 2010 and created database tables with relationships. Is there an easy way to save/view the sql and then run a new query on my hosted sql server db to create each table?
stackexchange/codereview
I've spent a while searching around with google but come up with a relative blank. Having just quit my day job (!!) I'm going to spend the next few months writing a very specific ecommerce website. Due to the nature of the site, using an existing package like Mage is out of the question, so I'm going to dust off my pro...
stackexchange/codereview
I have a stored procedure that builds a dynamic where clause and executes the SQL statement. It looks similar to this: declare @customerId int declare @sql varchar(100) set @customerId = 12 set @sql = Replace('select customerName from customer where customerId = @customerId', '@customerId', @customerId) exec @sql I ...
stackexchange/codereview
When I publish my app it gives me a name like Application Files\WPFMapLauncher_1_0_0_43 I can get the 1.0.0.0 with this : String version = Assembly.GetExecutingAssembly().FullName; But how can I get the 43?
stackexchange/codereview
I have built a "best guess" query to get the related table.column for a sequence. Is there a better, cleaner method to get this relation? select ut.table_name, ut.table_owner, ut.trigger_name, us.sequence_name ,upper(dbms_metadata.get_ddl('TRIGGER', ut.trigger_name, ut.table_owner )) triger_ddl ,to_char(regexp_su...
stackexchange/codereview
I am trying to learn some of the more advanced java scripting patterns while using jQuery to ease some of the ajax difficulty with jQuery. However, I keep running in to problem that throws no errors. I want to be able to call the ajaxCalls.setup({}) and have it replace the defaults with the object passed to setup. I ...
stackexchange/codereview
Ok , Lets say I am creating a form. And its an address form,form elements as such : field 1 / house number field 2 / street name field 3 / suburb etc etc etc And someone fills in the form,: 1 smith street townsville What I want ( similar to stack overflows live form ) Is another form element, that propagates the for...
stackexchange/codereview
I have created a UserControl using a DevExpress XtraTreeList. Basically in this user control I am using inventory Items. which are more than 30,000. Now when I load the complete table in my typed DataSet it takes almost 6-8 seconds. The purpose to build the usercontrol is reuseability. So that we can use it in other p...
stackexchange/codereview
I use a third party dll to get some data from their servers. There is a void method that I call and then i subscribe to an event raised by the call to this method. The event raised returns the data through its parameters. so, call to : void getdata(id) raises: void onReturn(object) --> which returns an object that ha...
stackexchange/codereview
Ey guys, so I want to create a grouped table view which has the first row of the first section be a large image(take up 3/4ths of the screen). I want the other section and table rows to be just visible below this large picture. So I have created this custom cell that is extremely large, to hold this picture. It's dime...
stackexchange/codereview
I was given an assignment to develop a very simple weather app in Android using the data given from http://forecast.weather.gov/zipcity.php This would be my first actual android app, my only other experience is watching/reading many tutorials on getting started. To give some background information of the app, it simpl...
stackexchange/codereview
I have this problem when I try to push in Git: error: insufficient permission for adding an object to repository database ./objects fatal: failed to write object error: unpack failed: unpack-objects abnormal exit To ssh://<repo url>/<repo dir> ! [remote rejected] master -> master (n/a (unpacker error)) error: failed ...
stackexchange/codereview
I am building a web app and one of the tasks is to improve performance. I want to know of any tool that can be used for timing web pages. For example I need to be able to document to the managers that a particular page did take 5 seconds to load and now takes 1 second. Are there any tools that can help with this? It ...
stackexchange/codereview
in c++ how do I return an array of objects from a function?
stackexchange/codereview
Using the Java JUnit framework and comparing the strings "abcde" and "abde" you would get the error output 'expected:<...b[c]d...> but was: <...b[]d...>' Using python unittest I get "abcde" != "abde" which is not all as useful if you are dealing with long strings. So my question is: Is there a python unit test framewor...
stackexchange/codereview
i try to make declarative transaction work. This is my spring.xml file: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://w...
stackexchange/codereview
I am having trouble launching Time Profiler in Xcode, both for Mac Applications and iPhone apps. The steps I have tried are opening Time Profiler, Clicking the choose target drop down box, selecting my iPhone or Mac book. Choose target -> myApp. If I choose a Mac app then I hit the record button a big yellow warning po...
stackexchange/codereview
Can someone help me understand what the next line means? What is - elem,.style.height = ( pos /100) * h + "px"; There's a comma right after elem. function slideDown( elem ){ // elem.style.height = '0px'; show(elem); var h = fullHeight(elem); for (var i = 0 ; i <= 100; i+= 5){ (function(){ var pos = i; ...
stackexchange/codereview
Is it possible detect the zoom level of browser thru javascript when the user change the zoom level. I have xml files will call these according to the user change zoom level for example 100%, 75%, 50% Thanks
stackexchange/codereview
I'm evaluating MongoDB and Morphia right now. How would I model something like 'settings', where there is only one 'record' (I'm not sure of the proper Mongo term to use). Must I override the save method in my entity class? An example of how to do this and how to use it would be awesome. For example, I'd like to sto...
stackexchange/codereview
I'm looking for a non-resettable flag or event class in the java concurrency classes, something that I can use to check if something is done and is threadsafe. Ideally something like: public interface Event { /** returns true if signal() has been called */ public boolean hasOccurred(); /** returns when s...
stackexchange/codereview
I have been searching all over the web trying to find an example of databinding an Accordion control. I have written a simple test app to try and databind, and I can get the headers to bind, but can't seem to figure out how to get the content to bind. Could someone help me out? Here is my XAML: <tk:Accordion Horizonta...
stackexchange/codereview
If the following example, which sets the IFS environment variable to a line feed character... IFS=$'\n' What does the dollar sign mean exactly? What does it do in this specific case? Where can I read more on this specific usage (Google doesn't allow special characters in searches and I don't know what to look for oth...
stackexchange/codereview
I need to build a string from some columns into another column, the trailing zeros must be removed from month and day : YEAR=2008;MONTH=1;DAY=1;ID=1021; ... etc For the day piece I've used the TO_CHAR(D_RIC,'D') function to remove leading zeros. Is there a format option for months to remove starting zeros too ?
stackexchange/codereview
I've been trying to use FileLock to get exclusive access to a file in order to: delete it rename it write to it Because on Windows (at least) it seems that you cannot delete, rename, or write to a file that is already in use. The code I've written looks something like this: import java.io.File; import java.io.FileNot...
stackexchange/codereview
I am using Redis database where we store the navigational information. These data must be persistent and should be fetched faster. I don't have more than 200 MB data in this data set. I face problem when writing admin modules for redis db and I really missing the sql schema and power of django style admin modules. Now ...
stackexchange/codereview
When attempting to add permissions to an Amazon SNS topic using the AWS SDK for .NET/1.1.0.1 using code similar to the following: AddPermissionRequest request = new AddPermissionRequest() .WithActionNames(new[] { "Publish" }) .WithAWSAccountIds(new[] { "xxx" }) .WithLabel("PrincipleAllowControl") .WithT...
stackexchange/codereview
int mystery( const char *s1, const char *s2 ) { for( ; *s1 != '\0' && *s2 != '\0'; s1++, s2++ ) { if( *s1 != *s2 ) { return 0; } //end if } //end for return 1; } I know it has typing errors but this is exactly how it was. thanks guys i need it to run too and i already added variable declaration but...
stackexchange/codereview
For the fluid layouts, can i use 960 grid system for developing web applications..?
stackexchange/codereview
I want to add a webusercontol which contains a textbox and a label to the gridview control. I am binding a gridview with a datatable dynamically. Here is my code: @ Register Src="CompareBox.ascx" TagName="CompareBox" TagPrefix="objCompareBox" %><br> <asp:GridView ID="grdfoneBoxContainer" runat="server"> <Colum...
stackexchange/codereview
can someone help me with my query format. my output is: UPDATE TABLE SET Notes = 'testyyy', 0 WHERE Id = '1' ...when it should be: UPDATE TABLE SET Notes = 'testyyy , Notify = '0' WHERE Id = '1' PHP: if(!isset($_POST['main'])) { $up = "UPDATE TABLE SET Notes = '".$_POST["field"]."' ","; $...
stackexchange/codereview
Can someone help me understand where I'm going wrong below? I'm using mfilt.firinterp to interpolate a sinewave by a factor of 4 using a filter having a cutoff of 0.7*(fs/2). The sinewave has a frequency of 0.1Hz, and I'm sampling at 10Hz. The low-pass filter used for interpolation therefore has a cutoff of 3.5Hz, and ...
stackexchange/codereview
I need a little help, I have a report that I am running that only pulls out certain information based on a number of 'categories' that are hard coded. However, I want to make this as flexible as possible and I want to replace these coded categories with a parameter that can be selected by the user. However when I attem...
stackexchange/codereview
I basically want to prevent searches that are less than 3 characters long. In Rails 2.x, I would just do this in an onClick event. I understand how to handle AJAX requests and responses in Rails 3 now, but wouldn't using the onClick event be considered obtrusive in Rails 3?
stackexchange/codereview
I wan to know, does Flash Player have limit on total memory used by all swf instances?
stackexchange/codereview
Okay, so here's an example scenario. There is a student resource resources :students, and students has and belongs to many collections: resources :clubs, resources :majors, etc. So we can set up our routes easily enough... resources :clubs do resources :students end resources :majors do resources :students end reso...
stackexchange/codereview
I have an existing WCF service that I now need to have consume an external WCF callback (aka duplex) service. The duplex service is by its nature asynchronous and yet I need to keep my original WCF service synchronous. Is there a well known pattern to do this? What are the most important pitfalls I need to watch out fo...
stackexchange/codereview
What does CXF abbreviation mean? What is "C" ? What is "X" ? What is "F" ?
stackexchange/codereview
I was getting the below error when running scripts Problem while capturing system stateundefined local variable or method `selenium_driver' for Spec::Example::ExampleGroup::Subclass_1:0x7f8ad0819298> here is my settings : def sel_setup @verification_errors = [] if $selenium @selenium = $selenium else @sel...
stackexchange/codereview
We are required to append query numbers to each and every query our application executes. EX: SELECT * FROM ... WHERE ... QUERYNO 123456; OpenJPA supports query hints, but only for specific hints on specific implementations. ... Query q = em.createQuery("select m from Magazine m where ... "); q.setHint("openjpa.hint....
stackexchange/codereview
Im confused... I can't seem to upload files in the 2gb range. When i try using curl to send a 1.92gb file to my site (through an API), it doesn't report anything at all, its just blank. When i send a 1kb file, it reports back like it should. When i try uploading via the upload form, it ends up freezing mid way, around ...
stackexchange/codereview
I have a question regarding Object type casting. Suppose we have: A a = new A(); Object o = a; As I know, what happens behind is that the compiler will copy the address of a and store in the memory area of o variable. Then,we can say that a and o are referencing to the same object. If we do something like this: String...
stackexchange/codereview
For literally years, my website has very intermittently thrown the following exception: Multiple controls with the same ID 'ctl00$ctl00$ctl34' were found. Trace requires that controls have unique IDs. at System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize, Int32...
stackexchange/codereview
i'm really stuck with this. I have to create a dynamic multilanguage form, and doing it like this: class TreeForm extends BaseTreeForm { public function configure() { parent::configure(); [...] $languages = sfConfig::get('app_language_list'); $supportedlangs = $this->getObject()-...
stackexchange/codereview
I use a UINavigationController for scrolling some contents in my App. At one point I don't want the controller to fade in the new table from the side, I want it to fade in from bottom. How can I do this? If that is not possible, Im looking for a way to remove the child element of the UINavigationController without the ...
stackexchange/codereview
How can I retrieve a session using only its session identifier (SID)? I'm using gae-sessions. Update for response @David Underhill: I've done what you suggested, but in debug mode I got this: Session: SID=None {} | but it has db_key populated with a string. Here is my code: upload.py SID = self.request.get("SID") if no...
stackexchange/codereview
I have an MVC application with custom view engine implementing theme selection, i.e. dynamic setting of views' master pages. The app structure is described here The issue is that master pages exist out of their default location in Views folder. (That is because I want all theme-related files, ie. css and images to be ...
stackexchange/codereview
Is there any way to invoke fragment identifiers from python? I'm currently using python mechanize.
stackexchange/codereview
how to manage the Minimize button in the form in C# programming as when the user click on the minimize button the window is minimized at the bottom left which is like in ( Photo Shop ) as when you minimize the other windows it minimized but within the main Form ,, so the user get the ability to know the open windows an...
stackexchange/codereview
Hey I need to save a temporarily jpg file and then remove it, is there any better way to do? I tested the tempfile, but looks that doesn't work.
stackexchange/codereview
I have following problem. I have value of type (forall r. MyType r) and I need ParsecT s u m (forall r. MyType r). Is it possible to do it without suppling additional data structures?
stackexchange/codereview
"$.support is undefined" error when trying to use fancybox with jQuery. Never seen this before. Could it be due to conflicting jQuerys? Any ideas? jQuery is definitely being run, as the other elements on the page that utilize it work fine.
stackexchange/codereview
I think of using in windows a named pipe to communicate between two apps written in Java and C. Normally i use socket connection to do this, but now i have to cancel this idea and find a new solution. I read that named pipe in java can be visible only inside JVM-is this true? Is there a way to establish named pipe bet...
stackexchange/codereview
Question: I have a mailserver written in C# and want to add a web-interface. Now the way I see it, there are two possibilities: 1) Somebody want's to integrate the mailserver on his own webpage/webapp --> needs WebService interface 2) Somebody wants to access the mailserver via a web-interface, e.g. on localhost for co...
stackexchange/codereview
I need to append programmatically (VBA/VSTO) several special symbols (e.g., smileys) into text in a TextRange in PowerPoint 2007. I can insert a symbol using: With ActiveWindow.Selection.TextRange .Text = "sometext" Call .Characters(.Characters.Count + 1).InsertSymbol("Arial", 65, MsoTriState.msoTrue) End With ...
stackexchange/codereview
I have a more general question on working with libraries on with Xcode when building iPhone apps. I've created a framework from a project I've been working on to use some parts of it in other apps. That works pretty good, so far. But I have no idea how to debug into the files included in the included framework. I hope ...
stackexchange/codereview
There is a feature in Chrome - you can right-click on a tab and select "Pin Tab", then tab is moved to the left corner and looks like an icon with text. So there is the question: how can I highlight this tab? Maybe there is some API? For example, gmail can highlight this tab when new mail message is come. Thank you.
stackexchange/codereview
I'm developing a program like Terminal in Linux or Command Prompt in Windows, but I'm developing it on Linux, and I don't care much about portability. The program is written in Java, using SWT. The user writes the commands in a text box, and when he presses 'enter' it reads this line and interpret it. The problem is th...
stackexchange/codereview
I have a question regarding type conversion in C#. Object data_obj = "test"; string data_str; data_str = data_obj; this produces an error claiming no implicit conversion exists. Now, this is, at least for me, a little bit unintuitive, since Console.WriteLine("type{0}",data_obj.GetType()) produces System.String, but ...
stackexchange/codereview
When evaluating that a form was submitted, I check that the method was post, not get. I was told this is a good way to know that the form was submitted by clicking the submit button and that it's not just being submitted by a script that's passing the data in the url. How about the "put" method. It seems very similar t...
stackexchange/codereview
I need to make the above equation comes true! I have an XML file with its XSD schema, and I need to get the Java classes with the required code to parse the XML file and construct java objects.. I am asking here about a standard (or defacto like apache) utility to make the above request comes ture.... Is JAXB can make ...
stackexchange/codereview
With Mercurial, every time a hg vdiff which invokes kdiff3, there are 2 steps that need to be done: 1) close the pop up that says how many files are diff'ing 2) go to Directory -> Unfold all Subdirs Is there a way to skip the step 1 and step 2 and have it automatically expand all folders and show the files?
stackexchange/codereview
The server has .NET framework 4.0 installed but the application pool is set to 3.5. Is there a way to force it to run my 4.0 application? I need this because my web hosting provider takes too long to make the change for me.
stackexchange/codereview
I'm entering the world of JTA, due to need of distributed transactions, and I'm uncertain about the differences between javax.jms.ConnectionFactory and javax.jms.XAConnectionFactory or more accurately how can it be that javax.jms.ConnectionFactory performed what I expected only javax.jms.XAConnectionFactory can do for ...
stackexchange/codereview
I have an XCode project with 2 targets (both are iPhone apps sharing 95% of the same code). However, one module isn't "shareable"; the implementations are too different. My solution (that is not working) was to add 2 subdirectories to my Classes/ folder in my project directory - one for each target. In each directory,...
stackexchange/codereview
I need to maintain a list of intervals in the form of tuple (x, y) and answer queries which ask for the total number of intervals overlapping a point p. If there is no memory constraint i think the efficient solution would be to use a segment tree which requires O(nlogn) space by storing additional information in each...
stackexchange/codereview
Sorry for my bad English. I have 2 projects. Project 1 is a MFC dll that contains class CMyContainer, class CEmployee. Project 2 is my main project. In project 2, I created an instance of CMyContainer of type CEmployee. Now I want to sort the container but I got an error "error LNK2019: unresolved external symbol "bo...
stackexchange/codereview
I use Zend Framework in my application. And I want to know how to get values from ENUM field in MySQL table.For example: i have permissions field (ENUM('delete_admin', 'edit_admin')). How to get array('delete_admin', 'edit_admin') in he best way?Thank you in advance.
stackexchange/codereview
Is there a way to tell NHibernate to leave some tables alone? I have the ASPNET Membership tables, and while I would like to be able to access them using NHibernate, I don't want SchemaExport to delete them and recreate them while recreating the other tables. (Goodness knows what may happen)
stackexchange/codereview
I am trying to find a solution for installing Visual Studio 2010 (VMWARE) and connecting to it remotely so that both i can use the pc and the receiver can monitor what i am doing. There seems to be so many different solutions for VMWARE and i am little of which will work. It would be ideal if it was free of charge, i n...
stackexchange/codereview
i have a problem with the boost-test from my teacher. When i'm debugging my project i get an error at this Line: BOOST_AUTO_TEST_SUITE_END() The Exception is the following: 0x7521b727 (KernelBase.dll) in homework2.exe: 0xC0020001: The string binding is invalid. i'm using Visual Studio 2010 ultimate and Win7 Profes...
stackexchange/codereview
This is my first real dive into JavaScript. Sure I've used it before, but I've never really written anything from scratch. Anyway, I'm having a very strange problem that I hope someone can figure out for me. I'm trying to make the text from a div fade from black to white. Simple, yeah? The following code works. It will...
stackexchange/codereview
I am using NestWhileList in a situation where it often hits the 'maximum number of evaluations'. After getting some curios results, I took a closer look at how NestWhileList reacts to having a maximum number of results specified: Table[{nmax, Length@NestWhileList[ (* f: nesting function *) Identity, (* ini...
stackexchange/codereview
Is it possible to emulate a C union structure using Scala? In this case variables are overwritten each other. Following is a list of characteristics that might be possible: With the same variable allow to use different types. Variables use the same memory location. Any way to know what types are stored. I think that...
stackexchange/codereview
When I deploy a successfully build Maven Project, from Eclipse, to Tomcat: the application complains that the jar file is not found. Steps taken: 1) Installed JAR in local Maven repository: mvn install:install-file -Dfile=xmlrpc-1.1.jar -DgroupId=org.apache -DartifactId=xmlrpc -Dversion=1.1 -Dpackaging=jar 2) Edited t...
stackexchange/codereview
I am making an PM system for my users. In the recipient field you type in a full name. When you submit i want to make sure it's the right user he sends to. So if he type "Megan Fox", it's a full match of a user. But if he type Meg F or Megan, Fox it will return "Did you mean Megan Fox?" So... Now I have thought what if...
stackexchange/codereview
Say I have a large application frame in which I want default input to be a particular, central widget in that frame. If a key, like delete or escape, is pressed: within a control that listens to that key I want that control to handle it. within a control that does not care about that key, I want it passed to the cent...
stackexchange/codereview
I have these urls in my blog http://myblog.com/news/post1/index.php http://myblog.com/updates/post3/index.html http://myblog.com/index.html http://myblog.com/blog/post4/index.php How do I setup .htaccess so that all the urls will end with "/" http://myblog.com/news/post1/ http://myblog.com/updates/post3/ http://myblog...
stackexchange/codereview
I've got a couple of files loaded in Vim, but I wanted to post the contents with the colouring that Vim is providing. Short of print-screen, is there a way to do this? Ideal would be a copy/paste as HTML, but I suspect I'm going to be disappointed.
stackexchange/codereview
Why won't this ENTER_FRAME event stop firing when I call view_stats_exit before going to view_start? public function view_start (e:MouseEvent):void { gotoAndStop("start"); } public function view_stats(e:MouseEvent):void { // Event StatsUI.addEventListener(Event.ENTER_FRAME,stats_scroll); } public function v...
stackexchange/codereview
Is there a way to customize the default message for an invalid rule in jQuery Validate plugin? I mean something like whenever a field is required, and I have not specified a custom message, the message should be "custom message" I have tried this code but without success $.validator.setDefaults({ messages: {...
stackexchange/codereview
I have a text file that is written by Java FileOutputStream. When i read that file using file_get_contents, then everything is on same line and there are no separators between different strings. I need to know, how to read/parse that file so i have some kind on separators between strings I'm using somethig like this, t...
stackexchange/codereview
Lets say I have a function f :: State [Int] Int and a function: g :: StateT [Int] IO Int I want to use f in g and pass the state between them. Is there a library function for StateT (return . runState f)? Or in general, given a monad transformer with a corresponding monad, is there a library function for it?
stackexchange/codereview
I need to create a new filter for my view inside php snippet. Is it possible to do that using Drupal API? Can you also give me code example if possible? Thank You, Toliy
stackexchange/codereview
I am looking for a rule engine with fuzzy logic abilities. I wanted to use Jess but unfortunately it's fuzzy logic plugin is out of date, it's not supported any more and I was unable to download it anywhere. Is there any similar modern software with this abilities? I know about CLIPS and FuzzyCLIPS but seemed to look o...
stackexchange/codereview
I have a contentype called - X I have another content type called - Y I have a view that lists all content types = X ; created by the logged in user How could I add a button next to each listing that will take the user to the create content type = Y page and automaticlly fill in the title as its specified in content X...
stackexchange/codereview
What is the best STL to use for this task? I've been using Map, and I couldn't get it to work. I'm not sure how I am supposed to check the number of same words that occur in the sentence for example: I love him, I love her, he love her. So I want the program to prompt the user to enter an integer, lets say i enter ...
stackexchange/codereview
I'm looking for a Library that allows me to generate an Image via pixel information, in this style(dummyfunction): /* coord_x = X coordinate coord_y = Y coordinate red = red part of RGB green = green part of RGB blue = blue part of RGB */ setPixel(int coord_x, int coord_y, int red, int green, int blue) I...
stackexchange/codereview
I need to send an ajax request to a webserver "http://examples.com/ajax" the response will be the html of a <div> and it will be inserted to an existing <div id="holder">. What's the simplest, smallest way to write this in javascript? without using jQuery? It only needs to support the latest version of chrome.
stackexchange/codereview
I'm trying to communicate between two C# / .NET 3.5 applications using Windows Messages, but the messages I send appear to be received some of the time (but not all of the time) - why is this happening, and how do I ensure that the messages are properly handled all of the time. I have a client object as follows: [DllIm...
stackexchange/codereview