Posts

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...