Posts

Showing posts from August, 2011

java ee - Geronimo webapp using ldap authentication -

I am using Apache Jeromeo as my application server. Authentication is being done on LDAP using the ADPE directory service. I have no previous experience with Java software development, so please make it easy for me. Tell me that I can explain anything in more detail. Actually my login step is similar to this example from Geronimo's documentation: Three different behaviors are happening when a user is trying to login: When a user logs in with the correct username, which is in the correct ladder group, they are taken to a safe area of ​​the site. And I'm not sure how to login a user from the site until the end of its session. When a user logs in to the user name / password LDAP directory, user (specified in this location in 'web.xml') /auth/logonError.html ? Param = test will be sent to A user's log with the appropriate username / password that is not in the appropriate group, "HTTP 403 denied page" The Ldap is an example of this page at ...

algorithm - How to get arbitrary shapes, defined by images with transparency, to snap to one another such that there is no seam between the two? -

I have an application where the user can drag his images (.png) onto the virtual table. The images are of size - mostly regular polygon, but some saw pieces, Tetris blocks, et al. I want the shapes, because they are pulling, to draw each other like a picture of two rows. (Like MS Word "Snap To Grid") How can I complete this? Obstacles: Speed: This will be happening either because the user leaves the image, or at the time of quitting. Therefore the algorithm should be intense (real time). Any number of images can be dragged, and there can be any static picture to snap. No other user input: There should be no need for the user to do anything except opening the image file, and drag images. Possibilities: Use some sort of hull algorithm + simplicity, then match the length of the edge, with this issue, the point is that the edges of the user are straight / well Defined from can not be guaranteed. Use a lapless transformation on the transparency component of...

How to Cache RAND() random images in PHP MYSQL -

How to cache rand () random image in PHP MySQL Use cache for 5 seconds For refreshing your changes images, Keep images in constant storage (MySQL, Memory, Excat When they were put in storage. When you read them, determine whether the storage cache is older than the limit (in this example, 5 seconds) and if it is, rebuilding before reading this picture.

delphi - How to deal with network drops and Indy IdTCPServer -

I have created a client / server application with the IDTCPP component. Customers should maintain and maintain consistent connections through the life of the application. If the network connection is dropped (which happens quite often because the clients connect to the wireless aircurdle) the client will automatically reconnect, all this works well. My problem is working with sockets on the server related to the lost connection. They do not detect network drop and disconnect themselves. After reading several related articles, I learned that the server should know whether the connection was deleted. Some events will have to wait to find it. So my question is, should I "handle" sockets from time to time to create some mechanism in my server? And if so, how? I thought that in a way all connections will be cycled through and they will try to send the data. I think it will trigger a required "event". Any kind of heartbeats or ping signals, the server routine...

c# - Program.vshost.exe Error Preventing Running Program -

I am transferring files around my debug folder in an attempt to open an executable to my program from a different location. It seemed that things have been spoiled, and I would like to know how to fix them. The exact error reads as follows: "Visual Studio could not copy a support file at this place: \ Program.vshost.exe 'Please confirm the path and write And how to fix this? Right click project / Solution -> Properties -> Debug -> Uncheck "Enable Visual Studio Hosting Process"

linux - Under Netbeans/Java Swing, how do I run the program as GTK+ Look and Feel? -

I am trying to answer this with no results to Google I find answers about the running of Netbeans in GTK skin .... I do not want this. I have a Java swing application, I can fix it completely under GTK + C / X, when I click on the right JPNL form -> preview However, whenever I program ( Build + run), as a result the GUI looks and feels a Java swing. How can I enable GTK + for this program permanently? You have to do according to basic form and experience. When your app starts, up Public Static Zero Setup Endfell () {try {UIManager.setLookAndFeel (UIManager.getSystemLookAndFeelClassName ()); } Hold (exception e) {System.out.println ("Error setting original LAF:" + E); }}

c# - Progress Bar Only Appears After Work Is Complete? -

I'm trying to show a progress bar on a form, but for some reason this form does not actually appear Until the process is finished, and when the process is finished (or in other words, this form is only open for a moment) stops, how can I make it so that the form at the beginning of the form To be shown? Note: My code can not be 100% correct, I am just trying to isolate it from myself for privacy reasons. Public Zero SpawnPizzaProgressBarForm (Object Sender, EventArgs E) {FormPizzaProgressBar Form = New FormPizzaProgressBar (); Form.ShowDialog (); } ... Public Zero ProgressBarForm_Load (Object Sender, EventArgs E) {Pizza = New Pizza (); Pizza.Eat (PizzaEatingProgressBar); This.Close (); } ... Public Zero Eats (Progressive Pizzaing Progress Maintained) {foreach (Everything in Pizza) {slice.Clear (); // PizzaEatingProgressBar.Value = (Slice.Index / Pizza.Count ()) * 100}} post = "post-text" itemprop = "text" > This happens because you do all the proc...

Flash and HTML5 the Fallback? -

Is it possible possibly to return Flash Video to HTML5? Like I have something like (Flash installed) {Play Flash Player} and if you can (use video tag w / h.264) {h.264} using HTML5 video tag Now this is JavaScript, so if this is happening in Javascript, then the internal HTML will get the correct tag. This is my opinion, but I think that you will be better off changing the fallback order: HTML5Flickback To flash with Flash which I suspect is that any visitor coming to your site has never experienced better HTML5 video delivery. Also, it would be very easy to implement scripts like handling scripts to handle such fallbacks. It's just my two cents, but hopefully it's useful.

sql server 2008 - Why is Rank() not working as it should? -

यह मेरा टेबल डेटा है: - tblProduct में सम्मिलित करें (ProductId, ProductName, विवरण , श्रेणी) मान (1, 'सिन्थोल', 'कॉस्मेटिक साबुन', 'साबुन'); TblProduct (उत्पाद, उत्पाद, नाम, विवरण, श्रेणी) मूल्यों में डालें (1, 'सिन्थोल', 'कॉस्मेटिक साबुन', 'साबुन'); TblProduct (उत्पाद, उत्पाद, नाम, विवरण, श्रेणी) मूल्यों में डालें (1, 'सिन्थोल', 'कॉस्मेटिक साबुन', 'साबुन'); TblProduct (उत्पाद, उत्पाद, नाम, विवरण, श्रेणी) मूल्यों में सम्मिलित करें (1, 'लक्स', 'कॉस्मेटिक साबुन', 'साबुन'); TblProduct (उत्पाद, उत्पाद, नाम, विवरण, श्रेणी) मूल्यों में सम्मिलित करें (1, 'क्राउनिंग ग्लोरी', 'कॉस्मेटिक साबुन', 'साबुन'); TblProduct (उत्पाद, उत्पाद, नाम, विवरण, श्रेणी) मूल्यों में डालें (2, 'सिन्थोल', 'अच्छा साबुन', 'साबुन'); TblProduct (उत्पाद, उत्पाद, नाम, विवरण, श्रेणी) मूल्यों में सम्मिलित करें (3, 'लक्स', 'अच्छा साबुन', 'साबुन'); TblP...

javascript - Accessing a DOM object defined in an external SVG file -

SVG allows standard external SVG files to be used and referenced. I have a file circle .svg which defines a circle object with the id "the_circle", from the main SVG file, to include this cycle and animate it I am able to I would also like to use the same circle object through javascript, how can I do this? xlink: href = "url (#the_image) # the_circle" ? What is the JavaScript equivalent of document.getElementById ('the_image') using I can only access SVGImageElement, but the included objects inside the SVG are not defined. & lt ;? Xml version = "1.0" standalone = "no"? & Gt; & Lt ;! DOCTYPE svg PUBLIC "- // W3C / DTD SVG 1.1 / n" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> & Lt; Svg width = "100%" height = "100%" version = "1.1" xmlns = "http://www.w3.org/2000/svg" xmlns: xlink = "http: //www.w3.Organizations / 1990 / Xlink ...

iphone - Cococa Touch - Verifying each character inputed -

I have to type a user in something and I want to check each character. How could I do this? I want to be in real time. So it was confirmed as typing and color is coded. You can compare what I would like to do with programmer IDE, as if you check syntax when typing it. Any help is appreciated! Connect an app representative to the utfitted delegate and do something like this: - (BOOL) textField: (UITextField *) textField shouldChangeCharactersInRange: (NSRange) Category Replacement String: (NSString *) string {if ([string isEqual: @ "b"]) {// User typed 'b' // Insert the string with a specific color // [...]} and

Cron job in phpbb? -

I have a phpbb installation with installing some automated scripts but I do not know how they run. There is a "cron" folder in the root directory and there are scripts in it. The thing is that I have not used Cron job before and I do not know how to create them. Can you set them up from CNNL? You can set up Cran jobs so that scripts CPanell. Explaining this, how to do it. EDIT: Link updated for better summary

ontology - In Semantic Web, are OWL EL, RL, QL all instances of DL? What is the difference? More inside -

I have been using the tablet logic for several reasons and have run the information system in the list of IRIs (in this case URL ). Two metrics that I am interested in are DL Expressivity and OWL Profiles I am getting the limit from "OWL 2," "OWL 2 DL," OWL 2 EL, "OWL 2 QL", "OWL 2 RL", I OWL Profile. When "OWL 2" says, does it mean the otology oval 2 is full? Are all other changes DL? I have found a specific sample describing various profiles (Table 10 in particular) [As a new user, I can not post more than one hyperlink; Thought that the forthcoming was more important than one]], but so far I have not been able to answer this question for myself. For "DL Express", a lot of name means that all the expressive code (such as ALCH, ALCH (D)) are DL I get code and their technical meaning in terms of complexity, but I It should be known that at least how to tell, whether by looking at an otology dl or full expression. Any hel...

printing - Is there a way to print all the information in a certain amount of commits in TortoiseSVN/subversion? -

I want to be able to print all the changes in code from a certain date. Is it an easy way to get all this information in the central location, without manually copying and pasting all the commit logs? svn log-r {DATE} & gt; Myfile.txt

c# - Question on updating/inserting a datatable in a dataset -

I have to open a connection to the SQL database and read the subset of a table and if it is present then update the record or if did not get. By updating trobial SqlConnection conn = new SqlConnection (ConnectionStrings.PgenIntranet.SqlClientConnectionString); SqlDataAdapter Indicator = New SqlDataAdapter (); String sql = "SELECT * FROM BusinessApplications.tbl_WPI_Site_Indicators where year = '" + + year + "' and month = '" + month + "' and plant id =" + site. Id; Indicators. Selection Commands = New SQL Commands (SKL, Conn.); SqlCommandBuilder CB = New SqlCommandBuilder (Indicator); Indicators. Update = cb.GetUpdateCommand (); Dataset ds = new dataset (); Indicators. Filled (DS, "Indal"); Datatelle Inditable = Databables ["Indetail"]; // This argument is not working if (indebt. Raho.kount == 0) {indental. New Rau (); } Detrovert dr = indental. NERO (); /// To make sure how this work indtable [1] ["PlantId...

winpcap - SharpPcap Encoding.UTF8.GetBytes -

Does anyone know what is the correct way to get actual text in these bytes? I do something wrong. And another question: UTF-8 is the most common encoding, which will show the most characters correctly? TY Private Zero Device_Onpacket Arrival (Object Sender, SharpPcap.CaptureEventArgs e) {string str = string.Empty; Var Time = e.Packet.Timeval.Date; Var len = e.Packet.Data.Length; Str = "time.Hour:" + time.Hour + "time.Minute:" + time.Minute + "time. Second:" + time Second "time. Millisecond:" + time. Millisecond + "lane:" + lane; Str + = Environment New Line + E. Packet.ToString (); Str + = Environment New Line + "Message:" + Bitcode to ToString (e.Packet.Data); // str + = e.Packet.Data + Environment.NewLine + Environment.NewLine; Packet p = packet Purse packet (e pocket); Str + = e.Packet.Data + Environment.NewLine + Environment.NewLine; Byte [] utf8Bytes = encoding Convert (encoding.unicode, encoding. UTF8, ePocket...

cryptography - Encryption: How to turn an 8 character string into a 128-bit key, 256-bit key, etc? -

I have tried to research it, but still some questions were left unanswered. I was finding out how an 8-character password would change in a high-bit encryption key. During my research, I get articles that will talk about salt prices. Assume that you can find all 256 characters to play, then an 8-character password will be 64-bit long. Therefore, the remaining 64 bits have only one salt value. And, if I am wrong then correct me, but it is done that if anybody all was going to try potential values ​​(Brahma force), then they have to try all the bits from 128 Even salt is also unknown. My question is in fact related to this 'salt' value: When someone makes an application, then does it contain hard working salt? And if so, can not it be achieved through executable reverse engineering? If salt is produced at random, then I think there should be a way to duplicate it, then it is not the work that makes a random salt reverse engineer, so that it gets the salt value Can ...

c# - Why put standard dialogs on a form? -

itemprop = "text"> I have some legacy code C #, .Net 2.0 where someone pulled OpenBuffDialog and SaveFileDialaog from the toolbox to the form. The result of this is to open and save the dialogue promptly, when their parent communication is created and remaining until the original dialogue is closed. The open / saved forms are actually used only for a support file in one place which is not always opened / saved during the life of the original dialogue; It looks disabled for me what I will do: (OpenFileDialog openDlg = new OpenFileDialog ()) Use {// initial.dll} ... if (openDlg.ShowDialog ()! = DialogResult.OK) {// handle the results properly}} OpenFileDialog will be disposed of in this way when the statement used will be out of the scope. Unless I am missing nothing, the value of the quick disposal of the resource (and the fast waste collection) is required, then the open / save file does not extend the small amount of money to the dialogue, even if it is open / Sa...

Wordpress Contact form 7: Google Analytics Tracking -

I have contact form 7 installed. I have followed the documentation to add the tracking code: additional settings in WordPress () but then the page tracker object errors were retrieved. Has anyone experienced this before? Chris, Not sure that you solved it but I The only problem is ... I have made some changes and are patiently waiting for analytics to track some incidents but I believe that I have found the problem ... Recommending to use the contact form Page Tracker _track page view ('/ mysite / thank-you.html'); I did some research that it shows that this code is a traditional code that I am not using to track the analytics data ... I implemented the async tracking code For which this implementation is required: _gaq.push (['_ trackPageview', "/mysite/thank-you.html"]); More information can be found on Google - You should check the Google Analytics code used within your page - if you see _gaq This is async

Invoke an Expression in a Select statement - LINQ to Entity Framework -

I'm already trying to use an existing expression building class which I tried to do a select clause. I was not sure how to give expression to the expression tree for selection, I tried to do the following: var catalog = match list. Selection (c = & gt; new {c.CatalogID, name = units, expansion helper} Make-Transaction Expression & Lt; Catalog & gt; ("Name", ApplicationContacts.Instant.content LanguageID) .compile (). (C) CategoryName = Institutions Expert at the Make Translation Liquid Experiment & lt; Category & gt; ("Name", ApplicationContext.Instance.CurrentLanguageID.). Invoke (C. category), c. Credits, c. Startdatty, c. Indentuate)}; But I get an error that the unit framework can not enter a SQL method. Is there any way to work on this? FYI, Entity ExecutionHelper. Macronsulation Exercise & lt; T & gt; (String name, input language id): x = & gt; X.Translations.Count (t = & gt; t.LanguageID == languageID) =...

java - Checking if an annotation is of a specific type -

I am using reflection to see if any annotation is related to property of a class, a specific Is of type. Currently I am: if ("javax.validation.Valid" .equals (annotation.annotationType (). GetName ())) {...} who kills me as a little litter because it depends on a string which is a fully-qualified class-name. If the name space changes in the future, then it can be the cause of subtle errors. What I would like to do: if (class.formname (annotation.notation type). GetName ()) isInstance (new javax.validation.Valid ()) ) {...} but javax.validation.Valid is an abstract class and can not be done immediately. Is there a way to simulate the example (or basically use isInstance ) against an interface or an abstract class? are you looking for just (if any If not the comment) ?

osx - Installing IronRuby on Mac -

I am trying to install IronRuby on a Mac and it is having trouble compiling it. If I try to compile it using MonoDevolution or compiling it directly with Xbill, I get the message that the compiler is crashing while compiling Microsoft DDiNic project. When I try to do the rake script, I get a message that I need pkg-config. I tried to install the instructions for pkg-config but the time is coming. Does anyone locate a good resource to compile the current version of IronRB using the current version of mono / mono development on Mac? Thanks 1) Make sure you have the latest stable or trunk version installed 2) Download the latest IronierB source code from Gitob 3) Download Tarball (tar.gz) or Zip archive (.zip) file Download, then open source Terminal bus was removed in the directory (i.e. Ironbub-lolarubi-B871551 /) 4) xbuild / p: Treat warnings acers = wrong solution / ruby Try compiling using the SLN (I am using Mono 2.6.7 and if I try to compile then it fails becau...

visual studio - Where can I download the Java.Net install -

It really can show how much I am aobi, but does anyone know where I can go from Java ? I really do not like eclipse and like to integrate with my visual studio environment. I'm afraid you are out of luck a few years ago, Microsoft's Java (J ++, If you do not like Java programs and do not like Eclipse, Netbeans (Free) or IntelliJ (Free Limited Edition / Full Paid Version).

Localization of a wordpress theme without a textdomain -

I have tekstadomena without a WordPress theme (ie E (x) and E (x, domain) is not), I have /. Theme / My theme / localization .PO and .mo files in a folder are under (the name of the place in my theme View). I want to activate fr_FR I made fr_FR.po and .mo and fr_FR locale to add to the wp-config change. However, I'm still not getting the French to work I tell you there were a number of sites at the top of functions.php to add a load_theme_textdomain, but I do not know what will happen to my textdomain any help will be appreciated. Joseph The theme localization to work, you need your subject through to go and each _e () and __ () function call will add a domain. It is: _e ( 'Some text'); __ ( 'some other text'); It would be: _e ( 'Some text', 'Your Domain'); __ ( 'some other text', 'Your Domain'); Next you at the top of your karyaefapi file will add code to this bit: load_theme_textdomain ( 'your-domai...

Delphi, olevariants and arrays of strings -

I have an object object that is created with (simple verion) Obj: = CreateOleObject ('foo.bar'); Obj.OnResult: = DoOnResult; Process TMyDM.DoOnResult (Res: olevariant); Whatever works, the race variable has a function string [] GetAns () which calls this way var Ans: array of strings; Start ans: = Res.GetAns; End; Which works again .. except sometimes an array is returned, and then an exception is thrown. As a temporary solution I have left the block and wrapped it in an empty triangle, which I know bad I VarIsArray (Res.GetAns) , but the result is still zero if it is still working What is the correct way to check for the correct result? ps I have no control over object objects Christopher Function Process TMyDM.DoOnResult (Res: olevariant); Var ans: Wire array; If it does not start then VarIsNull (Res), if not VarIsNull (Res.GetAns) then start ans: = Res.GetAns; // the end of your luggage; End;

c# - Is there a control for .NET that is similar to the completion graph in uTorrent? -

For reference, it looks like this is a normal progress bar instead of filling 0% -XX% Also the arbitrary category may be filled up. I tried to search but did not describe it. I would say that you will not get normal control to do this. However, the concept is simple, you can roll your own easily by using GDI +

Is this browser-dependent javascript code? -

Why different output in IE and FF? shown in IE: Hello and shown in FF: Hi var message = "hi"; SetTimeout (function () {warning (message);}, 10); SetTimeout (function () {message = "hello";}, 0); What is standaround? Which browser is doing right? Note: If I convert from 10 to 11 FF, then it Hello Firefox handles different small delays in IE There is a small delay time of 10 MMS in Firefox (which is not perfectly accurate). See more information notes.

Parsing XML-to-JSON converted object in Javascript -

मेरे पास एक XML वस्तु है जो निम्नलिखित JSON ऑब्जेक्ट में परिवर्तित हो "{"? एक्सएमएल ": {" @ संस्करण ":" 1.0 "," @ एन्कोडिंग ":" utf-8 "}," प्रतिक्रिया ": {" उपयोगकर्ता ": अशक्त," संदेश ": {" बताओ ": {" सूचित करें ": {"फर्म": "एबीसी", "@ संदेश": "हाय सिस्टम, इसकी एबीसी & lt; br / & gt;"}}, "समूह": शून्य, "पर्सरिस्टेड संदेश": {"tell": null, "समूह ": Null}}}" मैं इस JSON ऑब्जेक्ट से XML नोड्स के अंदर मान कैसे प्राप्त कर सकता हूं? उदाहरण के लिए, मैं कैसे प्राप्त कर सकता हूं कि संस्करण @ संस्करण विशेषता से है? धन्यवाद। var json = {"? Xml": {"@version": "1.0", "@ एन्कोडिंग": "utf-8"}, "प्रतिक्रिया ":" उपयोगकर्ता ": शून्य," संदेश ": {" बताएं ": {" सूचित करें ": {" @from ...

ajax - Dynamic Elements are not appearing in IE8 until there is a mouse click -

I have an Ajax request that returns returns to search results, and I dynamically I am creating DOM elements. It is working as expected in all browsers other than IE8. The request is returning correctly, javascript is running successfully, and elements are created, but the elements are not displayed in the page, they appear only after a mouse-click on the page. I did a quick test which ran a callback code without the Ajax request, so I'm thinking that the way IE8 is managing the callback thread, there is something like that with it. Has anyone seen such behavior, or has information about it? Callback is basically very simple. I've re-submitted it with: function catches result (response) {var contentBlock = document.getElementById ('divResults' ); Var divResults = document.createElement ('div'); Var txt = document.createTextNode ("Result"); DivResults.appendChild (txt); ContentBlock.appendChild (divResults); } I'm using JQuery.ajax to...

ASP.NET MVC and Cloud Hosting -

Do anyone have any experience in running ASP.NET MVC (2) apps in one of the (decent) cloud hosting services ? post-text "itemprop =" text "> Without problems (Windows Server 2008) run on Amazon EC2

javascript - How to encode a value that is rendered to page and finally used in URL? -

I have a script which is provided as part of a tracking solution (etracker) on any HTML page. This is something like this: & lt; Script & gt; Var et_cart = 'Good Shoes, 10.0 100000045; Good jacket, 20.00,29887 '; & Lt; / Script & gt; This will be transmitted to the server of the tracking solution by some javascript which I do not control. This item ends in 2 items, separated by a semicolon in the source (after '100045'). I need to explicitly have HTML-encoded and javascript-encoded which will be provided. I have to convert to the first HTML-encoded word and then delete a single quote. It works, but I have French and German examples with special characters Umlaut (ü, AA ...). They render something like {. The script is produced when using Lars ümlaut as an article: & lt; Script & gt; Var et_cart = 'Lars & amp; # 123; Mlaut, 10.0100045; Good jacket, 20.00,29887 '; & Lt; / Script & gt; Semicolon tracking sol...

symfony1 - Form : sfWidgetFormDoctrineChoice, choose the method -

I want to use a widget principle in my form, but I do not use the method to display its result Could change the principle of the query. I have created a function in my model: public function quatier () {return $ this- & gt; GetQuartier (); } And MyClassForm: $ this-> widgetSchema [ 'list_quartiers'] = new SfWidgetFormDoctrineChoice (array ( 'model' = & gt; fragmentation ',' Add_empty '= & gt; wrong,' method '= & gt;' quartiers () ',' query '= & gt; $ result = doctrine_Query :: create () - & gt; select (' p. quartier '- & gt; the (' Parclogement p '- & gt; GroupBy (' quartier ')); I have this error: unknown method Parclogement :: Quartiers () when I tries with its widget default method (__toString), then it works. It may be that after the 'quartiers ()' brackets Land? Try to make it 'method' => 'quartiers'?

c# - how to place horizontal scroll bar in Ext js Grid -

एक्सटेंशन जेएस ग्रिड में क्षैतिज स्क्रॉल बार कैसे रखें pls help autoScroll config संपत्ति को सही पर सेट करें जब तक ग्रिड कंटेनर की तुलना में अधिक है, एक स्क्रॉल बार प्रदान किया जाना चाहिए।

java - Change background color of a scene in mt4j without clear -

I'm moving in the examples of the mt4j multitouch java library and in the "advanced drawing." Example, for example drawing Trying to change the background color. Since this set set to false, so I can not do it with clear collar option. Any other ideas out there? Thanks to TherioN with the help of the NUIGroup forum, I found a way to do this. It is possible to add an MTRectangle with Ultimate MTSceneTexture Volume = New MTSceneTitxture (MTApitalization, 0, 0, MTAP Wide, MTPC., High, Drawingscene); View output .getFbo () Clear (true, 255, 255, 255, 0, true); Visual output .Sets Stroke Collar (New MT Collar (155155155)); // background MTRectangle background = new MTRctengle (0,0, mtApplication.width, mtApplication.height, mtApplication); Background.setFillColor (new MTColor (255244,150,255)); // Add visual texture as a child of background texture so that visual texture can be dragged in front background .addChild (sceneTexture); Frame.addChild (background);

asp classic - Sending Values to Iframe HTML PAGE -

I have an asp page and the ASP page has an iframe with an HTML page. I can get two values ​​from the asp page on the internal HTML page have to send. How is this possible. You can pass them as query string wars: & lt; Iframe src = "page.asp? Var1 = & lt;% = var1%> & var2 = & lt;% = var2% & gt; & Gt; & Lt; / Iframe & gt;

orm - How to use Haraka librairy -

"पोस्ट-टेक्स्ट" आइटमप्रॉप = "टेक्स्ट"> हम हरका हमारे आवेदन मेल सर्वर के रूप में उपयोग करते हैं। हमने एक सरल प्लगइन लिखा है जो आने वाले मेल को लेता है और हमारे आवेदन वेब सर्वर पर पोस्ट करता है। यहां प्लगइन स्क्रिप्ट है बस इसे किसी फ़ाइल में सहेजें जरूरी नाम बदलकर हरकास कॉन्फ़िग / प्लगइन्स फ़ाइल का पथ जोड़ें। var fs = require ('fs'), query_string = need ('querystring') , लकड़हारा = ( './ लकड़हारा') की आवश्यकता होती है, DROP_DIRECTORY_PATH = '/ path / Haraka / ड्रॉप /', RETRY_DIRECTORY_PATH = '/ path / Haraka / पुन: प्रयास /', HOST_NAME = 'this_haraka_servers_name'; Export.hook_queue = फ़ंक्शन (अगला, कनेक्शन, पैरामीटर) {'सख्त प्रयोग करें'; फ़ंक्शन हाकाका_लाग (फ़ंक्शन_नाव_इन, सेक्शन_इन, टेक्स्ट_इन) {var log_text = '[एचटीटीपी मेल]'; Log_text + = '[' + function_name_in + ']'; Log_text + = '[' + section_in + ']'; Log_text + = '' + text_in; logger.lognot...

unit testing - Grails 1.3.3: controller.redirectArgs.action not populated -

Do anyone know what happened about the controller. Thank you. In the latest version of Grails (1.3.3)? It was used to work properly but now when I use it, I get NPE. FooController {def someRedirect = {redirect (verb: "bar")}} class FooControllerTests grails.test extension. ControllerUnitTestes {Void testSomeRedirect () {specify the value of "controller.someRedirect ()") "bar", controller.redirectArgs.action}} In this case the controller. RdirectArgs is already zero ... Comparing the action in the string, I get the same problem was. The following has worked for me, where the controller looks like this: class SomeObjectController {DEF Index = {Redirect (Action: List, Parameters: Parameters)} DEF List = {Params.max = Math.min (params.max? Params.max.toInteger (): 10, 100) [someObjectInstanceList: someObject.list (parameter), somObjectInstance total: someObject.count ()]}} and the test class will look something like this: class SomeObjec...

haskell - Error: "No instances for (x)..." -

The exercise 14.16-17 in Thompson tells me to add type XP to the multiplication and division (integer), which shows a simple language for arithmetic, then show and eval for xp (evaluates type Expr). My solution works for each arithmetic operation in addition to the partition: Data Expr = L Int | XPR: + Exp | Xp: - Xp. | Expr: * Expr | XP: EXP Instance Num Exp (L x) + (LY) = L (X + Y) (L x) - (LY) = L (X-Y) (L x) * (LY) = L ( X * y) Example eq expression where (l x) == (l y) = x == y show example expression where show (ln) = show n show (e1: + e2) = "(" ++ "Show (E1 + + + Show E2 + +)" Show (E1: - E2) = "(" ++ Show E1 ++ "-" ++ Show E2 + + ")" Show (E1: * Show) E2) = "(" ++ Show E1 ++ "*" ++ Show E2 ++ ")" Show (E1: / E2) = "( "++ Show E1 ++" / "++ Show E2 ++") "Eval :: Expr -> XMR (LN) = LN eval ( 1: + E2) = eval e1 + eval e2 eval (e1: - e2) = eval e1 - eval e2 eval...

asp.net - how to convert using statement in C#? -

I C # the following statement to convert I am working on asp.net and i wnt as while HttpWebResponse = TryCast (request.GetResponse (), HttpWebResponse) using feedback dim reader new StreamReader (response.GetResponseStream (a)) is used as the St. = reader.ReadToEnd () end If anyone knows, please tell me. Thank you in advance. Good, a literal translation would be: using HTTP webbase feedback = request.Getrespons ()) as HTTP (Reader Reader; New Stream Reader (Response .GetterSpenceScream); St = reader.ReadToEnd ();} However If feedback not a HttpWebResponse that still will fail - just a NullReferenceException . I prefer to cast : using (HttpWebResponse response = (HttpWebResponse) request.GetResponse ()) {StreamReader reader = new StreamReader (response.GetResponseStream ()); St = reader.ReadToEnd ();} or meticulous that response will be clear, even if it has to be a web response: using (WebResponse response = request .GetResponse ()) {HttpWebResponse h...

php - Scaling a site I wrote 2 years ago and need advice on correct planning methods -

I have created a website about 2 years ago, which requires some serious TLC. I maintain the site, fix bugs, and I only wrote 'ideas' and features for the site on scrap paper on my computer or in a text file, there was never a 'structured' development plan on the site. Because it was something fun at the time. Now I am looking at this site, users like it, its popularity, it creates a benefit and I have a 'million' ideas / improvements / features for the site that I want to do But I do not know where to start, the code is in such a mess, there is no version control, no work list, no feature list, no bug tracking! I'm stuck, I'm really. I see it now and I do not really know where to start from in an ideal world, I want this; I want to rewrite the whole code base. I want to get some sort of planning or project management software that I want to describe every feature or idea for the overhaul of the site, so I want to be able to share this program wit...

.net - Using Generics in C# - Calling Generic class from a Generic class -

मेरे पास निम्न के समान एक वर्ग है: सार्वजनिक अमूर्त वर्ग प्रबंधक & lt; T, TInterface & gt; : आईएमएनेजर & lt; T & gt; जहां टीइंटरफेस: आईआरएपीसॉजिटरी और लेफ्टिनेंट; टी & gt; {सुरक्षित सार टिन्टेफेस रिपॉजिटरी {प्राप्त; } सार्वजनिक आभासी सूची & lt; T & gt; GetAll () {वापस रिपॉजिटरी। GetAll (); }} यह पूरी तरह से ठीक काम करता है, हालांकि, सारभूत घोषणा में TInterface होने से और परिणामी वर्ग में मेरे सामान्य सार वर्ग को विस्तारित करने का एक तरीका है: पब्लिक क्लास टेस्ट मैनेजर: मैनेजर & lt; टेस्टऑब्जेक्ट, आईटेस्ट रिपोजिटरी & gt;, आईटेस्ट मैनेजर मुझे आईटेस्ट रिपॉझिटरी का उपयोग करने और रियोपोसिटरी संपत्ति को इस तथ्य के कारण सारंगी क्योंकि यह जिन कस्टम विधियों को मुझे पता है और कॉल करने में सक्षम होने की जरूरत है। जैसा कि मैं परतें बनाना जारी रखता हूं, मुझे यह प्रक्रिया पूरी तरह से स्टैक तक जारी रखना होगा। यदि मेरे पास सामान्य सार नियंत्रक या सेवा स्तर होता तो उदाहरण होंगे: सार्वजनिक वर्ग टेस्ट सर्विस: सेवा & lt; टेस्टऑब्जेक्ट, आईटेस्ट म...

html - Is there a CSS not equals selector? -

Is there anything like this! = (Not equal) in CSS? For example, I have the following code: input {... ...} But for some inputs I have to zero this . I want to do this by adding class "reset" to the input tag, e.g. & lt; Input class = "reset" ... /> And then just leave this tag with CSS. How can I do this? The only way I can see some square for input tags, and rewriting CSS is as follows: input.mod {... ...} In CSS3, you can filter : not () You can use, but not all browsers fully support CSS3, so be sure you know what you are doing. Example: & lt; Input type = "text" value = "will be matched" /> & Lt; Input type = "text" value = "will not match" class = "avoidme" /> & Lt; Input type = "text" value = "will be matched" /> and CSS Input: no (.avoidme) {background color: green; } If you do not want to use CSS3, then you can set the...

logging - Log statements prevent refactoring: how to help this? -

I have some relatively large legacy method that I want to reflector. This "bulleted method" type fits into "effectively working with the heritage code" referred to as Michael Wings, and thus it can be divided into direct sequences in many sequential ways. But each of its sequential steps produces some log messages, and to create that message, more data is required than that step, so when I try to remove the method, I say, the 6-parameter method If I had removed those log status then I would have only one method with 1 parameter. So I can not effectively refact anything. And I just do not have permission to leave log statements. A part of the method looks like this: // Device device = getDevice (deviceID) before much device; Boolean is First Registration = Wrong; If (device == faucet) {/.logger.trace ("DeviceId", deviceID, "ADM", adminCode, "phone", clientData.getPhone ()); Logger.info ("Device's first registration devi...

In Ruby on Rails how can I persist objects in memory between sessions -

I'm trying to make something (eventually a gem, but now an application) that works as follows. For example, DB records are dog breeds. For each dog there is a dog parent class and a child is not known to real breeds till runtime. When the server starts it will load the record with DB and will start the examples of classes based on the records, e.g. I can have two beagles and poodles when somebody comes to the server, they may want to use one of those dog instances. Why not just make an example of flying? In my case "dogs" are basically classes that keep an algorithm and data. There is no change in the algorithm, the data changes (in the order of the day), but the execution of algorithm, which uses data and some dynamic data such as timestamp, will be transported multiple times. It would be silly to make an example of an object re-creating and requesting only to load the data at the next request (not to change the status of requests). When I could use the same ...

sql - MySQL JOIN with 3 tables and COUNT() not working -

I am having problems with my MySQL statement I need a query that is generated by the number of comments and user Calculates the number of topics. My table structure is something like this: table 'user' ------------- user_id user_name ... table 'topics' ------ - ------- topic_id topic_user_id ... table 'topiccomments' --------------------- topiccomment_id topiccomment_user_id ... So far I have been able to produce this query: select u.user_id, u.user_name, COUNT (t.topic_user_id) as TOPIC_COUNT, COUNT ( Tc.topiccomment_user_id) Include topiccomments such as u TC as topiccomment_count from users u.user_id = tc.topiccomment_user_id u by u.user_id = t.topic on t Where _user_id join topics like u.user_id = t.topic_user_id and u.user_id = tc.topiccomment_user_id group. User_id This query is executed, but the values ​​'TOPIC_COUNT' and 'topiccomment_count' are completely incorrect and I do not understand enough why. Did I expect someon...

c - How to pass -libm to MPICC? libimf.so: warning: feupdateenv is not implemented and will always fail -

मैं एक नौसिखिया हूं जो एक कोड को mpicc को icc के साथ जीसीसी । मेरे पास है, कि मुझे संकलन करने के लिए निम्न कमांड का उपयोग करना है $ OMPI_CC = gcc make हालांकि, मुझे निम्न त्रुटि संदेश मिलता है () /opt/intel/fce/9.1.036/lib/libimf.so: चेतावनी: चेतावनी: feupdateenv कार्यान्वित नहीं है और हमेशा असफल हो जायेगा I करने की कोशिश करें $ साफ और amp; amp; OMPI_CC = जीसीसी OMPI_LDFLAGS = -एलबीएम करें फिर मैं देख रहा हूँ / usr / bin / ld: नहीं मिल सकता -लिंब संग्रह 2: ld 1 बाहर निकलने की स्थिति लौटा दी हालांकि, मैं वहां फ़ाइल ढूंढता हूं lrwxrwxrwx /usr/lib/libm.so- & gt; /lib/libm.so.6 lrwxrwxrwx /lib/libm.so.6 - & gt; Libm-2.3.6.so -rw-r - r-- /lib/libm-2.3.6.so कोशिश करें: $ $ OMPI_CC = gcc OMPI_LDFLAGS = -lm करें

java - 1 pixel table border in JTextPane using HTML -

I'm using a JTextPane to display some HTML that has a table with a border, I call it a simple 1 pixel Want the limit I tried to use the style = "border: 1px solid; range-collapse: collapse" . It works in a web browser, but not in Jatistpain. Is there any way that there is a simple 1 pixel table border via HTML in a JetExtPane?

c# - Can you call a class member from within a PostSharp advice? -

So I'm working with PostSharp to remove boilerplate logging / exception handling code so that it is: Public Zero doSomething () {Logger.Write ("DoSomething entered"); {// code} Hold (Exception Pre) {ExceptionPolicy.HandleException (formerly, "Errors"); } wood cutter. Write ("Some works seeming"); } It gets: [log] [handle exception] public zero doSomething () {// code} However, at some places I have a code that has a known recovery point, so it looks like: public void doSomethig () {try {// code } Hold (prior to known acquisition) {ExceptionPolicy.HandleException (formerly, "known"); } Finally {this. Recover (); }} I would like to represent it as an advice, but I am not able to reach members of the class with advice. Yes to invite a member of the target class with one aspect, you will be able to import this member into aspect Have to do. See.

filter - SIlverlight 4, FilterDescriptor and GUID as FilterOperator -

Hey guys, as seen in the post, GUIDs filterDecortes are not supported by the filter operator Does anyone encounter this problem Have done Is there a work around? Because, well it is too much waste (no foreign key is being filtered by the same and similarly ... which is quite normal). set the filter descriptor in the code public class name () {InitializeComponent (); This.DataSource.FilterDescriptors [0] .Value = Guid.Empty; }

JQuery/Javascript - Pull all checked contents and put into list -

We currently have a bunch of data from the database in which the user can indicate "check" that they Use. It is also prepared in such a way that if it is a returning user, then whatever is stored before it is checked onload. Since this list of data is long, it is difficult to tell which data has been selected, so what I want to do is check the location that has been checked on behalf of the side. It's not hard at first running, but I want to keep users updated and uncheck users and check other data. While preparing the checkboxes I used, click to check for different boxes. I think the way to go is a function for the click event, which will add content that was clicked in the display list or it was removed. The main problems I have run with performance are: Javascript is scripted and this is the best way to add an entry for an array like this or remove it as soon as it goes. How to drag the contents of the checked data so that it can be added to the list. Not...

.net - WPF 2-Way Databound DataGrid -

Does anyone point me to a very simple example of a WPF Datagrid (C # 4.0) bound to a SQL table I would really like the simplest example I want to be able to add, edit and delete rows. Thank you. An old thread seems to be, but hopefully it will still be useful. If you can get your data in the Observe Collection, then the most difficult things will be done for you. From there you can do something like this: Observing Collections & lt; Items & gt; OcItems = new reviewable collection & lt; Items & gt; (); OcItems.Add (new item ()); DgGrid.ItemsSource = ocItems; Or, if you want to do it in XML, you can do something like this: > ; DataGrid name = "dgGrid" item source = "{binding ociittum, mode = two}" auto generated column = "true" /> And then make sure that you have an object named OCItitt which is in your code. You can add updates for yourself and you can delete yourself so that you do not have to ask Don Datagrid...

arrays - PHP Show Differences -

मेरे पास दो स्ट्रिंग हैं: $ stringA = "1,2,3,4 "; $ StringB = "1,2,4,5"; मैं $ stringB से मान चुनना चाहता हूं जो कि $ stringA में नहीं हैं। कैसे क्या मैं ऐसा कर सकता हूं? विस्फोट और सरणी_एफ़िफ़ का एक संयोजन आपको वहां मिलना चाहिए। Pre> array_diff (विस्फोट (',', $ stringB), विस्फोट (',', $ stringA));

git pull VS git fetch git rebase -

ने कहा कि git pull एक git fetch + Git मर्ज । लेकिन git pull वीएस git fetch + git rebase के बीच क्या अंतर है? यह आपके प्रश्न से बहुत स्पष्ट होना चाहिए कि आप वास्तव में केवल जीआईटी मर्ज और जीआईटी रिबेस । तो मान लें कि आप आम मामले में हैं - आपने अपने मास्टर ब्रांच पर कुछ काम किया है, और आप मूल से खींचते हैं, जिसने कुछ काम भी किए हैं। लाने के बाद, चीजें इस तरह दिखती हैं: - ओ - ओ - ओ - एच - ए - बी - सी (मास्टर) \ पी - क्यू - आर (मूल / मास्टर) यदि आप इस बिंदु पर विलय करते हैं (गिट खींचने का डिफ़ॉल्ट व्यवहार), मान लें कि कोई भी संघर्ष नहीं है, तो आप इसके साथ समाप्त होते हैं: - o - ओ - ओ - एच - ए - बी - सी - एक्स (मास्टर) \ / पी - क्यू - आर --- (मूल / मास्टर) यदि आप दूसरी तरफ उचित रिबेस, आप इस के साथ समाप्त होगा: - ओ - ओ - ओ - एच - पी - क्यू - आर - ए '- बी' - सी '(मास्टर) | (मूल / मास्टर) अपने काम के पेड़ की सामग्री दोनों मामलों में एक ही समाप्त होनी चाहिए; आपने अभी तक एक अलग इतिहास बना लिया है रिबेस आपके इतिहास को फिर से लिखता है, ऐसा...

c++ - question about string to file -

यहां कोड है #include & lt; iostream & gt; # शामिल करें & lt; fstream & gt; # शामिल करें & lt; cstring & gt; नेमस्पेस एसटीडी का उपयोग करना; Int main () {ऑफस्ट्र्रीम आउट ("टेस्ट", आईओएस :: आउट | आईओएस :: द्विआधारी); अगर (! बाहर) {cout & lt; & lt; "आउटपुट फाइल नहीं खोल सकता। \ N"; वापसी 1; } डबल नंब = 100.45; Char str [] = "www.java2s.com"; आउट.लिखित ((चार *) और संख्या, आकार (डबल)); बाहर। लिखें (str, strlen (str)); out.close (); वापसी 0; } मुझे केवल यह समझ में नहीं आ रहा है बाहर। लिखिए ((चार *) और संख्या, आकार (डबल)); हमें (char *) और num? या sizeof (डबल) की आवश्यकता क्यों है? लिखें दो पैरामीटर लेता है, एक char * और लंबाई। और amp; num वास्तव में एक डबल * है। यह वही मूल्य है जिसे हम चाहते हैं, लेकिन यह गलत प्रकार है, और संकलक शिकायत करेगा। (char *) संकलक को यह एक char * के रूप में व्यवहार करने के लिए कहता है। असल में, यह कंपाइलर "शटपुट से कहता है। मुझे पता है कि मैं क्या कर रहा हूं...

c# - NUnit Assert.AreEqual(object a, object b) false negative? -

I do not understand why NUnit convinces it. Arequal is failing. var dataService = new data service (DB); DataService.Set ("Test", "Circle 1", Circle); Var NewsData = DataService Go ("Test", "Circle 1"); Assert.IsNotNull (circleData); Var newscap = newsdata. gate (); Decide. All (Circle, Circle Copy); Using NHibernate (collecting serialized data, then disassemble it). I have inserted a breakpoint and inspected objects in the Local Variables window - they are identical. There is a NIIT message here: Assert.AreEqual failed. Expectancy: & lt; TestData.TestClassCircle & gt; Actual: & lt; TestData.TestClassCircle & gt; Why would this test fail when the object is the same? what is CircleData ? Does it override equal ? I think you are cloning it, which means that you got two different CircleData examples circadata override equal , then This will examine a reference parity, which will fail.

asp.net - Images do not display consistently between VS and debugging version -

I have a gridview with three button columns that are set with images when I select my own path to image, VS Using the provided GUI tool, the resulting path is something like ~ / images / myicon.png and displays the image (occasionally) VS. In Design Mode But the images are not displayed on the ongoing version of the website (Firefox usage) because the image space resolves ../ Images / myicon.png . I can manually convert it to images / myicon.png and it works fine on the website but then VS Not in How do I treat them in the same way? These file paths are driving me crazy! I will use the path that works in Firefox. Remember to try to display things in Design mode in 2005 in VS 2005. Design Mode 2005 is really awesome. Honestly, in any version, the design mode can not be trusted in any way for the style. This VS Now it can come closer in 2010, but ultimately, it will never be good to display markup in a browser.

mysql - rails joins conditions as hash -

कोर्स। खोजें (: सभी,: समूह =>: आईडी,: आदेश => 'updated_at DESC',: joins = >: छात्रों: शर्तें => {: छात्रों => {: प्रथम_नाम => "जॉन",: स्थिति => 1}}) इस क्वेरी को देखकर, एक हैश के रूप में स्थितियों को पारित कर रहा है जिस तरह से: एक ऐसा निर्माण करें जहां: first_name not null? एक ऐसा निर्माण करें जहां: first_name! = "John"? असल में, कोई तरीका नहीं है जिसके बारे में मुझे जानकारी है वहाँ है जो शोधकर्ताओं को कई चीजों के साथ विस्तारित करता है, जिसमें निगलना भी शामिल है। : conditions = & gt; {: छात्रों = & gt; {: First_name_not = & gt; "जॉन"}}: शर्तें = & gt; {: छात्रों = & gt; {: First_name_not = & gt; निराश}} मेला चेतावनी, अंतिम अपडेट मैं देख रहा हूं कि यह एक साल पहले है और समर्थन पोस्टग्रे, माइस्क्ल और एसक्लाइट तक सीमित है। यह एकमात्र सक्रिय प्रोजेक्ट है जिसके बारे में मुझे पता है कि इस तरह से सक्रियरेकॉर्ड फैलता है। थॉटबॉट था, जिसके लिए आप कुछ सक्रिय फॉर्क्स पा सकते हैं।

xml - xpath php sort attribute based on greater than date -

Exception xml data needs to be based on the date attribute more than the symbol above the dash function at the below given date Prevents more and more. Is there a way to remove dash in XML on the fly? XML & lt; Research & gt; & Lt; Revised date = "2010-07-12" & gt; Blown & lt; / Revision & gt; & Lt; Revised date = "2010-06-12" & gt; Blown & lt; / Revision & gt; & Lt; / Revision & gt; PHP $ rdate = 2010-07-01; $ Program = $ item- & gt; Xpath ("/ Programs / Programs [Amendments / Modifications [Date & Date; ''. $ Rdate. '' ']]"); You can try: $ Rdate = 20100701; / Programs / Programs [Amendments / Modifications] [Translation (@days, '-', '') & gt; Edit: Anyone should keep in mind that XPath 2.0 has the comparison () function available (-1 small, 0 equals, 1 High), so that you can compare the stars. As far as I know that most PHP implement...

math - How do I efficiently find the maximum value in an array containing values of a smooth function? -

I have a function that takes floating point number and gives a floating point number It can be assumed that if you If you want to graph the output of this function, it will be 'N' size, i.e. There will be a maximum point, and there will be no other point on the function with zero slope. We also know that the input output which produces this maximum output will be between two known points, probably 0.0 and 1.0. I should get input value from efficient value which gives some approximate approximation value to the maximum output value, without searching without it. I am looking for something that is rooted in the function, but since my work is opaque, I can not get it. I want to subtract all the other answers so far for various reasons, but I do not. Derivatives are not available when writing an algorithm is a classic and efficient method for reducing (or maximizing) smooth functioning, so it is temporarily a golden-section search (Brent's Minimizer), when the p...

Change input background to transparent in Safari -

Do you click in the field while using the Safari and when you input white and white in the texture (via CSS) ) Is it possible to eliminate any other browser? Here's my link: Cheers. Eric your : focus rule overrides it Do make another rule, which is more specific to opposing it? . Postcard Input: Focus, Text: Focus {Background: url ("/ img / pixel.gif") Repeat Scroll 0 0 Transparent; }

xaml - Binding MenuItem property (IsEnabled) to combobox property (SelectedIndex) in same control -

I have spent a good part of my research; I'm curious if it is possible to make a completely simple binding in XAM, without the need to implement the InoPayPropt change without code. Ironically, how much time has I spent researching this, I did just 5 times behind the code. I have come across some articles which suggest using the DataTrigger (for menu items, the data trigger should be within a style trigger). I have tried this, but it does not work without error. I suspect that the DataTrigger could not find the combo box due to issues of menu scope, which I read in a different thread. Anyone have any suggestions? Code: (There are no build or runtime errors, but property is not updated) & lt; ContextMenu & gt; & Lt; MenuItem header = "Fix something" x: name = "MyMenuItem" click = "MyMenuItem_Click" & gt; & Lt; MenuItem.Style & gt; & Lt; Style TargetType = "{x: type menu item}" & gt; & Lt; St...