instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a C++ application that loads lots of data from a database, then executes algorithms on that data (these algorithms are quite CPU- and data-intensive that's way I load all the data before hand), then saves all the data that has been changed back to the database. The database-part is nicely separate from the rest ...
stackexchange/codereview
I have a list of thumbnails. When a user clicks on a thumbnail I'm going to show the full-size image... Question is I want to show a spinner until the image is fully downloaded. is there a way in jQuery to know when an image is fully loaded and ready to be rendered in the browser? Also is there a way to get the image d...
stackexchange/codereview
if i trying to access this url http://localhost/common/news/33/+%E0%B0%95%E0%B1%87%E0%B0%B8.html , it shows an An Error Was Encountered, The URI you submitted has disallowed characters. I set $config['permitted_uri_chars'] = 'a-z 0-9~%.:??_=+-?' ; ..// WHat i do ?
stackexchange/codereview
Is there a way to get the property name of the value that was passed into a function?
stackexchange/codereview
I'm about to begin designing the architecture of a personal project that has the following characteristics: Essentially a "game" containing several concurrent users based on a sport. Matches in this sport are simulated on a regular basis and their results stored in a database. Users can view the details of a simulated...
stackexchange/codereview
In our rails 2.3 app, I've set up a rescue_from for routing errors as follows: rescue_from ActionController::RoutingError, :with => :redirect_or_render_error rescue_from ActionController::UnknownController, :with => :redirect_or_render_error rescue_from ActionController::UnknownAction, :with => :redirect_or...
stackexchange/codereview
first of all, sorry for my english I'll try to explain my problem: 1st) Server retrieve an image from Database, in the Database i've only the path, then i encapsulate the image in a XML and i send this XML to the client. 2nd) The client decapsulation the img, so the client has an array of bits with the image. it's not ...
stackexchange/codereview
I'm having a problem counting the number of words in a file. The approach that I am taking is when I see a space or a newLine then I know to count a word. The problem is that if I have multiple lines between paragraphs then I ended up counting them as words also. If you look at the readFile() method you can see what I...
stackexchange/codereview
I'm working on an app which allows users to view images, so I'm sending an intent to let the Gallery display the image. For some reason, it takes several seconds to display the image. LogCat shows it trying to connect to "GoogleLoginService"? Why does gallery connect to the internet? Can this be turned off on the phone...
stackexchange/codereview
I am trying to install Android on Beagleboard (TI's OMAP35x chip). They have provided toolchain to build the OS and port it on the chip. Now the next question is developing Android apps. I am interested in knowing about the Java SDK for android. So can I use the standard SDK provided by google, so far I cannot find any...
stackexchange/codereview
Does anyone know how to style tr as we like? I've used border-collapse on table, after that tr's can display 1px solid border I give them. However, when I've tried -moz-border-radius, it doesn't work. Even simple margin doesn't work.
stackexchange/codereview
Supposing I have this query: var ps = from p in dc.Products let text = (from t in p.Text orderby t.Language == "ja" descending select t).FirstOrDefault() select new { p.Id, text.Name }; Is there any way to refractor the query being assigned to text? My guess i...
stackexchange/codereview
I'm seriously considering moving away from CF8 cflogin because it is tied to the server that spawned the login. In a load balanced environment you're stuck with sticky sessions if you don't do a custom implementation. Does anyone have any source that mimics CFLogin that writes to and is managed from the client scope? ...
stackexchange/codereview
which library tool(round textured,textured button,etc) shall i use for displaying boxes at right corner of uploaded image,also please give me the list of different tools shall i use for all those data(multilined text,clear logs,small images at left corner, etc) from uploaded image. please reply
stackexchange/codereview
{% if request.session["user_name"] %} <div class="abcd">user has username</div> {% else %} <div class="abcd">user doesn't has username</div> {% endif %} Is it illegal? There are errors: TemplateSyntaxError at /users/register/submit Could not parse the remainder: '['user_name']' from 'request.session['user_name']'
stackexchange/codereview
In the django admin I have a TabularInline for a ManyToMany field with a raw_id_fields set. It displays the unicode() of the object next to the html input field. I would like it to display the an email link. So in the unicode() function of the model, I put in the html tags to create a link. However, it is displaying th...
stackexchange/codereview
can someone explain why this doesnt work: string f = string.Format("\\x{0:00}{{0}}", 5); string o = string.Format(f, "INSERT TEXT"); System.Diagnostics.Debug.WriteLine(f + " : " + o); Output is: \x05{0} : \x05INSERT TEXT why does the \x05 not get replaced?
stackexchange/codereview
I have the following... <ul> <li>Item</li> <li>Item</li> <li>Item</li> </ul> <ul> <li>Item</li> <li>Item</li> <li>Item</li> </ul> <ul> <li>Item</li> <li>Item</li> <li>Item</li> </ul> I need to drag each item from one ul to another, but avoid duplications in the same ul and just add the item to the dr...
stackexchange/codereview
I'm trying to match anything between and including style="" eg: style="whatever:0; morestuff:1; otherstuff:3"
stackexchange/codereview
Hey all, working on a C++ little game, "Connect 3." This is just like Connect 4, except we only need a match of 3 to win the game. I am storing my board in a 2D vector, which holds ints. vector< vector<int> > vector2d; And I have an "X" stored as a 1, and an "O" stored as a -1, with 0 being an empty space. It seems...
stackexchange/codereview
I have subclassed NSWindow in a NSDocument application in order to receive keyDown events. I have used the following code in my subclasss... - (void)keyDown:(NSEvent *)theEvent { NSLog(@"keyDown!"); if ([theEvent modifierFlags] & NSAlternateKeyMask) { NSLog(@"Alt key Down!"); } else [s...
stackexchange/codereview
As subject says. I would like to identify the configuration (Debug, Release, whatever), which is currently set in XCode during compilation Sort of: #if Configuration #endif Does one know?
stackexchange/codereview
i want to add a 2 project as a reference to another project in C#
stackexchange/codereview
I want to develop a toolbox from scratch just like in Visual Studio. What should I be studying for or focusing on? It would be helpful if I could get a head start by seeing an example from the ground up. Thank you.
stackexchange/codereview
I have an if statement that I want to execute if a certain variable does not have the <br/> element in it. How would you do this? I tried var str = "hello<br/>goodbye"; if( str.search("<br/>") == false) { //execute certain code } but this did not work.
stackexchange/codereview
I am trying to run a query where I get the name of locations and the number of items in that location. So if i have a program that contains 3 locations I want to know how many programs are in that location..I need to use this with a lambda expression or linq to entities. return Repository.Find(x => x.Location.Name.Coun...
stackexchange/codereview
Currently I'm working on a reporting website in VS 2010 using ASP.Net 4.0 and the 2010 RDLC designer. The report I'm building is similar to a Master-detail report, but I'm trying to do it with nested tables. My issue is that I'm trying to pass a field value from my main report to a sub report. The table setup looks som...
stackexchange/codereview
I have declareted the fallowing Mapping for NHibernate: <class name="Sales" table="Sales" lazy="false" > <id name="Id" column="Id" type="Guid"> <generator class="assigned"/> </id> <version name="ObjectVersion" column="ObjectVersion"/> <property name="Number" column="Subject" typ...
stackexchange/codereview
As I am reviewing and prototyping my android project, I noticed that there is a view that has a list of items that are very customized. I have figured out most of my tools that I plan to use but I need some advice. I have a list of items which can contain photos, some text to the right, an image to the bottom and more...
stackexchange/codereview
I'm trying to get the last tweet from the people I follow using the twitter api (http://api.twitter.com/1/statuses/friends.json&screen_name=[username]), but I noticed that if the user's last tweet is a retweet, the json data does not contain a "status" element. Using the "user timeline" api does not work either, the la...
stackexchange/codereview
I'm trying to run following code: some_sock.async_connect(...); // handle_connect() sets the 'condition' flag boost::asio::deadline_timer t(ios, boost::posix_time::seconds(2)); while (t.expires_from_now() >= boost::posix_time::seconds(0)) { ios.run_one(); if (condition) return; } Desirable behavior is return from...
stackexchange/codereview
I have a table of user ids that is huge. I have an array of user ids that I want. I have two tables that have a foreign user id key. What is the best way to get this information performance wise? Ideally in SQL the final result would be somewhat like this (null values if there is no user ID in one table but not the oth...
stackexchange/codereview
I already know how to enable the numeric keyboards and validate the field input to ensure it's numeric. What I want to know is how to set up an input view that'll let my user enter a number value from right to left, like a calculator or ATM machine. In other words, I want the user to be able to type: 2 0 0 4 9 and hav...
stackexchange/codereview
i am trying to capture the return value of simple command: i.e: pwd where can i find the relevant return value without stdout it to file? Thanks koby
stackexchange/codereview
I need to update lots of records in one table (around 300k to 500k) and delete several million in another table. As this takes some time, i'm using LIMIT to do this in block so I can show a progress bar to the user. My first small question is, why can I uses the following statement in SQLiteSpy but not when I use the A...
stackexchange/codereview
I've unzipped and detarred the solaris install package from the mongo site - version 1.6.3. When I try to run the ./mongod command I get the following (running as root): $ ./mongod bash: ./mongod: Invalid argument Same thing happens for the rest of the executables. I've created the data folder as per the instructio...
stackexchange/codereview
I am reading strings in C++ using fread where I am reading and storing shortSiteText in siteNames_. siteNames_ is declared as std::vector<char*> siteNames_; I use siteNames_ in other functions but because shortSiteText is a pointer, when I call the delete command on it, the last entry in siteNames_ is changed. How do ...
stackexchange/codereview
When i open Delphi XE get this message and i must close IDE. message : Danger: stack overflow - save your work and restart Delphi XE I uninstall Delphi and cpp XE and reinstall them, but already get this message. Why?
stackexchange/codereview
I'm trying to send geo fixes to the Android Emulator in Eclipse. It has been working in some locations, but now it never works. I've tried targeting different platforms, setting the time zone in the correct emulator, changing the locale to English (US), wiping the user data in the emulator, used both telnet geo fix com...
stackexchange/codereview
I have a block of this code in my helper: if !shop.directions.blank? "<ul>".html_safe + shop.directions.each do |direction| "<li>#{direction.direction}</li>".html_safe end + "</ul>".html_safe else "No directions available.".html_safe end + It's showing memory location of directi...
stackexchange/codereview
I have the following data- IList<int> mylist= new List<int>(); int value=0; ViewData["URL"] = "/Services/Getdata/?value="+&value+"&mylist="+mylist; // It hits this function public void Getdata(int value,IList<int> mylist) {} Now the problem is the list is not being passed over correctly...I am...
stackexchange/codereview
I have files in a dir. I need to append a new line and the file name at the end of each file.
stackexchange/codereview
I'm trying to add custom files to our web deployment package, per this blog posting: http://sedodream.com/2010/05/01/WebDeploymentToolMSDeployBuildPackageIncludingExtraFilesOrExcludingSpecificFiles.aspx <Target Name="CustomCollectFiles"> <Message Text="AppBuildFolder = $(AppBuildFolder)"/> <ItemGroup> ...
stackexchange/codereview
Possible Duplicate: Streaming Audio MMS:// to the iPhone I have been trying to find the solution for this but I haven't found out anything yet. Please help me with this if you have any idea about this problem
stackexchange/codereview
From what I can tell, the notion of "Shift", "Alt", and "Control" are pretty well hard coded from the keyboard itself right through the OS APIs. Sometimes I see the Windows key used as a modifier, but it doesn't seem to register as a "real" modifier key, any more than any key on the keyboard would. But could a person ...
stackexchange/codereview
Is it possible to trigger a change event on a select field when the selectedIndex or val is set with jQuery? I've tried it and it doesn't seem to work. I'm attempting to replace a select field with one of my own design. The issue is if i attached a change event to a select field, when the index is changed it needs to f...
stackexchange/codereview
How can I add space character in the ruby array if I want to use %w(a b c) syntax?
stackexchange/codereview
I've read online for a while now that using indexes really speeds up your database queries. My question is what are indexes? Why do they speed queries up?
stackexchange/codereview
Assuming Stack Overflow domain problem and the following definition of events: UserRegistered(UserId, Name, Email) UserNameChanged(UserId, Name) QuestionAsked(UserId, QuestionId, Title, Question) Assuming the following state of event store (in the order of appearance): 1) UserRegistered(1, "John", "john@gmail.com") 2)...
stackexchange/codereview
i create an instance of a Person class using reflection and execute its constructor and after that i execute another function of the person class called "Execute": Assembly assembly = Assembly.GetEntryAssembly(); object personObject = assembly.CreateInstance("ReflectionTest.Person"); // Call Constructor var ctor = per...
stackexchange/codereview
I know that until 3.5, .Net uses the byte code defined in .Net 2.0. I am wondering whether the new 4.0 byte code changes or not. Thanks! As the latest ECMA standard file is still the 2006 one, I suspect the 4.0 does not change the byte code. EDIT: I did a little search on the web and found that CIL are .Net bytecode a...
stackexchange/codereview
I downloaded Microsoft platform SDK. I tried to build the sample project LSP under C:\Program Files\Microsoft Platform SDK\Samples\NetDS\WinSock\LSP I got the following linking errors: asyncselect.obj : error LNK2001: unresolved external symbol "struct HINSTANCE__ * gDllInstance" (?gDllInstance@@3PAUHINSTANCE__@@A...
stackexchange/codereview
I am using automapper to map my models to viewmodel classes to pass to my view. My question really is where should the validation go? I was planning on using the MetaData decorations - a feature of mvc 2. But either in the model or viewmodel? Or in both places?
stackexchange/codereview
I have a control: <input id="trigger_update_submit" type="image" src="images/green_flag.png" alt="" name="set_this" value="uu" /> This control is activated by some javascript: document.getElementById('trigger_update_submit').click(); The problem is that the value of "uu" is not posted to the receiving page. All other...
stackexchange/codereview
How to write escape character "\" to string?
stackexchange/codereview
I'm making a c++ game gui lib and wondering when i should be throwing exceptions. Right now, for example, if I get a NULL pointer, the function silently fails. Should I instead throw an exception? Its not something that would really cause it to crash though. What are some examples of good places to throw exceptions? th...
stackexchange/codereview
I'm trying to load trivial-shell on Mac OS X. When I execute the following command: (asdf:oos 'asdf:load-op :trivial-shell) I get the following error: decoding error on stream #<SB-SYS:FD-STREAM for "file /Users/paul/lispsystems/trivial-shell.asd" {129D4569}> (:EXTERNAL-FORMAT :UTF-8): the octet sequence (180)...
stackexchange/codereview
I have setup my app in iTunes Connect, with an In App Purchase. It has been 24 hours and I am still getting zero products back from SKProductsRequest. I am wondering if there is a problem with which provisioning profile I am using. I created a new App ID and used that App ID to create a Development and Distribution Pro...
stackexchange/codereview
Kinda new to Silverlight and have some experience with WPF but I'm doing a project with a group for a class making a game for WP7. I am currently in charge of the menu system for the game and I had a few ideas for "flashy" menu transitions. I got some going for the main menu but I wanted to do something cool for the op...
stackexchange/codereview
What are the Java EE frameworks for developing e-commerce applications? Thanks
stackexchange/codereview
I have two classes ModalWinodw and SkinnableWindow both are extending Window class. I want to create class that has function from both classes, but in Java class can extends just one superclass. So how to solve this?
stackexchange/codereview
Here's my connection string: // Initialize a connection string string myConnectionString = "Provider=SQLOLEDB;Data Source=hermes;Initial Catalog=qcvaluestest; Integrated Security=SSPI;"; How would I create a table in the database and insert rows into it?
stackexchange/codereview
I am creating a lite version of my app, and used Chris Fletcher's blog here as a guide to setting up an Xcode project for multiple apps. I have everything working great except for the icon file. Here is an overview of what I have: 2 info.plist files (One for each version of the application) In my paid info.plist, I r...
stackexchange/codereview
i am implementing puzzle game application in this application create one button in click the button display original image of the puzzle .original image display in dialog box then click ok return in to actual page how can implemented bitmapOrg = BitmapFactory.decodeResource(getResources(),mThumbIds[GameActivity....
stackexchange/codereview
I recently found out that you can send an email to a mobile number (e.g: [number]@[provider].com) for free in a lot of countries which is cool! Unfortunately I live in Australia and my mobile provider doesn't allow free Email to SMS so I can't test it at present. Has anyone worked with this sort of thing before? In an ...
stackexchange/codereview
In my application there are three activities A -> B -> C -> A. I want to detect application's idle time, so that after 15 mins it will pop up a message irrespective of activity. what is the best method to implement this.
stackexchange/codereview
The curl Command is working on one server and does not work on other. > $ curl http://yahoo.com > <HEAD><TITLE>Redirect</TITLE></HEAD> > <BODY BGCOLOR="white" FGCOLOR="black"> > <FONT FACE="Helvetica,Arial"><B> The > document you requested is now <a > href="http://www.yahoo.com/">http://www.yahoo.com/</a>. > Please up...
stackexchange/codereview
I have some XML files on my PYTHONPATH that I would like to load using their path on the PYTHONPATH, rather than their (relative or absolute) path on the filesystem. I could simply inline them as strings in a Python module (yay multiline string literals), and then load them using a regular import statement, but I'd lik...
stackexchange/codereview
Is there a built-in method in boost to find the lowest common ancestor of two or more nodes in a tree (which is a boost::graph instance)? If not, I would appreciate suggestions on the best way to do this. Wikipedia claims there are efficient algorithm to achieve this in O(1) time (with O(n) pre-processing), but it does...
stackexchange/codereview
I work on VS 2010 .net 4.0 , my app had winForm with many controls. sometime i occur very starnge designer error: Could not find type 'Namespace.TypeName'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been su...
stackexchange/codereview
I think this question has been asked like a million times, but none of solutions suggested worked for me. Here is my sample implementation public class FooImpl2 implements Foo { private int a = 100 ; private String b = "I am FooImpl2"; private boolean c; public int getA() { return a; } ...
stackexchange/codereview
I need to load dynamiclly video in flex video player on the web,I'm using standard video player component,when page load a want to load a video in it.I'm not flex programmer,can someone help me with this?Tnx.
stackexchange/codereview
I'm developing an app for a fan page. How can I post something from the app to the fan page wall? What permissions do I need to ask from the user?
stackexchange/codereview
I'm working For my company on a .NET N-tier architecture and have several questions. Basics: the project should be split into layers and should not allow tues develop as easy as possible additional modules for modules like logging, ratings, user management etc. Environment: VS2010, EF4, SQL Server 2008, LinqToSql, c# C...
stackexchange/codereview
I have a asp.net website that is hosting a WCF service. This service is then accessed from a desktop app. In my service the HttpContext is always null during the execution of the Validate method in my implementation of the UserNamePasswordValidator class. I'm using Username as the client credential type. I need access ...
stackexchange/codereview
I want to run the following command from PHP (script.php): $output = shell_exec("svn checkout https://IP_REPOSITORY/svn/project/ /home/MY_DOMAIN/domains/MY_DOMAIN.com/public_html/"); Nothing is executed and no error is shown if I run script.php file. (File has permissions set to: 777). What should I do so the script ...
stackexchange/codereview
Is it possible to use Except() for two List's that have two different classes but a common field? I have List<User1> and List<User2> collections. They have different properties except Id column and I want to find the different records between them using this Id column. I'm trying to use List<>.Except() but I'm getting ...
stackexchange/codereview
I have an app designed for iPhone that makes use of the UIImagePickerController. The app run in landscape only up until the image picker comes into view in its default portrait. Problem 1: On the iPhone when I rotate the device to portrait to view the image library the image picker view seems to do a flip as if rotat...
stackexchange/codereview
I have a large form, in the end of the form a user is presented with a summary: You have entered: <table> <tr> <td>First name</td> <td><?php echo $firstname ?></td> </tr> <tr> <td>Last name</td> <td><?php echo $lastname ?></td> </tr> </table> I first designed the summary...
stackexchange/codereview
What is the best way to generate a 'fingerprint' of user unique-ness in PHP? For example: I could use a user's IP address as the 'fingerprint', however, there could be multiple other users on the same IP I could use the user's IP + user agent as the 'fingerprint', however, a single user could simply swap from safari t...
stackexchange/codereview
str2 = "Global" class InClass: str2 = "Class" def Set(self, msg): self.str2 = msg def Print(self): print(str2) g = InClass() g.Set("Instance") g.Print() If I run this code, I get "Global" as result. But I cannot understand why. By calling Set() method of instance g, variable str2 is now in the namespace of in...
stackexchange/codereview
I was trying to create an xml which contains a large data using XMLWriter, the function has executed with out any exception.But when I opened the XML, I found that the created XML was not complete, it was broken in mid way.I dont know what I am doing wrong .Is there any default size limit for XMLWriter? Is XMLWriter th...
stackexchange/codereview
I am aware that I can use array_unique(array_merge($a,$b)); to merge two arrays and then remove any duplicates, but, is there an individual function that will do this for me? (I know I could write one myself that just calls these, but I am just wondering).
stackexchange/codereview
I have written a script that checks a set of radiobuttons to be checked. But due to different possibilities different radiobuttons will show. Is there a way to suppress JavaScript errors when it pops undefined/getElementById is null? Something like the @-char does in PHP? Update: A bit more background info. I've made ...
stackexchange/codereview
I'm asking on behalf of somebody, so I don't have too many details. What options are available for indexing site content in an ASP.NET web site? I suspect SQL Server's Full Text index may be used if the page content is stored in the database. How would I index dynamic and static content if that content isn't stored ...
stackexchange/codereview
I have SQL Server 2000 and I have a stored procedure that has @output as varchar(8000) and I have a loop that keeps concatenate the result into @output and at the end I made select @output My problem is the output length is truncated to the first 256 characters only!!! Other characters (output) is missing. I tried to u...
stackexchange/codereview
I've got a problem that I think is probably straight forward but I can't seem to wrap my head around it. I've got a tableview that loads from an array of NSDictionaries. Each Dictionary has a title (shown in the row) and an associated nssstring representing a viewcontroller that should be pushed onto the stack when th...
stackexchange/codereview
how do i select all records matching following criteria: take all records with meeting_id = x AND it's parent is available OR doesn't have parent but don't care if available itself ? table people: id, name, address, meeting_id, available, parent_id
stackexchange/codereview
I readed many forums, but never found some analogue case. Javascript canvas font displays in a flickering fashion. The conditions appears to be: scale of the canvas is not an integer (for example setScale(0.1,0.3)) setTransform(1,0,0,1,0,0); and setScale are used widely to restore setting at every draw of new objects....
stackexchange/codereview
I am building a little application in Rails and what I am trying to do now is authenticate a user. So I got this method in the controller class: def login if @user = User.authenticate(params[:txt_login], params[:txt_password]) session[:current_user_id] = @user.id redirect_to root_url end...
stackexchange/codereview
Tried to export working android project from eclipse. The screen is frozen at page "Export Android Application". "Next" button is grayed out. Same project runs fine on emulator and HTC as well. Please help.
stackexchange/codereview
I have an application that consists of three parts: a front-end web shop for end-users and business partners an order-management system to handle those orders a technical database system to handle all the technical details of those products and services ordered Today, those systems (which are on separate servers and ...
stackexchange/codereview
I want to have a Dictionary where the values are generic objects and will not be the same for each value int he dictionary. How can this be done, I feel like I am missing something simple. EG public interface IMyMainInterface { Dictionary<string, IMyInterface<T>> Parameters { get; } } public...
stackexchange/codereview
i'm developing some kind of heuristics for a variation of the vehicle-routing-problem in C++. After generating a solution, i want to plot this solution. The solution is a composite of various tours, all starting and ending at a common depot. Therefore i have a vertex-set with all the coordinates and edges defined by tw...
stackexchange/codereview
After the 1st call to LoadData() the event onLoadResource fires as it should and the display is fine. Next I want to refresh the screen with a new page, when I use LoadData() the second time the page does not update and onLoadResource() DOES NOT FIRE. Then second call to LoadData() onlyfires onPageFinished ... onPageS...
stackexchange/codereview
I have designed a gridview with a radio button inside the itemtemplet. I also have a confirm button. A user is allowed to check several radio button and when a confirm button is pressed then database is updated with the value of radio button. But when i check the button it is shown as checked in UI but when I check t...
stackexchange/codereview
There is integer variable, voltage in millivolts. signed int voltage_mv = 134; //134mV I have 2-segment display and I want to display hundredths of volts. How can I convert milivolts to hundredths volts in one operation? Without IF statement, without function? 134 => 13 135 => 14
stackexchange/codereview
I'm really new to Perl, but I want to basically read in a file to get some data out of it. I want to parse this data into an array. Why an array? Because, I want to use the data to generate an graph (bar or pie of the data). Here's my code for Perl so far: #!/usr/bin/perl -w use warnings; #Creating an array my @cpu_u...
stackexchange/codereview
I am implementing the Wicket IBehavior interface and want my behavior change the body of a component (or somehow update the model) from the onComponentTag method. Is there a way to do this? @Override public void onComponentTag(final Component component, final ComponentTag tag) { String myValue = tag.getAttribute("m...
stackexchange/codereview
What would be the most effective way to take an XML string of type std::string and convert it to an in-memory XML object, the object structure is of no importance, what I'm after is whether I'd need to go through the string char by char and pick out all the pieces or if there is some easier way?
stackexchange/codereview