Questions tagged [reset]

Resetting something restores it to a default position or value, or to a previous position or value

Resetting something restores it to a default position or value, or to a previous position or value

2384 questions
62
votes
2 answers

How to reset CSS3 *-transform: translate(…)?

How can I reset CSS transform properties CSS translate value? Say I have: div.someclass { -webkit-transform: translate3d(0, -50%, 0); -moz-transform: translate(0, -50%); -ms-transform: translate(0,- 50%); -o-transform:…
knittl
  • 246,190
  • 53
  • 318
  • 364
60
votes
1 answer

Wipe data/Factory reset through ADB

Basically this is my problem/ I have 200+ phones running stock Android that need to be wiped (in the Wipe Data/Factory Reset way) and then a new ROM installed with some additional apks. Currently I've got everything automated except the Wipe Data…
deadwards
  • 2,109
  • 1
  • 16
  • 27
58
votes
5 answers

How to discard changes using repo

repo status shows me a lot of un-wanted changes. It would be duplicated if I enter every project and use git reset --hard. Is there a way to reset all the changes using repo, something like repo reset --hard?
Johnny
  • 6,239
  • 7
  • 29
  • 36
58
votes
1 answer

How to set Golang's log output back to console?

Google Go's log package has SetOutput - a function for setting the log output to any io.Writer. After I set it for testing, I would like to revert the output back to the standard console output - how do I do that? I don't see any obvious way of…
ThePiachu
  • 8,695
  • 17
  • 65
  • 94
57
votes
6 answers

Reset Embedded H2 database periodically

I'm setting up a new version of my application in a demo server and would love to find a way of resetting the database daily. I guess I can always have a cron job executing drop and create queries but I'm looking for a cleaner approach. I tried…
javydreamercsw
  • 5,363
  • 13
  • 61
  • 106
57
votes
4 answers

Rake db:migrate - how do I undo all migrations and redo them

Is there a quick rake db:rollback command for all of the migrations?
Lucy Weatherford
  • 5,452
  • 16
  • 50
  • 76
56
votes
3 answers

tbody width not automatically extending to width of table

Take a look at this example here: http://denise.brixwork.com/showlisting/1/8297-Valley-Drive-Alpine-Meadows-Whistler-denise-brown-real-estate And the red tables under "Specifications" is not becoming the full width of the containing it - when…
jeffkee
  • 5,106
  • 12
  • 44
  • 76
48
votes
4 answers

Git "revert" current directory

In Subversion (SVN), it's possible to do svn revert ./* in which the current directory and only the current directory gets reverted. What is the Git equivalent to svn revert in which only the current directory gets reverted? I know that there's git…
pillarOfLight
  • 8,592
  • 15
  • 60
  • 90
46
votes
5 answers

What's the difference between git reset --hard and git reset --merge

In my experiments I haven't been able to find any functional difference between git reset --hard and git reset --merge The usage instructions don't give any hint either --hard reset HEAD, index and working tree --merge …
opsb
  • 29,325
  • 19
  • 89
  • 99
45
votes
5 answers

CGAffineTransform Reset

3I have an image that gets manipulated by touch. Lets say its an image of an arrow that points up. After it's been rotated 180 degrees, so the arrow is pointing down now, I want to reset CGAffineTransform properties so that it thinks now its turned…
Gizmodo
  • 3,151
  • 7
  • 45
  • 92
43
votes
3 answers

git update-index --assume-unchanged and git reset

Here is the scenario: In my working directory, I have a number of files (let's call them A,B,C) that I've edited. I then ran git update-index --assume-unchanged on those files. Now git status returns blank. Good. Now, if I do a git reset --hard,…
Ken Hirakawa
  • 7,831
  • 10
  • 38
  • 49
40
votes
8 answers

How can I reset an MySQL AutoIncrement using a MAX value from another table?

I know this won't work. I tried it in various forms and failed all times. What is the simplest way to achieve the following result? ALTER TABLE XYZ AUTO_INCREMENT = (select max(ID) from ABC); This is great for automation projects. SELECT @max :=…
ThinkCode
  • 7,841
  • 21
  • 73
  • 92
36
votes
4 answers

Pandas reset index is not taking effect

I'm not sure where I am astray but I cannot seem to reset the index on a dataframe. When I run test.head(), I get the output below: As you can see, the dataframe is a slice, so the index is out of bounds. What I'd like to do is to reset the index…
Union find
  • 7,759
  • 13
  • 60
  • 111
35
votes
7 answers

Why do I sometimes see an "Entry 'filename' not uptodate. Cannot merge." after a 'git reset --hard' and a 'git pull'?

Occasionally, when I do the following... git reset --hard HEAD is now at 0123abde comment is here git pull Updating 0123abde..456789fa I get the error... error: Entry 'filename' not uptodate. Cannot merge. The only workaround I have found is to 'git…
James Bobowski
  • 475
  • 1
  • 4
  • 7
35
votes
5 answers

Clean git repo on Heroku

The situation is as follows: We have some project which persists on Github, and deploy it to Heroku, which has its own mini-Git. Some changes were applied directly to Heroku (cloned repository from Heroku, made changes and pushed). In a meanwhile…
Paul
  • 25,812
  • 38
  • 124
  • 247