instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I couldn't find a function which would let me specify the start pos for beginning a char or substring search. I have, for example: char *c = "S1S2*S3*S4"; I'd like search for 'S3' by searching the first '*' asterisk and then the second asterisk following it and finally getting the substring 'S3' enclosed by those aste...
stackexchange/codereview
I am not even sure this is possible but here goes. I am developing a report that shows units into the dock and units received into Oracle. I need to show each day (every day) how many were received at the dock and how many were received into Oracle. The trick is including the days where nothing was received at all. ...
stackexchange/codereview
I would like to provide context help for the input fields in my forms ("First name": "Your first name. Please enter all of them if you have several."). Instead of hard-coding them in source code, I would like to make those help texts editable through the admin interface. My idea is to somehow extend the field class (in...
stackexchange/codereview
I am trying to create a Postscript function dictionary of type 0. The input is single dimension and the output is 3 dimension. Input 0 Output [ 0 0 0] Input 1 Output [ 1 1 1] I am having trouble writing the DataSource for this function dictionary. The PLRM manual says that DataSource has to be either a string or pure ...
stackexchange/codereview
How can I get pure string from a document eliminating all the images or tables or figures. I will manipulate and create a word list of these documents. So I need just text part of documents using C#
stackexchange/codereview
I am trying to create a toolbar bottom bar like the iPhone Maps app once. The problem is that I have consulted the UICatalog example but I could not find the user location arrow left button and the options curl right button. How can I set my bottom bar buttons with these images? Thanks for reading.
stackexchange/codereview
In an earlier question (unrelated to Fluent NHibernate- I've switched as a result of my problem) I outlined a table layout issue I'm having where I need to split my Listing entities across a number of tables depending on what country they're from. It's for performance reasons- effectively, I want tables for Listing_UK,...
stackexchange/codereview
I'm investigating a new project which will be a social networking style site. I'm reading up on RavenDb and I like the look of a lot of its features. I've not read up on nosql all that much but I'm wondering if there's a niche it fits best with and old school sql is still the best choice for other stuff. I'm thinking t...
stackexchange/codereview
I want to do a HTML Render that shows a HTML Document, not necessary an online webpage. Then when I click over a HTML Control, it shows only the HTML where I clicked. The real intention is to get the xpath from the root element to the selected TAG.
stackexchange/codereview
I have aspx page on which i have something like that: <% string image; if(cond) image = "somestring"; %> ... <% if (cond) { %> <img src="<%= image %>" /> <!-- HereI get CS0165 exception: Use of unassigned local variable 'image' --> <% } else { %> <div> ... </div> <% } %> So my question is why ...
stackexchange/codereview
I've got a class called BackendConnector which uses a NSURLConnection to call a SoapWebservice that is https. I found a lot of posts and tried to implement the delegate Methods regarding Authentication but they won't get called and after 6 hours in google I don't get what I've done wrong. Can someone please give me a h...
stackexchange/codereview
I want to delete some nodes or add some nodes in xml with jquery, I try it with append, empty, remove but all of them seem to not work, like (in $.ajax): success:function(xml){ $(xml).find("layout").append('<app id="' + $children.eq(i).attr("id") + '"></app>'); $(xml).find("layout").empty(); } also I find ther...
stackexchange/codereview
Okay so I need to create a 'generic' heapsort in c and this is what I have so far (I might be missing some closing brackets in code but they just got lost when I moved my code here) void srtheap(void *, size_t, size_t, int (*)(const void *, const void *)); void heapify(void *, size_t, size_t, size_t, int (*)(const void...
stackexchange/codereview
How can I get the properties of an element with jquery? I want to get the size of the margin of a div in particular. I have set the style of the div in a .css file, for instance, .item-form { margin:0px 0px 10px 0px; background: blue; } the html, <form> ... <div class="item-form"> <textarea class="autohide"></...
stackexchange/codereview
Our .NET MVC 2 app is over-engineered. That data models are solid, but everything else is a mess. Is there away to "point" Django at our MS SQL Database, and have it generate the basic scaffolding and Admin interfaces from our existing DB structure?
stackexchange/codereview
I'm working on developing some simple graphing software which needs to be implemented in both swing and gwt. On the gwt side, I'm going to use gwt-g2d for the canvas. I was hoping to use an eventbus across both implementations to simplify some of the software. My understanding is that it should be something like this...
stackexchange/codereview
I had some networking issues on my Windows server, and find out (by using NETSTAT) that I have more than 90,000 (!) connections in TIME_WAIT which didn't closed. I've changed the TcpTimedWaitDelay param in registry, but apparently a server restart is needed. Because it's a single production DB server, I can't afford it...
stackexchange/codereview
I'd like to set up a read-only Git repository mirroring our CVS repo (to allow easy history browsing with Gitweb). The mirror should ideally be updated in realtime. I've tried git-cvsimport but it takes about two minutes for an update run and probably puts high load on the CVS server. What would you use for this job?
stackexchange/codereview
I've messed up my remote repository, can I restore it? Situation: laptop (pulled form repository where I pushed from another laptop with wrong data) desktop (which has a good local repository - yesterday) desktop gd@t4q:/var/www/html/t1.org$ git remote show origin Enter passphrase for key '/home/gd/.ssh/id_rsa': *...
stackexchange/codereview
I wonder if I have any other method but a hidden field to post a JSON object to the server on full postback. Imagine you have a form (with textboxes, checkboxes, etc) and you need to post a json string when the user post the form. This means, I would post all the form values + the json string but I can't come up with ...
stackexchange/codereview
i need to retrieve the images from sdcard,i used the following code. String[] projection = {MediaStore.Images.Thumbnails._ID}; cursor = managedQuery( MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI, projection, null, null, MediaStore.Images.Thumbnails.IMAGE_...
stackexchange/codereview
Hi to all stackoverflow users. I am trying to build a simple (as an exercise) code that will read from a file and will store the words from a file in an dynamically allocated array. I think I am mallocing wrong. Does anyone see what I am doing wrong? #include <stdio.h> #include <string.h> #include <ctype.h> #include <s...
stackexchange/codereview
I'm creating an API for a Rails app and I want to return User objects for an API call but without crypted_password, salt, or login_token attributes. Is there any way to do something like this: do api_fetch_user(u) user=User.find(u) return user(:filter=>"crypted_password", "salt", "login_token") end
stackexchange/codereview
I've been struggling all day to debug a query that filters out element based on the Modified field using Lists web service and GetListItems method, to get only the elements modified since the last time I checked. Here is the query parameter: <Where> <Gt> <FieldRef Name="Modified" /> <Value Type="DateTime" In...
stackexchange/codereview
Does anyone know under what conditions you can receive an 1146: Table '<database>.<table>' doesn't exist error when your table does, in fact, exist? I use the same code on 5 servers, only one that I recently rented is showing this error, so I suspect it may be a settings or install error of some kind. I can execute my...
stackexchange/codereview
Anyone can tell me how to kick start development a super simple client for jabberd14 server? I am comfortable using C++, VB .NET, PHP (for webdevelopment). And also how to add user in the server itself (any API to do this) like mysql has develop a connector to pass the sql statement to the server to execute.
stackexchange/codereview
i have a popup that is getting displayed when Save button is clicked. The popup has 2 buttons. Yes and No. No should cancel the popup and yes should take you to function in the code-behind say, btnSave_Click(object sender, Eventargs e). How is it possible. Could someone help me, i am new to Javascript. Below is the cod...
stackexchange/codereview
I created a project which includes an mx:ViewStack as it's first container. <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:comp="mycomp.*" xmlns:mx="library://ns.adobe.com/flex/mx" ...
stackexchange/codereview
This seems like it would have been simple, but what i was doing was creating an array in jQuery and sending it to a php via ajax and inserting the records into a db. But what i want to do now is create the array exactly the same but instead of ajax, i'd like to go to the php page and view what it has received. How woul...
stackexchange/codereview
I need to know the number of rows in a certain table. If it is under 250 rows I need to return an error to the sql job forcing it to quit. The problem is it's not a stored procedure. It's sql code is running straight from the job step as a Transact-SQL script. Is this possible to return anything, or is there a bett...
stackexchange/codereview
I need a code to determine the inverse of an nxn matrix A using row operations. I am having a ridiculous time writing this code. Anything helps, I am a grad student and havent taken a programming class in years. Thanks.
stackexchange/codereview
I'm going to use an analogy for this one, just to simplify the explanation. Suppose in a game you have a building that can produce Archers and Cavalry. You place an order for 5 Archers, followed by 3 Cavalry, then place another order for a further 4 Archers. For this example I have a MySQL table with: `id` INT UNSIGN...
stackexchange/codereview
I'm writing my own custom item template for use within visual studio. All is well except I need to find a way to get one of the files in the template to be dependent upon another. In a csproj file it would look like this <Compile Include="Class1.cs"> <DependentUpon>Class1.xml</DependentUpon> </Compile> Does anybod...
stackexchange/codereview
What I see is a string Layout property. But how can I pass a model to layout explicitly?
stackexchange/codereview
I got a model with a private method I'd like to spec with RSpec, how do you usually do ? Do you only test the method calling the private one ? or also spec the private one ? if so, how do you do ?
stackexchange/codereview
How can I support interleaved unknown XML using JAXB? Using @XmlAnyElement does not seem to be up to the job.. I am attempting to write an XML schema to allow interleaved elements from other namespaces, and use this with the built-in JAXB in Java 6. (I've not tried this fully with JAXB 2.2.1, as I don't have the luxury...
stackexchange/codereview
how to make traffic to send 80% to groups.neighborrow.com and 20% to u.neighborrow.com.. this is developed in cakephp
stackexchange/codereview
I have a series of links, and I setup both Flowplayer (http://flowplayer.org) and Fancybox (http://fancybox.net/): <a class="fancybox" href="../public/video1.flv">Click here</a> <a class="fancybox" href="../public/video2.flv">Click here</a> <a class="fancybox" href="../public/video3.flv">Click here</a> ... I want to o...
stackexchange/codereview
ok for anyone else experiencing this in future it was a permissions issue with iis i had to set permissions on the whole tree for the style sheet to render How do I attach a stylesheet? I've tried the usual way: <LINK REL=StyleSheet HREF="../../Content/Site.css" TYPE="text/css" MEDIA=screen> with various file paths....
stackexchange/codereview
I have created a custom component - MyImage - that has two children including a Bitmap as well as a Sprite. My display object hierarchy is as follows - mx:Canvas view:MyImage mx:Bitmap my:Sprite If I change the MyImage.scaleX, scaleY property, the children scale as I would expect them to. However when I tr...
stackexchange/codereview
I'm trying to use Apple's MixerHostAudio class to mix and play audio files specified by the user. The class files can be found here: http://developer.apple.com/library/ios/#samplecode/MixerHost/Listings/Classes_MixerHostAudio_h.html To make the MixerHostAudio class play the files specified by the user, I instantiated t...
stackexchange/codereview
There is a very bad error telling you that another application is installing, when theres no such installation going on actually, and this error keeps coming after restart. There is a solution but for every install involving deleting the registery key Inprogress, and stopping and starting the installer service, you hav...
stackexchange/codereview
I want to implement a level based access control in my ruby on rails application. Like there a user at lower level will not be able to access data of its parent. Example Main Admin | |___ Sub Admin1 | | | | | |___ SA1_USER1 | | | |___ SA1_USER2 | | | |___ Sub Admin2 ...
stackexchange/codereview
I am trying to write a service which will accept a JSON or XML object in a POST request. I have successfully written a GET request handler that will return my object as XML or JSON as requested in the header's accept. When I POST to the service with JSON as the body of the request the Java Object in my POST method is n...
stackexchange/codereview
Suppose I have the following folder: C:\[test]\x, then, when inside of the [test] folder, I can't use PowerShell's tab completion at all. I guess the reason for that is that the folder name would need to be escaped to ´[test´] (with the ticks inverted, which causes Markdown problems here), as it the completion does whe...
stackexchange/codereview
Starting with a unix timestamp like 1290529723, how would I (assuming gmt) get the information on whether it is: today (if so, what time) in the last seven days (if so, which day ... mon, tues etc?) older than a week (if so, how to output in dd/mm/yy format?) I need this for a list of messages like the iPhone's ...
stackexchange/codereview
I have a JFrame, with two panels, in one panel I draw a line, as I was working I minimized the Window of the java program i'm doing, when i maximized it THE LINE THAT I DREW WAS DIFFERENT, it repainted it in a different place! Does anyone have an idea of how to lock the painting so that when i minimize it doesn't screw...
stackexchange/codereview
I'm trying to write a fast service which requires dns txt lookups, i don't want to use any slow modules like Net::DNS.. Thanks for any tips!
stackexchange/codereview
I had a request to write a dll library using C#, it should be build under .NET 3.5. I've build the library (it's a simple TCP client) using Visual Studio 2005 with .NET 2.0.50727. I'm assuming that I can not deliver this library since it's built against wrong .net I have more .NET versions installed on my developmen...
stackexchange/codereview
I have a Java webapp WAR file that depends on multiple jars in it's WEB-INF\lib directory. One of these JARS needs to load some config files by doing class.getClassLoader().getResourceAsStream(...). However the InputStream resturns null. Is there a problem with taking this approach when the JAR is inside a WAR? The app...
stackexchange/codereview
I am wondering whether it is possible to set the processor affinity of a thread obtained from a thread pool. More specifically the thread is obtained through the use of TimerQueue API which I use to implement periodic tasks. As a sidenote: I found TimerQueues the easiest way to implement periodic tasks but since these...
stackexchange/codereview
I have the following Automapper defintion: Mapper.CreateMap<IB.BusinessComponents.Data.LocationMaster, IB.Entites.Master.Location>(); Mapper.CreateMap<IB.BusinessComponents.Data.LocationMaster, IB.Entites.Master.Location>() .ForMember(destination => destination.Id, source => source.MapFrom(item => item.LocationMast...
stackexchange/codereview
So after my circular dependency problem with the BGL was solved I've come to another obstacle. I'm currently using an adjacency-list to model my graph. Bundled properties for both nodes and edges are applied to store some information in the graph. So I have something like this: class Node { int x, int y // position...
stackexchange/codereview
I have a generic index.php that uses $_GET variables to display different pages, but the same time it displays different keywords for different pages. We received a Google Adwords Landing page violation notice today, but they don't say what exactly we did wrong, can this feature that I did for the keywords as described...
stackexchange/codereview
I've had a few headaches trying to use Outlook and Redemption in my VB .Net application. Is there a guide anywhere on the net that describes the MAPI protocol and how I might go about using it to interact with a connection to Exchange server? I know that there's a serious risk of creating more headaches by trying this ...
stackexchange/codereview
I have an XML collection like this: <test> <test1></test1> <test2></test2> <test3> <bla1></bla1> <bla2></bla2> </test3> <test3></test3> </test> I want to get all the nodes except for the test3 nodes. I have tried /*[not(name()='test3')], but it does not work. Also, is it possible with XPath ...
stackexchange/codereview
I am trying to use the camera in two different threads, in one thread i am displaying the preview and in the other thread i am getting the data from the preview for calculating the rgb values in each preview frame, when i am trying to use the camera in two threads its giving me an error " attempt to use locked camera",...
stackexchange/codereview
Situation: Large company with several internal Java applications that launched via Java Web Start from a Java Web Application. Users login into the Java Web Application and select a program that launches via Java WebStart. The application logs in a database when a user attempts to run an application. Once the appli...
stackexchange/codereview
Say I want to make a java webapp using open source framework such as Spring Framework, and want to make it easily scalable (like Google App engine). What options do I have (other than running it in GAE) ? Which mvc-framework, db-persistence framework would you choose? With database as a bottleneck, is there a way to m...
stackexchange/codereview
I would lie to parse a JSON file with SBJSON but I've a little problem of comprehension ? Here is my JSON structure : id text date So for exemple : [{"id":"1","text":"blabla","date":"1235432241"},{"id":"2","text":"blabla2","date":"1235432241"}] And here's the code I found to parse a JSON file whit SBJSON : - (void...
stackexchange/codereview
I use Blueprint CSS framework to style my site. I have this code: <div class="span-10"> <div class="span-5"> <img alt="" src="system/images/picabu1.png" /> </div> <div class="span-5 last"> Lorem ipsum sup dolor itaseum.. <br /> <img alt="" src="system/images/a...
stackexchange/codereview
I have problem with WFC server or client config. When I try to upload Image to server I get error: Content Type multipart/related; type="application/xop+xml"; start="<http://tempuri.org/0>"; boundary="uuid:868d52b2-10f6-4661-8784-bf81f3a84c16+id=1"; start-info="application/soap+xml" was not supported by service http:/...
stackexchange/codereview
I use a COM library (3rd party) with interop in a C# application. How can I debug objects of this library in VS2010? Or is this not possible?
stackexchange/codereview
So I have a struct and a queue (modified, taken from here) in .h file of my class like: struct VideoSample { const unsigned char * buffer; int len; }; concurrent_queue<VideoSample * > VideoSamples; In .cpp file I have a function I run each time in a new thread, sending into some arguments: void V...
stackexchange/codereview
I'd like to write a .htaccess for my apache website, with this kind of rules : For a client which asks (HTTP GET) this url : http://myserver/img123.jpg If the file img123.jpg exists in my folder /var/images/, the server returns it. If it doesn't exist, it returns the default file which is in the root directory : /imgd...
stackexchange/codereview
I have this form that has a validation JQuery function, I have a problem with the telephone field, all I want is for the users to enter numbers only ... Its working great on the English form, but on the Arabic form, if I enter the numbers using the Arabic language the form won't submit. Anyone knows what is the regular...
stackexchange/codereview
I'm trying to back up some records to a separate table in the same database using phpMyAdmin. Here's the query and the error it's throwing. Both tables do exist and are spelled correctly; I copied and pasted the table names directly from their structure page. Any ideas why I'm getting this error? SELECT * INTO `arrc_Vo...
stackexchange/codereview
I'm using gwt-dnd library and I would like to know how to make click to drop. That is, click the widget to move, release the mouse button, drag the widget and click to drop. Thank you.
stackexchange/codereview
Hello Assume I have the set of numbers I want a quick to calculate some measure of uniformity. I know the variance is the most obvious answer but i am afraid the complexity of naive algorithm is too high Anyone have any suggestions?
stackexchange/codereview
I am wondering if there is a preferred or proper way to set the item in the dropdownlist in asp.net? I am binding months to a list 0-13 items default selection is 0 months duration, and years 0-8 items and 0 years is the default selection. As I know there are always going to be 12 months in a year, I could use selected...
stackexchange/codereview
I've been looking around to try to find what the reasoning is behind not including default parameters for functions in Java. I'm aware that it's possible to simulate the behavior, either with varargs or else by creating several overloaded functions that accept fewer parameters, and call the real function that takes all...
stackexchange/codereview
Using C# how do I retrieve a users description and email? I used plain ASP.Net Membership to set up the user-accounts.
stackexchange/codereview
I am trying to point www.mydomain.example/blogs to www.anotherdomain.example/blog.html and still keep the URL the same, any ideas? I have tried so many different methods and the URL changes to the URL im am redirecting to. Thanks
stackexchange/codereview
Does anyone here know how to delete a variable from a matlab file? I know that you can add variables to an existing matlab file using the save -append method, but there's no documentation on how to delete variables from the file. Before someone says, "just save it", its because I'm saving intermediate processing steps ...
stackexchange/codereview
Ok folks just installed the June DirectX SDK, been reading through the documentation. Set up my visual studio pointing to the correct Lib Include and Executable files using a user variable. $(DXSDK_DIR) which is set to the SDK file path I tried a tech demo at random it worked happy days! Decided to start into the tutor...
stackexchange/codereview
What is the proper way to bulk insert entities which contain collections of other entities (a HasMany mapping), using stateless sessions? E.g. Parent class is mapped like this: class ParentMap : ClassMap<Parent> { public ParentMap() { Id(x => x.Id) .GeneratedBy.Increment(); HasMany(x...
stackexchange/codereview
please help me to create the following xml layout for the row of my listview Here the Text is written in a textview and remaining 5 boxes are 5 different ImageView, and the Images should be clickable. Main problem is how thetext comes over the images.
stackexchange/codereview
I'm monitoring a subcontracted supply of a software component managing some low level network communications. Reviewing this component i found this: public static object SyncRoot { get { return syncRoot; } } Within this very essential class nearly any method uses this lock object while doing things. Now i wonder if th...
stackexchange/codereview
I have a functionality on a website in which the user logs in and then a list of files available for download is showed. When he clicks on the file, it should show a download dialog with the options for open with the application if one is installed for the filetype (like Acrobat Reader if it is installed, for example) ...
stackexchange/codereview
I have ASP.NET page, Page1 and there is a gridview. There is also a linkbutton which takes user to Page2. And, once user clicks a button on Page2, the page is redirecting to Page1. I want to rebind the gridview on the Page1 with previous gridview again upon coming back from Page2. So I am passing the gridview in the ...
stackexchange/codereview
Accustomed to SVN, I always do an 'update' before sharing any changes, so before making any pushes I always pull first. It's annoying when I pull (even though there weren't any changes to the remote) and see a commit for a merge with 0 changed files with 0 additions and 0 deletions. Commits like: https://github.com/UC...
stackexchange/codereview
I need to Positioning a DIV tag in top of the page like in the StackEchange top menu bar i used to following code but there is the space div.topbar{ width:100%; background:#C0C0C0; border:1px; border-color:gray; border-style:solid; text-decoration:none; font-family:Arial; top:auto; }
stackexchange/codereview
I'm working with a school that requires Wordpress to be installed in the cgi-bin. I'd like to put an htaccess in the public_html folder so it redirects to the cgi-bin. Example: Redirect from /dept/my-dept/ to /dept/my-dept/cgi-bin? Also is it possible to "hide" the cgi-bin from the URL altogether? Obviously, I can't m...
stackexchange/codereview
I have been trying to build LibCurl with SSL support for 2 days now, and I have followed about every guide on the internet, and google'd errors for hours. I finally got it to compile fine, but when I link to it, I am getting the linker errors listed below. I am building with... nmake -f Makefile.vc9 OPENSSL_PATH=c:\dev...
stackexchange/codereview
Hi i m really new in image processing in C# and the code below basically getpixel from the image I browsed from my computer and will compare the RGB value of the pixel with the right pixel and if its the same value, it will setpixel to cyan color. the problem is with the getpixel, it is really very slow even on a small...
stackexchange/codereview
I am trying to accomplish 3 fairly standard url mods in my htaccess file, but unfortunately I am getting thrown in a loop. What am I doing wrong? # force a trailing slash RewriteRule ^profile/([^/]+)$ /profile/$1/ [R=301,L] # check for trailing parameters RewriteCond %{QUERY_STRING} ^(.*)$ # put it all together Re...
stackexchange/codereview
Here is my current code.. <form action="js.php" method="post"> <input type="button" id='approve' value="Yes" onclick="a()" class="approve" /> <input type="button" id='reject' value="No" onclick="r()" class="reject"/> <input type="submit" name="submitted" value="TRUE" /> </form> This is my form and the page title is j...
stackexchange/codereview
My application is causing 10m of memory leak in one scenario. But when i debugged with valgrind, the following is the leak summary. 812 ==18074== LEAK SUMMARY: 813 ==18074== definitely lost: 0 bytes in 0 blocks. 814 ==18074== possibly lost: 3,424 bytes in 20 blocks. 815 ==18074== still reachable...
stackexchange/codereview
I was just on http://www.google.com/finance and noticed on the middle of the page an awesome looking scrollbar. How does Google create this scrollbar look/feel? Note: this scrollbar is different than what Google used with it's Wave product. Screenshot UPDATE: The scrollbar doesn't appear immediately. Do NOT refresh the...
stackexchange/codereview
I need to have a index page and it can pull out the title (with link), meta key description and meta key image (meta keys from custom fields) of its child pages, but only one level down. e.g. I have a index page call WORK, and few child index PRINT, WEB. there will be some pages under PRINT and WEB as well, but I don't...
stackexchange/codereview
I have two domain code: public class domain1{ private string domain1Name; private List<domain2> domain2List; /* getter setter */ } public class domain2{ private string domain2Name; /* getter setter */ } and i have a Spring Controller returning a map then pass it to the model with the following function: @Suppress...
stackexchange/codereview
I have a button onclick of which a jquery dialog appears with two input fields which are jquery datepickers. Whenever the dialog appears, the first fields gets focus automatically, hence the datepicker pops up. I have resolved this for now by adding another dummy input field. Is there a better way ? Sorry if the questi...
stackexchange/codereview
I would like to know if there is any open source light-weight JMS API which can be embedded right in to my web application
stackexchange/codereview
When using extern on classes it is giving me undefined reference, but when I make the function I'm calling from that class "static" it works fine. Is there anyway to do it without using a static member function? My test code: #include <iostream> class MyClass { public: void print() { std::clog << "print()...
stackexchange/codereview
I'm trying to log an object in log4net using a custom renderer. My configuration file has the following line: <renderer renderingClass="LogLibrary.Log4NetObjRenderers.PdaLogObjRenderer" renderedClass="LogLibrary.TranferObjects.PdaLogObj" /> But I get a TypeLoadException when loading the configuration file, and log4n...
stackexchange/codereview
I have problem with after 'refreshing' my Google Map, I am not able to place in marker by myself(Clicking). But before refreshing my map(With the initialize one), I am able to place marker in by clicking. May I know what's wrong with the code? Below are my codes... //Initialize the map function initialize() { var...
stackexchange/codereview
I work on a theme that allows Registered Users to post on a Wordpress Blog, I created a form (title, category, entry). The question is, how can I add a new checkbox "Notify me when new answer is posted"? I need a function, not a plugin. Here is the function that handles the question posting: function post_new_question(...
stackexchange/codereview
Hello I am a newbie working with jQuery and Ajax. I am trying submit data to the server using Jquery POST method. And the data that I am passing is a string. Now I am unable to understand how do I pass the data and how do I retrieve the data. I have tried searching for articles for my problem, but I have found none. I ...
stackexchange/codereview
I've been banging my head against the wall with a really annoying issue. I have two model classes: class User extends AppModel { var $name = 'User'; var $hasMany = array( 'Application' => array( 'className' => 'Application', 'foreignKey' => 'user_id', 'dependent' => f...
stackexchange/codereview
I'm not a solid GUI programmer, so I'm trying to understand different event architectures. I'm developing a system (in GWT, but I'm not sure that matters) where we are introducing a few custom events. In general, is it good practice to create an event and have the event fire itself onto to the event bus? Following som...
stackexchange/codereview