Posts

cmd - Direct the command to a newly opened separate command prompt using bat file -

I have a command prompt shortcut that runs a bit file, when it launches. Once I started it, I will issue another order, my_command, which is added as the doskey macro in login.bat To the extent that this is so. I have a CMD shortcut with the target set: C: \ Windows \ System32 \ cmd.exe / k "D: \\ login.bat" / Code> where login.bat sets the environment. Once the cmd prompt is active, I should issue another command, say my_command (which should be run in the currently open CMD prompt) Inside login.bat I have the following lines ... doskey my_command = another_login.bat I was trying to write a bat file to do the whole thing. I have tried that which is: Start C: \ Windows \ System32 \ Cmd.exe / k "D: \\ login.bat" my_command command my_command goes to the command prompt of the bat file. How do I my_commnad move to the new open command prompt and not in the CMD prompt of the bat file? Try it: Start C: \ Window...

Mongodb monitoring using mikoomi plugin of zabbix is not rendering any data -

I am using to monitor mongodb , there is a shell script which is Php script and 0 to zabbix and parallel write a data file and send the log file to the / tmp / directory. Now my question: how zabbix is reading that data / log file and how can I get information from that file? I need to debug this because zabbix is not providing any data how can I set it correctly? The format of the data file is as follows: & lt; Mongo Hostname & gt; Mem_virtual 39484 & lt; Mongo Hostname & gt; Connections 34 and Mongo Hostnames & gt; Using the utility to inform zabbix server about the collected data. / P> exec ("zabbix_sender -vv -z 127.0.0.1 -i $ data_file_name 2 & gt; and 1 ", $ log_file_data); The Zabbix server will read the key values ​​from the data file and will update the DB. Which OS are you using? Check for errors related to the selinux policy If the selinux policies are enabled on your server, disable and check whet...

ruby - Define class with class method which calls new within then calls class instance method with the same name, what pattern is this? -

I am working on a project and look at such patterns, see the snippet below. Which one is commonly used? What is the benefit coding like this? Thanks! Note: The argument here can be examples of other classes here, not just general values. square foo def self.do_something arg1, arg2 new (arg1, arg2) .do_something end dff rg start, rg 2 # set instance variable @ var1 = arg1 @ var2 = arg2 end df do_something # Let us do something ... Return Self and End Two examples from my project: Worker class for resque class MyWorkers @q = 'my_queue' def self.enqueue (arg1, arg2) new (arg1, arg2). Perform the arguments and def (arg1, arg2) new (arg1, arg2). Perform and def initialize (arg1, arg2) @ var1 = arg1 @ var2 = arg2 end DEP ANQU Rescue.Anquieu (self class, @ var1, @ Var2) Do something with End DRF # var # var1, @ var2 end end Return a class and result to run the query class MyFinder attr_reader: result def self.execute (params, options = {} new (parameter, opt...

c# - Reference Main Window's Dictionary from Resource Dictionary -

मेरे पास एक WPF विंडो है: & lt; विंडो x: class = "MyUI मुख्य विन्डो "और इतने पर & gt; & LT; Window.Resources & gt; & LT; ResourceDictionary & gt; & Lt; शैली TargetType = "{x: प्रकार s: SurfaceListBox}" x: Key = "FatherStyle" & gt; & Lt; / ResourceDictionary & gt; & LT; /Window.Resources> & Lt; / विंडो & gt; मेरे पास MyResourceDictionary.xaml में एक संसाधन शब्दकोश है: & lt; संसाधनक्षेत्र xmlns = "...... ... "और इतने पर & gt; & Lt; शैली TargetType = "{x: प्रकार s: SurfaceListBox}" x: Key = "ChildStyle" BasedOn = "{StaticResource FatherStyle}" / & gt; & Lt; / ResourceDictionary & gt; लेकिन जब मैं ChildStyle से MyUI.Window संदर्भित करने का प्रयास करता हूं: & lt; विंडो जैसा कि ऊपर कोड के 1 ब्लॉक में दिखाया गया है & gt; & Lt; s: SurfaceListBox Style = "{StaticResource ResourceKey = ChildStyle}" / ...

java - j8583 library - how to convert value into hex -

I am using to create the iso8583 message. I want to set DE96 element value as hexadecimals of binary data. According to my understanding, the value should be converted into binary and after that hexadecimal is not getting any way to use this bit like bitmap value j8583 API i have tried ISOType. The original type but does not give it the required value. Please see the following code package j8583.example; Import java.io.IOException; Import java.util.Date; Import com.solab.iso8583.IsoMessage; Import com.solab.iso8583.IsoType; Import com.solab.iso8583.MessageFactory; Import com.solab.iso8583.parse.ConfigParser; Import com.solab.iso8583.util.HexCodec; Public square messenger 0800 {public static zero main (string [] args) {try {MessageFactory mfact = ConfigParser.createFromClasspathConfig ("j8583 / example / config.xml"); IsoMessage msg = mfact.newMessage (0x800); Msg.setValue (7, New Date), ISO Type. Dated 10, 10); Msg.setValue (96, "123456", IsoType.BINARY, 6)...

redirect - HHVM - Rewrite rules for clean URLS -

I have such a link - http://example.com/index.php?q=about and I want to look them like this - http://example.com/about Currently I'm using rewrite rules virtualhost {* {pattern =. * Rewrite rule {diindex {pattern = (. *) / $ To = index.php / $ 1 qsa = true}}}} If I visit I would like to have a 404 file not found I am doing this for Drupal Guidelines for Clean URL: This problem can be resolved by using VirtualHost, but HHVM's server module is now degraded, and you are encouraged to use Fastcase on Apache / NGNA. First of all, make sure your source root is correct: server {port ================== ================================================== ============ Now, for the rule, it probably works Should: VirtualHost {* {Pattern =. * RewriteRules {* {pattern = (. *) $ To = index.php / $ 1 qsa = true}}}} If you want the query to work properly For this you are intending to replace the internal pattern with it: * from {pattern = /(.*} = index....

ajax - How to pass parameters without using url -

मेरे पास मूल्यों की संख्या है मुझे window.location फ़ंक्शन नमूना (सीआईडी) {var clg = $ {param.clg} का उपयोग किए बिना इन मानों को दूसरे पृष्ठ पर पास करना होगा; $। एजेक्स ({प्रकार: "पोस्ट", url: "sampleShow? Clg =" + clg + "& amp; cID =" + cID + "& level =" + स्तर, डेटा प्रकार: "जेसन", कैश: गलत, पहलेसेन्ड करें: कार्य (एक्सर) {xhr.setRequestHeader ("स्वीकार", "एप्लिकेशन / जेसन"); xhr.setRequestHeader ("सामग्री प्रकार", "एप्लिकेशन / जेसन");}, सफलता: फ़ंक्शन (प्रतिक्रिया) {window.location = "Cc"}, त्रुटि: फ़ंक्शन (xhr) {console.log ("त्रुटि" + xhr.status);}, पूर्ण: फ़ंक्शन () {}}); } यह मेरा नियंत्रक AJAX फ़ंक्शन है: @RequestMapping (value = "sampleShow", method = RequestMethod.POST) सार्वजनिक @ResponseBody स्ट्रिंग showc ( HttpServletRequest अनुरोध, मॉडल मॉडल) {model.addAttribute ("सीसीआईडी", request.getParameter ("सीआईडी")); Mod...