Posts

drupal - Display a list of content inside an other content -

I would like to know whether it is possible to create a list of any particular content type in any other content in DROU-7. There is no such option in the droplet, it is certain. (I'm starting to use it) Thanks in advance! Not sure what you want to do but you are looking for an entity reference module: EDIT: Visual Module What do you want:

ng-disabled in angularjs is not working for me -

I am trying to enable and disable the button using some condition I Unable to disable $ scope.isDisabled = true; But the button can not be enabled using This is my code HTML file & lt; Input type = "submit" value = "continue" ng-model = "idle" ng-disabled = "idle" & gt; Administrator JS file $ scope.isDisabled = true; // here button disabled (for me) if (calculation> = 3) {// it is always true $ scope.isDisabled = false; // Try to enable the button here) $ range Do not use. Apply. It is not what it means. No need to force button with one model, try removing ng-model from the button. In addition to this, if it is an input type of "submit" and you are not inside the NG-form, then there may be a postback and you can lose your state. There is such a planket that works - I have started following some assumptions, adding an extra button, which increased the calculation increase.

php - Display MYSQL results in html table -

I'm not sure that before a similar question has been asked, but here goes anyway. (I did a search and did not find anything related to my question.) I am developing a website that runs videos using HTMLMedia Video Player. I have a "clock" page in my database, which draws all the correct data using the variable connected to the ID (watch.php? V = 1). I want to see an index page where the most recent videos are drawn. Those columns are ordered by "id" and when I try a result from the query and everything works. How would I go about many values? Here is my PHP code (server details are hidden): and here is my HTML code for the table. & lt; tr & gt; & lt; td & gt; & lt; h2 & Gt; & lt;? Echo $ video ['title'];? & Gt; & lt; / h2 & gt; & lt; / td & gt; & lt; / tr & gt; & lt; / table & gt; This is not a complete code, But once I know the process, where can I apply it! I am quite ...

salesforce - Httprequest error. Help to make the correct request -

मेरे पास उदाहरण का अनुरोध है: curl https://upload.box.com/ api / 2.0 / files / content \ -H "प्राधिकरण: बियरर ACCESS_TOKEN" \ -F फ़ाइल नाम = @ FILE_NAME \ -F parent_id = PARENT_FOLDER_ID मेरा अनुरोध गुम_परामीटर त्रुटि "," नाम देता है ":" अभिभावक "," संदेश ":" 'अभिभावक' की आवश्यकता है। " यह मेरा अनुरोध है: स्ट्रिंग सीमा = स्ट्रिंग.वल्यूउफ़ (दिनांकटाइम। () .getTime ()); स्ट्रिंग बॉडी = '------------' + सीमा + '\ r \ n'; शरीर + = 'सामग्री-विवाद: फॉर्म-डेटा; नाम = " फ़ाइल नाम "; फाइलनाम =" '+ + फाइलबीडी + "" \ r \ n'; शरीर + = 'सामग्री-स्थानांतरण-एन्कोडिंग: बेस 64 \ r \ n'; अगर ((contentType == रिक्त) || (contentType == '' )) {contentType = 'application / octet-stream';} body + = 'सामग्री-प्रकार:' + contentType + '\ r \ n \ r \ n'; body + = एन्कोडिंगउइटल.बेस 64 एन्कोड (फाइलबीडी); बॉडी + = 'कंटेंट -डिस्सीशन: फॉर्म-डेटा...

c# - Session Id change in asp.net -

Assume that I have 2 users of "user-1" and "user-2" 2 computer "comp -1" Use and "vibrate -2" "user-1", respectively, do some work and reload the page, and on the other hand "user-2" is doing some work after some time, "user-2" changes After reloading the page has found that the "user-1" change in "user session's status-2" I think this session is a problem of overlapping, I have tried many ways but no solution can be found. Any way to solve this problem? You need to start your session variable Take a look at that post for details:

django - Geodjango can't find GDAL while Python can -

I followed all the discussions and the steps mentioned, but got stuck in another issue, I did not make GODA available for GODA Found. In Python Console (C: \ Python 27), I'm able to do import gdal , but Geodenjo says that gdal.HAS_GDAL Under the Genzo / Geodanging Application Shell and any geometric operation such as GDAL, there is an error: Country.geom.geojson produces: GEOSException: GeoJSON Output Only supported when GDAL is installed I have Python2.7 installed in the form of C: \ Python27 with the path environment variables : C: \ Python 27 \; C: \ Python27 \ bin; C: \ Python27 \ Scripts; C: \ Program Files \ GDL; and other environment variables such as: GDAL_DATA C: \ Program Files \ GDAL \ gdal-data GDAL_DRIVER_PATH C: \ Program Files \ GDAL \ gdalplugins GDAL_LIBRARY_PATH C: \ Program Files \ GDAL with settings.py Strong> but did not work I am using Windows 7 Ultimate x64, Python 2.7.3, Django 1.5.1, and tried to install / install GDAL and Py...

ios - Core Data: Delete the last entity with one to many relationship -

Image
मेरे ऐप में मेरे पास दो संस्थाएं हैं: एकाधिक 'क्रियाकलाप' के अंदर रिकॉर्ड है। जब मैं क्रियाकलापों में अंतिम गतिविधि रिकॉर्क्ट इकाई को हटा देता हूं, तो मैं क्रियाएं इकाई भी हटाना चाहता हूं। मैंने किस दिनांक का हटाया गया नियम हटा दिया है, लेकिन क्रियाकलाप हटाए नहीं गए। परिणाम यहां है: यदि आप एक क्रियाकलापों जब इसके पास अब ActivityRecord नहीं है ... आपको क्रियाकलापों को हटाना होगा। कोर डेटा में इसे स्वचालित करने का कोई तरीका नहीं है यदि आप कोई संबंधित ActivityRecord s के साथ कोई भी क्रियाकलाप ऑब्जेक्ट्स नहीं चाहते हैं, तो आपको अपना स्वयं का कोड लिखना होगा जो उन्हें हटा देता है। जब आप ActivityRecord को हटाना चाहते हैं, तो आपको संबंधित क्रियाकलापों को चेक करना होगा अगर इसके पास कोई और अधिक गतिविधि रिकॉर्ड नहीं है, तो उसे भी हटा दें।

java - Javaagent path not well interpreted on maven/linux/tomcat -

I have no idea what is going on on my CI server but maybe someone can help. I have configured a Maven project with a Jacquo agent, which gives a definitive test test: The working agent line (which is handled properly on my laptop) includes the path: / P> javaagent: / var / lib / jenkins /. M2 / repository / org / jacoko / org Jekoka.agent / 0.7.0.201403182114 / org.jacoco.agent-0.7.0.201403182114- Rntaimkjr = Destfail = / var / lib / Jenkins / jobs / Osbiliatt Enterprise / workspace /net.osgiliath.framework/net.osgiliath.features. karaf-features / net.osgiliath.features.karaf-features.itests / net.osgiliath.features.karaf-features.itests.cdi / target / jacoco-ut.exec, Append = true, include = Netkosjilith. FEATURES.carf-features.Sites. Cdi. *, Exchange = *. Itests *: *. Mock *: * Model. *: * Coverage. * "The problem is that when I launch these tests on my CI server (Fedora 19, Oracle Java 1.7, Toynet provided by Jenkins, Maven 3.2.1, Tomcat, Maven 3.2.1), the same The r...

rar - How unarchive file with password with PHP? -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मुझे असंग्रहित * करने की आवश्यकता है *। rar फ़ाइल और PHP पर पासवर्ड के साथ extracte। मुझे PHP पर कई फैसले मिले, लेकिन सभी वे संग्रह में पासवर्ड प्रदान नहीं करते हैं। क्या इसे exec () के माध्यम से करना चाहिए? मेरे ओएस: विंडोज 8 क्या आपने प्रयोग करने की कोशिश की है? इसमें पासवर्ड के लिए एक तर्क है मैं व्यक्तिगत रूप से इसे इस्तेमाल कभी नहीं किया है, तो यह अगर यह अच्छी तरह से काम करता है ज़मानत नहीं कर सकता। आपको php_rar.dll को php.ini में सक्षम होना चाहिए।

cordova - How to make a Phonegap plugins installer batch file? -

I am trying to develop a batch file that runs a lot of "phonegap local plugin add" type When I want to share my app, automate the PhoneGap plug-in installation process. I found the following solutions developed in Linux: #! / Usr / bin / env node / / this hook installs all your plugins / adds your plug-ins to this list - either the // identifier, file system location // or the URL var plugin list = ["org.apache. Cordova.device "," org.apache.cordova.device-motion "," org.apache.cordova.device- orientation "," org.apache.cordova.geolocation "," https://github.com/chrisekelley/ AppPreferences / "]; // no need to configure WinFSI = require ('fs'); Var path = requirement ('path'); var sys = Required ('sys') var exec = ('child_process'). Exec; Function (error, standout, stderr) {sys.puts (stdout)} pluginlist.forEach (function (plug) {exec ("add cordova plugin", puts plug);}); I ...

get compared value from in_array php -

मेरे पास सरणी है: $ conditions = array ("type", "genre" ); $ Type = सरणी ( "बार्स" "रेस्तरां"); $ शैली = सरणी ("अमेरिकन", "आयरिश पब"); मेरी स्थिति $ excelvalue = 'आईआरआईएसएच पब'; मुझे "आयरिश पब" का मूल्य कैसे प्राप्त होगा I in_array () के माध्यम से तुलना करते समय सरणी से? आप array_search का उपयोग करना चाहते हैं । आपके पास एक टाइपो भी था: $ $ शर्तों की बजाय $ शर्तों : $ excelvalue = 'IRiSH PUB'; अगर (सरणी_सर्च (स्ट्रॉल्वर ($ एक्सेलव्यू), सरणी_मैप ('स्ट्र्टोलॉयर', $ शर्तों)) {// कुछ कोड}

php - Can I debug my Laravel migration by writing to standard out? How? -

I'm running a set of migration that denormalize one of my tables I run some code in one of the migration I am setting the ID in a new table based on the contents of the existing table. For some reason, the ID is not being written correctly to debug it, when I run the migration (in development), I would like to exclude some variables on the command line. However, I am unable to work those orders till now. Yes, you can use all the common methods (echo, var_dump, print_r). They will normally output to the command line in the migration. If you suspect (as I did) that something about Laravel's migration system is quieting them, then you are barking the wrong tree.

C# ListView Remove Items -

I would like to delete the item already because it shows only one item when I click on it, but here, the item Number 1 is not present and I do not know why I can solve it? Thank you. Private Zero DEXTarget_CheckedChanged (Object Sender, EventArgs E) {Log (marked "DEX (TMAPI) target"); ListView1.Items.RemoveAt (-1); PS3.ChangeAPI (SelectAPI.TargetManager); Var.API = true; } Private Zero CEXTarget_CheckedChanged (Object Sender, EventArgs E) {log (marked "CEX (CCAPI) target"); PS3.ChangeAPI (SelectAPI.ControlConsole); Var.API = False; } log: Private zero log (string text) {Var.lst = this.listView1.Items.Add (DateTime.Now.ToString ( "DD / MM / OR HH: MM")); Var.lst.SubItems.Add (text); } list view starting with item index 0 and Calculate -1 . I think you should try ListView try this: listView1.Items.RemoveAt (listView1.Items .Count - 1);

custom jar contents for executable jar built with IntelliJ & maven -

The person for whom I am creating an executable JAR file wants to do all the external libraries separately in lib / / code> directory Which will be in its current working directory when it runs my jar. They also said that I want to extract the log4j.xml and config.properties from the jar so that they can edit their values ​​using IntelliJ and maven How to make a jar with a manifest like this? This is the help of some Maven plugins. Use maven-dependency-plugin to get all dependency in a separate folder. This example puts them in the target / lib folder. & lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven-dependency-plugin & lt; / ArtifactId> & Lt; Version & gt; 2.5.1 & lt; / Edition & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; ID & gt; Copy-dependence & lt; / Id & gt; & Lt; Step & gt; Package ...

bash - Syntax error in shell script -

मेरे पास एक छोटी सी खोल स्क्रिप्ट है जो बहुत ही सरल कार्य करता है #! / bin / लाइन पढ़ें; आउटपुट = $ करें (कर्ल -आईएल --हेड "$ LINE" | जीआरपी लारवेल) अगर [[$ आउटपुट]] & amp; amp; गूंगा "$ LINE" किया & lt; url-list.txt मैं स्क्रिप्ट पर url-list.txt नामक एक फ़ाइल पास करता हूं, और यह उस फ़ाइल को आउटपुट करता है जिसमें यूआरएल का एक सबसेट होता है मूल फ़ाइल जो grep लार्वेल से मेल खाती है हालांकि, मुझे स्क्रिप्ट में एक वाक्यविन्यास त्रुटि है: $ ./processurls.sh & gt; laravel.txt ./processurls.sh: पंक्ति 5: अनपेक्षित टोकन `पूरा 'के पास वाक्यविन्यास त्रुटि ./processurls.sh: पंक्ति 5:` किया & lt; url-list.txt ' क्या कोई मुझे इसे डीबग करने में मदद करता है, क्योंकि यह सरल होना चाहिए, लेकिन मैं सही वाक्यविन्यास के अनुसार क्या उलझन में हूं। इसके अलावा, क्या ऐसा करने का एक बेहतर तरीका है? मैं क्या करने का प्रयास कर रहा हूं यह निर्धारित करता है कि कौन से साइट (लगभग 1000 साइट्स की सूची में से बाहर हैं) क्या प्लेटफॉर्म या फ्रेमवर्क का उ...

sql server - SQL query error with variable -

This query is trying to run, but its return errors: Array ([0] = & gt; Array ([0] => 42000 [SQLSTATE] => 42000 [1] = & gt; 156 [code] => 156 [2] = & gt; [Microsoft] [SQL Server Native Client 11.0] [SQL Server] 'End' has the wrong syntax. [Messaging] => [Microsoft] [SQL Server Native Client 11.0] [SQL Server] The keyword 'end' is wrong with Syntax.)) SQL query: Select routines.date, routines.time, SUM (case when measurements.title = 'T_Luft_Temperatur' then CAST (REPLACE (routines.value, ',', '.') To decimal (18, 2)) and zero end ) Temperatur, SUM (case when measurements.title = 'T_Badende_per_Time' as cast (routines.value REPLACE (, ',', '.') As decimal (18, 2)) and zero Badende_Per_Time, SUM (The case is when measurements.title = 'T_Luft_Temperatur' as artists (in the form of routines.value REPLACE (, ',', '.') As decimal (18, 2)) and zero end ) As Luft_Temperat...

excel - VBA functions not recognized after add-in installed -

I have a spreadsheet that has many VBA functions, we want to add them to the outside of VBA and to a managed environment, add- These are developing. I opened the spreadsheet, while the development add-in was installed and then saved. Now when I open the spreadsheet without the add-in, all the formulas with those functions of me #NAME? Errors If I click in a cell to edit the formula and just enter the hit, the function is ok (using the VBA version as an add-in By doing) is not installed correctly but I can not refresh the entire workbook and can not use the VBA function. 1) Is there any way to explicitly use Excel's VBA function? 2) Is there any way to refresh all the cells without manually editing all the cells? I stitched it from some other posts together with all the sheets through the threshold and all the cells Updates the formulas. It seems to fix this problem, though it takes some time to process. sub-reapplyFormulas () dim as WS_Count as integer dim I int...

linux - specify python instance to use with sudo apt-get -

I was trying to get foreign, so I did it from the command line sudo apt - Install next DPKG-Dev developer build-required - When it was finished, it was prompt encountered errors during processing Had to do: Python-setuptools E: Sub-process / USR / bin / DPKG did an error code (1) as the first reaction I did Check the system version of (me): ~ $ python --version Python 2.5.2 I have a virtual environment that is 2.7.5 Running is more likely to work, but this is sudo apt-get ? It is possible to specify this version of Python to be used when running You can first try to use env while trying apt-get to change your path variable to find the version of the virtual environment of Python: Click on sudo env PATH = / path / in / virtual / Python / binary: $ PATH-appropriate

matlab - Input signal for Simulink -

Image
I want to use the following signal (red) in simulac as input. I have this picture . Any advice in the simplest way to implement this signal? Your question has two parts: replacing the data with Matlab's work and feeding data to Simulink . For the first part I think that simple thing put 30 points on this figure and write values ​​in their projected (x, y) vectors x and y. Do not work hard because its first part is periodic. Then use plot (x, y) to plot this vector in matlaback and update your estimated values ​​until you are satisfied that your conspiracy is similar to the figure. For the second part you can create a structure, where the time is similar to your X-axis and Y: input.time = X; input.signals.values ​​= y; Where x and y should have the same length How can you import a symlink from the work site on this page, you can find good examples on this page:

plsql - SQL stored procedure with 3 tables -

I have the following tables here:. What I have here: I need to list all the projects and tasks related to a customer (customer number is given as parameter) at the beginning of the report The customer's name is shown after the first project that displays the project and name. For each project, show it under the job number (in ascending order), details, hours and start date. Follow the last work with the customer's total work and project fee, then do the same for each upcoming project for the customer. At the end of the report, give the total number of hours for all those tasks, as well as how many projects and tasks were reported. I'm not sure how many processes do the work, so any help is appreciated. Thanks! next project Any relationship of cursor is not defined between TASK and Either the other tables used in the cursor, so each row in TASK is being included in the project and all valid combinations of the customer. It is known as "joining the carte...