instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm very used to working in WPF, but I have recently started building websites in html. I would like to make a list of things (let's say, each containing a pic and a description) in html that behave as if they are in a WPF wrappanel. I think I almost got it right, by doing this: <ul id="listofthings"> <li> <div cl...
stackexchange/codereview
Write a MIPS program that performs the following: • Prompt a user to enter N positive integers, (0< N ≤ 100). • Display the N integers in ascending order • For each integer in the output list display also the sum of its digits I can't seem to get the program to stop when 0 is entered and add the sum of the digits ent...
stackexchange/codereview
An object needs to be transfered in either URL or Cookie. Object is very simple, a few String fields and a DateTime field. It should be secure and compact. What's the best approach ? Note: I'm not going to use SSL just for sending such a little object securely.
stackexchange/codereview
How can I make a pop up window (basically a hidden div with high z-index) open in the middle of the screen, even if the user scrolls down a bit: When I use position:absolute;left:50%;top:50%; the pop up opens in the middle of the screen, but when the user scrolls down the page the window stays "stuck" in the middle of...
stackexchange/codereview
I am working on a basic blog-style website with articles and comments. I'm aware that similar software already exists (drupal, joomla) but I prefer to roll my own in this case, and besides, it's how I learn. :-) Here are the basic table details: Table Name: users Purpose: Information about people with access to the sy...
stackexchange/codereview
I have a table with check constraint that is ignored by MySQL. I am using foreign key constraint to achieve the same functionality. Is it OK or if there is something I need to know while I use this method? CREATE TABLE country ( code VARCHAR(2) NOT NULL, iso_code VARCHAR(3) NOT NULL, name VARCHAR(30) NOT NULL, ...
stackexchange/codereview
I have an issue with Itextpdf rendering of image..I am trying to render a tiff image to pdf but the image is not getting rendered properly and the rendered image has got inverted colors. Note: I havent set the inverted property of image This issue is happening for few tiff images. I could not find any clue about fixing...
stackexchange/codereview
how do I get Cyrillic instead of u'... the code is like this def openfile(filename): with codecs.open(filename, encoding="utf-8") as F: raw = F.read() do stuff... print some_text prints >>>[u'.', u',', u':', u'\u0432', u'<', u'>', u'(', u')', u'\u0437', u'\u0456']
stackexchange/codereview
What would be the best way to clear an input field on $.(document).ready()? What I'd like to happen is when the user reloads or navigates away and navigates back to the page, the input field clears when the DOM is ready. I've tried innerHTML and value="" but those don't seem to work.
stackexchange/codereview
I want to generate a whole lot of SQL*Plus scripts by querying the data dictionary, but I'm hitting some problems and suspect I'm missing something obvious. For example, when I execute the following in SQL*Plus I get ORA-01756: quoted string not properly terminated: SQL> SPOOL myscript.sql SQL> SELECT q'[SPOOL log 2 ...
stackexchange/codereview
I write two js code. I want first detect the width of the screen, then run a different JS files. How to write correctly? $(document).ready(function() { if ((screen.width>=1024) && (screen.height>=768)) { $("link[text/javascript]:not(:first)").attr({src : "1024.js"}); } else { $("link[text/javascript]:not...
stackexchange/codereview
Table - user_feed column name - date_n_time (type - datetime) How do I write the PHP code to check if the date_n_time of a particular row in the table - user_feed is within 5 days from now (for example)? What's a permanent fix for processing date and time in PHP and SQL?
stackexchange/codereview
I am wondering how to normalize table like this: field1|field2|field3 text1 |txt2 | 1,2,5 other1|other2| 1,8,7 field1 will repeat many times , field2 is unique(won't repeat) , field 3 - users id. Something like favorites.
stackexchange/codereview
given the lamport's fast mutex algorithm, i'm trying to understand why are the awaits there. The algorithm: start: b[i] = true x = i if y != 0 then b[i] = false await y = 0 goto start fi y = i if x != i then b[i] = false ...
stackexchange/codereview
I have a flipside view showing the settings in my app. I'm trying to have a few levels of tableViews, but how do I implement a navigation controller to allow this? Usually for a normal root view, the navigation controller is by default in the App Delegate. However how do I do it if the root is the flipside? Thanks.
stackexchange/codereview
Hi Im trying to setup an environment for my pc , Im trying to learn asp.net , and i dont know how setup this in vista , in php its so easy in wamp, but I dont know here, please help me..thanks any help is appreciated
stackexchange/codereview
This cannot be done in C#. Any way to do it? ... laugh, in case my little pun wasn't understood, what I mean is: how can I mark a property in C# as NonSerialized? Of course, when the property contains logic, it's natural to be unable to do it, but Auto-Properties are serializable, and, as such, I would expect to have s...
stackexchange/codereview
I'm having a bit of issue converting the following t-sql statement to Linq (using 4.0 entity framework) I'm getting Unable to cast the type 'System.Linq.IOrderedQueryable1' to type 'System.Linq.IQueryable1'. LINQ to Entities only supports casting Entity Data Model primitive types. T-Sql SELECT I.Id ...
stackexchange/codereview
Can anyone tell me the exact syntax for NOT IN condition in SQL on two columns. This is my query written in VBA. strNewSql = "SELECT distinct(tblRevRelLog_Detail.PartNumber), tblRevRelLog_Detail.ChangeLevel, tblRevRelLog_Detail.ID FROM tblRevRelLog_Detail LEFT JOIN tblEventLog ON tblRevRelLog_Detail.PartNumber = tblEve...
stackexchange/codereview
Is there a ay that I can invoke php's SoapClient's internal parser? I have a soap response as a string and I would like to parse it back to a php native datatype. Is it possible? Thanks
stackexchange/codereview
I have a Mysql update statement and it's running too long - 52 sec update table_ea ea, table_a a set ea.match_creator='S', a.match_state=N where ea.source_id=a.asset_id and ea.source_name='S' and ea.match_creator='S' and ea.entity_id like 'S' Question: a) Can we do an explain on this update...
stackexchange/codereview
List<decimal> FindSumSubset(decimal sum, List<decimal> list) { for (int i = 0; i < list.Count; i++) { decimal value = list[i]; if (sum - value == 0.0m) { return new List<decimal> { value }; } else ...
stackexchange/codereview
I am creating a custom page for a dynamic site and I was wondering if there was a way to block the Default CSS (of the overall site) from affecting my custom page. Nowhere on my custom page do I call up the default .css but I DO link to my custom .css for the particular page I am working on. Some of the .css is picked ...
stackexchange/codereview
I want to study type system theory. I don't have any background in type system theory so I'm more or less a beginner (except the articles I've read on the subject and which I find intimidating because of the notation used). What are some good books that could get me started? I was looking at Benjamin C. Pierce's "Types...
stackexchange/codereview
I'm trying to create an app based on Apple's example project TheElements, but using Core Data for the model. In Core Data I have 4 related DB tables. In the UI I have several tableViews, each showing rows from a different Db table. Clicking a row in a tableView drills down to items in a related table, shown in anoth...
stackexchange/codereview
I have a page that works on firefox and chrome. In IE7 i'm experiencing a rather interesting behavior, the stylesheet does not load. However, if I press CTRL F5, it does. This is very annoying to say the least. Anyone experience this issue? any recommendations? FYI: The page uses JQuery and plain javascript, has CSS el...
stackexchange/codereview
According to the "What's New in Delphi 2009," there is a new debugger features called "wait chain traversal." It specifically says "A Wait Chain Traversal feature has been added to help you resolve thread contention or deadlock issues. The feature relies on a facility added to the Windows Vista operating system that pr...
stackexchange/codereview
Say I have an System.String[] type object. I can query the type object to determine if it is an array Type t1 = typeof(System.String[]); bool isAnArray = t1.IsArray; // should be true However how do I get a type object of the array item from t1 Type t2 = ....; // should be typeof(System.String)
stackexchange/codereview
I'm reading data from an SNES ROM using Java. I am opening a stream and reading in the bytes into an array: InputStream stream = open("foo.rom"); final int startingSize = stream.available(); byte[] data = new byte[startingSize]; final int numberRead = stream.read(data, 0, startingSize); In the ROM, I have this value: ...
stackexchange/codereview
Consider this code: template <typename T> class String { public: ... String(T* initStr) { size_t initStrLen; if (initStr != NULL) { printf_s("%s\n", typeid(T) == typeid(char) ? "char" : "wchar_t"); if (typeid(T) == typeid(char)) { strlen((T*)initStr); } else if (typeid(T) == typeid(wchar...
stackexchange/codereview
I have this script provided by @Felix Kling in this post HERE, but is crashing my IE when I use it; on FF 3.6, Opera, Chrome, Safari work fine. Any idea why is this happening? A fix maybe? var ajaxTimeout; function autorun() { if ($("#contactForm").is(":visible")){ if(ajaxTimeout) { clearInterv...
stackexchange/codereview
sorry for my english,but I have problem because I seek the same values of field and when I find the same value I print a message , if I don t find a same values I print an error message but this error message is repated and I want to print once if they are no same values this my code: foreach($row2 as $key => $value) ...
stackexchange/codereview
In visual studio 2008, when I use something akin to the following snippet: Dim myVar .... ' all sorts of stuff that might initialise myVar ' if not isNothing(myVar) then myVar = new Object() end if myVar.ToString() visual studio warns me on the last statement that myVar might be uninitialised, and a nullreference e...
stackexchange/codereview
Can you help me to understand, words.Aggregate((workingSentence, next) => + next + " " + workingSentence); from below code snippet? and it would be great if someone explain me to achive this in C# 1.1. (Snippet From MS)- string sentence = "the quick brown fox jumps over the lazy dog"; // Spl...
stackexchange/codereview
I'd like to iterate through all the <HeadA> and <HeadB> elements in an XML file, and add a unique id to each. The approach I've tried so far is: @xml.each_element('//HeadA | //HeadB') do |heading| #add a new id end The problem is, the nodeset from the XPath //HeadA | //HeadB is all the HeadAs followed by all the Hea...
stackexchange/codereview
I'm working on an HTML5 mobile app and I initially have the background of a DIV item set through the CSS as follows: background-image: url('images/ClanSpider.png'); In my app, I have a method that changes the background DIV based on a selection made in a dropdown list from a previous method using jQuery: function Rese...
stackexchange/codereview
I've a Regular expression validation to accept aphabets only. But currently its not accepting any user input data...
stackexchange/codereview
class ArrayApp{ public static void main(final String[] args){ long[] arr; // reference to array arr = new long[100]; // make array int nElems = 0; // number of items int j; // loop counter long searchKey; // key of item to search for // ------------------------------...
stackexchange/codereview
How can I copy 1 data column from 1 data table to a new datatable. When I try to do it, I get the error Column 'XXX' already belongs to another DataTable.? dataColumn = datatable1.Columns[1]; datatable2 = new DataTable(); datatable2.Columns.Add(dataColumn); Thanks in Advance
stackexchange/codereview
I'm working on a simple point-and-click game for young children. Because some children have a physical limitation I would like to give them the possibility to use a joystick as an alternative input device. Can anyone give me some advice, tips or some sample C# (or even VB.net) code on how to implement this? I would rat...
stackexchange/codereview
I have a problem with Ajax.BeginForm. I have a form with submit and button that updates partial view. What I am trying to accomplish is that I could use following return statements in the same Action. // button activates this return PartialView("PartialViewName", data); and // submit activates this return Redirect(m...
stackexchange/codereview
REST looks me so simple that I got a question what is REST. It looks like just any GET URLs I use. How do I recognize that I am using REST? What is the difference between simple URL like: "http://en.wikipedia.org/wiki/Representational_State_Transfer" and another REST service URL. Is it that the URL (hhttp://en.wikip...
stackexchange/codereview
I have created a small slide show. However, it doesn't really look very smooth. How can I make the transitions look smoother? Here's the relevant code. wod is a variable in this case 350px . tranSpeed is 1000 and is time for the animation to occur. I have tried setting this to different values, and still get the same j...
stackexchange/codereview
from the sample code examples of jetS3t the code that follows: What to do if I don't know the number of files to be downloaded from the beginning? E.g an application with thumbnails in S3, and a client application that the user scrolls through a list of thumbnails. Download objects to local files The multi-threading s...
stackexchange/codereview
I have define a callback field and event property for it: private Action<int, int, TaskCallbackArgs> _callbackEvent /// <summary> /// Provides a callback event for task. /// </summary> public event Action<int, int, TaskCallbackArgs> CallbackEvent { add { _callbackEvent += value; } remove { _callba...
stackexchange/codereview
I need to convert a KOI8-R encoded string into plain UTF8
stackexchange/codereview
I am having trouble with updating saved instance in datastore. My form has two fields — title (optional) and content. What I want to do is to set title field value to Post # id_of_just_created_post. So I am checking form.instance.title is None and then want to update this instance's title: … form.save() id = form.insta...
stackexchange/codereview
I have a table of products, there can be multiple products with the same name but with different prices, i want to display only the cheapest price of each product. Example Of Table: TABLE: Products(name,price) --------------------------- Banana -- 1,25 Banana -- 1,10 Strawberry -- 2,43 Apple -- 1,11 Apple -- 4,12 Apple...
stackexchange/codereview
I have a UIImageView that I'd like to load with a picture coming from an instance of UIImagePickerController in order to show a preview to the user. My app has a TabBarViewController and in order to hide the bar I'm showing both the picker and the preview modally. The controller I use for the preview has been built on ...
stackexchange/codereview
I am attempting to send mail through my gmail account from a Dedicated Godaddy server. I have attempted to send email through my company's email server but Godaddy kills port 25 with no workaround (grrr). I have searched high and low for a solution to this including here but am unable to send any emails. I always g...
stackexchange/codereview
what are the cases of non-development practical (production use (design, development and deployment) of SQL Server (Express Edition) User Instances? i.e. when you deploy them into production but not SQL Server CE (Compact Edition) or other embedded database? Related question: What are in SQL Server User Instances th...
stackexchange/codereview
just wondering how you guys would do a feed aggregator like a simple facebook using nosql (like redis). Basically you have many profiles, and each profiles would have their own feed. Everytime a user requests for an aggregate, the system would just fetch all these profiles, process them (and group them) and then displa...
stackexchange/codereview
I am new to SQL Server 2005 and I am planning to learn SSIS, SSRS and SSAS. But before going into the deep I want to master the fundamentals of SQL Server 2005. As a novice I did my best and installed these database AdventureWorks AdventureWorksDW Now which is best resource from where I can master the fundamentals? I...
stackexchange/codereview
Consider this class: public class Foo { // Fields private string _bar; // Properties private string Bar { get { return this._bar; } set { this._bar = value; } } } Now when I go and look in the IL code emitted by the compil...
stackexchange/codereview
I am trying to filter the user's input using Typecasting techniques. But I dont know all of them, upon searching for more techniques used for Typecasting, I found a lot of issues discussed related to typecasting being uncertain and unsafe. Please tell me How to typecast values in several formats like int and others? I...
stackexchange/codereview
I packed gem into my Vendor folder (Vendor/Cache/youtube-g5.0.1.gem) but I'm not sure how to use it in environment.rb config.gem "youtube-g" doesn't seem to work. Any ideas? I'm using Rails 2.3.9
stackexchange/codereview
My Artist conroller, edit method looks like this def edit @user = User.find(params[:id]) end In the view (artists/edit.html.erb), I have: <%= form_for(@artist) do |f| %> <ul> <li class="clearfix"> <%= f.label :name %> <%= f.text_field :name %> </li> ... </ul> <%= image_submit_ta...
stackexchange/codereview
str1 = abdk3<h1>The content we need</h1>aaaaabbb<h2>The content we need2</h2> We need the contents inside the h1 tag and h2 tag. What is the best way to do that? Thanks Thanks for the help!
stackexchange/codereview
I have a SQL Script with the following line declare @input varchar(20) Select * from Employees where [dept] = @input What I want is When I execute the above script in SQL 2005 I want to prompt for an input By opening an inputbox etc., such that the value is accepted in '@input' variable and so the user retrieves ...
stackexchange/codereview
I am splitting off some of the code in my project into a separate library to be reused in another application. This new library has various functions defined but not implemented, and both my current project and the other application will implement their own versions of these functions. I implemented these functions in...
stackexchange/codereview
How can I perform the following with this API? Form is setup in PHP for registered user to enter domain name On submit.. Check if domain is available > If NO > output to XML > run the loop again in 5 minutes If YES > output to XML > go ahead and purchase (register) the domain > end loop Thank you! Sample API code <?p...
stackexchange/codereview
In one of the C source code files I found the following line (macro): #define USE(x) (x) = (x) It is used like this: int method(Obj *context) { USE(context); return 1; } After googling for it, I found the following description: // Macro to get rid of some compiler warnings Could you please tell me...
stackexchange/codereview
This is my code on click of SAVE button: OpenFileDialog myOpenfileDialog = new OpenFileDialog(); myOpenfileDialog.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*"; myOpenfileDialog.FilterIndex = 2; myOpenfileDialog.RestoreDirectory = true; if (myOpenfileDialog.ShowDialog() == Dia...
stackexchange/codereview
We created an Outlook add-in 2003 in Visual Studio 2008. We just moved to Visual Studio 2010. When we debug the project, it shows that required version of Office is not installed. Is there any possible way to use the Outlook 2003 Add-In in Visual Studio 2010? I need to work my Add-In in all versions of Outlook from 200...
stackexchange/codereview
Currently I'm implementing a REST client which shall parse the XML response messages. It is intended, later, to be running on an Android device. Thus, memory and processing speed is quite an issue. However there will be only one XML response at a time so processing or holding multiple XML documents at a time is not an ...
stackexchange/codereview
We have client-server application and we launch the client application using java web start. While trying to open client application, it first reads a token file from https url (for SSO) and later opens another HTTPS url. tokenUrl = new URL(protocol, nodeIpAddress, port, tokenFile); URLConnection con = tokenUrl.openCon...
stackexchange/codereview
I wish to add a licence agreement to my setup files (using setup project) If the user does not accept it, the setup should be cancelled. How to do it?
stackexchange/codereview
i try to use some source code for sending email with adobe flash and action script 3.0 that i got from internet.. here i want to send email with an attachment..but it still using adobe air as player.. and now i want to use it flash player 10.. so i can't use flash.filesystem that provided by air library.. and know how ...
stackexchange/codereview
I'm a little new to asp.net mvc and I have a question (very basic). I have hacked around but I am not totally sure about this and I could'nt find anything particularly helpful. Assume that I have 2 controllers A and B and 2 views FullView and PartView public class AController:... { //Renders FullView public...
stackexchange/codereview
I am developing an application which uses the vaadin framework. I used Vaadin-AppFoundation library for database access, that uses persistence.xml. How to define a bean using springframework for this persistence context and how to use it? Please, any suggestions would be appreciated.
stackexchange/codereview
I wrote the following code, but the line MessageBox.Show(sr.ReadToEnd) didn't show anything? Does anyone know what I'm doing wrong? I want to send an exception object to a web service for remote logging - is there a better method, (minimum amount of code, so I don't want to have to create a special transfer object that...
stackexchange/codereview
If I specify border: 1px outset blue; as the style for an element, the browser renders two different border colors: one for the top and left borders, and another for the bottom and right borders. li { border: 10px outset #0000FF; color: #FFF; background-color: #0000FF; width: 30%; } p {...
stackexchange/codereview
I have been using Excel charts for some years for creating computer animated movies for teaching physics. However, in converting from VBA to AppleScript I have had trouble saving the charts as .jpeg files. I have tried the script below: tell application "Microsoft Excel" set filebasename to get value of cell "MovieNa...
stackexchange/codereview
What's the difference between these 2 lines CArray<MyClass, MyClass> MyArray CArray<MyClass, const MyClass & > MyArray
stackexchange/codereview
Why do I get this error when trying to open a table for editing: Unknown error "-1073741766". (Microsoft.SqlServer.Express.SQLEditors) Environment: SQL Server 2005 Express SQL Server Management Studio Express 2005 Windows Server 2003 (inside VMware) I am using Remote Desktop to connect to the VM and run Management S...
stackexchange/codereview
I'm trying to write a program that reads in characters from a .dat file that correspond to different colors to be displayed in the LED simulator; x = off, R = red, etc. My problem is, I cannot figure out what I'm doing wrong with opening the .dat file. I've looked around and tried all I can think of, but each time I as...
stackexchange/codereview
In the Preface to Ted Codd's The Relational Model for Database Management, Version 2, he writes (first paragraph): Today, if you have a well-designed database management system, you have the keys to the kingdom of data processing and decision support. That is why there now exists a prototype machine whose com...
stackexchange/codereview
I would like to close an rpanel panel by a button on the panel (through the "action" function that would be triggered by the rp.button statement below). I've read the rpanel documentation, but so far, the only way I can close the panel is to manually close the window itself (which doesn't allow me to perform other a...
stackexchange/codereview
Is there any tool available for converting a C code with loops (while , do-while, for) to a C code with goto statements instead of the looping statements? I tried Clang. I changed the code to the IR and converted it back , but the code totally different (more lines, following the SSA format, ..) though logically meanin...
stackexchange/codereview
I have a multibinding that looks something like this: <UserControl.Visibility> <MultiBinding Converter="{StaticResource isMouseOverToVisibiltyConverter}"> <Binding ElementName="otherElement" Path="IsMouseOver" /> <Binding RelativeSource="{RelativeSource Self}" Path="IsMouseOver" /> </MultiBindin...
stackexchange/codereview
We have inherited a very convolved project (500kloc) with a lot of preprocessor conditional logic, most of which is no longer relevant, and I want to clean it up. Can I use the preprocessor¹ to expand only some of the conditional logic, and leave all other preprocessor macros, defines, and includes alone in the output?...
stackexchange/codereview
I have to work with some (semi-)automatical verification software (CBMC (link)) which is statically working on C sources. Floating point is supported, but there are no definitions for all the mathematical functions. The attempt is to check, if it's possible to check numerical software with it. So I need these functions...
stackexchange/codereview
I'm trying to run simple Powershell script (eg. just with dir command) on Windows Server 2008 using external program which will call Powershell powershell.exe "& 'C:\Temp\myscript.ps1'" I have set (run as administrator) execution-policy unrestricted. After all, I get this error from the client 99: File C:\Temp\myscrip...
stackexchange/codereview
Which plugins or gems are available to convert xml to csv file ?
stackexchange/codereview
I'm trying to find out about the problems of removing a module on an SMP system Any good explanations?
stackexchange/codereview
I'm probably going outside of the proper design for an AutoResetEvent but don't quite know what to turn to. I want this behavior: var autoResetEvent = new AutoResetEvent(false); autoResetEvent.Set(); autoResetEvent.Set(); autoResetEvent.WaitOne(); // since Set was called twice, I don't want to wait here autoResetEvent...
stackexchange/codereview
I've looked in many places, but I cant find a decent tutorial on how to make a SlidingDrawer for my application. Say i already have an XML file, and i want to add a sliding drawer to it..i also want to add a textview and listview object, and some buttons in it...how would i go about doing that? Any help will be greatly...
stackexchange/codereview
I have about 1600 addresses that I need to plot on my map. I don't want to geocode at run time, because I believe it will take too long. Instead, I would like to geocode the addresses in advance, add their Lat/Long values to a table, and read from the table at run time. Unfortunately, I cannot figure out how/where t...
stackexchange/codereview
I have a simple database with about 3900 entries, and am using a generic view (django.views.generic.list_detail.object_list) with its django-pagination (through paginate_by) to browse the data in the database, but some queries are very slow. The weird thing is that despite only showing 50 objects per page the rendering...
stackexchange/codereview
I have a windows c++ application that creates a memory mapped file for a bitmap that is updated frequently. I would like to access to this memory mapped file to display the live image in a java application. How can I do that? I know that FileChannel can be mapped to memory but I cannot see how to access a memory mapped...
stackexchange/codereview
I've just installed new distribution of Ubuntu 10.10.2010, then installed emacs23, I installed also emacs goodies for color themes. I made the file .emacs in my home directory with the code: (require 'color-theme) (setq color-theme-is-global t) (color-theme-euphoria) but it doesn't work, with any code even (set...
stackexchange/codereview
I've been looking for a way to write a newline in a file I have to use R5RS, I saw in a previous question (newline port) but this doesn't work in this version, neither does the \n, any ideas? everything is being written in a single line (write "hello" p) (write "w" p) gives me a file with hellop
stackexchange/codereview
I wanna create a multiple < select > with ajax and jquery. First select(c1) is working properly. When I click on it returns another select(c2). But when I clicked on second select(c2) I can get third select(c3). HTML: <table><tr><td id="cat1div"> <select name="c1"> <option value="">---</option> <option value="1">Auto<...
stackexchange/codereview
So I have this code: foreach ($xml->PrintQuestion as $PrintQuestion) { //if hint doesn't exist, store question id if (!$PrintQuestion->content->multichoice->feedback->hint->Passage) { fwrite($fp, "<contentid filename=\"$value\">" . $PrintQuestion->attributes()->id . "</contentid>"); } } Bas...
stackexchange/codereview
I'm in University studying computer science. This is actually my first big assignment but they haven't taught us how to do the main bits in it yet. What I need help with is that my program has to take its information from a .dat source file and use the information within that .dat file to perform its grade calculations...
stackexchange/codereview
Any one knows what this exception means? /SourceCache/GoogleMobileMaps/GoogleMobileMaps-217.2/googlenav/mac/Loader.mm:194 Incorrect protocol version. We got 15393, but were expecting 14.
stackexchange/codereview
I'm generating xml from tables with queries like this SELECT * FROM Rp FOR XML AUTO SELECT * FROM Ind FOR XML AUTO I would like to combine a bunch of these and generate a single xml file probably something I can automate in VS2010 any pointers?
stackexchange/codereview
I have an observer that is ran when you view the contents of the shopping cart in Magento. I simply want to var_dump the list of product ID's. I know it probably seems like a dumb question but I can't figure it out and it will help me work out how Magento works. Thanks in advance Alex
stackexchange/codereview
I have inherited for maintenance an ASP .Net app, which among other things exports HTML table to Excel. The HTML contains constructs like this one: <td style="mso-number-format:\@;"> When code is being built, I get error: “Validation (CSS 2.0): 'mso-number-format' is not a known CSS property name.” Any suggestions?
stackexchange/codereview
We have JSF dropdowns that use a default value of "Select One..", but we do not want our JSF validator to accept this as an accpetable value on save. so beyond/or in place of Required="true", is there any way to do this? example values: "select one.." "cat" "dog" Only "cat" or "dog" should pass validation.
stackexchange/codereview