Posts

Showing posts from April, 2010

ruby - Having to call "render :layout => false" to correctly render js.erb template in Rails 2.3.3 -

I am running the latest Rail 2-3-Stable branch (currently 2.3.3). I am using JQuery for the 'create' request of an 'AJAX' request, in which I have the following block: response_to do | Format | Format.js end I have created create.js.erb and to check this action, I've added the following single line: alerts ('hello'); The request enters the format.js block in the correct form, but attempts to present the response layout. This is my log: 22 July 20:44:27 [297] Notice: the dedication of the template within the layout / application July 22 20:44:27 [297] Information : Rendering contact / create If I make changes to my response_to , then it works: response_to Do Format | Format.js {Render: Layout = & gt; False} end Is this expected behavior or is it a bug in the railways? I have thought of this fact that I am providing JS response, false will be enough to set the layout. Ajax's memory on rail books is that it was standard ...

iphone - What does error "request for member 'selectedCountry' in something not a structure or union" mean? -

मेरा कोड है: dvcontroller.selectedCountry = selectedCountry; क्यों करें मुझे "कोई सदस्य नहीं चुना हुआ देश" के लिए त्रुटि "कोई संरचना या संघ नहीं" अनुरोध मिलता है? आप शायद किसी वस्तु पर "चयनित देश" पर एक संपत्ति का उपयोग करने का प्रयास कर रहे हैं, और आप उस शीर्षलेख फ़ाइल को शामिल करना भूल गए हैं। (कम से कम यह तब होता है जब मैं यह त्रुटि प्राप्त करता हूं।)

php - How do I get max(); to display the highest value number rather than just "Array"? -

maximum ($ caption); gives me this: array $ Captions are defined here: $ i = "0"; While ($ i & lt; $ count) {catalog ($ old caption, $ years, $ order) = explosion ("-", $ gallery directory [$ i]); $ Caption [$ year] [$ command] = str_replace ("_", "", "$ oldCaption"); Echo every year; // debug echo " "; $ I ++; } comes out to be years $ 2008 2009 2009 So how do I get the maximum ($ captions ); To give me the price of 2009 instead of Array? I will also enter the whole code, but when I tried that it got dirty but I will try again so that you can see the whole picture Use: $ years = array_keys ($ caption); $ Maxewire = max ($ years); // or one-liner: $ maxyear = maximum (array_kiz ($ caption)); The reason for your code was not working because you were comparing the values ​​of array $ caption , which is another array. Maximizes () computation of integer values, using neither key nor arrays, ...

iphone - Best way to clear a UITextField -

A for IBOutlet UIT extField , does it talk to memory management or other reasons Explains the text value? textFieldX.text = nil or textFieldX.text = @ ""; Message in Objective-C is acceptable zero object and @ "" a constant NSString * / code>. I'm not sure every @ "" indicates the same object in memory or if it allocates a group of 1 byte null string. Not a big deal, just thought I would ask the community Thank you. Personally, I think less on memory usage than using memory here. For me, it is understood that there is always a string in a label, adding a label value to someone in the future, trying to save it in the database, wrap it in XML, etc. In this case empty NSString makes a lot of sense for me that 0x0.

Making a Windows shortcut start relative to where the folder is? -

I have a game that uses this file structure: Fader - & gt; Data - & gt; Data-> Run.bat In the game folder, I want to put a shortcut on run.bat , but if I take it, or someone else installs it This will not work, because the goal is wrong, what is the goal of creating and "starting" in comparison to the game folder? Step 1: Your / Right-click on the folder and click Create Shortcut . On Windows 7, you will see the shortcut in current directory . On Windows XP you will find the shortcut for the bat . Step 2: Right-click on the shortcut you just created and click Properties Goal (Click Shortcut on Windows 7] % windir% \ system32 \ Cmd.exe / c Start ""% c% \ bat \ bat \ run bat " Right click on Windows 7, the shortcut icon will change to the cmd.exe icon. .bat is acceptable in the case of shortcuts, but if you want to change the icon, then the shore Reopen the properties of the cart and click Change icon ... ...

mouse - In Cocoa, what is the best way to change the cursor when hovering over a circular view? -

What do I do I have a circular custom NSView subclass , And I want to change the appearance of the cursor when the mouse is hovering over the circular part of the view, but not when there are parts of the rectangle of that scene which falls outside the circle. I would have outlined it with an image tag, but I am also new to being part of such awesome features. What do I know till now? I know how to change the appearance of the cursor through the nicers, I think it's rectangular The best way to complete the cursor will be with the rectangle I know that I can get a mouse mood event (and when the mouse is not using the mouse attribute and mousex on this view, then they should be closed), and To determine A simple, inexpensive method is whether or not a point is in the field of interest. Then what's the problem? As far as I can tell, the system does not send the mouse using the event in a view that is not the first responder. Therefore, if I want to receive mo...

WPF creating dynamic rows using MVVM pattern -

I want to load my WPF UserControl with dynamic rows. My scenario is as follows. 1 When UserControl is loaded, then I will list your list & lt; String & gt; With some values ​​the object that I will get from the database 2. I need to create equal numbers in my UserControl which list & lt; String & gt; Matches the number of items in thing. Column 1 is a label control and column 2 will contain a text block control label 1: item 1 (this is the list & lt; string & gt; ; Value of the object) Label 2: item 2 label 3: item 3 I know how to make the rows dynamically, but my problem is that when I am using MVVM pattern Note: I am using MVVM Toolkit from CodePlex. Thank you, Jitu As your data content of your UserControl you have MVVM Set the object, I hope that the object has a collection property then reduce the items down like control, it is not clear from your description that the labels and items that come from your viewldle are the code given bel...

.net - How do I get the localhost name in PowerShell? -

How do I get the localhost (machine) name in PowerShell? I'm using PowerShell 1.0. You can only use the .NET Framework method: [System.Net.Dns] :: GetHostName () also $ env: COMPUTERNAME

Collaborating with someone using older version of Visual Studio -

Does anyone have the experience of collaborating with anyone using the second version of Visual Studio? How difficult would it be to work with someone who uses VS 2008 or 2010, VS2005? I realize that I have to target .NET 2.0 or whatever projects we will share, but I am more interested in dealing with the difference of the project / solution file. If I s. 2008, I update it .vcproj, so I will not be able to see it under source control because the other person will not be able to read it? If so, how can I ensure that if I add a file to my project, then its project will pick it up? Does each VS Is there a way to automate multiple project files for the version? If not, there are some best practices to deal with this situation. The easiest and easiest way is that I've found 'downvalval versions of Visual Studio on my machine To maintain the copy. I have no problem or problem till today. If you only want to make 2k8 or 2k10 on your machine, then the next option is...

xml - For basic XSL-fo tags to work do i need to install a FO- processor..? -

I am new to XML ... and I have to be forced to see XSL-FO. My simple question is By using XSL-fo, I am not going to work for any PDF generation ... but instead I just want to check with Xsl-fo with my original tags. I'm working in the Doneet environment in Visual Studio, so to proceed I need a separate FO processor or without enough support. ?? Because the page I have given gives that, PDF generation and XSL-F installs processor. And all the sample code in the net which I tried, was output "" "XML page can not be displayed Can not see XML input using XSL style sheet Correct the error and then click the Refresh button, or try again later. There is no document element in the stylesheet. The stylesheet may be blank, or it may be properly XML can not be Documen ... "" Advance Money for Your Answer Thanks ... xls-fo is an XML language that describes how paged content is provided But you need something to explain it (usually an XSL-FO engine t...

java - Are there Compound property values in Spring -

I read about compound property name "" I use the same concept to determine the values ​​of properties? Can I use a compound string as a value expression? & lt; Bean id = "Service 1" class = "ABC service 1 implied" scope = "prototype" & gt; & Lt; Property Name = "Service 2" Reference = "Service 2" /> & Lt; Property Name = "Service2.User" value = "This service-1-example.user" /> & Lt; / Bean & gt; & Lt; Bean id = "Service 2" class = "a.b.c.Service2Impl" scope = "prototype" & gt; ... & lt; / Bean & gt; User is a property of a.b.c.Service1Impl, which is not under spring control. I want to forward this property to abcService2Impl. Instead of using a plain old factory bean, use a factory method to make the bean of the property And then inject the result ... Iow In your case, something like this will appear ... ...

sharepoint - Change document library "Type" after it has been created from list definition -

When development begins against SharePoint, I did not initially understand all ins and exclusions. A list definition (for a document library) and created various custom actions for it. Unfortunately, I use the following for list definition: and to register the constraint against the list: & lt; Custom Action ... ... Registration Type = "List" Registration Id = "101" ... Of course, this means that custom actions are visible to all documents libraries where the facility Is an undesirable behavior which is active. Apart from this, there are many libraries out of these documents which have been made in production from the above list definition. What is the best way to fix this problem? My impression is that I already need to change the "type" attribute of the current lists, but I do not know how to do it. Can this be done directly through some SQL manipulation? Or is there a better way? Note: I can see that there is a column in the Alll...

ruby on rails - Keeping the history of model associations -

I have several models for which to keep their history indefinitely or at least for a very long time Application I keep track of daily attendance statistics for people in various organizations, and some other similar organizations have realized that due to the presence of user in any query for the presence of the user anytime I Can not delete user at any time The problem I am facing is finding a good way of keeping inquiries about those old associations, along with the old associations. If I have a connecting table between users and organizations, then I can just add a new line between the user and the organization, the user is related to the new associations, and based on the date of the old people , But I really do not have a great way to do this, everything just looks ugly. I was just thinking that someone has presented something like this before, And possibly there was a solution already implemented. Thank you. Create a is_deleted field so you can delete those "de...

Php for loop with 2 variables? -

Is it possible to do this? (Here is my code) for ($ i = 0; $ i & lt; = 10; $ i ++) {for ($ j = 10; $ j & gt ; = 0; $ j -) {resonant "war" $ I. " is " . $ K "& lt; br & gt;"; }} I want something like this: var 0 10 var is 9 var 2 is 8 ... But my code is wrong, it gives a big list of PP guru, help me! Try it out: For ($ I = 0, $ K = 10; $ i & lt; = 10; $ i ++, $ k--) {echo "war" $ I. " is " . $ K "& lt; br & gt;"; } Two variables $ i and $ k begin with 0 and 10 The $ i one at the end of each of the loops is $ i ++ and $ k will be extended ( $ k - ). Then the value of $ i will be values ​​0, 1, ..., 10 and $ k values ​​10, 9, ..., 0.

java - How can I make Maven set up (and keep up to date) the build path for my Eclipse project? -

I define dependencies to compile, test and run programs in pom.xml files. But Eclipse still has different configurable build paths, so whenever I change, I need to update the other manually. I guess it's avoidable? how? Use both (formerly) or both (among other features) whenever a Clean is produced and clientpath presents the dependence of the eclipse as a container, then Maven provides a means to re-calculate dependencies. See it for details. I personally would go to m2eclipse at this time, especially if you do development with AspectJ is an optional plugin for M2eclipse that exposes the aspect library of Eclipse with the aspectj-maven-plugin Which avoids the whole range of integration. To enable m2eclipse on an existing project, right-click it on Package Explorer , then Maven -> Dependency Management Enable , this will add the Maven Builder to the .project file, and in the Classpath Consonor .classpath file. There is also an eclipse: Eclipse target, but I t...

asp.net linkbutton client-side problem -

I have this link button, which is post-back disabled ... I should have used it with html control but it just It did the same way .. It is toggling a language bar at the top (marara.com.tr - language link). It needs to be clicked twice to get the feeder in the feed. I need this problem I can fix it but just want to know why this happens in the first click on the address bar # Adds a sign, then on the second click it does this which is supposed to be .. a lead? thanx in advance Emre There was a problem. It depends on the browser you are using (this happened when I was using Firefox but when I was not testing in IE6) It looks like the browser looks at the URL and sees that nothing has changed (except #) ... so it does not reload the URL, due to which the # ... do not register you query string Thinking it 'and amp;' Can change by adding Prior to '#' so that you have the URL & amp; Add # ...

wpf - How Can I Nest Custom XAML Elements? -

& lt; विंडो x: कक्षा = "WpfApplication1.Window1" xmlns = "http://schemas.microsoft Com / winfx / 2006 / xaml / प्रस्तुति "xmlns: x =" http://schemas.microsoft.com/winfx/2006/xaml "xmlns: स्थानीय =" clr-namespace: WpfApplication1 "शीर्षक =" विंडो 1 "& gt; & LT; ग्रिड & gt; & Lt; स्थानीय: एलीमेंटटाइप x: नाम = "प्रथम एलेमेंटनाम" & gt; & Lt; स्थानीय: एलीमेंटटाइप x: नाम = "सेकंडएलेमेंटनाम" ग्रिड। कॉलम = "1" ग्रिड। राउ = "1" / & gt; & Lt; / स्थानीय: elementType & gt; & Lt; / ग्रिड & gt; & Lt; / विंडो & gt; और यह अन्य फाइलों में है ... & lt; ग्रिड एक्स: नाम = "आंतरिकएलेमेंटनाम" x: वर्ग = "WpfApplication1.ElementType" xmlns = "Http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/2006/xaml" xmlns: स्थानीय = "clr-namespace: WpfApplication1 ...

gwt - Adding a resize listener to LayoutContainer -

I'm using Ext-GWT 2.0.1 and GWT 1.6.4 I have A layout container is a roulette that uses widgets is added to the rotadata (1, -1) in this container so that when they change to a height, the container changes accordingly to the height accordingly. I want to do something when the layout correspondent changes shape How can I add a listener who does this? So far I've tried: layoutContainer.addListener (Events. Resize, New Listener & lt; ComponentEvent & gt; () {Public void handheldEvent (Final Component Event Event) {// Do something}} but the handleEvent never calls. I know that this is a very old post, but I thought that someone should meet this problem by answering. So what is wrong with the snippet, the listener type ( ComponentEvent ). With BoxComponentEvent Try, because the layout operator inherits this event from its ancestor in its box blanket. code: layout dialogue.adlist (resize events, new listener & lt; BoxComponentEvent & gt; (...

WCF one service or multiple services -

I'm new to the WCF installation, I'm running this in my project, but I have 5 separate ' Services' like my one WCF project and I am wondering if I am doing the right thing for my services now 1-1 to my database tables I like something: Public Sector Projects: IPOJs {Public List> Project & gt; GetAll () {Return (Select the new project from project P. in the project. {ID = p.id, name = p.name}) ToList (); } Public Project GetByID (int id) {return (in connection with P. Data.Projects where p.id == ID select new project {ID = p.id, name = p.name}). first (); } Public Project AddProject (name of string) {var project = new Data.Projects {name = name}; Connection.Data.AddToProjects (project); Connection.Data.SaveChanges (); Return the new project {id = project.id, name = project.name}; } Public Zero DeleteProject (int id) {var project = (From connection to P.ID.Projects where p.id == ID select new project {ID = p.id, name = p.name}). first (); Connection.Data.Del...

Recommendations for Windows text editor for R -

Any recommendations for a good Windows text editor for R? I am using, and it is working very well, but people want to know what people use and what. Usually a favorite.

java - Randomness in Jython -

When using random numbers in Jython (pseudo), is it possible to use Python random modules or random classes of Java To be more efficient? Code> Jethon -M timat-s "random import" "random.Random ()" Use 1000000 loops, best 3: 0.266 per loop versus jython -m timeit -s "import java.util.Random; random = java.util.Random ()" "random.nextDouble ()" 1000000 loops, use best 3: 1.65 loops Jyothan version 2.5b3 and Java version 1.5.0_19.

Converting between timezones in C -

I need to change time between times in C (on Linux, so anything will be specific). I know my current time, local and UTC, I have been trying to use mactimes, GMTEM, folktim and similar functions offset of target time, but still understand it not coming. Thank you in advance. Do not allow posts to be posted as comments, posting as separate answers. If you know the "local" time and "UTC" time, then you can calculate the offset "other" time from your "local" time and then you convert struct tm to calendar time, the desired seconds Offset offset), and convert it back to the structure tm: ( The normalization of edited Mk time in the account of another scenario for use) #include & lt; Stdio.h & gt; # Include & lt; Stdlib.h & gt; # Include & lt; Time.h> # Include & lt; Sys / time.h & gt; Int main (int argc, char * argv) {struct timeline tv_utc; Struct TM * Local_TM, * other_tm; / * 'Synthetic' tim...

jquery - JavaScript scrollTo method does nothing? -

So I'm trying to get some scrolling functionality to work on some tabs. After not being fortunate, I can see the window.scrollTo (0, 800); I decide to stick if I can have a scroll. Nothing happens to me, I have an AdWords that spreads and then I want to scroll a particular element in it. But for now I would be very happy to see just scrolling the thing. If you have something like this: html, body {height: 100%; Overflow: Auto; } If both body and HTML are defined as the height of 100% and the scrolling is enabled, the window. ScrollTo (and all derived scrolling mechanisms) even though a scrollbar is not displayed (Which can be used by the user), when the content is more than 100% body height, the reason that the scrollbar you see is not of the window but rather of the body. Solution: html {height: 100%; Overflow: Auto; Body {height: 100%; }

sql - Delete records which are considered duplicates based on same value on a column and keep the newest -

I would like to delete records that are considered a duplicate based on those which have the same value in a certain column and Based on the latest one is considered based on InsertedDate in my example. I want a solution that does not use a cursor, but the set is based. Goal: Delete all duplicates and keep up to date The DDL below makes some duplicates that the records to be removed are: John1 & amp; John 2 because they have the same identity as John 3 and Johns 3 is the latest record. In addition to this, join 5 is required to record because there is another record with id = 3 and new (John 6). Create a table dibow. Include TestTable (ID id, insert date, date name (50)) in debo. TestTable1, '07 / 01/200 ',' John 1 'in the deboe. Select TestTable1, insert '07 / 02/200 9 ',' John 2 'into the DIBO. Select TestTable1, insert '07 / 03/200 9 ',' John 3 'in Dibbo. Choose TestTable2, '07 / 03/200 9 ',' John 4 'inse...

closures - Javascript setTimout within an object/function help -

I am new to shutting down and understanding 'javascript' to get me the most work from 'me' and i I am thinking of how I can improve the following which was trying to try the object in which there was a counter in it ... trying to improve my understanding. EDIT: The following code works, but ... is the possibility that this is wrong (is it?) ... I have no idea about whether it is right or wrong. .. Where can I improve ... the better way is the timer in any object / function? function myObj () {this.outputId = 'div_output1'; This.counter = 0; This.limit = 10; This.count = function () {// its own reference I = this; If (me.doStuff (me)) setTimeout (function () {me.count ();}, 1000); }; This.doStuff = function (me) {if (me.counter> = me.limit) {document.getElementById (me.outputId). WarryText = 'reached the count limit'; return false; } And {document.getElementById (me.outputId) .innerText = 'count =' + me.counter; Me.counter + = 1; Back ...

java - Get Name of selected RadioButton in EXT-GWT RadioGroup -

मेरे पास निम्न कोड है: अंतिम रेडियो trDelRadio = नया रेडियो (); trDelRadio.setName ( "TDRADIO"); trDelRadio.setBoxLabel ( "प्रशिक्षण"); अंतिम रेडियो सीडीसीआरडीओ = नया रेडियो (); cdcRadio.setName ( "CDCRADIO"); cdcRadio.setBoxLabel ( "सामग्री"); अंतिम रेडियो एमएसआरडीओ = नया रेडियो (); msRadio.setName ( "MSRADIO"); msRadio.setBoxLabel ( "प्रबंधन"); अंतिम रेडियो ओएसआरडीओ = नया रेडियो (); osRadio.setName ( "OSRADIO"); osRadio.setBoxLabel ( "आउटसोर्सिंग"); अंतिम रेडियो समूह रेडियो समूह = नया रेडियो समूह (); radioGroup.setOrientation (Orientation.VERTICAL); radioGroup.add (trDelRadio); radioGroup.add (cdcRadio); radioGroup.add (msRadio); radioGroup.add (osRadio); Radiogroup.addlistener (घटनाक्रम। बदलें, नया श्रोता & lt; baseEvent & gt; () {सार्वजनिक void handleEvent (BaseEvent be) {GWT.log ("सेवा प्रकार:" + RadioGroup.getValue ()। GetBoxLabel (), नल);}}) ; इस कोड में मैं GXT 2.0.1 का उ...

big o - how to find the time complexity using step count -

योग (सरणी, एन) {tsum = 0; के लिए (i = 0; i & lt; n; i ++) tsum = tsum + सरणी [i]; वापस लौटना; } शब्दों में, यह संरेखित सरणी तत्वों की संख्या के अनुपात में है, इसलिए ओ (एन) (ध्यान दें, आपका कोड मैं पैरामीटर को अधिलेखित करता है, मान लें कि पैरामीटर को एन के लिए करना है, योग के लिए सरणी तत्वों की संख्या का संकेत देना है?)

c++ - How to setup eclipse cpp to generate multiple executables -

I have created a new project in a clean eclipse installation and imported many source and header files into a source directory. / P> Some source files are libraries, some have a main method and should be compiled into executables. How can I tell which source file is executable? Should I Make Different Building Projects? Eclipse is capable of generating many executables when you write your own messy eclipse just make everyone And puts all binaries in debug or release. Then you can run them individually Steps to use your makefile: New -> Project -> C ++ -> Makefile Project

c# - Increase thread priority on wait handles -

I am running an application with a lot of threads. All these threads are updating the database with GPS coordinates. In the meantime, applications can get a synchronization request. The server must finish its work before processing this request. So I'm using an array of handles waiting to manage it. Here's the scenario: Actor: 1 Writing Synchro thread N Thread N The thread is working at the Wait handles stop in a sync thread. It claims to lock, by doing so, it is put on the end of the list of the "lock thread claim". The problem is this: this list can be very long, or my transit thread top priority . How do I get it to give VIP pass ? It seems that you should use the system. threading. Instead the reader lock slim instead. Author can work in the lock's 'Read' mode, enter the 'typed' mode in the sync thread that requires exclusive access.

Default Content Type and Content type order using Folders in a Sharepoint List -

I have a custom list definition (schema.xml) I have set up the site column (via a feature) and Many content types also work through a feature, all this works fine. I have a list definition (schema.exml) and I have put the content type in the order in the order, I want to reveal them (assuming it That would be the default for the top content type list - which Note: I have set EnableContentTypes = "true" Here's one of my schemas. The excerpt is & lt; CONTENTTYPES & gt; & Lt ;! - Folder-based content type - & gt; & Lt; ContentTypeRef id = "0x0120006ad66a4924644ac98d371a0e069c5d 99" /> & Lt ;! - item based content type - & gt; & Lt; ContentTypeRef id = "0x0100a18ddd58b9384567bc776a3c5889ea77" /> & Lt ;! - ..... more content type ... - & gt; & Lt; / CONTENTTYPES & gt; The problem I have is that when a folder-based content type is provisioned for a list, then the second is always in the ...

java - Problem using WiiGee? -

Does anyone try? I'm planning to use it, but I'm facing a Bluetooth problem (I'm using Bluew (latest version)). Whenever I try to compile and run the demo program (which has been downloaded from the YIG site), my voice is not known by BlueKov I have played a lot with Vimeo, but this is the first time I got it in Java Attempted to connect. Any help would be appreciated. Have you synchronized the VMot with Compress? To do this, Hold down the '1' and '2' buttons together Open the battery cover, and press the red "Sync" button. Visitors should look like Nintendo "RVT-CNT-01".

c# 3.0 - Issue with getting 2 chars from string using indexer -

I have a problem reading four values. See my program below I want to evaluate an infix expression. As you can see, I want to read '10', '*', '20' and then use them ... But if I use string indexers [0] then '1' and Not '10' and therefore I am not able to get the expected results. Can you give me some suggestions? Code C # class is in the program {static zero main (string [] arg) {string infix = "10 * 2 + 20-20 + 3"; Float result = evaluation infix (infix); Console.WriteLine (results); Console.ReadKey (); } Evaluation of public static float (String) {Stack & lt; Float & gt; Operand = new stack & lt; Float & gt; (); Stack & LT; Four & gt; Operator1 = new stack & lt; Char & gt; (); Int len ​​= s.Length; For (int i = 0; i & lt; len; i ++) {if (Iopater (s [ii]) / has been an issue because s [i] gives each letter and i want number operator 10 Am Push (s [i]); Else {operand.Push (S [ii]); If (operand....

flex - Event dispatched when network is disconnected while downloading files (URLs) for URLStream object -

I am creating an AIR application that downloads the file to a server. I am using the URLstream object with full, progress, IOError, security error and HTTP status event. I am not getting an event, if the download is running, then the network is disconnected. Can someone tell me which Has the event been sent? Thank you, Anahas You should receive an IOError event if the network is disconnected If you are not receiving it, you can not either add a listener to that event, or you have added it to the wrong object, or there is a framework / flash bug.

visual studio - How can I get the color options for VS.Php working? -

Recently I created a Visual Studio 2008 extension called VS.PHP, created by Jessex Software: It looks great; IntelliSense and debugging for PHP! Unfortunately, it believes that I have a white background in the visual studio, but I have a hacker style "black terminal to green color", from which some elements meet with the background. Now, it should be in font / color options, but the elements do not appear. The website says the following: If you are not able to see the php entry that requires running a Visual Studio Package Registration under this user. Open Visual Studio Command Line and type: devenv / setup But when I run it, I get: \ & Gt; Devenv / setup command "devenv" is not valid. How do I get to show color options? Thanks in advance. This is located in the general 7 \ IDE directory of your Visual Studio installation.

c# - Nunit .net vs mono -

I wrote a simple test application using ASP.NET mvc with C #. The application uses MySQL to leak MySQL files using MySQL and uses MySQL to debug it and the application is working in both Windows and Linux. Now I have started using NUITT to test my code, especially since I need to check that the code working under Windows also works in Linux. My Announce Test runs well under Windows but is not under Linux. This is my Windows environment: NUINIT Version 2.5.1.9189 Copyright (C) 2002-2009 Charlie Pool Copyright (C) 2002-2004 James W. Newkerork, Michael C. Copyright (c) 2000-2002 Philip Craig All rights reserved. Runtime Environment - OS Version: Microsoft Windows NT 5.1.2600 Service CLR Version: 2.0.50727.3053 (Net 2.0.50727.3053) This environment with my Linux error (Library is the name of my application): NUNIT version 2.4.8 Copyright (C) 2002-2007 Charlie Poole Copyright (C) 2002-2004 James W. Newcastle, Michael C. Two, alexi a. Vorotosov Copyright (c) 2000-2002 Phil...

java - How to select all text in a JFormattedTextField when it gets focus? -

I have a small Java desktop app that uses swing to create a data entry dialog with some different input fields (Jetextfield, Jessimbox, JSPinner, JFormattextfield). When I activate JFormattedTextFields by tapping through the form or clicking with the mouse, I would like to select all the text that I want. In this way, users can simply start typing and overwrite the default values. How can I do this? I have used a focus listener / focus adapter which selects all () calls on JFormattedTextField, but it does not select anything, although the Focus adapter's focus is called the grain () method (see code sample below) . Private javax.swing.JFormattedTextField pricePerLiter; // {...} "" "" "" "" "" "" "" "" "" "" "" ... "0.000")); Formatter.setValueClass (double class);} return formater;}}); // ... PricePerLiter.addFocusListener (new java.awt.event.FocusAdapter...

c# - WPF MVVM Focus Field on Load -

I have a view that includes a single textbox and a pair button This is below when the window is loaded so I want to TextBox for focus If I was not using MVVM then I would just click the TextBox Focus () will call in the loaded event. Although my Voododel does not know about my thoughts, so how can I accomplish this without putting code into my idea code? Edit: After reading the answer, I can see the xaml & lt; DocPanel Focus Manager FocusAlement = "{binding element name = message text box}" & gt; & Lt; Text box name = "message textbox" text = "{binding message}" /> & Lt; / DockPanel & gt; If this was anything other than the initial page focus, then I might suggest Johns Galloway's answer as it can be controlled with ViewModel. If this makes you feel better (this makes me feel better) You can do this in XML using: If you can do anything in code, you can do it in Xaml. If you know the tricks, you can ...

Ruby on Rails - class caching? -

I read an article and I used the principles given there for writing administrative checks for my controllers. Actually, you see which controller you are in and then I say an array that if this person allows permission to see that controller, then pass it. The author of the article said that the readers should not use the example code because it was faulty and should use their plugin (which is definitely outdated now). And they said "There are some problems with the above code while running in production mode due to the use of class variables and class caching." I have a test unsuccessful and I think it may be because of this, but I am not sure which part of the code I should not use. I had the following (in application.rb): controller = consultation [: controller] action = param [: verb] but I changed it From: controller = self.class.name action = param [: verb] How can I use the verb name correctly? And what kind of things can you do in the developmen...

css - Style a cascade list into table -

Just asking how to style a waterfall list is like this: & Lt; Ol & gt; & Lt; Li & gt; & Lt; Ol & gt; & Lt; Li & gt; Call 1 line1 & lt; / Li & gt; & Lt; Li & gt; Column 2 line 1 & lt; / Li & gt; & Lt; / Ol & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Ol & gt; & Lt; Li & gt; Column 1 line2 & lt; / Li & gt; & Lt; Li & gt; Call 2 line 2 & lt; / Li & gt; & Lt; / Ol & gt; & Lt; / Li & gt; & Lt; / Ol & gt; In a table like this ------------------------ ------------------------------ | Column 1 line1 | Column 2 line 1 | Column 1 row2 | Call 2 line 2 -------------------------------------------------- ---- Where each line is a horizontal list of the same width I am using it to achieve, but it can only get close --------------------------------------- - -------------- | Column 1 line1 | Column 2 line 1 | Column 1 row2 | Call 2 line 2 --...

c# - How can I reference a Master view in a different project in ASP.NET MVC? -

I am creating an ASP.NET MVC solution, and I had 2 MVC website projects inside. I am interested in creating a third project called "Share", where I can reference the views / content shared between two sites, so I have only one place to edit them . WebUI site1 (ASP.NET MVC site) WebUI.Site2 (ASP.NET MVC site) WebUI.Shared (newly created ASP .NET MVC site) I can refer to the location of a Masterview, to find out how it is in a different project So, on the top of a scene normally I There are references like Masterview> & lt;% @ page title = "" language = "c #" MasterPageFile = "~ / visible / shared / tabbed.master" Inherits = "System.Web.Mvc.ViewPage & LT ; WebUI.ViewModels.Admin.EditProfileViewModel> "& Gt%; However, this "tabbed. Mister" is not in the local project, this solution is a difference project, I have made a reference to the project , But I do not know how to write WebUI.Shared...

c++ - realloc function that would work for memory allocated using new instead of realloc -

I know that there is a function that will allow me to resize the memory block (and with a free function has been added ). However, instead of using new instead of realloc , I am trying to do this with C ++ class with some member points. What No, no. And obviously, if you are using new or new [] your C ++ code is probably not designed. Use std :: vector instead of the new [], and try using values ​​instead of new ones.

multithreading - Publishing Concurrent Objects -

I am interested in technology that people use to publish the information and make changes in the data structures that many Concurrency is being shared without losing too much threads in threads. In my personal experience, I often come across single authors / many readers, where a formula is updating an item, but many threads are reading from the object and need to be informed of the changes. Simple examples, consider a hashtable (assuming this thread is secure, through coarse grain locking, fine locking, or low-lock technique etc.). Thread 1 is responsible for inserting and removing information from hashtable, but is the only author. Other threads can be reported when a key is changed, a certain key changes, or any different ones that want to subscribe are not particularly important. What techniques (I like suggestions for papers) will you use to ensure that information about timeline and correct changes is obtained? You have actually asked about 2 different problems Mult...

c# - Non-Generated Property in LINQ to SQL insert behavior -

Is it possible to emphasize on the SQL Designer behavior editor from LINQ to identify properties of table entities not generated by the designer Is it yourself? That is - I want to give a custom property (defined in my own partial class) as a parameter for a stored procedure. I have tried to specify the parameter name in the XML (which does miracles for it while complying with some other things, such as SP return types, when the L2S designer can not make the fact that Returns match an existing table). Unfortunately this does not work. I am currently sending a set of web services written in .NET 1.1 which comes after it. I am trying to integrate all those behaviors which were considered for two layers of Business Objects (mainly changing the field name in objects and type conversions from DB) in LINQ objects. The simplest solution in this case is to simply change the type of parameter for SP in DB, and what I will do in this case. Already there are three separate sets of SP db...

c# - How to find the most recent file in a directory using .NET, and without looping? -

I have to find the most recently modified file in a directory. I know that I can loop through each file in a folder and compare File.GetLastWriteTime , but without any looping There is a better way. How about something like this ... Var directory = new DirectoryInfo ("C: \\ MyDirectory"); Var myFile = (f.LastWriteTime descending selection in order from f.files (in directory) f). first (); // or ... var myFile = directory.GetFiles (). Orderbidesigning (f => f.LastWriteTime). first ();

sql - How do I write a TSQL function that takes a table name to drop, and drops a table -

Sorry, but I'm new to TSQL, so I do not even know the basics. I am working on this function, but I am running in several syntax issues. If someone can help me write this function, then I appreciate it. 1 Before trying to leave the table, I would like to check the existence of the table. After doing 2 plus, I want to check the errors. 3 I get this status message I would like to print which includes the name of the table - 4 I realize that I do not need to print 'no action', but I want to make it work a bit more challenging in any way I am including. 5 I have a lot of syntax error issues that I do not know how to clean Create function is started as SAFE_DROP_TABLE (@TableName NVARCHAR (30)) (from sys Select * to run in. Objects WHERE object_id = OBJECT_ID (@TableName) AND TYPE IN (N'U ') drop table @TableName IF @@ error & lt; & Gt; 0 'Print failed to drop' + @TableName + 'error =' + @@ Print error from left '' left '+ @T...

c++ - MFC: retrieve button ID programmatically -

I have a CButton object called the mouseCtrl, and in the DoDataExchange function, I have the following: DDX_Control (PDX, IDC_MCCHECK, mouseSoda); Somewhere else in my program, I would like to be able to call a function / method of mousseod so that I can recover the IDCMCCCAK ID macro properly. Is there a function in MFC that can allow me to do this? thank you in advanced. MouseSaud ()

mysql - How to condition branch (if - else) with the value from Form.Recordset -

मेरे पास MS-Access (फ्रंट एंड) + MySQL (बैकएंड) के साथ एक प्रोजेक्ट है स्थिति और DEL_FLG कॉलम को TB_STATUS strSQL = "SELECT * FROM TB_STATUS" रु। खुला एसआरएसक्यूएल, सीएन, ऐड ओपनकीसेट, एडलॉकऑप्टिमिस्टिक यदि आर। रिकॉर्ड्सकाउंट & lt; & gt; 0 तब सेट करें फॉर्म। राकॉर्सेट = आरएस आर। बंद करें यदि उपयोगकर्ता इंटरफ़ेस है | text || valid || invalid | DEL_FLG का मान 0 के मामले में एक अमान्यता बटन के साथ अमान्य है, और DEL_FLG का मान आपको बताना चाहता है 1 के मामले में एक प्रभावी बटन को अमान्य करें, इसे कैसे करें? यह मानते हुए कि आपका बटन myButton कहा जाता है, मुझे लगता है कि आप ऐसा कुछ करना चाहते हैं: strSQL = "SELECT * FROM TB_STATUS" rs.Open strSQL, सीएन, एडऑनकेईसेट, एडलॉकओप्टिमिस्टिक यदि आर। रिकॉर्ड्सकाउंट & lt; & gt; 0 फिर प्रपत्र सेट करें। रीसेसेटसेट = आरएस यदि आरएस ("DEL_FLG") = 0 तब me.mybutton.enabled = false else me.mybutton.enabled = true end अगर rs बंद करें यदि नोट: मुझे यकीन नहीं है कि MySQL स्टोर ...

c++ - MATLAB MEX interface to a class object with multiple functions -

I am using the MEX interface to run the C ++ code in MATLAB. I would like to add many functions to MATLAB for dealing with sysSetAttribute (name, value) string = sysGetAttribute (value) to system object: sysInit () sysRefresh Each MEX DLL can include a function, so I need to find a way to store the indicator in the global system object, which will remain in existence until it will not be removed sysExit by calling. How can I do this correctly in MATLAB? Are there any ways to call Global Porter to call in MEX work? A common way is to provide m-file functions that provide a public interface, such as SysInit.m, sysRefresh .m, etc. Each of these M-Fixes identifies the function to call the Mexico function with any type of handle, a string (or number), and any additional aggregates for example, sysRefresh. M can look like this: function sysRefresh (handles) reverse systemmax (handles, 'refresh') In your sysMex mex function, you can Either a raw pile indica...

firebug - CSS - How to view computed font size? -

When you specify the font size in "em" units, then the browser calculates pixel values Is a Pixel Shape Way? Can a firebug do this or another device? Yes, in the firebug, on the "Show computed style" style tab

documentation - How do you document your PHP functions and classes inline? -

I know that PHP code has many different criteria for inline documentation. What I mean by inline documentation, and please correct me if there is a better word: / ** * This is a description for the category given below. * * @ Package my-package * @subpackage my-subpackage * @author my-name * @version my-version * ... * / class command operations {... Is the best and most widely accepted form of inline documentation? Are there any tools to automatically generate such documents, or is it to be done manually? I'm not interested in making manuals - I want to know how to comment on the code above, or "inline documentation". , which you have posted, is a widely accepted form Edit: In reference to generating an in-line document in my code, I have never seen a device, will go back and do this externally for a project is usually left in the scope of the IDE when you code Make the template. Eclipse really does a good job of it (this is one of the few things I li...

java - How to access request parameters in Struts2? -

I am trying to access request parameters on a web page and attempt to set hidden field values ​​in passed parameters I am doing & lt; S: hidden name = "myfield" value = "# parameter ['myparam']" /> I tried to use the parameter object but it does not work! Thanks in advance. adding Zaheer's answer to your comment so that the question can be "answered": & lt; S: hidden name = "myfield" value = "% {# standards ['mparam']}" & gt; & Lt; / S: hidden & gt;

Should I continue learning C# with Windows Forms or WPF Applications? -

I am starting to learn C # and want to create a real app that will start from one of the two? Personally, I will learn WPF, we use a lot of Winforms, but we use WPF In the process of migrating, I think that there is another future proof of skill set. There is a good place to start.

Good little project to do when learning C# WPF -

I want to write a small application for myself to learn C # and WPF. In the typical Hello World 2009 (Twitter Client) seems boring. I would like to hear a Twitter customer standing? Can any other beginner play around with i and get used to c #? (I have a long time PHP programmer) A good way to start a Twitter client is to finish For some reasons with WPF: Get lists of data with images, which gives you practice with formatting and styling lists A lot for style There are alternatives to A Twitter app is a kind of application, where you expect to see a good UI Something good Taking advantage of the staccato (I tweet excessively) so that you do not have to bother with any plumbing. There is something you can show and be proud of it - people will understand that What does If you want - skinning, drag and drop, auto complete, spell check etc. are very complex things that you can add later. There are some open source WPF clients, you can get some sample code if you ...

css - How do I use multiple selectors with sIFR? -

I have set up sIFR on one site and it is working correctly. Although I need to implement many styles based on class. The job code is: sIFR.replace (myriadpro, {selector: 'h2', css: '.sIFR-root {font-size: 20px; color: # 008cba; Text-Conversion: Creating Capital;} ', wmode:' transparent '}); However, I should be h2.white style enabled with a different font color. I just need to know how to add another selector. Thank you in advance for help. The easiest way to do this (arguably) on sIFR.replace So call it, just call it with different selectors and style rules. However, keep in mind that if you only have to apply the same settings to a set of other elements, then the selector option is a comma-delimited list of the key selectors in one May be like regular CSS file.

java - Should I use Vaadin Framework -

I tried to play with the bus and I think it is very easy to use. Apart from this, what I like about my structure, it's made up of the top. Do you think, should I use this framework or is it better to stick with GWT? As a disclaimer, I work to work for the company. Wadine uses GWT in a way that has a set of prefocated components in GWT. If you want, you can also create your own components. However, the set of components is quite complete, and can often be customized for their own needs. This means that whenever you change your application, you will need to re-compile your code in JavaScript Do not need to You combine the already available components together. The framework server is operated, so all logic is handled on the server side. The component has two parts, the client and the server file. The client side is just a dummy "scene" for the component once you interact with it, it sends a message to the server that it or it is pressed / written / etc. The s...

vbscript - Call COM object from classic ASP -

How to call COM objects from classic ASP? I tried hard but did not get a good tutorial. If you see 'this page, for example: It assumes that "some. Objects" have been registered as a COM object (for example, "regsvr32 / register someObject. Dll "). To read further, Oreli had a good book on it and you can consider reading this sample chapter: or this tutorial:

apache - Weird 500 Internal Server Error (firebug, php, display_errors, ajax) -

Friends, I am making several AJAX calls on one page. All calls return responses successfully, but the last one (not related to other ajax calls) returns 500 internal server error (firebug) as response code, however, despite the error code, returned the right content from that AJAX call has gone. When I set the display_errors option to ON in php.ini, the error disappears for my uncertainty and the response in the given rendering on the page is reciprocated. I have an error setting up the error in a file, but there is no error logging from the above mentioned internal server error. Anyway, I am using Apache, JQuery, PHP5, APC (if it's relevant). Given the limited information available, the most likely is that PHP is a fatal error after has echoed your expected output. To test: Whatever is executed in that row, resonate something if you do not see the echo, then you know that your PHP script is getting tired, at that time, it is only debugging And is the case of traci...

iphone - Filling Array with Custom Class - retrieving values -

मेरे पास निम्न कोड है NSMutableArray * leeTemp = [[NSMutableArray alloc] init] ; प्लेयर * खिलाड़ीएलआई = [[प्लेयर एलोक] इनिट]; PlayerLee.name = [सरणी ऑब्जेक्टऐटइंडएक्स: 1]; [LeeTemp addObject: playerLee]; [खिलाड़ी लाइ जारी]; और यह खिलाड़ियों की एक सरणी उत्पन्न करता है (मुझे लगता है)! जब मैं निम्नलिखित करता हूं तो यह खिलाड़ियों के पते दिखाता है। NSLog (@ "% @", ली टेम्प); मैं क्या करने के साथ संघर्ष कर रहा हूँ retreiving कहते हैं सरणी [0] .नाम, यह एक स्ट्रिंग मान है मुझे यकीन है कि यह बहुत आसान है, लेकिन यह देखने के लिए संघर्ष कर रहा है। आप करना चाहते हैं: / P> एनएसएलॉग (@ "% @", [[लीटैम्प ऑब्जेक्टअटइंडएक्स: 0] नेम)); या यदि आप एक सरणी के माध्यम से लूप करना चाहते हैं तो आप। के लिए उपयोग कर सकते हैं: के लिए (खिलाड़ी * खिलाड़ी leeTemp में) {NSLog ( @"%@", [खिलाडि का नाम]); }

asp.net - Publishing Web App Project with Visual Studio -

I am using Visual Studio 2008 and trying to publish a web application project, but then Also fails when project Below is a sample of the message; Unable to add 'JavaScript / hoverIntent.js' to the publishing folder JavaScript ... Web site. Unable to attach 'Javascript \ hoverIntent.js' file, the specified file could not be encrypted. This is also for image files. Why am I losing as it is happening? I should add that I am using Windows 7 build 7100, is not sure Is that the problem? Any help greatly appreciated It is suggesting that you have encryption There may be set target directories for using. The exception you are seeing is the inability to disable the publication of the VS publication. To resolve this problem: Use the VS directory to publish an intermediate. Anywhere on your PC This is at least one solution. / div>

c# - Exception changing focus with the tab key in a .NET application -

I have a very simple Windows application, with some controls, a datagrid view and Adobe PDF viewer control. When the app works fine except to leave the tab around paying attention to the switch between control, I regularly get the following exception. System.AccessViolationException without attempted message = "Attempted to read or write protected memory. This time there is an indication that other memory is corrupt." Source = "System. Windows.Forms "StackTrace: System.Windows.Forms.NativeWindow.DefWndProc on System.Windows.Forms.UnsafeNativeMethods.CallWindowProc (IntPtr wndproc, IntPtr hWnd, Int32 message, IntPtr wParam, IntPtr lParam) (message & amp; m) System KWindowskFormskControlkDefWndProc (message & the Amp, m m), on the system) and in the (message System.Windows.Forms.Control.WndProc amp; m) System.Windows.Forms.AxHost.WndProc on ( Message & amp; Windows.Forms.Control.ControlNativeWindow.OnMes The Sage (Message & amp; M) in (message S...

encryption - Using a caesarian cipher on a string of text in python? -

I am trying to extract all the complexity of the dragon gradually. Actually, I'm looking for some kind of dragon, take a string of letters and push everyone over the 'X' characters. For example, abcdefg input will be cdefghi (if x is 2). I will do this (for conceptual simplicity): def encode (s): l = [ord (i) for i) return '' .join (i for i [chr (i + 2) i] i point it Is that you convert this letter to ASCII, add 2 to that code, convert it back and "cast" (create a new string object) in the string, anybody based on this "case" (upper vs. bottom) Does not convert. Potential Optimization / Research area: Use string-eio modules for large stars Apply it to Unicode (not sure how)

ruby on rails - Unpacked gem in vendor/gems not in a versioned directory -

मैंने अपने विक्रेता / रत्न निर्देशिका में एक मणि को अनपेक्षित किया और मेरे रेल एप्लिकेशन को चलाने की कोशिश की। / P> मुझे यह संदेश मिला है: विक्रेता / रत्नों में अनपेक्षित रत्न एक संस्करणित निर्देशिका में नहीं है मुझे यह त्रुटि नहीं समझती और इस त्रुटि के लिए न्याय करने से बहुत से लोग इस समस्या का अनुभव नहीं करते हैं। क्या इसका मतलब यह हो सकता है कि मुझे विक्रेता / रत्न का उपयोग करने के लिए रेलवे की ज़रूरत पड़े? > आपको विक्रेता जवाहरात का उपयोग करने के लिए रेलवे की ज़रूरत नहीं है। आम तौर पर रत्नों को खोलना एक डायरेक्टरी जिसे विक्रेता / रत्न / कुछ_जीम-1.2.3 जैसा कुछ कहा जाता है। जांच लें कि आपके सभी वेंडर किए गए गम निर्देशिका इस पैटर्न (यानी GEM_NAME-VERSION) का पालन करते हैं।

Appengine and GWT - feeding the python some java -

I realized that Appenzin now comes to Java, but I have the Dragon Appenin app which I want to access by GWT Python is better for server-side text processing (course pipping!). I have tried to explain the client-side RPC of GWT and it is complex because there is no Python equivalent (Python-Jivat-RPC is outdated). I just tried to use JSON and RequestBuilder, but it fails when using SSL Is anyone having a good solution for applying the GWT frontend on the Dragon Appenin app? only optional (if you can call it) that I'm familiar with. I'm obviously GWT -RPC is more than a GWT replacement compared to replacement, besides, I think you will be stuck in writing your own communication layer using some type of REST-type protocol.

sql server - SQL: Selecting parents and their children -

I'm sure this is a normal query, but I'm not sure how this is the best phrase. I have two tables: question {id, text ...} answer {id, question, text ...} To get a list of questions and their answers so that the results can be displayed as: Question A The first answer to Question A. The second answer to Question A. The third answer to Question A. Question B The first answer to question B ... etc There are some selection criteria on the question table. A very inefficient method will be to select all the relevant questions, then select all the answers for each. Another disabled method would be to use a left OUTER. What is the most effective, easy way to get questions and answers? Can this be done in a question? For MySQL (not MSSQL) such a thing will work; Answer in answer q.quiestionid = q.id GROUP by q.id, a.id command q.id SELECT q.text, a.text questions Let me know that you have a queue.

reporting services - What should i use to generate and print letters -

I am in the process of creating a system that generates printed letters (about 1000 days) which is sent to our customers And wondering what are some good tools to use for it. So far I have noticed using Crystal Reports and MS Fox Pro Reporting, but there is despair to use them Has anyone got any good suggestions? SQL Reporting Services and / or word automation any good? These are my basic needs Bits of information from our DB There are several situations on this that are displayed on the letter on the basis of how the data appears. Ideally easily template the template. It is only for basic changes (for example, non-DB operated parts of a letter) It would be nice if it was easy for a non-IT person to do this. You will need to be able to run approximately 1000 letter batch at a time. Use the mail merge function in Microsoft Word (see description). It can be easily scripted or programmed. / P>

iphone - Basic Objective-C: Why does this code work? -

question 1) I have a navigation based application where the second view by clicking on an entry Opens the details of that entry. It is now working with the following code [self.navigationController pushViewController: descriptionController Animated: Yes]; [Self.descriptionController.textView setText: [Details]]; Self.descriptionController.title = [name]; But, if I change the first and third statements, then for the first time I click on an item, showing the Lorem Ipsum text to the detail view. After the first time, it works as expected, I thought it would be right to do it this way. Question 2) In addition to this, my text visual elements are part of the part of the description, so why will it show me Lorem Ipsum for the first time? I have in my controller class for the view: @property (nonatomic, retain) IBOutlet UITextView * textView; But if I change it in @property (nonatomic, copy) IBOutlet UITextView * textView; Then it crashes, I do not think this ac...

Drag & Drop using jQuery-ui -

I am currently working on projects where I have a custom calendar to easily display and manage placements Need to make / P> I should be able to properly draw and reschedule appointments. JQuery-UI is very clean and I'm able to get almost everything, besides that I need that divs not overlap. I am not able to understand how to get it. If someone can guide me in this direction in the right direction, then it would be great. Thank you in advance for your time and patience. This jQuery plug-in handles collisions during drags:. Alternatively, when the drag is finished, you can check the collision, and cancel the drag. To give you an idea, someone has done this for recycling.

html - Click on CSV file link within an iframe opens in Browser (IE6) instead of MS Excel -

I hope someone can help me I have an iframe that has a report , Which allows a user to click on a link to open the report within MS Excel. My problem is here that when the user clicks on the link to export and open within MS Excel it actually opens inside the brusher window - instead of MS Excel, MS IE 6, which I do not want. How do any ideas come about this? Thanks Tony Are you sending the correct header to the customer? For Excel, these headers may look like this: header ('content type: application / vnd.ms-excel; charset = yourcharset'); Header ('Content-Disposal: Attachment; Filename = yourfilename.xls'); And if you open your Excel sheet correctly but are still in the browser window, then you can do two things. 1) Change that setting on your local machine or 2) Use application / octet-stream as content type. Then the browser will not try to open the file.

c# - Entity Framework - SaveChanges() doesn't get the generated Identity key -

I am using the framework of organizations in my project and it has been a nightmare! I have a table named "I have a form in a SQL DB." The form has an ID that is PK and identifier (it automatically increases). This time I am doing this: dim form as new units 1 as int32 dim dbform 1 6 6 6 new look dbform.AddToForm696 (Form) dbform.SaveChanges () id = form.ID A id and form. The ID was first generated after inserting it, but now it has only 0. I do not know what happened to stop working for it. I have had to change the name to insert, remove, and update stored procedures for several tables and so I had to map it back again. Maybe I did something wrong but I looked back in time and time and everything was fine. Do anyone have any clues? I think the issue has been resolved with patches if you still do not work You should try to delete and add your data model. There are less problems with EF now.

.net - VB.NET Datagrid -

How do I add selected dyadgrid columns to dynamically selectedindexedchanged? Do I think that the combobox contains the datagrid-column (or datatable column)? You can only set the visible property in false, when you get the column. In WinForms: dim x as integer ... datagrad view 1. Column [x]. Visual = False But please take a look at your question, there is almost no useful information in it.