Posts

Showing posts from March, 2014

javascript - Markers within Google Api -

I have a problem, I can not make the marker clickable for my project, I tried it with google.com but Nothing works, can anybody help me? var map = new google.maps.Map (document.getElementById ("googleMap"), map options); & Lt ;! - Add markers to use previously specified locations - & gt; Var marker = new google.maps.marker ({status: myLatlng, url: 'http: //www.google.com', title: 'Tobermiri distillery', map: map,}); thanks You can click markers like this Force: google.maps.event.addListener (marker, 'click', function () {location.href = 'http://www.google.com';});

javascript - JointJS: Hello World example doesn't work -

I am always looking at this exception when I try Hello World from the UN site: UnkType type error: Can not code call 'getStrokeBBox' undefined : & Lt; Script src = "js / joint.js" & gt; & Lt; / Script & gt; - & gt; & Lt; Link rel = "stylesheet" type = "text / css" href = "http://www.jointjs.com/downloads/joint.css" & gt; & Lt; / Link> & Lt; Script type = "text / javascript" src = "http://www.jointjs.com/downloads/joint.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; Var graph = new joint. Dia.Graph; Var Paper = New Combined Dia.Paper ({AL: $ ('#holder'), width: 600, height: 200, model: graph}); Var rect = new joint.shapes.basic.Rect ({position: {x: 100, y: 30}, Size: {width: 100, height: 30}, attrs: {rect: {fill: 'blue'}, Text: {text: 'my box', fill out: 'white'}}}); Var rect2 = rect.clone (); Rect2.translate (300)...

javascript - Adding text inside of if() from a function -

I am having a problem, I have created this function: function array ( Number) {Var textToReturn = ""; (Var i = 1; i & lt; = number; i ++) {textToReturn + = "array [i" + (+ (i-1)) + "] == artex [" + (i-1 ) + "]"; If (i! = Number) {textToReturn = textToReturn + "& amp;" ;; }} Return text again; }; And I am using IF condition inside this function: for (var i = 0; i & lt; array.lambi ; I ++) {if (ArrayCounter (arrayText.length)} { but it does not work, and if I manually add the result of the array (IF) This will work inside, what should I do, it works? but it does not work this job Does and returns the desired text. I am using this function in the IF condition ... but the value of a high-position boolean is expected, a string No! You were originally executing if ("array [0] == array text [0] and array [1] == array text [1]") { but need if (array [0] == array text [0] and array [1...

javascript - is - select * from empty table possible? -

On my website I'm trying to select 2 tables - from which tableB can be empty, so this is someone Also, the result is not returning when the tableB is empty I hope I understand it properly. Any suggestions? curatio.webdb.getAllTodoItems = function (renderFunc) {var db = curatio.webdb.db; Db.transaction (function (tx) {tx.executeSql ("Select * to Table A, Table B", [], RenderFunk, Quiteo.wbb.bt.;}); } Basically the example in the table is the name and aliases column and the example in TableB is the address of the address. But sometimes there is no address, and then I can not find anything to display. I basically need to ignore the tablebars if it is empty. Although your query does not point to it, I still think that you might possibly Looking for, because I'm assuming that you want to add data from two tables with the same value, one column from table B (which is known as the foreign key). This query selects the values ​​of the first table, even if it...

html - Dynamic Height on Responsive Image Grid? -

Image
I have a "grid" of pictures with the products, and I want them to be responsive. As you can see, the images on "Mobile View" fit on the right and look fine, but on the desktop, when they grow horizontally, the height is very high, so that the image is very much Reduced. Here's how the site looks in mobile size: and desktop size: Is there a way for height to grow, while still keeping them in a "flush" and grid? I do not know why I find it very difficult! Site: Simple (and perhaps only) to talk, To use fixed height but media is with questions, this means that depending on the width of the screen you change the height of the link, it makes sense because you always have 1, 2, 3 or 4 columns, so It is quite easy to make rough estimations of the desired heights for each case.

assembly - MIPS Memory Accessing -

I'm trying to do three things using Maipis, but at the moment it does not know where to start too . I need to write about the value of 0x10000000 at address in memory place. Then change the 16-bit binary value in either the decimal or hex to include it as part of my code, first in a register, say in value, then store the register value at that address in memory. So I 1010 1010 1010 1010 1010 1010 1010 1010 to the next memory location need to write a value, the 0x10000004 on. 32-bit binary value is then converted to the first upper sixteen bits Louis the lower sixteen bits using ori to load using, and then. Finally, I need to add stored value is 0x10000000 and stored at 0x10000004 , and 32-bit word results the next address in the memory Please. Any help would be extremely helpful! And code etc. Thanks guys Try it: addi $ t0 $ null 0x5555 #store 0101 0101 0101 0101 $ in $ t1 sw t0 Louis $ t0 $ t1 0x1000 #store 0x10000000 0 ($ t1) Louis $ t0 0xAAAA ...

php - Error in Relationship whit entities in doctrine2 -

There is an error in my relationship between my institutions when I make DB with my institutions, there is no error, but if If I try to find the relation of an element, then the error returns: Logic \ "MAP \" passed to the default \ QuoteStrategy :: getJoinColumnName () serial: On blank, C: \ xampp \ htdocs \ myproject \ vendor \ doctrine \ orm \ lib \ doctrine \ ORM \ Persisters \ BasicEntityPersister.php on line 1670 and C: \ xampp \ Htdocs should be defined in My relationships are: Role.php * @ORM \ ManyToMany (targetEntity = "application \ model \ user", inverted = "idRole") * @ORM \ JoinTable (name = "UserRole") * / Protected $ idUser; User.php * @ORM \ ManyToMany (targetEntity = "login \ model \ roles", mapped = "IdUser") * / protected $ idRole; I have tried other methods listed in, but I am getting the same error. How do I correct this problem?

matlab - How to calculate the values of non-explicit function for all points of a meshgrid? -

मान लें कि मेरे पास फ़ंक्शन है f = @ (x, y) g ( X, y) g स्पष्ट नहीं है x और y मूल्यों को इनपुट करने के बाद इसे संख्यात्मक रूप से गणना की जानी चाहिए। कैसे मैं अंकों के इस फ़ंक्शन के सभी मानों की गणना और सहेज सकता हूं [x, y] = मेशग्रीड (0: 0.1: 1,0: पी / 10: 2 * पीआई); मैं f [x, y] को कॉल करता हूं, लेकिन यह काम नहीं करता। आपके पास ऐसा करने के दो तरीके हैं आपका फ़ंक्शन जी को मैट्रिक्स के साथ काम करना चाहिए, या आपको मूल्य एक एक करके देना चाहिए फ़ंक्शन eval_on_mesh () f1 = @ (x, y) g1 (x, y); F2 = @ (एक्स, वाई) जी 2 (एक्स, वाई); [X, y] = मेशग्रीड (0: 0.1: 1,0: पीआई / 10: 2 * पीआई); % # यदि आपका फ़ंक्शन मैट्रिक्स के साथ काम करता है, तो आप इसे यहां आंकड़े, सर्फ (एफ 1 (एक्स, वाई)) की तरह कर सकते हैं; % # यदि आपका फ़ंक्शन नहीं है, तो आपको मूल्य एक एक = sol = zeros (आकार (x)) देना चाहिए; I = 1 के लिए: आकार (एक्स, 1) जम्मू = 1 के लिए: आकार (एक्स, 2) सोल (i, j) = f2 (x (i, j), y (i, j)); अंत अंत आंकड़ा, सर्फ (सोल); अंत समारोह res = g1 (x, y) res = x ^ 2 + y ^ 2; अ...

cordova - How to get scan barcodes with an iPhone -

I want to write an HTML5 application to activate the user's camera to read the barcode. I do not know what the difference is between phoneagap and cordova so i am really confused i am probably installing a lot of software on my pc, but i'm just trying to follow the instructions I am hopeful that at some point some Javascript will start writing. I have installed NPM on my Windows 8 machine. When I type "phonegap run android" [phonegap] Android SDK detects the environment ... [phonegap] using the local environment connecting the Android platform [phonegap] ... [PhoneGrap] Unavailable Library Cordova / Android / 3.3.0 [PhoneGap] Download https://git-wip-us.apache.org/repos/asf?p=cordova-android .git; A = snapshot; H = 3.3.0; Sf = Tgz ... [Error] An error occurred during the creation of the Android sub-project. C: \ Users \ Phillip \ .cordova \ lib \ android \ cordova \ 3.3.0 \ bin \ node_modules \ q \ q.js: 126 throw e; ^ Error: Error: To execute the command ...

javascript - Canvas setLineDash and lineDashOffset NOT resetting in iOS/Safari? -

यहाँ बेला देखें: मेरे पीसी पर, ctx.lineWidth = 20; ctx.setLineDash ([20,30]); ctx.lineDashOffset = 10; ctx.beginPath (); ctx.moveTo (150,150); ctx.lineTo (240,240); ctx.lineTo (180,40); ctx.stroke (); Ctx.closePath () वांछित डैश / ऑफ़सेट अब ctx के साथ लाइनों का पहला सेट देता है। setLineDash ([0,0]); कमांड के अगले बैच में ctx.lineDashOffset = 0 : ctx.beginPath (); // रीसेट करता है डैश ... IOS सफारी को छोड़कर ऐसा लगता है ... ctx.setLineDash ([0,0]); ctx.lineDashOffset = 0; ctx.moveTo (0300); ctx.lineTo (0,250); ctx.lineTo (100,400); ctx.lineTo (200,300); ctx.stroke (); Ctx.closePath () लाइनों के पहले सेट के बाद कोई डैश गुण रीसेट करने लगता है। फिर से ठोस लाइनें प्राप्त करें एक iPad2 चलाने वाले सफारी पर ... ऐसा लगता है कि पूरी तरह से नजरअंदाज कर दिया जाता है, लाइनें धराशायी रहती हैं। ऐसा क्यों है? इसके अलावा, क्या लाइन डैश ठीक से रीसेट करने के लिए कुछ अन्य विधि है ...? इस संकेतन का उपयोग करें, यह सभी ब्राउज़रों में काम करेगा जो setLineDash का समर्थन करता है ...

Python 3 rounding behavior in Python 2 -

In Python 2.x, the following behavior has the following: If two multiplier equals The form is closed, the spherical is away from 0 (for example, the goal is 0.5) 1.0 and the round (-0.5) -1.0) In Python 3.x, more general: If two factors are evenly closed, then the spherical is also preferred (hence, example For, both rounds (0.5) and goals (-0.5) are 0, and the round (1.5) is 2). Is this an easy way to get this behavior in Python 2.x? Unfortunately, this is not included in the module. Maybe there's another similar module that I have not yet received? Or, another way to drag Python 3.x functions into Python 2.x? Obviously, I can write a new function that generates the desired behavior, but if there is a solution, I'm curious to use it. The real Python 3.x function, unnecessary complexity and code To avoid retaining An odd dependency, this can work: Gt; & Gt; & Gt; Eggs around imports & gt; & Gt; & Gt; About (0.5) 0 >> gt; ...

c# - How to limit 0xFEEFEE line numbers in PDB files -

I am working on a device that uses codec to analyze the code in nit binary. Under this, I am checking PDB files for buyers, which links searches to source code lines. This works fine for most cases: I get the correct source file path and line number .pdb. However, in some cases (I believe that when code is inside code #region , but not sure), line number set to 16707566 (0xFEEFEE) has gone. It is less-known to indicate that the line has been hidden from the user. The problem is, when. As a line number in PDB in line number, I can not do much with it - I can not (easily) tie the source back to my analysis findings. I tried to change many visual studio options, and after that I recreated the code that I am doing but I still have the line number for code in the fields as 0xFEEFEE I'm receiving . (For example, I tried to deactivate the fields but it does not help. In addition, the analysis code is created from the Build Script, not the IDE.) Is it C # compiler Can possibl...

multidimensional array to database in python -

I am trying to remove a way to put a two dimensional array (using a python) in a squatted database . My array: ['hello', 'hello', 'hello'], ['hello', 'hello', 'hello'] I would like to have a new line with each of the 'hello' for each 'hello', which is its specialty of 'Hello', I am not sure what I am trying to do, it is also possible (me Hope this is). I tried to follow some other posts but I get an error: sqlite3.InterfaceError: error binding parameter 0 - maybe unsupported type Does anyone know how to insert a multi-dimensional array in the skeleton database? Any help would be appreciated. This is my code: import sqlite3 array2d = [xrange (3)] for x in xrange (3) x for [['hello'] var_string = ',' .join ('?' * Len (array2d)) conn = sqlite3.connect ('sample.db') c = conn.cursor () c.execute ('' Create table create sample (name text, line 1, text, Line_2 tex...

ruby on rails - Use blank space to indent -

I have a dropdown that uses line gems and orders order order order. The following code in the controller @lines = ancestor_punis (line. Alorez (: order = & gt; 'name')) {| I | "# {'-' * i.depth} # {i.name}"} I am trying to change the indenting character, "# {'-' On a double space, but the railing ignores "# {'' ' ] like a location. Is there any way that I can force it to give it a blank space? /p> The space is ignored by the rail, but not by the rail, you can change each location to & Amp; Nbsp; (non-breaking space), but do not forget to include .html_safe at the end of the string.

Python: Finding a string within a string -

I have two criteria, both the string, and I have to find that string where the second string gets in the first string. I can do this when it is only one character, but when it does not have more of an example here I can: for calculation (primary): if i What I tried for this problem: for the category I (0, Lane (initial) , 1): boundary for g (lane (initial), i, -1): if the initial [i: j] == last: index_str = i break However, it is always Gives "no" so that no matter Sector can help with? I think you need index () method Example usage (taken from) str1 = "This string example is .... wow !!!"; Str2 = "test"; Print str1.index (str2);

windows phone 7 - HtmlAgilityPack XPath Invalid Token -

Sometimes the exception is not thrown at all by seeing the invalid token exception and XPath is static. Not sure what is happening. doc.DocumentNode.SelectSingleNode ("// * [In [@ itemprop, 'softwareWarson']]"); . Message: '// * [In this (@ itemprop,' softwareversion ')] has an invalid token StackTrace: MS.Internal.Xml.XPath.XPathParser.ParsePredicate on MS.Internal .xml.XPath.XPathParser.CheckToken (AstNode qyInput) MS.Internal.Xml.XPath.XPathParser.ParseStep at (AstNode qyInput) MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath on (AstNode qyInput) MS In MS.Internal.Xml.XPath.XPathParser.ParseLocationPath (AstNode qyInput) embedded in MS.Internal.Xml.XPath.XPathParser.ParsePathExpr (AstNode qyInput) MS. Explore XML.xpath.expathpresor.PersUnianXPro (MS.Innal.XML.xpath.expathpresor.partsUniereXpropper (ASTNodeQyInput) on MS.INNAlXaxx.xpath.expathpers.paras multiplexerxp (Astonode qyInput). MS.Inx.XPathParser .xPath.XPathParser on MS.I...

Images ALT tag in a text file retrieve by php -

Image
I set up a small gallery based on I am trying to give this gallery an ultimate tag. Using Picture File Names I need a way to use the text file associated with my images, something like this: myprettypicture.jpg = "Here is a beautiful picture" mynotsoprettypicture.jpg = "There is not a very beautiful picture here" Then put the tag in the form of ALT with the php gallery For the To retrieve it. So far, I have seen in many galleries and some are using this method, but I do not know how to use it with my actual gallery ... Do you have a script or simple Do I close the law? Thanks! If I understand you correctly, then you get a source_file HTMT as the source below. has gone. & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Body & gt; & Lt; Img src = "myprettypicture.jpg" alt = "myprettypicture.jpg" height = "50" width = "50" & gt; & Lt; Img src = "mynotsoprettypi...

c# - Asp.Net MVC Property Grid Replacement -

I'm currently migrating an old form application for MVC in the application of forms, there is a property grid, which automatically Connected to an object from. There are specific [category] attributes for each category in the object. The object is also very complex. Is it better to create a scene from scratch or is it better to use the reflection to generate the UI personally, I prepare it to use HTML, but the object is too large If this is completely HTML It's better to create a whole UI using TextboxFor (), so this is the way I will. Besides, I can also make a vidododal for this, but it's probably Thank you! It depends! Do you have many similar things that can benefit from reflection? Is this code being reused several times in different views? If so, then reflection. Otherwise the reflection below the path will take more time for you to work. And you already need HTML, just use it! keep it simple.

vb.net - How can I generate all permutations / combinations of multiple arrays? -

My goal is simple, I'm trying to prepare a list of all possible combinations for a product in the database. For example; Product Option: Product Option: Color / Value: Red, Green, Blue Product Option: Size / Value: Small, Made, Large, XL / Li> Code> Small, Red, Small, Green, Mens Small, Blue, Mens etc. I need to do this work if I can pass 2,3,4 or 5 arrays in it. I have done a lot of research and I have come in the following articles but I am unable to fulfill my goal. The articles I found are as follows: Usage: String like slow s1 () = new string () {"small", "Made", "Big String () = "New" string () {"red", "green", "blue"} dim s3 as string () = new string () {"male", as " "Woman"} dims string () () = cartesian product (s1, s2, s3)

javascript - in MVC 5 how to pass selected value to html action in jquery ajax function -

When I select something from the user list, I am using jQuery AJAX to load some data. How can I pass the value of the options selected in the action parameters? I tried making variables selected value but it says that the name "selectedValue" does not exist. & lt; Script & gt; $ (Document) .ready (function () {$ ("# students"). Change (function () {var selectedValue = $ ("# students"). Val (); $ .ajax ({url: '@ url Type "GET", success: function (result) {$ ("# Notifications"). Html (results) (Action) ("Gate Data", "Sample", New {Table = "Student", ID = selected}), ;}});});}) & Lt; / Script & gt; Are you using the correct variable? It seems that you are reading the value for selectedValue but try not to use it var selectedValue = $ ("# students") . Val (); $ AZ ({url: '@ Url.Action ("GetData", "Sample")? Table = Student & amp; ID =...

powershell - Security Token Validation Error with JWT token -- HDInsight -

I created a new storage account and preferred an HDICcluster cluster on Windows Azure. However, when I try to run any command on the Windows Azure Powershell related to the cluster, I get the following error: PS C: \> Get-AzureHDInsightClusterName $ clusterName Get-AzureHDInsightCluster: Request failed with code: Unauthorized content: & lt; Error xmlns = "http://schemas.microsoft.com/windowsazure" xmlns: i = "http: //www.w3.ORG / 2001 / XMLSchema-instance" & gt; & Lt; Code & gt; Authentication field & lt; / Code & gt; & Lt; Message & gt; A security token validation error has occurred for the received JWT token. & Lt; / Messages & gt; & Lt; / Error & gt; In line: 1 character: 1 + goose-ezoor HDI-crystal-name $ cluster name + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ + Category information: Not specified: (:) [Get-AzureHDInsclCluster], HTTP://www.facebook.com/FullQquiledErroid: Microsoft. Hradop Client HTML...

visual c++ - SOLVED: Call derived class method from within base class? -

I am trying to call a non-virtualized base class method, which is a derived method of the virtual class of the base class Overrides one of them. For my life, I can not get it to work. See the code below: Public Reef class base class {Virtual Zero overridden mode () {} void run () { // Do some initial work here. // Call the version of the derivative class of the orriden method to do the final work: override mode (); }}; Public Reff Class DeriveClass: Public BaseClass {Virtual Zero Overridden Mode (override) // // Do some final work here. }}; Int main () {DerivedClass ^ DC = GCN DerivedClass (); DC & gt; Run (); } Using the above code, the override mode of the base class is called the place of the override mode of the derived class, which is what I do not want. I was under the impression that, while using polymorphism, call the base class method which is overridden, instead the overwritten method of the derived class should be called. I have also tried to use the abstract...

javascript - knockout and Select2 get selected object -

I am working on a project where im Net Web API, Knockout and in this example, I am using jquery plugin. / P> What to do to set some field values ​​after the change of selection I Select2 control list is loaded after the AJAX call and the objects are more data than just the id and the text. How can I get the rest of the data, so I can fill in other inputs with it? For some time, I am trying to update a view-model after the change of selection (but I get the data when this plugin calls AJAX). Here is a sample data that should be in the selected object: " Customer ": {" id ": 13," no ":" 0000012 "," name ":" "SS", "Phone": "458447478", "Customer Location": [], "Something", "Address": "Some More", "Zipcode": "324231", "City": "Simcity", "Area" }} Here's where I am now: Sample html: & lt; inp...

javascript - loading external TPL file to JST -

I am trying to load a TPL file content for JST ["App / Index"] loadTemplates: function (view, callback) {var deferreds = []; $ Kiic (see, function (index, VA) {deferreds.push ($. Get ( 'tpl /' + Visual + '. Html', function (data) {window [ 'JST'] [ "App / Index" ] = Data;}, 'html'));}); $ .When.apply (empty, adjourned) .Done (callback); } The Chrome Inspector shows that TPL files are being loaded, but the spinal cord visualization can not access the JST template. Try this: loadTemplates: function (view, callback) {Var deferreds = []; $ Kiisi (see function (Index View) {Defreded Pius ($. ( 'Tipl /' + Visual + '. Html', function (data) {if (window [ 'JST'] === null 0) {Window ['jst'] = {};} window ['jst'] ["ap / index"] = data;}, 'html'))}); $ .When.apply (empty, adjourned) .Done (callback); }

Sum with one to many Spring Data JPA -

I am trying to get an amount with multiple relationships, shown by the following relationships (shown Gone parents only): @tainty @table (name = "parent") Serializable to the public class parents {Private Static Finals Long SerialsUID = 7348332185233715983L; @ Id @basic (optional = false) @ column (name = "ParisID") private long parent id; @OneToMany @JoinColumn (name = "child", referenced column name = "PARENT_ID") private list & lt; Child & gt; children; @forumula ("Choose from children (select height)") Private biscuitkle totalhite} This is no restriction and even with static restrictions it is also very easy. I'm having trouble when children's lists are dynamically restricted. In my case, I am using Spring Data and JPA. I am using the specifications to restrict children and am receiving the appropriate list of children, but it is obvious that this amount is still for unrestricted children, because nobody ...

c# - Use Graphic.DrawLines(Pen pen, Points points) for Metafile, the picture cannot open when the count of points is large -

I have a problem with GDI + metafile. I want to save a metafile by graphic. It works well when the point number is 10000 and the saved metafile can be opened. But when the point number is large (eg calculation = 10000000), the metafile can not be opened by mspaint.exe. Do not I miss anything? Is metafile record size limited? By the way, this problem is also in DraculaGallales . This is my code: Private Zero Button 1_Click (Object Sender, EventArgs e) {Int width = 1489; Intensity height = 471; Graphics offscreen buffer graphics; Metaphil me; (Using memorystream stream = new memorystream ()) (offscreen buffer graphics = graphics.framhound internally (int.t.or.o)) {int pttrc consoletexhandle = offscreen buffer graphics. GATHDC (); M = new metafile (stream, device contex handle, new rectangle (0, 0, width, height), metafile frame unit pixel, iii. OffScreenBufferGraphics.ReleaseHdc (); }} (Graphics G = Graphics. Framesize (m)) {// Everything high quality g. SmoothingMode = Smoot...

c# - How to Run a Program and Get its Output -

In C #, I'm waiting for the user to run a program and to get the user who was saved Want to For example, I want to run Photoshop or MSPPaint, after the user has finished editing and saving, wait for the file (JPG, PNG, etc.) or at least get the path of the file. I am unable to determine how to go about this. It is going to be heavily dependent on the program you want to use if you call the API As you use the program and receive feedback, maybe you can. For Photoshop and MSPP, I am a little confused that they will have this feature. Finally, what you would like to do, open any type of input box and wait for the user to paste the path itself. Either find a program with that API or you're creating your very own image editor.

c++ - Attempting to read in a string to put into a binary tree -

I am trying to get a string and then trying to manipulate it in a binary tree. The only problem is, I have really been having difficult time reading strings. I know that every person character in C ++ is a four letter, not a string, but I can not understand how to get each variable through Strong to be rearranged. Trying to install the constructor and then going to my build tree function which will continue the line again. Anyone have any ideas? class prefix {personal: struct treenode {character; TreeNode * left; Tree node * Correct; }; TriNode * Root = New Treeode; Public: Prefix (string value) {if (value == '*') {root-> character = value; } Buildty (root, value); } TreeNode * Build Tree (TreeNode * Node, String value) {TriNode * moves = new triode; CurrentNode = node; If (currentNode-> character == '*' and & currentNode-> left == tap) {currentNode-> left = buildtree (currentNode-> true, value); Return CurrentNode; } Else if (currentNode-> ...

How to fix html border corner slope with css? -

You can access the following code via this link: My CSS code: .custom_content {display: block; Width: 200px; Height: 30px; Margin: 5 px 0; Padding: 0; Limit: 1px solid # 000000; }. Left-border-red (border-left: 5px solid red;} My HTML code: : Please zoom into the image to see the top left and bottom left slopes on the rectangle. Problem 1: The top left corner is slope, I want to fix it. Problem 2: There is a slope in the bottom left corner and I want to fix it. Sara Sh: How can I fix the left left and bottom left slope for my output? I want to put the outer black border and the inner red border at the same time. But I do not want any slope for any corner. instead of border-left, you can : or : pseudo-elements And after style .left-border-red: {content: before ';; border-left: 5px solid red; height: 100%; width: 0; display area; Swim left; }

visual c++ - make insert one by one in order C++ -

I have an empty array list and I want to insert this array one by one in my array data structure. When I create my joined function then it is inserted in the order The test is arr (9,10,7,8,5,6,3,4,1,2}; insert after listing {1,3,5,7,9,10,8,6,4,2} enter my entry function block zero (Value_type D) {if (data. Size () == 0) {data.push_back (d); } And if (data. Size ()> gt; 0) {// get data / std :: list & lt; Value_type & gt; :: iterator iter = data.begin (); (AutoItre = data.bizin (); ITAR! = For data.and (); ++Iter) (if (d> gt; * etter) {data.push_back (d); breakdown;} and if (d & Lt; = * iter) {data.insert (iter, d); break;}}}}} It will appear that you are trying to include an inclusion like the standard library you have covered: Find out that the new element should go to O (Logan) - Upper_bound is a binary search: var pos = std :: upper_bound (data.bizin), data.ed (), d); Insert element there: data.insert (pos, d); Or as a liner for your...

garbage collection - Dangling commit is not in reflog and won't purge by git gc -

I have found an inclined commitment that is not in the referral (or I use it wrong) and GIT Gc . Here's what I mean: % git fsck Checking directory: 100% (256/256), done. Examining the objects: 100% (5425/5425), the inclined eclipse e681384da8babd4524f545bd880dfc602d271e45 dangling drops 77835dc1395f57d359d81f2c240d02a6ff1e9a69 ...% git reflog | Grep e681% git gc Count of commodities: 5425, done. Using Delta Compression up to 4 Threads. Compressing objects: 100% (1585/1585), done. Writing the object: 100% (5425/5425), done. Total 5425 (Delta 2086), again 5425 (Delta 2086)% git is examining the fsck object directory: 100% (256/256), checking items done: 100% (5425/5425), % git config gc.reflogExpireUnreacable% git will explain this for config: Gc.pruneExpire I think committed is back and there is a history in the early days: % git log e681384da8babd4524f545bd880dfc602d271e45 --online | Tail-n2b50e1de base file structure 9a4b3af first low but why would not it b...

Wordpress & PHP to check if custom field exists, and if not replace with a random string -

I am trying to create a function that checks the existence of post_thumbnail () It sets up the background image of a post and an element in Wordpress Here's what I've tried here: It currently crashes / I have been confused about when and where to use quotation marks while using PHP in HTML markup! Any ideas how can I do this? Words do bloginfo; & lt ;? Php if (has_post_thumbnail)) {The_post_thumbnail ( 'full');} else {echo get_bloginfo ( 'stylesheet directory "). '/assets/img/article-overlay-1.jpg';}? & Gt; Cheers!

java - How do I make a word repeat? -

This question is already an answer here 4 replies I have a word too Repeat in java three times with return statement. I want to see it as "wordwordword" apart from how will I make a different method so that each letter can be repeated 3 times? So that it looks like "wwwooorrrddd" here i have so far (i also need to use a return statement) static string repeatText (string text) {string repeat. Repeat = text; Repeat return + repeat + repeat; } public static void {String [] args) {system. Out.println (repeatText ("bar")); Println (changeText ("bar")); } Public Static String Repeated Text (String Text) {String Temp = ""; For (int i = 0; i & lt; text.length (); i ++) temporary + = text; Return temporary; } Fixed string change text (string text) {string tag = ""; For (int i = 0; I & lt; text.length (); i ++) for (int j = 0; j & lt; text.length (); j ++) temporary + = text.substring (I, I + 1); Retu...

bash - Parsing json while executing a curl -

I am requesting the following curl in my bass script to get a coverage report for my build: codeCoverage = $ (curl -s $ url / job / $ jobname / $ lastbuildNo / cobertura / api / json? Depth = 2) This is a Jason Reuption Which looks like this: {"result": {"children": [{"children": [{}}, "element": [{}, {} ], "Name": "com.test.web"}, {"children": [{}}, "element": [{}, {}], "name": "com.test.web.filters" }, "Element": ["name": "class", "ratio": 37.75}, {"name": "conditional", " Ratio ": 11.639 9}, {" name ":" files "" ratio ": 42.70073}, {" name ":" rows "," ratio ": 16.937233}, {" name ":" methods "," ratio " : 23.67 9 6}, {"name": "package", "ratio" 50%> "name": "lines...

zip - Python unzip a file and check if file exists -

I am starting a workflow that includes unziping data every morning, the zip will look like this: zip_download.zip set 1 2014 February 17 Image_1.png Image_2.png Set 2 2014 February 14 Image_1.png Image_2.png Example File Path: zip_download.zip I open these files daily and basically What is required for Python to create a database in Windows folders / set 1/2014 / February / 14th / image_1.png Sometimes the day before There can be data for that and that folder may already exist so I need to handle that error. Even I have so far: import zipfile import OS target_location = r'C: / new_filestructure 'file_download = r'C: / user . For Mike / Download Zipfile.zipfile (target_zip) with /download1.zip as' zip_file: zip_file.namelist (for member): try: os.makedirs (os.path.join (target_location + r '/' Excluding os.path.dirname (member))): (OSSError, WindowsError) print os.path.basename (member) print os.path.dirname (member) this It will go fine and wha...

linux - Create a bash script to delete folders which do not contain a certain filetype -

I have recently participated in a problem. I have left all my music files in a directory based on tags Folders, in general, the empty almost folders, in general, a thumbs.db file for the album thumb or some type Is the image of. MP3 has the right album art in its new directories, so the old is OK to be removed. Actually, I have to search any directory in D / Music /: - There is no subdirectory - Do not keep any MP3 files and then delete them. I thought it was a shell script or a Bash script or Windows 8.1 (Haha), whatever in the Linux / Unix world. Any suggestions? I am not experiencing written scripts like this. This should start with you Find / Music-Mid-1 -Type D | While reading DT "$ dt" -Mandpeth 1-type D | Read and read; Amp; "$ Dt" -Iname '* .mp3' -type f Find Continue reading & amp; Amp; Continue DELEEET DT

c# - How can I enable both http and https endpoint? -

I am accessing the service whose installation is in the WAS server Allow both http and https How do I modify endpoint access in my app.config file? & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Configuration & gt; & Lt; AppSettings & gt; & Lt; Add key = "WebServiceUrl1" value = "http: // vissvc- test.e.corpintra.net/VisSvcNative/VisService"/> & Lt; Add key = "LogoutUrl" value = "http://login.e.corpintra.net/internal/logout" /> & Lt; / AppSettings & gt; & Lt; System.net & gt; & Lt; DefaultProxy & gt; & Lt; Proxy Autocumentate = "True" /> & Lt; / DefaultProxy & gt; & Lt; /system.net> & Lt; System.serviceModel & gt; & Lt; Binding & gt; & Lt; Custombinding & gt; & Lt; Bond name = "soap off" & gt; & Lt; Custom Text Message Encoding = "UTF-8" MessageSuggestions =...

Clear form after submit and page refresh - Wordpress -

I know the correct way to insert data is using AJAX, but I'm not concerned that the page refreshes Can a page clear the form data after refresh? Everything works well, the data is being presented in the table, and the page refreshes. But if I hit the refresh button again, it tells me that the data will be collected ... and I do not know what to do. & lt ;? Php $ current_user = wp_get_current_user); If ($ current_user-> ID == 0) {} other {if (isset ($ _POST ['drop_artists'])) {$ answer = $ _POST ['drop_artists']; } And {$ answer = $ _POST ['artist_name']; } $ Date = current_time ('mysql'); $ Table = "t4t5_answers"; $ Sql ​​= $ wpdb- & gt; Ready (enter $ current_user- & gt "$ table (user_id, post_id, info, answer, submit_date) value (% d,% d% s% s,% d)"; ID, $ post- & gt; Id, 'artist', $ answer, $ date); $ Wpdb- & gt; Query ($ SQL); Header ('location:'. Get_bloginfo ('url')); } /...

python - Modify input arguments of inherited class before initializing parent class -

I am creating a geometry module I have defined GeoTuple, Vector (GeoTuple), Normal (Vector). Because in general there should be a magnitude of 1, I need to modify the input arguments and modify them before starting the vector, see the code below: Category GeoTuple (Tupal, Object): Def __init __ (self, data): try: if lane (data)! = 3: Increase ValueError ("vector should have only 3 members") _floats = tuple (float (item) for item in data) Super (GeoTuple, self) .__ init __ (_ Floats)) Finally: Close def __ ADD __ (Self, B): Increase the NERR ("The integration for geotuple has been disabled") DEF __ool __ (self, b): Name Enter (JLOW copies have been disabled for geographical) square vector (Geoteplay, object): def __init __ (self, point): super (vector, self) .__ init __ ( @) Property def (Self): Return self [0] @ Property Def Y (Self): Return Self [1] @ Property Def Z: (Self) Returns [2] @ Property Deficit (self): _x , _y, _z = self return sqrt (_x ** 2+ _y **...

java - JPA MappedSuperClass Inheritence Strategy -

है @ इनहेरिटन्स , @DiscriminatorValue , @DiscriminatorColumn @MappedSuperClass पर लागू प्रश्न पूछा जाता है क्योंकि ORM.XML जेपीए विनिर्देश इकाई का विशेषता है: = "पोस्ट-पाठ" आइटमप्रॉप = "पाठ"> नहीं, वे लागू नहीं हैं। मैप किए गए वर्ग कोड को कोड पुन: उपयोग के लिए उपयोग किया जाता है, और इकाई विरासत के लिए नहीं। इसका उपयोग केवल सामान्य गुणों और उन संस्थाओं के बीच विधियों को साझा करने के लिए किया जाता है, जो अन्यथा में समान नहीं है।

php - Blockchain.info receive payments API -

I have been trying to detect the bitcoin payment API for the past few days. I'm sure that I have the code correct. I say API: And it works fine, even the callback test fire works fine. But I never met the bitcones sent to the address. I help! The problem is resolved I spoke to the blockchain staff, obviously my test location was small Less than 0.001 BTC sign is required. In the future, instead of getting my blocks, I recommend Wal-Mart of Blockchain Info.

ios - Programatically create subview that covers the top 50% of the iphone screen -

Image
I have a subview and I am changing it to size using the property of the frame and it's the parameters of the CGTKK function Values ​​. I am slowly but definitely changing the CGRectMake parameter and turning the app back on to get a subview for the correct position on the screen, but I know that there should be an easy way . What I'm currently doing: UIImageView * halfView = [[UIImageView alloc] initWithImage: image]; [Self.view addSubview: halfView]; HalfView.frame = CGRectMake (0, 0, 320, 270); Is there no way that I can stop manually recording those 4 parameters in CGRTK, and just set it to the top 50% of the screen? What do I want here to see the subview should be seen on the iPhone screen: Thanks for the help. halfView.frame = CGRactack (0, 0, 320, self.view.boundsskies. High / 2); You just take the height and divide it by two You might see 320 to self.view.bounds Should be changed .isize.width I really suggest reading this post to get an...

Weird AWK behavior while forcing expression to be a number (adding 0) -

Image
I saw a strange behavior by introducing an array in awk . The index and value were both numbers, so should not be affected by adding 0 . For the sake of understanding, take the following example: Here is a file I want to use for this demo: $ cat file 2.60E5-2670161065730303122012098 Invnum987678 2.60E5-2670161065846403042011098 Invnum987912 2.60E5-2670161065916903012012075 Invnum987654 2.60E5-2670161066813503042011075 Invnum987322 2.60E5-2670161066835008092012075 Invnum987323 2.60E5-2670161067040701122012075 Invnum987324 2.60E5-2670161067106602122010074 Invnum987325 index of what I want to do is make a Specify a value from $ 1 and from it $ 2 . I will extract the piece of value of the $ 1 and the $ 2 function from substr I $ awk '{ P = substr ($ 1,12) + 0; A [P] = Substitact ($ 2,7) +0; Next} END {For X in A} Print X, A [x]} 'File Now, ideally the output should have been as follows (This fact should be ignored Associative arrays are output randomly)...

android - Facebook Mobile App Installations don't show any thing -

I want to install with mobile app ads. I already register my app and add a Facebook SDK. But, I do not see any installation in App Insights. So, what is my problem and how do I check it? Here's my main activity: Import android.app.activity; Importroid.os.Bundle; Import android.view.Menu; Import com.facebook.AppEventsLogger; Public classroom enhances main activity activity {@ Override Protected Zero (Bundled Saved Instance) {super.onCreate (savedInstanceState); SetContentView (R.layout.activity_main); } Secure zero () at reserve {super.onResume (); AppEventsLogger.activateApp (this, "APP_ID"); AppEventsLogger.newLogger (this) .flush (); }} If I have any errors please advise you for your support.

Spree Hub Integration Panel is not visible in Rails 4 Production Mode -

Image
I have successfully integrated Spree Hub with the application in front of my boyfriend store and it works like a charm in development mode . But when I switch to the production environment, the Integration Panels body section is empty. This only shows the "Integration" tab at the top, but it is next to the configuration panel adding a new connection) is not visible in the page. My Rail version: Rail 4 & amp; Spring edition: 2.1.3

ios - Apple PushNotification : Need Server Side functionality Guide -

I am working on an Event Management app; Already Backend services are ready (Example: User registration and event ticket details.). I am planning to implement push notification so that any event activity (as new, updated, closed) should be sent to the user as a notification. As soon as the user declines notification notification, the related event details are obtained based on the passed event in PoadNotification Payload. I have a push notification ( As I have done some sample applications with local saver, hardcoding device UUID to server code ), But still I think that I need an expert advice on the following dubious points: Is the mapping of the device ID to the user ID registered in the database (some specifications for confirmation Need to be stored with the T table), so whenever I need to send the user information using the Davised. Suppose there are more than one people to be notified for some event, how to make the server both people, programs...

php - Using YQL to fetch place information -

यह मेरी क्वेरी है: pre.exe geo.places से जहां text = "स्वाती नाश्ता "; मेरे पास मेरे अक्षांश और स्थान और मेरे साथ स्थान का नाम है, अब मैं अपने डेटाबेस में संग्रहीत इसकी अधिकतम जानकारी प्राप्त करने के लिए "याहू" से पूछना चाहता हूं। उपर्युक्त चर का उपयोग करके मैं इसे पूछना चाहता हूं। मैंने याहू कंसोल से पूछताछ करने की कोशिश की है लेकिन यह गलत परिणाम को मुंबई में स्थित भेजता है। स्वाती स्नैक्स मुंबई भारत की तरह संभव के रूप में पूर्ण पते के रूप में उपयोग करने की आवश्यकता है।

mysql - How to use SQLyogTunnel_ciom.php -

I am working with mysql credentials where I always get an error: Root @ user access denied I have SSH explanation, so I used Headscool and Scalios to connect to the database, it worked. Now I have to write the code to write PHP for this database. mysqli_connect gives the same error I searched and tried many things (like using ssh -fng -l), but none of them was working for me, then how some I got the file 'SQLyogTunnel_ciom.php' but I do not know how to use it. I tried to include it and call my work but it is not working. Please suggest me how to work in this situation. This blog post tells you how to databases in a shared hosting You can create something like SQLyogTunnel.php to access.

c# - Tasks and lambda expressions syntax -

I'm new to work and still trying to understand the concept. Research: I came to the article with the following line of code: work & lt; Int32 & gt; T = new task & lt; Int32 & gt; (N = & gt; Yoga ((Int32) n), 1000); By the example, I understand that the 1000 is being passed as a argument on the Sum function, but I It does not seem to understand the syntax. My question is how does the compiler know how to name it with n with 1000 . The parameter of Lambda is in Lambada as n as = & Gt; . The sum () to n is passed as a logic to be called within the body of lambda expression. If I rewrite the Lambda expression as a representative, it can be obvious to you: work & lt; Int32 & gt; T = new task & lt; Int32 & gt; (Rep (Int 32 N) {Return Amount ((Int32) n);}, 1000); It is not replaced at compile-time, but work is executed on runtime.

android - My db is working fine in honeycomb and above versions...but not in lower versions -

लॉगकैट java.lang.RuntimeException: गतिविधि ComponentInfo शुरू करने में असमर्थ {com.greynium .bhaktiapp / com.greynium.bhaktiapp.BhagavdGeeta}: android.database.sqlite.SQLiteException: ऐसी कोई तालिका नहीं है: bg_eng_chapters (कोड 1):, संकलित करते समय: ऊपरी का चयन करें (अध्याय_नाम), आईडी से बीजी_एएनजी_चैप्टर कोड निजी शून्य डेटा FROMDB () {geetaSql = SplashActivity.csSql; स्ट्रिंग strOrderby = "ऊपरी का चयन करें (अध्याय_नाम), bg_eng_chapters से आईडी"; geetaSql = openOrCreateDatabase (SplashActivity.DB_NAME, SQLiteDatabase.CREATE_IF_NECESSARY, नल); कर्सर csCursor = geetaSql.rawQuery (strOrderby, शून्य); अगर (csCursor.getCount () & gt; 0) {if (csCursor.moveToFirst ()) {करना {स्ट्रिंग csChapter = csCursor.getString (0); स्ट्रिंग csId = csCursor.getString (1); कोशिश {बाइट [] बीबी = csChapter.getBytes ("आईएसओ -885 9 -1"); बाइट [] बीबी 1 = सीएसआईडी.गेटबाइट्स ("आईएसओ -885 9 -1"); स्ट्रिंग एसएस = नई स्ट्रिंग (बीबी, "यूटीएफ -8"); स्ट्रिंग ss1...

php - how to restrict user for 10minutes for payment on paypal -

I am working on the booking website. When any user arrives at the site, choose a date & amp; Paypal for time and money for booking, before going to PayPal, I am adding this entry to the booking, so any other user can not go for the booking at that particular time for that date. Now if the user does not pay on PayPal and remains idle In this case it is blocked at the time I want the user to take 10 minutes to pay on PayPal. If the user is over time then with any flag should be redirected to my website, so I can remove that booking and at that time - the date will be available to the users for booking. I can use a cron job which can remove the booking in a pending situation in the database for more than 10 minutes. PayPal automatically redirects (error in session timeout) when I go to PayPal for payment and I'm stuck, 2) But when I go to paypal and sandbox Log in to the account and then stay inactive, after 5 minutes, I try to do any activity, it gives an error of time, a...

performance - android - operation for every 750ms -

I'm developing an Android application. During the active call conversation, as part of this, I have to check whether my screen is active or not, for every 1000ms. If I press the key fast and swapping home and my screen, then important events are remembered. What is the optimal time window during which I can listen for important events so that it wont miss? In addition, this operation is being executed during active call conversations, and at any time this operation can not affect system performance and battery life. Please help.

ios - How to create a non animating unwind custom segue -

Image
I have a custom transition between controller A to B, this is defined as @implementation Mycustomsegue - (Zero) Display [[[Self Source Viewer] Current ViewController: [Self-Destination ViewController] Animated: No Completion: ^ {}}; } @ And Now, when opening B to A, it looks like the modal dismissal of Controller B. How can I remove this? I do not want any animation or I want to control it. Create a simple action method and connect it to the storyboard. Try below the code - (IBAction) Action: Disisus: (ID sender {{self dismissViewControllerAnimated: not completed: Zero] ; } You select Seguay and Goto Specialty Inspector and in this situation you set the name of the custom class " Mycustomsegue "

c# - Improve Color Shades and Tints Algorithm Using RGB Values -

Image
I used to find different forms and tints of a chosen color, but now I have to improve I hope that the algorithm Ranges in the middle class (with RGB which increase from about 400 to 500) produce good results, such as in 2 and 4 rows. But the color outside the range gives some more results, which you see in lines 1 and 3, where the light color does not fade too much. I think I need to adjust my multiplier to fix this problem, but my math skills are not yet. private void Meetsheets Endnotes (Color C) {int i; Double m; Int r; Int g; Int b; For (i = 1; i 255) g = 255; B = (int) (cb * m); If (b> 255) b = 255; ColorList.Add (Color.FromArgb (R, G, B)); }} If you want to try it for yourself, then the complete code is available here: What I know from here is a way of increasing darkness in the shadows: - get private zeros (color C) {int I; Double factor; Int r; Int g; Int b; For (i = 20; i> = 0; i--) {factor = i / 20; R = (int) (c * r * factor); If (R & G; 255) R...

javascript - jQuery hasClass doesn't work for me? -

In the following code, hcl does not work and the result is false. Why do I, in the warning? Online demo: HTML: & lt; Span & gt; & Lt; Div class = "add" & gt; & Lt; / Div & gt; & Lt; / Span & gt; JS: Warning ($ ('span'). Hcl ('add')); I think there may be misunderstanding what you can do. It checks whether one of these elements has been entrusted to one. From: Determine whether any of the matched elements is assigned to a given class. If you want to see that element / Em> use an element with that class: The set of matching elements Reduce those people who have ancestry that match the selector or DOM element. is alert ($ ('span'). ('Add'). Length> 0);

regex to replace self closing html tags in c# -

I have an XML that includes some html tags. Whenever it comes to a tag, it breaks the page Because it is itself a closing tag something like this: I want to change it and want to change it: Can someone provide a C # code with regex to do this. I tried: tmp = tmp.Replace ("( and tmp = new reggae (@ "(iframe [^ & gt;] *) (\\ s * / & gt ;) "). Change (TMP, "$ 1> "); There is a lot of code containing TMP xml + it is in the form of an iframe tag string. But with no results. In the second regex, you do not need double backslash. In addition, ( also matches the last / , non-reddit ? Use the operator: (

c# - Async/Await WCF client in a PCL -

The project I am working on is using a WCF service on the server side (code in the same project is). I want to extend it by writing a PCL which uses the service and wants to implement the call with the ASC / wait format. As PCL has not endorsed Async / Waiting since the beginning, I added the BCL. Async package through Nuget for the project. But whenever I try to generate a proxy, Task based async clients can not be selected, i.e. Born Manually adding proxy to PCF also does not seem possible in PCL. My current view is creating a proxy that is copying the Reef Class and then using the job wrapping the async / await pattern on its own, provided the cover provided by ? How do I manually write the wrapper manually using Ancanc / App Pattern, which will have the same effect without generating many async patterns? Finally I created a proxy and manually for the receipt of async / wait in the client within PSL. The APM model generated from TaskFactory is wrapped with. I wrote it d...

javascript - I can't get numbers to show up in jsfiddle -

HTML: & lt; p & gt; आप देख सकते हैं यह पाठ ... & lt; span id = "text" & gt; & lt; / span & gt; & lt; / p & gt; & Lt; p & gt; ... लेकिन यह नहीं: & lt; span id = "mathStuffs" & gt; & lt; / span & gt; & lt; / p & gt; & Lt; p & gt; संख्या चर दिखाने के लिए प्रतीत नहीं होता, या तो- & lt; span id = "num" & gt; & lt; / span & gt; & lt; / p & gt; जावास्क्रिप्ट: var टेक्स्ट = 'हैलो' var i = 50; Document.getElementById ('पाठ')। InnerHTML = टेक्स्ट; Document.getElementById ('mathStuffs')। InnerHTML = math.pow (5, 2); Document.getElementById ('संख्या')। InnerHTML = i; इस कोड को पूर्वावलोकन में दिखाई नहीं देता जैसे कि कुछ अच्छी तरह से रंग-कोडित सिंटैक्स हाइलाइटिंग जैसे मैंने पिछले पोस्ट में देखा है- इसके बारे में क्षमा करें। मुझे मूल रूप से सोचा था कि console.log () समस्या थी, इसलिए मेरे पास इस उदाहरण की स्थापना है। नियमित प...

javascript - JS Call back not working -

1 Edit: Added to plug in settings: In Plug-In Functions Added: Var map = new google.maps.Map (document.getElementById (settings.mapDiv), myOptions); $ This.data ('map', map); // Custom reset callback google.maps.event.addListenerOnce (map, 'inactive', function) (if (settings.callbackReset) {settings.callbackReset.call (this, orig_lat, orig_lng, map, infowindow);}}); // Create an Infodov for filling infowindow = new google.maps.InfoWindow () later; I am struggling to set a callback function to reset the map for the jQuery Store Locator. My code: jQuery ('# map-container'). StoreLocator ({callbackReset: function (orig_lat, orig_lng, map, infowindow) {var origLatLng = new google.maps.LatLng (orig_lat), Orig_lng); Map.panTo (originLatLng); // center map $ ('# -link li'). RemoveClass ('List-Focus'); // remove list infowindow.close (); // Close Infowindow}}); In the code I have declared in the plugin: 'callbackReset': ...

mysql - showing temporay table doesn't exist why? -

I try, but an error message such as 'dbname.rep3' table does not exist. Why? drop primary table appears if rep1; Fall temp table if presently rep2; If DROP floating table appears; Create temporary table 'rep1` (select * FROM `config`); Create temporary table 'rep2` (select * FROM `config`); / * Select 'Representative 1' union from 'Select Representative 3' from temporary table * to `rep2`; Select * from `rep3`; * / Create temporary table Select `rep3` * Select union all from delegate 1 * to` rep2`; Select * from `rep3`; This work for me abdul @ xmpp3 : ~ $ Mysql -uroot -p Enter password: MySQL Monitor ends with the Welcome Order; Or \ n Your MySQL Connection ID 334 Server Edition: 5.5.29-0toUntu 0.12.04.1 (Ubuntu) Copyright (C) 2000, 2012, Oracle and / or its affiliates All Rights Reserved. Oracle is a registered trademark of Oracle Corporation and / or its affiliates names may be trademarks of their respective owners. Type 'help;...

which file to render and play in android youtube player -

I am successfully integrated for my application. I'm curious to know which file has been translated into the player. A video file can have several formats like 320 dpi, 720 dpi & amp; e.t.c. If my users are in low bandwidth; Can I select the file format or the API automatically detects which version will be played in that situation and the sub-poem is my code: Public class YoutubeVideoActivity applies YouTubeBaseActivity YouTubePlayer's implementation applies. Startup, YouTubePlayer.OnFullscreenListener {Activity Activity = YoutubeVideoActivity.This; Public static final string API_KEY = "Aja SDN 6Q9Pv4seQZqIcjB ********* Po5k"; // public static final string VIDEO_ID = "psY0botpi84"; Public string new_id; Private bullion fullscreen; Watch the private YouTube player game; @ Override Protected Zero (Creating Bundle Arg 0) {Super. Content (arg0); // Remove Title Bar This Request WindowFeature (Window.FEATURE_NO_TITLE); SetContentView (R.layout.activ...

java - how to parse this response using JSONObject -

I have the response that I can get the form server back. I want to parse it and want to get out of hospital_name. How do I go about this? [{"Hospital": {"id": "63,083" "hospital_name": "Institute of Colorado Mental Health", "hospital_add_1": "1600 W" "Hospital_pip": "Hospital_phone": "719-546-4000 \ r", "Hospital_Apps": "Hospital _ ADDU": Faucet, "Hospital", "Pueblo", "Hospital_State": "CO", "Hospital_Jip": "81003" "" "," Hospital ":" "," hospital ":" "," hospital_ description ": blank," callcenter_agent_proplowl ":" 0 "," hospital_site ":" "," MDPKette Suite ":" 0 "," Facebook " Department ": []," Image ": []," Notes ": []}, {" As "Pumpb...