How do I delete all nodes from my firebase realtime database in the console? - firebase-realtime-database

I want to delete all the nodes from my root directory as shown in the picture.
There's no delete button in the console, how do I delete them?
There's supposed to be a trash icon near the node, but it's not showing.

The Firebase console switched to read-only mode, since there's too much data for it to handle.
To delete a node, you can:
run a curl request in a terminal window as shown here: https://stackoverflow.com/a/42182390
import an empty JSON file into the path you want to delete.
use the API to delete the value from the path.
Navigate to each of the child nodes, and delete those one by one, until you've either deleted them all, or the console switches back to realtime mode.

See
It appears on hover - just hover on that and then click on trash button
So after importing JSON

Related

Xcode auto save file when navigating away

These are the cases when Xcode saves the files:
https://developer.apple.com/library/archive/documentation/ToolsLanguages/Conceptual/Xcode_Overview/UsingFileSaving.html
Is there a way to tell Xcode to save file each time when I navigate away? If the file is not saved, its content is not indexed, then it won't autocomplete. I always start typing, then I realize it's not indexed yet, then I press ⌘-B, then it saves and indexes, but adds error. Now I can type further, it autocompletes, but the error message appears with the previous starting letters, that it doesn't have any member, so it's a mess.
An autosave would be handy, or any other solutions for the problem above?

How to download multiple files one after another

I have a ajax download functionality in my MVC webapp.
User can select a criteria and click on export button. Internally it will fetch data and return an Excel file. up to this functionality is working fine.
But the issue occurs, While one download process is running and now user changes the filter criteria and again click on export button. Now two download processes are running. Whichever process completes first will return file to download. Now the user can see Open, save, cancel option to download first file. As this stage when second download request is also completed and returns file to download. When I opens one file the another file download option is also lost.
Initially I thought it might because both the files are having same name. So I made changes to set unique file name for every request. But It still gives only single file to download.
Can anyone help me on this?
edited :
On other pages where I have two different types of files to download, the above functionality works successfully.
In none ajax requests, page can only be waiting for one response.
In order to solve that problem and wait for multiple responses you should use target attribute with value "new" as the following code depicts:
Your download Text
The above code makes each response to be downloaded in a new tab.

IOS UI Automation Export Traced Results

My Instruments will not save anything, I don't know if its bugged or what. I have selected a desired folder under Logging and checked Continuous Log Results but nothing gets saved inside it. I don't need image screenshots, I just need xml, html and pdf.
If you are trying to save your test results, you are doing it correctly. the traced result of your test will create a .Plist file that you will need to save as an XML file. I used a XLT transform template to make the XML easier to read, with a table displaying the tests, as well as the pass/ fail result.
I have experienced the same problem. To solve it, You have to push the "record" button placed in the top left corner, before running your tests. After that you can push the "Export Traced Results" and get the .plist and all the screenshots.
I can used this post to generate html and pdf file from .plist:
http://blog.essencework.com/post/1728269540/xcode-uiautomation-for-test-result-report-part-2

Labels creation in gmail account using mailcore2

I am building an ios app in which I am presenting emails from the user's gmail inbox on a UITableView. Now I have gotten a new requirement i.e. to create labels (through code) and move the selected emails from inbox to those labels (through code). I am supposed to achieve this task using mailcore 2 . I have no idea how to go with it, need your help plz
You can create folders with -[MCOIMAPSession createFolderOperation:] which takes the path of the folder relative to the root path of the server and delimited with the default delimiter of that account (which can be fetched with an MCOIMAPNamespaceOperation). To move emails into that folder destructively (all the messages are removed from the old and put into the new), you can use -[MCOIMAPSession copyMessagesOperationWithFolder:uids:destFolder:], then call -[MCOIMAPSession storeFlagsOperationWithFolder:uids:kind:flags:] passing along the old folder, the UIDs you just copied, and MCOIMAPStoreFlagsRequestKindAdd as the kind, and MCOMessageFlagDeleted as the flag. Non-destructive requests just involve a copy operation.
To add labels to a message, use -[MCOIMAPSession storeLabelsOperationWithFolder:uids:kind:labels:] with an array of strings for the labels to apply.

Deleting a Collection - affect on documents within the collection

I am using the Python Client to permanently delete collections (not move into trash but permanently delete).
The version of python gdata is 2.0.16.
Here is the code that I am using to permanently delete a collection:
delimited = folder_entry.GetEditLink().href.split('?')
url = delimited[0] + '?delete=true'
client.Delete(url, force=True)
The issue that I am experiencing is what happens to the documents that were inside the collection that is being deleted.
This API used to (up until about the beginning of April 2012) not delete the documents that were inside the collection. The end result would simply be that the documents that were inside the deleted collection would be 'untagged' from the collection.
Currently, this API work completely different in terms of the documents located inside the deleted collection. Now, the documents inside the deleted collection will also be permanently deleted.
A few questions...
1) Is this change to the API expected?
2) Is there a new way to permanently delete a collection and simply 'untag' the documents that were located in that collection.
Thank you for any information.
Dan
I think this has less to do with how the API behaves but with how the whole product behaves.
With the move from Google Docs to Google Drive we've moved from collections used as "tags" to collections being "folders" and now, when deleting a folder, all the contained files are also deleted. The API reflects that behavior as a side-effect it seems.
Unfortunately I don't think much more work will be done on the Document List API as we are hard at work on the next version of the Drive API which should cover most of its features.

Resources