instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
As my user changes the CurrentItem of a dataForm, I need to go the server to get addtional data. It's quite likely that the user could scroll through several items before finding the desired one. I would like to sleep for 500ms before going to get the data. Is there a component already in the SDK or toolkit like a ba...
stackexchange/codereview
I'm using RhinoMocks to test an Add() method on a viewModel. I've got one test called AddTest()) which tests everything inside the Add() method, including 1) an item was added the viewModel items list, 2) the item was validated 3) the itemsList pagedCollection view was moved to the correct page the problem is that this...
stackexchange/codereview
This questiong is regarding Java EE 6, using glassfish v3 embedded-all. I have a unit test that uses EJBContainer to test my stateless EJB. Problem is I'm having trouble looking up the EJB (remote) using JNDI: setup() { ctx = EJBContainer.createEJBContainer().getContext(); } ... test() { BookService bookService ...
stackexchange/codereview
In my android application i used 3 imageView objects. for performing the touch action i set the touch listener and implement the opereations. when running the application it works for some touches of the imageview, after that the application hangs and finally i saw an error "keydispatching timeout". Then i implement as...
stackexchange/codereview
I'm writing program for monitoring FTP traffic using raw sockets. Now, I am able to determine start of data in TCP packet using this code: // char * packet; // struct * iphdr; // struct * tcphdr; // ... // check, whether sniffed ethernet frame contains IP and TCP char * data; data = (packet + sizeof (struct ethhdr)...
stackexchange/codereview
I need to place objects 40% 40% 20% and that there were no scroll <Grid Grid.Row="1"> <Grid.RowDefinitions> <RowDefinition Height="40*" /> <RowDefinition Height="40*" /> <RowDefinition Height="20*"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> <ColumnDefinit...
stackexchange/codereview
Is it possible to programmatically change the value of the document.activeElement property in JavaScript?
stackexchange/codereview
I am trying to figure out the most efficient / effective way of performing a certain type of query using Grails GORM. This is the scenario where I want to query all of the children / linked items in a many to one relationship. This is a one way relationship whereby the many side used the id of the thing it is linked t...
stackexchange/codereview
I built an auto-update feature to my program. It polling an xml in some http url, and in case there is new version is notifies the user and downloading the new files. I want to allow redistributing of those updates in closed networks without internet connections. The administrators can download all update files and hos...
stackexchange/codereview
I wanted to clarify something: I.e when I add a UIVIEW To i.e another UIVIEW programatically. i.e [theview addsubview:thechildview]; I need to release thechildview because theview increments the retain count. Right? So basically if I have a loop and I am using that loop to initialise subviews and add the subviews to a ...
stackexchange/codereview
In our project, we would like to access the webcam image programmatically. The main problem we have is that the webcam automatically adjusts the sensitivity depending on the brightness of the captured image. Is there any (platform-independent) way to change this kind of parameters for the webcam (preferably any model)?...
stackexchange/codereview
I am trying to raise an exception if a user clicks the delete button but doesn't select a item in the listbox. This is what I have: try { if (dataListBox.SelectedIndex == null) throw new Exception; //deletes selected items dataListBox.Items.RemoveAt(dataListBox.SelectedIndex); isDirty = true; }...
stackexchange/codereview
I've got a question in my test: What is wrong with program that counts number of lines and words in file? open F, $ARGV[0] || die $!; my @lines = <F>; my @words = map {split /\s/} @lines; printf "%8d %8d\n", scalar(@lines), scalar(@words); close(F); My conjectures are: If file does not exist, program won't tell us...
stackexchange/codereview
the following small line throws a System.Security.SecurityException: Requested registry access is not allowed: RegistryKey _key = HKLM.OpenSubKey("path\\to\\my settings", false); Now.. what's the point some would ask? The point is that this runs ONLY when I am logged on. The exception is thrown if the program runs as ...
stackexchange/codereview
I'm creating a settings screen, its a child screen and won't push to another screen. I don't want to use a table view. But I need to have the screen look like other settings screens, with the gray sort of background, like this...
stackexchange/codereview
How do I obtain all the axes handles in a figure handle? Given the figure handle hf, I found that get(hf, 'children') may return the handles of all axes. However, the Matlab Help suggests that it may return more than just the axes handles: Children of the figure. A vector containing the handles of all axes, user-inter...
stackexchange/codereview
I am not sure if this is a duplicate question to this one mainly because I'm a bit new to generics, so please be forgiving. I have a generic class: public class MyGeneric<T extends Collection> { private Class<T> genericType; public MyGeneric() { // Missing code here } } My question is this: ho...
stackexchange/codereview
I have a jQuery function (stripped down just for this example): (function($) { $.fn.Lightbox = function(options) { var opts = $.extend(defaults, options); function initialize() { $('#lightbox').show(); return false; }; function close() { $('#lig...
stackexchange/codereview
I'm trying to come up with a reusable warning piece for the business objects in a project I'm working on. Before saving one of our business objects, sometimes we need to warn the user of what the potential impacts are. Say my business object was named "Company". Company.Delete() will get rid of the company and not real...
stackexchange/codereview
In my SharePoint site I have a list wich has a column that contains rich text in it. (i.e text with bold, color and italic style). Now when user perform search, If the search key word match with the data in rich text column it will show that record as a search result which is perfect. But the result in search result p...
stackexchange/codereview
I want to have log output of my packages or classes in a specific appender. But everything is printed out to the root-logger. Here is my config: log4j = { appenders { console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n') file name:'grailslog', file:'grails.log', threshold:org.apache...
stackexchange/codereview
Recently a student got this quite by accident (or well, a side effect of incorrect xhtml/css). Is this possible to do in a cross-browser, automatic way with say a Wordpress article and custom html/css? (I.e., no php script or such.) It's been a goal for me to at one point make a site that reads "like a book" rather tha...
stackexchange/codereview
I have an application in which I need to be able to print an existing Word 2007 format document. Looking around I can't see any free components that will facilitate this without the need for Word to be installed. Does anyone know of any? Assuming that I have to have Word installed to print the docx file, I was going t...
stackexchange/codereview
Good Morning Users, i have implemented the follwing deleagate Method: - (void)openFlowView:(AFOpenFlowView *)openFlowView doubleTapOnIndex:(int)index itemView:(AFItemView *)itemView{ NSLog(@"Der Touch geht!!!!!"); } And there the method should be prompted and called: - (void)touchesBegan:(NSSet *)touches withEvent...
stackexchange/codereview
I have started using django-piston for creating APIS but I am having trouble finding documentation on how to consume the API from inside django with python. I have seen examples using javascript. So far I am using urllib to access the API but I wonder if this is the best approach. I appreciate your input on this!
stackexchange/codereview
I'm currently developing an EventManager class to ensure that no events are left wired to dead WCF duplex clients, and also to control prevent multiple wiring from the same client to the one event. Now basically, I'm what stuck with is trying to pass the event delegate to a function that will control the assignment lik...
stackexchange/codereview
I have a weird Scheme question. This is a part of something bigger that I'm helping a friend with. I need to convert a Tree:Data into an image that accurately represents the tree (I'm sorry I don't have a sample image to show just yet). Please let me know if you have any ideas for this (and/or if you have questions) so...
stackexchange/codereview
i tried many tutorials but all failed, i know for an experienced user it might be obvious, thx anyway. there is the simple form: https://www.shab.ch/shabforms/COMMON/application/applicationGrid.jsp?template=1&view=2&page=/COMMON/search/searchForm.jsp?MODE=SHAB here is my script which returns only the empty form instead...
stackexchange/codereview
I am new to django (until now, I used the symfony PHP Framework). My problem is this: I have a model Event and model Date. The Date has a foreign key to Event, so that an Event may (or should) have one or more Dates. Now I want to have a form to create Events and this form should include a subform for adding one corres...
stackexchange/codereview
I can use SHOW TABLES to list the tables, but how can I get only the number of tables in a given database?
stackexchange/codereview
I have IntelliJ IDEA 8.1.3. It has support for a hibernate facet/plugin which I have enabled. When I do this it recognises the HQL query strings but highlights in red all the objects and properties. I can't see how to get IDEA to be aware of my entities. I use spring+hibernate and annotated objects. I have no hibern...
stackexchange/codereview
I'm using sort with a customized comparison subroutine I've written: sub special_compare { # calc something using $a and $b # return value } my @sorted = sort special_compare @list; I know it's best use $a and $b which are automatically set, but sometimes I'd like my special_compare to get more arguments, i.e.: sub...
stackexchange/codereview
I am assigned a project in which I have to send an SMS message from Android SDK automatically. Can anybody help me in this concern?
stackexchange/codereview
What you do when you need to maintain a table with unique values when you can't use UNIQUE constraint? For example, I use MySQL and want to map my urls to ids. So I create a table: CREATE TABLE url (id INTEGER PRIMARY KEY AUTO_INCREMENT, url VARCHAR(2048)); The problem is that mysql doesn't allow unique field bigger t...
stackexchange/codereview
Is there a way to set a different background color for each item in a QComboBox ?
stackexchange/codereview
I'm looking for the best way to pull info from the datastore into a list (with the intention of outputting to ReportLab to generate a pdf). Is there a way to do it besides looping through the output, and creating a list from it?
stackexchange/codereview
In my WPF-application, I call new windows in the following way: _newWin = new WinWorkers_AddWorker(); _newWin.WindowState = this.WindowState; _newWin.Show(); Where _newWin is a private Window object. My questions: Should I assign a null value to _newWin after I call _newWin.Show()? Will this decrease memory consumpt...
stackexchange/codereview
I'm fairly new to web development. Basically I'm using a HTML5 canvas to render content, and javascript functions which clear and render to the canvas. I'm hoping to call a web service to get data that would affect content, which I believe is most easily done from C#, and was wondering how I could use this to periodica...
stackexchange/codereview
I'm trying to select the H2 that contains the most characters, or is the widest in width, whichever one is simpler, or if you know how to do it could you put both? I'm not sure of the syntax.
stackexchange/codereview
It seems that Clojure 1.2.0 has a definterface form, apparently for creating Java interfaces, and some people recommend using it (e.g. one answer to this number crunching question). However, I cannot seem to find any documentation or substantial examples of how to use it. Am I not looking in the right place, or is it a...
stackexchange/codereview
I want to delete the third zero after the point in MSSM
stackexchange/codereview
string Path = TextBox3.Text; // initialize the Excel Application class Excel.ApplicationClass app = new ApplicationClass(); // create the workbook object by opening the excel file. Excel.Workbook workBook = app.Workbooks.Open(Path, 0...
stackexchange/codereview
I want to know what is the difference between before releasing my object of [super delloc] and after releasing my object of line [super delloc] For example, Before.. - (void)dealloc { [theAudioPlayer stop]; [soundFilePath release]; [theAudioPlayer release]; [super dealloc]; } Now after releasing obj...
stackexchange/codereview
I want to define a set of constants in a class like: class Foo(object): (NONEXISTING,VAGUE,CONFIRMED) = (0,1,2) def __init__(self): self.status = VAGUE However, I get NameError: global name 'VAGUE' is not defined Is there a way of defining these constants to be visiable inside the class without resortin...
stackexchange/codereview
I have added a "tooltip" to my dropdownlist using the following codebehind: protected void btnAdd_Click(object sender, EventArgs e) { load_Buttons(1); tblAddCandidate.Visible = true; txtAdd_RegDate.Text = DateTime.Today.ToShortDateString(); foreach (ListItem _listItem in th...
stackexchange/codereview
I'd like to know what is the difference between MouseEvent.CLICK & MouseEvent.MOUSE_DOWN. Because when i use MouseEvent.MOUSE_DOWN for a button to set full-screen view its doesn't work, instead of this MouseEvent.CLICK works. So what was the reason.
stackexchange/codereview
I can insert/update/delete fine from tables like product and such but this code fails with saying that the table AppAttribute does not exist. As I said, other tables are working fine... ExecuteNonQuery(BuildCommand(string.Format("DELETE FROM AppAttribute WHERE ProjectId={0};", ID))); ExecuteNonQuery(BuildComman...
stackexchange/codereview
Say you have: struct c_struct { int value; /* other stuff */ void (* dump)(); }; and you'd like to, at some point: c_struct_obj->dump(); I assume there's no way you could instantiate a c_struct object such that its particular "dump" function knows its particular "value" the way C++ methods know member variab...
stackexchange/codereview
I have a problem and i need some help please. I have this page with a parameter http://www.webxpress.com/landingpage.asp?label=CSU... Now in this page i have 3 buttons with the following links: www.webxpress.com/button1.asp www.webxpress.com/button2.asp www.webxpress.com/button3.asp All i want is to add the parameter i...
stackexchange/codereview
In my application, I have a login screen presented as a modal view controller. Once the user logs in successfully, the modal view is dismissed and the application's data is updated from a web service. The user can then work with the new data downloaded. Periodically, we check to see if any data needs to be synced bac...
stackexchange/codereview
i have a payment gateway in my website and i showcase the products with their prices in USD. But when users select a product to purchase, i need to convert the USD amount to INR as my payment gateway is allowing only Indian (INR) rates for transactions. Hence i need a live currency conversion code in php, that i can us...
stackexchange/codereview
I would like to create a web site with many images. But I would like to protect against direct access to images, e.g. direct links to images without visiting the web site. What is the preferred way to do this? And what are the alternatives with Pros and cons? I have some ideas (I don't know if they are possible): File...
stackexchange/codereview
I'm working on a little project in JavaScript/jQuery. In order to display results from a calculation done in javascript, I'd like to open a new window with some predefined content and modify this content in order to display the results: Im using code like this: var resultwindow = window.open('result.html') var doc = $...
stackexchange/codereview
I've got a set of Images and would like to know which I have touched. How could I implement that...? To be more precise: A "Home-Class" will instantiate a couple of Image-Classes: Image *myImageView = [[Image alloc] initWithImage:myImage]; The image-class looks something like this: - (id) initWithImage: (UIImage *) an...
stackexchange/codereview
In this simple example (ofcourse my real world problem is a tad more complex, although the basics are the same), how do I enforce tell dont ask to the max? Id like to maximize tell dont ask in the process method, in its current state its harder to mock and test. public class Processor { public void Process() { ...
stackexchange/codereview
I am facing issues while retrieving data for entities having bi-directional many-to-many relationship. If I use List for storing entities, I get unable to fetch multiple bags simultaneously error. If i change my code to use Set, I get stackoverflow error. Details : Spring 3.0.3 Hibernate-core : 3.5.1-Final Hibernate-a...
stackexchange/codereview
I want to change the values of the @page attributes of <line/> that are descendants of <section type="cover"/> to (max(@page) + 1) of <section type="contents"/>. Basically I need the page number for the cover section to be 1 higher than the last numeric page number of the contents section. Note: <line/> nodes are not ...
stackexchange/codereview
I realize that each argument passed from the command line is stored as a string in 'char *argv[]' I'd like to pass $ progname array[500] and pull the string from argv[1] subsequently specifying an array based on what I read in. Any ideas?
stackexchange/codereview
I'm building a site using WCF RIA services and Silverlight 4. My user database, the standard ASPNETDB user store, is on my server, which is not on my local development machine. I've created a new project using the Silverlight Business Application template. I'm still becoming familiar with how to develop for WCF RIA ...
stackexchange/codereview
This is the code by itself. This is how it looks by it self and how I want it to look. And this is how I don't want it to look but how it looks when I copy and paste the whole HTML to my eBay listing. I get the same results on Chrome and IE. I'm not sure if is OK to copy and paste the whole HTML to the eBay listing, bu...
stackexchange/codereview
What does /bin/sh -c mean? What does -c do?
stackexchange/codereview
I have filled my dataset from multiple xml files in C#.Net. As a result I have a dataset which contains multiple DataTables in it. All of them are having two columns each namely "ID" and "Name". These data tables can contain rows for same ids actoss all the tables. For Example: DataTable 1 ------------ ID Name1 1 S1...
stackexchange/codereview
I'm trying to use Python in a module for an analysis software of vehicle bus systems. For this I have to embed Python in a thread safe manner, since there can be multiple instances of the module witch work independently. I could use a mutex to guard all access to Python and create an unique (python) module for every t...
stackexchange/codereview
What is this name space like wrapping/nested structure in CSS? I have never seen this before. Please help me understand what is this. Thanks @media screen, projection { * { margin: 0px; padding: 0px; } body { background: #fff; overflow-y: scroll; _overflow-y:...
stackexchange/codereview
I want my graph some thing similar to Google finance graphs in the context of displaying x&y co-ordinates of the mouse when hover on the graph. Am using, DOJO's dojox.charting.Chart2D to draw the graph. Might be there is way to display the co-ordinates but i didn't find the option to display them. Please suggest me if ...
stackexchange/codereview
After upgrading Jasper to the last version, it stopped finding one font: Symbol. The rest of the fonts seem to be fine. I have a bunch of ttfs in the same directory as where jasper is run, the program is just a small wrapper to generate PDFs, and it's throwing this error: net.sf.jasperreports.engine.util.JRFontNotFound...
stackexchange/codereview
So I have 5 sliders on a web page. Any brilliant solutions as to how to grab their values and submit them to the server (rails in this case) (ajax is ok)? One solution is to use hidden fields and on each slider change to update the corresponding hidden field. Seems kinda lame. The sliders all have a class of "slider"...
stackexchange/codereview
Evening all, I have just began my final year at university and am studying cryptography. We have just been set the first assignment just 3 weeks in so I'm assuming it won't be a case of breaking the enigma code. As part of the assignment there are 7 exercises with 2 further challenges consisting of various ciphers (Ca...
stackexchange/codereview
Is there any framework/engine that provide ability to draw 3d images on Canvas? I am planning to draw some primitives (different shapes) located in one plane: var dist = 2; var hexHalfW = 35; var lengthX = 20; var hexR = Math.sqrt(lengthX*lengthX+hexHalfW*hexHalfW);//40.31128874 var hexDiag = 2*hexR...
stackexchange/codereview
Let's say I have 9 MxN black and white images that are in some way related to one another (i.e. time lapse of some event). What is a way that I can display all of these images on one surface plot? Assume the MxN matrices only contain 0's and 1's. Assume the images simply contain white lines on a black background (i.e. ...
stackexchange/codereview
Is it possible to record video in a service, that is without setting the setPreviewDisplay? I tried it on a HTC Desire, however it is throwing this info in the log, MediaRecorder Prepare Failed: -1 CameraInput No surface is available for display Is there some additional properties to be set?
stackexchange/codereview
I have used the accepted answer provided to the question "How to set the java.library.path from Eclipse?" for setting the library path for a specific jar. In my case, I have about 10 third party jars and each jar depends on the same set of dlls, but I need to do this process for each jar. I can do this manually, but is...
stackexchange/codereview
I ran into this question when i was answering another guys question. How do compilers optimize the code? Can keywords like const, ... help? Beside the fact with volatiles and inline functions and how to optimize the code all by your self!
stackexchange/codereview
I've got an interesting query that I wonder if anyone can help with? Basically, I have three tables, Title, Attribute and Attribute_Value Title contains a list of templates like 'Created on {Date} by {User} in {Category}' then in the Attribute table, I have rows that contain a definition of the parameters wrapped in cu...
stackexchange/codereview
I have a div in my master page that is only displayed if Session["message"] contains data: <% if (!String.IsNullOrEmpty(Session["message"].ToString())) { %> <div id="sessionMessage" class="sessionMessage"><%:Session["message"].ToString()%></div> <% } %> I use it to pass general info to us...
stackexchange/codereview
Is this the right way of declaration dbreaders when mulitple users access the same page? public dbReader as system.Data.IDataReader at class level or Dim dbReader as System.Data.IDataReader in each function inside a class. What would be the best practice to make the dbReader thread safe in VB.Net? Does declaring them a...
stackexchange/codereview
I am using Jquery. I have got below links in my html <a class="load-fragment" href="/english/india/index.aspx"><span>Overview</span></a> <a class="load-fragment" href="/english/india/guide.aspx"><span>Guide</span></a> I am trying to get out "index" and "guide" from (href="/english/india/index.aspx", href="/english/ind...
stackexchange/codereview
I want to realize context help for application View based on flow documents. For example, user presses Ctrl+F1 and context help about current View appears over this View. The help content must must be localized. In window markup can looks like this: <Window x:Class="UdkppReports.Window2" xmlns="http://schemas.micro...
stackexchange/codereview
What's the best way to integrate Erlang and python? We need to call python functions in Erlang and call Erlang functions in python. At this moment we are trying to use SOAP as a intermediate layer between these two languages, but we have a lot of "not compatible" troubles. Could you advise the best way to perform integ...
stackexchange/codereview
I have a web form that is using this awesome plugin and I'm trying to set up a rule. In my form, I have a Quantity field. If the Quantity field is set to 1 AND a checkbox is checked, then I want to validate a field. My form is setup like: Quantity TEXTBOX id = txtQuantity Gift? CHECKBOX id = #ot...
stackexchange/codereview
Running on Adaptive Server Enterprise/15.0.3/EBF 17157 ESD#3/P/x86_64/Enterprise Linux/ase1503/2726/64-bit/FBO/ The below code should never enter the substring case, however I am presented with a Sybase Error 536. Is this a form of optimization where it evaluates all paths regardless of the actual value?? We can work a...
stackexchange/codereview
I am new to xmpp.I created my own ejabberd server and tried to implement facebook chat through it, but it is giving the response as " remote connection failed". I also tried with punjab but not successful. Can anyone please tell me the configuration settings to be modified or added in ejabberd or punjab. I tried using ...
stackexchange/codereview
Why does this work: - (void)tableView: (UITableView *)tableView willDisplayCell: (UITableViewCell *)cell forRowAtIndexPath: (NSIndexPath *)indexPath { cell.backgroundColor = [UIColor redColor]; } but this doesn't? - (void)tableView: (UITableView *)tableView willDisplayCell: (UITableViewCell *)cell forRowAtIndexPat...
stackexchange/codereview
I have a macbook pro with german keyboard layout. In the X11 xterm application, when I type umlaute like ä,ö,ü,ß, then they don't show up. And ß shows the history like the up-arrow. On the other hand if I start emacs in x11 (not in the xterm) then everything works fine. How can I configure X11 xterm to type all charact...
stackexchange/codereview
I am using Spring 3 with sitemesh. I would like to refer to spring context bean in decorator page defined in sitemesh. The problem is that SiteMesh filter is working outside the Spring context, so request object on sitemesh decorator jsp page is native HttpServletRequest and not wrapper with useful functions to access ...
stackexchange/codereview
For a problem that I'm working on right now, I would like a reasonably uniform random choice from the powerset of a given set. Unfortunately this runs right into statistics which is something that I've not studied at all (something that I need to correct now that I'm getting into real programming) so I wanted to run my...
stackexchange/codereview
I would like to include all named queries in a separate XML file and use it in persistence. How can I accomplish the same? I am using Toplink JPA in a JSF-Web application. Actually, I am not able to get the directory/file structure to use. I tried to use <mapping-file> in persistence.xml and tried to place the query fi...
stackexchange/codereview
I'm on a network with a couple of people that all listen to music using iTunes (Mac and PC). I want to build a web page that will publish the track, artist and the logged in user's name. A user will need to be able to easily toggle whether they want their music displayed or not. The idea is similar to IM clients whe...
stackexchange/codereview
Uri uri = Uri.parse("http://video.ted.com/talks/podcast/MichelleObama_2009P.mp4"); VideoView videoView = (VideoView) findViewById(R.id.surface); videoView.bringToFront(); videoView.setVideoURI(uri); mediaController = new MediaController(this); mediaController.setAnchorView(videoView); videoV...
stackexchange/codereview
i am having a problem with access sql SELECT statement. the problem is that when the backend is ACCESS-2007 it works; however when the backend is sql-server-2008, it is not returning anything. here is the statement: SELECT IIf([Lab Occurrence Form].[1 0 Preanalytical (Before Testing)] Like '*1.11*Other*','1.11 Other',[...
stackexchange/codereview
I need a discussion regarding the Performance of LINQ and Lambda Expression. Which one is better?
stackexchange/codereview
I'm trying to create a web application which will get input from system. What this application should do is to listen what happens when some shell scripts are executing and reporting the status trough web. An example : I'm copying thousands of records with shell script, and while this is still executing I'd like pass ...
stackexchange/codereview
For example I have this code: if (cond) { lock (locker) { foreach (var item in list) { callFunc(item); } } } And I now want to remove all those brackets because they are too redundant. I always do it manually but I find myself doing this often so was wondering if there's a shortcut ...
stackexchange/codereview
"Basic YWRtaW46YW RtaW4=" is right code for my address.I check on j2me project. And on android my getbase64 method returns "Basic YWRtaW46YW RtaW4=" its true. and ı use it on: httpConnection.setRequestProperty("Authorization",getBase64Encode()); Finally responce code is 401 any idea??? protected void connect() { ...
stackexchange/codereview
I've got the following routing in my application... public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "Branding", "foo/bar.css", new { controller = "DynamicContent", action = "CSS" } ); routes.MapRoute( "Default", ...
stackexchange/codereview
Here is what I would like to achieve: have an Ext.grid.GridPanel show data from multiple stores. Put in "DB terms", basically showing what would be a "view" of the content of more than one store. The benefit of this approach, as opposed to using cell-renderers, is that all columns would be sortable and searchable. For ...
stackexchange/codereview
From the exercises in a book I am using to learn MATLAB: Given x = [3 15 9 12 -1 0 -12 9 6 1], provide the command(s) that will A) set the values of x that are positive to zero B) set values that are multiples of 3 to 3 (rem will help here) C) multiply the values of x that are even by 5 D) extract the values of x tha...
stackexchange/codereview
I write a Pixel Bender kernal for my flash. I know that the pbk would run in another thread. But when I run my swf, the GPU usage shows 0%. I want to know does the Pixel Bender with Flash would use the GPU.
stackexchange/codereview
Hi have a form that call an Action properly. But when i enable the authentication forms, the action to login doesn't fire up (i test it with a breakpoint). My Web.config is: <authentication mode="Forms"> <forms loginUrl="Autenticacao/Index"></forms> </authentication> <authorization> <deny users="?"/...
stackexchange/codereview
Can anybody tell about the "asynctask" used in android application. Currently I am working on an application where I have to create a Class in which I have to just get the response of any particular URL given. I this particular class I was told to perform this task by making use of "asynctask". I had been getting very...
stackexchange/codereview