clean-up

Able to delete a specific revision from SVN?

Does SVN allow you to completely and cleanly delete an entire revision from its folder structure? I used Tortoise SVN to delete a file from the SVN repository, and due to size I want it to be completely removed from the repository. It appears to be deleted from the head revision, but not from the SVN folder structure. I would like ...

How Do You Clean up a PHP Project?

I have been working on a small php app (400K total). But in the process of building and learning I have a lot of junk files. I didn't do my job and name them properly, ie demo1.php ect... Is there a way to do dependency checking? Or is it just delete, refresh and repeat? Then undelete when needed? ...

How to remove installed Java programs on the simulator?

There are lots of java apps on my simulator menu screen which I have been coding and testing? Now I want to remove some of them to clean my simulator a bit. How do I remove them? ...

How to write cleaner code while instantiating an object with enumerations without using keyword?

Hi all, I recently created a class which has a constructor taking 3 enumerations as arguments. These enumerations are defined in the object itself as ObjectEnum and AnotherObjectEnum in the example below. LongObjectName pt = new LongObjectName( LongObjectName.ObjectEnum.EnumerationOne, LongObjectName.ObjectEnum....

JQuery: how to download ONLY necessary components?

I simply want to use the JQuery Slider functionality and nothing else. However, to do so - it's my understnading that I must download 3 files: JQuery Core JQuery UI base JQuery Slider This totals to about 74kb (28kb gzipped). Since I'm ONLY using JQuery for the Slider functionality - how can I remove all the unused JQuery base co...

Android: Anyone knows how long the web history is retained for?

I was wondering if anyone knows if android clears up the websites visited log from inside its database based on date or number of entries in the database... Any inputs? ...

How to avoid debugger-only variables?

I commonly place into variables values that are only used once after assignment. I do this to make debugging more convenient later, as I'm able to hover the value on the one line where it's later used. For example, this code doesn't let you hover the value of GetFoo(): return GetFoo(); But this code does: var foo = GetFoo(); return...

Python MySQL: clean multiple foreign keys table

Hi Everybody, I am working with Python MySQL, and need to clean a table in my database that has 13328 rows. I can not make a simple drop table, because this table is child and also father of other child foreign-keys linked on it. If I try drop table, the system forbidden me. The table is defined with ON UPDATE CASCADE, ON DELETE CASCAD...

Setting variables with blocks in ruby

I find myself using PHP-like loops a lot in Ruby and it feels wrong when the rest of the language is so neat. I wind up with code like this: conditions_string = '' zips.each_with_index do |zip, i| conditions_string << ' OR ' if i > 0 conditions_string << "npa = ?" end # Now I can do something with conditions string I feel like I...

VBA Clean use of many Constants

My Excel VBA takes ~300 XLS files and grabs 8 cells to deposit into their own row. (Office11) I have several subs and functions that use location constants for the sourceData and destination locations. Grand Total I have 23 constant locations with Column numbers, cell locations. Question: Any suggestions on how to clean this up for r...

PHP Clean Up Permutated Array

Hey all, basically, i have an array: array('a', 'b', 'c'); Now i run it through an array permutation function and the result is: Array ( [0] => Array ( [0] => C ) [1] => Array ( [0] => B ) [2] => Array ( [0] => B [1] => C ) ...

When is it a good idea to clean a solution?

As the title says - what are your guidelines for when you should run a "Clean solution" on your visual studio projects? ...

How do I acquire a "cleansed" Git repository?

Hi All, I can't seem to find the answer to this seemingly simple question, anywhere: How do you acquire a clean copy of a code repository once you "release" it? For instance, say I'm at a place in my Git repository where I want to release a copy. How do I copy it without all the Gitiness? I don't want any hidden Git directories, etc....

cleaning out a Mercurial Repository

There are a bunch of file in the history of my hg repo that have been removed. They are causing the repo to get pretty big (several of them are images, and sql dumps from early in the project, among other things that never should have been comitted in the first place). How do I get mercurial to forget about that stuff and get my reposit...

How to reset a single table in rails?

I want the primary key values to start from 1 again. ...

Rails plugin to clean up (reformat) html output?

Is there any plugin (gem) that after rendering page can clean and reformat it? By cleaning I mean removing unnecessary new lines and whitespaces. ...

Python Hierarchical QcomboBox: clean-up list

Hi Everybody, I have a hierarchical two combo-box. The first combo-box displays a list of customerNames, i.e. different companies from a MySQL db. Each customer has branches in different cities. Then, when a customer name is chosen from combo-box1 option list, e.g. {Aldi, Meyer, Carrefour, WalMart}, for that particular customer, a list...

altering Visual Studio's Clean Solution option

As a post-build event for some of my projects, I have documentation copied from directories like bin\Project\Debug to a central doc\ directory in the root directory of my solution. When I do a Clean Solution, I know bin\ and obj\ files get deleted, but I would like for another event to happen to delete cruft from my own doc\ directory. ...

Is there any c/c++ compiler that can warn (or give error) or enum conversion to int?

Cleaning up old c/c++ code that used hardcoded integer literals instead of enums, it is tedious to find places where the function-declaration has been properly refactored but not the body. e.g. enum important { little = 1, abit = 2, much = 3 }; void blah(int e) { // magic stuff here } void boing(int e) { ... } void guck(impor...

ASP.NET handle external server sessions - clean-up

Are we "doing it wrong"? A colleague and I are messing around with an ASP.NET page to act as a "portal" to view the results from a diagnostic program on a UniData server. Although we do the odd-job of ASP/ASP.NET at work, it is not our primary language. To access this server, we have to use UniObjects, which is an API for authenticatin...