Posts

Showing posts from June, 2011

asp classic - What is the difference between asp and asp.net? -

I am developing web applications using asp.net, but I want to work on ASP, I installed ASP Or we can write code using Asp.net, what is the main difference between these two ASPs, ASP.NET is that the legacy version of ASP Active Server Pages was created before the Net Framework. It works on IIS and written in VBScript or Javascript. ASP.NET is a new version built on top of the Net Workwork and it has been written in VB.NET or C # IMO, learning your time and using ASP Should use. As a classic ASP, it is ancient in the case of Net Web Technologies and will probably not be supported for a long time (only estimating it there ..) You may possibly want to consider seeing ASP.NET MVC There are solutions too.

java - Logback+Swing in small tool -

I need to hack a small device. It should read some files and convert them. Right now for my user who works in IDE, I would like to add a small UI which only shows log output. Do you know about ready-to-use swingappers for logging in? Or something that redirects System.out to nothing more than a text field with a little UI and a "close" button? PS: I'm not looking for a series or ara or Lilith. Please want to display the log message in the application, please. You must write a custom appender such class: public class MyConsoleAppender AppenderBase & lt; ILoggingEvent & gt; {Private Encoder & lt; ILoggingEvent & gt; Encoder = new echo encoder & lt; ILoggingEvent & gt; (); Private BitReon Output Stream Out = New Bytereanputstream (); Public MyConsoleAppender () {LoggerContext LC = (Logger CONTACTS) LoggerFactory.getILoggerFactory (); SetContext (LC); Start(); Lc.getLogger ("Route") addAppender (this). } @ Override Public Zero...

php - How to read values from MultiCheckbox in Zend -

I have a problem with this Zend form element, how can I read the element status of the multicachebox? $ type = new Zend_Form_Element_MultiCheckbox ('typer'); $ Type- & gt; SetLabel ('type'); $ Type- & gt; AddMultiopts (array ('1' => 1 type ',' 2 '=> 2');); Thanks for the support! retrieve it with GetValue () $ Type- & gt; GetValue (); This would be an array with only that element that was checked. i.e. & lt; Input type = "checkbox" name = "type []" id = "campaign_id" value = "1" /> & Lt; Input type = "checkbox" name = "type []" id = "campaign_id" value = "2" /> Such an array will return (if both are checked) Array ([0] => 1 [1] = 2) If asked only the checkbox 2 was checked then the array Aare ([0] => 2) getValue () will return NULL if no checkboxes are checked

apache - how to install new oracle apex theme? -

I'm trying to install new top themes but the problem is I do not know the Apache webserver? I tried to put it on Apache / Images but it does not work So nobody knows where to place the Picture folder Note: I have imported successfully. Sql file and has already made the theme a new switch. It depends on how the template image files. By default in Apex, a folder named / i / indicates that there is a replacement value named #IMAGE_PREFIX # This folder, in turn, Only one nickname is set in Apache config (see dads.conf file to determine actual location). Your template should reference reference images using #IMAGE_PREFIX # some_folder_name / some_file_name, in which case you have to insert images into a folder named "some_folder_name" below that directory which points to / i / alias Does.

java - Why my equals method won't work? -

assertEquals (def.getMengs (), exp.getMengs ()); विफल रहता है, रिपोर्टिंग: अपेक्षित: java.util.HashSet & lt; [... तो geht die Legende ... ... किंवदंती यह है ...]> लेकिन था: जावा उपयोग.हाशसेट और लेफ्टिनेंट; [... तो गहट डे लिएंगेडे ... ... किंवदंती है ...]> वास्तव में, डीबगर के माध्यम से मैं देखता हूं कि दोनों सेट में केवल एक ही शब्द है objId = 1 दोनों के लिए। मुझे उम्मीद है कि उपरोक्त कामों के लिए मीनिंग क्लास (एंटीटी) में निम्नलिखित कोड की उम्मीद है। @ ओवरराइड पब्लिक बूलियन बराबर (ऑब्जेक्ट ऑब्जेक्ट) {अगर (! (ऑब्जेक्ट इंस्टॉलेशन के अर्थ)) {return असत्य; } अन्य अर्थ = (अर्थ) ऑब्जेक्ट; अगर (अन्य! = नल & amp; objId == अन्य.ओबीजेआईडी) रिटर्न सही; विवरण झूठा है; } @ ओवरराइड पब्लिक इंट हैशोड () {इंटी हैश = 7; हैश = 67 * हैश + this.objId; वापसी हैश; } वास्तव में, यह परीक्षा पास: db.insert (व्यवस्थापक); अंतिम अर्थ मँग = नए अर्थ (व्यवस्थापक, नई अभिव्यक्ति ("एसेन")); meng.setObjId (11); अंतिम अर्थ meng1 = नया अर्थ (व्यवस्थापक, नया अभिव्यक्ति ("मंगेर...

java - Building Froyo fails - make: *** [.../classes.dex] Killed -

I make Google's Android v2.2 (froy) from source on Asans A3A laptops (512 MB RAM) I am trying to get the Ubuntu running Netbook 10.04 I have followed the instructions given above and used it using Java on version 5: sudo update-java-alternatives -s java-1.5 .0-sun Java-version gives me: 1.5.0_018 Thus the prebilled check of Android is allowed to work. I export the Java home directory and set it to Android Java Home To set up your ~ / .bashrc also. I also have: Repo Init-U GIT: //android.git.kernel.org/platform/manifest.git -b Fryo Repo Sync Then just me: create It goes for a minute then I had a long time: target dex: core then: create: *** [out / target / common / obj / java_LIBRARIES / core_intermediates / Classes.dex] And I'm back to a signal I suspect that this is a memory issue because it's the example of any browser The crash, which I opened at the same time. Do you know any solution / solution or at least one good way to start debug...

drupal - View only populated when "administer content" is granted -

So I created content type "seminar" with a group of CCK-fields in Drucal. Then I did not make any access restrictions for these seminars. As the user works well for the authentically authenticated users, I can use the page as an anonymous user with "permission to view content" and all CCK areas for seminars, but I can not see any seminars . When I allow the unknown to "content administration", the scene becomes popular with all the seminars. I think I remember just a few stupid checkboxes, but I can not understand this for my life that it What else can be. Try to recreate the permissions and clear the visible cache (view -> Tools) . If you have not set any access restrictions in the view, then "Use content" and CCK field permissions must be sufficient. Managing the content is a very dangerous permit, it overrides most other content related permissions.

silverlight - What is the real advantage of keeping code out of the XAML code behind? -

There are many attempts in the Silverlight community to keep XAML codes behind the code as code-free as possible What is the real motivation? For example, what is the use of command instead of an event handler? If I have & lt; Button x: name = "save button" content = "save" click = "savebutton_link" /> ... Private Zero SaveButton_Click (Object Sender, RoutedEventArgs e) {_myViewModel.SaveChanges (); } So why do you like it? & lt; Button x: name = "save button" content = "save" command = "{save compulsory}" / & gt; Where clearly the SaveCommand is going to call SaveChanges () in my visual model . This can lead to situations where the scene is 100% XAMML, and the connection between the visual and visual model is done entirely through bondage while giving the visual model in the XAML. goes. Sure it is clear, but what else is it? Flexible? Why? The scene still needs to work with the proper V...

distribution - Distribute ASP.net Application -

I have an asp.net application and I am selling it to various companies. I change the application settings according to company information and publish a complete folder in the output folder. And then move the output folder to the client machine with the required DLL (my app del and some third-party DLL). I am wondering if anyone is able to decompress code and receive an application code in the DLL bin folder? Is there a standard process that I have to follow so that my code is secured in the client server. You should cover the DLL that was created for your project, but there are some issues related to ASP.NET . Enjoy!

include guards - in C++ , what's so special about "_MOVE_H"? -

मेरे पास इस तरह एक सी ++ फाइल है #ifndef _MOVE_H #define _MOVE_H class Move { Int x, y; सार्वजनिक: हटो (int initX = 0, int initY = 0): x (initX), y (initY) {} int getX () {return x; } शून्य सेटएक्स (इंट न्यूएक्स) {x = newX; } पूर्णांक () {वापसी y; } शून्य सेट वाई (इंट न्यूवाई) {y = newY; }}; #endif और मेरी विस्मय करने के लिए, #ifndef और #endif के बीच का सभी कोड को संकलक (I कि मैं _MOVE_H कहीं भी परिभाषित नहीं कर रहा हूँ), और मेरे पास गलतियों की परिभाषाओं के बारे में सभी प्रकार की त्रुटियां हैं मैं सोच रहा था कि मैंने कुछ गलत किया है, लेकिन जब मैं किसी अन्य कुंजी (जैसे _MOVE_Ha ) का उपयोग करने की कोशिश करता हूं, तो सब कुछ सामान्य हो जाता है। क्या _MOVE_H सी ++ में कुछ खास है? / P> मैं उबंटु 10.04, जीसीसी 4.4.3, चल रहा हूं, यदि यह मामला है। धन्यवाद,

XML signature validation against remote certificate, with PHP -

I am working on a project where I validate an embedded signature in the XML file (SAML claim) against the public Is there a key located on a deleted server? Has anyone done this in PHP? I think in the user comments you are seeing an answer to the lie within the document of PHP: It should help you and just remember, as long as you can get the proof of the file, you can enable Should be used).

php - Codeigniter Active Record inside custom library class -

My job breaks on the line where I make an active record call, so I should not call the right things . & lt ;? Php if (! Defined ('BASEPATH')) exit ('no direct script entry is allowed'); Class stuff {public function specific ($ passer)} {resonant "test"; $ CI = & amp; get Instance(); $ CI- & gt; Load-> Database (); $ CI- & gt; Load-> Assistant ('array'); $ CI- & gt; Load-> Assistant ('format_helper'); $ Data array = $ this- & gt; Db- & gt; Where ($ column_name, $ stock new); $ Data array = $ this- & gt; Db- & gt; Get ($ tablename); Echo "Bolx!"; "Test" will echo, but not Balox! You should use $ CI-> db -> ... not $ this-> db

android - creating bounding box around openGL objects -

I have created an open GL class. last float array1 [] = new Float [] {// front face LX, LE, HJ, LX, HA, HZ, HX, LE, HZ, HX, HA, HJ}}; I have found a solution. Now I will put bounding boxes around every square so that I can see if they pierce each other. Thanks How can you go about doing this? In the case of a class, the bounding box is class, in fact, the bounding box put around the squares is required. A bounding box is only a concept: a geometric shell in which some other (real) geometry can be in the conceptual existence, considering that a complex polygon object is examined against each of the rectangular It is very easy (and fast) to check against 4 corners (for collision etc). There is a special problem for you to detect a collision, so you should project your ray to your ray on the plane defined by your crossroads. If the point of the plane is located between all your corners, the ray hits the square.

php - What does this mean? $length = null === $length ? strlen($data) : (int)$length ; -

I know about the Ternary operator, more or less but I am unable to read this line. $ length = zero === $ length? Strlen ($ data): (int) $ length; $ length = null === $ What is the length? Thank you very much, MEM $ length is the value of null , It means: "itemprop =" text "> code> strollon Otherwise, (infinite) $ length . It's easy to understand that the bracket is placed in the right place: $ length = (Zero === $ length)? Strlen ($ data): (int) $ length;

metaclass - Python: Metaclasses all the way down -

I have a mysterious question that includes Python metaLess I create a Python package for web-server-side code I've been using arbitrary python classes through a client-side proxy to make it easy to use. My proxy-generating code requires a list of all Python classes, which I want to include in my API. To create this list, I am using the __ metaClass __ special feature to put a hook in the class-creation process. Specifically, all classes in the "published" API set to enter information about a particular base class, Python Direct PR , which is __ metaclass __ Has been building the class. So far so good. Where it gets complicated, it is to get me own Python Direct PR in the succession from a third-party class ( enthought.traits.api.HasTraits ) itself Want to This third-party class uses also a __ metaclass __ . What is the correct way of managing two metaquals? Should my Metaclass be a subclass of Intetech Metaclass? Or should I just add the metathesal of A...

java - ClassNotFoundException thrown when compiling basic Hello World Program -

I'm just trying to compile and run a very simple test program, but it will not work only, And I do not know what the problem is. I have a Java project that has stacked on me, and I do not know anything about Java. Especially compilation of Windows command line I have a need to compile a simple "Hello World" program I have two jars with I Here's my "Buildkbat" C: \ jdk1.6.0_21 \ bin \ javac -cp "C: \ Users \ FREYERA \ Desktop \ Test"; "C: \ Users \ FREYERA \ Desktop \ Test \ test1.jar", "C: \ Users \ FREYERA \ Desktop \ Test \ test2.jar"; "C: \ Users \ FREYERA \ Desktop \ Test \ sample.java" Then, I: C: \ jdk1.6.0_21 \ bin \ Java sample gives it force back the error: "main" exception java.lang.NoClassDefFoundError Thread: sample which: java. lang ClassNotFoundException: java.net.URLClassLoader $ 1.run (URLClassLoader.java:202) sample java.security.AccessController.doPrivileged (Native ...

livechat - place online to do shared coding for interview -

I am giving a phone interview shortly, and ideally, I hope the candidate will write some code in real time . Can someone suggest a site where we can both go and type when I see it (I am behind a very strict corporate firewall, so many basic chat services are blocked.) I forget that I originally got this but it is quite a nifty.

split string for firstname and lastname in vb.net -

I have a string called "Joseph van Andrews". I want to split it in such a way that the first name is "Yusuf" and the last name "van Andrews" can I do it in vb.net? Concepts: The first name and last name are divided by one place, and if multiple locations are present, then the first place is used as a separator. / P>

php - How to invite a users friends to an event? Facebook Graph API -

I have an application using the graph API I am making it an event for the user, but the user is coming to Facebook Instead the user would like to invite his friends. Does anyone know of this request that I have to send friends IDs to invite them with the old APIs? Or if it is also present? I am getting very detailed information in API documents is unclear. Thanks! Besides, the side question, can you send an event photo with the post? I do not see any emphasis on how to submit a photo with incident creation. Thank you. This is actually possible with graph API, especially invite Connection to event object: POST / EVENT_ID / invite / USER_ID Invite a user one accident. If the request is successful, then correct returns. Posts / EVENT_ID / Invite? Users = USER_ID1, USER_ID2, USER_ID3 Invite multiple users to an event If successful, return true . You will need permission for create_event More information is available.

mysql - php 's mysql_query function didn't support more LIKE statament? -

I inquired: choose from marriage * where YMD_X '2010-1- % 'And married.' AA% 'and do not like to get married.' BB% 'is not liked; But after using the mysql_fetch_object function, I could not find the exact result, the result as I would ask: select * from the wedding where '2010-1-%' like YMD_X; Why? Find some code pieces: $ res1 = $ db-> Find ("Choose Marriage from Marriage * where YMD_X like". "". $ CnDate. " % 'And not' 冲 '. $ Male_shu. "%';"); Find public functions ($ sql, $ key = null) {$ data = array (); $ Result = $ this-> query ($ sql); {$ Data [$ line -> {$ key}] = $ line;} and {$ data [] = $ line;} ($ line = mysql_fetch_object ($ result)) {if ((empty ($ key)) } $ Returns data;} public function query ($ sql) {$ stime = microtime (true); $ result = mysql_query ($ sql, $ this-> conn); $ This-> query_count ++; if ($ result === false) {new exception throw (mys...

MySQL CREATE FUNCTION fails on a shared webserver -

I have the following work when I try to create it on the webserver, then I did not have the same problem with any other webhosting (and exact functions), how can I fix this? (I can not change MySQL settings) has been created `has_action_access` (in_role VARCHAR (255), in_request VARCHAR (255), in_action VARCHAR (255)) Return Tinyint (1) READS SQL data transfer start current current_role VARCHAR (255); DECLARE found, cont TINYINT (1) DEFAULT 0; SET current_role = in_role; Searched: Select repetition from COUNT (*) to cyp_action_access where request = in_request and action = in_action and role = current_role I found; If found = 0 then select COUNT (*) from cyp_roles where name in name = current_role; Select cont = 1 if inherited from cyp_roles where current_role in current = current_role; end if; end if; Until (cont = 0 or found> 0) repeat the end; Returns found; End; The version of MySQL Server is 5.0.90-log . Your user does not have the super privilege You need...

How to use +number in asp.net server error page? -

If my app throws an exception, I see the server error page. The stack track shows the method where the error occurred (for example the empty reference exception), and plus number, such as +730, how can I return that number back to the C # code line? Edit: I do not know what "+730" represents and I do not have any reference book for it. One thing I can tell you is that it does not have a line in the C # file. If you press the Ctrl + G using Visual Studio and you want the page on that line You can also enter the number which is the exception, you can see the stack trace using Debug> Window> Stack Trace, it helps

c# = operator problem -

सी # में, मेरे पास एक सरल 3 डी वेक्टर क्लास है। स्थिर शून्य मुख्य (स्ट्रिंग) [] आर्ग्स) {वेक्टर 3 डी ए, बी; ए = नया वेक्टर 3 डी (0, 5, 10); बी = नया वेक्टर 3 डी (0, 0, 0); बी = ए; A.x = 10; कंसोल.प्रकाश रेखा ("वेक्टर ए =" + a.ToString ()); कंसोल.प्रकाश रेखा ("वेक्टर बी =" + बी। टॉस्ट्रिंग ()); Console.ReadKey (); } आउटपुट है, वेक्टर ए = 10, 5, 10 वेक्टर बी = 10, 5, 10 मैं कुरकुरा को 10 में बदलने से पहले असाइन करता हूं। इसलिए मुझे उम्मीद है वेक्टर ए = 10, 5, 10 वेक्टर बी = 0, 5, 10 मैं समझता हूं कि = ऑपरेटर एक सूचक की तरह ऑब्जेक्ट के संदर्भ को निर्दिष्ट करता है? और सी # मैं खिचड़ी भाषा के अधिभार = ऑपरेटर में क्या मुझे हर प्रॉपर्टी को मैन्युअल रूप से असाइन करना है? हां, क्योंकि विक्जर 3 डी एक वर्ग यह बिल्कुल सही है। कक्षाएं संदर्भ प्रकार हैं और आपका b = a; कथन Vector3D उदाहरण की प्रतिलिपि नहीं करता है, लेकिन इसका संदर्भ उदाहरण। यदि आप उदाहरणों को क्लोन करना चाहते हैं, तो आप आईसीलेनेबल इंटरफ़ेस जोड़ सकते हैं, लेकिन यह अधिक या कम छोड...

Curl giving "Invalid UTF-8 JSON" error from CouchDb although JSON is fine? Any ideas? -

This question "about error 'invalid JSON' 'thought is slightly different than DB's view, but Jason's OK". : No file is trying to upload, just enter a simple document. For example, I'm actually trying to use Oreli's book "Cochidibi: The Definition Guide" and I'm pretty sure that I tried to do it earlier and to do it Found for Here's the command: curl -x PUT http: // username: password@127.0.0.1: 5984 / album / 6e1295ed6c29495e54cc05947f18c8af -d '{"title": "Something to lose Also do not save "," Artist ":" Foo fighters "} ' Database album is present and the username and password are correct. I have checked it with JSONLint and JSON is valid and I'm getting damaged ... Probably there is a problem with the CouchDB server but it is running properly ... any thoughts? This is driving me! Thank you Thanks guys get out, this is a problem to avoid quote Here I have been...

Passing a url as a variable into thumbalizr php -

I'm using Thumbalizr API to capture website screenshots. I am trying to pass a URL from the script below to a variable where it is currently called "www.google.com" . When I try $ url = "www.google.com"; and $ Image & gt; Request ($ url); This failed and retrieved a screenshot but one finds that the URL was out of reach Anything I am doing wrong complete here In order to work, the basic php is header); // Print Text Outcome Output - Can You Dump Your Own "Queued Picture"}? & Gt; If you show us your current code, someone with IE $ url, . In essence, the $ url being used instead of the $ URL should not make a difference unless the $ url is correctly defined in the current field (if inside a function). Show the current and we can assist you in solving this problem.

ruby on rails - How to store an id in a model class -

It should be an easy thing to make sure I really know how the title is, though. I have a collection of modules which can be added to my CMS (Page, Link, Form ...), all are connected to a table through a polymorphic association which manages common things like ancestors And what are they capable of etc. .. Because I'm creating a 'page' for example, I automatically handle the creation of this second table record. I need to pass it to parent_id To do this, I have created a proxy through the page model: Prefix parent_id = (parent_id) @parent_id = parent_id.blank? ? Nil: parent_id.to_i component_instance.parent_id = @parent_id end def parent_id @parent_id || = Component_instance.parent_id end component_inthe is a multi-union. You can see when parents are set to the page, then I am checking some magic that it is empty and if so, set the @parent_id value to zero Otherwise, I am allocating it to the integer, then I am allocating it as a component, it will be applicable ...

actionscript 3 - AS3 BitmapData to byteArray -

I am trying to sort the bitmap to store in an XML file. My plan is to convert Bitmapdate to a bitrate, but I'm not able to fix an example of this. Other suggestions are also welcome. should be processed: bitmapdata> byte> base64> xml pixels Use the pixel () method to get bitmap data to get biterease. Then you can use something like encoder to convert it to 64.

How to create a sidebar with latex? -

I need to create a journal, and at the end of the page is to create "recommended books" on the page of the magazine, but I did not find anything that would give me this result. I'm already using multicol package for content and I can not see how a graphic package will help me. I also need a nice blue background with rounded corners, help is welcome ^ ^. / P> Box to format the box and try to use the package to keep the package.

python - Detecting mulitple cycles in a cyclic directed graph -

I have a cyclic graph guided with more than one cycle and one way (and List) should exist in diagrams. The graph can be seen here: This is a dragon graph which is put together to debug my dragon script. There are cycles in: [n13, n14], [n6, n8, n15, n16, n7], [n6, n8, n9, n7] The algorithm must know each cycle in the Digraph, not only the smallest, nor the first it competes. "post-text" itemprop = "text"> You did not actually specify how you represent the guided article, but you can see it.

seo - What is keyword stuffing? -

Simple question: What is keyword stuffing? What's the recommended number of unique keywords to use in your meta tag per page? In the forums, PPL is called 2-3 pages per page. I have seen 8-10 pages per book in books, I just want to know in numerical terms which are considered keyword stuffing. Thank you. The answer will depend on the different types of references and keywords. Any salt sensor in it will tolerate more keywords and get reward if it determines where they appear in a grammatically and expressive sound sentence. For example, if you're just listing words, then your maximum is 2-3 if you are actually distributing unique and valuable content, then a higher number will not set any alarms. He said, I have prepared completely to increase SEO to not hesitate to contribute to junk text only. Quality material should be paramount.

c# - Force the user to select minimum two check boxes in each section in gtrid view? -

Image
I have to select besed checkbox on group column values. If you see the gridview below, the column 3 (group number) has 1,1,1,1,2,2,2,2 .... ( This column data is not static, based on the page index . i.e. PageIndex = 2 can begin with 7,7,8,8,8,9,9,9 etc ). Now my question is. Every denomination / group user should select at least 2 check boxes. So if the user selects only one check box then we need to show a pop up message "Please select another check box in that particular section" If the user leaves the message and goes to the next section, then we will get the same The message will be shown We need to emphasize the user to select more than one checkbox in the same section. Mainly our aim is the check box that is related to a category of users selected in each section / group. Please help me in this requirement. thank you in advanced. You need to use custom validation and see it in the code to run gridview rows again Required Edit: You need to add ...

javascript - jquery: context with closures? -

I have a simple question about jQuery about the general question, but javascript approach also ... Is it okay to do this? : this._checkedTexts.length = 0; // & lt; Arax - related to "Mary" reference. $ ('# ValueContainer Input: Check'). Each (function () {contextCheckedTexts.push ($ (this) .text ());}); Since 'this' indicates the element, I am using one stop here to keep additional context for each 'handler'. Is this the way What are the other options? I think any risks may be involved in how this is done or how to stop using it in this way? It is very practical - but I am always concerned about starting reference-problems, when using the closure - which is hard to find later. I do not know what you are trying to achieve, but your code can do the same. Are, this._checkedTexts.length = 0; // & lt; - Aram related to "me" var arr = $ ('# valueContainer input: check') Map (function () {return $ (this) .te...

java - how can I get list of revisions of file from webdav repository on client side -

I'm getting a list of files through a profit mode: DavMethod pFind = New PropFindMethod (URL, deviantstant.propix_polip, devonstant. DEPTH_1); HttpClient.executeMethod (pFind); Multistats Multistat = pFind.getResponseBodyAsMultiStatus (); Multistat Response [] Responses = Multistat.Getrespons (); For (int i = 0; i but there is no information about the modification of the properties resource. How do I get this information? Live DeltaAV properties have not been reported with PROPFIND allprop; You may need DAV: Check-In, DAV: Check-Out, and DAV: Version-History, or DAV: Version-History Report.

.net - Silverlight ScrollViewer or HorizontalScrollBar -

I have the ScrollViewer and the child stack panel. When I add content, I need my horizontal scrollbar. how to do this? Items dynamically added to the stack panel item I am trying to use this. ScrollViewer.ScrollToRight (); But this is not always a scrolling. "myScroll" is the name of the scroll viewer. myScroll.ScrollToHorizontalOffset (myScroll.ExtentWidth);

datetime - How to convert difference between dates into years using php -

I have the expiration dates for dates and formats (mm / yyyy) in my format. I want to show the difference of dates in years, months. Example: Start date 09/2008 end date 07/2010 should read the display 1 year, 10 months I appreciate any help. Thank you. $ start = datetime :: vs format ('m / y', '0 9 / 2008 '); $ End = DateTime :: createFromFormat ('M / Y', '07 / 2010 '); $ Diff = $ start- & gt; Different ($ end); Copy $ diff- & gt; Format ('% Y Year,% m Month'); Note that this requires PHP 5.3.0 or higher.

iphone - How to populate UIPickerView with .plist file? -

I want to populate one.plist files from several .plist files according to user selection. How one To populate the UIPickerView with Plist file? I do not understand your question well, but this is what I guess I am here. you. You can load the data from the Plist file and then fill the UIPickerView. Here is a sample code for loading a .plist file: NSString * path = [[NSBundle main bundle] bundle path]; NSString * Lastpath = [Path Stringbacking Padding Contract: @ "money.plist"]; NSDictionary * plistDictionary = [[Encyclopedia Dictionaries with content ofFile: FinalPath] is maintained;

TFS Continuous Build - MSBuild - Running Test fails when search Config files -

I have a problem with the running test on the VS TFS 2008 constant build. The problem is that the MSTest.exe search config file is under "C: \ Program Files (x86) \ Microsoft Visual Studio 9.0 \ Common7 \ IDE \" path, hence the error is: C: \ Program Files (X86) \ Microsoft Visual Studio 9.0 \ Common7 \ IDE \ MyConfig.config could not be found. Is there a way to specify MSTest.exe where the config file was found? How can I specify in TFSBuild.proj? My TFSBuild.proj file contains these settings: & lt; Asset group & gt; & Lt; RunTest & gt; True & lt; / RunTest & gt; & Lt; / PropertyGroup & gt; and Thanks a lot! Use your unit in test code. So you can control which files are deployed while running a test. For example: [DeploymentItemAttibute ("MyConfig.config", "MyConfig.config")] [TestMethod] (...) Before running a test, copy the MyConfig.config file to the current directory. Hope that helps, ...

In cakephp,layout calling two times when i use AJAX -

कृपया नीचे कोड स्निपप्ट देखें: & lt;? Php // अद्यतन को सेट करता है और DOM ID $ paginator- & gt; विकल्प (सरणी ('अपडेट' = & gt; 'सामग्री', 'सूचक' = & gt; 'स्पिनर', 'url' = & gt; $ this- & gt; पारित कर दिया गया है) द्वारा सूचक तत्व); प्रतिधारा $ paginator- & gt; prev ('& lt; & lt; पिछला', रिक्त, शून्य, सरणी ('वर्ग' = & gt; 'अक्षम')); प्रतिधारा $ paginator- & gt; अगला ('अगला & gt; & gt;', रिक्त, शून्य, सरणी ('वर्ग' = & gt; 'अक्षम')); ? & Gt; और मेरा पृष्ठ यूआरएल है अब मुझे एक समस्या है। मैं केक के साथ एजेएक्स आधारित पेजिंग का उपयोग कर रहा हूं, लेकिन जब मैं अगले पेज पर क्लिक करता हूं तो उसे शीर्ष लेख और पादलेख दो बार। अगर मैं एजेक्स के साथ दो बार फ़ंक्शन का उपयोग करता हूं तो मैं केवल एक बार लेआउट को कैसे कॉल कर सकता हूं। कृपया अपना समर्थन दें। धन्यवाद ऐसा कुछ आपकी मदद कर सकता है: यदि ($ this-> RequestHandler - & ...

c# - MS-Build BeforeBuild not firing -

I have customized a .propro project to run some custom functions before the main build I am here. However, I can not execute tasks at all. I joined & lt; Target name = "beforeBuild" /> Specified in the element .csproj file and added a simple message function, but when I create a message, the message does not appear in my output, so it seems that the function is not working So this piece does not output to the message; Listing 1: No messages appear & lt; Target name = "first building" & gt; & Lt; Message text = "about creating an ORM layer" value = "normal" /> & Lt; / Target & gt; However, if I screw with some attributes, then I can fail to execute .csproj at all; Listing 2: An MSBuild configuration error & lt; Target name = "first build" & gt; & Lt; Message text = "About creating an ORM layer" XXImportance = "normal" /> & Lt; / Target ...

Jquery select element by index -

मेरी मार्कअप है: & lt; ul style = "- moz-border- त्रिज्या-नीचे की ओर: 0; -मोझ-सीमा-त्रिज्या-तलright: 0 "वर्ग =" यूआई-टैब ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all "sizcache = "3" sizset = "5" & gt; & Lt; LI वर्ग = "ui-state-default ui-corner-top" jQuery1280326216622 = "3" sizcache = "3" sizset = "5" & gt; & Lt; A href = "# tab_1" jQuery1280326216622 = "4" & gt; & lt; स्पैन & gt; पृष्ठ 1n & lt; / SPAN & gt; & lt; / A & gt; & Lt; / li & gt; & Lt; LI वर्ग = "ui-state-default ui-corner-top ui-tabs-selected ui- राज्य-सक्रिय" jQuery1280326216622 = "5" sizcache = "3" sizset = "6" & gt; & Lt; A href = "# tab_2" jQuery1280326216622 = "6" & gt; & gt; स्पैन & gt; पृष्ठ 2 & lt; / SPAN & gt; & lt; / A & g...

c# - MVC 3 (Preview 1) Dynamic ViewModel -

I have just taken a look at the new features available in the MVC 3 preview: very good improvements have been made and to see it It can be well read how MVC is running. The thing that struck me is the dynamic type view modal point that you will not need to reference the data using ViewModel ["Message"] , but You can use ViewModel.Message . What are people thinking about this? I am struggling to see why the dynamic type should be used in such a way. This gives a false sense of security for the developer about one member call because they believe it should be strongly typed. At least when you see an indicator with a "magic string" you are aware of the possibility of a run-time error. What are the opinions of other people on this? Is this a sensible use of dynamic type? Unless you only have string rendering for these dynamic properties in the view, I do not see any real problem If you are using it for anything other than something that will be provided...

html indenting in vim -

I do not know if this is possible, but is there an indent script address that will support this scenario? (cursor is.) given & lt; Div & gt; | & Lt; Div & gt; If I enter, I have to look for & lt; Div & gt; | & Lt; / Div & gt; Instead of & lt; Div & gt; | & Lt; Div & gt; You can do something like this: Function! Let's start with the new line intag (let's say lnum = getline ('.') Let's cnum = col ('.') Cheers = strapper (lnum, cnum - 2, 2) = ~ '& gt; & Lt; Return "\ & lt; CR & gt; \

Is there a standard for Javascript/jQuery <img /> that haven't yet been placed in the document? -

Is there a browser that loads images to load images if image tags are only among those coordinated JavaScript elements Which one is not documented? An example: $ ('& lt; img src = "/ path / to / image.jpg" / & gt;') Any specification that asks to load the image? I will ask because I am interested in the following implementation: Triggers a large preview image to load mouseover events on the thumbnail. Large preview image load and a load event, where it is plated at the top of the original mouseover element. The implementation of (2) is not difficult, but I want to make sure that I try to do code> load in the browser in the firebug and Chrome console And it works fine, but I have not got any explanation that it will always work, I will not put it beyond a browser so that an image can be denied which is that document Has not been put in. load events should run continuously in modern browsers. You may have problems with an out-dead ...

java - Getting the Vector Space Model (tf-idf) from a query on a lucene index -

I need to get the vector space model (with TF-IDF load) from the result of a Lucene query, and khichadi The figure of the language is how to do it seems that it should be simple, and at this level, maybe one of you might point me in the right direction. I am trying to understand how to do this for a good time, and either I did not understand that the stuff I have read now (more than needed), or solution The special issue has not been posted. I tried to compute myself directly with the VSM query results, but my solution has a disgusting complexity. EDIT: For someone else who is stumbling on it, what can I get by indexReader.getTermFreqVector (string field, int.docid) method Unfortunately This does not work for me because the index I am working on has not stored the word of the frequency vector, so I think I am still looking for more help on this!

recongnize and replace links in yahoo pipes with regex -

Identifying any link of RSS feeds and changing them with a fixed value with Yahoo! pipes in rejax Will the formula be? Sure! There is a pipe for this! Just look at Autodiscovery mode instantly By looking inside this module, you have the Rezox treatment to identify any other URL in the page

installing MSDN local help for Visual Studio 2010? -

I have installed the last version of Visual Studio 2010. I am not getting local support / MSDN. How can I install MSDN Library locally? Under Help -> Manage Support Settings, is a wizard that lets you install local help files Allows to have options to install from a source online or from a disk.

Storing user variables in database vs session in asp.net -

I am working with an ASP.NET application that stores more data in a database and does not have session. I am thinking about the pros and cons of each and the best way to go. For example, you have a very busy site and instead of collecting user-specific variables in the session, there is a DB table named User Data And it can store all user-specific data that can be accessed from any page by querying the database. Which is the better way to go, session or database? Interesting Questions If this is the data which is not important in sessions (say, last page has been viewed) -> Session If this is the data that should be consistent (e.g., password) -> Database interesting case and you might mention it: Data that should be continuous, but it is often used (say, username). From these, I copy those values ​​from DB to Sessions, which allows me to work in pages with trivial work without database access.

Escaping '\' for use with Java replaceAll method -

Replacement of the string class I am getting some strange results while using all the method. The string query has the following: @ cm: name: "hello" if I say query .replaceAll (":", "\\": "); I hope the following results: @mm \: name \:" hello " Instead I'm getting: @cm: name: "hello" . Original content. Do not use replaceAll (..) query = Query.replace (":", "\\:"); Because string is immutable - that is, if you If you call the method without conveying the result, then you do not get anything - the internal state of the object will not change.

jvm - Java: Why does MaxPermSize exist? -

क्यों MaxPermSize मौजूद है? यहां कचरा कलेक्टर में स्थायी पीढ़ी पर एक अच्छा लेख है: पर संपादित करें: मुझे नहीं है किसी भी चीज़ को देखा जो इंगित करेगा कि उन्होंने स्थायी पीढ़ी के आकार पर अधिकतम सीमा के लिए डिजाइन निर्णय क्यों बनाया। लेकिन मुझे लगता है कि यह कई कारणों से किया गया है। यह कार्यान्वयन करना बहुत आसान बनाता है, जीसी निश्चित रूप से गैर तुच्छ है, इसलिए किसी भी तरह से अपने कार्यान्वयन को सरल बनाने संभवतः एक अच्छा विचार है YAGNI (आपको इसकी ज़रूरत नहीं है) ज्यादातर एप्लिकेशन एक निश्चित संख्या की कक्षाएं लोड करते हैं और आमतौर पर इसकी विशेष रूप से बड़ी नहीं होती है, इसलिए वे संभवतः सामान्य मामले के लिए अनुकूलित हो गए हैं और सिर्फ एक समझदार डिफ़ॉल्ट है और इसे कॉन्फ़िगर करने योग्य है। यह मान लें कि आपके पैरा मान का आकार अप्रत्याशित रूप से बड़ा हो रहा है, तो संभवतः क्लास लोडर में एक त्रुटि हो सकती है (या फिर आर्किटेक्चर)। यहां तक ​​कि उन अनुप्रयोगों में भी जो रन-टाइम में कक्षाएं उत्पन्न करते हैं (या अन्य ऐसी चीजें करते हैं) उत्पन्न वर्गों की संख्या को भी ठीक स...

Python: Regex to extract part of URL found between parentheses -

I have this weird formatted URL. I have to remove the content in '()'. Sample URL: http://sampleurl.com/ (think (codecod)) /profile/view.aspx If I out of it ThinkCode , I'm a happy person! I have a hard time with regexing special characters like '(' and '/'). foo = re.compile (r "(? & Lt; = \ (of \ () [^ \)] *")) gt; & gt; foo.findall (r) "http: / / Sampleurl.com/(K(ThinkCode))/profile/view.aspx ") ['ThinkCode'] explanation in regex-world, A The way to say "I want to match with ham , but only if it is before spam . & Lt; = spam) ham . So in this case, we want to match the [^ \]] * , but only when This is \ (K \ ( . now \ (K \ ( is a nice, easy regex, because it's plain text! , Exactly the string (K ( Note that to avoid the brackets (insert \ in front of them), otherwise the Regedx Parser feels that they can match a character Instead of regex! Finally, when you put somethin...

internet explorer - jQuery, IE and invalid argument -

edit: OP here. OK, the problem is on the jQuery.JS archive I have just downloaded the last one, uncompressed, and the error 4619 has been changed to 4 characters. I went to that line and there is a '}' symbol LOL ... Did I mention that I hate internet explorer? I do not know how to fix it, there is a bug within the structure: s / edit OK That's the way! I hate internet explorer: D - I have created a slide with jQuery to animate a small image gallery. Works beautifully on Firefox, Safari and IE8. However, on IE 7, it returns an error error on script: Line: 20 Character: 31759 Error: Invalid argument url: http-: //www-imagina.com.uy/bentancorleborgne/ page_id = 2 I have a pair that is running script on page , But since error pops when I try to slide the gallery, I go through this error: // javascript document $ (document) .ready (function () {Var tablaWidth = ParseFloat ($ ('imagenesWrapper table.') CSS ('width'), 10); .. on...

Possible encoding type to convert a byte array to be sent by SMS -

I have to send a public key made by RSA via SMS to any other phone. I am converting 148 bytes of public key into base64 to be sent by SMS. As if byte [] can not be sent directly by SMS, what are the other possible ways to successfully convert the string or the equivalent, which can be sent through SMS? Besides compacting, is Base 64 the only possible way? You can SMS one in 8 bit mode - most GSM modem and gateway have this option , And some phones expose this capability in their APIs too. In this way you can send the whole key, and still 12 bytes for additional data. You'll need some software on the phone that will be able to read and use the message, though. Another option: send it to two different related SMSs; The most (?) Phone is to add a different message and to add a logical message (to understand how it works, you will dig into SMS protocol specifications).

emacs - Running 'lein swank' (calling clojure server) with elisp -

is called and answered. I can use 'Lean Scank' to run Closer on Aquamacs. I have to automate to run 'Lean Squank' before running Slim / Closer. Question: Is this a way to automatically? I mean, when I am called Slim / Closer (M-X slim-connect), then how can I run myself 'Lean Smooth'? Question: If I want to come up with Ellipse code to run 'Lean Snamen', how can I do this? added Based on the answer to Jürgen Hottzel, I modified the elisp in this way. (defun lein-swank (interactive) (lets ((default-directory (location-dominated default-directory "/ user / smo / bin / leiningen")) (when (not Default directory) (error "not in a leiningen project.")) ;; You can customize slime-port. Dir-localals.el (let ((proc (projection process ("Process: Product output zero" ) Set-Process-Sentinel (proc event) (Message "% s% s:`% S '"(process-proc proc: output) proc (replace (Set-process-filter pro (lambda (coc...

java - How do I add a folder full of Jar files to my classpath in Eclipse? -

I also want to get it repeatedly to many folders and capture all the jar files. You can not actually do it through IDE, but what you can do is IDE And can manually write a program to modify. Add the .classpath file and jar. For example, for your Eclipse project. The slashpath file looks like this: & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Classpath & gt; & Lt; Classpathentry kind = "src" path = "src / java / main" / & gt; & Lt; Classpathentry kind = "src" path = "src / java / tests" / & gt; & Lt; Classpathentry kind = "con" path = "org.eclipse.jdt.launching.JRE_CONTAINER / org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType / jre1.5.0_17" /> & Lt; Classpathentry kind = "lib" path = "test_reflib / commons-codec-1.3.jar" /> & Lt; Classpathentry kind = "lib" path = "test_reflib / commons-c...

visualization - Good ways to visualize a word-like document -

What are some good ways to visualize the word-presentation document? EDIT: This is not one. Dock should be a text file or blog post ... One is the word frequency See the text visualization section in Edit:

Uninstalling Enterprise Libraries EntLib 5.0 Beta -

Is it possible to uninstall any of the enterprise libraries? There is no entry in the control panel to uninstall, there is no "uninstall" on the menu. I am trying to install EntLib 5.0 and it fails because it does not like EntLib 5 beta 2 on it. I do not have the original MSI and it is no longer available for download. Any suggestions? To uninstall, there should be an entry in the control panel. At the command prompt, you can try: MsiExec.exe / X {E530047D-5371-4AF1-AC60-7DC7A2DCBCCB} Since it is not displayed In the control panel, I'm guessing that the installation is disturbed, though it probably will not work.

mobile phones - IPhone apps for a programmer to increase productivity -

I am looking for mobile applications that will help me to be more productive and as a programmer for everyone and Will be more useful. I have a Dropbox app and a great note. What apps or tools do you use on your iPhone / iPod as a programmer, which helps you to be more productive ...? Ideally I am looking for SRC control, SSH tools, web development-related apps and so on. Keeps track of sales data and user reviews.

c# - IPC: WM_COPYDATA + serialization/deserialization -

I am currently working on 2 net applications that should communicate with each other. Simple Windows Message was selected and it works well at this time. The data sent in the message is a simple string, but now I have created a message class in which a command (enum) and a data member (string), and later possible other members are included. When I send an example of such a message class, it is sorted into bytes and then converted to base64 string. It is sent when Windows' SendMessage () is used. On the other hand, I am doing the opposite. Finally, the original item is restored and available in another app. Although this system works, I was thinking that it is safe to do. Indeed, there is some overhead, base 64 string is more than the original string solution (but I need to manually parsize this triangle to get the command and data portion) What is the maximum size for the message that can be sent with SendMessage is? Besides, I want to stay away from .NET remoting for thi...

javascript - Can't find flowed text element by ID in SVG -

I am playing with an animation in SVG: (link for script "anim.js") In the window. In the load event, I have: function init (evt) {if (window.svgDocument == null) {if (evt.target & evt.target .ownerDocument) svgDocument = Evt.target.ownerDocument; Else if (evt.originalTarget & amp; ampt.originalTarget.ownerDocument) svgDocument = evt.originalTarget.ownerDocument; Other svgDocument = documents; } _debug = svgDocument.getElementById ('debug'); Warning (_debug.firstChild.nodeValue); (I = 0; i & lt; 1; i ++) for balls (i) = svgDocument.getElementById ('ball' + i); Set interval (loop, 50); } This 'ball' object can be found properly, but not 'debug' object (elementbid empty return). I can see it in the source, so why can not I get the script? Most are testing in the implementation of SVG 1.1 because the flow route was introduced in SVG 1.2 . Invalid elements have been ignored, so DOM

Ajax form partials in Rails for multiple Models -

I have AJAX code (taken :) which is present in many views (New .html.erb and edit html.erb mostly). To avoid code duplication, I pretend to use partial: App / View / Cities / _state_city_form.html. ARB & lt; P & gt; State: 'DISTINCT (state)' ,: order = & gt ;: state) .collect {| c | [c. State.titleize, C.state]}, {: include_blank = & gt; true})%> & Lt;% = inspection_field 'state_state_name' ,: url = & gt; {: Action = & gt; : By_state ,: Admin = & gt; : Cities} ,: Update = & gt; 'Cities_list' ,:: with = & gt; "'State =' + $ ('# state_state_name'). Val ()"% " & Lt; / P & gt; City: & lt; Div id = "cities_list" & gt; & Lt;% = select (modelname.to_sym ,: city_id, [], {: include_blank = & gt; true})%> & Lt; / Div & gt; & Lt; P & gt; & Lt; / P & gt; I have Ajax callback content: App / View / Cities / By_State.html. A...

tortoisesvn - Creating a new SVN repository from a BASE repository? -

मेरे पास / home / bla / repo / BASE_REPOSITORY पर स्थित एक बेस रिपॉजिटरी है, मैं / home पर स्थित एक नया रिपॉजिटरी बना रहा हूं / Bla / repo / new याद रखें, "नया" रिपॉजिटरी पहले से मौजूद है। अर्थात। मैं एक ऐसा आदेश जारी नहीं कर सकता जिससे नए की सामग्री हटा दी जाती है। मैं इस नई रिपॉज़िटरी में बीएसईबारोपीटीटी की प्रतिलिपि बनाना चाहता हूं। क्या मैं यह कर सकता हूं? यदि ऐसा है, तो कैसे? आधार से एक बनाओ (संस्करणों के बिना फ़ाइलों को प्राप्त करना) उन फ़ाइलों को नए में जोड़ें कमिट

Resizing a UIView on iPhone at run-time -

Whenever iAd scrolls down from the top, then I'm trying to resize the view of my app problem That is, in run-time, when I set the size of the size of the relevant scene size, the size changes 9 iAd attracts at the top of the top 50 vertical pixels.) If I set UIView size at design time, then I see that the size of the scene has changed (when I run the app O). So what am I doing in run-time which is not being generated due to my size change? The structure of the NIB of my controller looks like this: & gt; & Gt; View & gt; & Gt; See (associated with IB 'content view') & gt; & Gt; Customview (UIView) & gt; - ScrollView & gt; - Toolbar (top) & gt; - The toolbar (below) has added the adBannerView to the code like this: [self.view addSubView: adBannerView]; ConteView's origin.y and size.height is what IM to update (make it y = 50, and height = original height - 50). It should be scaled down so that enough room can be made t...

sql server 2005 - how to update all clients after each db transcation -

I develop a client-server based application using WPF, SQL-Server and WCF I am here. It is basically a type of POS application (not using any POS library but features are almost identical). Server-side coding is almost complete Now I'm going into client-side coding. I'm new to WCF (the first app on WCF) and client-server architecture, so before my coding began I was surrounded by some suspicion. According to my client (person), he should be able to print the item sales bill (memos) along with the server from the client computer. Each memo should have a memo number for that transaction which should be automatically increased and the seller should be able to see which memo is not going to be used so for this purpose I The Application Sale window has added a memo no field, which will show the memo number (final memo number + 1) database. There is a problem here, let's say if 3 sales counter and the seller opens their respective sales windows for billing, they will se...

c# - Is it possible an Exception object raising another exception due to its internal error? -

Is an exception object possible to generate an exception due to its internal error? We catch the exception object immediately, is it possible that one exception is possible? If so, then we should try to make unlimited efforts - which looks so strange. In short, the answer is yes, this is possible. For example - if an exception class is initialized as a large object requires that a field, but there is not enough memory to allocate it, you'll get an exception object is a Autofmomrri Aksposn Throw. Exceptions are like any other class and can throw exceptions themselves. There is nothing in that language which rejects it. I would say, by throwing an exception to the exception class, this is bad behavior and it should generally be avoided. Update: (after the renewed question) If you are immediately converting an exception object in the try block, Hold hold it (assuming this is the appropriate type of exception) If you are immediately following it in the hold ...

Are PHP resource IDs unique? -

Are PHP resource IDs unique to PHP examples? Casting of all types of resources to string returns "Resource ID #X" (where X is a few decimal numbers)? Is there any work that returns to the resource ID (I know about getting the processing type, but nothing has been found like get_resouce_id () ), or should it be ? function get_resource_id ($ resource) {returns is_resource ($ resouce)? Substrate (string) $ resource, 13 / * strollon ("resource id #") * /): null; } Jacob, yes PHP will always give you a unique ID for every resource which is present Is in use in When no resource is set () or such as freed Then that ID is available again and PHP can reuse these resources again. Be careful if you want to keep the resource ID in the "caching" or session and reuse them because PHP can free a resource, then a new resource with that ID and your The old resource ID is pointing to something new. So you have this, the resources are unique, but not fore...

xml - PHP SimpleXML: insert node at certain position -

का कहना है कि मेरे पास एक्सएमएल है: & lt; root & gt; & Lt; नोडए / & gt; & Lt; नोडए / & gt; & Lt; नोडए / & gt; & Lt; nodeC / & gt; & Lt; nodeC / & gt; & Lt; nodeC / & gt; & Lt; / जड़ & gt; मैं as और Cs के बीच "nodeB" कैसे सम्मिलित कर सकता हूं? PHP में, अधिमानतः SimpleXML के माध्यम से? जैसे: & lt; रूट & gt; & Lt; नोडए / & gt; & Lt; नोडए / & gt; & Lt; नोडए / & gt; & Lt; nodeB / & gt; & Lt; nodeC / & gt; & Lt; nodeC / & gt; & Lt; nodeC / & gt; & Lt; / जड़ & gt; निम्नलिखित कुछ अन्य SimpleXMLElement के बाद एक नया SimpleXMLElement सम्मिलित करने के लिए एक फ़ंक्शन है। चूंकि यह सिंपलएक्सएमएल के साथ सीधा संभव नहीं है, इसलिए यह काम पाने के लिए कुछ वर्गों / तरीकों का इस्तेमाल करता है। फ़ंक्शन सिम्प्लेक्सएमएलएनिर्ट_after (सरल एक्सएमएलमेंट $ डालें, सरल एक्सएमएलमेंट $ लक्ष्य) {$ Target_dom = dom_import_simplexml ($ लक्ष्य); $ Insert_dom...

mysql - php script acting weird, shows record even if one does not exist -

I have a strange problem every time I execute this query in php, I get the output "challenge" , Even if the query is empty ("empty" if empty) when I check it in phpmyadmin everything is great and the query is empty when it should be. I tried to resonate $ detectChallengeRes [0] [1] and found nothing. I can not find this problem, any help is greatly appreciated, script is considered to be viewed in the database and Checks that there are challenges related to the current user id, it is basically a script which checks that the user has been challenged by another user, then the game ID is similar to the one on the current page. In the database and that user has not already completed the challenge ( $ yourscore == 0 ). Table structure: Do not create if AMCMS_chillange is not present (`priority 'integer (11) null auto_ignment,` user's 1` int (11) Null, `user's 2` int (11) nouvel,` gamid 'at (11) noull, `winner` int (11) nouvel,' score 1` ...

sql - Slow simple update query on PostgreSQL database with 3 million rows -

मैं एक साधारण UPDATE तालिका SET column1 = 0 की मेज पर ~ 3 मिलियन पंक्तियों के साथ कोशिश कर रहा हूं पोस्टगेस 8.4 पर लेकिन यह हमेशा के लिए खत्म हो रहा है। यह 10 मिनट से अधिक के लिए चल रहा है अब मेरे आखिरी प्रयास में। इससे पहले, मैंने उस मेज पर एक वैक्यूम चलाने और कमांड को चलाने की कोशिश की और मैंने कुछ अनुक्रमित बनाने का भी प्रयास किया (हालांकि मुझे संदेह है कि इस मामले में कोई फर्क पड़ेगा) लेकिन कोई नहीं मदद करने लगता है। कोई अन्य विचार? धन्यवाद, रिकार्डो अपडेट: यह टेबल स्ट्रक्चर: बनाओ टेबल मेरीटेबल (आईडी बड़ी सीरियल नल, शीर्षक पाठ, विवरण पाठ, लिंक पाठ, "टाइप" कैरेक्टर बदलती है (255), सामान्यफ्रेक असली, सामान्यवास्तव असली, लेखक_आईडी बिनीट, Status_id bigint, CONSTRAINT resources_pkey प्राथमिक कुंजी (आईडी), कॉन्ट्रैक्ट author_pkey विदेशी कुंजी (author_id) संदर्भ प्रयोक्ता (आईडी) अद्यतन को हटाने पर कोई कार्रवाई नहीं हटाए गए कोई कार्रवाई नहीं, कॉन्ट्रैक्ट c_unique_status_id UNIQUE (status_id)); मैं को चलाने के लिए कोशिश कर रहा हूँ myTable SET generalFreq =...

Extract image path from HTML in Objective C -

इस सवाल का पहले से ही एक उत्तर है: 1 जवाब सहायता !!! मैं iPhone ऐप विकास के लिए काफी नया हूँ और मैं पार्सिंग के साथ पकड़ा हूं! मैं एक यूआरएल से फीड्स को पढ़ने की कोशिश कर रहा हूं जो कि। सीएमएस में समाप्त होता है मैं स्रोत से टेक्स्ट प्राप्त कर पा रहा था और एचटीएमएल को फ्लैटेन एचटीएमएल कोड का इस्तेमाल कर रहा था लेकिन मुझे छवि के लिए पथ निकालने में परेशानी हो रही है। छवि के लिए पथ कुछ ऐसा है: .... (टेक्स्ट + html) ... & gt; & lt; img src = "http: // www .... अगर कोई कृपया मदद कर सकता है और सुझाव दे सकता है कि मैं कैसे प्राप्त कर सकता हूं छवि के लिए पथ निकाला गया ...: ( धन्यवाद अग्रिम! इस लिंक पर मेरा जवाब देखें

iphone - how to display related image names in grid -

Hello I'm new to iPhone development What I am doing is displaying 20 images as a grid and each The image is shown as a button. By selecting that image it will be displayed on the image view, but I need to accompany that image, the name of the image is also shown below how I can do this to help me. I am lucky if u has a sample code Put a label below the button

iphone - How to get the request_token of twitter -

I have to get oauth_request_token for my application, but when I request the request_token page for Twitter, Giving the error "failed to validate for valid signature and token". Please help me to solve this problem Using oauth in Objective-C is a small achievement I do not have to pay attention to my advice and its tutorial I have used it successfully for ohth and xhooth You may want to look around on github and googlecode for the current twitter oas obj-c libraries.

How can I split a string into two separate arrays using the .NET framework? -

I have a string that has both ints and a string. How do I split it into two arrays, one for ints and one string? I also need to maintain the system because I am writing a file parsing system that depends on reading and dividing these stars correctly. Edit: Here is a sample input, and what would I like as an output: ~ Wolf 100 45 4 5 Walt as a string in an array and ints in its own separate array. EDIT: A bit more information: I am getting five variables from the user and writing them in the file again, I am reading them again. I should be able to identify the number of names. Now when I think about it, in fact, I'm not sure that dividing the string is the best way. Is there a way to put both ints and strings in the same array? In this way I can get the name, and know that it is related to the next four inches. with a string as a key , Use of TVL) , and a value as a integer () array. This will give you the functionality of the lookup which you are seeing .....

asp.net - Page does not respond when update panel is in progress, please guide? -

In a page I have many updated panels that are timer associated with them to refresh the grid. My problem is that When the asynchronous request (update panel) is in progress, does not respond. If the user tries to click on some other link to visit another page, then he can not do so until the asynchronous request is complete. Is it not possible that users should be able to cl ... The browser runs in one-threaded mode, you can not run any background function if any work is in progress then all other events are queued and the user will have to face the effect whether the browser has been hanged or not , So for this kind of situation you need to handle it yourself Yes. 1- Keep partial 2- If possible, do this in small steps. 3- Show the progress bar, so that the customer can not be disturbed.

Can I use the Dynamics CRM 4.0 SDK against a hosted IFD system? -

I'm running this code (ambiguous with name and security details). When I do, I get 401 unauthorized. I Credentials are on the user's host server Is it possible against an IFD system? var token = new CrmAuthenticationToken (); Token. Authentication type = 0; Token.printname = "organ"; CRM service service = new CRM saver (); Service.Url = "https://myorganisation.dynamicsgateway.com/mscrmservices/2007/crmservice.asmx"; Service.CrmAuthenticationTokenValue = Tokens; Service. Credentials = New Network Credentials ("Bob.Switth", "Password", "HOSTEDCRM"); Var Requests = Retrieve New Multiplayer (); Request.Query = new query expression {columnset = new columnset (new string [] {"name"}), EntityName = "account"}; Var response = service.Execute (request); Yes, it is possible, you only have small pieces, crmauthenticationToken.ExtractCrmAuthenticationToken. See this great lecture on the Dynamics Forum

Sending a value from a dropdown box to PHP via jQuery -

I am trying to take a dropdown box and send it to a PHP file Depending on the chosen combination, a MySQL database and AJAX are displayed in a single divide without refreshing the page. I have a second part sorted, but I'm stuck on the first part. Here's the HTML: The main document's main part of my JavaScript code is: var mode = $ ('# mode'); Find function ($ .post ('data.php', {name: form.him.value, the_key: # mode.val ()}, function (output) {$ ('# fear') .html (output My PHP (for testing purposes): $ the_key = $ _POST ['the_key']. ]; Echo $ the_key; I have a variable in PHP which I can manipulate it, but I'm having trouble bringing it there. Where do I go from Thank you for your answers! Callback function Post server response is required. $. Post ('ajax / test.html', function (data) {$ ('results') .html (data);} ); Post this snippet for Ajax / Test. Html and your answer will be called with the ...