Disable prealloc in ext4 - filesystems

I need to disable prealloc feature in ext4. But there is not a mount feature called disprealloc. I would like to know if there are any methods to disable prealloc feature.
Any suggestions in this regard will be appreciated

Related

Does testcafe support: 1. Window based pop up handler ? 2. How can we migrate our Selenium(Java) code to TestCafe?

I am looking for TesCafe support for below 2 scenario:
How we can handle window based pup-up?
Is there any way to migrate Selenium(Java) scripts/code to TestCafe?
Thanks for your response in advance.
Warm Regards,
Abhinav
If your popup is based on javascript windows, you can use the following methods to handle these windows:
https://testcafe.io/documentation/402677/reference/test-api/testcontroller/switchtowindow
https://testcafe.io/documentation/402694/reference/test-api/testcontroller/openwindow#header
https://testcafe.io/documentation/402709/reference/test-api/testcontroller/closewindow
Please refer to the following help topic for more details: https://testcafe.io/402900/resources/blog/2020-8-26-introducing-multi-window-tests-beta#header.
As for migration from Selenium, it's not possible in automatic mode. You need to rewrite your tests yourself.

Turning the logging off in Mulesoft

I have a requirement as I need to turn the logging off in the Mulesoft Flow. I need to to this at logger level and if possible at Http connector level as well. Tried changing the INFO as OFF in log4j2.xml file but no luck. What parameters in log4j2.xml file I need to update to make it work.Right now I have done it for asynchronous logger.
Thanks in advance
Please don't do that. I strongly advise against disabling logging. Logging is the number one tool to troubleshoot issues you have. To reduce logging it is preferable to set it to a higher level, like WARN or ERROR. I can't think an scenario that requires it. If you absolutely need to turn it off, and understand clearly the tradeoffs, you need to set each package (or category) to a higher level, like WARN, ERROR or OFF. The top level packages for Mule and MuleSoft are a good start.
Example:
<!-- DON'T DO THIS! -->
<AsyncLogger name="org.mule" level="ERROR"/>
<AsyncLogger name="com.mulesoft" level="ERROR"/>
You might still find log entries from some packages from third party libraries. You can iteratively add the levels for those too until nothing else is logged.
Note that if you have any issues you will be on your own with no clues as what happened.

Disable cache for Cake 2.0 plugin?

I would like to disable the cache for a self-developed Cake plugin. Is this possible and if so, how would I do this? The reason why is related to an earlier question of mine, where duplicate controller names break parts of my application which were working fine in 1.3.
I know one can disable the Cache by setting the following option in Core.php:
Configure::write('Cache.disable', true);
I thought it would be possible to do the same in PluginAppController.php in the beforeFilter or beforeRender method, but that doesn't seem to be working.
Does anybody know if it's possible to do from the PluginAppController or if there are any other options? Disabling the entire cache is very undesirable as it slows down the rest of the application considerably.
This sounds like poor application architecture. You shouldn't have to disable the cache -- which sounds like it is a bandaid for a larger problem. Why don't you simply rename one of the controllers or add some sort of pseudo namespace naming convention in your app to prevent the issue?

What is equivalent usage of sendmessage()[WINDOWS] in MAC OS X?

I have a ContextualMenuPlugin and an application. When user clicks the option from context menu i need to send a message to my app. In windows i achieved this using sendmessage() function. But i'm new to MAC OS X. Can any one please help me, by giving some api's or functions which will enlighten this situation?
You have plenty of choices on how to get messages into an application on your Macintosh.
The ways I'm thinking of include Apple Events or sockets or kqueues, but there's other stuff I've never even worked with that might even be more useful & appropriate (such as Distributed Objects). Check out this duplicate and/or related question and maybe you'll see a useful answer in there for you that you can build upon.
B.T.W.: how did you construct your Contextual Menu Plugin? Is it in Carbon or Objective C or is it some codeless plugin or plist or? The answer to that question probably will dictate a lot towards how you will be able to talk from your plugin to your app.
If you want to control just your application you might want to look into AppleScript. Using that solution has the added benefit that your users could also use it to automate things via scripting.

Eclipse Ganymede hacks, hints, tips, tricks, and best practices

I've recently started using Eclipse Ganymede CDT for C development and I couldn't like it more. I'm aware the learning curve could be sort of pronounced, therefore and with your help, my goal is to flatten it as much as possible. I'm looking for the best hacks, hints, tips, tricks, and best practices to really unleash the full power of the IDE.
Accurate Indexing
With CDT you should be sure to enable the "Full Indexing" option rather than the "Fast Indexing" default. It's not perceptibly slower on modern hardware and it does a much better job. In that vein, you should be sure to enable semantic highlighting. This isn't as important in C/C++ as it is in a language like Scala, but it's still extremely useful.
Streamlined Editing
Get used to using Ctrl+O and Ctrl+Alt+H. The former pops up an incrementally searchable outline view, while the latter opens the "Call Hierarchy" view and searches on the currently selected function. This is incredibly useful for tracing execution.
Ctrl+Shift+T (Open Type) isn't exactly an "editing" combo per se, but it is equally important in my workflow. The C++ Open Type dialog not only allows incremental filtering by type, but also selecting of definition (.h) or declaration (.cpp) and even filtering by element type (typedef, struct, class, etc).
Task Oriented Programming
Mylyn: never leave home without it. I just can't say enough about this tool. Every time I'm forced to do without it I find myself having to re-learn how to deal with all of the code noise. Very, very handy to have.
Stripped Down Views
The default Eclipse workspace layout is extremely inefficient both in space and in usability. Everyone has their favorite layout, take some time and find yours. I like to minimize (not necessarily close) everything except for Outline and keep the C/C++ Project Explorer docked in the sidebar configured to precisely hide the Outline when expanded. In this way I can always keep the editor visible while simultaneously reducing the space used by views irrelevant to the current task.
CTRL+TAB let you navigate quickly between a source file and it's header file (foo.cpp <--> foo.h).
I like also the local history feature because you can go back and revert your changes in a convenient way.
ctrl + space is the best tool ever in Eclipse. It is the auto-complete feature. It can complete variable names, method declarations, user defined templates, and a ton more.
Go Eclipse. Tons of my code is generated by ctrl + space.
If the Java Developer Tools aren't installed the Spellcheck won't work.
The Spellcheck functionality is dependent upon the Java Development Tools being installed. This can be a perplexing issue if you just install the C Development Tools exclusively, because it gives no reason for the Spell Checker not working.

Resources