instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm trying to do a CLI, preferrably written in Python. I need a multi-level CLI, and I want tab completion. I looked at the cmd module (from the Python standard library) and readline with the "complete" function (for tab completion). They both lacked at something, i.e. I haven't figured out how to handle multiple level...
stackexchange/codereview
I have a question regarding using primitive shapes and simulating a circle to be free falling. How would I go about this? Do I use the formula for gravity?
stackexchange/codereview
I am trying to get all the users and their associated groups from an Active Directory server, using a LDAP query. Apparently, Active Directory doesn't give me the primary group of the users. For example, this search: (objectclass=user) produces this result: # Test User, Users, sub.domain.net dn: CN=Test User,CN=Users,...
stackexchange/codereview
I'm working a MS paint-like application on OpenGL using Bresenham's midpoint algorithm as homework. So far I can draw lines and ellipses. I lose them all when resizing the window. How can I keep them drawn? Full code: #include "GL/glut.h" #include <stdio.h> #include <math.h> int i; //int mainWindow, subWindow; int X1...
stackexchange/codereview
As I am making multiple dialogs, I am faced with difficulties. Here is my code: var dialog_count = 3; $(function() { var left_value = 0; var top_value = 0; for(var i = 1; i < dialog_count+1; i++) { $('.dialog_' + i).dialog({ width: 263, position: [800 - left_value, 800 - top_value] }); lef...
stackexchange/codereview
I am running mysql select queries 3500 times in a for loop and perform operations on the values returned by the queries in PHP. that process takes 16 seconds to execute for loop. any suggestion to reduce the execution time and improve the performance. thanks!
stackexchange/codereview
Theoretical question here -- the [general] Ethernet protocol uses an 8 byte preamble with an (almost) all 10101010 bit pattern, save for the very last byte. One purpose of this is for sender/receiver synchronization. Since Manchester Encoding can inherently sync the sender and receiver, do you think that the preamble ...
stackexchange/codereview
I jsut checked the sample of jQuery UI that opens a dialog, it's strange that the message needs to be written in HTML and read it by jQuery selector: http://jqueryui.com/demos/dialog/ <script> $(function() { $( "#dialog" ).dialog(); }); </script> <div class="demo"> <div id="dialog" title="Basic dialog"> <p>T...
stackexchange/codereview
Does anyone know how can I cut only number or char from the string in php? Example $test = '12b'; any way that I can only cut the number from the variable: 12? also and way that I can only cut out the char: b? NOTE: the $test string flexible to changed.. means it could come with '123b', '1a'...
stackexchange/codereview
I have written a script (in two files) that correctly displays a Joomla user id, like this: //this is testy.php define( '_JEXEC', 1 ); define('JPATH_BASE', dirname(__FILE__)); define( 'DS', DIRECTORY_SEPARATOR ); require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' ); require_once ( JPATH_BASE .DS.'inclu...
stackexchange/codereview
Consider I have a Singleton class defined as follows. public class MySingleton implements Serializable{ private static MySingleton myInstance; private MySingleton(){ } static{ myInstance =new MySingleton(); } public static MySingleton getInstance(){ return MySingleton.myInstance; } } The above defini...
stackexchange/codereview
I have the following in my models.py: class HostData(models.Model): Manager = models.ForeignKey(Managers) Host = models.CharField(max_length=50, null=True) HostStatus = models.CharField(max_length=200, null=True) Cpu = models.PositiveIntegerField(max_length=10, null=True) Disk = models.FloatField(null=True) ...
stackexchange/codereview
I'm using the quickSearch jQuery plug-in: http://lomalogue.com/jquery/quicksearch/ The reason it's not working currently in my app, is that while my search box remains constant, the table does not... It's a web app, and the table changes. Problem is the QuickSearch plugin will only search with the first table, if I AJ...
stackexchange/codereview
I'm using Newtonsoft.Json.Linq and I'd like to load the data into objects (or structs) that I define and put the objects into a list or collection. Currently I'm pulling out the JSON properties with indexes to the names. filename = openFileDialog1.FileName; StreamReader re = File.OpenText(filename); JsonTextReader rea...
stackexchange/codereview
The following works just fine in Chrome. <asp:LinkButton runat="server" ID="lbEdit" OnClick="lbEdit_Click"> <button type="button" class="edit"> Edit </button> </asp:LinkButton> And here is the CSS for button and its subclass. button { padding: 3px; } button.edit { background:#3f6096; ...
stackexchange/codereview
Many times I need to do things TWICE in a for loop. Simply I can set up a for loop with an iterator and go through it twice: for (i = 0; i < 2; i++) { // Do stuff } Now I am interested in doing this as SIMPLY as I can, perhaps without an initializer or iterator? Are there any other, really simple and elegant, ways of...
stackexchange/codereview
Hi I am developing a site based on Joomla 1.5 and I wanted to know how can we load varying template options dependiing on a menu item ID. A good example of what i am looking for is with the Gantry Framework (http://www.gantry-framework.org). Here you can change template settings on a per menu Item ID basis. A simple P...
stackexchange/codereview
Last Edit: Resolved! Well, i was unable to find the ENTIRE answer here but i finally got what i was after. thanks very much for all of your help and patience. as a side note: i think i may have been having problems with using the int and Number types, upon closer inspection of my solution, i realised that Number was be...
stackexchange/codereview
i want the mouse to freez (cant move) when mouse down thanks
stackexchange/codereview
I would like to use Criteria API in my new project and from what I understood, I also need to do annotation processing. Since there Java 5 on the server, how is this possible using Java 5 and Maven?
stackexchange/codereview
I understand from Googling that it makes more sense to extract data from XML using XPath than by using DOM looping. At the moment, I have implemented a solution using DOM, but the code is verbose, and it feels untidy and unmaintainable, so I would like to switch to a cleaner XPath solution. Let's say I have this struct...
stackexchange/codereview
In the provisioning portal, the "renew" button for my team provisioning profile is grayed out. And said profile is expired. How can I renew it? EDIT: I found the "automatic device provisioning" checkbox and "refresh" button in the organizer in Xcode. But when I select the team profile, check the checkbox, and push ...
stackexchange/codereview
I am using the csv-mapper gem to import a csv file. When I use the example code on in the README (http://github.com/pillowfactory/csv-mapper) in script/console it works great. However, when I create a web form and use that to upload a csv file I get the error "No such file or directory - test.csv These are the paramete...
stackexchange/codereview
Is it considered bad design if one url accepted different payloads depending on the basic authentication used? for instance: http://localhost/userA PUT by userA is allowed up pass XML_A but http://localhost/userA PUT by adminA is allowed up pass XML_B which is XML_A plus more. in otherwords it is the same resource bu...
stackexchange/codereview
In Flex4, I use an Image control. After every 10 seconds, i am changing the image programatically using Timer. But when the image changes, flickering occurs. Is there any method to prevent this? Thanks in Advance
stackexchange/codereview
$: = '/users/joecool/rubylib' $: << '/users/joecool/rubylib' $:.unshift('/users/joecool/rubylib') ruby -c somescript.rb ruby -e "puts 'Hello, world!' Can someone direct me to some reading, so that I can figure out what this code does?
stackexchange/codereview
I need to load batches of image files and change their dimensions. I'm doing it through FreeImage.dll in C++. Each batch contains JPG and TIF files. The problem is the exe processes the first batch accurately but for further batches it starts skipping some files, specially JPG files. I tried Initializing and Uninitiali...
stackexchange/codereview
i have a sting in which i want to replace all characters(except special characters) by X.. i mean if i have a string str= mac,iphone & ipad are products of apple theis should be converted to str= XXX,XXXXXX & XXXX XXX XXXXXXXX XX XXXXX i know this can be done by finding all special characters and note their position a...
stackexchange/codereview
I am running a Spring MVC application, backed by a MySQL database which I am accessing using JDBC. I have been using the same code for a while, and have never really taken a look as to whether or not I was using it correctly (using connection pools properly,etc). I am aware that there is the JDBCTemplate out there, and...
stackexchange/codereview
I want to center the application title/label in my Android app but I can't find a lot of documentation on how to set that property. I have found a couple of posts saying that I can create a custom title bar and change the theme in my manifest but I just can't help thinking there is a simpler way to just center the tit...
stackexchange/codereview
I'm having some problem figuring out which listview column header was clicked on. In the XAML, I have this: ListView Name="myListView" ItemsSource="{Binding MyItemList}" GridViewColumnHeader.Click="ListView_Click" And once there is a click on the column header, I handle it like this: private void ListView_Click(objec...
stackexchange/codereview
I've learned enough about SSRS to know that you can take snapshots and view a history of a scheduled report that is great. How we use it here is that we publish many reports and users run them when they want. Does SSRS store when users logged in and what reports they ran? Unfortuntely, I don't have database access t...
stackexchange/codereview
Reading another Stack Overflow question about jQuery performance, I started thinking about the point when it becomes worth using event delegation rather than binding to elements individually. I was thinking mainly about jQuery, but I suppose it is probably applicable for Javascript in general. Event delegation has two...
stackexchange/codereview
my task is to retrieve a set of messages from GMail via POP3 (no IMAP). I can do RETR MSG #, and it is prohibited to delete. Fetchmail and procmail are constantly trying to download a same set of new, unread messages (this part goes to ServerFault). Is there a header specially designed to distinguish previously read me...
stackexchange/codereview
I am about to create a function for a program, this is part of a program and is meant to be a bitmap that holds controls of which memory address is free for use (this has nothing to do with this function to do). The bitmap is bit[64] which holds 8 x 64 bits, the function under is taking a parameter number that is the n...
stackexchange/codereview
Sorry if this is probably a simple fix but I can't think of one. I am trying to take a command line argument (in this case a name) and search through a file hierarchy and keep track of the number of times that name comes up. I was just wondering how to store the CL input and then search through files using a regular ex...
stackexchange/codereview
Before I get chided for not doing my homework, I've been unable to find any clues on the multitude of questions on Java generics and dynamic casting. The type Scalar is defined as follows: public class Scalar <T extends Number> { public final String name; T value; ... public T getValue() { return value...
stackexchange/codereview
When a node is dropped it goes to beforenodedrop event in TreePanel But what happens when node is invalid ? it doesn't drop and so beforenodedrop event is not notified What event is that????? Can somebody please tell me????? Thanks alot in advance Regards
stackexchange/codereview
I'm just beginning to learn C++ and I'm trying to make Thread class that that has the basic functionality of the Java Thread class. What I'm trying to do is make a class which you subclass, write a Run method (which is pure virtual in the base class) create an object of the subclass call the start method on it and you ...
stackexchange/codereview
I am looking fo a function, to extract the mp3 source of this snippet of code: http://www.xyz.com/previews/speed_racer_preview.mp3 1930510 audio/mpeg i only need that part: http://www.xyz.com/previews/speed_racer_preview.mp3 This part always has the same structure, only the source changes.
stackexchange/codereview
I've got an Nonetype value x, it's generally a number, but could be None. I want to divide it by a number, but Python raises: TypeError: int() argument must be a string or a number, not 'NoneType' How can I solve this?
stackexchange/codereview
We are going to deploy a Drupal site inside company's intranet. There is a requirement for user to reset password. We have a centralized password reset mechanism (for single sign on): user submits a password change request in system the request is sent to a password server the password server will reset the user's pas...
stackexchange/codereview
If I have two threads in my Cocoa app, and (let's say), I'm reading from file X on the disk with an NSData +dataWithContentsOfFile:, and another thread is concurrently updating or replacing that same file X, with, say a -writeToPath:atomically:? I'm unfamiliar with what Cocoa's standard file read/writes modes are. Cou...
stackexchange/codereview
This is the statement from ISO C++ Standard 14.8.2.4 / 3rd :Deducing template arguments from a type A given type P can be composed from a number of other types, templates, and non-type values: — A function type includes the types of each of the function parameters and the return type. — A pointer ...
stackexchange/codereview
I have the following regex: regex = compile("((?P<lastyear>[\dBFUPR]+)/)*((?P<lastseason>[\dBFUPR]+))*(^|-(?P<thisseason>[\dBFUPR]*))") Which I am using to process horce racing form strings. Sometimes a horses' form will look like this "1234-" meaning that it has not raced yet this season (there are no numbers to the ...
stackexchange/codereview
I have an application that has some 3rd party libraries that require some configuration files to exist. I put these in jar files so they can be deployed using JWS. I know that you can read files from the jar file using getResourceAsStream(), but the 3rd party libraries don't do that. I have tried reading them out of...
stackexchange/codereview
Instruments reports this a memory leak (98.6%, whatever that means): [[NSNotificationCenter defaultCenter] postNotificationName:kNotificationSomeNotification object:self]; "self" is a subclass of UIImageView. Is including "self" in the notification causing a memory leak? If so, how do you resolve it?
stackexchange/codereview
Is it possible to compile an assembly to either: only include certain code parts OR Allow access to certain code based on a credential? I have an assembly that is redistributed. Certain applications will only use/have access to certain functionality and other will need more.
stackexchange/codereview
does a DLL(dynamic linking library) contains more than one class? if it contains how to get the classes and their methods separately in .net in c#
stackexchange/codereview
I need to test two things: that certain old paths are correctly redirected to certain new paths that the redirect is a 301, not a 302. I'm using Capybara for my acceptance tests, but that can't handle #2. I can test that the redirect happens, but it happens silently, so I can't see that it was a 301. Controller test...
stackexchange/codereview
many programmers import both gtk and pygtk in this way: import gtk import pygtk I have created a simple program using only gtk and it works: import gtk window = gtk.Window() window.set_size_request(800, 700) window.set_position(gtk.WIN_POS_CENTER) window.connect("destroy", gtk.main_quit) button = gtk.Button("Vai") b...
stackexchange/codereview
I use scripting for this: "%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\TF.exe" get $/DmlOnDemmand /recursive /force /noprompt And I build solution .sln call %msBuildDir%\msbuild %solutionName% /t:Rebuild /p:Configuration=%buildType% Now, I would like execute all Unit Tests and check all is OK. How can...
stackexchange/codereview
Is there any limitation for a file size for an application when submitting to the app store.
stackexchange/codereview
The language Forth offers a "compile-time" escape mechanism where code can be executed immediately, while the compiler is running (not at run-time). You can include print statements, for example, to debug tricky syntax or type errors). Does Clojure have anything similar? I am getting a compile-time IllegalArgumentExcep...
stackexchange/codereview
Over time your web service might changes, what do you do and how do manage change? (Different versions; add more features, modify or even remove features etc)
stackexchange/codereview
working on a website that will sell one item each day that will run for a period of hours specified by me. The site is much like groupon where when the timelimit is up, it will end the deal. My problem is how do i go about implementing this worldwide where different countries have different timezones? Im trying to refr...
stackexchange/codereview
I have a script that I want to run before the page start to load. The script checks the value of a variable and depending on the value redirect the user to a new page. I can successfully check the variable and redirect if needed but the page still loads and display empty page but then quickly redirects to the other pa...
stackexchange/codereview
I'm trying to add an external repo as a submodule of my repo, so I followed these instructions, doing: git submodule add git:... vendor git submodule init git submodule update then I tired: git submodule init vendor git submodule update vendor The submodule that I'm adding has submodules, and the submodule's submodul...
stackexchange/codereview
I'm getting all kinds of errors when using res/menu/menu_home.xml, and my project won't build. That's when I remembered that there was a way to create menus from java code instead of declaring it via xml. Does someone remember how to do that?
stackexchange/codereview
I am working with a 2-D array of nullable booleans bool?[,]. I am trying to write a method that will cycle through its elements 1 at a time starting at the top, and for each index that is null, it will return the index. Here is what I have so far: public ITicTacToe.Point Turn(bool player, ITicTacToe.T3Board game) { ...
stackexchange/codereview
I'm looking for a script that will allow me to detect if a user has Windows Media Player installed, or Quicktime, or Flash, or Silverlight... Ideally, this would be jQuery plugin, but any script will do. Do you know of one you can recommend?
stackexchange/codereview
Is there a function that returns the fully qualified path name for any inputted file? I'm thinking of something like: LPCSTR path = "foo.bar" LPCSTR fullPath = FullyQualifiedPath(path); //fullPath now equals C:\path\to\foo.bar Thanks
stackexchange/codereview
My headache is this - my server application exceeds the maximum open database connections while being under load. So, I figure I need a task queue (aka service bus) for write database access. A queue, that db write requests can be posted to it and the dedicate threads will read it and execute. I was wondering if there ...
stackexchange/codereview
I have a table with a user_id field. In find, I created a join on user table to retreive the username as: @question = Question.find(params[:id], :select=>"questions.*, users.username as username",:joins=>" inner join users on users.id = questions.user_id"); I created an instance variable in Question class with name...
stackexchange/codereview
I'd like to play around a bit with pure web app programming. Coming from a VB6 background, some features I'd like are: step-by-step debugging Visual UI design If we decide to do our next app as a web app, price isn't terribly important (a better IDE being more productive and pleasant to use). Update: I'm looking for ...
stackexchange/codereview
say I have the following code: def func(x, y = 1, z = 2): """ A comment about this function """ return x + y + z another_func = partial(func, z = 4) What would be the correct or Pythonic way of documenting the another_func function?
stackexchange/codereview
I just wanted to ask, if somebody can give me a heads up on what to pay attention to when using several simple kernels after each other. Can I use the same CommandQueue? Can I just run several times clCreateProgramWithSource + cl_program with a different cl_program? What did I forget? Thanks!
stackexchange/codereview
I want to build my own menu from the beginning so to be able to put more then 3 items on a raw and put a custom theme. I know it's possible because I saw in other applications, but I am new in Android and I don't know how to do this. Thanks in advance.
stackexchange/codereview
I always see a single file being used for named query. I have never seen multiple file for queries, but can it be done?
stackexchange/codereview
I have a game in development in XNA 4.0 + Windows 7. On the Windows 7 OS the game runs with no problem but when I move the project on Win XP with .Net 4.0 installed the game doesn't work. What can be the problem?
stackexchange/codereview
How can I create a "button" in Settings bundle? Something like "Import SIM Contacts" inside Mail settings? Or "Reset Calibration" in Nike + iPod application? Need to have a "Reset Username and Password" button for Settings, if that is a special case... I mean how can I add logic to clear some of other settings, while m...
stackexchange/codereview
I actually like the clean approach of Boost.GIL, standardized libraries are cool and Adobe certainly put some thought in it but when comparing to libs such as OpenCV its feature set is marginal. Do you use GIL and for what purposes?
stackexchange/codereview
How can I change window title font style and font color?
stackexchange/codereview
Hey there, I am fresh to iPhone development and Objective C. Sorry if this question is too stupid.... Here is my problem, I want to calculate the time taken by one of my function. like UIGetScreenImage. Here is the code: -(void)screenCapture{ CGImageRef screen = UIGetScreenImage(); UIImage* image = [UIImage image...
stackexchange/codereview
I know this is been answered many times but i am unable to find any good resource for this. Can any one tell how to create Custom Alert box for android??. What i want is a nice looking alert box with few images text etc which will be basically mu application info. I know how to create simple alert box. Please point me ...
stackexchange/codereview
As far as I know that embedding font face is only possible with CSS3 (CSS2 but not CSS2.1), and not all browsers are ready for it yet, particularly IE (unless IE9?)... I wonder if it is possible to use jquery to embed font face? any idea how can I start the code? or any plugin which can do this job? Thanks
stackexchange/codereview
I'm trying to come up with simple target board, basically a circle with two perpendicular lines in xaml. I have create an eclipse but I'm not sure how to draw the lines.
stackexchange/codereview
I am writing a small HTML+JavaScript (so to call) application. User is given two choices (radio buttons) and depending what did he choose, I display content "A" or content "B" under the choice radio buttons. Now I am wondering what is a right way to handle this content. Should I have 2 DIVs, only one visible, depending...
stackexchange/codereview
Is it possibile to ignore punctuacion using std manipulator on cin? For example suppose you have an input stream (in the actual case a file) like: "one, two three". I want to be able to do: f >> ignore_punct >> a; f >> ignore_punct >> b; f >> ignore_punct >> c; at the end a=="one", b=="two", c=="three".
stackexchange/codereview
Hello I wish I could define two filters like this <filter-mapping> <filter-name>SecurityFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>ContextFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> with the same pattern /* in my w...
stackexchange/codereview
I have a number of data access methods that accept a dynamic object parameter (i.e., dynamic foo). I can't use an interface to define to type the input parameter due to existing code. I am setting properties in the data access methods, but using dynamic without checking to see if the properties/methods exist makes me n...
stackexchange/codereview
I have to deploy a Java application via Java Webstart. Webstart downloads the application jar and library jars needed, then after everything was downloaded there is a 50 second delay before the application starts. Running the jar directly on the computer loads almost instantly, so it's not the application jar which is...
stackexchange/codereview
Using SQL Server 2005. I was doing some simple queries on a table that has about 200k records. As of today when I got to work, a simple SELECT * FROM executes till it retrieves about 20k rows...then stops. It won't go past 20k rows. If I try to select just ONE row while using ORDER BY Created DESC, the query runs inde...
stackexchange/codereview
Is there an option that the GCC preprocessor could generate C source code and filter out irrelevant source code? For example, a .c file has a #define switch to define for many different platforms. I'm only interested in one platform, and I want the C preprocessor to filter out unrelated code. Does GCC support this?
stackexchange/codereview
I have Acvtivity that creates view and mediaplayer. I want to use OnCompletion event to make that view clickable. But it throws exception, I don't know why. Probably, mediaplayer runs in another thread and cannot access elements from main ui thread? Thank you for any information
stackexchange/codereview
I'm new to WCF Data Services so I've been playing. After some initial tests I am disappointed by the performance of my test data service. I realize that because a WCF DS is HTTP-based there is overhead inherent in the protocol but my tests are still way slower than I would expect: Environment: All on one box: Quad cor...
stackexchange/codereview
I'm currently using the following code for my read more buttons: $(document).ready(function() { $("a.more-link").attr("href", ""); $("a.more-link").attr("onclick", "return false;"); $('.readmore').each(function(index) { var $link = $(this); $(".readmore").prependTo('.' + $link.attr("id") + ' > #b...
stackexchange/codereview
(C++) I've got a number of Entry classes, and got BaseProcessor interface which incapsulates Entry processing logic. (see code below) The Entry doesn't provide operator<(). The BaseProcessor provides a pointer to less(Entry, Entry) function which is specific for particular BaseProcessor implementation. I can use the fu...
stackexchange/codereview
I want to create custom ImageButton, but to work like on/ off button. On click on button image to be changed to pressed(until another button is pressed)! On picture This month button is on , This year off . How can I create button like this? Do I need to use and how ? Thanks
stackexchange/codereview
Is there a built-in function in php to add some extra sharpness on images? Like Photoshops unsharp mask?
stackexchange/codereview
I read in a file via HTML5 FileReader and jQuery like so: holder.ondrop = function(e) { this.className = ''; e.preventDefault(); var file = e.dataTransfer.files[0], reader = new FileReader(); reader.onloadend = function(event) { $.ajax({ url:"/path/to/upload", type: "POST...
stackexchange/codereview
How do I stop a video at a specific time using Blend/WPF in C#? Example: When I clicked on a "TreeViewItem" called "MONDAY", the video will start to play. But up to 10sec of that video, I want it to stop. As after 10sec, that video will be showing video of another "TreeViewItem" called "TUESDAY". So what is the coding ...
stackexchange/codereview
What I'm trying to do is: when you mouse over any word in a body of text say for two seconds, it will become underlined. And if you click it, it will stay underlined until you click anywhere else or you click it one more time. Any suggestions?
stackexchange/codereview
I'm trying to add a label I think thats what they are called... .. just like I've done several times before to exit a function without processing some code and I'm getting the error 'label at end of compound statement' why ? what do i need to do instead ?
stackexchange/codereview
Hi All One thing about Android development i would like to see some examples on are, separating responsibilities in Android, right now i have Activities and i feel its quite unpleasant, how i put all my event handling, UI construction/updating and communication with my data persistence into a single Activity. This mak...
stackexchange/codereview
The task is to have a query returning 0 if no rows are going to be returned if the condition is applied and 1 if there are going to be more than 0 rows. Preferably this query should be faster than just querying the table with the condition and limiting the query with 1 row in result set.
stackexchange/codereview
I am testing my own http module and studying IIS integrated pipeline at same time. In my module, I registered events: RQ_BEGIN_REQUEST, RQ_END_REQUEST, RQ_AUTHENTICATE_REQUEST, RQ_AUTHORIZE_REQUEST My website has one page require SSL, others don't. When other http:// pages requested, all 4 events are triggered. When th...
stackexchange/codereview
I have successfully done this using "MSGraph.Chart.8" in VS 2010 and c# and the graphs look ancient and pixelated like back in 1995 or so. The help online seems all the same. like this one... http://support.microsoft.com/kb/316384 I really need to generate these word documents with nicer graphs in code, or at least ...
stackexchange/codereview
Is it possible to declare functions in python and define them later or in a separate file? I have some code like: class tata: def method1(self): def func1(): # This local function will be only used in method1, so there is no use to # define it outside. # Some code for func1. ...
stackexchange/codereview
Hello In my android application when the user reinstall the app again i would like to delete the existing database and create a fresh new one. How could i know that the user is reinstalling the app or is quering for the updates request. How could i delete a file in raw folder? Please share your valuable suggestions. ...
stackexchange/codereview