I know i did a mistake ...
I deleted my HKCU\Software\Microsoft\Windows NT\cuttentversion\ProductName registry key ...
How can i retrieve the information in it ?
I did searched before posting ...
Try using system restore, even if you dont have a specified checkpoint you can still rollback to a little bit.
If that doesnt work then you might as well either
A) save your stuff onto an hdd and reformatt.
B)Try to get a new registry key so that it will be re-added.[there are a few sites thatll give out keys]
I hope this helps you!
Related
all!
So I've been sleuthing over this problem for the past two days.
I have a ramdisk, and I tried partitioning it using both parted and fdisk. I also tried to register it using partprobe and kpartx.
lsblk is displaying the partition I made for cow_ram0 as cow_ram0p1. However, the /dev/cow_ram0p1 file doesn't exist.
Has anyone experienced this before? If so, how'd you solve it?
It doesn't even have to be ramdisk specific. Has anyone ever had the /dev/ file not appear upon partitioning?
Now, for some details (don't want to get downvoted to oblivion):
The ramdisk is called cow_ram0.
So I tried this first:
fdisk /dev/cow_ram0
I hit n for new partition.
Then, I just hit enter twice to get the first sector number at 2048 and the last one at whatever the last sector is.
Then I hit w to write all these actions.
Then I called lsblk. I don't see a partition for the ramdisk.
So I call partprobe and then kpartx -u /dev/cow_ram0 (calling both because partprobe didn't work, and ayy... I am looking into an Issue, so this won't go to master... redundancy won't hurt).
Now the lsblk output actually contains cow_ram0p1.
So I try to mount it, and I get a /dev/cow_ram0p1 file doesn't exist error.
I repeat the process above with parted -a opt /dev/cow_ram0 -t ext4 primary 0% 100% instead of the fdisk stuff above. Same result.
Has anyone experienced this before?
Ok. The problem was I had forgotten to set a flag(max_part) in the kernel module when inserting it. Hopefully you, the reader, made the same mistake.
i'm trying to create a VM using libcloud with auto delete feature. The thing is that it only works for boot disks.
Example:
new_node = driver.create_node("my_node_str", size, get_root_snapshot(driver), location,ex_service_accounts=sa_scopes, ex_disk_auto_delete=True, ...
Then I attach a disk:
driver.attach_volume(my_node,...,ex_boot=False, ex_auto_delete=True)
So i go to GCE and this volume auto delete is turned OFF
So, i try to change it "manually" using libcloud:
conn.ex_set_volume_auto_delete(vol, node)
And I get the error :
libcloud.common.google.GoogleBaseError: u"Invalid value for field 'disk': 'myvolume1-worker-disk'
But the disk is created, attached and it is working on my VM.
Debugging libloud everything seems to be ok acording to documentation (https://cloud.google.com/compute/docs/reference/latest/instances/setDiskAutoDelete):
It calls:
u'/zones/us-central1-b/instances/myinstancename/setDiskAutoDelete'
With parameters:
'deviceName': volume.name, 'autoDelete': auto_delete,
any clues?
It looks like there may be a bug with attach_volume. I'll do a bit of testing and get that fixed up if so.
Regarding using ex_set_volume_auto_delete, you need to pass in a StorageVolume object. It looks like you are just passing in a string (the name of the disk).
You could try,
disk_obj = driver.ex_get_volume('string-name-of-disk')
driver.ex_set_volume_auto_delete(node_obj, disk_obj, ex_auto_delete=True)
I'll follow up about the first issue when I look into it more.
Is there any better way of doing it,apart from setting 'wsrep_cluster_address='gcomm://' for each node that I want to remove?
I just did this. Seems to have worked. On the node you want to evict
Try
>show global status like 'wsrep%';
Copy paste the wsrep_gcomm_uuid
Go to another node and evict from there assuming the UUID = 1de97dad-f609-11e5-8a50-ce2e621b0c42
SET GLOBAL wsrep_provider_options="evs.evict=1de97dad-f609-11e5-8a50-ce2e621b0c42";
If the node is already shut down or non-responsive you can get the UUID from any other node from wsrep_evs_delayed
I see two choices here:
http://www.severalnines.com/blog/online-schema-upgrade-mysql-galera-cluster-using-rsu-method
(You aren't doing RSU, but that involves "removing a node".)
So I can't get too specific, but I think what I can tell you will be enough to figure this out. First I'm using gorp to set things up and get the transaction. I am using the github.com/denisenkom/go-mssqldb driver.
Then I run through a series of operations and if of them fails I rollback and if all have success I commit. The problem is that it's only rolling back the statement that failed and not the rest of the operations. Am I wrong that this is not how that is suppose to work?
Here is some rough psudocode to give you a better idea of what I'm talking about:
trans,err := dbmap.Begin()
//assume all errors are received and checked before continuing
id := trans.Exec("insert thing") //successful, persists after rollback
thing := trans.Select("Select thing") //successful
trans.Exec("update other_thing with thing") //successful, persists after rollback
newthing := trans.Exec("insert new_thing with thing") //fails, rollsback
if err != nil{
trans.Rollback() //No errors
return
}
trans.Commit()
Am I wrong that that should rollback everything since dbmap.Begin()? Is this a bug in the driver implementation? Any and all help is GREATLY welcome. Thanks!
Update
Tested https://play.golang.org/p/0L3Vgk8C_F and it worked so I'm guessing that means it something to do with gorp. I'm using the v1 branch since this will be production soon and so stability is key. I'll be picking through it, but it looks like it's just wrapping it lightly.
Check you don't have autocomit enabled. Many command line tools, uis and even drivers enable it by default
According to this( I read just a few lines) https://technet.microsoft.com/en-us/library/ms187878(v=sql.105).aspx
autocommit seems to be ON by defauly, that leads me to conclusion that if the author of go-mssqldb didn't implement on/off for this feature its ON.
You can toggle it yourself just search for SET IMPLICIT_TRANSACTIONS
I want to save a high score in my game. I saw that you need to use json library but I dont know how to use it. i want to save a table and not just a written text. Ther is an easy way of doing that?
adit:
I have found Ego:
http://techority.com/2011/12/28/ego-easy-saving-and-loading-in-your-corona-apps/
it works very good! but I am concern. i am not Savvy at thise things. someone can the me if it is Reliable?
You can solve your problem in a easier way..
Just declare a Variable for the Score like this..
local score=0
Then Increment the score variable by 1 whenever it hits the paddle. So Insert the coding in Collision Function as given below:
local function onCollision(event)
{
score=score+1
}
ball.collision=onCollision
ball:addEventListener("collision",ball)
Finally When you need to save your highscore (after gameover), You can use Preference instead of json which makes the larger coding.
local preference= require "preference"
local highscore=0
preference.save{highscore=score}
If you want to display the Highscore, then use the following:
highscore_value=preference.getValue("highscore")
display.newText(highscore_value,0,0,nil,30)
This might be useful for your problem !!
Refer here :Save highscore on corona sdk?