Posts

Showing posts from September, 2011

bundle - Remove currency symbol from price in magento -

How to remove the currency symbol from the price on the bundled products page. Is a bundled product that I want to remove the currency symbol from the last value on that page post-text itemprop = "text"> $ Product = $ this- & gt; GetProduct (); If ($ product-> getTypeId () === 'bundle') {Dana :: Mill model ('directory / currency') - & gt; Format ($ product-> getFinalPrice (), array ('display' => Zend_Currency :: NO_SYMBOL), incorrect); } You may work in the following file app / design / frontend / default / traffic / template / bundle / product / Price Phtml

python - Scrapy sqmllinkextractor rule changes urls -

I am trying to create a webcrawler spider using a scraper and I have a rule for the intended link to my crawler To create a regex using: rule = (rule (SgmlLinkExtractor (allow = 'http: \ \ / \ www \ .cartelera \ .com \ .uy \ / apeliculafunciones \ .aspx \ [^ "] * 1 and 2 9 '),' Parse_loli, follow or = True)) that I examined Rijeks and it works And this link I want to see the spider To do this, but when I ran the program, the spider did not get any items and with little investigation I came to know that whenever the RezX matches the item correctly, when the spider goes to crawl the page So that URL should be used as much as you want. For example, spiders should match and crawl URLs such as http: / /www.cartelera.com.uy/apeliculafunciones.aspx?7242&&; cine and o Ra & A 1 and 2 9 http://www.cartelera.com.uy/apeliculafunciones.aspx?10704&&CINE&OBRA&1&29 http://www.cartelera.com.uy/apeliculafunciones .aspx? 10697 & amp; Amp...

How to open Google Cloud SQL instance to see database -

मैंने Google Cloud Storage को Google Cloud Storage में निर्यात किया है I मैंने फ़ाइल को संकुचित प्रारूप में (.gz) क्लाउड स्टोरेज बाल्टी में निर्यात किया है। उसके बाद मैंने अपने सिस्टम पर डाउनलोड किया और इसे 7zip का उपयोग करके निकाला। डेटाबेस और मूल्यों को देखने के लिए इसे MySQL कार्यक्षेत्र में कैसे खोल सकता है। इसका फ़ाइल प्रकार उदाहरण नाम के रूप में दिखाया गया है। क्लाउड एसक्यूएल से निर्यात किया गया डेटा आपको मिलती-जुलती है से यह मूल रूप से एसक्यूएल बयानों की एक श्रृंखला है, जब आप इसे किसी अन्य सर्वर पर चलाते हैं तो सभी आदेशों को एक साफ राज्य से निर्यात राज्य तक ले जाया जाएगा। मैं MySQL कार्यक्षेत्र से बहुत परिचित नहीं हूँ, लेकिन मैंने जो पढ़ा है उससे आप अपने MySQL डाटाबेस, ब्राउज़िंग तालिकाओं और डेटा को प्रबंधित कर सकते हैं। इसलिए आपको अपने निर्यात किए गए डेटा को अन्य माइस् SQL सर्वर पर अपलोड करना पड़ सकता है, उदाहरण के लिए आपके कंप्यूटर पर चलने वाला कोई स्थानीय। ध्यान दें कि आप सीधे आईआईपी के अनुरोध से MySQL Workbench से अपने क्लाउड SQL उदाहरण तक जुड़ सकते हैं। आपके उद...

python - Plot over subplot -

I have a subplot inside an existing ax frame, and there are some lines in the subplot or a full contour plot. What I want to do is plot some rows in the current large frame, and this line should be above rows / contour in the subfigure. The following is a small example: Actually I want blue and / or green lines above the red line, it seems that Zedar has no effect for lines related to different sub-axes. import matplotlib.pyplot as plt fig = plt.figure () plt.plot ([0,2], color = 'blue', zorder = 300) ax0 = gca ( ) Ax = fig.add_axes ([0.3,0.3,0.3,0.3], zorder = 0, axisbg = 'none') ax.plot ([0,1], [0, 0], linewidth = 40, color = ' Red ', zorder = -100) ax0.plot ([0.55,0.55], [0,2], linewidth = 20, color =' green ', zorder = 200) I am getting a solution which can not be right but works for it. This trick is to set a large horoscope frame on a high grader, and to make the background color transparent, so that the small axis can be seen in the b...

node.js - Error: Body attribute missing in multipart while using googleapis node module -

I'm using Drive version 2 to put a new file on google-drive. I am getting the following error to insert a new file into a Google Drive using the Client.files.insert () function Error: The body feature is missing in multilayer. var Auth = new googleapis.OAuth2Client (); Auth.setCredentials ({access_token: 'accesskey'}); ('Title', 'v2' application / json ',' hello world ') .withAuthClient (auth). Execute (function (error, result) {if (error) {console.log (error);} else {console.log (result);}}); The above code is in the document: Anyone can help me! Be sure that you have enabled the Drive API: Go. Choose a project. Select API and AIT in the left sidebar. Search drive API in the list of available APIs and set its status ON .

php - xpath get html for persian chars -

I get the internal html for the Persian web page with this method: private Fixed work GetInnerHTML ($ node) {$ innerHTML = ""; $ Children = $ node- & gt; Hair nodes; Foreign currency ($ children $ child) {$ tmp_doc = New DOMDocument (); $ Tmp_doc- & gt; AppendChild ($ tmp_doc- & gt; importNode ($ child, true)); $ InnerHTML $$ Tmp_doc- & gt; Save HTML (); } $ Internal HTML return; } When I view the source in the browser, I get the following Persian characters: & amp; # 1711; & Amp; # 1586; & Amp; # 1585; & Amp; # 1585; & Amp; # 1588; What can I do to convert this coding into regular Persian characters? For example, this character should be: Ú Ú ² § § § ± ØØØØ Ø Sorry, I do not know what this coding That's why I can not search for it. Thank you. According to my comment, what do you want? $ innerHTML. Html_entity_decode ($ tmp_doc-> Save HTML ()); .

Closing Browser window after twitter login android with twitter4J -

Hi, I'm developing an Android application in which I'm using Twitter login. I am using Liberty for twitter4j-3.0.5 twitter certification. So my views come back to my application after successful, but in the background this browser window is not closing. When I click my browser back with the twitter window My code looks like this: intent to intent = new intent (int. Action_ucli, uri Parse (requestToken.getAuthenticationURL ())); StartActivity; & Lt; Activity Android: name = "com.example.twitterapp.TwitterWebActivity" android: label = "@ string / title_activity_twitter_web" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.VIEW" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; Category android: name = "android.intent.category.BROWSABLE" /> & Lt; Data Android: host = "com.example.twitterapp" Android: Schema = ...

I want to parse following string into XML using C# -

& lt; html & gt; & Lt; फ़ॉन्ट रंग = # एफएफ 0000 & gt; गौरांग & lt; / font & gt; & Lt; फ़ॉन्ट रंग = # 00FF00 & gt; भावेश & lt; / font & gt; & Lt; फ़ॉन्ट रंग = # एफएफ 20000 & gt; भूपेश & lt; / font & gt; & Lt; फ़ॉन्ट रंग = # एफएफ 20000 & gt; एडीटीया & lt; / font & gt; & Lt; / html & gt; मैं उपरोक्त स्ट्रिंग को XML में सी # में पार्स करना चाहता हूँ। जब मैं कोशिश करता हूं कि त्रुटि देता है जैसे कि '#' एक अनपेक्षित टोकन है उम्मीद की गई टोकन '' '' या '' '। यह XML के बजाय एक html प्रतीत होता है , तो var doc = new HtmlAgilityPack.HtmlDocument (); doc.Load (filename); var colors = doc.DocumentNode.Descendants ("font") का उपयोग कर रहा है। ToDictionary (e = & gt; ई। इनरटेक्स्ट, ई = & gt; ई। विशेषता ["रंग"]। मान); foreach (रंगों में विविध रंग) {Console.WriteLine ("{0}: {1}", रंग .की, रंग। मूल्य) ;}

matlab - What is .' appended to end of list for use in bsxfun do? -

An example is given from matlab docs for BSXFun: have fun = @ ( A, B) A * sin (B); A = 1: 7; B = P * [0 1/4 1/3 1/2 2/3 3/4 1]. '; % What is it .' So am I? C = BSXFun (funny, A, B) I understand how BSX is used, but I do not understand. Does? I understand that 'to move, but what is it?' Did you know that you can type things help / Or support. ? You will find help for all MATLAB operators and special characters. To get help on Transfer , you should first know something about the MATLAB syntax. To protect yourself To transpose the vector: This is a strange object in which apostrophs play the triple roll: / matrix The second allows you to type a letter letter inside a string: & gt; & Gt; A = 'How it is done!'; This third role is due to historical reasons, and in my opinion it is rather unfortunate. Because, if you try & gt; & Gt; help .' The MATLAB syntax rules dictate that it & gt; & Gt; He...

.htaccess - RewriteRule 301 issue where original URL contains a ? (question mark) -

I am changing an existing website so that there is no change in the domain. I want to use 301 redirects so that bots and search engines can recognize new pages. I have tried to do the following but it is not working. Default URL: SiteAction = Instructions $ http://example.com/map/ [R = 301, L] The question mark completely after the index seems to break my site in that way , So I have also tried to write it like this, but nothing happens: RewriteRule ^ index.php (.) SiteAction = Directions $ http://example.com / I am using a Dreamhost PS, if it makes a difference. You can not match QUERY_STRING in RewriteRule , you RewindCund% {QUERY_STRING} is required. Use this rule instead: Rewrite on rewriting engine %% {QUERY_STRING} ^ SiteAction = Instructions $ [nc] # 301 Using redirects, Revert Raul Rerealable ^ index \ .php $ http://example.com / map /? [R = 301, L, NC]

c# - Comparing nullable datetime -

I'm trying to compare dates in your Linux query but my c.DateRequired There is a blank date field and I just want to compare the date without time. How can I go about converting c.DateRequired to get a bus date in this situation. IEnumerable & lt; SalesOrder & gt; SalesOrders = _uow.Repository & lt; SalesOrder & gt; (). Query () .Filter (c = & gt; c.IsDeleted! = True & amp; (((c.DateRequired == DateTime.Today.Date)) & amp; amp; period == 1) || ((c .DateRequired> gt; = sDateP & amp; amp; amp; c.DateRequired; & lt; = stDate) & amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp शब्द; 2 duration (duration == 2 || term == 3) Order By (Q = & gt; q.OrderBy (c => c.DateCreated)) .Get () Select (p = & gt; new {SalesOrder = p, SalesOrderDetailsList = p.SalesOrderDetailsList.Where (pd = & gt; pd.IsDeleted! = True), Vikryordr delete Components list = p.SalesOrderDetailsList.Sele...

Javascript password - check first letter only -

I need a login that only checks the first letter of a password and ignores anything behind it here my last The standard login-code received from the script. I know that this is not safe for web solutions: var unArray = ["ExampleTom"]; // user for var pwArray = ["7 ******];"] / password (var i = 0; i & lt; unArray.length; i ++) {if ((un == unArray [ I]) & amp; amp; amp; (pw == pwArray [i])) {valid = true; The idea is that the user should write any number as a password, but if he starts with 7 then he succeeds ('7 * * * 'Only my thoughts have been written to clarify). I do not know why you will do this, but here it is: var unArray = ["ExampleTom"]; // user var pwArray = ["7 ******];"] / password valid = for wrong (var i = 0; i & lt; unArray.length; i ++) {if ((pwArray [ I] four axes (0) === pw.charAt (0)) & amp; (UN == unArray [i])) {valid = true; }}

Java PatternSyntaxException: Unmatched closing '(' -

I need to remove all URLs found in Twitter messages. I have around 200,000 messages whose speed is so important! To do this, I am using Java as a programming language, here is an example of my code: public string display strip () {string tweet = this.getRawTweet ( ); String urlPattern = "((| | | | http |): // (bit \\. Ly | t \\. Co | lnkd \\. | | | |;;; T] \\ S *) \\ b"; Pattern P = Pattern.compile (urlPattern, Pattern.CASE_INSENSITIVE); Micker M = P. MATTURE (IT); Int i = 0; while (m.find ()) {tweet = tweet.replace all (m.group (i) , ""). Trim (); i ++;} tweets in return;} It works fine in the following cases: http : //t.co/nhWp9hldEH - & gt; (empty string) http://t.co/nhWp9hldEH "- & gt;" http://t.co/nhWp9hldEH)aaa "- & gt; aaa" aaa (Http://t.co/nhWp9hldEH "-> aaa (" aaa (http://t.co/nhWp9hldEH) "-> gt; aaa ()" However, when I get a case for this: h Ttp: //t.co/nhWp9hldEH) aaa " I...

android - API used to call receiver app in VideoBrowserActivity -

As everyone knows that Google has launched a new API for Chrome-cast which is public So while developing it for Android, they have given some sample codes on Github. While reading the Android app, he has clearly mentioned that we need to create a GoogleApiClient to launch the receiver file on Chrome-Cast and then we connect it can do. But the uploaded app is not making an API call about launching the app, launching the receiver app and creating a client (or maybe I do not know about the API to call the receiver file So I'm having trouble writing my own app so can someone tell me how this part is being done or someone can give me another way to do this and I That app's Can Caflau explain ?? Note: Videos I want to do uses a sample app, which is a library project, which enables developers to make cast capabilities fast and easy in their applications in their applications.

android - Jenkin phonegap error -

I've been looking for more than 3 days to solve the problem I found out that this happens When I add the Inputers plugin, without it it is compiled successfully Phonegap version 3.3.0-0.19.6 Although it works on my local machine. / users / share / jenkins / home / workspace / project development build / node_module / phonegap / node_module / cordova / node_module / q / q.js: 126 throw e; ^ Writing Errors: The property can not be read by installing less of the undefined / users / shared / junkins / home / workspace / project dev / node_modules / phonegap / node_modules / cordoba / node_modules / plugman / src / install.js: 361: 71 in array .forEach (native) on handleInstall (/ users / shared / junkins / home / workspace / build project god / node_modules / phonegap / node_modules / cordoba / node_modules / plugman / src / install.js: 360: 40) / Users / shared / jenkins / home / workspace / Project Dave / Nod_modul / Fongap / Nod_modul / Cordowa / Nod_modul / Plgman / src ...

.net - How to open window system menu on right click? -

Image
Text after " I show the progress of the unmanned splash screen form and minimize / Strong> and Close button (similar to the screen that appears in Office 2013). I would also like to provide a system menu of window which opens at right click anywhere in the form. Currently I use Alt + Space . SystemVindows.Forms.SendKeys.SendWait ("%") 'To Send Alt + Space With this approach, the window system menu Always open in the top-left corner of the window. Is there a way to open the program menu in the program menu, such as the window's user right-click title bar? / Strong> An API call or message that opens the menu? I would like to keep the available system menu in the app because I also added "about it" items I and "settings" there (This app serves as an independent launcher and updater of the main app.) The platform included Windows Forms with the platform WPF Use SendWait () ) for that solution Feel fre...

java - Google OAuth2 PlayGround returns "Unauthorized Client" -

clientId = xxxxxx clientSecret = xxxxxxxx applicationHost = xxxxxxxxx मेरा प्राधिकरण कोड अनुरोध: OAuthClientRequest oAuthClientRequest = OAuthClientRequest .authorizationProvider (OAuthProviderType.GOOGLE) .setResponseType ("कोड") .setClientId (clientId) .setParameter ("access_type", "ऑनलाइन") .setRedirectURI (applicationHost + "Auth / google / callback") .setScope ("https://www.googleapis.com/auth/plus.login") .buildQueryMessage (); response.sendRedirect (oAuthClientRequest.getLocationUri ()); मुझे इसके साथ एक प्राधिकरण कोड मिल रहा है लेकिन जब भी मैं इस कोड का उपयोग कर Access_token के लिए अनुरोध भेजता हूं, मुझे एक त्रुटि मिलती है (कोड 400) मेरे access_token अनुरोध: OAuthClientRequest oAuthClientRequest = OAuthClientRequest .tokenProvider (OAuthProviderType.GOOGLE) .setGrantType (GrantType.AUTHORIZATION_CODE) .setClientId (clientId) .setClientSecret (क्लाइंट सिक्रेट) .setParameter ("access_type", "ऑनलाइ...

Is there a Django South (i)python shell -

I am preparing several Django model migrations. Usually as a programming, I prefer a shell environment (such as ipathaan) to test / validate in operation. I know that for Django, we have: dragon django_app / manage.py shell this is really convenient Because all Django objects are available. Model objects are not available for Django's South Migration. See . Is one (i) a way to load the South Environment in Python so that the operations can be hand-held? "post-text" itemprop = "text"> I do not know any shell about the way you are asking. Have you forgotten your question that where are you saying that you want to test your commands using the shell on the live server? I firmly advise against that if not. Is there a reason that you can not see what you are trying to use only manage.py shell ? Or just by supporting my database and creating a migration script, it is being run, then the changes in the use of migration backwards are being broug...

javascript - Add one every time click ADD button -

Need help! Every time I click on the "Add" button, how do I add one? Every time I click, the number will increase. When it starts at 0, then 2, and so on. HTML: & lt; Div id = "add_form" & gt; & Lt; Div class = "form-field" & gt; & Lt; Div class = "field" & gt; & Lt; Div class = "no" & gt; 0 & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; A href = "#" id = "add_field" class = "btn btn-default" & gt; Add & lt; / A & gt; & Lt; P & gt; & Lt; Br / & gt; & Lt; / P & gt; JQuery: $ (document) .ready (function () {var MaxInputs = 8; var InputsWrapper = $ ("# add_form"); Var addButton = $ ("# add_field"); var x = inputswerapper.length; var fieldcount = 1; $ (AddButton). Click (function (e) {if (x & lt; = MaxInputs) {fieldcount ++; $ (InputsWr...

maven - Restore converted eclipse project to it's previous type -

Image
My project in Eclipse was of 'Maven' initially, but I was working on drôls rules within that project, so wanted to take advantage of the droll. As the plugin's capabilities, I changed the project according to the project shown in the screenshot. But now I want to change it in the Maven project, how can this be done? In the menu sub menu, click "Enable Maven Nature".

java - PDF generation as per PDF/X-1a:2001 standards using pdflib -

After reading some examples of PDF Lib, I got the answer, one below for your reference Post You can use it to generate output related to your standard.

javascript - SPA's w/ Angular and cookie based authentication -

I use the Web Framework Cookie (or token) based authentication when a user registers a postback and the server cookie Inserts an authentication token that adds users to the browser. All subsequent requests include this token and therefore are safe in that sense. My question : I have to refresh a full page postback, does a user register for keeping the token on the user's browser? Or can I just return a successful token (by AJAX) on the server to successful user registration (also done through AJAX)? If possible, I like it. Thank you. If your infrastructure returns token back, you must add it to the header for all subsequent requests. Additional code is required to make this permanent (example: writing it in local storage) Headers know that your framework is wanted :) But I can assume That your login administrator might look like this: Angular Module ('cool module', []). Controller ('CoolController' function ($ range, $ http) {$ scope.loginButt...

memorycache - How to calculate the memory space consumed when cache key store in c#? -

कैश कुंजी स्टोर में सी # आप एक मेमोरी प्रोफाइलर का उपयोग कर सकते हैं जो विज़ुअल स्टूडियो के लिए एक प्लगइन है।

rfc - What is the lastest ftp request for comment -

क्या आरएफसी एफटीपी स्पेसीशन फ्रेशनर की तुलना में है?

javascript - How get attribute values in DOM elements with jquery, having a ng-repeat in angularJS -

I am very new with the angularJS, I have to figure out how to execute a jquery function that allows me to attract Is an SVG on the divisor of each image whose ID is "scoped" through its ng-repeat instructions. partial.html & lt; Div class = "cover-per" ng-repeat = "project in projects" DV-list-projects & gt; & Lt; A href = "# / project / {{project.slug}}" & gt; & Lt; Div class = "cover" id = "{{project.slug}}" & gt; & Lt; Img ng-src = "{{project.custom_fields.projectCover}}" & gt; & Lt; / Div & gt; & Lt; / A & gt; & Lt; / Div & gt; My jquery function: $ ('. Cover'). Each (function (i, e) {var id = $ (this). Attr ('id'); var img = $ (this) .find ('img'). Attr ('src'); var iw = $ (This) .find ('img'). Width (); var ih = $ (This) .find ('img'). Height (); var drag = svg (id). Size (iw, ih); var SvgImg...

add - Adding magento product from frontend with attributes -

How to add products from the frontend with custom attributes? I have this code another stack question // $ product = Dana :: MillModel ('catalog / product'); $ Product = new Mage_Catalog_Model_Product (); Echo time (); // Product $ Product- & gt; Set Attitissat ID (9); // # 4 default $ product- & gt; Create for Settype ID ('Simple'); $ Product- & gt; Setnam ('some good product names'); $ Product- & gt; Set descriptio ('full details here'); $ Product- & gt; Set Short Description ('Short description here'); $ Product- & gt; SetSku (time ()); $ Product- & gt; SetWeight (4.0000); $ Product- & gt; SetStatus (1); $ Product- & gt; Set Visibility (Mage_Catalog_Model_Product_Visibility :: VISIBILITY_BOTH); 4 print_r (Mage_Catalog_Model_Product_Visibility :: VISIBILITY_BOTH); $ Product- & gt; Setpiece (39.99); // # some value $ product- & gt; Settex classID (0); // # Set the default tax $ $ product- gt; Se...

Could not load Interop.WIA error with asp.net C# 4.0 -

I am creating a web page using ASP.Net C # 4.0, which is a scanner deployed from a server Will be used to detect and save Scanned images on the server I created this page using WIA (Windows Image Acquisition). When I run into asp.net development server, this page is working and scanning images, but when I put it in IIS 6.0, it says: File or assembly can not be loaded. Interop .WIA 'or its dependency was attempted to load a program with incorrect format. What is the cause of being a WIA COM component? Or what is missing me when I was posted in IIS? Please help! "The program was attempted to load the program with the wrong format." Usually this means that you are trying to load 32-bit code in 64-bit process or vice versa. Try setting your IIS app pool to 32-bit (some information)

java - how to use ehcache in spring mvc with hibernate -

I'm new to Spring-MVC and want to integrate the eHatch as a second level cache in Hibernate. I followed this tutorial now in my Hibernate.XML the entries are as follows: & Lt; Property Name = "hibernate.cache.use_second_level_cache" value = "true" /> & Lt; Property Name = "hibernate.cache.use_query_cache" & gt; True & lt; / Property & gt; & Lt; Property Name = "hibernate.cache.provider_configuration_file_resource_path" & gt; Ehcache.xml & lt; / Property & gt; & Lt; Property Name = "hibernate.generate_statistics" & gt; True & lt; / Property & gt; The entries in ehcache.xml are as follows: & lt; Ehcache xmlns: xsi = "http://www.w3.org/2001/ XMLSchema-Example" xsi: noNamespaceSchema location = "http://ehcache.org/ehcache.xsd" & gt; & Lt; DiskStore Path = "java.io.tmpdir" /> & Lt ;! MaxCollection = "10000" Over...

linux - BeagleBone Black as external processing unit for Robotics -

I need to execute a set of commands on a robot, the robot already has a mini-ITX PC attached , But it is slow and real-time results are not satisfactory. I want to use external beagle bone as a processing unit, but how can I configure setup to process / process the beagle bone robot? I believe 'export' IP utility do I want something? What kind of robot do you want to control? What kinds of hardware are you using to drive robot hardware directly? Beagle bone embedded Linux application but it is a bit difficult to support real time. So you need access to PRU (programmable real-time unit).

Autofac resolve based on class attribute / metadata -

I want to register and solve dynamically loaded types based on their class attribute. My code is as follows: Custom class attribute: [MetadataAttrient] Public class FooIdentifier: attribute {public string identifier {get; Private set; } Public FooIdentifier (string identifier) ​​{this.Identifier = identifier; }} My intangible base class Public abstract class base {public abstract bool Execute (absolute object); Public Child Run (object param = null) {// ... returns true; } {Execution} My implementation type I do not have a hard reference so I will manually load the assembly. My goal is to solve solid implementation on the basis of the identifier of the class feature. I have tried a lot with metadata, metadatafam, etc etc. My current effort is: var builder = new containerbuilder (); Var assemblies = assembly.load (@ "[patho attachment] .dell"); Builder.RegisterModule & LT; AttributedMetadataModule & gt; (); Manufacturer (Register) Assembly type ...

connection with couchdb server interrupted while uploading a file -

Is the connection interrupted during the upload of the document? Document not saved on server? Or is this partially saved? The document contains an image / JPG attachment in base 64 Partial typing is not allowed, so you It will need to be rewritten.

angularjs - How to override image source within a directive -

I want to override an image source within an instruction. I have tried the following, none of which works. App.directive ('imgTransform', function () {return (copy: 'a', link: function (radius, attrs) (elem.attr ('ng-src', ' ('Src', 'foo'); attrs.src = 'foo';}};}); Do the link function execute before being bogged? I also tried to create a separate scope and to force the ngSrc attribute: Scope: {src: '@ngSrc'}, Then set scope.ngSrc to the link function. Before you do your own To get the banking function it needs to be modified. I recommend the controller function, because the $ compiler was opposed to digging in depth. Restrict: "A", Controller: Function ($ Range, $ element, $ etter) {$ attrs. $ Set ('NGSRC', 'some other volume');}, link: function (scope, L, etters ) {...} Here's a bella: Besides, $ your link function is good luck :)

How to map column to complex object in SlickGrid -

var डेटा = [{"आईडी": 40072, "आईडी 2": 40071, "SmDetails": {" आईडी 1 ": 40071," आईडी 2 ": 40072}}] मैं एक कॉलम में SmDetails.Id1 प्रदर्शित करना चाहता हूं। यह कैसे संभव है? मैंने कोशिश की: var स्तंभ = [{नाम: 'कार्मिक', फ़ील्ड: SmDetails.id1, ​​id: 'detailId'}]; कृपया मेरी मदद करें कृपया मेरी मदद करें ** मेरा नवीनतम कोड ** var डेटा = [{"आईडी": 40072, "आईडी 2": 40071 , "आवंटन विवरण": {"Id1": 40071, "आवंटन विवरण": {"आवास आईडी": 4007}}}} var ग्रिड; Var स्तंभ = [{नाम: "कार्मिक", फ़ील्ड: "आवंटन विवरण", फ़ील्ड आईडीएक्स: 'आवास आईडी', आईडी: "आवास आईडी"}]; वर विकल्प = {enableCellNavigation: सच है, enableColumnReorder: झूठे, dataItemColumnValueExtractor: समारोह getValue (आइटम, स्तंभ) {var मान = आइटम [column.field]; If (column.fieldIdx! == अपरिभाषित) {वापसी मूल्य & amp; amp; मूल्यों [column.fieldIdx]; } और {वापसी मू...

In-Store pickup not fully available in ATG reference store? -

I had a question on the pick-up in the store I see that CRS module for me (it Jioloketr Service, Geo Locator Daiplt etc.) Is supported, but no buttons or JSP has been displayed or you have not been allowed to use it outside the box. On the other hand, this functionality is fully realized in the commerce service center, with popup widgets to search for pickup buttons, shops and shopping carts to showcase store pickup line items in the shop. Like the web store it looks like this feature will be specially coded, which essentially involves inclusion of JSP and components. Is there something that I can copy with CSC (Commercial Service Center) which will enable the store pickup in the web module (Store America or home US etc)? please tell me. Thank you for your COMMENT! Not sure you want to collect from you want to capture payments and store or reserve stores Make and pay when you pick up items. In both cases, your DOM (Distributed Order Management) and WMS (Warehouse Managemen...

tomcat security-constraint impact cache -

I have a problem caching my application. When this code is added to web.xml, Tomcat: & lt; Security-lock & gt; & Lt; Web resource collection & gt; & Lt; Web resource name & gt; HTTPSOnly & lt; / Web resource name & gt; & Lt; URL pattern & gt; / * & Lt; / URL pattern & gt; & Lt; / Web resource collection & gt; & Lt; User data-barrier & gt; & Lt; Transportation Guarantee & gt; Confidential & lt; / Transportation Guarantee & gt; & Lt; / User data-barrier & gt; & Lt; / Safety-barrier & gt; I get this response: Cash-control personal date Tuesday, 18 February 2014 01:18:17 GMT Etag W / " 200 -1391558564593 "is expired on Thursday, 01 January 1970 00:00:00 Web server Apache-Coyote / 1.1 Without this code everything is OK: accept-threshold bytes cache-control max-age = 604800 content-length 1496 content-type text / css Date Tuesday, 18 February 2014 01:21:26 GMT Etag...

c - qsort an array of strings, compare -

I'm trying to find out the use of qsort with an array of strings, my code looks like this Four words [500] [256]; Int numOfWords; // It is calculated from the intert wordlist above () {int length = cecoff (word) / size (four *); Cursure (word, length, sizeoff (four *), compare); } Compare Int (Cont Woed * A, Constwid * B) {const char * pa = * (const char **) a; Const char * pb = * (const char **) b; Return SRCMP (PA, PB); } However, I get "access violation # 0x # # ### .." every time and I do not know whether anyone can see my problem? EDIT: Thanks for the wonderful help you guys are always best. You are not casting your const void * properly, such a To do this, use instead: const char * pa = (const char *) a; Const char * pb = (const char *) b; plus should be above the comparison sortWordList () as you are using it in sortWordList () Code>.

php - If image exists show else hide it -

I have the following status. If there is no image in the DB, the page shows a large image placeholder. What is the best way to hide the image placeholder if no image is present? & lt; Img src = "& lt ;? php echo '../img/artists/' $ .rl_secret ['artist photo'] ;? gt; width =" 100% "/> You can do this if / else such statement : // I like to set things with variables $ placeholder_img = "../img/artists/placeholder.jpg"; $ Db_img = $ row_rs Accent ['Artist photo']; If ($ db_img) {$ img_src = $ db_img; } And {$ img_src = $ placeholder_img; } Echo "& lt; img src = '$ img_src' alt = '' width = '100%' / & gt;";

Php Arrays Group and Sum -

मेरे पास निम्न सरणी है: array (4) {["product1"] = & gt; स्ट्रिंग (1) "2" ["उत्पाद 2"] = & gt; स्ट्रिंग (1) "0" ["उत्पाद 3"] = & gt; स्ट्रिंग (1) "0" ["उत्पाद 4"] = & gt; स्ट्रिंग (1) "0"} सरणी (4) {["उत्पाद 1"] = & gt; स्ट्रिंग (1) "7" ["उत्पाद 2"] = & gt; स्ट्रिंग (1) "2" ["उत्पाद 3"] = & gt; स्ट्रिंग (1) "0" ["उत्पाद 4"] = & gt; मुझे उत्पादों को समूहित करने और उनकी मात्रा निर्धारित करने की आवश्यकता है: सरणी (4) {[ "उत्पाद 1"] = & gt; स्ट्रिंग (1) "9" ["उत्पाद 2"] = & gt; स्ट्रिंग (1) "2" ["उत्पाद 3"] = & gt; स्ट्रिंग (1) "0" ["उत्पाद 4"] = & gt; मेरे गरीब अंग्रेजी के लिए क्षमा करें, आपकी मदद के लिए बहुत बहुत धन्यवाद! अद्यतन करें: यदि आपके पास एक ही कुंजी के साथ कई सरणियां हैं और आपको प्रत्येक एरे क...

mysql - Can I use SUM() inside of a SELECT INTO statement on a trigger? -

I want to sum every bill amount of the same foreign key. If the amount is less than zero, then I want to update an enum field in the FAQ table. I am not getting anything about using the amount () in any selection, but it would be great if this would work. Create trigger after entry at `bill_log` for each 'bill_log_after_insert` ROW DECLARE @ Decimal figure; SELECT SUM (`bill_amount`) from @ bill_log at position @ where 'main_fk` = new.' Main_fk`; If the status of the & lt; 0 then set up 'main' transaction_type = 'credit' where `main_pk` = new. ' Mean_frack`; end if; Select SUM using INTO Statement is valid but there are some other problems with your trigger: If you want to do a local variable DECLARE , then you can call it @ Can not prefix with sign as if the session variable is required for the local variable within the trigger and is not globally for the current session because it is for session variables This is a good practi...

Rails+Dropbox Sync Architecture -

Tracks 4, Ruby 2 The railway app I have a sink does here user data with Dropbox how to sink current flows: what is your updated_flag set the record in MySQL and sink it need to? Okay, now we have to sync a database records that need to be synced. Repeat this list and make a dropbox API call. We upload / merge these records one at a time. & lt; Data crushing sound & gt; Well, Reset updated_flag for each record for each record has been synced to Dropbox. Done! This works when the user imports a bunch of new data (thousands of records), this process is very slow - so slow that the process time of the Unicorn Eliminates and kills. If you are familiar, then I am still using the same data architecture in a web app. So I'm concerned: However, I want it to sink to the user clicks the "Sync" at the prompt, you need to use some kind of background to this whole operation needed? Or is there a more efficient way to take action on these so tha...

android - Button.setText is not working -

मैं एक बटन प्रोग्राम को एक ड्रॉएबल चयनकर्ता । मैंने कॉन्फ़िगरेशन के बाद, मैंने बटन का उपयोग करके setText () विधि सेट करने की कोशिश की लेकिन यह काम नहीं करती। यहां मेरा कोड है: बटन b = नया बटन (यह); Int pxw = (int) getResources ()। GetDimension (R.dimen.level_button_width); Int pxh = (int) getResources ()। GetDimension (R.dimen.level_button_height); लेआउटपरम एलपी = नया लाइनर लेआउट। लेआउटप्रम्स (पीएक्सडब्ल्यू, पीएक्सएस); एलपी। सेट मार्जिन (8, 8, 8, 8); b.setLayoutParams (एलपी); B.setShadowLayer (8, 0, 0, 0xA8A8A8); Int sdk = android.os.build.VERSION.SDK_INT; अगर (एसडीके और एलटी; एंड्रॉइड.ओ.यु.बिल्ड.VERSION_CODES.JELLY_BEAN) {बी.सेटबैकग्राउंडड्रॉउबल (getResources ()। मिलनायोग्य (आरड्रॉउवल.लेवल_बटन)); } अन्य {बी.सेटबैकग्राउंड (getResources ()। GetDrawable (R.drawable.level_button)); } B.setTextColor (0xFFFFFF); B.setTextSize (TypedValue.COMPLEX_UNIT_DIP, 36); b.setText ( "Heey"); B.setOnClickListener (नया OnClickListener () {@Override सार्वजनिक void onClick (दे...

asp.net mvc - FormsAuthentication.SetAuthCookie, session HighJacking and AJAX -

I understand AuthCookie, which is created with FormsAuthentication, takes care of encrypting (am I right? ) And Ath Token Once created, the token / auth cookie passes on every customer & lt; - & gt; Contact the server What do I think to prevent the token from being forced, we have to keep the site under SSL (HTTPS) Quesetion # 1: AJAX compromises safety of our site? Will they also work under HTTPS? Question # 2: We use IIS7.5 and some of our pages do not require a secure login; But looking at AuthCookie, I think it's best to keep everything under HTTPS. Will there be a clear demonstration flaw with this approach? What are some other disadvantages? Cheers Your understanding is correct ASP.NET encryption of your forms Efficient Token , Which is the value of your home cookie and prevents it from tampering, but if the virus is sent through the wire, then it is acceptable with the third party theft which leads to the session abduction. For your specific questi...

naming conventions - Can I BEGIN a CSS selector ID or Class with an underscore? -

इस सवाल का पहले से ही एक उत्तर है: 8 जवाब उदाहरण के लिए: # _id-name {} और ._ class-name {} मुझे पता है कि शुरुआती दिनों में अंडरस्कोर की अनुमति नहीं थी - साथ ही साथ डबल हाइफ़न ( - )। लेकिन क्या यह ठीक है और क्या सभी ब्राउज़र एक वर्ग या आईडी को पढ़ने / समझने में सक्षम होंगे यदि यह _ से शुरू होता है? मैं बस सीएसएस के बजाय मेरे कोड के आधार पर html पर आधारित हूं। संक्षेप में, आईडी को जाहिरा तौर पर एक अक्षर से शुरू होना चाहिए ( कोड> ए-ज़ा-जेड ) और इसके बाद किसी भी अन्य अक्षर, संख्या, अंडरस्कोर या डैश हो सकते हैं व्यावहारिक रूप से, आप आईडी को - या _ के साथ शुरू कर सकते हैं और यह काम करेगा: लेकिन एक संख्या से शुरू करना नहीं काम करते हैं। हालांकि ये प्रतिबंध सीडीएटीए सूची वाले वर्गों पर लागू नहीं होते हैं, लेकिन व्यावहारिक रूप से ऐसा ही लगता है: इसलिए आपको एक सुसंगत और भविष्य के सबूत मिलते हैं ब्राउज़र का अनुभव, मैं आईडी, वर्ग के नामों आदि के साथ कुछ दिखने से बचने का प्रयास करूंगा।

php - in_array() does not work -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब यह सच क्यों वापस करता है $ सुई = सत्य; $ Haystack = array ('that', 'this'); प्रिंट इन_अरे ($ सुई, $ हंसस्टैक); // 1 संपादित करें: मुझे पता है कि कोई भी in_array () प्रकारों को जांचने के लिए कड़े पैरामीटर को पारित कर सकता है मैं जानना चाहता हूं कि क्यों विशेष रूप से मेरे द्वारा दिखाए गए व्यवहार को प्रदर्शित किया जाता है। कोई भी PHP में गैर खाली स्ट्रिंग TRUE के बराबर है जब ढीली तुलना की जाती है (यानी प्रकार को अनदेखा कर दिया जाता है)। आप ऐसा करके परीक्षण कर सकते हैं: var_dump ('this' == true); Var_dump ('वह' == सही); लेकिन सख्त तुलना करते समय परिणाम काफी भिन्न होते हैं (यानी प्रकार को ध्यान में रखा जाता है): var_dump 'यह' === सच); Var_dump ('वह' === सच); फ़ंक्शन में कड़ी तुलना को लागू करने के लिए, आपको वैकल्पिक तृतीय पैरामीटर को TRUE को सेट करना होगा: $ सुई = सच; $ Haystack = array ('that', 'this'); Var_dump (इन_अरे ($ सुई, $ हयस्ट...

Add single value to a multidimensional array vba and then redim -

I'm running in a few issues to populate a multi-dimensional version array. What I am trying to do is add a single value to the array in line 1, column 1. Although the following code does not work arr arr (1,1) = 3 building on it, when I If you want to add more value to the array, some conditions are met, for example C = 2 to 10001 sheets ("data"). If the range ("P" & amp; c) = branch and range ("Q" & amp; c) = department and range ("R" & amp; c) = subdept then arr (UBound (Arr) + 1, 1) = range ("A" & amp; C) end if the next c the loop is finished and I have it in variable length as the array After that, I have ended the extract of values. However, Redim arr () is not working either. Also, I should say that I do not have any real need to be multi-functional, just the variables in size Saying, I do not know a way to create 1 dimensional dynamic array in VBA In short 1) Why arr (1,1) throw me an ...

javascript - Trying to post a variable into a jquery click selector -

I am trying to insert a variable as a selector on a click event for a dynamic row in a table I am If I hardcode the class name, then the row click works fine, if I change it to a variable then it is not. I've put a warning inside the function to verify that the function is being given variable, and that's it. $ ("# testDiv") Endon ('& lt; tr class = "PathHideTest"> Here's my job: $ j (document) .ready (function () {var pathName = 'test'; $ ('# testDiv '), Click on' Trapathy '+ path name, function (event {warning ("found row");});}); As mentioned above, if I have a hard code 'tr.PathHideTest' in the selector, this is not a problem. Any help would be appreciated. var pathName = 'test' with uppercase t :) The code will be: $ (document) .ready (function () {var pathName = 'test'; $ ('# testDiv'). ('Click', 'Tr.phathheide' + pathName, functio...

Insert text to cursor position in rich:editor when click button by Javascript -

I use javascript to insert some text on cursor position in rich: editor , But this is not You can see this clearly in this picture: This code is: function changes () {// var val = document.getElementsByClassName ("subject"); Var Val = document.getElementById ("# {Rich: Customer ID ('Editor')}"); If (val! = Null) {var value = val.getValue (); Var position = Value.lice (0, Wall. The choice Not selected) Length; Var result = value.substr (0, position) + "{chuc_vu}" + value.substr (position); Document.getElementById ("# {Rich: Customer ID ('Editor')}" ) Value = result;}} If I change the function change With the h: input text then it works fine. When I debug in Firefox with firebug , I can not get rich in : editor . This line of code shows by value as undefined : var value = val. GetValue (); whenever I change the text from "{chuc_vu}" "# {chuc_vu}" ), so that it is empty t...

emacs - Distinguish between single (*.gz) and double (*.tar.gz) file type extensions -

I'm looking for some help, please differentiate the difference between a file extension ( E.g., * .gz ) and a double file extension (for example, *. Tar.gz ). The fraction of the function that selects the following is to open one or more files - for example, in MACS, start a process and open it externally or compressed / decondress Please. I basically wrote this function (excerpt from dired-do-create-files borrowed from dired-aux.el ), only single file type extensions Keeping in mind, and now it will like to include potential double file type extensions to extend your functionality. (defun test-for-tar-gz-extension () (interactive) * ((FN-list (fear-out-mark- Make-file)) (RFN-list) (FRESH DEEER-MAK-RISTAL) FN-LIST) (Dear-One-File (and (CONSOP FN-LIST) (NULL (CDR FN-LIST)) (Car FN (List-one-file-fear-one-file FN-list) (ANST (CNSP (stripping input-filename) (file -name-extension-input-filename)) ((listp Input-filename (file-name-exte (Path) (path (if string-input-filena...

html - How to use regex to validate a text box in jquery? -

This question seems to be repeated to someone but it is not. This script was working perfectly well, till this morning, but it now works oddly. I have tried several suggested ways to change the code, such as removing the second part and if! = "True" but if there is no luck, check the situation. jquery $ ("# controlButton"). Click (function () {var SHPname = $ ("# fname") Val (); var textfieldmask = /^[az\.ss-] {2,} $ /; /// Check full name if (SHPname. Length {0} {var testname = textfieldmask.test (SHPname); warning (testname); if (testname == "true") {var tstnm = "ok"; alert (tstnm);} other {warnings (" Enter the full name! "); $ ('# Fname'). (); False return;}} {Alert (" Please enter a name "); $ ('# fname'). Focus (); Back; }}); HTML & lt; Label class = "required" = "name" title = "enter your name" & gt; & Lt; Input type = "text...

Javascript not requesting permissions from Facebook -

and not the error when trying to use the stuff that is outside the current permissions, but just return the user id Has been ... window.fbAsyncInit = function () {FB.init ({appId: '12345myIdHere', status: true, cookie: true, xfbml: true}); FB.Event.subscribe ('auth.authResponseChange', function (response) {if (response.status === 'connect') {testAPI (); console.log (response);} else {testLogin ();}} );}; Function Test Login () {FB.Blogin ({Scope: 'User_States'}); } Function testAPI () {FB.api ('/ me / permissions', function (response) {console.log (response);}); FBP ('/ m? Field = status', function (feedback) {console.log (response);}); } The response shows that only the original permissions have been given and that in my app settings as a user also shows that there is no additional permission in the app found this ... This is bug in facebook ap ... if xfbml is true set to true object object If ignored, set permissions on t...

The controller for path was not found or does not implement IController with nopcommerce -

I want to display went product category most visited home page by category using the plugin. I ProductMostviewedController.cs: [ChildActionOnly] public ActionResult CategoryHomepageCategorywiseMostViewedProduct (? Int CategoryID, integer productThumbPictureSize) {var categoryProduct = _productService.CategorywiseMostViewProduct (CategoryID); Var Model = PrepareProduct Display Model (Category Products, True, Truth, ProductTiperscias) .Oolist (); See Return ("../view / List / Category Template. ProductsWorked Orline CSSM", Model); } [NonAction] I already CategoryTemplate.ProductsInGridOrLines.cshtml code @ Html.Action ( "CategoryHomepageCategorywiseMostViewedProduct write "," ProductMostviewedController ", new {classid = Model.Id}) but I got an error: " network error: 500 internal server error Please tell me what's wrong? Thank you in advance. @ Html.Action (" CategoryHomepageCategorywiseMostViewedProduct "...

ios - Auto resizing is not working for view contents in xib file -

I'm new to iOS. I've created a xib with many controls like the area of ​​text and buttons, they are 3.5 inches Working on screen, but not working on a 4-inch screen, it is not resizing. I tried auto resizing mask and set all the auto size values ​​but did not work for 4 inch screen in iOS. I have version 5.0.2 and have been working on iOS 7. I think you forgot to set up the mask for the entire container please please Check it out.

openstack - Openflow and nginx webserver -

I'm a newbie for openstack. I think the use of neutron to deploy openflow compatible network L2-L3 devices Can be done eg. Owes deployed on the fly Can it be extended to appoint L7 devices eg Web server like NGNX? Googling does not generate any convincing answer appreciated input Nitrone to OpenSock L2 and L3 Is designed to meet the needs. If you are looking for other services, then you should take a look at the summer project.

java - Error during Hibernate connection -

Struts problem report Struts has detected an unhandled exception Action: Message: Error! Please, check the option of JDBC / Jedianai configurations and database servers. Not found JDBC driver class could not be open or keep a Hibernate session ValueStack com.mysql.jdbc.driver file: com / GoogleCode / s2hibernate / struts2 / plugin / interceptor / SessionTransactionInjectorInterceptor.java line number: No 134 JDBC driver class found: com.mysql.jdbc.driver kept I MySQL jar lib and lib all right for me to solve this issue I'm trying to connect to the database Please suggest that the referees are checked in Hibernate A Oteshn Staktros org.hibernate.SessionException: Error! Please, check the option of JDBC / Jedianai configurations and database servers. Could not open or insert a hibernate session in ValueStack: The JDBC driver class was not found: com.mysql.jdbc.driver You have the wrong driver class configured. See examples of the correct class name com.mysql.jdb...

recurly - Cannot add address info in Create Account API in PHP -

$ account = new recur_account ('1'); $ Account-> Email = $ _POST ['email address']; $ Account- & gt; First_name = $ _POST ['first name']; $ Account-> Last_name = $ _POST ['last name']; $ Address = new recur_adress (); $ Address- & gt; Address1 = $ _POST ['address']; $ Address- & gt; Country = $ _POST ['country']; $ Address- & gt; City = $ _POST ['city']; $ Address- & gt; Phone = $ _POST ['phone']; $ Address- & gt; State = $ _POST ['state']; $ Address- & gt; Zip = $ _POST ['zipcode']; $ Account-> Address = $ address; $ Check = $ account-> Create (); Your syntax and everything else looks ok I was able to use your code (Modify slightly): $ account = new recurly_account ('1'); $ Account- & gt; Email = 'emailaddress@email.com'; $ Account-> First_name = 'firstname'; $ Account- & gt; Last_name = 'lastname...

ruby `encode': "\xC3" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError) -

There are strange characters in Hannibal episodes in TVDB. For example: one? Uf Then Ruby spits out: ./ manifesto.rb: 19: In 'encode': "\ xC3" from ASCII-8 BIT to UTF -8 (encoding :: unchanged conversion version) from ./manifesto.rb: 19: in` to_json './manifesto.rb:19:in` & lt; Main & gt; ' line is 19: enters @ tree.to_json Does anyone dealing with these non The way is the UTF character? I could not change them, but changed them? Or will you ignore them? I do not know, any help appreciated. The strange part is that running this script works fine by Cron manually generates this error. It seems that you should use other encoding for the object. Instead of using @ tree.force_encoding ('ISO-8859-1') , you should set the appropriate codepage to variable @tree . Because ASCIII-8 BIT is used only for binary files. To find the existing external encoding for Ruby, issue: encoding.default_external If the problem...

java - Logs don't show up under Google App Engine project console -

I'm struggling with this basic stuff a week ago Simple log work in my Google App Engine (JAVA) app can not do. I started with very straight forward looking Within my finishing square I have defined the logger in this way: Pre> private static last logger log = logger.get logger (GowMainEndpoint.class .getName ()); Then I tried to login in one of my endpoint methods like this: log.info ("test"); There is nothing visible in the logs I have to logging. Properties file and appointe-web XML is configured as written in the tutorial. Edit: Strange thing: logs. Warning ("test"); Showing logs ... OK I thought it: logging.properties in the file I have changed .level = wARNING to The comment line says: # Set the default logging level for all loggers information P> But now I feel that it should be more: # set all MINIMUM logging levels for all loggers Switch to

android - ActionBar with fragments accessing widgets from fragments crashes the app -

I have an activity (tabActivia.java) that contains a piece container in which there is a layout, with touch The action bar is clicked in. Now, in the menu of the action bar, I have a menu-option (a button) that saves content from pieces. My problem is as follows: I have a fragment fragment_aloc.xml where I have an edit text with a textview and id = "edaloc", I get this edit from the Save button I want to click on (menu) I want to do this for all the pieces (get values ​​from those widgets which are located to save values ​​in the database). @ Override Public Boolean On Option Items (Manitem Item) {Switch (ITAT. ITMID) {Case R. .. // Here is the code that receives value from pieces}} But when I try to do this (click on the save button) I get an error: 4805-4805 / ro.myapp.app E / AndroidRuntime ?? Fundamental Removal: The main java.lang.NullPointerException.TabActivity.onOptionsItem selected (TabActivity.java:134) and line (134) on ro.myapp.app in which this ...

jquery confirm plugin is not working -

I'm trying to get out of jquery plugin using jquery1.8.3. But event handler ( alerts ) is not working for any button. & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Body & gt; & Lt; Button class = "confirmation" type = "button" & gt; Delete comment & lt; / Button & gt; & Lt; Link rel = "stylesheet" href = "http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" /> & Lt; Link rel = "stylesheet" href = "http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css" /> & Lt; Link rel = "stylesheet" href = "http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /> & Lt; Script src = "http://code.jquery.com/jquery-1.9.1.js" & gt; & Lt; / Script & gt; & Lt; Script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" & gt; & Lt; / Scri...

mysql - Export localhost Sql and import it on Server gives me errno 150 -

My suggestion is wrong with some foreign keys, but I'm not getting a signal. Error while importing SQL: Add an optional table 'claim' contract 'FK_66 A8F1231 B7B 246A' foreign key (`purchase order_id`) ) Order the purchase of references (`id`) on the delays case, add the contract 'FK_66 A8F 12372 94986C' foreign key (` article_id`) reference 'paragraph' (`id`); # 1005 - The table can not be created '. Databasename # SQL-5 c7_568c0 '(errno: 150) I also checked the terms of the answer to this question but I could not make a mistake. No estimates Tables:.? CREATE TABLE `Article` (` Id` not integer (11) NULL AUTO_INCREMENT, `name` varchar (255) utf8_unicode_ci zero impedance,` number` int (11) NOT NULL, ` Currency` tinyint (1) not NULL, `price` double not null,` tolerance` integer (11) no null, primary key (`id`)) engine = InnoDB default charset = UTF8 match = utf8_unicode_ci; - -----------------------------------------------...