instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I want to add suffix to names of my files, for example uuid. How can i extract files using zipfile and pass custom names?
stackexchange/codereview
I have Python extensions implemented on C++ classes. I don't have a C++ target to run valgrind with. I want to use valgrind for memory check. Can I use valgrind with Python?
stackexchange/codereview
I copy pasted some document from production server db to Dev server db , but when I tried to open any of these document then its giving error like ...The server with this database is no longer responding , should notes switch to a replica or another server ...whether old documents are opening fine in the Dev database. ...
stackexchange/codereview
i've reinstalled xna and when i tried to run a game that worked fine on the old xna, i got "can't find fbxImporter". Any ideas why ? Regards, Alexandru Badescu
stackexchange/codereview
The scenario is this. We have a customer table with all the logical customer information, and a different table we're going to call "event". In the event table, among other things, are the client's first name, last name, and ssn. In the customer table, the ssn is a varchar(9) intended only for digits obviously, howeve...
stackexchange/codereview
This may sound like a SuperUser issue, but I wrote the page in question and I'm wondering if there is something I can do to fix the problem.... I have a page in production that simlply displays data in a bunch of tables. Our employees basically go to this page to print a form with our clients information filled in for...
stackexchange/codereview
In the system32 directory I saw an .OCX file with a corresponding .OCA file. I had thought .OCA files are used only by Visual Basic. Are they therefore unnecessary for program execution and could be removed? If they are unnecessary, why would there be an .OCA in the system32 folder in the first place?
stackexchange/codereview
This subroutine is passed an array of file handles to close, which it closes one by one using the foreach loop: sub closef { foreach(@_) { my $fh = shift; close $fh; } } Where all can this simple subroutine be modified to make it better? Should I use close shift instead of doing it in two li...
stackexchange/codereview
Please Help, I am creating a Simple Crystal report that views outstanding logs for our call centre,I have a stored procedure that retrieves all the Info I need.Here is where it gets interesting. The Report retrives all the relevant data and shows me page One.When i try to view the second page i get the following " The...
stackexchange/codereview
In OpenGL I have always understood that glEnable(GL_TEXTURE_1D), glEnable(GL_TEXTURE_2D) and/or glEnable(GL_TEXTURE_3D) (and corresponding glDisable) is a per texture unit parameter. Recently I tried to confirm this but have not found any clear documentation confirming either way regarding this question. Put simply a...
stackexchange/codereview
Is it possible to add a core method to the Module class in Ruby? I want to do something like this (messed around with the idea yesterday, just whipped this together in a second): module MyModule base do has_many :something end end # implementation, doesn't work though... reason for the question Module.class_e...
stackexchange/codereview
I'm going through the tutorial HelloFormStuff. I started having problems adding the RadioGroup widget. After moving some brackets around I finally got it to work. When I tried to add the final (2) widgets, I found if I tried to add them in main.xml below the RadioGroup they wouldn't appear in the app. I guess I could ...
stackexchange/codereview
Consider: <div id="obj" class="foo"><!-- --></div> Expected: What I'd like is to keep switching between class "foo" and "bar" on each mouse click. Toggle class just seems to add and remove "bar", which isn't good enough. I can accomplish the effect I want with using a combination of .hasClass(), a ternary cond...
stackexchange/codereview
Is there an IO action that gives me the number of OS threads the RTS was initialized with? It would be nice to be able to use this as an argument to the parBuffer function from the Control.Parallel.Strategies module.
stackexchange/codereview
I am ussing to recover a property from an object User in the session. The following expression works correctly: <s:property value="#session.ATRB_SESSION_USER.getAttribute('ATTRIBUTE_USER_NAME')"/> but those strings ATRB_SESSION_USER and ATTRIBUTE_USER_NAME are constatns defined in a class. How can I use the constant ...
stackexchange/codereview
I have this line: text="{selectedOrder.targetLocationName} 'crlf' {pickUpLocationHTML}" Does anybody has an idea how to make this work? Thank you.
stackexchange/codereview
I've been getting into OOP javascript recently and more and more I've been hearing about closures. After a day of twisting my brain I now understand them* but I still don't see the advantage over using an object. They appear to to do the same thing but I suspect I'm missing something. *i think Edit I've just spent 20 m...
stackexchange/codereview
This was a question my Data Structures teacher put on our recent test. I immediately thought of a List and an Array but I cannot for the life of me think of a third ADT that could be used as internal storage for a Stack. Any help?
stackexchange/codereview
Basically, what I'm trying to do is to render os.environ in a template in Google App Engine. I believe the technology is (or is adapted from) the Django template engine version 0.96 (but correct me if I'm wrong). I found this question suggesting that you could do: {{ for key, value in environ}} But when I try that, I ...
stackexchange/codereview
$('#myhidde').attr("value",data[0]['MODE']); Iam calling ajax page which returns me json data after getting the data from JSON results when i alert also iam able to see the value but iam not able to write to hidden field .What would be the reason .Dying for 2hrs
stackexchange/codereview
I have a COM DLL (say, xyz.dll) coded in VC++. I want to create a calling EXE application (calling.exe) which will call the functions of the COM DLL (xyz.dll). I followed the steps in the link http://www.codeproject.com/kb/DLL/XDllPt1.aspx. But I am not able to connect the DLL and EXE and hence not able to call the fu...
stackexchange/codereview
I have the following data returned buy a simple SQL query. The Number of sites could change, but X,Y,Z are fixed (they are different types of accidents, and the data stored represents the number of occurances) | Site | X | Y | Z | -------------------- A 1 2 3 B 4 5 6 C 7 8 9 I need ...
stackexchange/codereview
I have as input a string that is a URI. how is it possible to get the last path segment (that in my case is an id)? This is my input URL: String uri = "http://base_path/some_segment/id" and I have to obtain the id I have tried with this: String strId = "http://base_path/some_segment/id"; strId = strId.replace(path); s...
stackexchange/codereview
I have one Entity call Comment Comment + id (PK) + fromUserId + targetId + replyId : This is the foreign key to id The idea is a comment can have many replies, but a reply is also a comment. To distinguish between the two, a comment will have replyId equal -1, meanwhile a reply will have a non -1 value for replyId. Ul...
stackexchange/codereview
I added a reference to a DLL in my ASP.Net app. That started causing a BadFileFormatException, so I switched my app to target x86. I'm now getting this error: System.IO.FileNotFoundException: Could not load file or assembly 'TheDLLThatIReferenced.dll' or one of its dependencies. The specified module could not be found....
stackexchange/codereview
I've built a Rail 3 AuditLog with the help of a few plugins, that store data in an AuditLog Table with the following fields for identification (feeded_id, feeded_type) So in my case, I have a photoalbum that has_many photos. class PhotoAlbum < ActiveRecord::Base has_many :photos, :dependent => :destroy when I delete a...
stackexchange/codereview
i'm not a java developer, but i need to write a small applet to upload file via ftp (actually, i'm a web developer). Everything works fine, except for the way that feedback messages are displayed. Let me explain with an example: if i wrote sometingh like that, inside a method (controlled by a click event) //.... myJpan...
stackexchange/codereview
How do I check with preg_match if string contains year which is between 1950 and 2010 ? example: $string = "I was born in 1986 year.";
stackexchange/codereview
I made a class Person.as with a few variables. Then I made an ArrayCollection and did addItem(person1); addItem(person2); and binded this arraycollection to my tree with dataProvider="{oadp_tree}". Now it doesn't show up in my Tree.. While I made an example with dummy data in MXML and it does show up in my tree (MXML e...
stackexchange/codereview
I'd like to ask your expert advice on a workable architecture in C#. I have a C# service which responds to a request from a local user on the LAN, fetches packets of data from the internet, and crunches that data to produce arrays of data in a structure. Each data request takes about 2 seconds, and returns 4000 bytes. ...
stackexchange/codereview
Need your expert guidance as how to sort a 2D array, row-wise ( means considering each row independently and sort all rows independently of a 2D array) in Visual Studio C#.Example First row: 5 4 3 6 Second row: 2 3 1 4 Sorted: First row :3 4 5 6 Second row: 1 2 3 4 There is a method called Array.Sort (), but it is spe...
stackexchange/codereview
We've got an app with a complex hierarchy of widgets and I want to be able to browse this hierarchy, view and edit properties (such as size) in a similar manner to Spy++. It doesn't need to be running in an external app, if there is a widget that can display this information. So the question is, does such a mythical ...
stackexchange/codereview
I am using PHP 5.2. If I new an object at one page, when will this object be destructed? Is the object destructed automatic at the time that user go to another .php page or I need to call __destructor explicitly?
stackexchange/codereview
REPHRASING QUESTION: i apologize for being unclear. i have a textbox and a button a form. when the button is clicked it runs this saved access query: select * from sqlservertable where field=form!textbox.value i have an access front end and sql server back end. this query is not working. it doesnt like me passing this...
stackexchange/codereview
Do I have to move the layer frame or apply translate matrix transformation to layer? Or perhaps I can move the contents inside of the layer? If contents is not movable inside of layer, how it would position initially?
stackexchange/codereview
I've started to learn PHP SPL from ArrayIterators and I'd like to know what are the benefits of using SPL ArrayObject, ArrayIterator, RecursiveArrayIterator instead of regular arrays? a) I've heard that loops using SPL iterators will reduce memory usage (but why?). I don't really know to believe this or no because I do...
stackexchange/codereview
This is my json returned: { "aaData": [["15/10/2010",".tv","All / Unidentified","Streaming","7","1.33","30%","0.4"], ["08/10/2010",".tv","All / Unidentified","Streaming","30","5.7","30%","1.71"], ["Total","","","","90","17.1","","5.13"],] } Which works fine in Firefox, its input into the table, however in Chrome and S...
stackexchange/codereview
How can i set the opacity of a Drawable object?
stackexchange/codereview
I am trying to call the invalidate() from asyntask thread. I am getting this error : 10-18 15:14:30.469: ERROR/AndroidRuntime(889): Caused by: android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. The line I have used is : mainClass.myMapVie...
stackexchange/codereview
Hi i want to debug my programms which are cross compiled on windows for arm architecture by using the codesourcery gcc. I have the following things debugging: sam-ice jtag/jlink debugger arm-none-eabi-gdb when i use the command line inteface arm-none-eabi-gdb programm.elf i cannot run the programm under windows. under ...
stackexchange/codereview
I'm trying to validate my XML resources during maven build cycle. Is there any plugin for this purpose, or I should use ant + xmllint manually?
stackexchange/codereview
I have read that silverlight application will be downloaded as a XAP file on the browser and then the plug-in on the client machine will take care of executing it( pls correct me if I am wrong). If this is the case, suppose lets say my application has a button, and I have a click event on it. Now, If I clicks that butt...
stackexchange/codereview
I am trying to create simple GPS application just to display simple data in simulator. I have no errors just cant obtain data. "didFailWithError" method is the only I can get to work :), this is the code: - (void)viewDidLoad { [super viewDidLoad]; lm = [[CLLocationManager alloc] init]; if([CLLocationManager loca...
stackexchange/codereview
I have a site built with cakephp (1.3), where users can manage lists of items. I now want to develop a facebook app that will work with the data of my web-based site. The facebok-app is to replicate many of the web-site's functionality (basic CRUD and more), so I would like to reuse as much code as I can from my curren...
stackexchange/codereview
I quickly ran into problems when trying to create an ActiveRecord instance that overrode initialize like this: class Email < ActiveRecord::Base belongs_to :lead def initialize(email = nil) self.email = email unless email.nil? end end I found this post which cleared up why it is happening. Is there anyway tha...
stackexchange/codereview
I need to learn Perl for an academic research I am doing. I need to go through a lot of older perl scripts and run them, tweak some perl scripts from open source tools for my use and of course make some of my own. I have a tight schedule so I needed to be comfortable with a perl code pretty quickly. I have previous co...
stackexchange/codereview
I have a csv file with records being sorted on the first field. I managed to generate a function that does binary search through that file, using fseek for random access through file. However, this is still a pretty slow process, since when I seek some file position, I actually need to look left, looking for \n charac...
stackexchange/codereview
I'm new to RVM. So I have a RVM setup that has ruby 1.9.2 with rails 3. I want to know test the app in 1.8.7 with rails 3, what should I do? Just change RMV's to 1.8.7 and navigate to the directory where my Rails app is? Do I have to run bundle install again?
stackexchange/codereview
I have been working on an application using .NET 4 and c# in Visual Studio 2010 Express. It's purpose is to watch a directory and import any documents it finds into our imaging system. I included an installer class which provides the information needed by installutil.exe. So to install locally, I build the solution, an...
stackexchange/codereview
ok i found a tutorial on animated mesh. when im trying t use their code i get an error on this line m_pAnimController->SetTime(..).. it says that SetTime is not member. i thought it was mistake the author made but i found another tutorial used the same format like var->SetTime(..).. so im not sure what is wrong im usin...
stackexchange/codereview
I would like to save audio tracks, generated in my MonoTouch application, to the iPod library, so that they appear in the iPod App, and are synced back up to iTunes. Can anybody point me in the right direction for achieving this? Thanks
stackexchange/codereview
I'd like to arrange a 3x3 grid layout over 3 pages of a PDF file. I'd like to plot in arbitrary grid locations across the three pages. I know how to arrange multiple subplots using some option like layout=c(3,3). I can figure out how to arrange a 3x3 layout on a single plot using the grid package, and then decide to ch...
stackexchange/codereview
Lets assume that I have the following configuration in my conf/InjectionConfig.groovy file: x { a = { attrs, body -> out << "hello" } b = { attrs, body -> out << "goodbye" } } and that I have a simple taglib such as class XTagLib { static namespace = "x" } What I want to do is that when I type <x:a /> to...
stackexchange/codereview
I want to have a reversed list view on a list (in a similar way than List#sublist provides a sublist view on a list). Is there some function which provides this functionality? I don't want to make any sort of copy of the list nor modify the list. It would be enough if I could get at least a reverse iterator on a list i...
stackexchange/codereview
The subject kinda says it all.. I'm requesting a PIN code from the user, if they enter it, click the OK Positive Button and the PIN is incorrect I want to display a Toast but keep the dialog open. At the moment it closes automatically.. Sure this is very trivial thing to correct but can't find the answer yet. Thanks.....
stackexchange/codereview
I have an Object where the object has a nested form of which can be duplicated as needed. To accomplish this I am using : - 2.times { @organization.referrals.build } - form_for @organization do |f| = f.error_messages - f.fields_for :referrals do |qf| = render :partial => 'referral_fields', :locals => {:qf => qf...
stackexchange/codereview
The signature of this method is: - (CGSize)sizeThatFits:(CGSize)size I don't understand what the size parameter is used for. Apple's documentation states that it is "The current size of the receiver." But the receiver presumably knows its current size. So why does it need to be passed in? When I experimentally p...
stackexchange/codereview
I want to get the time difference between saved time and current time in javascript or jquery. My saved time looks like Sun Oct 24 15:55:56 GMT+05:30 2010. The date format code in java looks like String newDate = "2010/10/24 15:55:56"; DateFormat format = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); Date date = format...
stackexchange/codereview
I would like to make a Win32 DLL (unmanaged code) using Visual Studio 2008. After selecting New Project, in Project types -> Other Languages -> Visual C++ -> Win32 I selected Win32 Project as the project type. Then I gave it a name and specified the location, and clicked OK. In the Win32 Application Wizard, I have t...
stackexchange/codereview
I'm an absolute newbie to EC2. My goal is to run a php-mysql-website on EC2. I've just setup a new instance based on this ami It seems that apache isn't running? How do I start apache? Is there a general tutorial on how to start EC2 as a web server? Thanks!
stackexchange/codereview
I have a ListView in ext-gwt and I'm adding some custom data to it. How can I set an item renderer on the ListView? As of right now, whenever an item is added, there's just a small line representing each entry in the view. Here's my basic code: import com.extjs.gxt.ui.client.store.ListStore; import com.extjs.gxt.ui....
stackexchange/codereview
I'm trying to build a web app that grabs fantasy sports info from Yahoo's API. I know that it requires the use of OAuth in order to speak to the API. It's being created using Flask and will run on Google App Engine. I've been trying to use python-oauth2 from the folks at SimpleGeo and I keep getting the same exact er...
stackexchange/codereview
Let's say I have these two functions: function fnChanger(fn) { fn = function() { sys.print('Changed!'); } } function foo() { sys.print('Unchanged'); } Now, if I call foo(), I see Unchanged, as expected. However, if I call fnChanger first, I still see Unchanged: fnChanger(foo); foo(); //Unchanged Now, I assume...
stackexchange/codereview
I know this question has been asked many times, but here are my specific needs. The obfuscator needs to come in a form of a java library, so I can make an Ant task in order to automate the build process. IE7, 8, Firefox and Chrome must be able to interpret the resulting js very fast (original js file is pretty big - 18...
stackexchange/codereview
I have the following input: (def nums [123456789012 123456789012]) I'd like the following output: [[1234 5678 9012] [1234 5678 9012]] *note both of these sequence contain numbers not strings... I figured this would be really simple by doing the following: Convert each entry into a String Partition each string by 4...
stackexchange/codereview
Would Nitrogen Project's COMET be comparable to ejabberd's xmpp in stability and amount of open connections it can hold? I'm interested in seeing how much of a load Nitrogen can hold. If anyone has any data on this they'd like to share I'd greatly appreciate it.
stackexchange/codereview
I’ve created a file index of all of my ColdFusion files so I can quickly search the files and find what I’m looking for. So far, it’s working great except it doesn’t seem to be searching inside any ColdFusion tags. For example… <p>If I searched for this text, It would return a result</p> <cfset variables.foo = "however...
stackexchange/codereview
I have a stored procedure with which I am populating gridview in .net program. The problem is when I am populating that parameter, and sending for execution to the database, I don't get nothing in return. When I am executing the query without that parameter, then the application is returning data without any problems. ...
stackexchange/codereview
Here's an overview; I have a view with a table of data and upon changing the filter options (checkboxes) I call a filter action, do some work, then redirecttoAction to the main action which accepts my filter info. Stepping through in debug I can see the expected data passed through the actions and even on the View with...
stackexchange/codereview
#content { padding-top: 13px; *padding-top: 0; } View Source My Question is, what does the * do in this example? It's from the source code on apple.com/uk website
stackexchange/codereview
I need to run a simple select statement for a column called AddrZip to show all records that contain '1/2 ' after the first space in the column. In Access 2007 it would be: **Left([Names],InStr(1,[Names]," ")-1), but can't find out how to do it in SQL 2005. All help will be appreciated.
stackexchange/codereview
I'm trying to let the user import an image in my windows application, in any pixelformat, but i need to save the image in 16bpp4444 format, and that is not an option for pixelformat in .Net imaging class. Any ideas on how to do this? Thanks!
stackexchange/codereview
I am going to start working with Entity framework but the problem is my Visual Studio 2008 Does not showing ADO.Net Entity Data Model in Items list. Following is snapshot of my item list and Visual Studio.
stackexchange/codereview
I want to use the Flex Unit 4 Suite. I don't really have any experience with unit testing. I downloaded the Turnkey project but I was a little overwhelmed. I basically just want to start by creating a simple hello world unit test. if I have a class called MyClass with 2 methods square() and cube(). and I want to create...
stackexchange/codereview
I have a web service deployed and ready to use. The client application is going to use this service synchronously and extremely frequent. The amount of data returned from the web service is also considerable. The web service client is a web application (liferay portlet). I have generated the client part with axis insid...
stackexchange/codereview
We have a web.config in a physical subdirectory of a virtual directory that's under an application in an IIS site. Something like this: Site App Web.config Virtual Dir Subdir Web.config In the Web.config we put this configuration in system.web: <webServices> <protocols> <add name="HttpPost" /> <add ...
stackexchange/codereview
After a migration from 2007, and navigating to the default.aspx page I am getting a 404 Not Found error. I am unable to determine where this is coming from. I have looked in the event viewer as well as the ULS logs but cannot isolate the cause of this problem. Any ideas on how to locate this problem? thx
stackexchange/codereview
I'm pulling a sum from a DB which is a decimal value. I'm trying to use that value in a JSON result json.dumps( { 'sum': amount } ) #where amount is my Decimal Django can't serialize the Decimal. I can convert it to a string, but I'd like a numeric type within the JSON. If I try and convert it to a float I end up with...
stackexchange/codereview
Apple is the backing force of ObjectiveC. However WebKit is written in C++. Apart from portability (not all systems have ObjectiveC compilers/runtimes) is there any other valid reason for this? Performance, features? Lately Apple does not seem to care of other languages than ObjectiveC.
stackexchange/codereview
I'm writing Silverlight video player and I search for inpiration so i have found JW Player. But as I know Silverlight apps are inside .xap files and JW Player uses js script to implement SL logic. Could you explain me how it works and why .js not .xap? Thanks in advance.
stackexchange/codereview
Is it possible to update a xml file using jQuery? Or do i have to use server side scripting to achieve it? Thank You
stackexchange/codereview
I've built this app that displays employee photos stored in several sharepoint folders. It also displays the employee name extracted from the file name and a previous and next button to move through the photos. The markup is surrounded by an update panel to prevent the entire page from reloading when you click to view...
stackexchange/codereview
I have two tables, Sales (ISBN, Sale_Time, [Sale Data Fields]) and Affiliate_Sales (ISBN, Affiliate_Sale-Time, [Affiliate Data Fields]). I'd like to query all the unexpired Sales (< 24 hours old) and unexpired Affiliate_Sales (< 72 hrs old) for a given set of ISBNs. I'd like a row to return for a given ISBN even if the...
stackexchange/codereview
For someone who has read Hillegass's Cocoa Programming for Mac OS X and has developed OS X software for a little over a year, is there a succinct guide to transferring those skills to jump-start iOS development? What I mean, instead of buying How to Develop iPhone Applications or other iOS-centric books, is there a sim...
stackexchange/codereview
I am using the move_uploaded_file function to upload files. The files get moved into the right directory and I see its physical existence, but I can't open them. I get "Access Denied" error. I view the properties of the file and I found that it doesn't have an owner. By the way, I am running IIS on Windows 2008. I ch...
stackexchange/codereview
Please suggest me how to get sql query result into a text file with a specific file name with current date like name_dd-mm-yyyy.txt.I want do this automatically using a job or Stored Procedure.
stackexchange/codereview
I like having log data in a last-first form (the same way most blogs and news sites organize their posts). The languages I'm most comfortable in are C++ and Python: is there a way to output log data either to the screen (stdout) or a file with the most recent entry always being on top? Or is there perhaps a way of modi...
stackexchange/codereview
Assume we have three arrays of length N which contain arbitrary numbers of type long. Then we are given a number M (of the same type) and our mission is to pick three numbers A, B and C one from each array (in other words A should be picked from first array, B from second one and C from third) so the sum A + B + C = M....
stackexchange/codereview
Simple problem: I have conditions in php like so: if (!$authorized) show_site_404(); or like so for that matter if (!$logged_on) show_login_page(); These are obviously toll gates so that we don't have trespassers into parts of the system where only a specific user or only those that are logged on should be abl...
stackexchange/codereview
I've been having quite a bit of trouble getting an MVC2 web application to find the MySQL connector. I am running CentOS 5. I've installed the DLL into the GAC using the 2.0 version of the tool $ mono /usr/local/lib/mono/2.0/gacutil.exe -i v2/mysql.data.dll Installed v2/mysql.data.dll into the gac (/usr/local/lib/mono/...
stackexchange/codereview
I have a subversion project that have a repository and trunk, tags, branches top-level items. For this project, trunk contains a folders for a big parts like 'common', 'libs', 'core', 'help', 'install', 'tests' etc. The question: is it valid in subversion to branch trunk/common or do i need to always branch entire trun...
stackexchange/codereview
I have an XML File: <?xml version="1.0" encoding="iso-8859-1"?> <deadlines> <deadline> <date>2010-07-01</date> <text>Residency Application for Fall Due</text> </deadline> <deadline> <date>2010-06-01</date> <text>Residency Application for Summer Due</text> </deadline> ...
stackexchange/codereview
I'm learning C. I find I learn programming well when I try things and received feedback from established programmers in the language. I decided to write my own strcmp() function, just because I thought I could :) int strcompare(char *a, char *b) { while (*a == *b && *a != '\0') { a++; b++; } ...
stackexchange/codereview
So I have the following assembly language code which I need to convert into C. I am confused on a few lines of the code. I understand that this is a for loop. I have added my comments on each line. I think the for loop goes like this for (int i = 1; i > 0; i << what?) { //Calculate result } What is the test condit...
stackexchange/codereview
I was wondering how to resize a div containing some text by setting a width and height so it would stretch to fill that area like an tag? E.g. when you set the width and height attribute of an image, it resizes the image to fill that area. I need to take an arbitrary width and height value and stretch a div containing...
stackexchange/codereview
Hello I try to use PcapDotNet dll but I can't add reference to my project. It doesn't matter which dll it is. PcapDotNet.Core.dll, PcapDotNet.Base.dll etc. I have yellow exclamation mark near this reference and can't use any methods from this dll. Ofc "using PcapDotNet.Core;" is underlined too and compiler shows me: "T...
stackexchange/codereview
I'm trying to fetch the schema of an LDAP entity. I've been advised to use Novell's open sourced LDAP library, which seems to be quite good. I found an example called GetAttributeSchema, which sounds really good, but I think I've got a parameter set incorrectly or something. The results I'm getting are: ou ( 2....
stackexchange/codereview
Lets say the user access a stripes action1 using https. Once action1 processing is complete, it uses RedirectResolution to redirect to action2. At this point, the browser receives a 302 to to action2 with http and not https. How will I make RedirectResolution to use https while redirecting to action2?
stackexchange/codereview
How can i force QWebView into downloading the webpage and related content in a separate thread?
stackexchange/codereview
In the documentation of EAAccessoryManager it says we need to add "Supported external accessory protocols" in the settings plist. But this can be done for known protocol strings. What if I don't know the protocol string or string which are not in the list, if my application has to detect any arbitrary device which are ...
stackexchange/codereview