instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a list which contains a number of _MEMORY_BASIC_INFORMATION structs nested within mb structs (defs below). What I am having problems with is getting the info from the nested _MEMORY_BASIC_INFORMATION out. I am using an iterator to traverse the list. From below I know the error is g->mbi; but I don't know how ...
stackexchange/codereview
I have a form with a select list that allows users to choose multiple items. I am using $('#my_form select').change(validateInput); to fire an onChange event whenever an item is selected or de-selected in my select list. It works fine on my desktop machine but the validateInput function does not run on iPad. If I chan...
stackexchange/codereview
I published a JAX-WS styles webservice on tomcat 6. This webservice itself consumes a JAX-RPC style webservice. As soon as i include the call to the RPC webservice, i get the error below. The error is not present when i don't call the RPC style webservice. java.lang.ClassCastException: org.apache.axis2.saaj.SOAPMessage...
stackexchange/codereview
Is it possible to expose Amazon S3 account bucket (shared by ACL setings) to the users setup using new Amazon AIM API under different account? I'm able to create working IAM policy when related to the users and objects belonging to a single account. But as it seems this no longer works when two different accounts are i...
stackexchange/codereview
I'm using this. I've put this in where the images are added: self.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; I've put these overrides in SlideShowViewController: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{ return YES; } -...
stackexchange/codereview
How can I make it so that a ListViews control's background color for items varies from item to item like in WinAmp, along with changing the column header colors? If you look closely you can see the first item is a dark gray and the second is black and so on.
stackexchange/codereview
I just wanna to change in this XML (contained in XMLTYPE variable) all nodes named "ChildNode" with "Name"="B" attribute values to "C": <RootNode> <ChildNodes> <ChildNode Name="A"/> <ChildNode Name="B"/> </ChildNodes> </RootNode> DECLARE FXML XMLTYPE; BEGIN FXML := ...; -- see text before -- what nex...
stackexchange/codereview
small clarification is this possible to open two tables from one sqlite db in one iphone class??? but i can't open it please give me the solution i'm a beginner here i tried coding - (void)viewDidLoad { [super viewDidLoad]; list = [[NSMutableArray alloc] init]; if ([material isEqualToString:@"Derlin...
stackexchange/codereview
I am using UIGraphicsPushContext to push a context inside drawRect like so: - (void)drawRect:(CGRect)rect { // Create Bitmap Graphics Context UIContextRef ctxt = //blah blah; // Push the custom context in the graphics stack UIGraphicsPushContext(ctxt); // Draw Stuff // Get Image from custom context } My p...
stackexchange/codereview
I'm creating a custom datepicker, I have a textbox, once clicked it opens a calendar within a popup. What I want to do is change the size of the popup so it shows my whole calendar, but I can't manage to change it..., I've tried using Height, Width, MinHeight, MinWidth... but it doesn't work, the popup keep showing wit...
stackexchange/codereview
I am making a dynamic form using table. My table was like below. <table border="1"> <tr> <td>A Label Name</td> <td>:</td> <td colspan="4"><!-- Input text --></td> </tr> <tr> <td>Category</td> <td>:</td> <td colspan="4"><!-- Select Option value: { both, group 1...
stackexchange/codereview
Java is most important language for mobile devices as it allows the same binary/byte code to be executed on every machine by inserting virtual layer of JVM between byte code and machine. Can we build Java Physical Machine which will take byte code instead of traditional opcode and operand for X86/arm ? so the Actual O...
stackexchange/codereview
Are there any C# facial recognition libraries that work? I would like to locate people in my data base by having them stare in a camera :-). This is not used for security or authentication just to help with a quick lookup so if it is good enough to narrow down a list of people that would be a win.
stackexchange/codereview
I'm currently setting up a new server, and started off with an Ubuntu 8.04 image with a version of Ruby and Rails already preinstalled (I thought it would be easier), and after getting my app running (with a few gems installed), the command line is throwing a wobbly, and trying to install the "Paperclip" gem, is giving...
stackexchange/codereview
In this tutorial's processRequest method: ... switch ($request_method){ case 'get': $data = $_GET; break; case 'post': $data = $_POST; break; ... looks like $_GET variables are ignored when $_POST happens (at least this happening in my test setup - not the same script but idea is simil...
stackexchange/codereview
I need to check the timeout of a SMTP-Server, but my socket just closes. What am I doing wrong? Here is my test for it: #!/usr/bin/python import smtplib import time import datetime import socket socket.setdefaulttimeout(1800) now = time.time() server = smtplib.SMTP() server.set_debuglevel(1) server.connect('mx.foo.ba...
stackexchange/codereview
Basically I've wrote my own parser and I'm parsing a string into and expression and then compiling and storing to be reused later on. For (an odd) example the type of string I'm parsing is this:- if #name == 'max' and #legs > 5 and #ears > 5 then shoot() The hash parts in the string are telling my parser to look at th...
stackexchange/codereview
A new requirement has come down from the top: implement 'proprietary business tech' with the awesome, resilient Elixir database I have set up. I've tried a lot of different things, such as creating an implib from the provided interop DLL (which apparently doesn't work like COM dlls) which didn't work at all. CPython do...
stackexchange/codereview
I'm working on an ASP.NET MVC 2 project with some business entities that have metadata dataannotations attributes applied to them (Validation attributes, Display attributes, etc.). Something like: //User entity public class User { [DisplayName("Vorname")] [Required(ErrorMessage = "Vorname fehl...
stackexchange/codereview
I want to group the results of a NSFetchRequest by entity. The entities all share the same abstract parent. For example: animal | |-cat | |-dog The NSFetchRequest has includesSubentities set TRUE and entity set to animal. It is possible to set sectionNameKeyPath of NSFetchedResultsController to entity.name but it is n...
stackexchange/codereview
I need to develop a dedicated caching service ( either a WCF service or a .Net remoting service or other implementation) to cache the data (monitoring data of .net3.5 Latency measuring application) from Database ( SQL Server 2005) which can then be consumed by 2-3 windows services( .net 3.5 WCf services) so that the...
stackexchange/codereview
I have a wcf duplex service with work fine in silverlight. but the same service I want to consume in windows console application. My code as follow: var context = new InstanceContext(this); var address = new EndpointAddress("http://localhost:31881/PubSubService.svc"); var binding = new CustomBinding( ...
stackexchange/codereview
First of all thanks to all, now I am getting the dropdown value change on the selection of first dropdwon. PFB the source code. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namesp...
stackexchange/codereview
I have this idea which I'm not really sure how to implement. The idea would be that we have a given product implemented in various sites, and the product itself would have a page with a button (let's say it's www.site.com/update) and once you click the button the site goes offline and retrieves the latest version of it...
stackexchange/codereview
I'm having an issue in my ASP.NET web app where intentionally consecutive backslashes are being removed from the request url. I'll request something like: localhost/Page/A//C But when the request hits the page, the raw url is: localhost/Page/A/C Not sure if this is the culprit, but I do have a Url Rewite regex in place...
stackexchange/codereview
I have a child Activity that contains a ListView. This Activity is populated asynchronously from a SQLite cursor. The list items contain a TextView, a RadioButton, and a normal Button. The XML is shown below: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:id="@+id/rlCategoryListItemLayout" xmlns:android...
stackexchange/codereview
I wrote a small snippet in jQuery to just put a search word into my searchbox in wordpress, then when clicked to disappear. <script type="text/javascript"> var $j = jQuery.noConflict(); $j(function(){ $j('#s').click(function() { $j(this).val(''); ...
stackexchange/codereview
this is a snippet from my code: $("#myid").append($("p:contains('text')").closest("div").clone()); I tried to get the first closest ancestor div-element of p containing 'text'. I'm looking for an alternative to .closest() because I have to use jquery version 1.2.6. Do you have got an idea what I'm looking for? I hope ...
stackexchange/codereview
I want to parse an xml file using libxml2 and XPath I have tried to look this up on the internet but I can't find much about it. Can anyone give me a sample code for parsing this xml: <WebServiceResponse> <status>OK</status> <result> <type>sample</type> <name>Sample XML</name> ...
stackexchange/codereview
Now I am trying to install eclipse on my computer under Windows 7. The problem is how to install the eclipse for java,c/c++,php,javascript concurrently? Would donwloading the four zip files and then unziping them all into one directly say d:\eclipse works? Is there any good tutorials for installation/configuration of e...
stackexchange/codereview
I am having a listbox and I want to remove its border. Can any one help? I thought of using clip in jquery? Anyone knows that?please help
stackexchange/codereview
I thought that must be obvious but I can't figure it out. Say there is a table tblData with a column ID and a table-valued-function (_tvf) that takes an ID as parameter. I need the results for all ID's in tblData. But: SELECT * FROM tblData data INNER JOIN dbo._tvf(data.ID) AS tvfData ON data.ID = tvfData.ID gives...
stackexchange/codereview
I have QTreeWidgetItem set in a QTreeWidget with 2 columns. Both cells got a CheckBox set by setCheckState(...). When the user unchecks the CheckBox in my first column I uncheck the second CheckBox in column 2. Now, I would like to prevent the user to check this second CheckBox again. Is it possible to remove this Chec...
stackexchange/codereview
I have a PDF with an embedded form. This form has inputs and drop-downs. I want to read the data out of the form, so that I can create my own HTML form from it. This works fine for the most part - I can get the field names and labels - however, I have no way of reading the available options in a drop-down field in the ...
stackexchange/codereview
How to enable print option in iPhone apps
stackexchange/codereview
Some people seem to advise you use -Wall, but when I did it on a small test project which just has a main.cpp with some includes, I get 5800 warnings most of them in standard headers or in windows headers. Is that intended behaviour? How do I go about making my compilation warning free? Here are just a few for some rea...
stackexchange/codereview
I have this string: (3 + 5) * (1 + 1) I want to match this strings: (3 + 5) and (1 + 1) I used this to try to match it: (\(.*\)) But that matches the whole string, from the first ( to the last ). Any idea on how to fix this / make it working?
stackexchange/codereview
i want to know if its possible to get the email of the people who are using open id to authenticate to my site [of course with the user knowing that i am getting their email]? this email will be the user id of the user and i want the user to be able to loggin using any provider and then i will set this email as the use...
stackexchange/codereview
Hi I am trying to show all files and folders in a dir with php e.g Dir: system/infomation/ Folder - User Files From User - User1.txt Files From User - User2.txt Files From User - User3.txt Files From User - User4.txt Folder - Players Files From Players - Player1.txt Files From Players - Player2.txt Files From Players ...
stackexchange/codereview
How do I use Rhino return a string from Java to Javascript, all I get is org.mozilla.javascript.JavaNativeObject when I use var jsString = new java.lang.String("test"); inside my js file. Is this the right way to do it? var jsString = String(new java.lang.String("test")); The goal is to have a Java method to return t...
stackexchange/codereview
I am trying to populate a table using jQuery $.post, but I keep getting (an empty string) when I log the data using firebugs console.log(), here is the code, jQuery: $.each(data, function(i, json){ //get the system names $.post('get_system_name.php', {product_id:json.product_id}, functio...
stackexchange/codereview
I'm writing a Greasemonkey script that has a fair few user settings (just using GM_getValue and GM_setValue). What I'd like to be able to do is create a settings page for the script, and add that to the @include-d sites. So, for example, it'd run on: @include http://www.greasemonkeyedsite.com/* @include about:my...
stackexchange/codereview
In MySQL, update table1 t1 set column1 = 100, column2 = 200 where column3 > 500 and not exists(select * from table2 where column1 = t1.column1); This query is too time consuming to execute, do have any other faster way of rewriting. for table2 ID is a primary co...
stackexchange/codereview
My project has a bunch of #ifdefs. The macros used by these #ifdefs are usually passed through the command line using the '/D' option to get different build configurations. Visual studio incorrectly assumes that these macros are not defined and greys out the code blocks present inside these #ifdefs. The problem is not ...
stackexchange/codereview
I'm working on a c# wpf app in which I want to do something with audio. the irrklang audio library provides me with a pcm decoded 16 bit byte array. I want to create a timeline control which shows the waveform along the timeline with an overlaying rectangle which the user can drag and click/drag the left and right sid...
stackexchange/codereview
I'm struggling with the following problem. I want to restrict access to a table using Oracle VPD. In the where clause that the select policy function returns I need a reference to the table in a subquery as follows: select * from Table t1 where not exists (select 1 from Table t2 where t2.name=t1.name and t2.date=t1.dat...
stackexchange/codereview
I want to know how HTTPS is implemented. Whether the data is encrypted or path is encrypted (through which data is passed). I will be thankful if someone provides me implementation details.
stackexchange/codereview
I have a type Type1 with a property Type2s consisting of a List<Type2>. I have configured the NHibernate mapping for the property as follows: [Map(0, Table = "Type2s", Schema = "MySchema", Cascade = CascadeStyle.All, Lazy = true, Inverse = true)] [Key(1, Column = "Type1Id")] [OneToMany(2, Class = "Type2, MyNamespace")]...
stackexchange/codereview
I think theres something really simple I'm missing so I apologize in advance. I'm trying to test an interface with Nunit. The interface is implemented by a class derived from a base class and I'm using Castle Windsor for IOC. I simply dont know where to assign the interface in the derived test class. Here is the b...
stackexchange/codereview
I have been searching all over the web and I have no clue. Suppose you have to build a dashboard in the admin area of your Rails app and you want to have the number of subscriptions per day. Suppose that you are using SQLite3 for development, MySQL for production (pretty standard setup) Basically, there are two optio...
stackexchange/codereview
It is possible to move a table from one schema to another: ALTER TABLE my_table SET SCHEMA different_schema; However, I cannot find the equivalent feature for moving a function from one schema to another. How can I do this? (version 8.3+)
stackexchange/codereview
Apple's guidelines for their new Mac App Store say that you cannot use deprecated libraries such as Apple's Java framework. But will Apple allow apps which come with a third-party Java runtime, such as SoyLatte?
stackexchange/codereview
I have a UIScrollView with multiple UIImageViews in it created like this. frame = [[UIImageView alloc] initWithImage:bg]; frame.frame = CGRectMake(FRAME_SEPARATOR + numPage*1024 + numColumn*(FRAME_SEPARATOR+230), 10 +numRow*(FRAME_SEPARATOR+145), 230, 145); UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] ...
stackexchange/codereview
I have a listbox and I am trying to Bind DataTable with it. I debug the Code and there is data in the DataTable but it does not show the data inside the DataList. <Window.Resources> <local:myCurrencyColor x:Key="CurrColor"></local:myCurrencyColor> </Window.Resources> <Grid Name="grid1"> <ListBox Margin...
stackexchange/codereview
I think i am doing something wrong in here so i will paste here so you can put me to the right track: public MembershipCreateStatus CreateUser(string username, string password, string mail, bool autoemail, string fullname) { using (TemplateEntities ctx = new TemplateEntities()) ...
stackexchange/codereview
I have a question about Entity Framework and Linq to Entities. My .NET version is 4.0. I'm refactoring the database access layer of an existing application, and I plan to use Linq to Entities (instead of today's DataReaders and SQL strings). The structure of the database cannot be altered. My problem comes from a store...
stackexchange/codereview
I am reading IPaddress from xml file and I put it into IPaddress.parse() and then use it but it does not work. it says "An invalid IP address was specified." but when I write it manually it works. why I cant use IP address after reading xml file. I tried to erase "white spaces" , it said samething again. string ipadd...
stackexchange/codereview
I have a custom developed USB card reader. I am using the following code to interact and iterrate over the device: http://www.codeproject.com/KB/system/usbeject.aspx The code above provides an 'eject' method using the following line: Native.CM_Request_Device_Eject_NoUi(device.InstanceHandle, IntPtr.Zero, null, 0, 0); ...
stackexchange/codereview
my code- <td> <p align="justify" id="prodetail"><img src="images/PostQuote.png" id="protext">Airspot recently realeases a revolutionary wireless router that can help your WiFi router go social.<br> <a href="linkpage.htm" align="right">more...</a></p> </td> I have some links on mouse over of links I...
stackexchange/codereview
NOTE: Please read the whole thing before posting, you'll see why. So I have an OpenGL/WinAPI application. I'm doing what you would expect, by doing cycles of handling messages, then rendering a frame, handling messages, rendering frame... The trouble is, when I resize or move a window, the screen freezes, and it can lo...
stackexchange/codereview
I am writing an Android app, which is basically a quiz. A it contains pictures of animals and the user must click on the correct picture. The pictures are all png files used as background pictures for button views. The problem I have/had is with the onCLick method. THis is the code. public void onClick(View view) { ...
stackexchange/codereview
I have a call to a SOAP WCF Service that returns a lot of data. More than the calling Windows Mobile Device can handle. Yet I am noticing something odd. When I make the call it looks like this: MyContract[] myContractArray = MyService.CallToGetLotsOfDataObjects(); That does not fail. But when it iterate through myC...
stackexchange/codereview
I was building a 2D project in OpenGL ES 1.1 but decided to switch to 2.0 since I was only going to be developing for the iPad. In 1.1, when a viewport is set up, the notion seems to be that you are viewing only a part of the full 3D space e.g. CGRect rect = view.bounds; glOrthof(-1.0, ...
stackexchange/codereview
I've created a wallboard application to display outstanding support calls for my ICT department. I've bound a number of gridviews to sqldatasources which execute a stored procedure. This is automated via asp.net ajax controls and partially refreshes the page/data every 30 seconds. At the moment, when the number of rec...
stackexchange/codereview
I am still having a issue getting over a small issue when it comes to TDD. I need a method that will get a certain record set of filtered data from the data layer (linq2SQL). Please note that i am using the linq generated classes from that are generated from the DBML. Now the problem is that i want to write a test for ...
stackexchange/codereview
I am developing an application and I will need to take measurements on different aspects, namely time spent in each method and the strain on system resources as well as doing the occasional bit of debugging to monitor how the data is processed. I'll be using an open source library for MIDI files that is available as so...
stackexchange/codereview
I am trying to use an expander control on a silverlight application. If I just drop it onto the design surface and rebuild the project the Intellisense for XAML suddenly stops working. If I then just remove the control from the XAML markup and rebuild it starts working again. I can even leave the namespace. Not sur...
stackexchange/codereview
Can someone please explain the difference between the following two options of Tortoise SVN on conflicted files: Resolve conflict using 'theirs'. Resolve conflict using 'mine'. On a side note. Why on earth no one has ever reported this confusing use of terminology as a bug?
stackexchange/codereview
Im wondering what is the point of using a android service to do background work when you need to do a lot of things just to access any public methods or get a large chunk of data from a service such as a larger List object. why not just use a simple POJO that does stuff in the background for you in a seperate thread if...
stackexchange/codereview
I'm querying a MySQL table to get some data that I display on a php page. The problem is that the col widths are small for a few columns. Is there any-way I can specifically change those (not the rest)? Currently, I'm doing my printing via a loop, so it seems strange to me as to how to pin-point which corresponds to ...
stackexchange/codereview
Here is my model: class Members(models.Model): firstname = models.CharField(max_length=30) lastname = models.CharField(max_length=30) gender = models.CharField(max_length=1) email = models.EmailField() password = models.CharField(max_length=30) co...
stackexchange/codereview
Let's say I want to set a guid to be my application's assembly guid. As searched from internet, we can use (new Guid()).Next() to get a new unique value. I cannot figure out how my guid is warranted to be unique against others? Please explain if you know how to.
stackexchange/codereview
Is there a common way in C++ to translate an error code to a string to display it? I saw somewhere a err2msg function, with a big switch, but is that really the best way?
stackexchange/codereview
This PDO request is not welcomed by my server for some reason. It makes the server throw a 500 Internal Server Error. All of my other PHP files are working fine and I haven't changed any server settings. Strangely though, It seems that when I comment out the line that binds the variable $u, it does not give a 500 error...
stackexchange/codereview
I'm writing an iPhone app that integrates with third party APIs. These APIs use OAuth (key/secret specific to my app not per user) in order to authenticate which app the request is being made in behalf of. Is it secure (or how secure) is it to simply put the key/secret in code? Can this sort of data be reverse-engineer...
stackexchange/codereview
I need to make design like this, to make this possible i used dotted line as background of li and + icon as a list-style-image. but it's not looking same in all browsers. <ul> <li>item 1</li> <li>item 2</li> <li>item 3</li> <li>item 4</li> <li class="last">item 5</li> </ul> IE7 and 6 it's looking like...
stackexchange/codereview
If a website uses Facebook Connect, it seems like the new Facebook Graph API way of logging in is that it will give an fbs___appID___ as a cookie, with access_token inside, and there are also the expires, session_key, and sig. Why is a session_key and sig needed? Isn't the access_token by itself enough? Is the sessio...
stackexchange/codereview
I'm trying to pass an image's src to a django view when a button is clicked. In my template, I have: $("#url_submit").click(function() { var film = "{{ filmname }}" var id = {{ id }} $.ajax({ url: "/db/gallery2/" + film + "/" + id + "/", data: {url: $('#large_thumbnail').attr('src')}, type: "PO...
stackexchange/codereview
Is it possible to add a full directory via diff and patch? It seems as very convenient way to add additional modules on top of standard code-base. I googled for some solutions, but they generally work on file level, not on directory level. Thanks.
stackexchange/codereview
i want to know how to scan a paper from a iphone cam and i need to read the data on the paper later i want to store the data... is it possible..? please give me a thought... Thanks..
stackexchange/codereview
Hi I am new to android.I just create the Grid view by using java code(not using xml design) I need to reduce the font size of the Grid view .How to do this ?
stackexchange/codereview
What lines starting with <%@ should be added at the beginning of a JSP file to be able to make use of the tag. I have added the following line to the beginning of my jsp. <%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %> But Eclipse IDE says The tag handler class for "html:link" (org.apache.stru...
stackexchange/codereview
I need to serialize C/C++ structure in a binary string,very fast. Env = Windows,Boost 1.44,Python 2.4. We have 3 structures differents to serialize: Basic : int,double,long,float,string (or char*) Vector: - Each element can be : Basic or Vector or a Map --> vector< Basic,Vector,Map > Map: - Each Valu...
stackexchange/codereview
I have a desktop with win 7 ultimate and a laptop with win 2000 pro. Is it possible for me to log in to my desktop from the laptop without kicking out the user that's currently on the desktop? I want to have a separate session. TY
stackexchange/codereview
I want to test some performance tuning techniques on a realistic database with many database tables and a lot of data. I would like to do this in Oracle 11g Release 1 and would like to know how best to go about this or if there is a website I could get realistic datasets/database from. Many thanks for your audience. Ch...
stackexchange/codereview
I am using pyAWS wrapper for Amazon Web services. I want to show amazon search results on my web sites. For search I am using following codes. from pyaws import ecs ecs.setLicenseKey('Your-AWS-License-Key') books = ecs.ItemSearch('python', SearchIndex='Books') But it gives an error: u'ingParameter'
stackexchange/codereview
I'm trying to do the following: IF NOT EXISTS ( SELECT * FROM [tbl_web_company] WHERE [name] = @name AND [address1] = @address1 AND [address2] = @address2 AND [city] = @city...
stackexchange/codereview
Is it possible in PHP to configure it to somehow not save files to disk at all? As a matter of fact, the best thing would be to get the script going before even reading the entire POST body. (Keeping my hopes high ;))
stackexchange/codereview
I've got some code under version control (using mercurial), and would like to share some of it, whilst hiding other parts which I cannot release into the public domain (at least at this stage). I'd ideally like to keep the revision history of the public code intact, and, more importantly, be able push/pull changes bet...
stackexchange/codereview
I'm baffled that I can't find a quick answer to this. I'm essentially looking for a datastructure in Java which implements the java.util.List interface, but which stores its members in a sorted order. I know that you can use a normal ArrayList and use Collections.sort() on it, but I have a scenario where I am occasio...
stackexchange/codereview
When trying to run django-celery with beat scheduler: bin/django celeryd -B --settings=app.development --loglevel=INFO I got this exception: Process Beat: Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/multiprocessing/process.py", line 237, in _bootstrap self.run() File "/home/user/egg...
stackexchange/codereview
I can't for the life of me figure out what's wrong with this sql statement select top(1) OrderNumber from (select top(5) OrderNumber from SomeTable where TreePath='tests' order by OrderNumber asc) Any Ideas? Regards, Byron Cobb.
stackexchange/codereview
I ran into a little problem using R… In the following data frame test <- data.frame(v1=c(rep(1,3),rep(2,3)),v2=0) I want to change values for v2 in the rows where v1 is 1. test[test$v1==1,"v2"] <- 10 works just fine. test v1 v2 1 1 10 2 1 10 3 1 10 4 2 0 5 2 0 6 2 0 However, I need to do that in a functi...
stackexchange/codereview
I am using ajax model popup extender in my asp.net page. From my page , on click of Save button , i popup panel using model popup extender. If i cause postback from model popup , my backend (asp.net) form controls are coming front (ie) in the panel. Here is my code snippet, <form id="form1" runat="server"> ...
stackexchange/codereview
I have a list of images which are sortable. To delete them, the user will drag them from the Sortable list to a Droppable div representing a trashcan. How can I accomplish this? Do I need to add a draggable to each of the image for it to work with the droppable?
stackexchange/codereview
HTTP PUT isn't entirely cross browser so Rails (I'm using Rails 3) supports using POST and passing the _method query param. This is great, but it doesn't seem to work when sending JSON. Example: $.ajax({ url: window.location.pathname, type: 'POST', contentType: 'application/json', data: JSON.stringify(...
stackexchange/codereview
Good morning, Does anyone know if there is an easy way I can use a SQL query in Excel to select specific data from an Excel spreadsheet without having to use VBA, Access, an SQL database or complicated Excel formula? Thank you very much.
stackexchange/codereview
Hai guise! I am having a spot of trouble with some jQuery I am using, this was previously working but I have made many developments since then and tried to track back to find out what the issue was, but I am unsuccessful - hence, my presence on here. Anyway, I am getting some JS errors in both IE7 and IE8 with the catc...
stackexchange/codereview
Is it possible to retrieve the path to My Documents folder with Inno setup? I tried to retrieve the path via registry RegQueryStringValue(HKCU, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders', 'Personal', path); But it returned: %USERPROFILE%\Mina dokument. When I tried to use it as install pat...
stackexchange/codereview
I use CXF to generate the classes from WSDL but I don't know how to access the following field : <s:complexType name="text-with-layout-type" mixed="true"> <s:sequence> <s:any minOccurs="0" maxOccurs="unbounded"/> </s:sequence> <s:attribute name="L" type="s:string"/> </s:complexType> The resulting class is : @XmlAccess...
stackexchange/codereview