Posts

Showing posts from April, 2011

xml - Factorial in XSLT limit? -

मेरे पास XSLT में निम्नलिखित गौण कार्य कार्यान्वित किया गया है: & lt;? Xml संस्करण = ? "1.0" & gt; & Lt; xsl: स्टाइलशीट संस्करण = "1.0" xmlns: xsl = "http://www.w3.org/1999/XSL/transform" & gt; & Lt; xsl: आउटपुट विधि = "टेक्स्ट" / & gt; & Lt; xsl: टेम्पलेट मैच = "/" & gt; & LT; XSL: लागू-टेम्पलेट्स & gt; & Lt; / XSL: लागू-टेम्पलेट्स & gt; & Lt; / XSL: टेम्पलेट & gt; & Lt; xsl: टेम्पलेट मैच = "फ़ैक्टोरियल" नाम = "फ़ैक्टोरियल" & gt; & Lt; xsl: परम नाम = "n" चुनें = "@ एन" / & gt; & Lt; xsl: परम नाम = "एफ" चुनें = "1" / & gt; & Lt; xsl: यदि परीक्षण = "$ n & gt; 1" & gt; & Lt; xsl: कॉल-टेम्पलेट नाम = "फ़ैक्टोरियल" & gt; & Lt; xsl: के साथ- param नाम = "n" & gt; & Lt; xsl: मान का चयन करें = "$ n - 1" / & gt; & Lt; / XSL...

msbuild - How can I prevent Visual Studio from locking the xml documentation files in the bin directory? -

My visual studio solution includes a web application and a unit testing application. My web application uses log4net I want to be able to use msbuild from the command line to build my solution. However, whenever I create a solution from the command line, I create errors because it can not copy log4net.xml into the test project's bin directory. The error message is: "Unable to copy file '\ bin \ log4net.xml' from 'bin \ debug \ log4net.xml' '\ bin \ Log4net.xml is 'prohibited.' It seems that the Visual Studio is locking this file, but I do not understand why it should be VS to XML in the project Prevent documentation files from locking? I had this problem with Visual Studio, too. We use NAnt instead of MSBuild, but the problem is the same. I was able to work around it by modifying the build file to ignore failures while copying the XML file. Note that this does not really solve the original problem because xml files are still locked, bu...

c# - How do you get a list of MS Access data types? -

I am trying to list data types from Microsoft Access 2000-2007 (based on MS Access database version) How can I do a C # program? I do not think it is possible to interrogate the engine, run the time to describe the data types that Support it. For example, DAO Jet 4.0 data types like NCHAR and BINARY will not appear; The ADO will disclose the data type that the Access database engine is never supported; Only ACEDO multivill type will reveal I think you should already know that supporting every version of the engine, then select the appropriate set on the data type runtime. The Jet 4.0 data type (included in Access2000 to 2003) and various synonyms can be found (some hints also indicate how to be new to Jet 4.0, in case only you have previous versions of the engine Need to support). ACE (Access 20077) has added an attachment type; Polygamy ("complex") to support sharepoint lists: I think you have to decide for yourself whether polygon types are different or o...

ruby on rails - How do I use ActiveRecord to find unrelated records? -

I have a lot of connections through a connecting model. Basically, I allow people to express interest in activities I am class activity & lt; ActiveRecord :: Base has has_many: personal_interests has_many: people ,: through = & gt; : Individual / interested end-of-life people & lt; ActiveRecord :: Base has has_many: personal_interests has_many: activities, through: = & gt; : Individual / interest-in-class personal interest & lt; ActiveRecord :: Base is_to: person belongs_to: end of activity Now I want to find out: Is there any specific user not interested expressed? This includes activities that others interested in and others interested in is not interested. A successful (but incompetent) method was two separate questions: (activity .all - this_person.interests) .first How do I neatly silence this query in ActiveRecord? Is there any (reliable, well-kept) plugin that summarizes questions? I find the easiest way to do an : conditions through ...

Websphere Application Server 6.1 Connection Pool question - what happens when AS fails to get connection -

मैंने websphere अनुप्रयोग सर्वर एक्सप्रेस v6.1 के लिए Websphere दस्तावेज़ "कनेक्शन लाइफ साइकल" का अध्ययन किया है और इसके लिए वेब खोज की है कनेक्शन पूल राज्य प्रीस्टेस्ट मौजूदा पूल किए गए कनेक्शन चुने गए हैं - पुनः प्रयास अंतराल शून्य सेकंड है Pretest नए कनेक्शन का चयन किया गया है - रिट्रीज़ की संख्या शून्य है और पुनः प्रयास अंतराल है 0 प्रीटेस्ट एसक्यूएल स्ट्रिंग "दोहरी" से 'हैलो' का चयन करें " अगर प्रीटेस्ट विफल हो जाता है और इनफ़्लुएंप या इनुस स्थिति में कोई कनेक्शन नहीं हैं? इनप्राइपुल राज्य में कनेक्शन हैं? मैं "डेटा स्रोतों> डेटा_सोर्स > वेबस्पेयर अनुप्रयोग सर्वर में सेटिंग का संदर्भ दे रहा हूं डेटा स्रोत " आवेदन कॉल मिलते हैं कनेक्शन यदि इसमें फुलपुल में एक कनेक्शन है, तो यह प्रेटेस्ट एसक्यूएल स्ट्रिंग का उपयोग करके जांच की जाती है और अगर यह परीक्षा उत्तीर्ण करता है तो वह आवेदन को सौंप दिया जाता है। अगर यह परीक्षण विफल रहता है तो पुर्ज पॉलिसी के अनुसार पूल को शुद्ध कर दिया जाता है। यदि शुद्ध नी...

asp.net mvc - When to use a ViewModel rather than a Model? -

I have a business model named Customer, which has many essential properties (via dataetnotation) and other validation rules. I have a view which means allowing editing of a customer's address field. The problem I have is that I want a strongly typed view, but I type customer here here. Since the scene will only edit the address data because it will not return any of the other required data which will require the customer object to validate. This suggests that I should use a Viomodalal, however, there are many business rules that apply to the customer's address related properties, which I would like to get new view (address length, zipcode, state formatting, Etc.) to duplicate. They require duplicate because client-side verification (I'm using xVal) requires that information to work. I think that I have reached the catch-22 scenario. Soli tells me that I should not copy on a view model, which is already in my model but on the other hand I Can not use because it w...

javascript - How do I programmatically set all <object>'s to have the wmode set to opaque? -

I have a client who is embedding the video into my WordPress blog The problem is that they have a large CSS dropdown That hides behind the flash video. I understand that setting the video's wmode as opaque will fix it, but I need it to clearly apply it to every uploaded video and need to go to HTML to add this tag No Is there any way I can programmatically? To avoid confusion with all the edits I made in my previous answer, New test with test and working sample page This test has been done and is working in IE 6, 7 and; 8, Opera 9.6 & amp; 10, Safari 3 & amp; 4, Google Chrome, but I did not test any version of Firefox (2, 3 or 3.5): & lt; Html & gt; & Lt; Head & gt; & Lt; Title & gt; Opacity Text XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX & lt; Br> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX & lt; Br> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX & lt; Br> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX & lt; Br> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX & lt; Br...

c# - Can anyone explain parameters in CodeSmith SchemaExplorer.ViewSchema Constructor? -

CodeSmith API Support [C #] Public View Schema (DatabaseSmain DatabaseSchema, String String, String String, Datetime Datetime, Expanded Property [] Extended Property []); Parameter Database Name Owner Date Date Extended Properties I can see what the first 3 parameters mean. But what is the purpose of the last 2 parameters and enhanced properties? Is there a pattern to use this constructor, which I can see? The first parameter that you pass into database shirts The second parameter that you view Pass by name. The third parameter is the owner of the scene (EG dbo). The fourth asset is a datetime that indicates when the scene was made or when you made it, you can pass it in the datetime. Now. There is an extended archive for the fifth property view, it wants to use any additional metadata in your template. Thanks - Blake Nimeskeby

c# - When should I use out parameters? -

I do not understand that when an output parameter should be used, By wrapping the result of me if I return more than one type, I think it is very easy to work in comparison to the outside. I have seen such a method, give public zero (int arg1, int how tryParse about, why not back code> parscult or an empty-type type comes back in the new framework? When you have the TryNNN function and it is clear that the out-parameter will always be set, Even if the function is not successful, you can rely on the fact that After the local variables you declare, then your code will be set instead of checking against zero. (A comment below indicates that the parameter can be set to null , therefore You may want to verify the document for the function that you are asking to make sure it is a case or not.) This makes the code a bit clearer and easy to read. When you need to return some data and position on the condition of this type: public bool DoSomething (int arg1, outs...

Profiling Python Scripts running on Mod_wsgi -

How do I profile a Python script running on mod_wsgi I use cProfile I would like to do but it seems that I need to manually open the function. I have a way to enable cProfile globally and keep it on the logging result. You need to wrap the Vastio app function inside any other function which only uses the CPR file Calls your function and uses it as an application or you can reuse existing WSGI middleware to do this for you, for example, what you want is too much.

asp.net mvc - How do I call an MVC action on a textbox key up event using json? -

I have looked at other questions on json and they do not fully answer my question or I just do not Are getting. From my MVC app, what I want to do is make an action call in the controller on the key up event of a text box. Then I want to pass the content of the text box back, do some stuff with the data, and then resend a list of items that can be added to a dropdown. I'm totally new to JSON but [really] want to trap me in this. You can find a good example of using JsonResult Fool Dinner In the project.

uploading to ftp from terminal -

I have a large repository of files and a .txt is a large list that needs to be uploaded to an FTP server . I do not have SSH access. Is this an easy way to use the terminal automatically, so I have to go to FTP and manually folders go up and down? Thanks {edit} I'm using OS X has brought me as a client. You can use a terminal program such as: $ wput - -help Usage: wput [options] [file] ... [url] ... url it works only with windows

cocoa - Is there an API to do per-pixel Alpha Blend on GTK and OSX? -

I want to draw a transparent window (with alpha channel) on Linux (GTK) and OSX. Is there an API to do this? Note that I do not want to set a global transparency, alpha level should be set per pixel. As an example, I am looking for similar types of APIs from the UpdateLayeredWindow function on Windows:. For Mac OS X, see sample code. This works by using a custom fully transparent window and drawing shapes in it. Although the example uses only shapes with hard edges + overall alpha, arbitrary alpha can be used. Though uses a custom window, but you can use the same technique to call the code and use holes in normal windows. > SetOpaque: No . Hacky example: @implementation ClearView - (zero) drawRect: (NSRect) rect {if (mask == zero) mask = [[NSImage imageNamed: @ "mask"] maintained]; [Self. Window set opaque: no]; [Mask Drynrift: Self. Bound lines: (NSRact) {{0}, mask size} Operation: NSC Composite Cop Excerpt: 1.0]; } @end The primary limitation of this t...

String parser/separation in PHP -

I have data that I want to paste in the text box, it will be in the form of an eG Ryu Aiter D78: 21: 87: 13 177/177 1/6 Ryu Chronos D78: 21: 26: 21 182/182 0/6 Ryu Hermes D78: 21: 26: 22 201/2016 0/6 Ryu Hafastos D. 78: 31: 75: 10 136/136 1/2 Rai Crows D 78: 84: 96: 11 170/170 1/6 Raúo Heros D 78: 65: 51: 31 175/175 2/5 Raúl Archnas D 78: 13: 84:11 185/185 0/5 This type of partition - Base (maximum 16 characters) Location (staring at d, 12 characters) Econ / max econ (int / int) used / total (int / Int) What I want to do, is making a loop for the text of each line, and then cutting it inside that loop As long as it I know the idea of ​​separating: the symbol name and the basis have been banned. So if I get ":" first, then take 2 back and choose your position next 12 characters which I know that can be done with loop and if (string [x] = ':')) But how do I loop through rows? And how can I separate the remaining data in a row? This is what regul...

SQL Server table creation date query -

How do I get the table creation date of a MS SQL table using SQL queries? I could not see anyone in the table physically, but I can ask that particular table. 2005 For the above, you 2000 you think auditing Have to be enabled. SELECT [name], create_date, modify_date to sys.tables / html>

Which one is better when we want to redirect to a new page in asp.net : using a link button and then Response.Redirect OR using an html <a> link? -

Which is better when we want to redirect to a new page in asp.net: using a link button and Then the reaction. Redirect or using an HTML link? If you are connecting to another page with a static URL, then an HTML Anchor link Better performance and code will be needed in only one place: Page If you need to work on the server before redirecting URLs (such as dynamically making query parameters), use a server control (buttons, links, link buttons).

How to remove the MDI child text from the parent form title bar? C# .NET -

I have a form that works as MDI parent and many other forms of MDI child . In the child's windows, FormBorderStyle.None and ControlBox are false, so that no external items from MDI children can be displayed in MDI parents. But MDI children are maximized in my application and in that case, the main form window title text always has hair form text, such as: + - + --------- ------------------------------ + ------- + | | Main Window Title - [Child Title] | _hex | + - + --------------------------------------- + -------- + | | ... How can I get rid of the "[child title]" section in the main title bar? I have seen the form. The text contains the full title and it is visible on the screen. But to make the text something else changes only in the first part, the child's title is always added and thus can not be removed. I'm running for a while Although the net reflector did nothing interesting You can change the form. The property of the text of the hair wind...

.net - Choose button while pressing enter button -

In my asp.net webform, I have the submit button and the back button Please help ... Wrap your section in a panel - then use the property to set your submit button for the default when you press the claim. can do. & lt; ASP: Panel Run = "Server" ID = "MyPlanel" Default Button = "MySmittTitton" & gt; ... get your form here; & Lt; ASP: Button Runat = "Server" id = "MichaelBenton" Text = "Cancel" /> & Lt; ASP: Button Runat = "Server" id = "MySmittBitton" Text = "Submit" /> & Lt; / ASP: Cell & gt;

math - Finding quaternion representing the rotation from one vector to another -

I have two vectors v and v Is there a way to detect the representation of U to V to the quadrilateral? quaternary q; Vector A = crossproduct (v1, v2); Q.xyz = a; Q.w = sqrt ((v1.Length ^ 2) * (v2.Length ^ 2)) + Doproteproduct (v1, v2); Do not forget to generalize Q Richard is right that there is not a unique rotation, but should give the "least arc" above perhaps what you want

binaryfiles - Parsing a binary file in Ruby -

I should be able to parse a binary file with ruby. This file contains parts of data that are found through the header, which includes file offsets and length of each section. How do I get the data correctly? I have not been able to locate on the basis of those files which I have studied since reading because they get out in the wire, I do not know how to convert to a format IO #, he understands. Any help? A common way of turning offset and length into some useful (like an integer or something) would be useful. You want.

firefox - Struts2 sx:div with Timer ignoring preload="true" -

After I have the following fresh timer: & Lt; / S: URL & gt; & Lt; Sx: div id = "deploymentQueue" href = "% {# getDeployQueue}" errorText = "wait, I just could not queue!" formId = "queueForm" executeScripts = "false" preload = "true" listenTopics = "refreshqueue" autostart = "true" updateFreq = "8000" startTimerListenTopics = "/ startDeployQueue" stopTimerListenTopics = "/ stopDeployQueue" / & gt; The problem I have is that it waits for 8000 million before loading content even if I have preload = "true". After this, it works as I expect, reloading every 8000 million materials. Removing update === "8000" div is already being loaded correctly, but then my timer does not start. Is this the expected behavior? If this is the case then there is no alternative solution? I SX: By embedding html inside the Div tag takes around it, but ...

algorithm - Predicting missing data values in a database -

I have a database that includes a whole group of records (about 600,000), where some records are missing in some fields Are there. My goal is to find a way to guess based on existing data, whether missing data values ​​(so I can fill them). One option I see is clustering - that is to represent those records which are completed in the form of points of some places, looking for groups of digits, and then when the anonymous values ​​of data If a record is given, then try to find out if there is a group that is present in it, then the existing data values ​​are consistent. Although this is not possible because some data fields are on a nominal scale (e.g., color) and thus can not be applied in order. Another idea is that I would like some types of potential models that will estimate the data, train it on existing data, and then use it for extrapolation. Which algorithms are available to the above, and is there any available software that implements those algorithms (this software...

How to stop a Visual Studio 2008 project compile from updating dependent web application projects? -

मैं बस .NET 2 / Visual Studio 2005 से .NET 3.5 / Visual Studio 2008 के समाधान को उन्नत किया है। मेरे पास एक वेब एप्लिकेशन प्रोजेक्ट "डब्ल्यू" है जिसमें एक कक्षा पुस्तकालय परियोजना "सी" के लिए प्रोजेक्ट संदर्भ है। जब मैं "डब्ल्यू" का निर्माण करता हूं, "सी" संकलित और स्थानीय की नकल की जाती है, और सभी अच्छे हैं। हालांकि, अगर मैं सी में परिवर्तन करता हूं, या सी को एक अलग कॉन्फ़िगरेशन के साथ बना देता हूं, और केवल सी को संकलित कर देता हूं, तो आउटपुट स्वतः W की \ bin निर्देशिका में कॉपी हो जाता है! और मेरे मामले में, यह वि। टूटता है यह व्यवहार VS2K8 और वेब एप्लिकेशन परियोजनाओं के लिए विशिष्ट है। मुझे यकीन है कि किसी ने सोचा है कि परियोजनाओं को संदर्भित करने के लिए आगे स्टूडियो पुश अद्यतन करना अच्छा होगा, लेकिन यह बहुत बुरा विचार है। क्या कोई ऐसा तरीका है जो मैं इस व्यवहार को बंद कर सकता हूं? मुझे किसी संबंधित परियोजना या आईडीई विकल्प को कहीं भी नहीं मिल सकता है। "पुस्तकालय" नामक एक फ़ाइल बनाएं कुछ और उपयुक्त है और आपकी क्लास...

c# - .NET Open File Dialog -

संभव डुप्लिकेट: मैं सी # विंडोज प्रोजेक्ट पर काम कर रहा हूं जबकि एक खुली फ़ाइल संवाद ऊपर है I जीयूआई में उसके चारों ओर कुछ भी चुनने में सक्षम नहीं है I क्या खुली फाइल खोलने का कोई तरीका है और फिर भी मुख्य यूआई पर अन्य नियंत्रणों का चयन करने में सक्षम है? "post-text" itemprop = "text"> मानक OpenFileDialog के साथ ऐसा करने का कोई रास्ता नहीं है आधार क्लास के रूप में एक फ़ाइल डायलॉग के बजाय एक फ़ॉर्म का उपयोग करके, आपको स्वयं बनाना होगा। यह आपको अपने स्वयं के संस्करण को डिज़ाइन करने देगा जो गैर-मोडल था। ऐसा कहा जा रहा है, मैं इसके खिलाफ सुझाऊंगा फ़ाइल संवाद, विंडोज़ में, डिफ़ॉल्ट रूप से मोडल हैं। लोग आपके व्यवहार से इस व्यवहार की अपेक्षा करते हैं - ऐसा बदलने से केवल भ्रम और समस्याओं का सामना करना पड़ेगा यह आपके एप्लिकेशन को कम प्रयोज्य और अधिक जटिल उपयोगकर्ताओं को समाप्त करने के लिए बनाता है, भले ही यह अक्सर एक अच्छा विचार की तरह लगता है।

How to get list of customers, jobs, and employeers using Quickbooks QBFC (8.0 SDK) -

I have been given a painful task to write C # applications to sync employee time entries in a separate database with QuickBooks. I "post-text" itemprop = "text"> I'm trying to give priority to basic tasks, such as a list of customers, jobs for each customer, then employees are reading SDK documentation, but I have a little bit on the details Because the example which I see is very advanced for me at the moment: - P Simple to keep things, I would like to request a code snippet which gives me the list of customers for the start of my This code has: QBSessionManager session manager = new QBSessionManager (); IMsgSetRequest customerSet = session manager. CreateMsgSetRequest ("US", 8, 0); // // code here to get the list of customers. // session manager Open Connection 2 ("", "New App", Exconnection Type. CTLokal QBD); Session manager Basic session (string. Apt, eonomod.odd career); IMsgSetResponse Resp = SessionManager.DoReque...

c# - best way to find end of body tag in html -

I am writing a program to add some code to the HTML file I have a It has happened to me that there can be a more lucrative way of doing this P> No one has any suggestions. It looks like currently What should it be when imged I'm not sure I understand you, but do you mean ? NewHtmlDocument = htmlDocument.Replace ("& lt; / body & gt;", newContent + "& lt; / body & gt;"), an HTML document in "HTMLDocument" and new content in the "new content" string ; And maybe it's obvious that I do not know C # ... you probably want to make the "body" tag insensitive through reggaxps.

vb.net - Where is some GOOD documentation on how to properly databind TinyMCE or FCKEditor in order to store in SQL database? -

I have searched high and low and only some rich text editors work with a personal profile for a SQL Server database. I'm not, I just want to understand how this has been done properly, which states that how well the data ran away. Use parametric queries and you do not need to avoid that data or convert it to encode DB The more information you need to be concerned about, the structure of the HTML that you are receiving when it is returned from the database is not to be malicious to trust that person Is not really enough for. What is the script in HTML? What are XSS attacks in HTML? Does any formatting or CSS embedded in HTML break your page? Does unlicensed markup break your page in HTML?

Configuring Blackberry Eclipse plugin for 4.70 or 5.0 components -

I'm looking for help to configure the BlackBerry development environment. In fact, this is a very disappointing process. The blackberry site is very useless. The documents that have been transferred between the links, which have been taken and the documents that have been in the olden times, are proving to be very difficult to get anywhere with the BlackBerry development. Pheww, now I have been rant here is my problem: I finally got JED to work Eclipse (which is a story). However, my Blackberry workspace is only giving me the option of targeting 4.5 JDI components. How can I update it to use the 4.7 component? This would be better for step-by-step instructions, but I appreciate any help that can be provided. Description: I have Java jdk1.6.0_14 Eclipse version 3.4.1 I have installed Blackberry JDE 4.7 I have installed the BlackBerry JDE Component Package 4.7 I have installed Blackberry Smartphone Simulator 4.7 Agree fully - it is not quite clear what to d...

explorer - Batch file I wrote will not close automatically or on EXIT -

I created this batch file to close the explorer before launching worms, because for some reason my color is messy If I do not, I do not. The batch file works fine except that it does not stop when it ends, what did I do? @echo off echo Closing Explorer and Works Task Kil / F / IM Explorer XE "C: \ game \ Worms Varged Armegaden - New Edition \\" Echo the key to resume any hit searcher! I have tried to use programs to call programs and when I use start "C: Windows Explorer" This just opens a new command window and the titlebar explorer. Exe says, but my taskbar and everything has still gone. start is as fast as possible: C: \ & gt; start over /? Start a separate window to run a specified program or command START ["title"] [/ Dpath] [/ I] [/ MIN] [/ MAX] [/ Save | / SHARED] [/ | / General | / High | / Real Time | / Indefinable / BELOWNORMAL] [Command / Program] [Parameter] The title "Title" displayed in the window title b...

ASP.Net MVC Routing - using same pattern for different controllers -

I have an ASP.NET MVC site with products and categories, and I need this URL ... Products: Forstop Foolspeka / Squische-Orange Foolsps / Chrome -steppe-apple FaceSpek / MegaOrange / Ul> Categories: Forstspadpad There is a pattern or regular expression (which I can see, anyway), which allows me to determine the URL by viewing, if it is a product or category. I need to look into the database to find out. What would be a good way to get in touch with this? Register the route of each product and category at the application startup Make some code that handles requests, and see Slug in the database ?? Do not think of caching, refreshing routing-tables etc. for now :) Feel free to edit the title of my question, if you think That's a more appropriate headline for this question - it was the best I could come up with. I prefer your view # 2 more than # 1. I think you can make a single The route goes away with a slug controller (or whatever you wa...

Building a Documentation System -

I am part of a larger organization in the insurance industry. I am currently looking at ways to manage our internal product documentation and I have to get some feedback for this community. We are currently reading documents using Word, Excel, Publisher, and PowerPoint. If we want to create a "training manual" that we make a simple copy and take this information into a big word document and then print it as a PDF. Oh joy This means that all of our documents, internal and external, are stuck in .doc or .pdf files, and you can imagine how fun it is when we have an update! My primary concerns are: Upgradeability - I would like the source to update once and then generate PDF, HTML, etc. Portability Open me standard - I have to go away from Microsoft products I am currently looking at the DocBook, DITA, and maybe a wiki Also would like to get their input on this topic. What do you think about this type of project? What have you done to provide documentation for...

search - how to use htmlparsing and curl in JAVA for this task...? -

I am trying to write a program that takes the name of the company from a text file and searches on the search engine website (SEC Edgar Search) Each search usually comes with 1-10 unique search result links and so I want to use curl to click the link with the name of the company concerned. The link page has a brief summary with the term "Incorrect state": and then the name of the state. I am hoping to parse the name of the state. I'm having trouble understanding how to use HTML parsing and curls and their classes. I appreciate any help, such as a brief overview or absolutely any advice. Thank you. Assuming that HTML is quite basic, use something like this. You will give more details on making DOM. Java is for downloading content from the web, and it will be enough for you (instead of using "curl"). Once you have a DOM, you can use the standard dome API link and the items you want.

How to code this generic type C# snippet? -

प्रत्येक इकाई प्रकार के लिए सरलीकृत दोहराया कोड सार्वजनिक IList & lt; entity1 & gt; GetEntity1 (.. क्वेरी पैरामीटर ..) {IQueryable & lt; entity1 & gt; Query = context.entity1; क्वेरी = refDataType से क्वेरी में जहां refDataType.Id & gt; 0 चयन करें refDataType; । । प्लस प्रत्येक इकाई के लिए क्वेरी के लिए और अधिक परिवर्तन। वापसी क्वेरी। टूलिस्ट (); } मैं एक जेनेरिक फ़ंक्शन बनाना चाहता था जो कि क्वेरी बनाता है, लेकिन यह सुनिश्चित नहीं है कि इसके बारे में कैसे जाना जाए? यानी निम्न स्निपेट में, मैं कैसे कोड रिटायरएगनरिकॉक्वायरी के लिए? सार्वजनिक आईएलआईआईटी & lt; entity1 & gt; GetEntity1 (.. क्वेरी पैरामीटर ..) {IQueryable & lt; entity1 & gt; Query = context.entity1; Query = ReturnAGenericQuery प्रकार की इकाई 1 वापसी क्वेरी। ToList (); } सार्वजनिक IList & lt; entity2 & gt; GetEntity2 (.. क्वेरी पैरामीटर ..) {IQueryable & lt; entity2 & gt; Query = context.entity2; Query = ReturnAGenericQuery प्रकार की इकाई 2 वापसी क्वेरी। ToLi...

sql server - What is an MDF file? -

Is it like an "embedded" database type? Is there a file created in a database? SQL Server databases use two files - an MDF file, known as primary See the database file, which includes schema and data, and an LDF file, which contains the logs. A database can also use a secondary database file, which usually uses the .ndf extension. As John S. indicates, these file extensions are purely conferences - you can use whatever you want, although I do not think there is a good reason to do this. More information about the introduction of MSDN and SQL Server 2005 Administration (Google Books).

standards - Oracle Left outer join -

एक का चयन करें, अंतिम_नोट_यूसर, c, d, iso_src एक्स क्रॉस से जुड़ें वाई क्रॉस जॉइन जेड वाम ओएटर में शामिल हों उपरोक्त एएनएसआई कोड मुझे 107 रिकॉर्ड प्राप्त करता है, जब मैं एएनएसआई कोड के बिना एक ही प्रश्न दे रहा हूं तो यह 875 रिकॉर्ड ला रहा है। गैर एएनएसआई क्वेरी नीचे है: SELECT a, last_note_user, c, d, iso_src FROM एक्स, वाई, जेड, डब्ल्यू WHERE W.last_note_user = Z.userid (+) और W.user_ten = Y.iso_src (+) एएनएसआई और एएनएसआई मानक के बिना दो प्रश्नों में अंतर क्यों है ?? उपरोक्त प्रश्न का उत्तर देकर कृपया मेरी मदद करें !!! आपकी पुरानी-शैली की क्वेरी में (+ ) प्रतीकों के गलत पक्ष पर प्रतीकों यह होना चाहिए: SELECT a, last_note_user, c, d, iso_src से एक्स, वाई, जेड, डब्ल्यू। डब्लू ._last_note_user (+) = Z.userid और W.user_ten (+) = Y.iso_src लेकिन मैं पुरानी शैली के वाक्यविन्यास को वास्तव में किसी भी अधिक उपयोग नहीं करेगा।

scripting - exim "emulating" Outlook configuration via Cygwin? -

I want to send an e-mail using the signin. I have installed exim and in this process to send mail (my company SMTP, my own email, etc.) without screwing out Outlook in Outlook I have to use the same config. Is this possible? Note that the SH scripts that send mails will be installed on multiple machines (not on one server). This is a website deployment script by using an RSVNC command that will send a mail to the development team. Two different clients with your method and Outlook mail server (your office and other personal server) Which are what you interact. Outlook should not have any effect. In essence, a mail-dispatch client can not affect any other mail-send / customer.

vba - Inserting Japanese characters to Sybase db from Excel -

I can see Japanese tests in Excel cells. I've created an inclusion query via ADO, it is inserted into DB, but the Japanese characters are only "????" Any help that is shown as will be appreciated. Is this a Cibbus client where you are seeing Japanese characters presenting incorrectly? If you are lucky then this is a mixture between the server and the client. You can try to run: In the Sybase client, set set char_convert to off which will close the syllables automatic character conversion, which will do this If the above does not work, then you have to find out what your base server is basbash server can do: sp_default_charset This will return the default charset for your Sybase server (for example Roman 8). Check the charset that your server returns support Japanese characters

performance - MS Access 2003 + linked tables to SQL Server 2005 + Windows Authentication = slow -

Our MS Access application with linked tables in SQL Server 2005 is slow when Windows authentication is used from Windows API client . We are successfully using SQL Server authentication, but now we want to go into Windows authentication for better security control. Setup: Database Server: Windows 2003 Server, SQL Server 2005 SP2 Client: Windows XP SP3, SQL Server ODBC Driver v2000.85.1132 .00 MS Access Application: MS Access 2003 Connection String: Driver = SQL Server; Server = [server name]; Timeout = 300 connect; Trusted connection = true; APP = Microsoft Office 2003; WSID = [server name]; Database = [DB name] Only the TCP / IP network protocol is enabled on the server. It is such that these conditions: Application on DB server, SQL Server authentication App on DB server, Windows authentication Windows XP client, app on SQL Server authentication SQL Server Management Studio on client, Windows certification - I have 15 questions in SQL MS There was ...

jquery - how to get onunload event on IE -

Hi I need to capture an onUnload event but not working in Firefox, not in IE. Can we capture the unload event in IE? You can use IE in two events: Click on the event-name to see the MSDN details .

php - mod_rewrite rules -

I am trying to get the data after the URL and sent it back to the home page. I have had errors in .htaccess file on a server so I'm trying it on any other server. http://www.newbiemoneymakers.com/bank/ favor the link below directly to http://www.newbiemoneymakers.com/bank/index .php , where I get the title then. My .htaccess file says: RiverVision revised rule ^ http: //www.newbiemoneymakers.com/bank/ ([^ /.] +) /? $ Index.php? Title = $ 1 [L] My index page says: But when I click on any link (like http://www.newbiemoneymakers.com/bank/bank-charges-refund/ ) it Gives me a 404 page! Do you know where I am wrong? Ian Pattern of a RewriteRule just URI Path (in .htaccess files without a reference per-directory prefix) is re-tested, so in the root directory without the leading directory. > / ). So it should work: Rev. Rule ^ bank /([^/.]+)/?$ bank / index.php Title = $ 1 [L ]

c# - Handling Type.InvokeMember Inner Exceptions nicely -

I have some code that is calling the InvokeMember method on one type, it's okay and works, but if someone If an exception occurs within the member then the debug jumps, where I call InvokeMember in opposition to internal exception. Is it possible to debug this code as expected? Yes this is possible. Press Ctrl-Alt-E in Visual Studio to bring the Exxes dialog box. Check the box to break on the Common Language Runtime Exception (User Only Compromised). Now debug your code and you will break it within your reflection-ionized method.

jquery - Programmatically determine Font-Size for single-line display -

I am displaying articles on a page. The title of the article sometimes spreads on two rows, and the second line may contain only one word, it is very undesirable, using JQuery / CSS, to place them on a line, one for programmatic titles What's the best way to set new font-size? hack of a kind but: something like this will get closer to you, its possibility is slightly more tweeking In, this element clones and the clone text is & amp; Nbsp; so it gets an idea of ​​how much a line's height will be, then the font size of this element decreases, unless this goal is smaller than the height. Keep in mind that you must attach this function to the parent's size () each task () (var targetHeight = $ (this) .clone () .html ("& Amp; nbsp;") . InsertAfter ($ (this)); while ($ (this) .te ()> targetHeight.height ()) {$ (this) .css ("font-size", parseInt ($ (this.) ("Font-size")) - 1);} targetHeight.remove ();});});

c++ - How to pass the Directory path as command line for the process? -

Using regasm.exe to generate the tlb file and register the assembly programatically. But in the path of TLB only in the .NET root directory. So in this way in the buffer c: \ windows \ Microsoft.Net \ framework \ v2.0.57 \ RegAsm.exe if (! CreateProcessW buffer, C: \\ Program Files \\ Test \\ Test.dll / codebase / tlb / silent ", tap, zeros, false, 0, zero, zero, (LPSATATTTPTUUU & SI, and P)) But I think that it can not take the full path because there is a blank B / Y program and files. Hopefully when I run the command, it looks unable to detect the input assembly C: \ programm Normally at the command prompt we RegAsm.exe "c: \ program files \ test \ test.dll" / codebase / tlb this bold I can go as a command line in the form of characters, but with double cumulents placed in double quotes. That's why I was killed. How can I fix this You must attach the quotation marks The path within string, which you can do with the backslash by avoid...

branch - Storing separate named branches in mercurial without having to merge them -

This is also for the first time as a DVCs and also as a sole developer, for the first time when I actually used the branches , So maybe I'm missing something here. I have a remote repository, from which I was able to pull the file and start working. The change was pushed into the remote repository and of course this simple scenario works fine. Now that there are some stable features in my web application, I would like to start deploying it and therefore I tried to clone the remote repository for new branches / static directories for the default branch of their branch. And used: hg branch static to create a new named branch. I have created a group of deployment scripts which are only required by the stable branch and I have committed them as necessary. Again it works fine. Now when I went back to my initial working directory to work on some new features, I found out that Mercurial only emphasizes the same head in a remote repository. In other words, I have to merge t...

How can I pass any number of arguments in User define function in C? -

How many arguments can I pass in defining the function in user C? What is the prototype of that function? It is similar to printf which can accept logic in any number. For an example, see. #include & lt; Stdlib.h & gt; # Include & lt; Stdarg.h & gt; # Include & lt; Stdio.h & gt; Int maxf (int, ...); Zero F (zero); Main () {F (); Exit (execution success); } Ent Maxf (Int N AGRS, ...) {Register IIT i; Int Max, A; Va_list AP; Va_start (AP, N RGS); Max = VA_arg (AP, int); {If ((a = va_arg (ap, int) gt; max) max = a; for i (i = 2; i & lt; = n_args; i ++); } Va_end (AP); Maximum return; } Zero F (zero) {int i = 5; It j [256]; J [42] = 24; Printf ("% d \ n", maxf (3, i, j [42], 0)); }

java - How are multi-button presses handled in swing? -

I am facing some strange behavior while using the stylus with swing. I am interpreting pressing the stylus (right) button and pressing down the stylus (LEFT) as the "hold" event, but sometimes (more than 0 times more), Events are still being skipped. MouseAvent is very clear for Java docs how to execute at a time how multibutton presses are controlled (bottom, right top, top left), but together The button does not say anything about the press. I'm left to wonder, will they be emitted as two mouse-pressed incidents, or with a button mask set for both buttons, Or something else From the living? Thank you. / P> I explain the API doctor because pressing the button together is not possible: when multiple icons Buttons are pressed, each press, release, and click on the results in a different event Therefore there should be different events there should be different events that you see Your code may be due to errors, stylus drivers, hardware, or swings (...

oracle10g - With clause does not work linked server -

I'm connecting to an oracle 10g server using the MS SQL Server Link Server feature and for some reason I Can I use this section only to work in pl / sql console, or can I do something to work with linked servers? I get the error Message 7357, level 16, state2, line1 object " edit processed Can not be done: Just thought I was using openquery to query the linked server SELECT * from OPENQUERY (LINKED_SERVER_ORACLE, with 'assignment_t (select' Select all from 1x "id, 2 type_id, 554 assign_id dual union '' 1x '', 3, 664 Select all from dual union '' 2x '', dual union since 299 Select all 'double, 2x', 4, 514), type_ty form (SELECT 1 type_id, DATE '' 2009-01-01 '' create_date FROM dual union select all 2, date '' 2009- Select a different one from 01-01 '' Select from all the dual federation 3, Date '' 2009-01-03 '' Select all from Dual Union 4, Date '' 2009-01...

sockets - Why no "what's my ip" well-known port/service? -

I know that some web sites that provide this service but considering that everybody lives behind NAT every day Is it not standardized on a port and anyone is provided as a service to run it? It is useful at least one resonance, time of day or "quote of the day" server and easy to implement. Or is there anyone who knows me? Is any proposal / RFC in progress? EDIT: Thanks for everyone for a vibrant and thoughtful discussion. Of course, vendors have to support standards to make them useful. Related threads on stack overflow refer to all STUNs:

download a file from ftp using curl and php -

I am trying to download a file from an FTP server using curl and php but for any help me Can not find the document $ curl = curl_init (); Curl_setopt ($ curl, CURLOPT_URL, "ftp: // $ _ FTP [server]"); Curl_setopt ($ curl, CURLOPT_FTPLISTONLY, 1); Curl_setopt ($ curl, CURLOPT_USERPWD, "$ _FTP [username]: $ _ FTP [password]"); Curl_setopt ($ curl, CURLOPT_RETURNTRANSFER, 1); $ Result = curl_xax ($ curl); I can get a list of files but about My guess is that your URL is pointing to a directory and not the file you need to have the full URL CURLOPT_URL feed in the file. In addition, if you want to download a file, you would like to save it from anywhere. For example: $ curl = curl_init (); $ File = fopen ("ls-lR.gz", 'w'); Curl_setopt ($ curl, CURLOPT_URL, "ftp://ftp.sunet.se/ls-lR.gz"); #input curl_setopt ($ curl, CURLOPT_RETURNTRANSFER, 1); Curl_setopt ($ curl, CURLOPT_FILE, $ file); #out put curl_setopt ($ curl, CURLOPT_...

C function decorators (wrappers) at compile time -

I am trying to change the behavior of some functions in C with the help of preprocessor; And optional parameters that can be turned on or off ... The basic form of optional parameters is simple: #ifdef OPT_PARAM #define my_func ( A, b, opt) _my_func (a, b, opt) #else #define my_func (a, b, opt) _my_func (a, b) #endif / * The rest of the codes always call "my_func" with all the parameters And not the underlined version ... * / #ifdef OPT_PARAM Strange _my_func (int one, int b, int opt) #else void _my_func (int one, int b) #endif {/ * ... more #ifdefs Uses * />> The function is conditional The pattern is the same for wrapping the way, but the problem is that starting to add underscores (one extra for each nesting level, it can be a different function or just do not wrap it up to the #define next level is). So, is there any idea about reducing code complexity here? PS I am ready to use Python ... but it is for a driver: - ( Looks like you want to use...

computer science - Remember the one liner code challenges? -

Does anyone remember years ago in magazines like Byte, where people produce the most functional piece of code written in one line Used to compete for code? I miss games such as pole position with scroll text, and fractal graphics are done in this way. In the same statement, there is an endless amount of modern languages ​​like C # and Java, does anyone know anything like that? There was also inspirational and interesting things to look at. There is a problem on that site which is dedicated to competing on problems in the format.

How do I check bug history on a module in the Perl core? -

Recently, I asked a question about debugging a mistake:. Someone has mentioned that there was something deep XS magic in it. I am thinking that I can get a bug history for the Perl Core module, I tried to see, but the transformation document is placed at the project level and not at the module level. See, we run Perl 5.8.2 and Icons v1.05 and I am thinking that one of our issues may be related to another bugfix which has happened between the current version. How are you looking?

asp.net mvc - How to Simplify this Code Kludge -

इनपुट: आईडी, पार्टआईडी, नाम 1, 1, हेड 1, 2, शरीर 1, 3, टेल 2, 1, हेड 2, 2, लेग आउटपुट प्रदर्शन: - हेड, बॉडी, टेल (हटाना (1 )] - सिर, लेग [हटाएं (2)] मेरा कोड: & lt; ol & gt; & Lt;% int prev = -1; विदेशी मुद्रा (टी में विभिन्न आइटम) {if (prev! = Item.ResponseId) {if (prev! = -1) {% & gt; & Lt;% = Html.ActionLink ("[replacethis]", "हटायेंआर्रेसपॉन्शन", नया {id = item.ResponseId})। Replace ("[replacethis]", "& lt; img src = \" ../../ सामग्री / छवियाँ / हटाना_कॉन। Gif \ "class = \" borderlessImage \ "title = \" निकालें \ "/ & gt;")% & gt; & Lt; / li & gt; & Lt;%}% & gt; & Lt; li & gt; & Lt;%} और {%>, & lt;%}% & gt; & Lt;% = HTML.Encode (item.ResponsePartValue)% & gt; & Lt;% prev = item.ResponseId; }% & Gt; & Lt;% = Html.ActionLink ("[replacethis]", "RemoveResponse", नया {id = prev})। ("[R...

c# - Simple non-fancy Windows application - should I start with WPF or WinForms? -

I am starting to develop a small Windows application using Microsoft Visual C # 2008 (Express Edition). I am very new to C # and .NET, so this is a newbie question. Should I start with WPF or should I stay with the old WinForms? There are several screens in my application, many text boxes, check boxes, combo-boxes, nothing else. This application will retrieve data from many COM objects, and will communicate through standard TCP / IP sockets, which are unrelated to both UIs. The UI is not fancy in any way (and I do not need it). However, the world is taking over the WPF. What are the considerations of choosing WPF on WinForms for my case? What is the suggested approach? Thanks Interestingly, how all answers target developers: A framework The technical features of acquaintance with, learning curve, a framework etc. If this is a simple application, then none of the technical aspects really matters. You think that you have some experience programming, in that case the chos...

Any advantages of binding a list of objects to a grid instead of to a datatable? (.NET) -

I have a business object, we call a customer. I have a DAL method which brings back a datalet to customers. I have a UI that has a grid that will display a list of customers. My question is .. Is it ok to bind the grid to the dataset, which means that the UI will have a reference for the system, the data or the dataset should first be converted to an ILID and the grid Should bind? Conversions in a list from DT can be a performance hit, and I do not see that I am getting the data instead of going directly with the data using it. Plus, I love to count worthy viewer! What are the real benefits of using the list of items rather than data data? In addition to architecture to use a list of objects on a statistic, only real The advantage is that you can find strongly typed assets (which you can get with the dataset you typed). But if you are databanking that does not really give much importance. It is perfectly ok to share the figures, and in fact, very good applications are ...

SQL Server How Do You Iterate Though a Cursor Loop Once When a Specific Condition Occurs -

I have a SQL Server cursor when a specific situation occurs, then I want to leave a repetition of the loop break The cursor moves out of the loop and does not show anything to continue. Is there an order that says, "Hey, the record is not good then go ahead and leave it and work on the next one". The way I know that the cursor is bad like the driver who runs 43 mhh in the lane, but as often happens in the software, I get stuck with it. Thanks If you do not use a statement only: If condition exists then I want to update again ...

mysql - Multiple SQL searches vs searching through one returned array -

Is it possible to find multiple SQL in a table with different conditions or to get all the items in a table and then Is that different from them? I know that I am not explaining my question that it is okay, then this is an example: I want to draw a record on the posts and show them in categories based on the posting Within a year, I say one month, one week, etc. The nature of the categories is in the lower level categories, which are completely contained in upper level people. Should I get SQL for each category in different situations, as a result, many calls to the database are available, or should I do a search, return all the items and then put them out of the array? Thanks for your responses, sorry I'm new to this. Usually, I say that you are going to get better performance by giving your database engine a sorting job To do this, each database engine has this functionality and generally it can do as quickly as you can. So instead of trying to do myself in the mem...

Awesome ASP.NET and C# tutorials for beginners -

Will you suggest books and tutorials for an aspiring ASP.NET and C # developers? Books should be targeted at the full beginning, and the tutorial should have a complete code example with a fully structured explanation. ASP.NET MVC is great for learning.

Need some help converting VB.NET code to C# -

I have a CRC class written in VB.NET. I want it in C # I used an online converter to start me, but I'm getting some errors. byte [] buffer = new byte [BUFFER_SIZE]; ILookup = (crc32Result & amp; 0xff) ^ buffer (i); On that line, the compiler gives me this error: Compiler Error Message: CS0118: 'Buffer' is one Thank you! change buffer (i) to buffer [i]

.net - Number format string to show only right 2 digits -

I know that I can use substrings or other methods, but I'm just curious if there is some place? To return it below "09" string.format ({0:?}, 2009); BTW, I came across a good cheat sheet while trying to figure out ... If you have a legitimate need to further refine, you can always create your own custom format provider: Whatever pattern you want to your string , Can form it properly, and incorporate the functionality of the reuse properly. Here's an example: class program {static wide main (string [] arg) {var date = "2009"; Console Type (string.format (new customform provider (), "{0: YY}", date)); Console.ReadKey (); } Public class CustomFormatProvider: IFormatProvider, ICustomFormatter {public object GetFormat (type formatType) {if (formatType == type (ICustomFormatter)) this back; And tap return; } Public string format (string FMT, object AGR, IFermatProvider format provider) {string year = arg.ToString (); String result =...

flash - Conflicting startDrags -

Flash CS4, AS2 I'm making a tour with a map, I started this drag Using the code around the map: menu.onpress = function () {this.startDrag (); }; Menu.onRelease = function () {stopDrag (); }; It works perfectly though, inside a "menu" movieclip I am using a start tag called start.drag code: EllisIsland. _visible = false; {} EllisIland_mc.onRollOver = function () {EllisIsland.startDrag (); EllisIsland._visible = true; }; EllisIland_mc.onRollOut = function () {EllisIsland.stopDrag (); EllisIsland._visible false =; }; Before it was adding drag to map, before it was working completely, but now it will not work. Is there any way to make these elements work together? This is one of those things that they have decided in AS3, but in AS2 , You can not detect mouse events on elements which are inside the elements that are the listener for the same event. The mouse is more than AliceIsland_MC, if its work is done inside the menu, on the press function - if ...

jQuery: Using the attr with custom attributes -

अभी मैं कई अवैध बातें कर रहा हूँ जैसे: & lt; span time = "50" दूरी = "60" & gt; & lt; / span & gt; और उसके बाद उस जानकारी को हथियाने से: var time = $ ('span')। Attr ('time'); Var दूरी = $ ('स्पैन')। एट्र ('दूरी'); और फिर जेएस / jQuery में समय और दूरी के साथ विभिन्न चीजों को करना। मेरे लिए, यह गलत लगता है यह अतिरंजित है, लेकिन मैं वास्तव में इसके बारे में कम ध्यान नहीं दे सकता (वास्तविक डेटा समय और दूरी नहीं है, लेकिन कुछ बहुत बेकार और पृष्ठ विशिष्ट है, एसई में रुचि नहीं है)। लेकिन कुछ अन्य कारण यह है कि यह एक बुरा विचार क्यों है? मुझे पता है कि एक मेटाडेटा प्लगइन है जो एक अधिक 'आधिकारिक' तरीके से कुछ समान होता है, और मैंने इसका उपयोग करने के बारे में सोचा था। लेकिन यह .attr सामान मेरी ज़रूरतों के लिए उपयुक्त है और मुझे प्लगइन का उपयोग करने के लिए कोई मजबूरी कारण नहीं दिखता है। इसलिए मूल रूप से, यह उपयोग करने के लिए एक सभ्य पैटर्न है, और यदि नहीं, तो क्यों नहीं, और मुझे मेटाडेटा प्लग इन में...

sql server - Sql Query for Commissions (Decision?) Table -

SQL 2008 I have a commission table that looks like this: com% | Proststartrange | Profitandrange 0.01 | 0.00 100.9 9 0.02 | 101 | 500.9 9 0.03 501 | 1000.99 and so on ... Actually I want to create a query that gives useful command% based on the value. I would like to inline this and if possible in a possible defined function I would calculate a large set. Select your apple, where there is a profit compared to your bag. Promotitartranz and yourtable .ProfitEndRange

WCF DataContract ToString function -

Can you override the ToString function in WCF DataContrat? I currently have: [DataContract] Public class keywords {public int id {get; Set; } Public string name {get; Set; } Public override string toasting () {return name; }} But it does not seem to work. Anyway to do this work? Also remember that if you are both a server and a client, you often create a client proxy Instead of using a shared library for data contracts. If you do this, you can keep the same method on both the server and the client as they are the same type.

java - web form generation out of xml schema -

I have a requirement where I need to create an html form on the fly based on many different XML schemas (so far I have 20 of them counting and counting). I need to collect the data from the user so that each of them should create relevant document documents and then submit example docs in db. Challenges 1) There are a lot more complex types in the schema. Therefore we do not already know that the type and type of input type has to be created. Therefore pre-creating html is not an option 2) Even if I can handle the generation of the form on the fly, the problem is collecting the data recorded .. For the input type in dynamically created forms Dynamic ID / name will be / / P> Can someone recommend the best way to implement it? Thank you in advance

php - How do you search by the contents of a tag in simplehtmldom? -

I am trying to write a web scraper using simplehmldom. I want to get a tag by searching the content of the tag, it's plain text inside it, not the type of tag once after that I search for the content of my plain text and I want to get the next tag after that. I am How do I get a tag based on its contents? And once I have this, how do I get the following tags? Any help would be appreciated. Thank you. The following will enable you to search all text nodes, then get the next tag: // Use Simple_HTML_DOM Special selector to retrieve all the text nodes from the 'text' // document $ textNodes = $ html- & gt; Search ('text'); $ Base tag = null; Foreign currency ($ textNodes as textNode) {if ($ textNode-> plain text == 'Hello World') {// Get the parent of the text node / (A text node is always her child / Is its container) $ FoundTag = $ textNode- & gt; mother-father (); break; }} If ($ foundTag) {$ nextTagAfter = $ foundTag-> Next_sa...

f# - How to bind i at the end of a sequence using Seq.iteri -

mySequence |> Seq.iteri (fun ix -> ...) ... How to Do I pack at the end of the sequence? In other words how do I represent this number of iterative iterations repeated iterations? Of course I can make a referee and assign it to all iterations, but I wonder if there is any more elegant way? You can use fold , so that Seq.iteri (funny ix -> ...) Seq.fold (Fun ix - & Gt; ...; I + 1) 0 with these lines: Let's do aSeq = seq {i in 1. 1.10 in printfn "Eval% d" generated i} let r = aSq | & Gt; Seq.fold (funny ix -> printfn "iter% d" x // or whatever "..." i + 1) 0 printfn "result:% d" r

django - Add field to model, as annotate do -

उदाहरण के लिए, मेरे पास एक मॉडल पोस्ट और टिप्पणियाँ हैं। Post.objects.annotate (गणना ('टिप्पणी')) मैं हर पोस्ट के लिए टिप्पणियों की गिनती पाने के लिए ऐसी क्वेरी कर रहा हूं। लेकिन टेम्पलेट में मुझे जांचना चाहिए कि यह 4 से बड़ा मान है। जैसा कि मुझे पता है कि ऐसा कोई टेम्पलेटेटाग नहीं है प्रश्न है, कैसे एनाटेट के रूप में मॉडल को फ़ील्ड डाल सकता है? मॉडल केवल कक्षाएं हैं, और पायथन कक्षा के उदाहरणों में गतिशील हैं। इसका मतलब है कि आप किसी भी संपत्ति को केवल एक उदाहरण के रूप में निर्दिष्ट करके जोड़ सकते हैं। myinstance = MyModel.objects.get (pk = 1) myinstance.mycomparisonattribute = True हालांकि मुझे नहीं पता कि यह आपकी तुलना पद्धति का उपयोग करने से बेहतर क्यों है। वैकल्पिक रूप से, एक कस्टम टेम्पलेट टैग का उपयोग करें जो तुलना कर सकते हैं - स्माइली चिर्स का टैग उत्कृष्ट है।

jquery - Opacity issue in Internet Explorer and Opera -

I have a problem with opacity for IE8 and Opera 9-10. My small JS single CSS class has a line (& lt ; Tr & gt;) is the class, when the user clicks on it: . Selected {Opacity: 0.5; MS-Filters: "ProgID: DXImageTransform.Microsoft.Alpha (Opacity = 80)"; / * IE8 * / filter: alpha (opacity = 80); to: . Selected {Opacity: 0.5; MS-Filters: "ProgID: DXImageTransform.Microsoft.Alpha (Opacity = 80)"; / * IE8 * / filter: preceded: DxImG Transforms. Microsoft. Alpha (opacity = 80); If it still does not work, then there is probably a problem with some heritage and we will need to see some thing and markup or an online example.

version control - Open source examples of well written SCM web interface in Perl -

Can someone talk to some good open source web interfaces for VCS (version control system) written in Perl? There is something well written, so I can check the code and can steal the best parts (or organization) for gitweb, preferably some additional external dependencies (extended) are not available in the Pearl Core Are there. I have not seen the source code, so I can not tell you that it is well Written, but I'm sure it is a list of dependencies to use, and you can.

asp.net - Applying html formating in label control -

HTML formatting has been implemented great in this case. The nickname is displayed with 5 sizes. lblWelcome.Text = "Welcome: & lt; font size = '' 5 '' & gt;" & Amp; TxtSurname.Text & amp; "& Lt; / font & gt;" Why is the HTML style not implemented in this example? lblWelcome.Text = "Welcome: & lt; font color = 'white' '& gt;" & Amp; TxtSurname.Text & amp; "& Lt; / font & gt;" Please, please do not use font tags. In addition, if you really want to output HTML from the server side, then you should use a little control. Here's an example of how I do it: aspx / ascx file: Welcome: Behind the code: lit1.Text = "& lt; span class = 'welcome' & gt; & Amp; TxtSurname.Text & amp; "From & lt; / span & gt;" Or your other example: lit1.Text = "& lt; span class = 'welcomebig' &...

data binding - Implementing a simple Master-Detail scenario for WPF in MVVM -

I have a WPF application using MVVM. I have some user controls, which should show the firstname, lastname and email of a person in the 3 textbox control using the simple database. User controls have a simple combobox where the user selects the ID for the user and therefore the person should record the record with that ID (its data is taken from the database) and then the firstname, LastLime and Email will appear in the textbox. I have a userstorage in which there are combobox for ID and 3 text boxes with three properties, one view model class and one ideal category (person class) with three properties (first name, last name and email) . What is the easiest way to implement this behavior using MVVM (preferably)? Any samples? I'm guessing here because your question is a bit unclear that you are not quite how to piece together Be sure to hook, for the sake of simplicity, hook us the view modal directly into user control and get all the binding. As long as your visual ...

cocoa touch - What's your method for this... wiping out your DocumentsDirectory during iPhone development? -

I'm sure there is a better way to do this. I have a part of this code that I use to eliminate the document directory on an iPhone or simulator. Sometimes I just want a clean slate, and sometimes I change a database and I have to rebuild it. Then, one of my actions gets called that when I turned on my app, I commented this code out, and I want to reset the comment block when I remove it. What do you do NSFileManager * fileManager = [NSFileManager defaultManager]; NSArray * path = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, Yes); NSArray * dirContents = [File Manager Directory Resource: Atapath: [Path Object Art Index: 0]]; (Int i = 0; I & lt; [dirContents count]; ++ i) {NSString * theDir = [[paths objectAtIndex: 0] stringByAppendingString: [@ "/" StringByAppendingString: [dirContents objectAtIndex: I]]] ; NSLog (theDir); If ([filemanager removeItemAtPath: theDir error: zero]) {NSLog (@ "removed dir"); }} I am a novice...