instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Could anyone points out the docs which describes how the fixture can be done with XML?
stackexchange/codereview
I am trying different kinds of parallelization using OpenMP. As a result I have several lines of #pragma omp parallel for in my code which I (un-)comment alternating. Is there a way to make these lines conditional with something like the following, not working code? define OMPflag 1 #if OMPFlag pragma omp parall...
stackexchange/codereview
i have created a rest service int dotnet which inserts one data at a time from an android client(as json format).. is it possible to insert multiple data from android client to my rest service??
stackexchange/codereview
I have to write a faster canvas in wpf for my upcoming project. The canvas will be similar to adobe photoshop canvas. It should have layers and objects and also direct drawing methods. I am thinking to write the canvas in vc++ or in c# and use it into wpf. Is it a good idea to write the canvas in any other language and...
stackexchange/codereview
How can i add and remove dynamically component through jquery? I want on click Add on my page add one row and then in that row there will be new text box and same in delete on click Delete button on my page selected checkbox rows must ve deleted with its components like text box how would i do with jquery?
stackexchange/codereview
We do database releases which are made up of a group of change sets and our database change logs are organised in the following way MasterChangeLog.xml ---> Release0001.XML ---> AddCustomerTable.XML ---> AddOrderTable.XML ---> Release0002.XML ...
stackexchange/codereview
how can I set the Cursor on a Component to a "background activity" cursor. Like the one in Windows with the arrow and the small hourglass. All I find ist the Cursor.WAIT_CURSOR, which is only an hour glass. I found the file which contains the cursor: appstart.ani in C:\WINDOWS\Cursors can I use that somehow?
stackexchange/codereview
I have several gridviews. In each of them, I copy the contents to the clipboard using code like this: GV_Master.SelectAll(); DataObject dataObj = GV_Master.GetClipboardContent(); Clipboard.SetDataObject(dataObj, true); GV_Master.ClearSelection(); On most cases this works as intended, copying the entire contents of th...
stackexchange/codereview
Edit: I fixed my mistake: I'm using a set and not a vector. Please consider the following example code: set<Foo *> set_of_foos; set_of_foos.insert(new Foo(new Bar("x"))); set_of_foos.insert(new Foo(new Bar("y"))); [...] // The way a "foo" is found is not important for the example. bool find_foo(Foo *foo) { return s...
stackexchange/codereview
I`m using JQuery to load a JPEG image (as a css background) with some text over it. The text renders fine in every browsers except Explorer (6 and 7 on XP, and 8 on W7), where the anti-aliasing transparency is done against the color black instead of the image. If I load the image and text directly in the HTML, it works...
stackexchange/codereview
Is there a way in SQLite to essentially undo the latest transaction after it has been committed? I'd like to revert the database to the state before a transaction or savepoint. I've looked at the rollback command, but it looks like it is limited to rolling back a pending transaction. Edit Could I create a savepoint na...
stackexchange/codereview
I'm just getting started with git and am running into a problem when attempting to clone a respository from github. There are several binary files (.exe and .dll) contained in the repo; when I make a clone of this on my local machine none of these binaries are valid (as far as windows is concerned). Attempting to execu...
stackexchange/codereview
I am new to mac, and I am in trouble. I need to bind NSTableView to 2D data at the back end so that I can have dynamic update of data at the front end. I have 5*10 data at the back end that I want to bind it to NSTableView. I have tried almost every approach, read every article, implemented examples from the internet b...
stackexchange/codereview
Will web sockets when used in all web browsers make ajax obsolete? Cause if I could use web sockets to fetch data and update data in realtime, why would I need ajax? Even if I use ajax to just fetch data once when the application started I still might want to see if this data has changed after a while. And will web soc...
stackexchange/codereview
The following command works fine: $>cscope -b -R However, the option for inverted index does not work: $>cscope -b -q -k -R Input file specified two times. cscope: cannot create inverted index; ignoring -q option cscope: removed files ncscope.in.out and ncscope.po.out I googled this one and found some hits. Bu...
stackexchange/codereview
My question is simple. Why wrong pattern matching does not throw exception in Maybe monad. For clarity : data Task = HTTPTask { getParams :: [B.ByteString], postParams :: [B.ByteString], rawPostData :: B.ByteString } deriving (Show) tryConstuctHTTPTask :: B.ByteString -> Maybe Task tryConstuctHTTPTask str ...
stackexchange/codereview
I'm trying to build a webpage which contains some tabs, by clicking on a tab, it will use AJAX to load content below the tabs. The problem: In older versions of Internet Explorer clicking on a tab will result in getting redirected to the tab link, instead of loading the content behind that link via AJAX. My html code: ...
stackexchange/codereview
Below code returns ? rather than a random character. Any ideas? Please note that i wrote this as pat of an exercise on method overloading hence the 'complicated' setup. class TestRandomCharacter { public static void main(String[] args) { char ch = RandomCharacter.getRandomCharacter() ; System...
stackexchange/codereview
This is a new application, and I have an index method on a Search controller. This also serves as the home page for the application, and I'm trying to decide if I am headed down the wrong path from a design pattern perspective. The method is already 35 lines long. Here is what the method does: 3 lines of setting varia...
stackexchange/codereview
I would like to remove all CSS background images for a given element and all of its children with Javascript. This question is sort-of a spin off on another question I asked. The end goal is the same, to skin jQuery UI widgets. I am currently using jquery/jquery-ui if any of would use these to solve the problem. Any...
stackexchange/codereview
I was asked to grant permissions to several TFS users. These users must have access to one branch only. How can I do this? I'm going to create new TFS user group and deny access to root of Source Control, then allow access to necessary branch. What do you think?
stackexchange/codereview
I want to place two views side by side like they did in the MAIL app for the ipad. Is this possible with UINavigationController? I would like to place two UINavigationController side by side Dont worry about the syntax I just want to know if it is possible UINavigationConroller *left; UINavigationController *right; ...
stackexchange/codereview
I would like some advice on the best approach for transferring DB data from one SQL server to another. This is my scenario: Customers can make orders for products either through our website (hosted front end) or through our in-office call center (back end) Customers, once logged in, have a $$ balance that is displayed...
stackexchange/codereview
I have been scouring through the Internet trying to find a simple <li> rotator with the same functionality as that on the Twitter homepage(Top Tweets) before signing in. I'm going through a JQuery book but the rotator doesn't meet the simplicity of what I need it for...plus I'm a novice. Does anyone know how to achieve...
stackexchange/codereview
I've an application that has three layers: 1. data layer: exposes Entity Framework entities 2. business logic layer: queries the EF model, gets entities and should expose DTO (data transfer objects) 3. UI layer: queries BL, gets DTOs and view them. Now I've an issue. Different part of my application needs the same DTO ...
stackexchange/codereview
I have a element on my website which is freely resizable. This is done by 4 handles on the edges. On hovering these handles and while resizing the element I want to show the respective resize arrows. Currently I implemented this behavior by setting the css cursor style of the body/root to these arrows. The problem abou...
stackexchange/codereview
I have add a jQuery UI Dialog to my Rails 3 web app as follows: permissions = $('<div id="dialog-content"></div>') .html('<div class="notification"><h4>Loading...</h4></div>') .dialog({ autoOpen: false, dialogClass: 'dialog', width: 460, minHeight: 80, position: ['center',130], open: function()...
stackexchange/codereview
I've just had my first course in programming at the university and for the following three months I have no additional programming classes so I've decided to do a small project during this "break". What I'm trying to do is a edit-program for a smaller Wiki I used to work on. It's suppose to make it easier for the users...
stackexchange/codereview
I am using min3d for importing 3D model in *.obj format to android 1.6. However, I need to detect which face I am touching. So I intend to use color picking using the following code. FloatBuffer pixel = FloatBuffer.allocate(4); IntBuffer viewport = IntBuffer.allocate(4); gl.glGetInteger...
stackexchange/codereview
I'm trying trying to use to insert content after the nth html paragraph that doesn't contain an image. So far I haven't been able to properly exclude paragraphs containing images. What am I missing or is this outside the effective use of regex? My code so far: $content = ' <p><a href="#"> <img align="right" src="blah....
stackexchange/codereview
This is a simple javascript add row with functions, then I don't know how to limit the additional row e.g. for max. 5 rows, any idea and pointer or example(s) I would be appreciated <script type="text/javascript"> function addRow() { var newRow = document.all("tblGrid").insertRow(); oCell = newRow.insertCell(); oCell.i...
stackexchange/codereview
I am looking for a simple sample for doing schema aware XSLT transformation. My requirement are as follows: I have an input.xml that needs to be transformed to output.xml.The output.xml is generated conformant to a schema definition file (schema.xsd). Xslt should use the schema structures defined in schema.xsd while it...
stackexchange/codereview
I wanted to know if it is possible the comunication between two Android Emulators started on two different machines networked. For example - Emulator A run on machine M1 - Emulator B run on machine M2 Can A and B exchange messages? If yes, what ip address do I use? Thank you very much Deborah
stackexchange/codereview
How does one go about setting the weekend to a different color when viewing the monthly or weekly view.
stackexchange/codereview
Are there any arguments out there against keyword substitution (i.e. replacing $Revision$ with $Revision: 5$) as a feature in version control systems? I'm not looking for a debate. I'm looking for well thought-out arguments by people who think the feature is a bad idea. Here is one such argument: Keyword Substition: ...
stackexchange/codereview
Since it may be a good idea to have lines that are not wider than 80 characters in code files, what's the most effective way of recursively identify these lines in an existing project using Emacs? UPDATE: Using Trey's suggestion, I'm currently using the following code: (defun find-long-lines (base-dir) "Recursively l...
stackexchange/codereview
How can I access the data returned from the xhrGet outside of the get itself? Firebug shows that the "json" object has an array called results, which stores the json Object from the response, but when I try to access it it is null. So: how do I access the received data on the last code line? var json = dojo.xhrGet({ ...
stackexchange/codereview
We have a GWT app that is deployed on Tomcat. On the server, we have set a timeout of 1 minute httpSession.setMaxInactiveInterval(1*60) At the client-side, we set a few cookies with a timeout value of 1 minute as well. After 1 minute, we notice that the client-side cookies are removed; However the JSESSIONID set by t...
stackexchange/codereview
I have this weird situation where I have to accept email from my users. I want to be able to intercept an incoming SMTP message, see if it's authenticated (inspect the username/password myself and check those against my user database), then parse the message in full and do something (log a post in my application, for e...
stackexchange/codereview
Why does this work perfectly: SET @columnQuery = 'INSERT INTO ColumnNames SELECT ORDINAL_POSITION, COLUMN_NAME FROM information_schema.columns WHERE TABLE_NAME=''residents'' ORDER BY ORDINAL_POSITION;'; PREPARE STMT FROM @columnQuery; EXECUTE STMT; but this does not: DECLARE TableName VARCHAR(50); SET @TableName = 'r...
stackexchange/codereview
I am trying to create a flash banner add that utilizes the google maps flash api to display a store locator tool similar to this: http://portal.oggifinogi.com/Oggifinogi.DemoView/Latimes.aspx?pl=9b78efa4-ac0c-4a51-9516-8d0ebb5a1aa9&camp=bcb25763-d64d-4ba7-b673-8195ba50e9f1 I have been given an extremely tight deadline...
stackexchange/codereview
I'm looking for suggestions on how to handle multiple auth providers like twitter, facebook, google, openid within an MVC app. What is the general idea? I've got my own user detail table and i'm currently using ASP.Net membership authentication. When someone connects with facebook are you able to extract user detail in...
stackexchange/codereview
So I have a model created in Entity Framework 4 using the CTP4 code first features. This is all working well together. I am attempting to add an advanced search feature to my application. This "advanced search" feature simply allows the users to enter multiple criteria to search by. For example: Advanced Product S...
stackexchange/codereview
I have been struggling with this for hours. My SQLite insert always returns -1 ... Here is my code from the main activity in one file that calls my db code in another file: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); jobsdb = n...
stackexchange/codereview
I am not sure what to use in this scenario, but I think a Case statement is apt. I do not know the syntax however. Can someone please guide me? I have a variable called @Action which can have about 30 different values. I want to do something like this CASE WHEN @Action = 'InsertTbl1' THEN BEGIN -- Some Insert s...
stackexchange/codereview
I want to place a scrolling marquee in my html title tag using jquery but don't know how and can't seem to find a good explanation online anywhere. Can someone help me please?
stackexchange/codereview
I provide the linker with my files: ld-2.7.so, libc-2.7.so and crt1.o but it fails to compile successfully. Is it possible to link to a different glibc from the default one ? (Static compilation or installing a separate glibc is not an option.) gcc -Wl,-dynamic-linker,ld-2.7.so,libc-2.7.so,crt1.o -nostdlib program.c c...
stackexchange/codereview
I am having problems generating a QBOE connection key, when i follow the wizard to generate the connection key, the text box that sould have generated the key is simply blank. Can anyone help me?
stackexchange/codereview
I am attempting to insert a record in an Oracle table with a Function, which would be called through iBatis.NET. Function works as expected in Oracle when called directly. I have tried using <statement> and <insert> SqlMap but I can't get iBatis.NET to call the function, and Oracle doesn't support returning anything fr...
stackexchange/codereview
I have a handler for itemSelectEvent that gets called when an option is selected from the drop down. According to YUI documentation, this is fired when an item is selected via mouse click, ENTER key, or TAB key. Inside my handler, how can I find out which of these three options fired my handler? The handler takes two p...
stackexchange/codereview
I have a java string with some text and html: <title>test title</title> blabla bla more text What I am trying to achieve is two-fold: 1) Retrieve the content of <title></title> and save it in a separate string. 2) Remove that part of the original string: <title>test title</title> So the end result would be something l...
stackexchange/codereview
I'm trying to get the height, width, and placement of a section of HTML code, so that I can create a <div> with position: absolute to overlay the HTML in question. Sometimes this HTML is a single element, other times it's a bunch of elements. I've tried to wrap the HTML code in question in a <span> and then use $('#spa...
stackexchange/codereview
I am extracting emails from Gmail using the following: def getMsgs(): try: conn = imaplib.IMAP4_SSL("imap.gmail.com", 993) except: print 'Failed to connect' print 'Is your internet connection working?' sys.exit() try: conn.login(username, password) except: print 'Failed to login' prin...
stackexchange/codereview
I want to create separate textbox for numbers and string using c# code. I should not use jquery or javascript. Can anyone pls help me. Condition: Numeric Textbox: It should not allow characters, special characters. String Textbox: Should not allow numbers, Special characters.
stackexchange/codereview
how can we get network signal strength in android 1.6
stackexchange/codereview
I've got a MySQL database with typical schema for tagging items: item (1->N) item_tag (N->1) tag Each tag has a name and a count of how many items have that tag ie: item ( item_id (UNIQUE KEY) ) item_tag ( item_id (NON-UNIQUE INDEXED), tag_id (NON-UNIQUE INDEXED) ) tag ( tag_id (UNIQUE KEY) name count ) ...
stackexchange/codereview
Anyone help me regarding Oracle query to drop user object?
stackexchange/codereview
I am trying to get unicode strings into an SQL*Plus: Release 10.2.0.2.0 database but am having difficulties. If I use SQLPlus and copy and paste the insert statement into the database, any special characters are inserted as ? or something like that. I then try to call a sql file that has been encoded to UTF-8 and the ...
stackexchange/codereview
I want to know the difference between the below two methods of getting a request URL in servlet. Method 1: String url = request.getRequestURL().toString(); Method 2: url = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getRequestURI(); Are...
stackexchange/codereview
I was wondering if anyone knew of a way to prevent IE from popping up child windows behind the parent.
stackexchange/codereview
<a name="fb_share"></a> <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"> </script> i am using above code for implementing facebook share in my website its working fine in firefox and chrome but in IE when i am clicking on share button it is crea...
stackexchange/codereview
I'm totally new to jquery and I didn't find exactly what I wanted so I've written it by myself. The goal is to create an image fading animations (from image A to image B) when the link above is clicked. Anyways, its behavior is not what I would except .. it isn't smooth enough when clicking quickly / randomly. Could y...
stackexchange/codereview
In this example, using pst-tree package: \def\psedge{\ncangles[armA=.5, angleB=180, linearc=.2]} \pstree[treemode=R, levelsep=3cm] {\Toval{ root }} { \Toval{ Tom } \Toval{ Cat } \Toval{ Very very very very very long entry } \Toval{ Jerry } } The output is ugly because the nodes are aligned by center, how can ...
stackexchange/codereview
I use ASP.NET Form Authentication method in my project to keep login information as user id in user's cookie like the below code. It works well without any problem. FormsAuthentication.SetAuthCookie(userInfo.id.ToString(), model.AutoLogin); But the problem occurs when user use automatic login and then he change his p...
stackexchange/codereview
Its not executing statements in if block in my method Master Page:- page load event:- Control c = new Control(); DoSomething(c); My method:- protected void DoSomething(Control control)( { foreach (Control c in control.Controls) { if(typeof(c).Equals(Telerik.Web.UI.Rad...
stackexchange/codereview
Here are the facts: We have a lot (L O T) of data coming in everyday. Each file we receive is in a csv format and while there are a couple of headers that reoccur more often than others, there is not really a standard. The normalization of each file to be uploaded into a mySQL database is highly time consuming and oft...
stackexchange/codereview
In my IIS 7.0, it only has svc-ISAP-4.0_32bit, svc-ISAP-4.0_64bit, and svc-integrated-4.0. Missing the 2.0. How can I add this? System info: IIS7 Win 7 ultimate VS 2008 Prof
stackexchange/codereview
Is a listener available for java.awt.print.PrinterJob? I could only find PrintJobListener in javax.print.DocPrintJob. I am looking for its equivalent in java.awt.print.PrinterJob, so that I could track if there are issues in printing.
stackexchange/codereview
I have installed the new version of Windows debugging tools and I got a AdPlus.exe. I don't know if there are any changes but I remember when I installed it sometime ago on another computer, what i got was a ADPlus as vbscript file ( and not an executable). In the installation directory I still see there is a vbscript ...
stackexchange/codereview
I'm trying to simply get contacts from the Device phone book and display them on a Spinner, the code: // Form an array specifying which columns to return. String[] PROJECTION = new String[] { People._ID, People.NAME }; // Get the base URI for the People table in the Contacts content provider. ...
stackexchange/codereview
Say that I have a link from one.com to two.com/A.html. A.html looks like this <FRAMESET cols="100%"> <FRAME src="B.html"> </FRAMESET> The HTTP Referer on A.html is "one.com", but what will the HTTP referer be on B.html? Is this browser specific?
stackexchange/codereview
With ADO.net, if I fill a data adapter without implicitly doing a BeginTransaction, does a "Transaction" happen anyway? If not, then what would be the default isolation level?
stackexchange/codereview
I'm outputting a list of items from an array in Ruby. I need to output the position of each item in the array, as well as the value. I thought I was being clever by using the index of the value as I looped through the array rather then setting an temporary counter variable, but I got burned when I had an array with dup...
stackexchange/codereview
I am trying to catch when the user has pressed the Home button. I thought I could use protected void onResume() { registerReceiver(homeReceiver, new IntentFilter(Intent.CATEGORY_HOME)); } ... private BroadcastReceiver homeReceiver = new BroadcastReceiver() { public void onReceive(Context context, I...
stackexchange/codereview
I'm trying to query an xml file using xslt called by javascript. Here is the main page: <html> <head> <script> function loadXMLDoc(dname) { if (window.XMLHttpRequest) { xhttp=new XMLHttpRequest(); } else { xhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xhttp.open("GET",dname,false); xhttp.sen...
stackexchange/codereview
I have a little newbie's hitch. I have got something like this: // Assign Device ID if ($line == "IMEI 358998018395510\r\n"){ $device_id = 1; }elseif($line == "IMEI 352924028650492\r\n"){ $device_id2 = 3; } ........ ........ if (fwrite($outFile,$device_id or device_id2. ",". $date.",".$line)===FALSE){ I want to ...
stackexchange/codereview
I have one EXE (built in .Net) running on windows. When it runs, it'd get another EXE from server and execute under that same process. Using Process.Start I can execute the server EXE after dowloading but that'd start a new process with an extra step of downloading the EXE residing on the server. But I wanted a better ...
stackexchange/codereview
the code below draws two vertical lines on a canvas. these lines appear to be of different thickness on the screen although they are the same in code. i am tying to find a way to make them look as sharp as the border around the canvas. setting Path.SnapsToDevicePixels does not have any effect. The code is a contrived e...
stackexchange/codereview
What would the C# code be to create a (service) method to return an object (ViewModel for DDL) using AutoMapper and provide the two field names as parameters? DDL is for a Drop Down List: public class DDLitems { public string text {get;set;} public string value {get;set} } My horrible pseudo C# code idea: (yea...
stackexchange/codereview
I have this code UPDATE OPENQUERY (db,'SELECT * FROM table WHERE ref = ''"+ Ref +"'' AND bookno = ''"+ Session("number") +"'' ') How would I prevent SQL Injections on this? UPDATE Here's what i'm trying SqlCommand cmd = new SqlCommand("Select * from Table where ref=@ref", con); cmd.Parameters.AddWithValue("@ref", 34...
stackexchange/codereview
Sorry for such a silly question, but sitting in front of the comp for many hours makes my head overheated, in other words — I'm totally confused. My task is to define a function that takes a list of words and returns something. How can I define a function that will take a list of words? def function(list_of_words): ...
stackexchange/codereview
I have the following ListView: <ListView Name="listView"> <ListView.View> <GridView> <GridView.ColumnHeaderContainerStyle> <Style TargetType="{x:Type GridViewColumnHeader}"> <Setter Property="Visibility" ...
stackexchange/codereview
This is a beginner's question, but I am interested in learning what's going on here. My question is, what goes on behind the scenes when you down-cast an object? Does it maintain some sort of metadata about what it originally was? Here's what I mean: Suppose I have a method called "ClockIn" that accepts a parameter of ...
stackexchange/codereview
Hey there, I have this foreach loop that doesnt work 100%. Basically I am outputting a string. My problem is I dont want sb.Append(","); to be added the last record in the loop. IS there an easy way using linq to solve this? sb.Append("Readings:["); foreach (var reading in lake.Reading) ...
stackexchange/codereview
I have a page that lists records based on the parameters given in the search filter. I need to give a download link, wherein the current records on the page are written to a file and given as a link to be downloaded. So to put it simple, how do I give the latest records found based on the search parameters as a downlo...
stackexchange/codereview
I am working on this SQL problem: Show any purchase orders whose charged amount and actual amount are different. Show this by displaying the purchase order number, the POAmount for each purchase order, the actual amount (calculated by adding the prices of all items in the order), and the difference between the two. S...
stackexchange/codereview
The problem is strange, I have a combobox which is correctly filled with items through the DataSource properties (it binds to a bindingSource item, which contains a displaymember and a valuemember), this is a simple combobox which allows me to select suppliers by choosing between their names and not their ids. The prob...
stackexchange/codereview
I have a huge list of stores name in (.doc) file and I want to store these names in mysql DB The solution which I thought was to create an array of this list & by looping insert them in DB.. But I don’t know how to push this list in php array.. Thanks
stackexchange/codereview
I am using NSURLConnection to receive some data (in JSON) and do some work (e.g. write data to a label) in connectionDidFinishLoading method. What I want is, this should happen e.g. every two seconds. That is, ReceiveData > WriteDataToLabel > Wait 2 seconds > ReceiveData ... In other words, I want to update my data eve...
stackexchange/codereview
Alright, I'm trying to see how many products are provided by each supplier (Products and Suppliers being separate tables). I want the results to be displayed with the company name and the number of products that company has available. I'm not sure exactly how to set this up. So far I have: SELECT CompanyName, Count(Pro...
stackexchange/codereview
I have below Jquery with me. $(".load-fragment").each(function() { var $objThis = $(this); var fname = $objThis.attr("href"); //Getting the href of the element var dynDivID = "divContent"+ $objThis.attr("id"); //Name of the dynamic div ID var ...
stackexchange/codereview
I've been working on how to perform font anti aliasing on web pages. Here're some solutions I found: -webkit-font-smoothing attribute: It seems to work only on the newest browsers. I didn't try it out. Google Font API: this is great, and easy to use. I wonder how to use it offline. A javascript library called typeface...
stackexchange/codereview
I am trying to build a tiny exercise search engine using mysql. Each exercise can have an arbitrary number of search tags. Here is my data structure: TABLE exercises ID title TABLE searchtags ID title TABLE exerciseSearchtags exerciseID -> exercises.ID searchtagID -> searchtags.ID ...where exerciseSearc...
stackexchange/codereview
I'm using VBA in Excel to read a spreadsheet and modify its contents. I need to save the results with a name that is similar to the original file, but with some alterations. How can I programmatically find the name of the currently open file using vba?
stackexchange/codereview
I am working on a small project where I use multiple classes. One of those classes is Menu, which has a showContainer method. Here's the class declaration: class Menu { //snip Menu(); Menu(std::string, std::string, int, int); virtual ~Menu(); //snip /** * Visualiza e providencia navegacao p...
stackexchange/codereview
Wondered if someone could assist me, I have no PHP knowledge so im struggling a bit. I have installed the following modules To Do List Module - http://drupal.org/project/to_do View Custom Field - http://drupal.org/project/views_customfield - Field that allows usage of custom PHP code (with access to view's database res...
stackexchange/codereview
Are there any oustanding vulnerabilities (2) in jQuery that haven't been addressed in the latest release, for instance? Any other valid reason why security packages would flag the library as unsafe? This question is related to (1) but is broader in nature. (1) - jQuery vulnerability (NVD CVE-2007-2379) (2) - http://w...
stackexchange/codereview
I am trying to get all the text between the following tags and it is just not workind If Not String.IsNullOrEmpty(_html) Then Dim regex As Regex = New Regex( _ ".*<entry(?<link>.+)</entry>", _ RegexOptions.IgnoreCase _ O...
stackexchange/codereview
I generated home and contact page thru: rails generate Pages home contact did tests to verify and all was okay, now I wanted to add the page "about". I created the about.html.erb through copying the contact.html.erb and pasting then renaming it to about.html.erb. I then changed the content to "Pages#about" instead of ...
stackexchange/codereview
The function int QTextFormat::objectIndex () const returnes an object index. What is it? And what if I do the following: QTextBlockFormat bfmt; bfmt.setObjectIndex(0); What this code does? ADDED: Here there is a function void TextEdit::textStyle(int styleIndex). This function is for adding a list into QTextEdi...
stackexchange/codereview