increasing the file limit of montage - imagemagick-montage

montage -list resource says that the file limit is 768. I'd like to change that to, say, 10001. To facilitate this I edited vim /etc/ImageMagick-6/policy.xml, changing this line:
<!-- <policy domain="resource" name="file" value="10001"/> -->
To this:
<policy domain="resource" name="file" value="10001"/>
But when I rerun montage -list resource it still says that the file limit is 768.
Any ideas?

Related

How to find GP Name from GP English Name in ADMX file

hi i am currently moving gpo's to intune. i have read all of microsoft's documentation but one thing they do not cover is how to derive the gp name (in admx file) from the gp english name (what you would see in gp edit console). For non custom ADMX they say you can use the csp console like the image below:
but i am wanting to move over gpos that use custom admx, such as google chrome. I can go into the gp edit console and see the "Action on startup" gpo for example in the following location: Google/Google Chrome - Default Settings (users can override)/Startup, Home page and New Tab page
but how do i associate that with a policy entry in the chrome.admx file? just by going through the file i see this entry that most closely resembles what I want to do but how can i be sure it is the right one?
<policy class="Both" displayName="$(string.RestoreOnStartup)" explainText="$(string.RestoreOnStartup_Explain)" key="Software\Policies\Google\Chrome" name="RestoreOnStartup" presentation="$(presentation.RestoreOnStartup)">
<parentCategory ref="Startup"/>
<supportedOn ref="SUPPORTED_WIN7"/>
<elements>
<enum id="RestoreOnStartup" valueName="RestoreOnStartup">
<item displayName="$(string.RestoreOnStartup_RestoreOnStartupIsNewTabPage)">
<value>
<decimal value="5"/>
</value>
</item>
<item displayName="$(string.RestoreOnStartup_RestoreOnStartupIsLastSession)">
<value>
<decimal value="1"/>
</value>
</item>
<item displayName="$(string.RestoreOnStartup_RestoreOnStartupIsURLs)">
<value>
<decimal value="4"/>
</value>
</item>
</enum>
</elements>
</policy>
If you download the chrome policy templates zip, go to windows\admx\en-us folder. There’s a chrome.adml that will contain all the string substitutions for the admx. Admx + locale adml = what you see in the Gp editor window.

rosbridge unable to load the manifest for the package

I am using rosbridge. My current ros_distro is melodic. I cannot subscribe to custom messages with an error : Unable to load the manifest for package <pkg_name>. I sourced the bash file in another terminal : . ./devel/setup.bash and used rospack find <pkg_name> but this also gives an error : package not found.
This is strange as I can publish and subscribe to the same topic in ROS.
My directory structure looks like following :
overlay_ws
build
devel
src
CMakeLists.txt
ros_tutorials
CMakeLists.txt
package.xml
msg
msg1
msg2
msg3
scripts
talker.py
Here is the package.xml:
<?xml version="1.0"?>
<package format="2">
<name>ros_tutorials</name>
<version>0.0.0</version>
<description>The demo package</description>
<!-- One maintainer tag required, multiple allowed, one person per tag -->
<!-- Example: -->
<!-- <maintainer email="jane.doe#example.com">Jane Doe</maintainer> -->
<maintainer email="vishal#todo.todo">vishal</maintainer>
<!-- One license tag required, multiple allowed, one license per tag -->
<!-- Commonly used license strings: -->
<!-- BSD, MIT, Boost Software License, GPLv2, GPLv3, LGPLv2.1, LGPLv3 -->
<license>TODO</license>
<buildtool_depend>catkin</buildtool_depend>
<build_depend>roscpp</build_depend>
<build_depend>rospy</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>message_generation</build_depend>
<build_export_depend>roscpp</build_export_depend>
<build_export_depend>rospy</build_export_depend>
<build_export_depend>std_msgs</build_export_depend>
<exec_depend>roscpp</exec_depend>
<exec_depend>rospy</exec_depend>
<exec_depend>std_msgs</exec_depend>
<exec_depend>message_runtime</exec_depend>
<!-- The export tag contains other, unspecified, tags -->
<export>
<!-- Other tools can request additional information be placed here -->
</export>
</package>

How to change color of TimePickerAndroid in React Native?

Is it possible to change default color of the TimePickerAndroid component ?
You would have to change it from the styles.xml file of android. Here's what you do:
1) Open up styles.xml: "android/app/src/main/res/values/styles.xml"
2) you'll need to add a few lines:
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:timePickerDialogTheme">#style/Dialog.Theme</item>
</style>
<style name="Dialog.Theme" parent="Theme.AppCompat.Light.Dialog">
<item name="colorAccent">#FF0000</item>
<item name="android:textColorPrimary">#0000FF</item>
</style>
In styles.xml you should already have:
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
If you do just add the remaining lines. If not go ahead and add them.
4) Lastly, just recompile the app. "react-native run-android". You should see the color change right away.
Using React-native, unfortunately no.
However, by changing some java files in RN and using this solution from SO you might be able to do it.
If you succeed doing this, I suggest you create a Pull Request on RN's repository as it might be very useful for other users.
You could also develop it as a module and open source via NPM.

How do I click an image without an ID, running a dynamic numeric process?

I need to automate the deleting of a file for clean up purposes
<img src="/images/delete.jpg" class="pointer" alt="delete" title="delete" onclick="DeleteThis('[stable number]', '[dynamic file number]')">
The dynamic file number increases per file and should be wildcarded.
I tried...
page.find('a[href*="javascript:DeleteThis"]').click #1
first(page.find(:css, "img.pointer", "[alt='delete']")).click #2
both are not found.
Any ideas?
Your selectors are incorrect. first doesn't accept Capybara::Element as a parameter. It should be just:
page.find(:css, "img.pointer[alt='delete']")
or even (if Capybara.default_selector = :css):
page.find("img.pointer[alt='delete']")
It's :css by default.

#{#if DEBUG} not working

My web.config file contains this
<compilation debug="false" targetFramework="4.0">
<assemblies>
// some assemblies
</assemblies>
</compilation>
And in my _Layout.cshtml file I have
#{#if DEBUG}
// include all css and js files
#{#else}
// include the minified and combined versions of the css and js files
#{#endif}
Problem is that the #{#if DEBUG} branch gets executed. If I change that branch to #{#if !DEBUG} then the else branch gets executed. Why is this?
Thanks.
Sachin
The Web.config debug="" attribute does not affect preprocessor symbols.
You can check for that attribute directly like this:
var compilation = WebConfigurationManager.GetSection("system.web/compilation") as CompilationSection;
return compilation != null && compilation.Debug;
(You should put this in a static property in any class, then check that property in a normal if statement)