Posts

Showing posts from September, 2015

c# - How to find element in visual tree in wp7? -

I need to find an element in the visual tree. For example, I have a grid and I have my own text T- Setting in the box is: WatermarkTextBox ExpanderView Expands. Xaml & lt; Grid.ColumnDefinitions & gt; & Lt; Column width = "100" /> & Lt; Column width = "280" /> & Lt; Column width = "100" /> & Lt; /Grid.ColumnDefinitions> & Lt; Grid.RowDefinitions & gt; & Lt; RowDefinition / & gt; & Lt; RowDefinition / & gt; & Lt; /Grid.RowDefinitions> & Lt; Grid grid. Rau = "0" grid. Column = "0" & ​​gt; & Lt; Border / & gt; & Lt; / Grid & gt; & Lt; Grid grid. Rau = "0" /> & Lt; Grid grid. Rau = "0" grid. Column = "2" /> & Lt; Toolkit: expand ExpanderView = "setText" collapsed = "hideAppBar" & gt; & Lt; Image Height = "100" margin = "- 53,0,0,0" /> & lt; ...

Jquery: Strip all specific HTML tags from string -

I have a variable that has a string of text and html tags such as: Code Some text more text here & lt; / span & gt; & lt ; / P & gt; & lt; p & gt; Also & lt; / p & gt; "; I would like to remove all tags of a certain type. For example, we all call p and span . This is the best I can come up with: Some text More Text Here & lt; / span & gt; & lt; / p & gt; & lt; p & gt; Also & lt; / p & gt; ; Var $ temp = $ (temp); $ ("P", $ temp) .replacewith ("foo"); Warning ($ temp.html ()); // Returns "some text" The closest response I can find is this answer by Nick Craver. demo: $ ('span, p'). . Content (open) (); Each such element will receive elements and text, and each content will remove the element by wrapping the section. Based on your current perspective, it will look something like this: ; / P & gt; "; Var $ temp = $ (temp); $ Temp....

Objective-c inserting data with iphone 4s -

I have created an app that uses IM to insert data with FMDB wrapper and consult with SQL database The data is displayed in a table view, the problem is that when I do everything right on an iphone 4, but when I do it on an iphone 4s, then this is not a problem. My code is part of: Loading DB: aPools = [[NSMutableArray alloc] init]; NSString * path = [[NSBundle main bundle] Pathfoser resource: @ "pool db" type: @ "sqlite"]; MainDB = [[FM Database Alok] InitVithpath: Path]; [Menadi's Open]; FMResultSet * fResult = [mainDB Execution: @ "selection * from pulse data]]; While ([FRSALT next]) {Puladata = [FRS fruit string fora column: @ "name"]; [APools addObject: pools data]; } [Close to main DD]; Saving: - (zero) saveIntoDB: volume with name (NSString *): (float) volume type: (NSString *) type and DESC: (NSSTING *) Dell [[Menadi Open]; [MainDB executeUpdate: @ "pool, data (name, volume, type, dcc) values ​​(" ,,,,,?) ", Na...

jquery - Solving $(window).resize -

I have a script that is at $ (window). Resize () needs to hide the divs in a list. However, because I'm using the old OS, my browser does not change in realtime again, instead it detects a trail where this size will change, and then open to go, this size changes. Type, the script below only removes a device from the list instead of all those conflicts. How can I fix this? jQuery: $ (window). Resize (function () {movePivots ();}); Function Slobient () {var last_pivot = $ ("ul li: last"); If ($ ("# container"). Width () - $ ("ul"). Width () & lt; = 0} {last_pivot.remove (); } Else {}} CSS: # container {float: left; Width: 50%; Minimum width: 450px; Max-width: 900 pixels; Height: 1000px; Background-color: #EE; } #nav {float: left; Background color: #ddd; Minimum width: 450px; Max-width: 900 pixels; Width: 100%; } Ul {float: left; Margin: 0; Padding: 0; List style: none; Background color: #ccc; } Use a while loop: $ (Window). Re...

mysql - Where is the syntax error in this CREATE TABLE statement? -

बनाओ टेबल बच्चे (chil_id INT ऑटैन्ग्रेमेंट प्राथमिक कुंजी नहीं है, बाल_नाम VARCHAR (20) नहीं है, child_sname VARCHAR 20) नहीं, नाराज, बच्चे_अभियान नहीं, नारी, बच्चे के लिंग ENUM ('एम', 'एफ') DEFAULT 'M', parent_id INT नहीं), कंसल्टेंट विदेशी कुंजी (parent_id) संदर्भ माता-पिता (parent_id)) ENGINE = InnoDB; त्रुटि संदेश: आपके एसक्यूएल वाक्यविन्यास में त्रुटि है समस्या इस पंक्ति में है: parent_id INT नहीं नल), कोष्ठक स्तंभ / बाधा घोषणा बंद कर देता है, लेकिन आप एक बाध्यता के बाद शामिल हैं, जो त्रुटि फेंक रहा है वह कोष्ठक निकालें और आपको सेट करना चाहिए। सही कोड यह होना चाहिए: बनाएँ तालिका 'अभिभावक' (`parent_id` INT नहीं शुद्ध AUTO_INCREMENT, प्राथमिक कुंजी (` parent_id`)) इंजन = InnoDB; बच्चे को बनाएँ (chil_id INT AUTO_INCREMENT प्राथमिक कुंजी नहीं है, बच्चे के नाम VARCHAR (20) नहीं है, बच्चे के नाम VARCHAR (20) नहीं, नाराज, बच्चे का जन्मदिन नहीं है, बाल-लिंग ENUM ('एम', 'एफ') DEFAULT 'M', parent_id...

php - Cannot send session cookie - headers already sent -

संभव डुप्लिकेट: PHP में निम्न कोड चेतावनी देता है। & lt;? Php if (! Isset ($ _ सत्र)) {session_start (); // पंक्ति 4} यदि (! Isset ($ _ सत्र ['वैध_अडमिन'])) {हेडर ("स्थान: लॉगिन.एफ़पी"); // लाइन 9}? & Gt; चेतावनी: session_start () [function.session-start]: सत्र कुकी नहीं भेजा जा सकता - हेडर जो पहले से ही भेजे गए हैं (आउटपुट C: \ wamp \ www \ Wagafashion \ Order.php: 8) सी: \ wamp \ www \ wagafashion \ Lock.php पंक्ति 4 पर चेतावनी: session_start () [function.session-start]: सत्र कैश सीमक नहीं भेज सकते हैं - हेडर पहले ही भेजे गए हैं सी: \ wamp \ www \ wagafashion \ Order.php: 8) सी में: \ wamp \ www \ wagafashion \ Lock.php पंक्ति 4 पर चेतावनी: हेडर सूचना को संशोधित नहीं किया जा सकता है - हेडर जो पहले से ही भेजे गए हैं (आउटपुट C: \ wamp पर शुरू किया गया है \ Www \ wagafashion \ Order.php: 8) में सी: \ wamp \ www \ wagafashion \ Lock.php पंक्ति 9 पर मैंने खोज की और एक सवाल पाया लेकिन मैं अब तक वहां क्या बात है, उसे समझ में नहीं आ रहा है। मैं इसे ...

Ruby on Rails Inline around_save Callback Yields a LocalJumpError -

रेल 3.0.5 & amp; रूबी 1.9.3, क्या around_save कॉलबैक इनलाइन कोड के साथ घोषणा के शरीर को परिभाषित करना संभव है? यही है, मैंने देखा है कि यह मामला ठीक से काम करता है: around_save: around_save_body def surround_save_body 'save save before' उपज डालता है 'save save' end [114] pry (main) & gt; A = गतिविधि.फंड (57) = & gt; # & Lt; गतिविधि आईडी: 57, ... & gt; [115] प्राइ (मुख्य) & gt; सहेजने के बाद सहेजने से पहले a.save = & gt; सच है जबकि मैं शरीर को इनलाइन डालता हूं, मुझे एक स्थानीयजम्प एरर मिलता है: आसपास_सेव करें | गतिविधि | 'सहेजने से पहले' उपज डालता है 'बचाने के बाद' अंत [117] pry (main) & gt; A = गतिविधि.फंड (57) = & gt; # & Lt; गतिविधि आईडी: 57, ... & gt; [118] प्राइ (मुख्य) & gt; स्थानीय सिक्योरेशन सेव करने से पहले एक एस्केर: /home/maksim/hkn/website/app/models/activity.rb:47:in 'ब्लॉक में & lt; कक्षा: गतिविधि & gt; मैंने दूसरे उदाहरण में उपज से उपज गतिविधि बदलने की कोश...

graph - Directed Adjacency Lists -

I have asked this question in various ways, starting with: When you have an adjacent list, what about the order? Say that I have a proximity list {1, 2, 5}, which is equivalent to {2, 1, 5}? Or does the order indicate something, and therefore these are not equivalent to the two lists? I have received a lot of response in this, in which this is only the case if the graph is guided and the adjacent nodes of the order system clockwise ..? I have also been given the opinion that it does not make any difference, although it wants to place it on weight (if used) such as the Internet order - page ranking algorithm. I am not convinced to tell any of these responses properly, although I think I made the abstract known. Any idea is appreciated. In addition to this, I have refined my question in such a way that if the answer is given, then I think that I give the correct answer to the following: Proximity matrix for guided article: 0 0 0 0 0 0 1 1 1 1 0 1 0 1 1 0 I have b...

How to wrap C structs in Cython for use in Python? -

For some learning experiences, I'm trying to wrap some parts of SDL (1.2.14) into Cython Python An extension for 3.2 I am having trouble directly converting strontact directly into Python, which is able to directly access its attributes like: struct_name. For example, I want to get struct SDL_Surface: typed text SDL_Rect {Uint32 flags SDL_PixelFormat * format int w, h Uint16 pitch void * pixels SDL_chint clip_ect ER refcount} SDL_Rect; and be able to use it in Python: import SDL # to start the luggage screen = SDL.SetVideoMode (320, 480, 32, SDL .DOUBLEBUF) To access SDL_Surface.w and SDL_Surface.h print (screen.W, '', screen .h), now, I have wrapped the SDL_SetVideoMode and SDL_Surface in a way called a SDL HP file cdf extern from 'sdl.h': # other stuff std SDL_Surface: unsigned long flags SDL_PixelFormat * format int w, h # like the previous declaration ... SDL_Surface * SDL_SetVideoMode (int, int , Int, inti Gned) cdef class Surface: # def Se...

ruby on rails - Cap deploy - ERROR: Repository not found -

I inherited a project and is comfortable with the development side of things, but there are poor sysops, and Capistrano deployment Is failing For a project deployed before the previous deed: submit cap: check is running fine, resulting in All the dependencies you have installed appear But when I try to deploy, I ... error: No stores found. ... I have: Triple examined the Gitubo Repo address It has been confirmed that I I can push and drag right away It has been confirmed that I can connect the Gitb to the server properly via SSH Confirm that I fix the repo on the server Tried with the agent Again, when the agent forwarding stops, then from the SSH server, Gitobb In the last god Area is for information back, which is still reaching Gitub repo. Hi xxxxxx! You have successfully verified, but GitHub has not provided shell access. When agent forwarding is turned on, I show as being a certified user. Any suggestions on solving this? More than hap...

c# - Asp.Net MVC and WebForm -

Can I find MVC and webform in the same site / virtual directory? I have a web site but I would like to implement MVC Note: The website also has some classic ASP files. Yes, you can join everyone in the same project. See how to mix all the technologies. You can add MVC in existing WinForms application without problems. You may have to add the unknown route rule to your existing pages, the classic ASP may need special handling (just potential - there is no information about it). route. Unknown route ("{myWebForms} .aspx / {* pathInfo}");

java - Continue MouseWheelEvent propagation if not handled manually -

I have a component inside JScrollPane , and I would like to handle some scroll events though , I do not want to handle them all Unfortunately, when I add the MouseAllevator to my child's component, it stops receiving scrolling events. How can I do that? Are those events that do not want to handle manually? What about it? Component.dispatchEvent (AWTEvent E); Actually you will need to call: getParent (). SenderAvent (mouse Event); You may now need to dig the scrollpin, but you can play with this idea

- Where Developers Learn, Share, & Build Careers

Image
Is there a way to clean GM_log messages from the error console with the user code on a certain event? I do not want to clean manually. On the triggers of some events, you want to clear the old log from the error console and want to show the new logs. You can not clarify. If you can, bad websites can also clean it and erase the records of your crimes. You should not use GM_Log () Then, you can console.clear () . , note that to avoid conflict with the new console functions of Firefox, and to ensure that the output appears in the Firebug console, you will see unsecured wydov . So your script can do something like this: Unsecured Window.console.clear (); Unsafe Window.console.time ('ScriptRun'); Unsafe Window.console.log ("Start Script."); Unsafe Window.console.timeEnd ('ScriptRun'); What looks like in this firebug console: - - Div>

javascript - d3 arrows in Force Directed Graph -

Image
I'm afraid. Just do not align the arrows due to copying and pasting the example. (See below) update Do: It works in chrome and cleaning, but not in Firefox ... even more confused thanks Post text "itemprop =" text "> It works in Chrome and Safari and has broken into Firefox 14 (and maybe earlier). It's Firefox 15 and later OK View bugs I did it firefox 14 (this failed) and 15 Is the answer). The answer to the original question is: Because it is broken in Firefox.

php - How to limit the text's height (or the number of lines) that's generated by WYSIWYG editor? -

I have a form that allows user input product details, and in the list page, I want to print (just a few lines) But there are html tags in the description, I have tried some solutions, but they can not solve my problem. (Example: If I shorten the text using the sub string function, but it will be the problem with the tag) You can do quick tag stripping, and add an ellipseas to the end for additional decoration: function small ($ text, $ Length) {$ text = trim (strip_tags ($ text)); $ TextLen = strlen ($ text); If ($ textLen & lt; $ length) {return text $; } And {$ text = substr ($ text, 0, $ length); $ Text = '& Amp; Hellip; '; Return $ text; }} Be careful that is not correct and if you have made html tags defective, then it may mess up the text, but it is a " Quick and dirty "solution; Otherwise, you will need to parse the html with a suitable device (for example DOMDocument, or better parser) and then your substr ()

- Where Developers Learn, Share, & Build Careers

I am using a load method on the page that has a map. The problem is that the page is full but the gray color screen is displayed in the map divi. When I refresh a page the map loads. I also call the map function in the document ready function. But no use. My code is & lt; Div class = "public-view" id = "map_canvass" & gt; & Lt; Script type = "text / javascript" & gt; // Onload function ... Start (); Function initialize () {var fenway = new google.maps.LatLng (& lt ;? php echo $ propertyValues- & gt; axis;; & gt ;, & lt ;? php echo $ propertyValues- & gt; lng ;; & Gt;); Var map option = {center: phenave, zoom: 15, map type eid: google.maps.MapTypeId.ROADMAP}; Var map = new google.maps.Map (document.getElementById ("map_canvass"), map options); Var circleOptions = {center: fenway, map: map, strokeColor: "# BB0A68", Stroke Opacity: 0.1, Fill Collar: "# BB0A68", Fillopity: 0.35, Rad...

Grouping MYSQL results by multiple columns and time span -

How do I enter one, most recent NID , every 7 days per, per If today is 11th July, the following table + ----- + ----- ------- + - ---- + | NID | Timestamp | UID | + ----- + ------------ + ----- + | 1 | 1341719851 | 8 | // July 7 | 2 | 1341115051 | 8 | // July 1 | 3 | 1341547051 | 8 | // July 6 | 4 | 1341719851 | 8 | // July 8 | 5 | 134197 9 5151 | 8 | // July 11 | 6 | 1341806251 | 9 | // July 9 | 7 | 1341460651 | 9 | // 5th July | 8 | 1341892651 | 9 | // July 10 + ----- + ------------ + ----- + This will produce: + ----- + ------------ + ----- + | NID | Timestamp | UID | + ----- + ------------ + ----- + | 2 | 1341115051 | 8 | // July 1 | 5 | 134197 9 5151 | 8 | // July 11 | 8 | 1341892651 | 9 | // 10 July ----- + ------------ + ----- + In the last 7 days, most recent NID for each user is '5' and '8' , in the first 7 days, the most recent NID Is '2' , and so on ... I'm assuming, the group will be tricked; But I have no clue from...

file upload - VB.NET Custom SqlFactory, FileUpload Control issue -

I SqlFactory to build my StoredProcedures class to control , And I'll use it for all transactions between the application and SQLServer. The file that I have applied lastly is a file upload. But it will not work as it should be :( I searched around the web, can not be found too much. So basically I want to save my Report with name , description , and image . Names and details are working perfectly, but due to some reason this file will not be uploaded, then this code will be uploded Do not reach for that: And if fuImage.PostedFile is nothing OrElse String.IsNullOrEmpty (fuImage.PostedFile.FileName) OrElse fuImage.PostedFile.InputStream nothing and nothing dim imagebytes (fuImage.PostedFile.InputStream.Length) byte fuImage.PostedFile.InputStream.Read (imagebytes, 0, imagebytes.Length) rep.FuImage = imagebytes then upload as representatives end .Name = txtName.Text rep.Description = txtReportContent.Text repFac.Save (representatives) lines rep.FuImage = imag...

How to revert a bad fixup in GIT? -

I'm sure there is a group of GIT users out there that had this problem: Create a branch from the master We call it featureX . While working on, featureX , you feel that you want to fix the previous commit: You work your right. You do your rebase and squash / fix. Later you would like to resize your master with the latest changes in featureX Break things because your branches are separated (fixing was not done in the master). You have a bad day. This is the second time with me that for the first time, I did not have too much history in featureX and was just a new branch of the Master of this But what do you have to do? How do you solve it? Is it possible that git reset a certain referral? In that case, I can undo the Rebase and move it properly to decide on the top of featureX (using the interactive rebase). I'm sure there are different ways to go about this, but I think this is a common problem. Before (refael) because your fix up is sti...

sqlite3 - How to write a makefile for python scripts update a database? -

I have a bunch of Python scripts that I use to read files in a pipeline, and to create data And converts data to change Sqlite3 database. I use a mess file to do this; Because some of my input files are quite large, i.e. 5 GB and so takes a lot of time to process, I do not want to run the whole file in the file to run the whole pipeline when I just edit one file. However, because they all edit the same file, i.e. the database file, they are making all the impressive fake targets, there is a way to do this, by which only the targets that modify those files Can be prepared: who had their files? Here is the messy I am using: .PHONY: Everything: blogs.db blogs.db: User likes posts blogs blog_likes Peano: Create Create: create.py $ (Python) .py: User Users: users.py $ (Python) users.py Phone: Posts posts: posts.py $ (PYTHON) Posts. Like: Likes: likes, make $ $ (Python). Blog: blog blog: blogs.py $ (PYTHON) blogs.py .PHONY: Blog_likes blog_likes: blog_likes.py $ (python) blog_li...

javascript - How to store canvas content returned by toDataURL method as an image on disk in JSF -

I created an image using svg and javascript, I want the user to save it. View code: & lt; Script & gt; Var svg = $ ('# map'). Html () Replace (/> \ s + / g, "& gt;"). Replace (/ \ s + & lt; / g, "& lt;"); // canvg cancel all the locations between tags ('cvs', svg, {ignoreMouse: true, ignoreAnimation: true}); Var Canvas = Document. GetElementById ('CVS'); Var img = canvas.toDataURL ("image / png"); & Lt; / Script & gt; & lt; H: body & gt; & Lt; Center & gt; & Lt; Div id = "map" & gt; & Lt; / Div & gt; & Lt; / Center & gt; & Lt; A href = "#" id = "saveBtn" & gt; Save & lt; / A & gt; & Lt; Canvas ID = "CVS" width = "0" height = "0" & ​​gt; & Lt; / Canvas & gt; One ???? & Lt; H: form id = "formId" & gt; & Lt; H: Input Text id = "inpu...

asp.net - Is that a correct way to use Dispose Method? -

Here I settled the method in aspx.cs, but I'm not sure how to deal with objects Is Obvisoly correctly I surf it from the net and used it in my code, can you please say that the object is removing in the right format. This is my method aspx.cs public list & lt; Cause field & gt; List (datatelle dt) {list & lt; Cause field & gt; Lst = new list & lt; Causefield & gt; (); Foreach (DataRow line in dt.rows) {Uses (due to reasons FacebookBook sign up its description = new reasonfield ()) {SignUpDetails.FirstName = line ["first name"]. ToString (); SignUpDetails.ListName = Line ["Last name"]. ToString (); SignUpDetails.Birthdate = Line ["Birthday"]. ToString (); SignUpDetails.Gender = Line ["Gender"]. ToString (); Lst.Add (SignUpDetails); SignUpDetails.Dispose (); }} Return List; } My class file: Completion of public class reasons: IDisposable {public string first name {get; Set; } Public String LastName {get; S...

android - Toast is not displaying in catch block -

Hi! When the network is down or the server is not responding, then I am trying to display a table. My message appears in the login but does not appear on the screen (not toast) I have a sample code that works fine but my code is not. Import android.view.View.OnKeyListener; Public Class AgAppHelperMethods Extension of Activity {Personal Stable Last String LOG_TAG = Zero; Private Stable AgAppHelperMethods Example = Faucet; Public stable string varMobileNo; Public stable string varPinNo; String [] [] xmlRespone = null; Override public null on @reate (bundle saved instainstate) {super.naught (savedinstenstate); SetContentView (R.layout.agapphelpermethods); } Secure AgAppHelperMethods () {} Public Stable AgAppHelperMethods getInstance () {if (Example == Faucet) {Example = New AgAppHelperMethods (); } Return Example; } Public static string getUrl () {string URL = "https://demo.accessgroup.mobi/"; Return url; } Public string [] [] AgAppXMLParser (string parautral) {string_nod...

swipe gestures and Wordpress templates -

I want to make a mobile web app in Wordpress. I need to put the template in the very upper (~ 3/4 inch) horizontal rectangle section at the very top which swipe left / right to serve as navigation. Basically, every time you swipe this section right / left, the page changes below it, I've seen the templates where the whole page was swiped, but it was not divided as I described it here Was there. If this is how to optimize the template like this, but someone has an indication for me, then I really appreciate it. Try them Left support Left, Right, Top, Bottom and Dual Tap. You can specify the area where you want WordPress to register gestures, in your case it will be a div id that you want to hit the user out loud. Let me know that you have to face any difficulty.

- Where Developers Learn, Share, & Build Careers

I need to bring only specific ones (like "inline rows") from the Solar Index. For example, if the full results are in 10000 rows, then I want to get only the first and last line of every 100 items bucket. Item 1 and 100 items 101 and 200 items 201 and 300 ... This group is dynamic and depends on the number of results. Therefore, if there are only 5000 total result rows, the bucket size is 50 instead of 100. I can calculate the actual indexes, but the problem is how they can be brought from solar. No index can be used directly as query parameters. In practice, I am doing a search "starting with the name" (or some other letter) and I want to get the first item starting from A, starting from A, starting from A, 101 Th item ... The query parameters are "rows" and "start" but these items can not be skipped, so I will need to get each item with a different query which is disabled. I was also thinking about implementing a filter query which ...

ios5 - How to write a Run Script in Xcode -

After the In my project I have different and iPhone devices for the iPhone simulator, for example in the rest of the kit, For the "libRestKit_simulator.a" simulator and "libRestKit.a" device, My requirement is to write one "run script" simulator in Xcode To include arrangements on the basis of or equipment. Not sure that this is the best solution, but it works for me. Not sure that this is the best solution, but it works for me. If you add a build script below the target dependencies then add it to the following code. This means that you have 2 libraries library.a library_simulator.a to use the project library will be installed. A and if you are using the simulator, the script will remove the library and replace it with library_simulator.a. You will need to add a simulator for your construction plan to make sure when it is built while making a build and both libraries will need the same interface. If [["$ {SDKROOT}" = ...

iphone - Property gets set to null after segue -

In my prepared forestest method, I am doing this: log in control controller * View = Segue destinationViewController; Prepare for logging in to %% with %% zombies with NSLog (@% ", self.context.userName, self.context.zombies.count, view.view); [see initWithContext: self. Context]; and my initWithContext -method: - (zero) initWithContext: (TestSRConnectionContext *) __vote { _context = __context}; NSLog (@ "OK init with user% @ with% d zombie", __contact.username, _contex.zombibz.co.uk);} log everything Okay. The view I am loading is a UITB VUU The control is, but no items are loaded. I was working before this table, so the logic for the table is OK. So - the problem is that _context.zombies when the view I see the Dippeper method in the view I _context.zombies and it is empty! I wrote the wrong question - the context was not narrow but the context was. Zombie. I have a weak theme on property declaration for it. She changed and now it works. ...

java - Spring MVC : tag form: not interpreted -

I'm facing a problem. I have a jesp, it works perfectly and well. & form; Form: form action = "$ {form}" class = "form-options" commandName = "form" & gt; & Lt; Div id = "clonal" class = "clonable" & gt; & Lt; Fieldet id = "monfield" & gt; & Lt; P & gt; Lien source: & lt; Look: Input ID = "urlSource_0" path = "mesFormulaires [0] .urlSource" type = "text" name = "urSLSource_0" /> & Lt; Br / & gt; & Lt; / P & gt; & Lt; P & gt; & Lt; Input class = "input" type = "submit" value = "save" /> & Lt; Br / & gt; & Lt; / P & gt; & Lt; / Form: Form & gt; And, I have a button, which adds another similar form using Javascript & lt; Script & gt; Var formacount = 0; Click on the "+" (function () {$ (function () {formCount ++; var template = ...

- Where Developers Learn, Share, & Build Careers

How do sort grid data show data grid data according to "date"? When I come to the page, I want to see the data grid sorted by the time as the default without parameters like URL ... / order / created DESC / $ Testimonials = new Application_Model_DbTable_Testimonials (); $ Source = new Bvb_Grid_Source_Zend_Table ($ testimonial); Thanks. I solved it by going to $ datagrid instead of $ object $ testimonials = new Application_Model_DbTable_Testimonials (); $ Source = new Bvb_Grid_Source_Zend_Table ($ testimonial); now $ testimonial = new Application_Model_DbTable_Testimonials (); $ Testimonials- & gt; SetSortOrder ('created'); $ Source = new Bvb_Grid_Source_Zend_Select ($ testimonial-> getTestimonials ()); It's hard to see what your class is doing, because you posted that post Option 1 But when it uses the fetchAll () function, you can do two things: Option 1 When there is a fetch () - Call in grid class, you can make it ...

- Where Developers Learn, Share, & Build Careers

that requires the first 4 four modules per file to be in the form of the name length, as 8 characters to DDMM and balance using four characters function and scene trying to get random number of databases, so I'm using the database which I pasted below: Function: create function [dbo] [GenerateRandomNumbersLetters] (@NumberOfCharacters TINYINT) PS VARCHAR (starting back as 32) (left (REPLACE ([NewID], '-', ''), @NumberOfCharacters) from dbo. Retrieve Krennuved); End: See . See [dbo] Create [RetrieveNewID] as selection [NewID] = NEWID (); My question: select SUBSTRING (Place (convert (varchar (10), getdate (), 3), '/', ' For example: 0907CCE7 Each line will be included in the fileNamerandomNUM for example: dba.GenerateRandomNumbersLetters (4) it will provide a random number, but recent random generated duplicate in a situation, I can not even how to avoid such scenarios do, please advise Repeat the value for a random numb...

- Where Developers Learn, Share, & Build Careers

I have tried a lot but it is unable to parse JSN. I need all atrocities (book and camera) values ​​in the array. Can anyone help me? How to arrange caremaOjects values ​​and book object values. [{"Camera": {"picture": "http: \ / \ img7.flixcart.com \ image / -macyb5emj5yztet" camera ": {" picture ":" http: \ " "" "" "" "Model": "Lumix DMC-FP3 Point and Shoot", "Make": "Panasonic", "Price": 5830}}, {"Camera" "Sony" , "Price": 510}}, {/ sp.sony-europe.com} \ "/" "model": "digital still camera - h series - dcc-hx 200v", "make" "book": { "Description": "What is itself, and how can it be", "writers": "Douglas R. Hofstadter", "value": 650, "ID": 40724766, "title": "G \ u00f6del, asher, Bach : A Itanium ...

c++ - Using COM object in parallel_for loop, -

In my code I am using a parallel_for loop, in this loop I am calling from the COM object, But when it moves, it has not been executed correctly, something that says that COM can not be executed in any other thread, what do I have to do, do I have to multiply or multiply What to do, This is my code COMObject myCom; Parallel_for (tall (1), count, [& amp;] (long i) {myCom-> few calls (i);}); I think you should set MTAThreadAttribute [MTAThread] need to . For more information see:

- Where Developers Learn, Share, & Build Careers

When I try to parse Google RSS feed, I get a network error: Chrome and Firefox developer 500 internal server error tool. The first part of downloading the RSS feed (with curl) works fine. I found this example here: Can someone focus on doing me wrong? Thank you. & lt ;! DOCTYPE html public "- // W3C // DTD XHTML 1.0 Strongly //n" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Title & gt; Untitled document & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt ;? Php if (function_exists ("curl_init")) {$ ch = curl_init (); //curl_setopt($ch,CURLOPT_URL,'http://www.joevasquez.info/feed/ '); Curl_setopt ($ c, CURLOPT_URL, 'http://news.google.com/news?hl=en&topic=t&output=rss'); Curl_setopt ($ ch, CURLOPT_RETURNTRANSFER, 1); // curl_setopt ($ ch, CURLOPT_HEA...

jwplayer - No sound when streaming mp4 file in red5 server -

I used Red5 server for playback video used. As an offloado page, I tried to playback video via .mp4 file. I uploaded the file demo.mp3 to / usr / local / red5 / webapps / oflaDemo / streams / file, I used JWBplayer to run the video via RTMP. Here is a script to play video demo.mp4 However, JWPlayer is not only streaming video and no sound. I have tried in the red 5 demo page, but the same result. How to fix MP4 streaming in Red 5 for voice and video? The audio in the MP3 file should have an audio codec that recognizes red5; Which are currently only AAC

sql - Inserting into too many columns via SELECT query -

While it works as expected: SQL & gt; Drop Table Test 1; Table Dropped SQL & gt; Create table test (COL1 INTEGER, COL2 INTEGER); The table was created in SQL & gt; INSERT when 1 = 1 2 then test 1 (COL1, COL2) with 3 SELECT 1, 0 dual; 1 row created sql & gt; I get a strange "ORA-00918: Column fuzzy defined" error, which attempts to do it with more than two columns: SQL & gt; ; Drop Table Test 1; Table Dropped SQL & gt; Create a Table Test (COL1 INTEGER, COL2 Intecher, COL3 Integer); The table was created in SQL & gt; INSERT when 1 = 1 2 again in test1 (COL1, COL2, COL3) 3 SELECT 1, 0, 0 by DUAL; Then in Test 1 (COL1, COL2, COL3) * Error 2 in line: ORA-00918: Columns ambiguously in SQL & gt; Why am getting ORA-00918 error? Is there any limit on how many columns I can select in an insert ... then choose the pattern in ...? Note: I am using Oracle 11.2.0.1.0, and the actual query I am trying to execute in production is more complex an...

Get Date from timestamp in Groovy -

As trivial it may seem that, I do not find a way to convert a Unix timestamp into a Groovy to date object can. I should try with 1280512800 , which should be Fri, 30 July 2010 18:00:00 GMT My first attempt was New Date (1280512800) / False, Guru becomes 15 January 20:41:52 CET 1970 Then I have read That Java timestamps use milliseconds, so I should use the new date ((1280512800 * 1000)) / long duration is irrelevant in groove, in any case I // Thursday, January 08 03:09:05 C ET 1970 What is the correct way to convert a timestamp to a date? What if I want to specify the time zone to work? The problem is that he is going with integers, then creating multiplication is causing. . Try: New date (1280512800 L * 1000) or New Date (((Long (1280512800)) * 1000)

c# - How to check all rules which can be applied to a mailItem in Outlook -

I am writing an application that can be matched with the rules. // New Messages Here are the empty items IITemAdd (Object Items) {// All Rule Rules Rule = Application. Session Default store.gatereal (); Outlook.MailItemmail = (Outlook.MailItem) items; If (mail! = Null) {// I have to find out that mail matches a rule and handle it in a proper way}} The only way to check which items are applied ( and ) for each MailItem . Rule engine works by executing each rule you define - it does not provide a mechanism to preview the affected objects. There is an example ( untested ) in this context to match a subject rule ( olConditionSubject ) to you too Will need to handle. {Mailout = null} {foreach (rules in rules) {foreach (rule.Conditions in Outlook. Terms condition condition) {if (condition is TextRuleCondition) {Outlook.TextRuleCondition Trc = betting Outlook.TextRuleCondition; If (trc.ConditionType == Outlook.OlRuleConditionType.olConditionSubject) {/ TODO: Control the ...

Android: How to control volume: if volume button up, SeekBar up -

I have the following code for SeekBar : The problem is that I would like to use the User volume device button, even my SeekBar above or below In fact, with this code I can properly control the volume with both methods (tool buttons and codes), but when I use the Volume Device button, my SeekBar is stable. Any thoughts or suggestions? Thank you! You can solve this problem by reading the following problems. / P> Hope this helps.

ubuntu - PHP's native ZipArchive class fails when .zip is >= 4GB. How to fix? -

The original zip line (PHP) of PHP 5.3 + creates corrupted result files (.zip), but only when the result. Zip ~ 4 GB is larger (I think that 3,6 GB. Server Ubuntu 10.10 64bit, 4GB RAM , Latest PHP 5.3). Error (when it is unzipping .zip, which is also the software you use): file # 1: bad zipfile offset (lseek): According to many posts on the web, this is the maximum limit (undocumented) only for this class / zip function. My question is: how to fix it, quick and dirty? Are there some possible php.ini or server settings? Or 4 GB + on the original Ubuntu system Are there some other ways to create a zip file? I do not have root access and new packages can not be installed. There are some similar questions & Java on this way: This class has no limit, for example You can switch to tar.gz.

java - Stupid Math issue -

Image
Look at the gray circles with lines, they should be kept equally to represent hours, here is their code , where did I go wrong? (Int i = 0; i & lt; 12; i ++) {c.drawCircle (140 * (float) Math.cos ((double) (i * 30) for ) + Width / 2, 140 * (float) math.Syn ((double * (i * 30)) + height / 2, 1, p); } The angle must be provided in radians ( 0 and 2 * Math.PI ). Then, use Math.cos ((double) (i * 30)) instead of Math.cos (i * Math.PI / 6.0) Note that I also repeated the waste cast: one int multiplication and one double first Produces a double from itself.

Vim, how do I return to the place I was before pasting some yanked text? -

How do I return to that place, which I did before pasting some coupled text? And then back to where I was after immediately pasting? `[ you can remap it again You can also if you want: nnoremap pp` [nnoremap pp` [ ` jumps on a mark , And [ marks that location. Where to go back after pasting, OK, this is uncomfortable `] . If you ever have any such problem, you can always see which marks exist with : marks . In addition, you would like to see : help `[ for more information.

android - Text color in TextViews of ListView setted by selector works only in "normal" state -

I create ListView and my own listAdapter I use simple_list_item_2 I want to change the color of the text for each state below The code for dark.xml is: & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Selector xmlns: Android = "http://schemas.android.com/apk/res/android" & gt; & Lt; Item Android: state_choose = "true" Android: color = "@color / selected text" /> & lt; Item android: state_focused = "true" android: color = "@ color / selectedTextListColor" /> & Lt; Item Android: stat_press = "true" Android: color = "@color / selected text" /> & lt; Item Android: Color = "@color / text list collar" /> & Lt; / Selector & gt; Next when I try to set that functionality, it is a part of code I think is a problem. Arrayadapter & lt; Element & gt; Adapter = new array adapter & lt; Element & gt; (E.g., andro...

reporting services - SSRS export to Excel results in ##### -

When I export a report from SSR to Excel, some columns are formatted as #####. When I export the report server in Internet Explorer, I get this result as well. This is not a column width in Excel. Field numbers are field or percent fields when I double-click on a cell in Excel, results will be shown. But I have to click on all the fields to show results twice. I have also tried to change the format of the columns in SSRS, but I would like to do this in Excel without a ###### Settings can not be found

- Where Developers Learn, Share, & Build Careers

"Post-text" itemprop = "text"> I am working on a site, but can not come up with a good design for its implementation. Here's the flow: The user selects a shirt. The user's choice is the size of the shirt what the user says what they have to do, and it is added to their car. They can repeat or go checkout. The problem I have is for the line_item to be added to the car, it requires a sku and a design record. Design records are made at the point where they add it to their car. Right now, I have everything in the Store_computer then I have preparations like- prepare_for_cart, add_shirt_to_cart, confirm_order, add_design, show_receipt ... I do not know how I would like this stuff I can put some rest in it. It is something that can always be worked with the rest, or does it really work in some cases? What to do to try and make it more powerful and understandable? Are there other applicable design patterns to consider? In almost all cases RE...

How to manually show Windows 8 Metro loading wheel / loading dots using Javascript -

Image
जब ListViews या Windows 8 लोडिंग व्हील पर डेटा स्रोत का उपयोग करते हैं प्रकट होता है। यह ठीक है, लेकिन मैं अभी भी अपनी पसंद के एक कंटेनर में मैन्युअल रूप से इस लोडिंग पहिया को शुरू करना और रोकना चाहता हूं। मैं यह भी जानना चाहूंगा कि लोडिंग डॉट्स का उपयोग कैसे करें मैं इसे कैसे प्राप्त कर सकता हूं? जेवर के सुझाव के लिए धन्यवाद, मैं प्रगति नियंत्रण जोड़ने के लिए एक मार्गदर्शक ढूंढने में कामयाब रहा हूं। मैं जो चाहता था वास्तव में एक प्रगति कर रहा था, अधिक spesifically एक अनिश्चित प्रगति की अंगूठी HTML / JS HTML में यह कैसे किया जाता है: & lt; label class = "progressRingText" & gt; & Lt; प्रगति वर्ग = "जीत-अंगूठी के साथ पाठ" & gt; & lt; / प्रगति & gt; प्रसंस्करण & lt; / लेबल & gt; सीएसएस प्रगति। साथ पाठ {रंग: वारिस; / * पृष्ठ के रूप में एक ही पाठ रंग का उपयोग करता है * / ऊर्ध्वाधर-संरेखण: टेक्स्ट-नीचे; / * नियंत्रण के निचले हिस्से को इसके लेबल के नीचे संरेखित करता है * /} / * प्रगति की अंगूठी के लिए एक लेबल ...

insert & update users in oracle internet directory (OID) in .net -

I have very little experience working with OID and for the beginning I have been able to connect to the OID and have been able to find users in OAD from .net. With the help of forums, I am still struggling to get inclusion and updates from the Net. Is there any idea / example on which I can work? Your help is highly appreciated !!!! Thank you in Advance Ram Have you read this: If so You need to be a bit more specific about what the problem is.

- Where Developers Learn, Share, & Build Careers

How do I start the next / previous methods? I need to separate the buttons in more and not have all buttons in the toolbar. On a glance, I do not know the photovoltaic address but I got a look at the source and found the following: / * * function: previous * / previous: function () {if (this.isZoomActive ()) {return; } If (! Util.It is not (this crossover)) {this.carousel.previous (); }}, / * * Function: next * / next: function () (if (this.isZoomActive ()) {return;} if (Util! None (this carazel)) {this.carousel.next (); }} You can see the related carousel function referenced in the code given above.

- Where Developers Learn, Share, & Build Careers

I am converting the table into structured data using the code below. $ ('# html' ($ ('# content') .html () .replace (/ & lt; tbody / gi, "& lt; div id = 'table'") .replace (/ & lt; tr / gi; Div style = 'overflow: auto; padding-top: 15px;' ') .replace (/ & lt; / tr & gt; / gi, "& lt ; / Div & gt; ") .replace (/ & lt; td / gi, & lt; span style = 'float: left; margin-right: 20px;'") .replace (/ & lt; \ / td & Gt; gi, "& lt; / span & gt;") .replace (/ & lt; / tbody / g, " It works well in all scenarios except ROWSPAN; COLSPAN case. How can I manage the issue of that design when I convert a div into a table? I am stuck in it. Perhaps it takes you in the right direction: .replace (/ rowspan = "/ gi, 'class =" rowspan-'). Then make the style for the classes (such as Roshan-2 or Callspain-3 etc.). However, these are th...

java - Defined argument evaluation order leads to sub-optimal code? -

It is a known fact that argument evaluation commands are not defined in C and C ++: for example: foo (A (), b ()) In the above call it depends on the implementation of the compiler to decide which evaluation evaluates and so on which further executes. Recently one of my friends asked why the order of unspecified evaluation in C or C ++ is when I googled it, I found out that an evaluation order will lead to sub optimal code generation. But how is it? Why would a defined order of evaluation of logic take the sub-optimal code? And when I referenced Java's argument evaluation order. I got the following in the device. 15.7.4. Evaluation of logic lists from left-to-right In a method or constructor invocation or class instance expression expression, argument expression can be different in coma, separated from commas. Each argument expression is being fully evaluated from any part of any logic expression before its right. If a logic expression is evaluated suddenly, then any par...

open source - Generator or Tool for comprehensive documentation of Java applications -

I have maintenance which is written primarily in Java. It is well documented and Javadoc generator automatically creates a useable documentation. But I want to create a more comprehensive document that includes explanations for introductory information, tutorials, important methods / functions and javadocs. Python is a very good example in the world, for example: Is there a device or generator that Can reduce the process of document creation? Update Maximum one candidate The Maven site plugin may be useful to provide overall composition. Link is

- Where Developers Learn, Share, & Build Careers

I canvas another JavaScript canvas created through the canvas I am trying to attract But this is not working for me, this is my code, I think the problem was, when you attract the picture in the picture The canvas were trying, the image was not ready. So if you do this then it works perfectly: And you can adjust the height and width of the dynamic canvas. If you delete that window Open statement, correct it. But there is a problem with canvas.toDataURL () when you try to canvas.toDataURL () A local file, it returns a security error (if you inspect it via Google Chrome) that means wasted error: SECURITY_ERR: DOM exception 18 You can learn more about this error: (See if you are getting this error). Anyway, the root cause is solved, and a new problem is now completely: D. Otherwise better fortune!

- Where Developers Learn, Share, & Build Careers

Why would I create a recursive relationship? Is it like the above? class a class (models.model): eiffel = model. When you use the same model structure, If the father and child want to node, you may need to make a recurring relationship. For example, if you have any comments with text, data and user_id: class comment (models.model): text = models.TextField () create_date_time = models.DateTimeField () parent_comment = Models.ForeignKey ('self') I think yes (you can try testing it), but this is not a good form If you change the name of a class, then you have to change the string value in the brackets. If you use 'self' then you do not do this headache.

php - How can I remove checkbox key values from a query string? -

I have a checkbox in a form, I am posting to a php form processor. My form receives a request for the processor web service Does this service require each check box? Services = chin & amp; Services = Neck and Services = Back and Location = 5 There is no key value, but with my php code, this is an [[outputting] [] after each service. $ Buildname = ' 'Lastname' = & gt; $ last name, 'email' = & gt; $ email, 'emailconfirm' = & gt; $ email, 'phone' = & gt; $ telephone, 'comments' = & gt; $ message ); $ Url = "Fakevadress?" . Send email ($ formok) {$ curl_handle = curl_init ($ url); Curl_setopt ($ curl_handle, CURLOPT_RETURNTRANSFER, true); Http_build_query ($ field, '', '& amp;'); // if everything is okay; $ Results = curl_handle; curl_close ($ curl_handle);} My HTML box looks like this Input type = " Checkbox "name =" services [] "value =" leg "/> ...

- Where Developers Learn, Share, & Build Careers

I am creating project projects however, I want to add several SQL files with columns in excel file. I tried insert object & gt; Create file but the file is not attached and is not capable of linking that file Instead of links to that file, I would like to attach only so that I will have all other attachment files using only one Excel.xls file How can I get it? There is no such thing as a SQL file standard. When you view such files, they can be fed into a vendor's SQL database product, in a vendor-specific version of the usually a series of commands in the vendor's database. ; The database engine will process them and update the database properly. You can see the file to see what you have, or do you have some other (possibly a binary) file that someone has done with SQL Extensions (some people do not have a single file with SQL Database Do, for example). The SQL vendor varies from seller to seller, so you may be able to apply a file of SQL comm...

javascript - HTML5 : Changing the value of items in localStorage -

I am currently working my way through some example test questions on HTML5, and I came across the following: How can you change the value of cookies and items in the collection of local storage attributes in HTML 5.0? a Window.dialogArguments () by using the API method. b. Open the window. Navigator.yieldForStorageUpdates () API Method. c. Open the Window.navigator.appName API method. Questions for a start seem incredibly bad. (Cookies and items in local storage? Hmmm!) Besides, I'm not sure any of the answers is completely correct ...? As far as I know that yieldForStorageUpdates () does not return any scripts which can not be returned so storage can be updated ... but this does not actually change the value ? Is my ignorance visible or is it a very bad question? : - / The browser is ever used as a fall if the browser does not implement local storage Does. It is fairly straightforward that none of these three are expressly answering this question. As y...

rest - MOXy's @XmlCDATA seems to have no affect -

मैं निम्नलिखित ब्राउजर (स्रोत देखें) & lt; सामग्री & gt; & Lt;! [सीडीएटीए [कृपया इसे एक अप्रेसिड सीडीएटीए टैग के अंदर दिखाएं]] & gt; & Lt; / सामग्री & gt; लेकिन मैं acutally मिल & lt; सामग्री & gt; कृपया इसे एक अपठित CDATA टैग & lt; / content & gt; अगर, मैं सामग्री के मूल्य को & amp; lt;! [सीडीएटीए [कृपया इसे एक अपरिवर्तनीय सीडीएटीए टैग के अंदर दिखाएं]] & amp; gt; सोचो कि मैं क्या चाहता था को प्राप्त करने के लिए ???? यहां मेरा कोड है आयात करें javax.ws.rs.GET; आयात javax.ws.rs.Path; आयात javax.ws.rs.PathParam; आयात javax.ws.rs.produces; आयात javax.ws.rs.core.MediaType; @Path ( "/ myRequest") सार्वजनिक वर्ग MyRestClass {@GET @Path ( "{myPathNumber}") @Produces ({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) सार्वजनिक वस्तु doInquiry (@PathParam ( "myPathNumber") स्ट्रिंग myPathNumber) {प्रयास करें {नई MyObject लौटें}; } पकड़ (अपवाद ई) {वापसी "अपवाद" + ई। मेगास (); }...

Error in using sparql DELETE query using rdflib python -

I am trying to use the triangle rdflib library from the RDF graph, but did not succeed in doing this . My query is learned from follwong. Plugin ('sparkle', 'rdflib.query.Result', ' 'Rdfextras.sparql.query', 'SPARQLQueryResult') bdel = graph.query ("" "PREFIX bibo: This is giving the following error, thanks in advance for any query to solve this problem. Pipering. Perpendicular Expectations: Expected "SELECT" (116 in four), (line: 4, colonel: 17) As mentioned, it seems that you are trying to use graph.query which actually expects 'SELECT' only. Versions of SPARQL queries To run any SPARQL update, you must use graph.processUpdate () would be required. For your example, with the following: process update (graph, "" "PREFIX bibo: ?}} { Hope it helps!