Posts

Showing posts from August, 2014

java - How can I use a different version of a package from the one required by a dependency? -

I am trying to create an OSGI bundle, and IAM is running in the following problem: Let's call my plugin "PA" ??? Now, P has dependency on another plug-in; Line ??? It needs to use some of the interfaces it has exported. At the same time, I want to use version 2 of the library. Plugin in P. However, it uses DL, apart from it depends on version 1 of the library. Version 1 is provided by the container. The point is that none of the classes and interfaces of LC are visible anywhere in the DPI (at least none using the IA). That is, P and D use sections from each internal class, but they never exchange. Therefore, as far as I can tell, for each of them to be completely safe to use different versions of L, unless I provide my copy of Lv2, I It can not understand how it is working for its life. Here I have what: PAC's PM.XML is a ??? ? Providedâ ???? D dependence, and a compilation Dependence L I am not the source of D, but the OSGI tells me that there is an impor

php - Large file upload through Browser (100 GB) -

Is there a way to upload large files (over 80 GB ) through a web browser? First, I was uploading files using plupload (IMG, PNG, JPG) but it seems that the big files are not working. I would also like to know how to implement a web page, where users can upload as mega.cn or drive. If it is impossible to do this using web development tools, can someone guide me in how I can share & amp; Upload a file to a segment? Thank you. You can use javascript objects to slice large files into small files and to them To merge together to move on the server. It has the added benefit of stopping download / resuming and pointing to progress If you are doing it yourself, then existing solution that uses this solution exists. There is an example.

c++ - CopyFile doesn't work with environmental strings but works only with standard directories where files are placed. Anyway to get past this? -

I want to copy a file directly from WinAPI using the CopyFile () function. The code works, but the file is not copied. Here is the code - copyfile ("%% temp %% \\ test.txt" "," D: \\ Tutorial \\ test.txt ", Incorrect); If I type something like %% temp %% \\ test.txt to D: \ test \ test.txt How do any ideas get past this? The path to the Win32 file API requires the actual path, not the string expression that evaluates the paths They do not extend the variable. If you want to expand the variable on a path, then pass it through ExpandEnvironmentStrings (and one % before and CopyFile . Of course, if you are trying hard disk access to a temporary directory ,>% TEMP% \ test.txt in a configuration file, then you should instead call GetTempPath for a temporary directory OS Policy should be used. (Later, use PathCchCombine to merge the directory name and file name)

javascript - Is there any pattern to orchestrate function calls besides Promises? -

I am trying to escape from the pyramid of doom. Imagine the following function call series: $ Wait (1000) .done (function () {// do something. $ (.5000) .watt (function () {// Do some more. $ 22. (don't) function () {// something More}}};});}); Where the $ .wait function is defined: $. Wait = ceremony (period) {return $. Idle (function (dfd) {setTimeout (dfd.resolve, duration);}); }; The question is how can I refract the above code so that it can be readable? OK, you already have in the promise in your code (or At least, suspended), so there is no good reason to see different coding patterns. Although you can callback the promise with Chening all along with nesting (instead of done ): $ Wait (1000) .then (function () {// ^^^^ // some refund $. Wait (5000); // ^^^^^}}. Then (function () {// ^^^ ^ // Do something else. Return to Weight (2000); // ^^^^^^} then (function () {// ^^^^ // do something else}); < / pre> which is equivalent to your code.

git - Best way to start GitFlow for a current project -

I am very new to Git and I think Gifflow workflow I want to follow. I have a project which is in its second edition now I want to store the first version (which I still have to copy) as V1 and then store my second version which is completed as V2 Going to do. How do I know about it? Is there any video tutorial for Gitflow? To keep a history between the earlier CM software, I will do the following. Copy the V1 software (assuming you have all the sources) in a directory and do the following. git init git add git commit -m "saving v1" git tag v1 git checkout -b dev Then I get files from V2 in the same directory I'll copy and do the following. Add git commit -m "current work towards v2" Here, to follow [git-flow], you must < Code> dev to facilitator branches for each feature / bug, then merge them into god when finished, then when v2 is ready, then merge it into master . Typically I add a tag to indicate a named version of the software.

asp.net mvc - MVC 5 Confirm Secondary Email -

I've improved detection unit class and registered a secondary phone numbers a Fonfon number and secondary email and secondary email Mail is confirmed. This is how Ugrmanejr VerifyChangePhoneNumberTokenAynync and works fine with the phone number of GenerateChangePhoneNumberTokenAynync parameter as it may take a phone number However, this email is not the case for ConfirmEmailAsync and GenerateEmailConfirmationTokenAynync takes only a user ID and token as a parameter: / so how can I verify Am I Any help is greatly appreciated. then change it back: p

extjs4 - Extjs: Dynamically add item to cycle button -

Using exts I am creating a circle button generation time I was adding three menu items to this circle button I'm following this, Ext.create ('Ext.button.Cycle', {a code for id: 'trneMapCycleBtn', showText: true, flex: 2, Tooltip: "Click here to change range", prependText: ', menu: {id:' scene type-menu ', item: [{text:' districts', checked: true, tootip: "Delhi districts border ", Type:" getDistricts "}, {text: 'status', to otip: "Delhi State border", type: "getStates"}, {text: 'circles', tootip: "Delhi circles after its creation, I'm reaching this cycle button using my ID later Trying to add a menu item, createItemForGeoJason () {} on MENUITEM = New Ext.menu. CheckItem ({text: geoJsonLayerName, id: 'geoJsonItem', handler: function (MENUITEM) {var layer = map.getLayersByName (myTrendMapSelectedLayer); layer [0] .setVisibility (wrong); On Layer1

java - Parsing a String - Http string -

I want to do something like that! So I have been left with the website portion of the string. I was having problems with the quotation in the string. ///////////////////// This is what I read in a string. /// & lt; Td width = "118" & gt; & Lt; A href = "research.html" category = "navitist style 10 style 12" & gt; /////// I want to be able to parse it, so I'm left with research.html / I / I sometimes get a string in which: // & lt ; A href = "http: //www.ucalgary ca" class = "style18" & gt; & Lt; Font size = "3" & gt; University of Calgary & lt; / Font & gt; & Lt; / A & gt; & Lt; / Div & gt; // I want to keep http://www.ucalgary.ca with this string Whatever I do not always work for every case, I would be thankful to help you !! My code is public square parse {public static zero main (string [] args) {string h = "& lt; a href = \" http://www.d

regex - redirect query string to another query string -

I'm trying to redirect a query string to 301 on another query string, but what I'm trying to do , He is failing I am trying to accomplish this: to redirect To do / P> and thousands of other pages, I need to keep the current URL / directory and so, but to use only a different query string, redirect it. They are all going for "? _cat" in "? _deg" Any help was greatly appreciated You can use this code in your DOCUMENT_ROOT / .htaccess file: Rewrite code at rewrite% { QUERY_STRING} ^ _dog $ [nc] rewrite ^% {REQUEST_URI}? _Cat [L, R = 302]

mysql - SQL get friends from friends table by username -

Okay, I'm stuck with the table design which I can not change now and I'm going to get the username Based on the relationship table between all your friends in relation to friends What I have now: select different (user name) from members. Join the internal member at f.id_memb_friend1 = m.id. I F.id_memb_friend1 = 173 or f.id_memb_friend2 = 173) The members table has columns: id, use In the name of the member name mailer, the column ID, id, id_memb_friend1, id_memb_friend2 query has returned the user's name to the user name ID 173 which is the owner and for example, his nickname is magnificent. Based on the username that I provide (Great = ID 173), all the friends have to meet together with the user name. Update: I want to receive it: Input: Username = Great actions: Get names of great friends (with their ID) Output: members.id = 5 user name = John subscribers .id = 15 user name = Lara members.id = 66 username = Alex and so on ... (new requir

database - What are some of the ways to store data using Cordova/PhoneGap/Ionic? -

So as the title suggests, Cordova wanted to know some ways to store various data on apps, How works because local storage is a browser thing, but does this work when applicable to the original app on the phone? Can you use something like SQLite for large amounts of information and models? Edit: After some more research, the phonegap will be the best solution to use in the environment It takes advantage of the angular service, which will try to use the strongest solution to save your data, but then on simple, more relevant options.

python - How to alter table add column if column not exists in cassadra? -

I have some predefined columns in the Cassandra table / column family. I also get another JSON / Is: The value pair which is not predefined and therefore was not included in the table description (I'm using cql3 library on python) I want to add this data to my own calendars table, I need a unique key in the Jason object to become a new column. If a key that has already been created in a column, then exists in JSN, Cassandra should reject that query without throwing an exception. It throws an exception if I try to change the table to add the already existing column. Does the column add a column if the type query does not exist in the column or should I handle it with exception handling? There is currently no mechanism to do this if currently functionality If not (take a look at conditional schema modifications). I want to redesign the table so that you can call key to call in the column (in the form of columns) and ending its various values Use something like with col

java - JOptionPane Cannot Find Symbol -

कृपया, कृपया मेरी मदद करो! मैं बेताब हूँ। आयात करें javax.swing.JOptionPane; सार्वजनिक वर्ग कैलक्यूलेटर {सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग एल्ग्स []) {डबल एन 1 = डबल। पीआरएसडी डबल (जॉप्शनपेन.शोइनपुट डायलॉग ("प्रथम नंबर डालें:")); डबल एन 2 = डबल। पीआरएसडी डबल (जॉप्शनपैन.शोइनपुटडियलोग ("दूसरा नंबर दर्ज करें:")); स्ट्रिंग x = जॉप्शनपेन.शोइनपुटडियलोग ("ऑपरेटर प्रविष्ट करें:"); दोहरा परिणाम; यदि (एक्स == "+") {परिणाम = (एन 1 + एन 2); जॉप्शनपैन। शोमोसेज डायलॉग (एन 1, "+", एन 2, "=", परिणाम); } और अगर (x == "-") {परिणाम = (n1 - n2); जॉप्शनपैन। शो मेसेजडिलाओग (एन 1, "-", एन 2, "=", परिणाम); } और अगर (x == "/") {परिणाम = (एन 1 / एन 2); जॉप्शनपैन। शोमोसेज डिआलोग (एन 1, "/", एन 2, "=", परिणाम); } और अगर (n2 == 0) {JOptionPane.showMessageDialog (शून्य, "0 द्वारा विभाजित नहीं किया जा सकता"); } और अगर (x == "*") {परिणाम = (n1 * n2); जॉप्शनपैन। शो मेसे

Python - print out a visual recursion trace -

I have this code which is doing recursion, but I want to be able to see the recycling, but every revision Explains the depth whenever it comes back just as simple as shown below. Not to be sure that I need to place an empty space or tab to make this space and I'm using a string map_str and then printing it to the end. Please see the code and output example. def get_process_parents (Bacdet, late-process): Global Der_prenents Global map_str process_depends = [] # logging.info ( 'late_process:% s'% late_process) process_depends = Getprocess dependence (Bacdet late -process) late_parents [late_process.get ('name')] = process_depends map_str + = ('% s --- & gt;% s \ n ------ & gt; \ n'% (late process. ('Name', get process_depends) # logging.info ('late_process name:% s --- & gt; depends:% s'% (late_process.get ('name'), process_depends)) Otherwise process_depends: # Logging.info ( 'and does not depend:% s'% late_

pic - PIC30F Data EEPROM reads 0xFFFF first time around -

After bad read, I checked W1 and it is the correct address There is no word in data EEPROM with the value of 0xFFFF < < Li> I checked the supply: it is 5.13V If I break the table right before the instructions to read the table, and walk through it, then it is okay I know that NVMADRU and NVMADR are not included in reading, but I have checked them, and their value reads well and Bad reads do not change between This is a DSPICF 30F 05011 I checked the Errata and did not find any reference to such problem I am working through Peakkit II MPB 8 debug function, I am working with a PICkit II through the debugging function of MPLAB 8: I reset, then run , And it fails If I place the code in tight loop, as long as the value Is not correct and counts the number of iterations, I think that until the loop reads it correctly EEPROM read code: < / p> _ReadEEWORD:; -------------------------------------------------- ---------------

javascript - Search for string in multiple html files with jquery -

I will explain my problem with a few words. I have an HTML with various IORMs, a table of contents in an iframe (TOC) and the content of the related element emerged in the TOC in another subject. There are different TOCs, so that by clicking on a link, we will take on a topic that is related to another TOC, and so I want to reload the TOC frame with the proper TOC. To do this, because in each topic there is a specific ID within the TOC, I search the ID of the subject loaded in the main frame in all the TOCs and when I get the desired TOC, I load it in the TOC frame. I am The code I have written is so far: / * function that is called on the load of each subject - this topic is the unique ID as parameter The names of / html files with varied tox / var tocs = ["toc.htm", "toc_documentazione.htm", "toc_flussiesteri.htm", "toc_garante.htm", "toc_garante.htm", "toc_legittimita" Htm "," toc_normativa.htm ",&qu

node.js - Is it possible to return files for server methods in hapi -

I try to use server.method for reply.file () I'm doing (), but it says that there is no file in my next function: debug: happy , Internal, implementation, error type error: unwanted error: object function (mistake, result) {methodNext (fault, result, blank, {msec: timer.elapsed (), error: err}); } There is no method 'file on child process / user / user / work / dave / export.js 37:12. & Lt; Anonymous & gt; Child Process Amit (Events .JS: 98: 17) Process (/Users / User / Work / Dave / Node_Module / WebShot / Lib / Weizot.JSAJ 21: 9) Child Process._hand.onexit (child_process.js: 810: 12) I have the following: server.method ('getexport', function ( Reform, Query Paramá, Host URI, Next) (next.file (File Path, {// Download as Attachment Mode: 'Attachment'});}); Instance.server.route ({method: 'GET', path: '/ export', config: {handler: function (req, answer) {var uri = req.server.info.uri; server.methods.getExport (req ). P

sql server - RODBC ERROR: Could not SQLExecDirect 'CREATE TABLE ... when doing sqlSave -

Here's a short story, and it's important to talk about setup, IOA? Remember to connect to the M RODBC and Freedds SQL Ezur database, this is the SQL Ezur database (this can also happen on the premier SQL Server, so that I may be asked to ask for help or to understand the real problem). First, if it does not play well with the database without the cluster key, or a key, addPK = T or more version addPK = TRUE solution # 1 two-step approach This will help in creating a proper table structure, though it will still make you vulnerable. Do not worry now what we have to do is to add data sqlSave (ch, USArrests, addPK = T) This will tell you the error, then what you need to do next add data sqlSave (ch, usurrests, tablename = â ???? USArrestsâ ????, append = t) for now solution # 2. That is not me, I am lazy, it should be done in a command This solution is not understood, this is a better version sqlSave (ch, cust, tablename = â ??? dbo.customersâ ????, secur

php - Sending attachment(s) in email -

I have never touched PHP, but worked to fix an intern's code. I am trying to upload a file which I am sending. Sends email, but without the file I am using PHPMailerAutoUpload.php (found on GitHub). I am using this code. Saving this attachment to move_uploaded_file move_uploaded_file ($ resume ['tmp_name'], $ up_dir .basename ($ Random_var. '_wse_'. $ Resume ['name'])) Note: I have commented the move_uploaded_file function to make sure, I can not get rid of attachment. need_once ('phpmailer / PHPMailerAutoload.php'); $ Mail = new PHPMailer (true); $ Mail & gt; IsSMTP (); $ Mail- & gt; SMTPDebug = 2; $ Mail- & gt; SMTPAuth = false; $ Mail- & gt; Host = 'oursmtp'; $ Mail- & gt; Port = 25; $ Mail- & gt; Setfram ($ _POST ['e-mail'], $ _POST ['first_name']. "". $ _POST ['last_name']); $ Mail- & gt; AddAdd ('test@test.com'); $ Mail- & gt; Subject = &quo

c++ - How can you access private string variables using member functions? -

I want to output the prices of private class members bank code and AgentName . How can I do this from the main () function, or in general, outside the BOURNE class? My initial code endeavors are below: #include & lt; Iostream & gt; #include & lt; String & gt; using namespace std; Square Burn {String Bankcode = {"Secret Code is 00071712014"}; / * Private * / string agent name = {"Jason Bourne"} by default; / * Private * / Public by default: Zero tryToGetSecretCodeandName (string theName, string theCode); // Private Zero TrytoGetAgentName (name of the string) is trying to get; // try to get the name}; // * * *************************** :: tryToGetSecretCodeandName (string theName, string theCode) // member defined function {Bankcode = theCode; // For the code here, the equivalent name is AgentName = theName; // Here's the samething court & lt; & Lt; TheCode & lt; & Lt; "\ N" & lt; & Lt; TheName; //

javascript - keydown event not fired, why? -

In javascript, I place two keys below, and keydown is completely removed When I leave a key, funnel is removed. So far, so good. But I'm still putting a key down, so why not keydown has been removed? Do I need to be in my game? Is anything wrong with me? Is this the expected response? Is there any work or something else? window.addEventListener ("keydown", function (e) {console.log ('down');}, false); Window.addEventListener ('keyup', function (e) {console.log ('up');}, false); I think you are trying to do something like this: var below = false; Var up = false; Document.body.addEventListener ('keydown', function (e) {if (e.which === 40) {below = true;} if (e.j = === 38) {up = true;}}); Document.body.addEventListener ('keyup', function (e) {if (e.which === 40) {below = false;} if (e.j = === 38) {up = false;} // logic Here is one for the other, but not the other (below and above!) {Warning ('but not below!&

javascript - ng hide, how to conditionally show something in angular with url extension -

I'm testing and app and want to do something very simple. I would like to hide a device and show it in the browser only when an extension will be added to the URL. For example: & lt; Div ng-hide = "true" class = "cookie-banner" & gt; Warning you about cookies & lt; / Div & gt; Adding me to hidden division - & gt; Show = URL cookie-Banner, a local site like: ../webapp/#/subscribed not show Divijh hidden, but ../webapp/#/subscribed?show=cookie-banner it. I am not sure what I am making to work on this. help please! You can use it in your own controller or in a custom command you create, where you like $$ absUrl value to set your logic based on $$ // in your controller app.controller ( 'SomeController', [ '$ scope', '$ location', function ($ radius, $ location) {$ scope.hideBasedOnUrl = $ Area $$ absUrl.indexOf ('show = cookie-banner')! == -1;}]); // html & lt; Div ng-hide = "hideBasedOnU

Strange behaviour of date fields in django admin -

मेरे पास अंतर्राष्ट्रीयकरण है: LANGUAGE_CODE = 'de_AT' USE_I18N = True USE_L10N = सत्य जब व्यवस्थापक मॉडल के लिए प्रपत्र को देखता है: पहले अनुरोध पर एक डेटटाइम फ़ील्ड सही प्रारूप में दिखाया गया है। लेकिन बचत प्रारूप उल्लंघन देता है। एक पुनः लोड करने के बाद, डेटटाइम फ़ील्ड यूएस प्रारूप में दिखाया गया है। तब सहेजा जा रहा है। कोई भी संकेत, जहां आगे दिखना है? संस्करण इन्फोसः Django == 1.7 django-grappelli == 2.6.1 django-mptt == 0.6.1 psycopg2 == 2.5.4 pytz == 2014.7 wsgiref == 0.1.2 xlrd == 0.9.3 DATE_INPUT_FORMATS = ('% d।% M%% y', '% d।% M% y', '% d।% M% y', # '25 .10.2006 ', '25 .10.2006 ', '25 .10.06' '% d-% m-% Y', '% d /% m /% y', '% d /% m /% y', # '25 -10- 2006 ', '25 / 10/2006', '25 / 10/06 ''% d% b% Y ', # '25 अक्तूबर 2006', '% d% B% Y', # '25 अक्टूबर 2006 ', ) सेटिंग्स में समस्या हल करती है।

dart - Insert Input Tag into td tags via templates -

I have a table and each row has an edit button. If that button is pressed then all TD tags should have a text input tag, which includes the price. So for every TD two templates will be very much. & lt; tr template ... & gt; will not work because TD tags will be ignored by the browser, because see the table around the TDS template. Have done a lot with the template and it did not work. & lt; Table & gt; & Lt; TR & gt; & Lt; TD & gt; td11 & lt; / Td> & Lt; TD & gt; td12 & lt; / Td> & Lt; TD & gt; & Lt; Click on the button = "{{someFunc}}" /> & Lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; td21 & lt; / Td> & Lt; TD & gt; td22 & lt; / Td> & Lt; TD & gt; & Lt; Click on the button = "{{someFunc}}" /> & Lt; / TD & gt; & Lt ;! - This button will be pressed - & gt; & Lt; / TR & gt; & Lt;

netlogo - How to place turtles in a portion of a raster dataset? -

Image
to GIS extension , I imported a raster on NetlogO, which I have given the data given below I show in orange in My aim is to bring a turtle in each block of raster presented in randomly blue (i.e. 9 blocks). Blue raster is a part of orange raster. My code is to keep the shear randomly in blocks give the number 1 n-of number with patches [(max-pxcor - ((X-pay Increase + 1) * (max-pxcor / 3))) & lt; = pxcor and pxcor & lt; = (Max-pxcor - (x-pay increase * (max-pxcor / 3)) and (max-pikkor - (y-pay increment + 1) * (max-pikcor / 3))) & lt; = pycor and pycor & lt; = (Max-pycor - (y-increments * (max-pycor / 3) In my orange raster, how can I not apply code to blue raster from above only? My rope here: / P> Thank you very much for your help How about this? Which is because I do not understand your question. If you can tell me what the above code is not for you, then maybe I can improve it to make it more useful. Note that It does not r

javascript - Ajax CSS bugg. How do i prevent from double click in order for the css to apply? -

I have a div that says "on", and I have created an Ajax function Every time a user clicks on the div, it will convert "On" to "off" (User ID must be echoed out on a query if the Divi ID is turned on or off) and if the user clicks again It will be switched to "On" again. (Like ".2 button") (function () {var d = $ (this) .attr ("id"); if (d = "shutdown") {$ (". Button 2"). ("Id-level", "0 -30px"); $ ("button."). At ("id", "on");} and atr ("id", "off", "atr" "ATR", "ATR");}}); }); My problem is that, to work the function, I have to click the div2 twice what is the problem? But this is a switch button depending on the user present on that column. If the user has online = 1 for example, then he should start switching in the opposite direction. Off & G; On, on & gt; OF DIV is based on a query

javascript - What to do when a selector doesn't show the expected text? -

मेरे पास निम्न HTML फ़ाइल है & lt; tr & gt; & Lt; th वर्ग = 'वर्ग 1' & gt; & Lt; / वें & gt; & Lt; td वर्ग = 'मूल्य' आईडी = 'सेल -1234' & gt; $ 100 & lt; / td & gt; & Lt; / टीआर & gt; मैं कैस्पर जे एस का उपयोग करके क्लास की कीमत का टेक्स्ट प्राप्त करने की कोशिश कर रहा हूं। मैं आईडी का उपयोग नहीं कर सकता क्योंकि यह हर चलन के साथ बदलता रहता है। नीचे दिए गए कोड का उपयोग करके मुझे एक रिक्त पंक्ति मिलती है मुझे यकीन नहीं है कि कौन सा समारोह मुझे पाठ प्राप्त करेगा casper.then (फ़ंक्शन () {console.log (this.fetchText ('। मूल्य'));}); त्रुटि खोजने के लिए मैं क्या कर सकता हूं? HTML ठीक दिखता है और चयनकर्ता को मैच करना चाहिए। कई चीजें हैं जो आपको करना चाहिए: जांचें कि आप सही पृष्ठ पर हैं, उदाहरण के लिए मुद्रण casper.getTitle () । < Li> जांचें कि वह तत्व जो आप को चुनना चाहते हैं वास्तव में पृष्ठ में मौजूद है। यह विशेष रूप से एकल पृष्ठ एप्लिकेशन या सरल AJAX बढ़ाए गए वेब ऐप्स के लिए प्र

c++ - ROS hydro opencv2 linking error during 'catkin_make' -

I have a little problem with my ROS Hydro disto, I need to use it for a project, so that anyone in Indico Can not change The problem is that I have used the catkin_create_pkg packname opencv2 ... to create my project package. But when I try to call catkin_make , I get the following error: / opt / ros / hydro / share / catkin / cmake / catkinConfig Cmake: CMake error at 75 (find_package): A package configuration file provided by "opencv2" with no name was not found: opencv2Config.cmake opencv2-config.cmake Add the installation prefix of "opencv2" to CMAKE_PREFIX_PATH or set the "opencv2_DIR" directory in one of the files above. If "opencv2" provides a separate development package or SDK, make sure it is installed. I know that opencv2 is installed because i can find it rospack opencv2 and I can use it in other projects which are not related to ROS. I have CMakeLists.txt and package.xml CMakeLists.txt: target_link_lib

Sending commands through GPIB via Excel VBA -

I have this network analyzer and need to send commands through Excel VBA and GPIB I have GPIB and other hardware Set up is fine, but I do not know how to send commands to the bus analyzer via GPIB. I have a lot of programming experience but I am new to VBA through hardware documentation and VBA tutorials hours After searching my soul sustained I'm dying - I believe that I need to add the correct context in VBA (Tools -> context), but when I give the sample code given by the documentation ("call vi open default rm (defrume)" I try to run) I get an error that the sub or function is not defined. Any help is greatly appreciated. I am working as an engineer and thrown into any kind of work, which requires a lot of coding. It seems that you are using the Visa Library (when you open the GPIB resource, the GPIB Library ), Therefore, you must have VISA32.bas from your Visa Seller, which you can at least copy the portion in your VBA project. or use VISA-COM if you

html - Margins got bugged (elements are buggy) when image inside div is centered horizontally and vertically -

Image
I have 2 pictures below each other, I want them to be horizontally and vertically centered in parent div Go. The problem is that the second element will not fit in the parent div. This is what I need: And now I have it: Here is the code I am using: HTML: & lt; Div id = "slika" & gt; & Lt; Img src = "images / elementi / EXTRA_SNIZENO.png" width = "auto" height = "15" alt = "EXTRA" & gt; & Lt; Br> & Lt; Div class = "img-wrapper" & gt; & Lt; Img src = "r / images / ideafissa_1.png" width = "auto" height = "auto" alt = "papirnatirucnik.jpg" & gt; & Lt; / Div & gt; & Lt; / Div & gt; css #slika {border: solid 2px; Display: Table; Swim left; Height: 126px; Width: 111px; Text align: center; Vertical-row: middle; } .img-wrapper {display: table-cell; Vertical-row: middle; } IMG {max-width: 100%; } jsFiddle: c

ios - In XCODE / Swift, how can I create a single function which can be called from various view controllers? -

I want to apply a set of functions and that my app has to be called by different view controllers. What is the best way to do this? An example of a function used during the app is that returns a formatted float as a string: Funk round and format float (floatourtern: Float , Numberwise place: int) - & gt; String {formatted number = string (format: "%. \ (NumDecimalPlaces) f", floatToReturn) number back formatted} I suggest creating a new file called Util.swift, and paste that function into that file. Util.swift does the following: Import UIKit func Round Endformatlot (Flootroiton: Float, Numeral Success) - & gt; String {Enter the formatted number = String (Format: "%. \ (NumDecimalPlaces) f", floatToReturn) Back to the formatted number} You keep the other function and constant required in the. You can. To make this call in your view controller, you do this: var str = roundAndFormatFloat (float, numbering different location: decimal p

Maximum profit array c++ multiple sell -

आकार n की एक सरणी को देखते हुए n दिन प्रत्येक दिन आपको एक ही ऑब्जेक्ट खरीदना पड़ता है या आप किसी भी तरह की ऑब्जेक्ट्स को बेच सकते हैं जिससे आपको पैसे मिलते हैं .समझो कि आप हमेशा ऑब्जेक्ट खरीद सकते हैं। और आप केवल तब ही बेच सकते हैं जब आपके पास कुछ वस्तुओं हों इसलिए कुल लाभ को अधिकतम करने के लिए आपको विशेष दिन को खरीदने और खरीदने के लिए चुनना होगा। उदाहरण के लिए .. N = 10 arr = {5,0,9,2,9,0,2 , 7,4,7} , अब आप शुरू में कह सकते हैं कि आपके पास ऑब्जेक्ट्स की कुल संख्या है n = 0; और कुल लाभ p = 0 1 दिन आपके पास कोई ऑब्जेक्ट नहीं है इसलिए किसी भी मामले में आपको एक खरीदना है .. n = 1, p = -5 और अब 2 दिन में आप दूसरे खर्च कर सकते हैं ताकि कोई भी खर्च न कर सके < कोड> एन = 2 और p = -5 दिन 3 पर आप दोनों ऑब्जेक्ट्स बेच सकते हैं और पैसे कमा सकते हैं तो n = 0 और p = 13 इसी प्रकार हम आगे बढ़ सकते हैं और अर्जित अधिकतम लाभ 35 कृपया इस प्रश्न के साथ मेरी मदद करें। मैंने पहले ही ऐसी समस्याएं देखी हैं जहां हमें बेचने और खरीदने के लिए दिन चुनना पड़ता है .. लेकिन ऐसा लगता ह

objective c - Using MoC in a Controller, instead of AppDelegate -

I have a simple program, click on a button on the window, an IBAction in the appidelge triggers a new reference Adds managed objects - there is no problem here, all this works as if it is needed. I have a problem when I make a main controller to control the window - how do I do the same thing? I have to instruct an example of AppDelegate in a solution MainController, link the button on the window to the IBAction in the main controller, which calls the AppDelegate add method. It works, but it is not certain that this is the best way. Any ideas or suggestions will be appreciated. Why managed object conttex to AppDelegate Do not pass your MainController . In AppDelegate Method - (zero) Application Deficient Launching: (NSNotification *) An alert Announce the IBAction (which adds the object) in the main controller. For this IBAction, click the button on the window . This is what I do.

mysql - Update Root passwords via Shell -

In a shell (.sh file) I am trying to update mysql password for "root". At the moment I have this, is it safe and the right way? I do not want to signal. I am also thinking that the accounts of "mysqladmin" and "mysql" are identical or not. User and pass for #Variables USER = "root" PASS = "test" mysqladmin -u root password $ PASS # Set root user password for all local domains sudo mysql --user = $ USER --password = $ PASS -e "root password @ localhost" '= password (' secret '); "Sudo mysql --user = $ USER --password = $ PASS -e" password for password @ 127.0.0.1 '= password (' secret '); "sudo mysql --user = $ USER --password = $ PASS-e "Set password for root @: 1 '= password (' secret ');" # leave any user sudo mysql --user = $ USER --password = $ PASS -e "DROP USER '' @ 'localhost'; " Update With responses to tadman and b

c# - Is filesystemwatcher the right way to monitor a file? -

I know that this is a common question, but I'm just opening it for discussion, I believe it That someone else should have done this and I want to code a lot to know about my solution. Here I have a user who will add one file to the database as an OLE object and some attributes will be added to the file - it is connected to the project, version etc. Using Access I ???? Customer is not mine! When they want to edit it, they have to check it at this level, I want to monitor the file and when I save it, to get it back to the database. I am thinking that file system watcher is my best way - monitor changes and save it back when changes also start and I can get access to the file, if the database If it is still opened, it will be locked, so I know that the user is not finished. So my question in short is that file system watchdog is properly from this perspective? Anyone have any more suggestions? Thanks, Jim As M4 is called GNV5, FileSystemWatcher will work for this,

request - Hosting Data on a Server -

Just a simple question, but this is driving me crazy, because I really do not know how. I just want to be able to send a simple post request to a server, and that server returns some data just like plain text, a simple WWW request. Where do I begin to be a server that can do this? I want to be able to upload revised data. FTP does not seem to matter to me, and appears to require DB authentication. Thank you :) Just install Apache or NGINX if you use the window If so, install IIS.

mysql - permisions for procedure / outfile / prepared statement -

I have a stored procedure in which I have a statement ready for selection ... in the outfix when I root that process I try to call as it works well, but when I try to call it as another user, I lose access. Show grants: *. * Has been identified by 'MLS' @ 'Localhost' ... Allow all authorities on MLS. * Grant option with 'MLS' @ 'localhost' Am I missing something? Thanks in advance for any ideas. This works for me in MySQL 5.5: as root Login USE mls; * Identify at 'MLS' @ 'Localhost' ... ... recognized by ...; Select, on `MLS`. * TO 'mls' @ 'localhost'; Create Table T1 (an INT); Insert T1 value (1); DELIMITER // Start the process of simple process () * Select * Out of T1 in 'in_outfile'; END // DELIMITER; Login as an MLS USE mls; Call process (); You need super privilege for Mariadibi:

python - How to merge Series to DataFrame as columns, broadcasting -

सर्वोत्तम मैं के साथ आ सकता है df = pd.DataFrame ({'a ': [1, 2],' बी ': [3, 4]}) # s = इंडेक्स में नाम के लिए संपादित करें s = pd.Series ({' s1 ': 5,' s2 ': 6}) देखें। df [name] = s [name] ab s1 s2 0 1 3 5 6 1 2 4 5 6 क्या कोई बेहतर सिंटैक्स / तेज पद्धति का सुझाव दे सकता है? मेरा प्रयास: df.merge (ए) विशेषता एंटर: 'सीरीज़' ऑब्जेक्ट में कोई विशेषता 'कॉलम' नहीं है और df.join (s) ValueError: अन्य सीरीज़ में एक नाम होना चाहिए संपादित करें पहले दो जवाबों पर पोस्ट किया गया मेरे प्रश्न के साथ समस्या, इसलिए कृपया df : df = pd.DataFrame ({'a': [np.nan, 2, 3] के निर्माण के लिए निम्नलिखित का उपयोग करें। ], 'बी': [4, 5, 6]}, सूचकांक = [3, 5, 6]) अंतिम परिणाम के साथ एबी एस 1 एस 2 3 एनएएन 4 5 6 5 2 5 5 6 6 3 6 5 6 आप श्रृंखला से डेटाफ्रेम का निर्माण कर सकते हैं और फिर डेटाफ़्रेम के साथ विलय कर सकते हैं। तो आप डेटा को मूल्य के रूप में निर्दिष्ट करते हैं, लेकिन लंबाई से उन्हें गुणा करते हैं, स्तंभ

git - deploying Spring application on Heroku -

I'm developing spring web services using mangodibi and I'm making it with gradle I would like to deploy I am pushing according to the document and I have changed the buildpack on the basis of the shield: In the beginning, I am doing git init , then I Adding something git add Using git commit -m "message" and committing it. After that standard process, I'm keeping my code using my com Master to suppress the git. After that, dependency is downloaded and then I get an error: 1 error: compileJava failed failed: failed with build exception * what was wrong: failed to execute the task : 'compileJava' & gt; Compilation failed; See Compiler Error Output for details ... Build Faylad and this is my build.gradle: buildscript {repositories {maven {url "http : //repo.spring .io / libs-release "} mavenLocal () mavenCentral ()} dependency {classpath (" org.springframework.boot: spring-boot-gradle-plugin: 1.1.7.RELEASE ")}} plu

math - ColdFusion 9 - SQL Statement - Boolean Logic -

I plugged it on. And this would be a simple little mathematical logic problem. But for my life I can not get it to work properly. Trying to avoid double booking material in the booking system. Current code ... and schdate = #createODBCDate (schdate) # and (schstart & gt; = #createODBCTime (time) # and actend & lt; = #createODBCTime (actend) #) Basically try to do a check - if say that the start time is 2:00 and ends at 3 o'clock ... I have to check whether I Trying to overlap the book ... Try to say book at 2:15 pm ... stop saying this - conflict Thought this is a mathematical argument - not a coldfusion is ... an air brain today ... Thanx for direct - I think I would have thought this - still test ... seems to work under Dev link is given . and schdate = #createODBCDate (schdate) #and schstart & lt; #contentabacktime (acting) #andactand & gt; #createODBCTime (time) # Update: < / P> Below is a little more intuitive of the original q

c++ - Singleton implementation - why is a copy constructor needed? -

मैंने सिंगलटन डिज़ाइन पैटर्न के लिए यह कोड ऑनलाइन पाया: class Foo {public: static फू & amp; GetInstance () {स्थिर फू उदाहरण; वापसी उदाहरण; } निजी: फू () {}; फू (फू कॉन्स्ट एंड amp;); शून्य ऑपरेटर = (फू कॉन्स्ट एंड amp;); } मुझे समझ में नहीं आया कि कन्स्ट्रक्टर फ़ू (फ़ू कॉन्स्ट एंड amp); और शून्य ऑपरेटर = (फ़ू कॉन्स्ट & amp;); < / कोड> आवश्यक भागों क्या कोई कृपया मुझे समझा सकता है? क्या आप निम्न कोड को विफल नहीं करना चाहते? int main () {// कॉपी निर्माता का उपयोग करता है Foo x = Foo :: getInstance (); फू यू = फु: :: इन्स्टेंस (); // ऑपरेटर का उपयोग करता है = x = फू :: मिलना (); } ध्यान दें कि हमने उस कोड के अंत में Foo के 3 नए उदाहरण बनाए हैं।

Poor Automatic C# Garbage Collector Performance with many C++ Interop Calls -

What C # garbage collection might fail very badly in my C # application when a well-kept GC Solving the problem? Creates millions of C ++ calls using my C # app system From time to time. Intercom Services DllImport and Calling Convention. CDCL, and some C # Destructors are for release of C ++ unmanaged memory. I am using .NET Framework 4. In my application, the code below may be due to forced paging to slow down the crawl (29 GB RAM and process on my 32GB system) It takes more than 4 minutes before hitting), while only the use of true from manual gc changes the amount of memory to about 600 MB and execution will complete within 29 seconds is? Why manual gc except for false and write to true cap memory, about 12 GB of usage and execution of the paging without permission is allowed in about 59 seconds? Snippet of some code (obviously by changing some names) in my application: Private static int callout = 0; Private constellation child manual = wrong; Privat

slideToggle and fadeToggle in JQuery -

I want to use fadeToggle for tablets and desktop view (768px above) on my menu, but I can use my navigation Would like to turn on the slide mobile (767px and below) $ (document) .ready (function () {if ($ (window). Width ()> = 767) {$ ('# toggleMenu'). Click (function () {$ ('ul.menu-nav'). FadeToggle ("1400");});}}); But I can not take things forward. I will do this in a way that requires a jQuery UI: = 767? "Fade": Click on "slide" ("# toggle menu"); $ ('Ul .menu-nav ') toggle (toggle effect, 1400);});});

f# - Generic class with a measure constraint -

How do I create a generic class in F #, with that type of barrier that type is a measure? I have tried to do this but A2 and B2 do not produce errors: Open Microsoft. FSHRP.data Unit system SI. Type of unit names Vector 2D_A & lt; [& Lt; Remedy & gt;] 'U & gt; X: float & lt; 'U & gt ;, y: float & lt;' U & gt;) = Member this.x = x Member this. Y = y type vector 2D_ B & lt; 'T, [& lt; Remedy & gt;] 'U & gt; (X: T, Y: 't) = Member this.x = x Member this. Y = y type vector2d_C & lt; ' T & gt; (X: 't, y:' t) = member this.x = x member this.Y = y move a1 = vector2d_y (1.0> lt; m>, 2.0 & lt; m & gt;) B1 = Vector 2D_A (1.0> l & gt; 2.0 & lt; m & gt;) C1 = Vector 2 DC (1.0 «met & gt ;, 2.0 & lt; m & gt; A2 = Vector2D_A (1.0, 2.0) // should generate an error, B2 = Vector 2D_A (1.0, 2.0) // should generate an error c2 = Vector2D_C (1.0, 2.0) < P> I

Assign and compare in single statement in c -

मैं निम्न कोड को एक पंक्ति में कैसे रूपांतरित कर सकता हूँ? int * i; मैं = some_func_ret_int_ptr (); यदि (! I) {// कुछ करना} // मैं बाद में उपयोग करेंगे मुझे कुछ करना चाहिए अगर ((i = some_func_ret_int_ptr ) & amp; i! i) {// कुछ करना} // मैं बाद में उपयोग करेगा लेकिन मैं यहाँ एक तुलना बर्बाद कर रहा हूँ। मैं इसे करने के लिए एक बेहतर तरीका है? मैं चाहता हूं कि सभी काम करना और तुलना करना है और तुलना करें। I। इसके अलावा सुझाव दिया गया है कि अन्य उत्तरों में आप इसे के रूप में भी कर सकते हैं यदि (i = some_func_ret_int_ptr (),! I) {// कुछ करना} यह एक है , ऑपरेटर द्वारा अलग-अलग अभिव्यक्ति अनुक्रम से बदल दिया गया है। यह हालांकि ज्यादा व्यावहारिक नहीं है।

How can I exit lldb after running commands with -o -

मैं एक स्क्रिप्ट से निम्न कमांड की तरह कुछ भागना चाहता हूं: lldb -f / path / to / my / file -o command1 -o कमांड 2 ... -o अलग करें क्या इंटरैक्टिव मोड को दर्ज किए बिना निष्पादन के बाद lldb से बाहर निकलने का कोई तरीका है? आउट-ओ एक्सेगमेंट पास करना या -ओ छोड़ने के साथ विफल रहता है "after_file कमांड एक्जीक्यूशन, कमांड: 'छोड़ दिया' विफल।" उपरोक्त आदेश को बिना किसी बाहर निकलने या बाहर निकलने के साथ ही टर्मिनल को एलएलडीबी प्रॉम्प्ट पर छोड़ दिया जाता है, जो मुझे सिर्फ इस कमांड को चलाने से रोकता है और आउटपुट को डिस्क पर कहीं रीडायरेक्ट करता है। इसका अंतिम लक्ष्य प्राप्त करना है कुछ चीजें होने पर मेरी कमांड की मांग पर मांग। इस मंच पर एक पायथन इंटरप्रेटर नहीं है, इसलिए यह एक विकल्प नहीं है कोई सुझाव? यह मेरे लिए काम करता है: $ xcrun lldb / Bin / ls -o "b malloc" -o "run" -o "स्क्रिप्ट आयात ओएस; os._exit (1)" (lldb) लक्ष्य बनाने के लिए "/ bin / ls" वर्तमान निष्पादन योग्य '/ bin / ls' (x86_64) पर सेट है। (ll

javascript - Upload images with Uservoice -

I think I'm going with a free user voting service with UserVoice because they are only one I It has been found that the API (which is a requirement for me, because I should be able to create custom UI) has been offered. But it seems that users can not upload an image with their suggestions - just so I will upload my own image with a DB solution, and the image I'll tie Suggestion ID generated by UserVoice from ID ... Is not there any better way? Another free voting service with API and image uploads? An upload feature for userwaves that I can ignore in some way? To add an image upload feature specifically for user uploads in one of the pre-existing third-party libraries? According to documentation on the site, uploading an image is only available on payment plans. The site cites it as image uploads are available on all payment plans. Check out this link:

python - Django models kind of multi-table inheritance not working -

I want to create a hierarchy based on the Dmax design as described in the "Basic Principles of Database Systems" from Almastri & amp; is. Navathe This means that when I have some information that is shared for many classes / tables, then I can put it in the main parent table and the main table id in the hair tables with the foreign key Weak unit can be used in the form. I have tried to use intangible and multivable inheritance (this last one has not given me the one named Vinoinfield, it is not known where it is on the Digengo docs). My example here is correct (one table per square): '' 'I would like it to be abstract, because I will not ever wait for it, but if needed If not, then the class person (models.Model): personId = models.IntegerField (primary_key = True) name = models.CharField (max_length = 45) surname = models.CharField (max_length = 45, empty = True) Email = Model. Wheatfield (max_length = 45, empty = true) Phone = Model Classroom Me

How can stop foreach dublicate values in smarty 2? -

Hello, I have the consequence of how to prevent sharing the same values ​​after the foreclosure on the template and only Can one show the same? & lt; Ul & gt; {Foreach = $ names item = v name = thenames} Lt; Li & gt; {$ v.names} / & lt; Li & gt; {/ Foreach} & lt; / Ul & gt; If this is a simple key-gt; If the value is array, you can use it in your php file before processing the array before sending it to the file if you have duplicate one after the other (ie, A, A, A, B, B, C, C, C) can also call within the template, so you can do $ name. With array_unique Try using a variable to store the previous value, so it only shows first: {assign var = "previous" value = ""} {$ = $} Items = forename = v name = thenames} {if $ last! = $ v.names} gt; {$ v.names} / & lt; Li & gt; {/ If} {Assign var = "previous" value = $ v.names} {/ foreach} If not, then I have already pre-compressed in php or using smarty3 I adv

jquery - Button disabled effect not working after 1st click -

Image
I'm disabling a button with jQuery, it works, but there is a strange behavior in Chrome if I I click the button, it stays with the disabled-disabled color: Here is my code: button ID = "reset" type = "button" & gt; Reset & lt; / button & gt; $ ('# reset'). (Function () {$ (this) .attr ('disabled', true);}); For some reason, it works fine on the demo: In my localhost version, I tried to snatch parts of the page, js chunks, css parts, etc., but by then The disabled version of the button will not display until I do not click on it again. Any ideas? try it $ ('# reset') .click (Function () {$ (this) .attr ('disabled', true); $ (this) .attr ('disabled', false);});

algorithm - Function to generate permutations of sequence with elements limited to 1 adjacent move -

Let's assume that there is a list of length n, which includes the letter A - char (n). I find those movements I want in which each letter can move only adjacently or where it remains. So in each seq, there are three "set" permutations, cycling on the left, right bicycle (the list is considered cyclical), and the original list. I'm having problems with an algorithm to handle potential swaps in the middle of the list. Primarily, how to turn off the characters can be left on the coupling alphabet. Preceded for the list: where n = 3 [ABC, CAB, BCA, ACB, CBA, BAC] In addition to this, ABC and CAB are interchangeable Regardless of the elements with relative similar positions, it is considered unique. Mainly looking for algorithms and not any specific language. The basic rule is that elements can have a maximum position of 1 position from their original position in the list. I will briefly describe a skilled counting strategy. Before we solve it easily, where ther

java - How to load new jar files dynamically to JavaVM -

I already have a JavaVM C object which is given by my library, but I have more jar and java files Need to add that in my application What can I do? The library uses JNI_CreateJavaVM (and jvm, (void **) and P_JNIND, & amp; RGS); Function to create JavaVM first time need to add more options to my application. Someone has told me that the Java object has a function to load the Java object for the already created Java object. If I understand your question ... Adding a Java object dynamically in a running JVM, a function is? Then use the following to dynamically add Jars to you application. (Add error check and exception handling as needed). Zero addJarToClassPath (last file jarfile) without public synchronization {end string; filename = "addURL"; Last class & lt ;? & Gt; [] Method type = New class [] {URL.class}; Try the {final method method = URLClassLoader.class.getDeclaredMethod (methodName, methodTypes); method.setAccessible (true); Method.inv

html - Editable Tables with KnockoutJS with Footable -

A decision has been made with the department used to provide responsive grid layouts within an existing web framework. There was an added idea to make the grid editable and I managed it using Knock OutJs. I am getting an interesting effect while trying to tie the input field in the hidden row of the field. If I only show a reading of my rudata using the elements, then the beaten script works fine and all the rows show the data when I expand the + + mark, then the row is expanded Does, however, I change the label when the text boxes are empty and also does not respond to dirty flag changes. Shows any value in the fields shown in the main row and triggers the filthy flag on the edit, however, if I narrow down the browser window they are empty. In this second line of flowering can tie a plain label element without any problem, can anybody suggest that the binding fails, when this is input? I can not work out if it is a knockout or footage object. Thank you, Steve [ The