Clone panel to external monitor - panel

I have just installed Mint 18.1 with Cinnamon 3.2.7 (Kernel: 4.4.0-78) on my laptop and on the external monitor I have no panel at all. I read somewhere that this might be intentionally so I can have different items on the internal monitor and other on the external. I have no issue with this as long as I can "clone" somehow the settings/items from one panel to the other. How can I do that?

Finally, I managed to find a way to partially solve this productivity issue. After lots of panel changes and finds (to see what files have changed) I noticed that the panel information is stored here:
~/.cinnamon/configs/panel-launchers#cinnamon.org
There are 2 .json files (one called 2.json for the main panel and another one called 30.json for the panel on the external monitor) and by copying the contents of one panel to another, I managed to clone the applications from the left to the right side.
Note 1: this is only a partial fix because I could only clone the launcher part of the panel and not the full panel, but this partial solution solves my problem
Note 2: I've tried soft linking these files but I managed to make the changes only one way (from one panel to another), so soft linking the files is not an option. Hardlink doesn't have any automated effects
Note 3: I'm not sure how the filenames are assigned on the panels but I assume they follow some convention-over-configuration naming policy because I couldn't find the names mentioned anywhere on the ~/.cinnamon folder

Related

How to put my OneNote notes from my machine to onedrive?

I have several notes on my OneNote on mac. I accidentally deleted the OneNote file on my OneDrive.
I have a copy of the notes on my mac but It is, understandably not able to synch with the server because the file is not there on the server.
How do I put the notes I have on my mac on the server?
I created another notebook and tried moving the notes one by one to this one but i get the following error.
The sections you're moving have not all been synced. Make sure you are online and fully synced before you move sections between notebooks.
Is there some way to get OneNote to ignore this?
I recommend following the instructions of this wiki:
https://support.office.com/en-us/article/How-to-move-my-local-notebooks-to-OneDrive-or-SharePoint-7343c424-cdee-4bbf-9245-312549e81fc0
After trying various options, this is what worked for me. It is not exactly what i was looking for but i was able to save my notes.
I used the OneNote 2016 (not the free one) to export all my sections to files.
Note: You cannot do this for the whole notebook, fortunately you can export whole sections.(small mercies).
These show up as 'Open Sections'. Once I had exported all my sections. I copied them one by one from the 'Open Sections' to another notebook. I synched this notebook and that was it.
I finally found the answer in this blog post: https://40north.wordpress.com/2020/01/10/salvaging-onenote-notes/comment-page-1/?unapproved=2063&moderation-hash=1ddd37becedb0462043fad528bd5d3b1#comment-2063
Essentially you need to:
Create a new notebook
Create new sections in that new notebook with the same labels as the old notebook (time consuming I know)
left click the top page in the old section, hold shift click and left click the bottom page
move those pages into the new section
repeat indefinitely
If someone can figure out how to write a script for this, that'd be great, but for now I'll just do it manually until it becomes tiresome.

Mark a large number of files as Build Action "None" in Visual Studio

I have a folder containing 12000 images. When I add them to my project they get marked as Resources, but I want to set their Build Action to None. If I select them all and go to the Properties tab and set None, VS starts working and engulfes itself.
Is there another way to do that? Or a way to set the default Build Action for newly added files to None?
Thank you!
Make a backup of your project file (e.g. by committing it to a branch in source control locally) before making manual changes to the file.
Right click the project node in Solution Explorer and click Unload Project.
Right click the project node in Solution Explorer and click Edit yourproject.csproj.
Replace all instances of
<Resource Include="Resources\
with
<None Include="Resources\
Save and close the project file.
Right click the project node in Solution Explorer and click Reload Project.
Optionally you could also remove all instances of these lines and use the following single line instead. You'll definitely want to mark your place in source control so you could undo the change if it doesn't work out like you expect.
<None Include="Resources\**\*.jpg"/>
12,000 files is a good two orders of magnitude beyond what you can reasonably expect to be performant during a build. Just checking if files need to copied can easily take 5 minutes on a spindle drive. Still uncomfortable on a solid-state drive.
You'll need a drastically different approach to solve this. Key approach is that you don't wait for it so cannot get annoyed at the delay. Like spinning this off into a separate project that builds a resource DLL, not included in the solution. Preferably done on another machine, build servers are good for that. Or a completely different approach to packing the files, like sticking them in a ZIP archive. A "wad" in gaming speak of old. Or taking your program to the files instead of the other way around, keeping them stored on disk and telling your code where to find them with a configuration setting.

Interwoven TeamSite 6.7.2: How to regenerate all pages?

Is it possible to regenerate all pages within Interwoven TeamSite 6.7.2?
Simply selecting a folder and click on Actions -> regenerate page doesn't work. It gets the error message: "Not a generated file".
So is there a trick to regenerate through the folder hierarchy?
TeamSite will process whatever you passed as a parameter, be it file or folder. If it is not template-based, you will see that error. There is no way to recursively regenerate pages throughout a workarea natively.
I have written Perl scripts to traverse the filesystem, test each files extended attributes to see if it was template-based and regenerate the page if so. This is probably the easiest way to achieve mass regeneration.
If you must have this through the GUI, you can create a custom menu item that calls the above script.
Not sure when this question was posted - it says Jan 25 but does not reveal the year, but TeamSite 6.7 has been EOL (end of life) for a few years by the vendor HP Autonomy.
As of this writing the latest version of the software is TeamSite 7.3.2, with version 7.4 right around the corner. The reason I mention about versions is because, the paradigm to create and render pages has undergone a complete change.
Pages are no longer "generated" and deployed. SitePublisher - now part of TeamSite allows pages to be authored using WYSIWYG tools.
That said, the old paradigm of "generating" pages is still backward compatible, but if you are planning to upgrade you may get more value from the system by using SitePublisher and LiveSite.
run this command from the unix command line:
find /your/folder/startpoint -exec /path/to/iwregen {} \;
The error message: "Not a generated file" that you are getting is because you are trying to select a folder since the contents of folders can be different some can be your actual pages while some can be a .pdf file, .txt file or any other extension files.
Please try to regenerate pages using these steps:
Double click on the folder to open in which your actual pages resides
After this try to select all the pages (not manually but there is option/checkbox on the UI as "select all" or "select").
Now, after selecting all just scroll down and see all the selected things whether they are actual pages and not something else. If they are not the pages then deselect only that particular file.
Now, click on "Actions" and regenerate the pages all at once. This will definitely work.
Please vote this solution if it is useful else please add your further issues/questions will try to help you with the best of my knowledge.
Thanks!

Xcode: Tabbed workflow

In Xcode I use a task-based tabbed workflow (a separate tab for editing, UI/Modeling, building, debugging, etc.). I accomplish this using Behaviors (see the Custom section in the attached screen shot). When I create a new Project I use press ⌘+1, ⌘+2, etc. to quickly setup all of my task tabs.
My issue is that when I do this for a newly created Project all of the tabs display the source, storyboards, etc. from my most recently open Project. How often do you think this is useful or the desired behavior? I realize that one of the great things about tabs is that they remember their state and this is helpful. But as far as the source files that are initially displayed, this is a real pain. I do not want to see files from other (generally unrelated) projects.
Now what I just did as an experiment was open Project A and setup all of my tabs and ensured that each tab contained a source file from Project A. Then I quit Xcode and moved Project A a new location on the file system. When I opened Project B and created all of my tabs they were, as desired, empty.
I realize that I'm just going to receive the canonical "File a Radar" here but in the off chance that there is a workaround (NOT moving files) or a preference I could set, I figured I'd at least ask.
Thanks in advance,
CS

When you make edits to a file within a project using AnkhSVN, can this be reflected at the project level?

When I make edits to file, TortoiseSVN will show an indication on the folder that file belongs to that there are changes pending to child items. AnkhSVN only shows (red tick) changes to a project when files are added/removed (because the actual content of the project file in this case has changed)
Can you make ankh give any indication at the project level that child items have been edited?
Unfortunately, no. Ankh only shows an indication on modified files, whereas TortoiseSVN can traverse folders recursively and mark those with changed files within them.
If you desperately need this feature, you can try out VisualSVN plugin. It tries to mimic TortoiseSVN behaviour as close as possible. In fact, it uses TSVN dialogs for operations such as Commit or Update, for instance. When you modify a file within a project, it highlights the file, the project this file belongs to, as well as the solution node in the Solution Explorer.
Unfortunately, it's not free (US $49 per seat), but IMO it is worth its price.
The recommended way to see what changed globally in AnkhSVN is the 'Pending Changes' toolwindow. This shows you all interesting files in a single view and allows you to operate on them easily.
You can open the toolwindow via View->Pending Changes.
Try this:
Right Click the File -> Subversion -> Lock
This places a lock on the file so that others cannot edit it.
When you commit, it should unlock the file.
If it does not, Follow the same steps and select Unlock.
Edit: I use AnkhSVN for my svn but it's just me that uses it. If a corporate environment I mainly use TFS which does the same thing (lock/unlock) but it does not allow others to check out.

Resources