Posts

Programming a demo of a web app in jquery -

We are deploying some small web applications. Resources, we are now looking for a casual user to speed up (with our bad design;)) now in a simple way. What are the jQuery plugins that can be used to create demos? (Fire incidents, move dialogs, etc.?) Should we use a completely different approach? I like to do mockups like something - in this way the customer does not think that this Actually in fact it is.

php - Is setting the uploads folder 777 permission secure? -

I have seen cutting out many upload forms, and in some, some uploaded files actually had a good security check. (At least I think so), but still managed to upload any single PHP file. I was thinking: Is there a way to upload files in the uploads folder that has 777 permissions? I'm thinking of using HTTP PUT. In general 777 unsafe is happening as it is ... its meaning That anyone can read and write your files If you are allowing uploading files to tamper with you then HTTP PUT is not naturally secure from any HTTP post. Overall, if you have to allow arbitrary files to execute, you have to do a very good file to check for server-side, and Croit It would be wise to use it. Permission-wise, I usually reach to some web-webserver user-owned 644.

Files for use in Feature activation of a web application scoped feature SharePoint 2007 -

Is it possible to access local system files in a feature activation event that is scanned at the web application level? Yes, I tried to initiate the process of an SP timer job indirectly, which That a temporary file was received from another webservice method. Maybe this complex timer is also possible without a job scenario, but it works perfectly with the timer job.

sql - Ordering in a MySQL GROUP_CONCAT with a function in it -

I want to order results in a GROUP_CONCAT function. The problem is that selection in group_concat -function is another function, such as (fictional selection): SELECT a.name, GROUP_CONCAT (DISTINCT CONCAT_WS (':', b.id, CNID) order by B.ID ASC. People A, luggage B, course C. Group a.id I want to get a result .ID): Michael 1: Science, 2: Mathematics, 3: Physical Science But I'm getting: Michael 2: Mathematics, 1: Science, 3: Physics What I Isi can order here in group_concat by anyone know how I b.id? If someone cares, then I think I have at least one problem Has found a solution. Select 'GROUP_CONCAT' (from the order table of the column name with some columns) '|') where fieldId = p.id P> This sequence goes according to the group - if there is one then before the separator

Writing to std out from Java JNI DLL - output only appear when application exits -

We are writing JNI DLL to wrap a third party DLL. In our DLL, we are writing debug statement in standard out. When we use DLL from our Java application, there is no impression on the Java console during application execution. When the application stops, all outputs from DLL are written on the Java console. We want to output from DLL, so the application appears on Java console, as the application is implemented Does anyone know why this is happening, and What can be done to get the product during the application execution? Try flushing output. If that does not work, then pass System.out in your DLL and use PrintStream instead of stdout . but Fflush (stdout); must be enough.

c# - UserControl with Child Controls passed into a Repeater within the UserControl -

I'm trying to achieve something with lines of UserControl (MyRepeater ) & lt; P & gt; Start control & lt; / P & gt; & Lt; Asp: Repeater id = "myrepeater" runat = "server" /> & Lt; P & gt; Control end & lt; / P & gt; page & lt; P & gt; Start page & lt; / P & gt; & Lt; Uc1: MyEperPeter ID = "MyRepter 1" Runat = "Server" & gt; & Lt; ItemTemplate & gt; & Lt; P & gt; Page item template & lt; / P & gt; & Lt; / ItemTemplate & gt; & Lt; / UC1: MyRepeater & gt; & Lt; P & gt; Page end & lt; / P & gt; The item from the page object will be used as a replayer's item template within the template. The reason for this is that we use many repeaters, our applications, each repeater and some related buttons do the same code. I would like to keep this code in one place so that developers can use our custom repeater contro...

Drupal Imagecache not working -

I created an image setting that comes in only 125px wide size The first issue is that the preview image is 404. Then I & lt ;? I want to print an image through the Php print theme ('imagecache', 'imported_image'). , $ Node-> Picture, 'test', 'test', $ attributes); ? & Gt; 'imported_image' preset and $ node-> the picture is a correct path I HTML prints right out, but the path that the image is trying to load does not exist is. There is no folder with the preset name in the sites / default / file / image cache; The predefined flushing does nothing; The Imagecache folder is writeable by everyone, it is on the mmp. Does anyone know what this problem can be? Imagecatch Friendly URLs are closed when not working If this is the case, then the site / default / Find the path to your folder in the files 'no'. When I turned them on, the folder was created properly with the name. Imagecached images do not appear here. ...

.net - ADO vs DataSet and DataTables -

So I did not see the answer to my question: Is there any difference (display or otherwise) ado Vs dataset? If so, which is more common? The ADO is the way to actually get the data. I think you are mixing things. The dataset is basically a memory representation of the data you have drawn and it is OK to set a small result, but edit: its Apart from this, for the big result set, generator list populates through the detrars, as far as the performance goes. For an example of a dataset, I had to re-write a report that was taking more than 9 hours to run. It was a console application that was generating CSV, the programmer filled 1.4 million records in a dataset, then used for each loop through each line. It took not only 10 hours, but during the walk, it was recalled 4 Gigabits. After deleting the dataset, the report now runs within 5 minutes and takes approximately 20 MHz of memory. Just one example.

flex - IOErrorEvent Eluding Capture -

I am working on a Flex application that processes and displays HTML in small amounts, sometimes with images Sometimes I'm receiving HTML outside of third-party RSS feeds, I see it in a pop-up window: Error # 2044: Unrestricted IOErrorEvent:. Text = error # 2035: URL not found. The RSS URL is just fine, but apparently there is something in HTML which is causing a problem. Since the application is to run as part of a non-interactive digital science, therefore whichever one click is required to continue, it is totally unacceptable. I do not care how bad or bad the URL is. ; The app must ignore the problem without disturbing the user. Unfortunately, I do not have any luck to trap this incident. I am generously sprinkling the calls via code like this: [item] .addEventListener (IOErrorEvent.IO_ERROR, handleIOError); ... Where [Object] is everything from MX: Render the text object to HDM in its MX: Canvas parents MX: The application top-laser app, and handleIOError is ...

c# - Dont want textbox to enter null value in datatable -

I have a data table that already has some values, as well as receiving values ​​from a text box below. Now my problem is that when I do not enter a value in the text box that still enters the data table. I do not want to do this .. The code can run on any machine ... any suggestions ???? thanks public partial class WebForm6: System.Web.UI.Page {DataTable dt; Protected Zero Page_Load (Object Sender, EventArgs E) {// Start a DataTable if (! Page.IsPostBack) {dt = New DataTable (); // Start DataColumn DataColumn myDataColumn = New DataColumn (); Start //// to add a new instance to a different column in the initial form of DataColumn with different properties. // myDataColumn = New DataColumn (); MyDataColumn.ColumnName = "firstName"; // Column's datatype property as string myDataColumn.DataType = System.Type.GetType ("System.String"); // Add and create another data column dt.Column.Add (myDataColumn); // Create a new row using the DataTable's NewRo...

sharepoint - 2 accounts reference 2 different master pages? -

This is bothering me for a while. I am developing a SharePoint MOSS 2007 site, I have a set of accounts There is no problem with accessing the site and using the right master page. When I use the second group of Windows user accounts, they use a completely different master page for me unknown, there is no logical separation between those groups, which means that 1 account is correct from 1 department Can behave in a manner and the second account is in the form of the same department, which should have the same privilege, references a different master page. When I see the program, what is the master page, it displays standard default paths similar to "_catalogs / masterpage / default.master" for other users. The strange thing is that it seems that this separate master page is actually the same, but its old version is anyone who has experienced this issue? How do I fix this? Have you checked the master pager after checking it and Is the new version available for ...

php - How to make ImageMagick Imagick class available? -

This is really an amateur question, but I have established my ports on FreeBSD. However, when I use $ image = new Imagick ($ filename); I am getting: Fatal error: Class 'imagic' is not found in /usr/local/www/test.php on line 1 How can I access this class for a script? Pickle installed imagery

sql - Ensuring result order when joining, without using an order_by -

I have a mysql plugin that will return the results set in a specified order. Part of the result set includes a foreign key, and I want to join that key, while ensuring that the order remains the same. If I do something like this: SID = F.Id's internal join of the sphends F. F. F, choose Fitil, where query = 'test; Filter = type, 2; Sort = atriosak: static '; It seems that I am getting my results back so that Sphinx gives them returns. Is this a quote from mysql, or has I been assured that no involved order will change? If you need a guaranteed command in the result of a query, use ORDER BY Do some more willpower thinking. To give some information on this, several database execution steps are split in a way that can vary depending on the execution of the query, the available CPU volume, and optimization Just like the database can be estimated. If a query runs in parallel on many threads, the results may vary. If the plan changes, the results may vary if ...

sql - How do I list all the columns in a table? -

For different popular database systems, how do you list all the columns in the table? For MySQL / Oracle, use: DESCRIBE name_of_table ;

How to mix C++ and external buttons on seperate window? -

I have to create a C ++ button on Start> Run, but when I do What do I get to indicate? I'm sorry I have seen that you do not get the question. OK when you CreateWindowEx () ; I want to do this but put a separate window with SetAprent which I have already done Now the button is not working, so I need my program when it runs from the run window Clicked for example! And yes you have it but this button is not making the problem, the problem is when it has been clicked with my program because it is no longer! Older but still supported in Windows as you subclassing The technology needs to be implemented; It has been well explained (15 years old article, but still quite legitimate ;-) As it is written in this article, Sub-closing is a technique that is a Allows the application to block messages for the second window. Touching the message messages for another window can increase, monet, or modify the default behavior of a window. You would like "insulati...

When to use Dependency Injection -

I feel certain that dependency-injection really can not be "I can not really say my "I know it may seem silly, but in fact it is about the argument that why should I use dependency injection (DI)?" It is often said that I should use DI to achieve high level of loose coupling, and I get that part. But in reality ... how often do I change my database, when my choice falls on MS SQL or MySQL .. Very few right? Does anyone have some very attractive reasons because this is the way Two words, unit tests . One of the most attractive reasons for D is that it is easy to allow unit testing to hit one unit and not to worry about setting up 'test' data.

Is this a right way to put Java generics in action? -

I have started messing with the generic and I have to ensure that I got this right, any help? Public Interface Cart & lt; Tee CartItem & gt; {Public Zero Settings (List & lt; T & gt; Items); Public listing & lt; T & gt; GetItems (); } Public Interaction CartItem {Public BigDecimal getQty (); Public zeros set (Bigdishci kwati); // more} public category cart service & lt; T, cart & lt; E & gt ;, E increases CartItem & gt; {Public Zero addOrReplaceItem (T-cart, e newCartItem) {List & lt; E & gt; Item = cart.get items (); Int Status = Items Index (newcartime); If (status> gt; -1) {e present item = items.jet (status); CurrentItem.setQty (existing ITem.getQty) .add (newCartItem.getQty ())); } And {items.add (newCartItem); }}} Public interface grocery cart extension cart and lt; GroceryCartItemImpl & gt; {// more} Public interface grocery cart eTam spreads {// more} Public category grocery rent ITemImpl applies Serializable, Grocer...

Displaying custom cursor in the full screen mode - Flex 3.0 -

I am having trouble displaying a custom cursor in the full screen mode of my Flex application. How can I do this? cursor manager. The reverse cursor () deletes a cursor from the cursor list. If the cursor has been removed, the currently displayed cursor, the cursor indicates the next cursor in the manager list, if any exists. If the list is empty, the cursor manager displays the default system cursor. I can not find a way to add a deleted cursor to the caller list again in addition to calling setcursor . The following code works side-by-side with full screen mode. custom ID grows in each call - but atleast it works fine. & lt; Mx: application xmlns: mx = "http://www.adobe.com/2006/mxml" layout = "vertical" xmlns: local = "*" & gt; & Lt; Mx: button label = "custom" click = "onCustomClick ();" /> & Lt; Mx: button label = "default" click = "onDefaultClick ();" /> & Lt; Mx...

xml - Document specification in markup language? -

I'm not sure that before the hand it pardons it: what a markup language to create document specifications specifically is? For example, if a given document requires people to provide them with template word documents, then they have to include the what document and how It should be structured. I am thinking that this could be possible using XML, but I want to know that something is clever: thanks Edit: Thanks for the answer. I think the above example is called with the best example. In order to issue data to a third party in my organization, they will have to fill out a security policy that contains some information on how to ensure that the data is kept secure at their end. In most cases, people will download word templates for it. Fill it and send it back. I want to make a formal specification that what should be included in a markup language in that document It is possible that people have probably created tools or other things about document creation. I real...

swing - how to stop cell editing in JTextPane ,cell editor of JTable -

I created JTablePane as a cell editor. I want to stop editing the cell and if I enter the key in JTextPane And I also want to use a line in JTextPane. Therefore, I add main list creator to JetExpain and call Stopclitting method. But this is not working, the focus is in jettextpen and if I click on the other cell, then the selected row and the selected column do not change. So, please help me use a line in JTextPane and if I join the default cell editor. thanks a lot! Hi, I have just come to the same problem, I have a custom editor and default fire edit It was resolved by signing on Extending Private CelEditor AbstractCellEditor implements TableCellEditor {/ * here other code for editor ** / protected void fireEditingCanceled () {this.stopCellEditing ( ); }} took me a while to understand it, except if it does not work, you can use the model.setObject (object, line, call) in the cancel function Can try.