instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am writing a video player to play back frames captured by our ASIC. They are in a custom format, and I have been provided with a function that decodes the ASIC states. The video can be any size from 640x480 to 2560x1200 (!!!). The output of each state cycle is a 16x16 blocks of pixels, which I have to get into a vide...
stackexchange/codereview
Usually I develop in Java but now I need to write an app that will block the whole computer's screen every X minutes for Y minutes. It needs to make a break (I want to have a similar app in Windows like in Linux). So I suggest I need to use C++ and User32.dll to achieve it? Am i right? (I don't want to develop an appl...
stackexchange/codereview
Given a string of items in the request object like... mytheme_color|body = '000000' mytheme_color|h1 = 'ffffff' mytheme_color.footer|a = 'cccccc' mytheme_color.menu.top|a = 'ff0000' mytheme_color.content|ul|li#test = '777777' What would the regex and PHP look like to take each item and write them to an output string t...
stackexchange/codereview
New to Rails and ActiveRecord, not sure how I can apply validation though multiple levels of relational model. I've searched all the tutorials that I can find are all validation in just one model. How can I validate multiple relational models ? Say I have multiple models, one model called field stores different type of...
stackexchange/codereview
I am trying to find some good tutorials that would show me to create a simple SOAP based service using WCF and deploy it. I have been googling for the past 2 hour and can't seem to find any good resource.. Can anyone help me?
stackexchange/codereview
I'm using the GCal4Ruby gems plugin. I'm trying to get it render an embedded google calendar. So the relevant method is to_iframe as described here: http://cookingandcoding.com/docs/gcal4ruby/classes/GCal4Ruby/Service.html When I call the method, it produces: Figure 1 <iframe src ="relevant_and_working_Gcal_URL" width=...
stackexchange/codereview
I'm trying to upload a photo to a Facebook page I own using the iOS SDK and graph API. I've been able to upload photos to my own wall. I've also been able to post a message to my fan page wall as an admin and create an album on my fan page, so I think I'm making the right calls, but not succeeding. This is what I'm cu...
stackexchange/codereview
Is this normal? Do I have to call a method to force updates? Basically I am adding new items and can see the list is growing in memory but the UI still shows the initial elements that was defined on startup.
stackexchange/codereview
With script below, request to the server always sends empty string (even if value is not emtpty), where the data line is: data: "{ 'folderName': '" + $(this).val() + "' }" The html element under investigation is this: <asp:TextBox id="searcher" runat="server" ClientIDMode="Static" CssClass="classificationFolder" /> S...
stackexchange/codereview
I have about 8 text inputs. They all get concatenated with PHP in the end, but for ease of use for the users, I broke it up into multiple "questions". The fields all end up getting concatenated and used in an SMS enviroment where there is a 160 character cut off. I need to count all 8 inputs with jQuery to show the use...
stackexchange/codereview
Im trying to add vanity url to my web page, but its not working. So far I have tried with RewriteRule ^([A-Za-z0-9]+)[^.]$ index.php?page=$1 [nc] and RewriteEngine on RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule .* - [L] RewriteRule ^(.*)$ index.php?page=$1 [NC] but its not w...
stackexchange/codereview
Script: (too large, didn't want to paste it and clutter this, sorry.) http://pastebin.com/jhvgAqzj Well, for some reason $p is acting very very weird, the $p is set to 1 and should add 1 to itself when the 'next' button is pressed. Inversely should subtract 1 from $p when the 'prev' button is pressed. There are also ...
stackexchange/codereview
I join all my external javascript files into one file. I make two version of this file. One is zipped, one is not. How to check the browser support gzip or not and serving a right file? And if browser support gzip, how to tell it this is a zipped file?
stackexchange/codereview
I'm currently facing a problem with error codes and messages using Spring WS. We are using Spring WS 2.0 with a JAXB2 binding and the @Endpoint and @PayloadRoot annotations for convenience. Our endpoint looks like this: @Endpoint public class MyEndpoint() { private static final String MY_NAMESPACE=...; @Payloa...
stackexchange/codereview
I'm currently using the following API : http://www-opensocial.googleusercontent.com/api/people/@me/@self and scope is: http://www-opensocial.googleusercontent.com/api/people/
stackexchange/codereview
how would you create this query using Zend Framework's Zend_Db_Select SELECT movie.*, count(DISTINCT similar.tag) as shared_tags FROM movie INNER JOIN ( tagged AS this_movie INNER JOIN tagged AS similar USING (tag) ) ON similar.movie = movie.id WHERE this_movie.movie=<current_movie_id> AND movie.id != this_m...
stackexchange/codereview
Now i am working in java web application using struts 1.2 framework. Its good to sift in gwt for my career. I didnt having any knowledge in gwt. please give suggestions..
stackexchange/codereview
If I use Ctrl+S to save the .css file, cursor always jumps at the beginning of the file. Is it a feature or a bug? How do I disable it? It's so annoying.
stackexchange/codereview
As in this example. http://www.panoramio.com/lookaround/38848817 You can click on the photo to see another photo. How did they match these photos up? Is there any software which can help me do this?
stackexchange/codereview
I have problem with authentication GReader editing API. I can do the HTTPS (https://www.google.com/accounts/ClientLogin) for authentication and google is returning three tokens (SID, LSID, AUTH), but no HSID. When I try add a new feed http://www.google.com/reader/api/0/subscription/quickadd?ck=1290452912454&client=scr...
stackexchange/codereview
I was needing a popup that should be decided with a javascript function. I do not get a popup when i was using the below function. I think am doing a mistake somewhere. Could someone point out what it is? The save button calls the javascript function <asp:ImageButton ID="btnSave" runat="server" CausesValidation="true" ...
stackexchange/codereview
I have an Account model: class Account include Mongoid::Document include Mongoid::Timestamps referenced_in :user end and User: class User include Mongoid::Document include Mongoid::Timestamps ... references_one :account ... end And the following scenario(i try to set reference_one association): ...
stackexchange/codereview
I am attempting to perform a FTP Put function to an AS/400 IBM Mainframe with VB.NET. I am able to upload a file however, I need to be able to capture each output response from the mainframe for logging purposes. In short capture what prints out on the cmd screen if I were to perform the FTP manually. Any suggestion...
stackexchange/codereview
I am using XML reader class and I have made the folowing example. XmlReader xmlreader = XmlReader.Create("http://adomain/companies.xml"); while (xmlreader.ReadToFollowing("company")) { Console.WriteLine("Company {0}",xmlreader.ReadElementContentAsString()); if (xmlreade...
stackexchange/codereview
I'm tasked with creating a program that turns something like ((X+3)*(X+4)) into a binary tree, along with some other features. So far, I have taken in the input, and parsed it into two stacks, one containing the operands, the other the operators. I defined the stacks simply for now (so they only have a nextnode and ch...
stackexchange/codereview
I suspect there is a way if you can save by locating the other end of a range of repeated values faster than by iterating through that sublist
stackexchange/codereview
I'm interested in writing some homebrew code for the Microsoft Kinect console. I have a few applications which I think would translate well to the platform. I've been toying with the idea of giving it a shot using the OpenKinect drivers and libraries. Obviously this would be a lot of work, but I am wondering just ho...
stackexchange/codereview
I am trying to set focus to the next input element in a table when onkeyup event is triggered, much similar to the functionality as stated here <table> <tr> <ui:repeat value="#{alphabets}" var="alphabet"> <td> <h:inputText value="#{alphabet.value}" onkeyup="jumpNext(this)" /> </td> </ui:repeat> </tr> <...
stackexchange/codereview
So, I've been messing around with the Facebook iOS SDK for a bit and as of the latest version I can't get the fbDidLogin method to be called. The login process works fine, with Safari used on the simulator and the Facebook app being used when running it on a device. However, after logging in I get transferred back to m...
stackexchange/codereview
I've installed RubyInstaller on Windows and I'm running IMAP Sync but I need to use it to sync hundreds of accounts. If I could pass these variables to it via command line I could automate the whole process better. # Source server connection info. SOURCE_NAME = 'username@example.com' SOURCE_HOST = 'mail.example.com' SO...
stackexchange/codereview
In my desktop application, previously I have designed the form and ten execute it but then I went for slight changes in my form.But even after changing, while I run the program now the previously created form is getting displayed. What might be the problem...could anyone help me?
stackexchange/codereview
Well, I have created a python script, which checks the number of uncompleted tasks of tasque and displays it using pynotify periodically. My question is how do I implement this timer. I can think of two things. A Cron job to execute a python script periodically or using a python script which uses a gtk loop to call the...
stackexchange/codereview
I have this code <ul class="nav sub_nav_home"> <li id="sub_nav_home1"><a href="#"><span>LINK1</span></a></li> <li id="sub_nav_home2"><a href="#"><span>LINK2</span></a></li> <li id="sub_nav_home3"><a href="#"><span>LINK3</span></a></li> </ul> $("ul.sub_nav_home li").hover(function() { $(this).removeClas...
stackexchange/codereview
I look more about nuSOAP and now I need to know somthing about this nuSOAP :) how can I build own variables like token, username and password so all my customer lookup on an API key? My next question is, how can I build nuSOAP up from a PHP class, when I use $srv->register("Connect"); its only a single function :) I re...
stackexchange/codereview
I have been playing around with different types of native code operations in Visual Basic and then inspecting the code with Reflector to see what kind of MSIL is produced. For example, I wondered, in a one line If-Then-Else different than an If-Then-Else split onto multiple lines, ie. If x > y Then x Else y vs. If x >...
stackexchange/codereview
I have a string variable. And it contains the text: \0#«Ия\0ьw7к\b\0E\0њI\0\0ЂЪ\n When I try to add it to the TextBox control, nothing happens.Because \0 mean END. How do I add text as it is? UPDATE: The text is placed in the variable dynamically.Thus, @ is not suitable.
stackexchange/codereview
using iPhone SDK 4.0, how does one determine if a UIViewController is currently in the viewDidAppear state (currently visible). I could set a flag but was wondering if there is a better way. Thanks.
stackexchange/codereview
I am making a css site and I want to look like that: 3 vertical divs. LEFT CENTER RIGHT. In the center div is the site content, and I want the left and right div to fill the space between the center and the browser borders. Here is my code. #container { width:100%; background-color:#000; } .center { width:1000px...
stackexchange/codereview
I'd like to develop a Mac application that builds custom static libraries for iPhone on behalf of the user. I know that I can invoke xcode from the terminal with -xcodebuild to build these static libraries on the user machine, but my problem is that I don't want show to the user my objective-c classes used for the stat...
stackexchange/codereview
I have the following jquery code to loop over 525 (I know, alot!) checkboxes: var elements = $("#profile-list table tr input[type=checkbox].email-checkout:not(:checked)"); $.each(elements, function(i) { $(elements[i]).attr('checked', 'checked'); }); UPDATE The html looks like this: <table> <tr> <th>Na...
stackexchange/codereview
Is there any chance to read .xlsx files in C# without having Excel installed on the client, and with no OLEDB connection available? The application is a Winforms project written in VS2005 C# .NET Framework 2.0.
stackexchange/codereview
I have an odd bug on one of my sites. I use authlogic for all the login-related stuff, including a password reset process which works as follows: First, the user types in their email address and hits a button to send a reset password link. In the subsequent action i do this: user.reset_perishable_token! user.host = re...
stackexchange/codereview
Hi how to disable delete key press or backspace key press when deleting a particular character from a string using jQuery. For example, from string 1234-555 when the cursor is at hypen, if delete key is pressed it should not delete hypen. Instead of that cursor should stay in the same position. Basically disabling the ...
stackexchange/codereview
I'm facing such problem: there's a need to select a mechanism, allowing user to hide/show columns in a DataGrid. One of suggested ways is adding a button (which looks like a column header, but with no column). When user clicks on it, the list of columns comes and user may select columns to hide/show. But is there any w...
stackexchange/codereview
I have a small testview in Silverlight which consists of the following grid: <Grid x:Name="LayoutRoot" Background="White"> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Controls:Label x:Name="label" Content="LabelContent" Target="{Binding Elem...
stackexchange/codereview
For example, this is the full definition of the IFileOpenDialog interface, a Windows Shell Interface, taken from the Pinvoke site: [ComImport, Guid ( "d57c7288-d4ad-4768-be02-9d969532d960" ), InterfaceType ( ComInterfaceType.InterfaceIsIUnknown )] interface IFileOpenDialog : IFileDialog { // Defined on IModalWindow - r...
stackexchange/codereview
$str = '"mynam@blabl"@domanin.com'; filter_var($str, FILTER_VALIDATE_EMAIL);//return valid email. the above email returns true... Fair enough that RFC 2822 says it's a legal email address. my question is if you validate an email using the above could an email carry sql injections that can harm the db even though you ...
stackexchange/codereview
I'm trying to achieve the following layout without tables or JavaScript. It's basically the common layout of desktop software. Some toolbars and the actual content in the middle. I'm trying to replicate the layout in a web-application. I need all the toolbars to be flexible and optional. So in one state there might o...
stackexchange/codereview
I have an application which prints numbers to stdout. Is there an easy way of using any commandline plot tool (gnuplot) for a live plot of the image?
stackexchange/codereview
I'm sure I'm overlooking something simple here, but anyway - I'm trying to build a PL/SQL procedure which implements AVG via a decode function, see below. I keep getting an arithmetic overflow error but can't figure out what needs changing to hold the right size for the type (or even if that's what's required!) If I ch...
stackexchange/codereview
I got the following code: <?php $id = $_GET['id']; $vote = $_GET['vote']; $month = 2592000 + time(); $cookie = "votez" . $id; $cookiez = "viewz" . $id; if(isset($_COOKIE[$cookiez])) { if(!isset($_COOKIE[$cookie])) { setcookie($cookie, "voted", $month, '/', ".mywebsite.co.il"); } } e...
stackexchange/codereview
The application was initially using single database, but now I am changing it so different groups of data sits in different database. I added the other database using multidb. Now some model's are using non-default database, but I don't know how to force a model to use specific adapter all the time. I tried changing th...
stackexchange/codereview
I am uploading files using servlets. Now, i want to process some user input/form data in the same servlet. Is that possible? If, its possible means, how? As far what i know is, doPost() method have an if condition to check whether the request contains mutilpart data and in else block the form processing. How the both i...
stackexchange/codereview
For an array like the one below; what would be the best way to get the array values and store them as a comma-separated string? Array ( [0] => 33160, [1] => 33280, [2] => 33180, [3] => 33163, [4] => 33181, [5] => 33164, [6] => 33162, [7] => 33179, [8] => 3...
stackexchange/codereview
I am trying to find ways to do multiple record update using foreach loop similar to snippet below. This snippet doesn't work on value type. If anyone would like to share their experience of multiple record update in MVC Framework. Thanks in advance public ActionResult UpdateProductPrice() { var products = _rep.GetPr...
stackexchange/codereview
i use this code to fill text to svg using raphaeljs: var r = Raphael("holder", 200, 300); var t = r.text(10, 10, "ssdwqdwq"); t.node.textContent='dddd' raphaeljs cant fill html to svg , can jquery svg or svg web do it ? thanks
stackexchange/codereview
I'm trying to write a program where basically the user clicks on an image and the image will then move to the right by 25px. The image moves when I click on it, but I tried to add a piece of code which makes the image return to the left of the window when it passes the right side of the window. I've tried using an If s...
stackexchange/codereview
How can you bring in a path as a variable from php? I have hundreds of mp3 file names stored in a My SQL database and I want to call the name, load it into a variable and then have it replace the URL in the call to the sound file. I am all set with the PHP and database side of things, but I have been frustrated with ...
stackexchange/codereview
I used the following line to remove all $ signs and spaces in a given data "DATA": String temp_data = DATA.replaceAll("$", "").replaceAll(" ", ""); But it won't remove the $ signs, only the spaces. Does someone have any idea why? Thanks, Binyamin
stackexchange/codereview
I have some troubles with WIX Services. My msi installer can create Service, but after creation installer can't start it. There is my code, which I use for Service. <Component Id="borland_comp" Guid="{6F723B32-E95A-4545-87FD-0B5F7B114FCA}" DiskId="1"> <File Id="server_ScktSrvr.exe" Name="ScktSrvr.exe" KeyPath=...
stackexchange/codereview
I am making a music app.My app runs sucessfully on stimulator but it shows following errors while deploying.I am using iOS 4.1 device. Can any one help me getting out this errors while deploying. Build ViewTable of project ViewTable with configuration Debug Ld build/Debug-iphoneos/ViewTable.app/ViewTable normal armv7 ...
stackexchange/codereview
I have a Rails application that queries a 3rd party web service. I am trying to decide how to handle an invalid response (e.g. service unavailable). The two options I am considering are: 1) WebService returns nil on error response = WebService.query if response # Query was successful else # Invalid response end 2)...
stackexchange/codereview
Structure I created: struct VideoSample { const unsigned char * buffer; int len; }; VideoSample * newVideoSample = new VideoSample; newVideoSample->buffer = buf; newVideoSample->len = size; //... How now to delete it now?
stackexchange/codereview
With WPF how can I bind the IsEnabled property of a Button to the selected row's DataGridCheckBoxColumn value of my grid? So every time the selected row of my grid changes the button will be enabled/disabled depending on the value of one of it's columns.
stackexchange/codereview
My current work involves working on a large number of bugs. We normally (non TFS) would add these to an iteration backlog (grouped into Stories) after estimating and prioritising; then work through, mark actual effort. I want to try and understand how I would work on these bugs using the TFS Agile template as intended....
stackexchange/codereview
I used NSUserDefaults to store a value. I store some integer value in NSUserDefaults like as follows in first view. I declared in interface file as follows.. NSUserDefaults *prefs; @property(nonatomic,retain) IBOutlet NSUserDefaults *prefs; Then I used in class file as follows @synthesize passwordfield,prefs; ...
stackexchange/codereview
I build an app based on this site http://msdn.microsoft.com/en-us/library/dd633661%28v=EXCHG.80%29.aspx appointment.Subject = "Status Meeting"; appointment.Body = "The purpose of this meeting is to discuss status."; appointment.Start = new DateTime(2009, 3, 1, 9, 0, 0); appointment.End = appointment.Start.AddHours(2); ...
stackexchange/codereview
I need to find out how to precompile jsp files at Runtime for a webapplication. The situation is this: Plugin's can be added to the webapplication at runtime. These plugin's can contain new jsp files or jsp files that override existing jsp's. In order to make sure that the user sees the correct version, I need to prec...
stackexchange/codereview
I am currently parsing some C# scripts that are stored in a database, extracting the body of some methods in the code, and then writing an XML file that shows the id, the body of the extracted methods, etc. The problem I have write now is that when I write the code in the XML I have to write it as a literal string, so ...
stackexchange/codereview
I am putting inner join in my query.I have got the result but didn't know that how the data is coming in output.Can anyone tell me that how the Inner join matching the data.Below I am showing a image.There are two table(One or Two Table). According to me that first row it should be Mohit but output is different. Pleas...
stackexchange/codereview
How do I test for state in a S#arp Architecture project? For example, I have a custom RoleProvider. I want to test the method provider.AddUsersToRoles(string[], string[]). So I start with: // Arrange const string ficticiousRole = "Management"; var userToExpect = UserInstanceFactory.CreateValidTransientUser(); var roleT...
stackexchange/codereview
Is there a jQuery way for me to retrieve the placeholder attribute of a form input element? I've tried the obvious: alert($('form_input_element').attr('placeholder')); but it returns undefined in both firefox and chrome for some reason! All other attributes are displayed fine with the above code... is this a bug in...
stackexchange/codereview
Visual studio has a built-in unit test framework. I am wondering if I can use nunit instead?
stackexchange/codereview
Anyone can give a comparison over those two frameworks?
stackexchange/codereview
It seems the Glassfish Performance Monitor is commercial. When I wanted to download it from Oracle website it shown me a restriction. Would you please suggest me an open-source monitoring tool for glassfish V3? RGDS
stackexchange/codereview
I was wondering how can I stop an empty value from being entered into my MySQL database in the example below which will enter nothing in to the database, so that my MySQL Default NULL value is displayed in the database? if(empty($_POST['username'])){ $u = NULL; }
stackexchange/codereview
Is there a method I can call to see if I am currently running in the emulator vs. running on an actual physical phone? I need to run some code a bit differently when I am in the emulator (I have a mock gps location service).
stackexchange/codereview
I set up a public github app (see: https://github.com/greenplastik/testapp to download) to work through a problem I'm having with specifying a type on one side of a many-to-many association between two models, via a join model. Given Person and Book models and a Book_Person join model, I want to be able to do the follo...
stackexchange/codereview
How can I host HTML5 in my .NET application? Is there a WebKit control? Or a Chronium Control? Can I host the Google Chrome Frame inside the IE web control?
stackexchange/codereview
Okay, got a question. I have assembled a bit mask for options. Basically my page has a list box that allows multiple selections that stores them in a list of integers (their ID value). There are 14 total choices (so ID val 1-15). The reason I am assembling this into a bit mask is because I don't want to hard code in a ...
stackexchange/codereview
I'm using a CellTemplateSelector to conditionally display a checkmark in a DataGrid Column. The method SelectTemplate(object item, DependencyObject container) of my DataTemplateSelector class is called but the parameter item is null instead of the expected DataRowView-object. Here is the XAML-Code. Items in Property I...
stackexchange/codereview
I need to implement image rectification .Problem is given image of object from four viewpoints(topL,topR,bottomL,bottomR)I need to do pairwise rectification .I tried some code in OpenCV but havent been able to make progress .Can someone tell me a good way(source code /tutorial) to execute the rectification? I need to ...
stackexchange/codereview
Here is my query: SELECT count(*) FROM table_testcase_execution WHERE campaign_session_id = any(SELECT campaign_session_id FROM table_campaign_session WHERE campaign_session_name = 'sitename') AND timestamp BETWEEN "1288929643485" AND "1289...
stackexchange/codereview
I write an application, that parse data from boards on the airport sites - Sheremetyevo (http://svo.aero/timetable/today/) and Domodedovo (http://www.domodedovo.ru/ru/main/airindicator/flightnew/). I create an object URL with the link of the site. Next, I call the method openStream. After that this stream is used with...
stackexchange/codereview
I'm developing a web application that will be launched from a desktop icon on an iPad as a full-screen application. The Apple documentation on phone links recommends using this meta tag: <meta name="format-detection" conten ="telephone=no"> However, this does not appear to work. Is there any other HTML/CSS/JavaScript ...
stackexchange/codereview
I have all my project include files in a specific dir (called include, in my project dir). When I include them in a cpp file, I need to #include "include/somefile.h" How can I make it so that I can do #include <somefile.h> ?
stackexchange/codereview
First off, I did post this to the android google group first but its moderated and I'm not sure how long itll take to show up there so hoping someone here can help. I created a simple app with a ListView following the ListActivity examples I found on the net. The app has 2 activities with the first having a button to c...
stackexchange/codereview
I am developing an application,In my application,I am displaying lot of images from url using DOM xml parsing,It is working fine,but some time i got org.xml.sax.SAXParseException: Unexpected end of the documentin my xml parsing handler.How to solve this problem,please help me.This is my xml parsing handler code public ...
stackexchange/codereview
I am currently trying to create 300 instances of blockui Currently this can only be done by copy and paste: For example: <script type="text/javascript"> $(document).ready(function() { $('#t1').click(function() { $.blockUI({ message: $('#q1'), css: { width: '1024px' } }); }); ...
stackexchange/codereview
How to check if Directory already Exists in MFC(VC++) ? I am using below code to get current application Path and there i am creating NDSLog folder so that all my Logfiles should place there , now i want to check the condition if NDSLog folder already exists dont create it .How to do that ? Thanks. char strPathName[_M...
stackexchange/codereview
I am using a background image to replace the text of a link using text-indent: -9999px; Anyone have any clue why this isnt working in this instance. You will see the top right logo is displaying the text and logo.. although I am telling it not to..
stackexchange/codereview
I installed some Perl modules in my Linux machine. If I enter perldoc perllocal it shows a list of Perl modules installed in my machine, but now I don't need those Perl modules, so I want to remove them. Does anyone know how to uninstall or remove those modules installed in Linux (debian 2.6.26)?
stackexchange/codereview
Whenever a page is cached in both Firefox and Webkit, it appears to lose all ajax capabilities. <html manifest=cache.manifest> <head> <script src="js/jquery.js" type="text/javascript"></script> <script src="js/jqtouch.js" type="text/javascript"></script> It will only retrieve pages that have been cached, no ma...
stackexchange/codereview
I just wrote this... horrible line of Ruby code, and I'm wondering if there isn't a better way of doing it. I have an array of hashes, of which I want to fetch one. The "conditions" of what I want to select is in two separate arrays--one with keys and one with values. If a hash in the array has the correct key == value...
stackexchange/codereview
By specifying a –pe switch ( using Makecert utility ) we make a private key exportable. a) What is it meant by private key being exportable? That we can copy the created .pvk file ( containing private key ) to another system and use it there? b) If so, then I assume .pvk is only created if private key is to b...
stackexchange/codereview
Summary: memcpy seems unable to transfer over 2GB/sec on my system in a real or test application. What can I do to get faster memory-to-memory copies? Full details: As part of a data capture application (using some specialized hardware), I need to copy about 3 GB/sec from temporary buffers into main memory. To acquire ...
stackexchange/codereview
I'm trying to update a column's value in a bunch of rows in a table using UPDATE. The problem is that I need to use a sub-query to derive the value for this column, and it depends on the same table. Here's the query: UPDATE user_account student SET student.student_education_facility_id = ( SELECT teacher.education_f...
stackexchange/codereview
I need to build a code where I have to make the content disposition automatically.Means I need to fetch some text fields,some image fields,some sounds and all of the request I have to take with the post request,I can not use the get request. So please say me how can I buld the content disposition in java?
stackexchange/codereview
I have a Werkzeug application served on gunicorn. The script directory layout looks like this: prj/ __init__.py application.py :which has a WSGI application object "wsgi_app". settings_app.py :settings for werkzeug applicaiton code. Then, I usually use the following command-line to start the Werkzeug ap...
stackexchange/codereview
If you have to make several programs should depend on an interface (protocol, API or framework), is it possible to make the interface with XP (eXtreme Programming) style?
stackexchange/codereview