Posts

Showing posts from September, 2014

drm - Adobe Content Server - set filename for .acsm file -

I am using Adobe Content Server (ACS) on our site. I would like to know that the file name set of the .ccm file What is possible in the process of generating GBN? Now each .acsm file that is downloaded by the user is named "URLLink.acsm". I got only one mention of this, but no solution has been suggested. I appreciate any help. This is really possible and you need to modify the web .xml file in the full package. If you open a .war package in a program like 7-Zip, browse the web-INF where you can browse the web. Can find XML. On or around the line 110, you will find this bit of code: & lt; Servlet-mapping & gt; & Lt; Servlet-name & gt; URLLink & lt; / Servlet-name & gt; & Lt; URL pattern & gt; URLLink.acsm & lt; / URL pattern & gt; & Lt; / Servlet-mapping & gt; Would you like to change it: & lt; Servlet-mapping & gt; & Lt; Servlet-name & gt; URLLink & lt; / Servlet-name & gt; & Lt; U

python - Who is treated as administrator of GAE application? -

Image
According to , I can send 5000 mails to the admin of the app. But who is considered as an administrator? There are three user-defined pages on the Permissions Permissions page in the Administration section of the GAE console: admin@mydomain.com role developer me@gmail.com role owner role with somebodyelse@gmail.com Together> Viewer Who is the App Administrator? First two, all of them or just another one? is one, but there is no part of sending email. Admin emails are sent to all users, which are defined in project permissions, to be selective There is no way. To send an email, admin email message from google.appengine.api.mail , if you use email message , They come from your 100 free recipients instead of the email call quota 3,492 9 7 email email quotas. Example: Include this import at the top of this script: from google.appengine.api.mail AdminEmailMessage (Sender = "your@adminaccount.com", topic = "Hello Administrator

javascript - AngularJS: call factory from controller -

I am using the following link to use requirejs with angularjs How do I I can use the service function that is defined in the Js \ services \ version.js I have the following code in the services. services.factory ('phone', ['$ resource', function ($ resource) {console.log ("factory");}]); I want to call this factory function in the controller. How to do this? Firstly let your service "angular.module ();" application. Controller ('myController', ['phone' ',' $ radius', function (phone, $ radius) {// your code here}]);

javascript - Drag an image and dynamically generate text box -

I have a project where an image will be dragged and it will be removed in a specific area and when I The text box should be generated with a label like the Asp.net tool box, I am able to drag the image using jquery, but there is no one to know how to get a text field. So it would be very useful if someone had any idea about this, thanks, Vijayesh Here I have tried to pull and new to JS or JPE & Lt; script type = "text / javascript" & gt; $ (Function () {$ ("# drag1"). Draggable ({Cancel: "a.ui-icon", back: "invalid", helper: "clone",}); $ ("# drop" Droppable ({}); me It seems as if you will dynamically create the element client side. I recommend that you see in the jQuery API. Here is a simple example: Addendum (' Sample Text & lt; / textarea & gt;'); </ code> </ pre> <p> <strong> Better Example: </ strong> </ P> <p> I have to say: </

python - Display non ascii (Japanese) characters in pandas plot legend -

Image
अगर मैं ऐसा करता हूँ: आयात pandas pd pd.DataFrame के रूप में (डेटा = nr .random ((2,2)), स्तंभ = [u'ÃÆ'à à एक € ™ Ã⠀, एक · ¥ æ? ¬ '])। plot () परिणाम: < / p> तो à © < / कोड> दिखाता है, लेकिन æ ?? ¥ æ ?? ¬ नहीं। थोड़ा सा गॉगलिंग करने के बाद, मुझे ऐसा मिला जो कि matplotlib के लिए एक समाधान प्रदान करता है मैंने फ़ॉन्ट फ़ाइल डाउनलोड की और इसे matplotlib : import matplotlib.font_manager के साथ काम करने के लिए मिल गया है fm prop = fm.FontProperties (fname = '/ users / user / डाउनलोड / आईपीएफ़ॉन्ट 30030 / आईपीएजी.टीटीएफ ') plt.plot (एनपी.रेंज (10), एनपी.रेंज (10), लेबल = यू' ???? ¥ æ ?? ¬ ') plt.legend (prop = prop) < / code> परिणाम: < / P> फिर मैंने pandas : import matplotlib.font_manager को एफएम prop = fm.FontProperties (fname = '/ उपयोगकर्ता / उपयोगकर्ता / डाउनलोड / आईपीएफ़ॉन्ट 30030 / आईपीएजी.टीटीएफ ') df0.plot (prop = prop) परिणाम: TypeError: कोई रेखा नहीं है संपत्ति "सहारा"

c# - How to exclude certain properties from binding in ASP.NET Web Api -

How do I exclude certain properties, or clearly specify which model properties will be tied to web API model binder ? With the formation of another model class in ASP.NET MVC, something similar to CreateProduct ([Bin (Include = "name, category" product product) and after that the repetition of all the verification attributes for the original Do the model. // EF Ententement Model Class Public Class User {Public Ent Id (Get; Set;} // Skip Public String Name {get; set;} // Public string Include email {get; set;} // included in public Post the public HTTPPRPRESS PUBNATION message (User User) {if (this.ModelState.) • Send the message to the email and email property to the child ISAdmin {get; set;} // include only for advertising} // HTTP post: / API / IsValid) {return.Request.CreateErrorResponse (this.ModelState);} Add this.db.us.us (user); this.db.SaveChanges (); return it, request.release rationpace (html.txt code. OK); } // HTTP post: / api / admin / users | The names,

Python numpy array assign values to each column according to row -

I want to specify line-specific values ​​in each row in the 2D numerical array. Specifically, each row should have the value of reciprocal of its line number. In other words, all the columns in line 1 should have a value of 1, all columns in line 2 should be 1/2, all should be 1/3 in row 3, and so on. I tried this: For curr_n in category (n): m = 3 n = 10 train = np.empty ([n, m], float): train [curr_n,: ] = 1 / (curr_n + 1) print train but the output is: [[1. 1. []. 0. 0] [0. 0. 0.] [0. 0. 0.] [0. 0. [0.. 0. 0.] [0. 0. 0.] [0. 0. 0.] [0. 0. 0.] [0. 0. 0.]] What am I doing wrong? I used "float" at the beginning, but I am still getting a solid 0 integer for all but the first line. Full type of conversion has been added to Python 3, so your original code will work, As: __future__ from import partition = 3 n = 10 train = np.empty [n, m], float) for curr_n in category (n): train [curr_n,:] = 1 / (curr_n + 1) Print Train __future___ module can be viewe

html - Animated fade in Bootstrap/CSS -

I am thinking that there is a way to get this feed-in effect of pictures, when the button Hovering looks like using bootstrap / css. This design agency () does it on its blog and it really feels good. I was not able to see how this can be done by looking at the code through the inspector. I can get some guidance about what this facility will be, it will be appreciated. You can get it through CSS, here's the code below: HTML: & lt; Div id = "parentDiv" class = "myDiv" & gt; & Lt; Div class = "img" & gt; & Lt; / Div & gt; & Lt; Div id = "secondchild" & gt; Home Ad Colo Dieto Paylo Lorem Ipsum Colro Dieto Paylo Lorem Ipsum Colro Dieto Paylo Lorem Ipsum Colro & lt; / Div & gt; & Lt; / Div & gt; CSS: . Mindiv {boundary: 1px solid blue; Width: 600px; Height: 200px; } .myDiv .img {status: absolute; Margins: 5px; Width: 200px; Height: 180px; Background: URL ("http://www.ide

android - ViewPager (cwac-pager) pages with non-unique tags not initialized properly -

I have encountered a problem with cwac-pager, and I can reproduce the problems in the Pasadamo demo project I am Steps to reproduce this problem: Run the pajadasmo project (it starts 10 EditorFragment pages) < / li> Delete pages 2-8 (press NAV on editorial and editor # 9 and delete until deleted) You now have 3 pieces: Editor # 1, Editor # Swipe left to navigate back to 9 and editor # 10 editor # 1 Press + + to add pages, it starts by adding editor # 4 (obviously because we had 3 pages after the removal). Add pages until you add Editor # 10 (visible on the left side of the current page). Swipe to the right for editor # 9 does not load the view (there is no text to edit) Editor # 10 (on the right) is the same on the left side of editor # 1 New Editor # 9 or Editor # 10, swipe to the left, and those views are loaded properly. If you type in the arrayappler adapter in entries , you will see that the correct code in it is PageDescriptor s, but PageDiscripto

objective c - Data in UITableViewCell getting cleared when scrolling -

When scrolling table view, all data are returned to default data. I searched the stackoverflow for this problem, but I can not solve my problem Please help me - (UITableViewCell *) TableView: (UITableView *) Table View CellForOutPath: (NSIndexPath *) Index path {MTTableViewCell * cell = (MTTableViewCell *) [tableview dequeueReusableCellWithIdentifier: CellIdentifier]; [cell.mainLabel setText: [NSString stringWithFormat: @ "_"]] ;; Return cell; } You are setting the cell's mainLabel.text Whenever the -cellForRowAtIndexPath: method is called, this is the reason why the data is always being reset to the scroll. In order to deal with this, you should be keeping track of the entry data in UITextField or UITextView and the setting that is for mainLabel.text . There is an example of something that could work, but then it depends how the cell works, if you provide some additional information, it will help me to give a full answer. . > - (UITableViewCel

Access objects globally in templates in Django 1.6 -

I want a menu on all my pages in Django 1.6. In the menu, I also want to include some items from my database. I know that I can expand the list view and get the items, and I know that I Can I set the variable in get_context_data , but how can I make objects on all my pages? I think it would be stupid to set context_data in every single scene. The result of my menu should be something like this: Home User User 1 User 2 User 3 Help Questions Question 1 Question 2 About Question 3 < / pre> What would be a good way to do this? Middlewares? Template tag? You are looking for a custom: You should write this way Work: #file: my_context_processors.py def menu_data (requested): Return {'menu': calculate_menu (requested), # & lt; - The menu has been added to your reference # for all templates where calculate_menu returns the object with an object and subtitles (dictionary?) In addition, you have other information in path , user and request . Th

google app engine - I can't delete my application -

I can not remove my application for testing (a personal website): In this screenshot, you can see that the app is not in my dashboard: Is this definitely the removal? Or overwrite just a blank page Mostly, you have created an app with a different Google Account, or from the team members of the app Remove You must log in with a Google Account on which the Admin login is for the application. Once you find out which account you have, follow this page:

php - How to insert a id of a new row into another linking table? -

I have a table with the aim of adding two other tables with the foreign key (Table 3). But I do not know how to query a PHP which will get the generated id of new line in Table 2? (ID of the table that I have stored in a php variable) I am looking into the smart storage process? Steps to follow : < li> Insert a line in table2 . Find the key generated from table2 and type it in the PHP variable - say it in a PHP variable, say Are, $ last_key SELECT LAST_INSERT_ID (); Use the insert statement in $ last_key for table3 .

python - SQLAlchemy - Using 'aliased' in query with custom primaryjoin relationship -

I am using SQLAlchemy (0.9.4) in my flask application. There are two tables with soft removal support in the application class A (SoftDeleteMixin, db.Model). B = id = A.b_id ') Class B (SoftDeleteMixin, db.Model): id = db. Column (db.BigInteger, primary_key = true) PARENT_ID = db.Column (db.BigInteger, db.ForeignKey ('b.id')) parent = soft_delete_relationship (remote (id), PARENT_ID, 'B.id', ' B.Parent_id ') Children = soft_delete_relationship (Remote (PARENT_ID), ID,' B.parent_id ',' B.id ') SoftDeleteMixin Limiting is based on () Pre: Return Query.get (self.populate_existing (), President) def __iter __ (self): return query .__ iter__def (self, president ) (Self.private ()) def-self (self, * ent): return question .from_self (self.private (), * ent) def private Auto): mzero = self._mapper_zero () if there is no mzero and hasattr (mzero, 'class_'): soft_deleted = getattr (mzero.class_, 'soft_deleted', none) return

Native code deployment on iOS -

Links to IIRC runtime compilation and JIT-ed country code are not permitted on iOS. I was thinking that it affects the original code that was not compiled on the client machine but was a remote build server and positioned and internally connected. Is the problem "native code generated when flying" or "country code that has not been able to pass the review process of Apple"? As I know, there is no right way to do dynamic links in iOS - this is by Apple is restricted. Also here please see:

bluehost - PHP not showing errors on subdirectory -

php.ini में मेरे पास है: error_reporting = E_ALL & amp; ~ E_DEPRECATED & amp; ~ E_STRICT display_errors = on अगर मेरे पास मूल निर्देशिका में एक वाक्य रचना त्रुटि के साथ एक php फ़ाइल है, तो त्रुटि दिखाता है। यदि यह उप-डायरेक्टरी में है, तो मुझे एक रिक्त पृष्ठ दिखाई देता है (जैसे कि display_errors = बंद) मैं त्रुटि लॉग में त्रुटियों को देखता हूं। मैं कैसे त्रुटियों को देख सकता हूं? यह एक होस्ट किया गया वातावरण है bluehost.com पर और मेरी php.ini फ़ाइल /public_html/php.ini पर स्थित है अपनी config फाइल या विशेष php फ़ाइल : ini_set ('display_errors', 1) के शीर्ष पर इस रेखा को जोड़ें; यह ini सेटिंग्स रनटाइम बदल जाएगा।

Sorting lines with regex in perl -

I am trying to read a log file and write all error logs in a new file. I should also keep in mind that how many errors are there and the number of messages. I should acknowledge that the log will break across multiple lines, so I'm using a variable regex series to find all possibilities and type the appropriate file handles my file: FILE, ERRORFILE, and SUCCESSFILE. Strictly use; Use warnings; My $ total count = 0; My $ error number = 0; My $ log = "s"; # $ Log controls whether what should be written, where it does not start with code # "S" = Successful file, "e" = error, file my $ logStart = "y"; # M / ^ I / or m / ^ E / is used with full code # The code has been broken into pieces. My $ dash = 0; While (& lt; FILE & gt;) {$ dash + = () = $ _ = ~ m / - / g; #tr can not be used /// Because it is counted on compilation ($ dash lt 25) {Next; } # Leaves this line --- --- Start & lt; Repository & gt; --- "Elesif (m / [

jquery - Javascript set a variable that changes on each child item -

It may seem like a easily answered question, but it is the one I am struggling for a while. Tell me first what I am trying to achieve. I have a gallery of images and I want to have each image centered to stand inside its container. The sizes, shapes, and aspect ratios are different in the images, so my code should be the variable for each image. Even I have so far: & lt; Div id = "cbp-fwslider" class = "cbp-fwslider" & gt; & Lt; img src = "picture / large / 1.jpg" alt = "img01" /> & Lt; img src = "picture / large / 2.jpg" alt = "img02" /> & Lt; img src = "picture / large / 3.jpg" alt = "img03" /> & Lt; / Div & gt; And here is my javascript: var $ img = $ ('div # cbp-fwslider img'); Var ih = $ img.height (); Var $ div = $ ('div # cbp-fwslider'); var DH = $ div.height (); If (DH> IH) {var dif = (DH - IH); $ Img.css ('margin-top',

php - return categories ordered by article date -

I have a website with blog articles. A post can contain 1 or more categories. Now I want a query that is all Returns the list of categories, according to the date of the blog order. I have experimented with one experiment in a SELECT query, but that does not work ... How can I do this and return the categories according to the date of the article? Table blog: | ID ------ | Title ------------------ | Date ------ | | 1 | Test Title | 2014-05-05 | | 2 | Test Title 2 | 2014-04-01 | | 3 | Last Test Title | 2014-02-02 | | 4 | Another blog item | 2014-01-06 | table categories: | ID | Category ----- | | 1 | Computer | | 2 | Home | | 3 | Work | table blogs_categories: | Blog_id | Category_id | | 1 | 1 | | 2 | 1 | | 4 | 2 | Use simple affiliate and select only specific data from categories Sector Leave Segments in Segments Bloggate BC On (CID = BCCCTI) BEF (BID = BCBLIID) B.Ed.

jquery - Jssor Slider CSS separation? -

I am working with the Jssor slider. I have a problem when trying to isolate slider styles in an external CSS document, for example: Doing something like this below does not work. # slider1_container {status: relative; Top: 0 pixels; Left: 0 pixels; Width: 1140 px; Height: 437 px; Margin-left: auto; Margin-right: auto; } I have checked twice and everything has been properly connected. Any suggestions or work around would be greatly appreciated thanks! With the latest version, you can move all inline styles by specifying the class in the CSS file / block Name each element.

twilio - Is there a way to check when the Recording was last accessed? -

I could not find any way to get last_access_date for recording. Here is the Tamilian evangelist The last access date is not something that is currently included in the recording resource description. If you are directing your customers directly to the TMLIO recording URL, then there is no way to say that how long they have finally reached the file. You can put an arbitrary lifetime on file (like we remove it after X days), but this may not be the best use. A better way to do this is to give them a direct URL, give them a URL that comes through your own web application and redirect them to the recording URL. This will allow you to track when the customer has finally accessed the file (since they will have to go through your URL). In addition to using a redirect, it will not be difficult to detect the URL that you have redirected them to, and if they want, move around your app. In that case you may have to consider downloading the recording in your system and your custome

ruby - How do I PUT a file with Typheous? -

I am trying to send a file through a HTTP PUT request. curl allows this type of: http://curl.haxx.se/docs/httpscripting.html#PUT What is the correct way to do this with Typheous? FWI is what I think was complete (but not necessarily at least) the question Answer: Allows curl files to be uploaded w / PUT; Greetings: $ curl --upload-file filename url While the url might look something like this: http: //someurl/script.php? var = value & amp; anothervar = val & amp; ... Typhoeus provides the same functionality, but the file body has been buried in Ethon docs along with the correct method of going url, params and them: request = typhos :: request New (URL ,: method =>: put: params => params_hash,: body => File.open (filename) {| io | io.read}) < p> Use the request object to get the response, etc.

javascript - positioning using for loop count -

I have javascript where I am giving a position for many objects. Say the number of objects is 120. Each object has an X and Y coordinate in the form of pixels. Trying to create it, so the first 30 objects are on one line, then the next line for every 30 items. I am surprised that there is an easy way to do this. I can not see my little head around it There is one thing to run in just one line: for (i = 0, i & gt; arguments.length, i ++) {var offset = i + 50; createobject ('object1, x, 100 + offset, y, 100); } Is there any way to split 30 to add to y offset? Here's the way to go, var y = 0; (i = 0, i> argument, i ++) for {var offset = i + 50; If (i% 30 == 0) y ++; createobject ('object1, x, 100 + offset, y, 100); } Every time 'I' gets y to reach the 30th count.

jquery - How can I re-create an accordion from a filtered list -

I have an orderer that I populate using a custom list. Although I have a button that kicks a javascript function to filter the list based on values ​​in 3 different drop-downs. It also works but my problem is how to destroy the already existing Aordian and recreate the Appordian with the new filtered list. At the moment, the new list proves the old Adrian (which works at least my filter function). I have tried to use "$ ('# empardian'). Append ('deleted')" But the new list continues to be added at the end of the old list. Here's how I am generating adrenaline: while (listItemEnumerator.moveNext ()) {var oListItem = listItemEnumerator.get_current (); ListItemInfo + = '\ Nroom name:' + oListItem.get_item ('title') + '' + 'Building:' + oListItem.get_item ('Building') + '' + 'Floor:' + oListItem.get_item (' Floor ') +' 'Seating:' + oListItem.get_item ('Seating') + '

wsdl - Web service Axis2 client code generation issue -

I am trying to consume the web service created using Axis 2, so I used to create client code Have followed I have a closing point and I am able to access it through the browser. But the client is trying to generate the code like this: WSDL2Java.bat -uri & lt; & Lt; Endpoint & gt; & Gt; -o client throws the exceptions given below: Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: WSDL Error parsing org.apache.axis2.wsdl.codegen.CodeGenerationEngine. (CodeGenerationEngine.java:181) at org.apache.axis2.wsdl.WSDL2Code.main (WSDL2Code.java35) at org.apache.axis2.wsdl.WSDL2Java. Because of the main (WSDL2Java.java:24): java.net.ConnectException: connection time out: java.net.PlainSocketImpl.doConnect (PlainSocketImpl.java351) java.net.PlainSocketImpl.socketConnect (native resident method) On connect to java.net.PlainSocketImpl.connectToAddress java.net.PlainSocketImpl.connect (PlainSocketImpl.java:213) java.net.SocksSoc

c++ - How to call member function of first class in second class member function in thread c++11 -

मेरे पास दो वर्ग हैं। वर्ग पहले {सार्वजनिक: int sum (int a, int b) {वापसी a + b; }}; कक्षा द्वितीय {निजी: std :: धागा टी 1, टी 2; Int राशि (int एक, int b, int c) {वापस a + b + c; } सार्वजनिक: शून्य निष्पादित () {t1 = std :: थ्रेड (और दूसरा :: योग, यह, 10,20,30); // समान कक्षा फ़ंक्शन t2 = std :: thread (और पहले :: योग, / * क्या होगा * /, 10,20 क्या होगा); // दूसरे वर्ग समारोह को कॉल करने की कोशिश कर रहा है}}; int main () {सेकंड एस; s.execute (); वापसी 0; } मुझे क्या जगह की आवश्यकता है / * क्या होगा * / आपको पहले की एक आवृत्ति (या पहले उदाहरण के लिए एक संकेतक की आवश्यकता है जो कम से कम थ्रेड के रूप में रहेंगी): एक उदाहरण पास करना: पहले च; t2 = std :: थ्रेड (और पहले :: योग, एफ, 10,20); एक संकेतक पासिंग: // मान लें m_f एक डाटा सदस्य है प्रकार पहले t2 = std :: थ्रेड (& amp; first :: sum, & Amp; m_f, 10,20); जो चुना गया है वह आवश्यक शब्दों पर निर्भर करता है। इस मामले में, यह पहले :: sum के सदस्य को गैर-स्थैतिक सदस्य कार्य (या किसी सदस्य का कार्य) क

Jquery, change the textArea size -

I want to change the text. Arrays: When I click on the text area, I have to show all the text. Change the size of the function MyTextArea () {$ ('# myTextArea'), when I leave it, the height must be returned to its default value. .css ("height", 120); } Occasionally I need more than 120 to show all the text, how can I move it. This is a very easy way to get: You need to add textere content to a device, which The page is offset by (by CSS). Then you get the height of the divis and it applies to your texture. & lt; Br> What is needed to change the line breaks of the textarera in the tag, which you can get with simple replace (), here is the code: $ (' # myTextArea '). ('Click', function () {orig_h = $ (this) .height () html = $ ('# myTextArea'). Val (). Replace (/ \ r $ ('# myoffthepageTextArea'). Html (html ); h = $ ('# myoffthepageTextArea') height () $ ('\' height (h)}). ('blurred', f

php - file uploads script problems -

I'm having trouble with my file upload script. This function is (jp_upload_pic ()) I'm having problems especially The move_uploaded () function, the second parameter "Destination" is my value ("../usr/ceo/JPCEO_20"), but this error is telling me. WARNING: move_uploaded_file ( ../ usr/ ceo/JPCEO_20): failed to open the stream: line / 11/11 / warning: move_uploaded_file () on / var / www / There is no such file or directory in the jobinpal / includes / func.php: '/ tmp / phpgf1k7y' to 'on the function ../ usr / ceo / JPCEO_20 '/var/www/jobinpal/includes/func.php at jp_upload_pic () {if (isset ($ _GET [' Upload '])) {$ jp_img = $ _ files [' file_to_be_uploaded ']; // File Uploader for JOBINPL ... $ jp_img_name = $ jp_img ['name']; // file name $ jp_img_type = $ jp_img ['type']; $ Jp_img_size = $ jp_img ['size']; $ jp_img_tmp_name = $ jp_img ['tmp_name']; // $ _ files ['userfile'

colors - HeatMap with RGB in Matlab -

I want to make a random value from heatmap in my project, I'v RGB 1x3 of vector, what should be appropriate for me to select random colors, although I have created the following RGB's color vector, I kiss Condition of HeatMap by using RGB , I currently need 10 to 15 colors What is the suggestion for creating a heatmap scenario in metlab red = [0 0] yellow = [1 1 0] Will be Green = [0 0.5 0] Cyan = [0 0.5 0.5] Blue = [0 0] code list_all_colors to generate all possible combinations and then to select 15 random ones. = allcomb ([0 0.5 1], [0 0.5 1], [0 0.5 1]) num_rand_colors = 15 %% // number of colors rand_colors = list_all_colors (randi (size_list_all_colors, 1), num_rand_colors, 1),: ) If you do not want to use allcomb and you have neural network toolbox, Can use to generate masses (code snippets) - vectors = {[1], [0 0.5 1], [0 0.5 1]} list_all_colors = combvec (vectors {:}) '

javascript - redirect to image after video ends -

I am working on the site, as soon as we make a video as we enter the site. The problem is that it just ends and I want to change it with an image after it's finished, is there any way I can redirect it to the same container? & lt; Video id = "video_background" preload = "auto" volume = "5" autoplay = "1" & gt; & Lt ;! - or turn on loop = "loop" - & gt; & Lt; Source src = "video / trailer.wbm" type = "video / webm" & gt; & Lt; Source src = "video / trailer.mp4" type = "video / mp34" & gt; & Lt; Source src = "video / trailer.ogg" type = "video / og ogve" & gt; & Lt; / Video & gt; To wrap your video tag in a div Need container Try the following code: CSS: #wrapper {width: 640px; Height: 360px; Background: # 000; } #image_background {display: none; } HTML: & lt; Div id = "wrapper" & gt

multithreading - Thread-safe Map in Java -

I understand the overall concept of multi-threading and synchronization but I'm new to writing thread-safe code. The following code snippet is: Synchronize (compiledList) {if (compiled Stylesheet Containes (xslt)) {exec = compiledStylesheets.get (xslt); } And {exec = compilation (s, import); Compiled stylesheets (xslt, f); }} where is compiled stylesheet a hashmap (private, last). I have some questions. The compilation method can take a few hundred milliseconds to return. It takes a long time to lock the object, but I do not see the alternative, except that it is unnecessary for the use of the archive. In addition to the synchronized map synchronize block, right? This is the only code that hits other than the initialization / institute. Alternatively, I know the existence of the ConcurrentHashMap , but I do not know that it is overkill in this example putIfAbsent () method used Not allowed because it does not allow me to leave the compile () method call. I

Blur for submitting form AngularJS -

नमस्कार, मेरे पास निम्न HTML मार्कअप है & lt; h2 & gt; प्रथम नाम अंतिम नाम & lt; / h2 & gt; & LT; प्रपत्र & gt; & Lt; div & gt; & lt; input name = "fname" & gt; & Lt; इनपुट नाम = "lname" & gt; & Lt; / div & gt; & Lt; / प्रपत्र & gt; आप फ़ॉर्म फ़ील्ड्स को दिखाने के लिए और उन्हें संपादित करने के लिए शीर्ष लेख पर क्लिक करते हैं (फील्ड को छुपाएं धुंधला और फिर शीर्षलेख दिखाता है)। मुझे एक समस्या है क्योंकि पहले और अंतिम नाम समान हेडर में हैं, इसलिए आप दो क्षेत्रों को संपादित करने के लिए एक आइटम पर क्लिक करते हैं। मैं इनपुट फ़ील्ड के लिए एक धुंधला घटना पर फ़ॉर्म सबमिट कर रहा हूं, लेकिन जब मैं अंतिम नाम पर क्लिक करता हूं, क्योंकि पहले नाम पर कलंक को बुलाया जा रहा है, मैं दूसरे क्षेत्र को संपादित नहीं कर सकता मैं AngularJS का उपयोग कर रहा हूँ जो एक समस्या भी पेश करता है क्योंकि मुझे पता नहीं है कि कौन सा तत्व केंद्रित है क्योंकि document.activeElement पूरे शरीर देता है। किसी भी मदद की बहुत सरा

excel - '28' Out of Stack Space. Worksheet_Change and Application.ScreenUpdating -

Whatever clarifications you can provide, thanks in advance. In an Excel workbook with several modules and worksheets, this substrate is at the bottom of the VBA code for SHEET2: Personal sub worksheet tags (range form) In-target) Set the target as a slow target TargetCells = Range ("B1000: B1029") If not, then the application.Interacte (targetcale, range (target address)) is nothing, then make specific call, end the shoobineline Is the end My understanding of this code is that it is Looks at the entire sheet to change. If anything has been changed, anywhere on the sheet, then this statement I if the statement fails in the event, then any of the changes made in the sheet are out of the specified code TargetCells But if this sub still makes statements, then every time anything goes on the sheet. Now, you can guess that my problem is some stack overflow (run-time error '28': out of stack space) whenever worksheet tags < / code> sub runs, if the c

c++ - Any design pattern to apply same operations to all the derived objects -

I have a scenario in which I am thinking that if I can apply a design pattern. The scenario is like this: There are 2 derived classes in a base class and in the main function, we need the same operation on both the derivative classes. I want it in C ++ For example: class base {virtual bund DoWeHaveToPerformOperation () = 0; Virtual Zero Display Operation () = 0; }; Class Derived1: Public Base {bool DoWeHaveToPerformOperation (); Zero performance operation (); }; Class Derived2: Public Base {bool DoWeHaveToPerformOperation (); Zero performance operation (); }; int main () {Derived1 d1; If (D1) Dovohettopar operation ()) {d1. Perform Operation (); } Derived2D2; If (d2.DoWeHaveToPerformOperation ()) {d2.PerformOperation (); }} Instead of typing in the main as above, I am thinking that there is something that I can customize the code (or if any pattern I can think of moving forward the normal code at least in a different function and it is checkonrapet (base * b) {if (b -&

Porting windows phone 8.0 apps to windows phone 8.1 -

I am working on a project in the Windows Phone 8.0 SDK for the previous year or now that Windows Phone 8.1 SDK I have been trying to shut down my application on 8.1 SDK. Currently, I have targeted my application which was created from 8.0 to 8.1. it works fine. But there are some things that are eager to know more about namespace changes So now all Windows 8.1 and Windows Phone 8.1 apps come under the Windows Store app, there are certain namespace Are missing For example, the System.IO.IsolatedStorage name space is not present in the SDK but there exists Windows.storage namespace that can serve the same purpose. This is really interesting, where it is, I have a solution with 10 projects built in 8.0, and 8.1 is targeted. System.IO.IsolatedStorage Namespace still works and the Microsoft.Xna.Framework.Media Namespace still works. But when I make a new project in the same solution, I do not get this namespace I am getting the point that the original project was built

Retrieving Channels from Kinect device using python OpenCV -

I put some simple code in Python to capture different channels from OpenNi devices, I have opencv all the primers and open Enabled with NI support was made. OpenNI samples work perfectly for both Kinect sensor and Prison sensor, as well as OpenCV samples for testing OpenNi support (./cpp-example-openni_capture) Here I have put together the code. CV2 import cv2.cv = cv2.VideoCapture (cv.CV_CAP_OPENNI) capture.set (cv.CV_CAP_OPENNI_IMAGE_GENERATOR_OUTPUT_MODE, cv.CV_CAP_OPENNI_VGA_30HZ) as CV capture Capture capture.get (cv. CV_CAP_PROP_OPENNI_REGISTRATION), while this is true: if not, capture.grab (): Print "Take the frame from the unable camera" okay1 break, depth_map = capture.retrieve (cv.CV_CAP_OPENNI_DEPTH_MAP) if not okay1: print "from the camera again Unable to map inequality map: "okay2 break, gray_image = capture.retrieve (cv.CV_CAP_OPENNI_GRAY_IMAGE) otherwise okay2: print break cv2.imshow (" depth camera ", d epth_map) "unable to get

python reverse/transponse a dictionary -

इस सवाल का पहले से ही एक उत्तर है: < / p> 3 जवाब मैं एक tranpose करने के लिए देख रहा हूँ अजगर पर शब्दकोश और चारों ओर देखकर मैं इसके लिए एक समाधान ifnd करने में सक्षम नहीं था। क्या किसी को पता है कि मैं निम्नलिखित जैसे इनपुट के रूप में एक शब्दकोश को बदल सकता हूं: ग्राफ = {'ए': ['बी', 'सी'], 'बी': [ '' 'डी': ['डी'], 'डी': ['सी'], 'ई': ['एफ'], 'एफ': ['सी']} < / code> ताकि मुझे कुछ मिलता है: newgraph = {'A': [']],' बी ': [' ए '', 'सी': ['ए', 'बी', 'डी', 'एफ'], 'डी': ['बी', 'सी'], 'ई': [''], 'एफ ': [' ई ']} उपयोग करें: newgraph = defaultdict (सूची) के लिए, graph.items () में adj: adj: newgraph [y] के लिए .append (x) हालांकि यह नहीं है खाली सूची में रिक्त स्ट्रिंग '' रखने का कोई मतलब नहीं है, यह निश्चित रूप

mysql - mysqldump always returns "option '--tables' cannot take an argument" -

Trying to back up a MySQL database using the mysqldump command, but the message I get is mysqldump: option '- - Babes' can not take any argument . Here you are: root @ myhost: ~ # mysqldump mydatabase - User Menu - Password mypassword Warning: Exceptions to tables instead of using the prefix table, and disliking it Will be removed in future releases. Please use the full name instead. Mysqldump: option '- tables' can not take a logic I have tried many logic combinations, but in the end I came to know that the result is the same if I just want to get the command version I try or do not have any logic: root @ myhost: ~ # mysqldump --version Warning: Unlike tables, using the prefix table, the unique option is disliked and removed in a future release. Will go Please use the full name instead. Mysqldump: The option '- tables' can not take any argument root @ myhost: ~ # mysqldump Warning: Using the prefix table of unique options instead of tables is d

java - How to check if function was called by value? -

Edit: How do I use the type of parameter on the compilation of time to use an eclipse parser? I am trying to check whether the function was value by call so I activate the following function on the user's code: < pre> public boolean visits (method Invocation node) {} My question is, how was actually investigated by the call price or terms I node Tried the member functions of: typeArguments () argument () getExpression () and could not forward The Ana For example, I tried: list r_type = node.typeArguments (); If (r_type.toString () == "int") {....} but r_type always starts to empty. I want to know how the logic type (int / bool / double / ... ) In case of primitive, you know the type, it is not known how it is because it is not dynamic. That is, there is no way, that you know about the compilation of times, can be different for this. For objects, there are several ways to find out that because a normal one instanceof example

android - Open image from sdcard -

I want to open the saved image on sdcard and the user should choose under that application from which they want to open the image Are there. How can I do this? Thanks to the option given below to the Internet with the option below which I do not want startActivity (new intent (Intent.ACTION_VIEW, Uri.parse ("file: / //sdcard/myapp/2014-04-21.png"))); You need to specify the data type. Try it instead: intent = new intent (); Intent.setAction (Intent.ACTION_VIEW); intent.setDataAndType (Uri.parse ("file: ///sdcard/myapp/2014-04-21.png"), "image / *"); StartActivity;

java - Two JPanels in one JFrame - the second overrides the first -

I am trying to create a GUI where I add two JPNs to a GeFrame but the second JP Penal I add the override for the first time. In my first JPanel I have a Sudoku box, and in the second I want a button but, beforehand, I always override the other, it does not work. My Sudoku uses the Zenith grid layout, and it works alone. The problem is that when I try to add the second zeppel (which is a pocket). Since the button requires another size than the squares in the Sudoku box, I can not add this button to the zippin first. Is it possible to solve using two genels, or do I need a different layout? I've read something about the gridbaglayout and it seems that this can be a solution, but for my zeppel, it's a bit boring to change the whole code in which it has a sudoku You can create another JPN with a proper layout manager, and add two small panels inside it. Having a panel inside the panel is a good way to break your layout into less complex pieces, while maintaining better con

android - How to Set image size in grid view -

There is a grid view with 3 columns wrapped in my relative layout. At present, the view of a large device (7 inch tablet) looks small, so I want to increase the size of images according to the screen size. My getView () in baseApdter for Gridview: and my XML with grid view: & lt; Relative layout xmlns: android = "http://schemas.android.com/apk/res/Android" xmlns: Tools = "http://schemas.android.com/tools" Android: layout_width = "match_parent" Android: layout_height = "Match_parent" Android: background = "@ drawable / background" device: reference = ". Main" & gt; & Lt; Android: layout_height = "fill_parent" Android: columnWidth = "200dip" Android: Gravity = "Center" Android: horizontalSpacing = "40dip" Android: numColumns: GridView Android: ID = "@ + id / gvMain" Android: layout_width = "fill_parent" = "3" android: padding = "

c++ - What does it mean when a char or wchar_t == -1? -

Why would it compare the value of a character in the visual studio (the first one four, now a wchar_t) - 1? I have many illegal checks against 1: TCHAR ch; ... if (f == - 1) the coverage is telling me that "ch == -1" is always false regardless of its operand value. " Now, it was originally written to use four values ​​instead of wchar_t, and it was upgraded when Unicode support was needed. I need to know that Checking against "four f;" 1 so that I can do a similar test against wchar_t. Integer constant EOF is usually defined for -1 if it indicates what your code is checking (where On ch has come), then related to wchar_t comparison WEOF and looks like a suitable Windows TCHR macro. / P> PS: Fully told in the comments, as the value was changed to char or wchar_t , it would be sent to EOF Or is too late to compare with WEOF : Many encodings use four '\ xff' as a valid letter, and such Converse After the loan, the c

mysql - Omiting all heirachy data that matches on a JOIN with a one-to-many table -

असल में, मैं एक विरासत ट्री टेबल मिला (बटन) और एक-से-एक- अन्य तालिका से कई रिश्ते (kiosk_buttons) आईडी INT (11), kiosk_id INT (11) "किओस्क तालिका के लिए विदेशी कुंजी", बटन_आईड INT (11) " बटन तालिका के लिए विदेशी कुंजी " मैं मिलान करने वाले बटनों और पंक्तियों के बच्चों को भी पीछे छोड़ते हुए मिलान करने वाले बटनों .id और kiosk_buttons.button_id को छोड़ने की कोशिश कर रहा हूं। यहाँ वर्तमान में मौजूद क्वेरी है, वह पंक्तियों को छोड़ सकती है, लेकिन यह उसके बच्चों को नहीं छोड़ सकती है। SELECT * से बटनों को ख के रूप में जोड़ें kiosk_buttons kb as b.id पर = Kb.button_id WHERE kb.button_id NULL एसक्यूएल बस के लिए गलत अवधारणा है ट्रैसिंग और पाशन, यह समूह के लिए बनाया गया है। इसलिए यदि आपके पास डेटा के साथ काम करने के लिए एक प्रोग्रामिंग भाषा है, तो आपको अपनी क्वेरी जैसी एक फार्म में, उसके बाद traversing करना होगा SELECT * से बटन के रूप में ख WHERE b.parent_id में (& lt; last_button_list & gt;) कोई भी परिणाम दिखाने के दौरान उस डेटा के सा

JavaScript return an anonymous function inside an anonymous function -

Why is an anonymous function returned in getNameFun (see section 1), is it just this.name (see Segment 2)? Segment 1: var name = "window"; An object ???? var object = {single ???? One ???? One ???? Name: "My Object", a ???? ? One ???? One ???? getNameFunc: function () {any one α one relation one return function () a '' a '' a '' '' '' '' '' '' '' '' back '' Ã ???? Ã ???? Ã ???? Ã ???? Ã ???? Ã ????}; One '' a '' a '' '' '' 'a' '????); Ã ???? Ã ???? Warning (object.getNameFunc () ()); Segment 2: var name = "window"; An object ???? var object = {single ???? One ???? One ???? Name: "My Object", a ???? ? One ???? One ???? GetNameFunc: function () {one word does not get a word? A '' '' '' '' '' '' '' '' '' '' 

jquery - Refresh datatable while adding new parameter -

I have a search screen where the user realizes what data has been retrieved for the report. The parameters are taken to the datatable and then the report is retrieved through AJAX. The URL used for AJAX loads may be something like report.php? Batch = 1 & amp; Id = 5 . What I want to do is provide a link that will allow the user to download the results of the report. To do so, I want to submit the same request on the server, but then I will only send the view to CSV instead of HTML. To do this, I want to add an extra variable to the URL, so it's called report.php? Batch = 1 & amp; id = 5 & amp; Output = download comes out with something like <. P> I have tried to give some approval to add that variables, which are both without success FYI, I have assigned the dateable configuration to a variables named FixHeader. 1) Set the value with fnServerParams. fixTheHeader.push ({"Output": "Downloads"}); and then fixTheHeader.fnReloadAjax

yaml - Behat Configuration: how to set output_style option without specifying fg and bg colors -

Image
I am one of the 10% men who are colorful, so I try to better configure my Behat CLI output I am distinguishing between yellow and green lines. It is generally supported, but looking at the docs, if I want to add an option such as underscores, then I have to specify both foreground and background color also. I do not even have to define FIG color, but the default style does not apply BG color, and I do not know that the logic is configured So that they do not override the default. Here's an example: default: formatter: name: beautiful parameter: output_style: note: [black, white, [underscore]] It is broadly what I am after: default: formatter: name: pretty parameters: output_styles: undefined: [, [underscore]] However, if I leave the first two arguments (or just the second argument), then I get an error like this: Foundमेंट Exception] Invalid foreground color specification This post has been: "Array". This is not the end of the world, because I

regex - mod_rewrite: adding a 'fake folder' to all URLs? -

How do I add duplicate folders to all URLs in Apache 2.4.9? Example: changes to http: //localhost/index.html Http: // localhost / folder /index.html ? DOCUMENT_ROOT / .htaccess Keep this code in your file: RewriteEngine On RewriteRule ^ /? Folder (/.*)?$/ $ 1 [L, NC]

security - ascii characters to avoid in passwords -

I have recently started web development using the Django. While working on the user registration page, I was researching a few things on the password. The Web site usually bans the characters that can be used in a password. For example, spaces or angle brackets can not be used. Since all the inputs are cleaned and washed using any printable askey letters in the password, before they are stored in the database, there should not really be any problem ... right is? Or am I missing anything Most of the time, spaces or any printable ASCII characters are missing you The only reason to leave is due to bad coding. The second time, this is for the auto-triggered password (dissection of similar-looking characters for IL-1, O-0, etc.).

postgresql - Consolidating views / Adding criteria on-top of existing view -

मेरे पास एक उच्च स्तर दृश्य स्कीमा में संग्रहीत है schem1 उस ड्राइव यह कुछ तालिका से डेटा है जो मुखौटे अप्रासंगिक डेटा को बाहर निकालता है। अन्य कारणों के लिए अन्य पंक्तियों को मुखौटा बनाने के लिए आवेदन डेटा पर कई अलग-अलग मानदंडों को जारी करता है। डेटा प्रोसेसिंग संग्रहीत कार्यविधियों के साथ किया जाता है मैं चाहूंगा कि इस एप्लिकेशन में जो कुछ भी फिल्टर जो चाहता है (या नहीं) वापस अस्थाई दृश्य को एक तरह से जारी करने की क्षमता रखता है जिस तरह से यह ऐप ऐड-अप फ़िल्टर चाहती है, जैसा कि वह चाहता है, दूसरे शब्दों में, मैं देख रहा हूं उस ड्राइव के साथ एक अस्थायी दृश्य को संग्रहीत करने के एक तरीके के लिए, यह पूर्ववर्ती अस्थायी दृश्य से डेटा है कि नया दृश्य उसे स्थान ले रहा है। मैं जो हासिल करना चाहता हूं, उसके लिए वैकल्पिक स्पष्टीकरण, नए मानदंडों को संयोजित करने का एक तरीका है मौजूदा दृश्य के ऊपर, ताकि उस दृश्य के संदर्भ को गिराए जाने से 'आधार दृश्य + नए मानदंड' का प्रयोग किया जा सकेगा। जहाँ तक मैं बता सकता हूं, pgsql " संकलन " नहीं करता है देखें, लेकिन इसका इस्तेमा

java - Gradle project refresh error : (The filename, directory name, or volume label syntax is incorrect) -

I am trying to make my first Android app using Android Studio. Unfortunately, every time I try to do to try to run it I open my project, or I gather it gives me the following error: Gradle 'MalipoBatteryAlarm' Project Refresh Failed to: C: \ Users \ wickedQuasar \ .gradle \ daemon \ 1.10 \ daemon-6128.out.log (file name, directory name, or volume label syntax is incorrect) Due to the problem, file or directory is unclear. Man to be used to correct this error, changing access rights for the username. B / w switching using the Gradle folder or default and customizable grade wrappers. For the past two days, nothing seems to be done to fix it and I am completely trapped. I have also tried it: But it did not fix it. I have ruined the tenth productive hour of my life so that efforts can be made to correct it so that any help would be appreciated. From my research I found that this error is due to "unacceptable characters" in filenames. Although in my case I coul

c# - Extract entire text from PDF with iTextSharp -

I am trying to parse the existing parameters to be added to the existing database, there is a problem with parsing pdf . Try first string [] AllPdf = Directory.GetFiles (Directory.GetCurrentDirectory (), "* .pdf", SearchOption TopDirectoryOnly); foreach (all pdfdoc in allPdf) {use (PDF reader reader = new PDF reader (PDFF) (for {int page = 1; page & lt; = reader.NumberOfPages; page ++} {ITextExtractionStrategy strategy = new LocationTextExtractionStrategy ( ); String text = pdfext extractor Gatetextfram (reader, page, strategy); }}} But unfortunately the text was parsed only after the title (employer, website, language etc.). And I need a title to create a square that will be mapped to a relation in the database. Try second string [] AllPdf = Directory.GetFiles (Directory.GetCurrentDirectory (), "* .pdf", SearchOption.TopDirectoryOnly); (Left) [byte] streamBytes = reader.GetPageContent (page); (For external websites) PDF Reader (PDFF) PRTokenise