Sunday, September 22, 2024

Two new Zotero tricks

 Long time no post! Here are two recent Zotero tricks

Extracting references from a document (and copying to clipboard)

And merging duplicates:

```

var DupPane = Zotero.getZoteroPanes();
for(var i = 0; i < 100; i++) {
await new Promise(r => setTimeout(r, 1000));
DupPane[0].mergeSelectedItems();
Zotero_Duplicates_Pane.merge();
}

```


Monday, March 20, 2023

Time machine clearing

 Just got a mac and set up time machine, here is how to clear local backups


https://apple.stackexchange.com/questions/340905/how-to-delete-all-local-timemachine-snapshots

https://macpaw.com/how-to/clear-system-storage-mac

for d in $(tmutil listlocalsnapshotdates | grep "-"); do sudo tmutil deletelocalsnapshots $d; done

Wednesday, January 4, 2023

Bluetooth keyboard not working

 https://support.lenovo.com/us/en/solutions/ht101285-24g-wireless-keyboardmouse-function-may-be-interrupted-when-plugging-into-usb-30-port-of-thinkpad-usb-30-dock-or-thinkpad-usb-30-basic-dock


happens all the time


Friday, October 21, 2022

Installing the R package 'sf' on a Mac with an M1 chip

 I really struggled with this, so am just going to stash some resources here that I found useful


https://mac.r-project.org/tools/

https://yiqingxu.org/public/BigSurError.pdf


this makes me think its possible

https://twitter.com/RogerBivand/status/1397157063676022787/photo/1


Also had to do brew install of gdal, geos, and proj


Probably need to do this too

https://www.mail-archive.com/r-sig-mac@r-project.org/msg06199.html




Monday, August 22, 2022

Abstract writing


Use headers: background, methods, results, conclusions

background should end with a gap statement

each should be similarly weighted word-wise.

actually talk numbers with results, don't be vague.



high resolution images from powerpoint

 for figures and schematics

https://docs.microsoft.com/en-us/office/troubleshoot/powerpoint/change-export-slide-resolution

save slides at JPG, then crop in post


For your student's first paper

Probably best to give someone something that is already thought out 


Ubuntu tips

 fractional scaling (150%)

https://www.debugpoint.com/2020/01/how-to-enable-fractional-scaling-in-ubuntu-18-04-19-10/


Being a good mentor

 Re-post of: https://sarkarlab.ucsf.edu/new-blog/2022/2/28/the-best-policy


The Best Policy
Urmimala Sarkar - March 1, 2022
Dear friends,
It’s March 2022, and I can’t say whether time moves quickly or slowly any more. The state of our world is hitting me hard right now, and I am sending solidarity to all who share this feeling. I spoke to a small group of mid-career faculty recently, and they followed up after the meeting with the following question: “We suggest a future blog post on techniques and strategies for supporting excellence on research teams
Combine high expectations with specific feedback.
Be forthcoming with your team about the bigger picture. 
Own your mistakes. 
 be kind to yourself. 
Warmly,
Urmimala

Blocking time

 I've thought and tried at various times about blocking off time in my schedule to work on things. It never works. 

But I had a recent idea, maybe just putting in 1 block per week would work better? Easier to accomplish and harder to justify skipping? will try and report


Thursday, May 26, 2022

Helpful ggplot references

 base colors:

* https://www.statology.org/ggplot-default-colors/#:~:text=By%20default%2C%20ggplot2%20chooses%20to,and%20blue%20for%20the%20bars.

Changing individual points in a legend

https://stackoverflow.com/questions/25007324/can-ggplot2-control-point-size-and-line-size-lineweight-separately-in-one-lege


Wednesday, May 25, 2022

Install Zotero on a university computer

 If you try and download Zotero, sometimes you get this error: https://forums.zotero.org/discussion/78492/how-can-i-install-zotero-without-7-zip

All you need to do is this: https://services.xavier.edu/TDClient/58/Portal/KB/ArticleDet?ID=53


Monday, May 23, 2022

Fixing your ergonomic keyboard

 https://answers.microsoft.com/en-us/windows/forum/all/microsoft-sculpt-keyboard-need-to-clean-under-the/d447045d-da56-4ff1-beea-cb5ab9c02873

I used a paper clip, and this worked well