Posts

Showing posts from August, 2011

.net - Inheriting legacy COM architecture, is it any good? -

Our system looks like this: One or more applications that include one or several in-process COM Components are (s), which communicate with some hardware from a com server (hope is understood - please ask if they need explanation) due to the design decision This time the chime is lost, but I think: generates a serialized access to a single COM server hardware Does not. The OCX client makes application development easy. My questions are: If we want to do it again, will we work in the same way? What is the NAT analogy? Thanks for any comments or signs - R You have the same service (Managed H / W and Com Service). You are talking to the customer service (ocx). It sounds like a very simple client server and I think it's okay - if he does, then what he needs to do. Again, what about your goals in terms of architecting? Current architecture can not serve future goals (for example, you may require more flexibility in the client server call), so it may have to

JRockit Dump File -

I need a parameter to start JRKetcat JVM (what happens to generate dump files). Some- like- Dioamp or -XXNJrDump will be great. parameter -XXdumpSize: none for deactivating dumps in Jarokit

Alternative of Multiple inheritance in Java -

मैंने दो सेम बनाए हैं class BackPageBean {String backPage = null; ::} वर्ग सूचना संदेश बीन {स्ट्रिंग सूचना संदेश = नल; ::}} अब, यदि कोई क्लास बैकपेज परिचित है तो यह पेजबेन का विस्तार करेगा, या अगर उसे किसी तरह का संदेश दिखाने की आवश्यकता है तो सूचना संदेश बीन विस्तार होगा। वर्ग BackPageAware वापस बढ़ाता हैPageBean {} वर्ग InfoMessAware सूचना संदेश विस्तारित करता है {} someFunction () {यदि (theObject उदाहरण backPageBean) {prepareTheBackPage (theObject.getBackPage ()); } यदि (theObject उदाहरण के बारे में सूचना संदेश बीन) {showtheInformation (theObject.getMessage ()); }} अब समस्या यह है कि यदि मुझे एक बीन है जो कि दोनों पीओपीएजवेयर और साथ ही साथ सूचनावर्धक भी है, जैसा कि हमारे पास एकाधिक विरासत नहीं है, तो क्या होना चाहिए बस मेरी टिप्पणी स्पष्ट करने के लिए। बस की तरह डार्थ ईरु का कहना है कि आप दो इंटरफेस और दो डिफ़ॉल्ट कार्यान्वयन बनाते हैं। जब आपके पास बीन की ज़रूरत होती है तो दोनों व्यवहारों की ज़रूरत होती है, तो आपके पास यह क्लास दो इंटरफेस लागू होता है, लेकिन

Creating a "Heartbeat" or Windows-Service-Like functionality in Asp.Net -

I've heard Jeff and Joel discuss podcast, which they called "heartbeat" which essentially made something like this Having been running a Windows service in a website that does the same thing, I hope that in this way how to get some more information in how something will be implemented. Has anyone implemented anything like this before and what have you used for it? Thank you! I got answers in combination with locations. I did Jeff Atwood for Stack Overlaw and did something similar which is completely reusable and can be easily accustomed using IoC Tool. I've posted the full details

c# - Adding Datarow between Rows? -

How do I add lines between existing rows in a dataset? Thanks ; Sample: using the system; Using System.Collections.Generic; Using System.Text; Using System.Data; Namespace Console Application 1 {class program {static DataTable getDataTable} (Add "Docatable Table = New DataTable (); Table: Add column (" User ID ", typef (int)); (String); Add table column ("IceWomen", Typef (Bull)); Return table;} Fixed Detroit GetRow (DataTable Table, Int User ID, String Username, Bull ICEWM) {DataRow row = table.NewRow ( ); Line ["userID"] = user id; line ["sub The name of the yogi "] = username: line [" isAwesome "] = iiswam; return line;} static zero print tab (datatell table) {foreach (the datator line in table.Rows) {foreach (object value in line item array) { Console.Write ("{0}," val);} Console.Wrightite ();}} Fixed zero main (string [] args) {DataTable table = getDataTable (); Table. 1, "Juliet", is true)) A

How do I remove a substring from the end of a string in Python? -

मेरे पास निम्न कोड है: url = 'abcdc.com' प्रिंट (यूआरएल) मुझे लगता है: abcd / P> अब मैं करता हूं url.rsplit ('। Com', 1) क्या कोई बेहतर तरीका है? आप ऐसा कर सकते हैं: url = 'abcdc.com' url .endswith ('। Com'): url = url [: - 4] या नियमित अभिव्यक्ति का उपयोग कर: आयात फिर url = 'abcdc Com 'url = re.sub ('। Com $ ',' ', url)

Visual Studio: references in code not recognized? -

I have a solution in VS2008 (C #) that contains multiple projects. Repeatedly, and suddenly when Project B coding, I will not find references from Project A in class code ... It seems that I have created red squiggly lines under a variable type, however, the creation of the solution does not produce any errors Why do such behavior Is? I would recommend that you clean up your visual studio temporary files - often about project structures Confusion requires a new start. First of all, get the VS completely out and restart it. If the problem is still there, then your VS Find the cache folder and delete it, and then rebuild it. To help you find your cache folder,

asp.net - Alternative to Office Interop for document generation -

We are currently using Office Interop so that documents can be prepared from templates in Office 2003 (word, excel and powerpoint) Able to It seems that instead of being frowned upon (see) and it works fine, then I would be more than happy with a supported solution. There is no non-method to do this? Office 2003 only (no Office xml / Office 2007 compatibility pack is not allowed) ASP.NET needs to run a server side < Li> Word, Excel & amp; Powerpoint documents given from user. Dot,. XLT and .pot templates By changing some text at some points, it should be able to further customize the encodings. Name, address etc. Free or very low cost I am not able to increase purchase orders to change a working system on the basis that some people thought that this is a filthy hack; ) I'm not sure that there is a better way to do what I have posted as an answer to another question about automating the office but I think it Proper answer to this question (especially whe

Symbol Replacement in Ruby -

I have a map created by others like data structure: x = { "City": "London", "Country": "England", "Area": ​​"Europe"} I want to manipulate data in Ruby I To be able to make it a map, let me all ":" to "=> Is this a quick way to complete a line? my_text = 'x = {"city": "London", "country": = "Ruby_code = t.gsub (':', '=>') with #define:" England "," region ":" region ":" Europe "} # # Change: Ruby code as eval ruby_code # Now you Hash x ['city'] # => "London"

TWAIN Browser Plugin -

Is anyone aware of a good twin browser plugin to scan images and send it to a web app? If it includes facilities like deskwork, then it will be better thanks! Google met many commercial people and that's free I There are some very simple things and it really got to work with my Fujitsu FI-520 scanner.

ie8 webslice - How to create a Web slice with Search? -

Do anyone know how Bing's search works? I am trying to create a web slice (only available in IE8) made in search and I have read that the form is not allowed and neither Javascript is any help would be appreciated. You enter it on another page- relate the contents of a tag in this example javascript on slice.aspx Code is. & lt; Div class = "hslice" id = "MySlice" & gt; & Lt; P class = "entry-title" & gt; My active slice & lt; / P & gt; & Lt; A rel = "entry-content" href = "slice.aspx" /> & Lt; Div class = "login-content" & gt; & Lt; / Div & gt; & Lt; / Div & gt;

user - Django: The best practice to implement CRUD outside the contrib.admin -

I am currently developing a blog project using the post model, which will be used by many authors. I want to create an admin / control-panel interface where each author in the post can see the author's post list (hence he will not see posts created by other writers), edit, and many-them Remove said that: Django Administrator is not suitable for individual user profiles, each user will be able to view and edit, all other user profiles Suitable for an administrator who has to manage all users once. This means that a new CRUD system should be created - out of the contrib.admin interface. So the question is, is there any way to apply the CRUD to any existing technique / contrib.admin system? Or, why do I need to study / use? How can I apply it well (minimal effort)? Thank you in advance :) This is easy to do by tweaking the Django administrator This is the only reason to leave contrib.admin so you want Google for some recent articles about customizing the administr

VB6 executable icons -

I have a large VB6 project, which has many forms, classes, modules and user controls When I create a shortcut for the compile executable and choose "Change icon" for the shortcut, since then there are many icons that I can select. This indicates that there are many icon resources compiled in the executable. The first icon is the "normal" application icon that is being controlled by setting the icon form in the Make tab of the project settings. It is fine and does the requisite work The problem I have is that I do not know that other icons are being compiled in executable, they are coming. Is there any way I can take VB 6 projects or an executable executable and find out what icon resources are being set up in the project? I have checked a bunch of all forms and image lists and there is no symbol in any question. Any thoughts? Use the link talk add-in about the use of VB6 add-in manager, 6 Resource Editor says. Looks like a good place to check for mo

winapi - How to write a lightweight executable like uTorrent -

संभव डुप्लिकेट: ने अपने 270 केबी निष्पादन योग्य और छोटे स्मृति पदचिह्न के साथ मुझे हमेशा प्रभावित किया है, जबकि इसी तरह के औजारों के साथ प्रतिस्पर्धा करते हुए 30 गुना आकार का होता है। मैं अपने कंप्यूटर पर कई अन्य उपकरणों के बारे में सोच सकता हूं जो इस तरह के "दुबाराभावित" संस्करण का उपयोग कर सकता है। लिखने का प्रयास करने में कौन से तरीकों को एक काम करना चाहिए, ये कहें, 300KB के अंतर्गत एक चहचहाना ग्राहक? मुझे लगता है कि केवल भाषा विकल्प सी, सी ++ और असेंबलर हैं (क्या मैं सही हूं?)। क्या आप वहां चौखटे भी कर सकते हैं, जिसका आप उपयोग कर सकते हैं? क्या आपको एक्सई के छोटे रखने के लिए डेमो दृश्य से उनको नियुक्त करना पड़ता है? क्या ऐसा कुछ अभी भी प्रबल हो सकता है? मैं वास्तव में नहीं हूं Win32 प्रोग्रामर, इसलिए इस प्रश्न के कुछ हिस्सों का अर्थ नहीं हो सकता है। सुधारों का स्वागत है। आपकी राय में मेरा योगदान: कोई पागल रणनीति नहीं है शुरुआत में कम से कम: और उसके बाद पहली बुलेट को देखकर: सी, सी ++ और असेंबलर: सी ++, फिर सी, फिर असेंबलर।

c++ - Finding smallest value in an array most efficiently -

The array contains n values, and one of the lowest values ​​is the. How can I get the smallest value from the most efficient? If they are ordered, then you can not do much, but look at every one who N), and when you do, you will know the minimum. Pseudo-code: small = & lt; Biggest value & gt; // like element (lt; small) small = element was a better way to remind me: // like std :: numerical_limits for every element in the standard < Int & gt; Just start small with the first element: small = element [0]: for each element in the array beginning with <1 (no 0): if (element wrapped in the header as above. If you can keep your orange sorted as items, it will be (1) to find it, because you can keep the youngest on the front. It is as good as it is with arrays.

sql server 2005 - Strange "Invalid column name" error when executing SP -

We have a SP in which we create a query and then execute the query using exec (@select) Do call, where the SQL query contains the variable is in it @select . I have been requested to add a new column for the results. This new column returned by SP should not be returned in all circumstances, but only under a certain condition. Naturally, I added the following code to SP. If set up @conditionIsMet BEGIN @select = @select + ", 'compqty' = convert (varchar (53), di.qty)" END < P> It works fine till today, when a SQL exception with my app message is throwing, "invalid column name: compact". This is uncertain and the exception does not always throw. Executing SP in SQL Server Management Stew does not give any error If the column title is provided with 'compact' then the app should pick up the column, but it does not seem like ! Can anyone help? 'compqty '

c# - What steps do I need to take to use WCF Callbacks? -

I am trying to learn WCF. I have a simple client and server application setup and upon pressing a button on the client, It receives an updated value from the server My next step I am trying to update the client's value to callback to the server. I have inserted through many examples, and they are very big and confused. Is there someone who can give the easiest example of his implementation in C #? I look through the examples online and I do not understand what it is? Of course I can copy the example line from the line, but I do not like it because I still do not want to apply it if I want to do this in my code. Can someone help me with someone thanks Public Interface IMyContractClall {Operation Contract] Zero on-callback (); } [Service (CallbackCactText = Typef (IMIConnectCalback)) Public Interface IMI Contract {OperationCentrect} ZeroDoosoming (); } [Service marriage (ConcurrencyMode = ConcurrencyMode.Rentent)] Public class MyService: IMyContract {Public Zero DoSo

c++ - How to use DSP to speed-up a code on OMAP? -

I am working on the video codec for OMAP 3430. I already have the code written in C ++, and I try to modify the port / port some of it to take advantage of the DSP (SDK (OMAP ZOOM3430 SDK) I have an additional DSP). I have been running a small amount of data (~ 250 bytes), which tried to make a small port for loop, but about 2m times on different data. But communication between CPU and DSP is greater than the load gain (if I have it) I think this work is like customizing a code for GPU in normal computer. My question is, what type of parts will be beneficial? How to take care of such functions of GPU programmer Edit:. GPP application assigns a buffer of 0x1000 bytes The GPP application calls the DSPProcessor_ReserveMemory to reserve a DSP virtual address space for each assigned buffer, which is 4K size automatic Page is more than the allocated buffer for alignment. The total reservation size should also be aligned with a 4K page limit. The GPP application invokes DSPProce

gdb - Programmatic interaction with gdbserver -

The gdbserver program allows for remote debugging of programs. Generally speaking, a local copy of GDB is used to interact with remote gdbserver examples, and the program running under that remote gdbserver. My question is, are there customer implementations (RSPs) that allow GDB programs other than GDB programs? This document discusses the implementation of anyone, but this is the client side which I am most interested in. It supports the client and the server, but it is implemented in general, and so far there is not a mature library. I do not know about any client of GDB protocol. Why would you like one? For simple tasks (start; stop; checking of memory addresses) You can write very quickly with a scratch. For complex tasks (online piles, analyzing the variable etc.) you have to re-apply the critical parts of GDB; And it should not possibly be tried without any good reason. Also note that the GDB / gdbserver protocol is constantly evolving; There are provisions

java - '#' character before EL expression used inside a JSTL tag behaves strangely -

I have the following code to set up a userId variable: (set up userId in the first code ) & lt; C: set var = "userId" value = "(crust # $ {userId})" /> creates the following string: (Remote # $ {userId}) The following code works as expected, though: < Pre> & lt; C: set var = "userId" value = "(crust # $ {userId})" /> displays the following string (Crop # 0001). Why does '#' character prevent expression from string before expression '$ {string}'? Is there any work that I could not use to involve some place? Since JSF will use to return the user ID, I guess it is either a bug Or is expected behavior that is due to #. & Lt; C: set var = "userId" value = "(crust and amp; # 35; $ {userId})" /> & Lt; C: set var = "userId" & gt; (Custom & amp; # 35; $ {userId}) & lt; / C: Set & gt;

reading javascript alert value from xml -

I have a JavaScript function code where I want to alert. function msg (x, y) {tempstr = x.value if (tempstr.length & gt; y) {warning (c_cknowledgmentText); X.value = tempstr.substring (0, Y); }} Now I have an XML with the format: I want JavaScript code so that the message shown in the above alert can be read from the XML key name "c_cknowledgmentText". I hope this is clear about me problem. Actually, though you want to use XMLHttpRequest, you try to do with tempstr Are, though. function msg (x, y) {tempstr = x.value; If (tempstr.length & gt; y) {var req = New XMLHttpRequest (); Req.open ('GET', '/file.xml', is true); Req.onreadystatechange = function (aEvt) {if (req.readyState == 4) {if (req.status == 200) {var keys = req.responseXML.getElementsByTagName ("key"); (Var i = 0; i & lt; keys.length; i ++) {var key = key [i]; If (key.getAttribute ("name") == "c_cknowledgmentText") {warning (key.tex

c# - AddBusinessDays and GetBusinessDays -

मुझे 2 सुरुचिपूर्ण पूरा लागू करने की आवश्यकता है सार्वजनिक स्थैतिक दिनांक समय AddBusinessDays (यह दिनांक समय दिनांक, इंट दिवस) {// कोड यहाँ} और सार्वजनिक स्थिर ग GetBusinessDays (यह तिथि समय प्रारंभ, दिनांक समय समाप्ति) {// code here} O (1) बेहतर (कोई छोर नहीं) । संपादित करें: व्यावसायिक दिनों से मेरा मतलब है कामकाजी दिन (सोमवार, मंगलवार, बुधवार, गुरुवार, शुक्रवार)। कोई छुट्टियां नहीं, बस सप्ताहांत में शामिल नहीं है मेरे पास पहले से कुछ बदसूरत समाधान हैं जो काम करने लगते हैं लेकिन मुझे आश्चर्य है कि ऐसा करने के लिए शानदार तरीके हैं। धन्यवाद यही मैंने अभी तक लिखा है। यह सभी मामलों में काम करता है और नकारात्मक भी करता है अभी भी एक GetBusinessDays कार्यान्वयन की आवश्यकता है सार्वजनिक स्थिर दिनांक समय AddBusinessDays (यह तिथि समय प्रारंभिक तिथि, इंट व्यापार दिन) {int direction = Math.Sign (businessDays); यदि (दिशा == 1) {यदि (startDate.DayOfWeek == दिनऑफ़ वीक शनिवार) {startDate = startDate.AddDays (2); व्यापार दिवस = व्यापार दिवस - 1; } और अगर (startDate.DayOfWeek == Da

Actionscript 3 vs Haxe: Which to chose for new Flash project? -

I am in the planning stages of a new Flash Game project and wondering which language would be better to use? I have a strong understanding of Action Script 3, and have not worked with Hooks yet, but I have read the language reference docs and it looks like there are some features from my favorite languages ​​C # and Ruby. Then there are two parts to my question: 1) Can hex interop with flax components (SCC files)? For example, if I use Flash IDE for some control, can I import those controls and use them in hooks? 2) Is there any benefit for the hooks compiler? Or any gotchas? 1) Yes, no more. As the 2.03 hexaw can export SWC, this means that you can write your code in hooks, compile an SWC and then use SWC with Flash. Hocks does not support SWC input yet, only output (though I believe they are working on it). 2) There are advantages to using Handhete - unlike Adobe's compilers, hooks actually do some optimization during the compilation (it has been a major bone of cont

templates - django variable passing -

I have a page that I am rendering with Django called example.html. In example.html, I have some code that can be passed on to the MyObject page so that I can see it in the {{MyObject.Attribute}} Can I show? I know it's in urls.py, but I'm not sure how it works. There is a section of the tutorial ... .. which walks you through it.

.net - How to get service executable file path -

क्या नेट पर व्यवस्थापक निष्पादन स्तर विशेषाधिकार की आवश्यकता के बिना चल रहे विंडोज सेवा के निष्पादन योग्य फ़ाइल पथ प्राप्त करने के लिए कोई रास्ता नहीं है? (यूएसी को उपयोगकर्ता की पुष्टिकरण प्राप्त करने के कारण नहीं) यहां WMI का उपयोग कर संभव समाधान है: सिस्टम का उपयोग। प्रबंधन; स्ट्रिंग क्वेरी = स्ट्रिंग.फ़ॉर्मेट ("से पायनडेम चुनें Win32_Service WHERE name = '{0}'", serviceName); (ManagementObjectSearcher mos = नया ManagementObjectSearcher (क्वेरी)) का उपयोग कर (foreach (mos.Get () में प्रबंधन ऑब्जेक्ट मो) कंसोल। WrightLine (मो ["पाथनाम"]। ToString ()); } ManagementObjectSearcher को में ब्लॉक में लपेट करना सुनिश्चित करें क्योंकि यह एक संसाधन है और इसे ठीक से निपटाया जाना आवश्यक है। / P> मुझे यकीन नहीं है कि यह चलाने के लिए ऊंची अनुमतियों की आवश्यकता है, लेकिन इसे मशीन पर इंस्टॉल करने और चलाने के लिए WMI की आवश्यकता होती है। यह जांचने के लिए कि क्या WMI चल रहा है, सेवाएं स्नैप-इन खोलें और विंडोज मैनेजमेंट इंस्ट्रुमेंटेशन की तलाश करें। आ

ruby - What do you prefer for showing your local rails projects to friends? -

I develop my Rail applications on my local machine. Am I easily the current situation of my friends project? I have heard about the tunnel, but I am a poor student who seeks a free solution: -) Best Relationship P> Pre> And if you also need clearly also clearly then you can move from there.

svn - Import TFS History into Mercurial (hg) -

Has anyone ever had any success in importing TFS 2008 history into a new mercantile store? The only possible solution I have found so far is to use TFS -> SVN -> HG and then to use it, but I have not done it yet. This is a blog post that has changed many projects from a person converting TFS to mercury. Gone:

Time only pickers for .NET WinForms? -

There are many good dates for the Windows form, but I have not yet had any good time to find . / P> Any suggestions? Edit I think I should be more clear. I am talking about a good looking giver. We use a commercial control suite, and the default time picker looks out of place because it is very simple. The date picture has a property format that can be set on time. Be sure to set ShowUpDown to True. Infragistics for WinForms is very popular and has options for its DateTimePicker. ... MaskInput should be set to {time} Find the behavior you are looking for If you only set up FormatString property, then time will be displayed only if the control is edited Mode (when the cursor is in control). to

Different methods for type casting in ActionScript 3 -

इसमें क्या अंतर है: कार (कुछ ऑब्जेक्ट)। और (कार के रूप में कुछ ऑब्जेक्ट)। यहां इस विषय पर पहले से एक थ्रेड है, आपको इसमें बहुत सारे विवरण मिलेगा वहां।

html - How can I disable inherited css styles? -

I am creating a container with rounded corners using the following method: Div Goal {background: # CFFEB6 url ('tr.gif') No-repeat top right; } Div.rounded div {background: url ('br.gif') No-true to repeat; } Div.rounded div div {background: url ('bl.gif') Anyone left under repeat; } Div.rounded div div div {padding: 10px; } Now I want to use a div in my container: .button {border: 1px solid # 999; Background: #eeeeee url (''); Text-align: center; }. Button: Hover {background-color: # C4A2F2; } & Lt; Div square = 'round' & gt; & Lt; Div & gt; & Lt; Div & gt; & Lt; Div & gt; & Lt; Div class = 'button' & gt; & Lt; A href = '#' & gt; Test & lt; / A & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; However, in my nested div has inserted a div, the button has blue image in the cor

qt - How can I cross compile my Linux application to get a Windows executable in Linux? -

I need to compile my QT application in Linux. I have compiled my application with QT SDK in Linux and it Is working properly How do I create .exe for the same application in Linux? I have established Mingav in Linux and Qimeck, but I do not know how to proceed with cross compilation. How do I add QT like cross compiler like minzweep and quemek i am using suse linux i have gone too, but i can not find a clear picture of how to proceed further < / Div> I am not familiar with SuSE, but there are mingw32 packages in Ubuntu which are a window targeted cross compiler, open source win32api With: After a short search, it shows that its RPM, while it should be in your repository.

floating point - MATLAB - floor question -

मैं एक MATLAB शुरुआती हूँ यहां समस्या है: & gt; & gt; A = मंजिल (7 / 2.5) a = 2.00 & gt; & gt; बी = रिम (7, 6.2) बी = 2.00 & gt; & gt; सी = मंजिल (बी / 2) सी = 0 सी 1 होना चाहिए, है ना? यह क्यों है 0 ??? यह अलग है जब b = 2 सीधे इस प्रकार से दर्ज किया जाता है: & gt; & gt; बी = 2 बी = 2.00 & gt; & gt; सी = मंजिल (बी / 2) सी = 1.00 दो शब्दों में: truncation त्रुटियाँ । आप सही हैं, सी सही अंकगणित में 1.0 होनी चाहिए। हालांकि, चूंकि आपने रिम के तर्कों में फ्लोट का प्रयोग किया था, आपको जवाब एक फ्लोट के रूप में मिलता है। जाहिर है, बी बिल्कुल 2 नहीं है, लेकिन 2.0, जिसका अर्थ है कि यह 2 से बहुत करीब है। इसलिए, बी / 2 डबल 1.0 हो जाता है, जाहिरा तौर पर इस मामले में इसका मूल्य एक से थोड़ा कम है, आपको 0 देना है पूर्णांक मान यदि आप इसे रोकना चाहते हैं, तो फर्श और सीिल दोनों का उपयोग करें, और मूल्यों की तुलना करें। यदि आप जवाब को पूर्णांक में परिवर्तित करना चाहते हैं, तो बस फ़र्श के बजाय दौर का उपयोग करें।

Advantage of using a CSS framework -

I'm thinking of using a CSS framework because many web designers use it saying they Good, etc. But is there any real benefit to using the CSS framework or? Will this make my life easier? Do these frameworks consider the satanic Internet Explorer? Any insights will be useful. is included in many structures, which is a single stylesheet () that can present elements in multiple browsers Balance. Now, if you decide to use the CSS framework, you have to use it. I have only used really, and I should say that I enjoy it. The good thing is that your layout has been kept with a classname, which includes numeric values, which means that you can define a new layout for the program if you want - simple math, in many cases it's a complex layout Makes it very fast Nettuts said some time ago "." Do you need a framework? No, do they help? In many cases. At the very least, I encourage you to download and run it, and start using at least one from now. Example of 960 m

sql server - Average Logins per day SQL Query -

I have a user table in MSSQL and I want to know the average number of logins for all users per day? I'm thinking something with division, but not completely sure the user table looks like this [ID], [APPLICATION_ID], [LOGIN_NAME] [EMAIL ], [MOBILE_PHONE1], [MOBILE_PHONE2], [TITLE], [FIRST_NAME], [LAST_NAME], [birthday], [address1], [address2], [city], [country_id], [POSTAL_CODE], [PO_BOX ], [HOME_PHONE], [OFFICE_PHONE], [Fax], [comment], [DISPLAY_NAME], [MAIDEN_NAME], [address 3], [ADDRESS4], [keyword1], [keyword2], [KEYWORD3] KEYWORD4], [CREATED_BY], [CREATED_ON], [MODIFIED_BY], [MODIFIED_ON], [deleted], [DELETED_BY], [DELETED_ON], [version], [IDENTIFICATION_NO], [GENDER_REFERENCE_ID], [IDENTIFICATION_REFERENCE_ID] Registered], [contact_person], [conta Ct_email], [optional_email], [electronica_number], [LAST_LOGIN], [LAST_SUCCESSFUL_LOGIN], [LAST_UNSUCCESSFUL_LOGIN] By providing the table, there is no way to calculate the average. To do this, you will need a histori

c# - Ip address retrieving -

निष्पादन पर इस लाइन पर प्रदर्शित एक त्रुटि है: ((IPEndPoint) ( TcpClient.Client.RemoteEndPoint)) पता। the eroor है: एक nonstatic क्षेत्र, विधि, या संपत्ति के लिए एक ऑब्जेक्ट संदर्भ की आवश्यकता है System.Net.Sockets.TcpClient.Client.get ... इस त्रुटि का समाधान क्या है? कोड नीचे दिखाया गया है। // मान लें myList एक है अर्रेइलाइट आईपीएड्डर टेम्पपएड्डर = ((आईपीईडपॉईंट) (टीसीपी क्लाइंट। क्लाइंट। रेमटएंडपॉइंट)) पता; myList.Add (tempAddress); त्रुटि उत्पन्न होती है क्योंकि संपत्ति RemoteEndPoint TCPClient का एक उदाहरण सदस्य है। इसका मतलब है कि आपको रिमोटईन्डपॉइंट तक पहुंचने से पहले एक टीसीपीक्लाइंट (आपको "नया" करना होगा) प्रारंभ करना होगा। अगर आपको अधिक सहायता चाहिए, तो आपको कोड की अग्रिम पंक्तियां पोस्ट करनी हों ताकि हम देख सकें आप क्या करने की कोशिश कर रहे हैं।

msbuild - CruiseControl.NET Set Variable to a dynamic value -

There is no plug-in or CC. I want to pass some random value to MSBuild (a time stamp where some build reports may be included), all generated report files will be merged into the cc.net report by randomly designated DIR. The problem here is that I can not use the CCNetBuildDate + CCNetBuildTime environment variable, due to the format of CCNetBuildTime (HH: mm: SS), because: there is no valid character for the directory name. I can use them if CCNET supports 'replacement' by some other four (like '-'). I use the MSBilled Community Work & lt; Task, problem, is that I do not know how to return to the ccenet, in which random events of the report arise. I can not even use a labeller because we have rewritten the label and always labeled dummy (I know it is very bad and changes CNN logic, but at the moment I have no Option.) I can write a plug-in, but I would like to use it as a very basic technique as possible. Many thanks, Owenus You can not just work

php - How to pick a color to make transparent in images? -

The first question, please be gentle; -) I have written an image class that makes things simple (rectangle, text) a little easier, basically a bunch of wrapper methods for PHP picture functions. What I am now trying to do, allow the user to define a selection, and the following image operations are affected only by the selected area I thought I would copy the image and delete the selected area I do this, as the original image originates as usual, when $ img-> unselected () is called, copy the imgTwo back to the original, and delete the copy. Is this the best way? Obviously this would be difficult to define unselected areas in a selected area, but I can live with it for now :) Then, by the way I choose to copy I am drawing that drawing a rectangle in a transparent color, which is working - but I can not understand that choose when the color is being ensured that it is in the rest of the image Does not come. The input images in this application are true color PNG, so th

web services - Talking to a demo Exchange Server 2007 -

I would like to test a trivial soap app against the webservices of Microsoft Exchange 2007 (or 2010). Is there a demo server available on the Internet? My problem is, I do not have a 64-bit machine here to install a server for me. 2003 server, which is hanging around the office, is not suitable for my needs (Exchange Web Services) ... Does it hold an Amazon EC2 account and Is there a good solution to establish an exchange? You can give mail 2web.com a try, you can create a free exchange account, make sure You can not give them access to EWS. Or you can see the sites hosting those exchanges.

python - Importing database data into Joomla -

How to import data from the database for Joomla CMS? I have databases with a lot of data. I want to use it in my new website, an ideal solution for me would be a Python / Pearl / PHP API that will do basic routine for Joomla: Add / remove a section / category / content / menu / module; Change the properties of existing entities Try it: If that does not work for you, then maybe

mysql - How can I fix this scaling issue with soft deleting items? -

I have a database where most tables for tables are deleted flags, so the system removes soft items (so they For example, the administrator can not access it) I have some concerns when the table is very large, so that the overall speed of the system is being reduced. What can I do to oppose such effects? Is the index of the area deleted? Do I take the deleted data back to the same deleted table and take it back at the time not deleted? Do I spread data over some MySQL server over time? (On the basis of development) I appreciate any other suggestions or stories. Update: So the partition is going to be important for this, but only two "tables" will not be created for the partition, Along with one more deleted items will be one. Withdrawal split will increase over time, and sometimes it will slow down (and slow down over time) Should I worry about speed difference? Since I bring some (if not all) data from some key values ​​(some searches are on but th

c++ - How to hook webcam capture? -

I am working on a software that is a custom made device driver of a webcam in the current version, With our software, which changes the capture image before displaying it, it is similar to that of the UK. Actually, when any application that uses webcams, our drivers run processing in the frame before showing it. The problem is that "2" webcam is always installed, the actual one and our custom driver. I have seen that YouCam will need whatever we need, to hook up some method in any installed webcam which will show before each frame is displayed. Does anyone have to do this? We use VC ++. Thanks As bkritzer said, easily what you want. IplImage * image = 0; // OpenCV type cvcp capture * capture = 0; // Create OpenCV Type Capture Capture Capture = CVCaptTRAMAM (0); Emphasize (capture, "webcam can not connect"); // While capturing images (stilCapturing) {// Catch Image cvGrabFrame (capture); // retrieve image image = cvRetrieveFrame (capture); //

flash - Flex: given Class object, get the name of the class it represents -

In Flex, say I have a class object. For example: var clazz: class = string; Trace; // what I want "string" < P> flash.utils :: getQualifiedClassName is the job you are looking for ...;) Congratulations back2dos

svn - Some doubts on setting an C#/Asp.Net 3.5 application automatic builder server -

I want to set my server to automatically create my server to be committed to the SVN repo, then a Deploy on test / homologation server What I'm planning to do: Install a build tool (use nant? MSBuild?); Create a simple script and set a hook for SVN that starts the process of creation and deployment. To do this, what do I need to install on my server .NET 3.5 framework? Is Nain able to make our application based on our solution file (SSLN)? I did a little research, and Nantant's final release, v0.86 beta 1, does not include solution goals. Is there any other option to do this? Note that currently I only use the VS 2008 build system, and do not call MSBuild directly, is it possible and simple to setup on the server environment? We use to do this as mentioned earlier to support MsBuild (and Nant) We have used msbuild as a parameter in the form of a solution file and debug / release build configuration (we have created a deployment and woton configuration

ide - Delphi Package: "The following changes must be made..." never goes away -

my package, which was adapted from Save-As and edited using any other, I get the following message One of the (at Delphi 2007): ======= This package can be compiled before the following changes are made. Choose OK to apply these changes and continue to compile. Remove cmSizePanel_Reg. Unit (cm) cmSizePanel_Reg was found in the required package cmExtRzPanel_D2007. ======= I right click, and then makes earnings to compile properly. This message, however, never goes away - I compile the package every time. Here Right-click to get on, "the source View project source using": Package cmBaseFrames_D2007; {$ R * .res} {$ 8 align} $ claimed {} {$ BOOLEVAL off} {$ debuginfo on}}} on {$ IMPORTEDDATA on {$ EXTENDEDSYNTAX}} on {$ LOCALSYMBOLS on {$ IOCHECKS {$ {$ OPTIMIZATION the} at} {$ OPENSTRINGS on LONGSTRINGS} {$ OVERFLOWCHECKS off} {$ REFERENCEINFO at} {$ SAFEDIVIDE off} {$ STACKFRAMES off} {$ TYPEDADDRESS off}} {$ WRITEABLECONST {$ off RANGECHECKS on {$ VARSTRING

What are the best tools for the beta version of Silverlight 3? -

What is the best tool to develop when creating Silverlight 3 applications in beta? When I come out I want to make an easy change in the released version. I am coming along with the best wishes. Beta tools to work with the AGED version I have come to know that you really need combination and winning stuador to work (as opposed to flex, where everything is in an IDE). Looks very interesting.

uiimage - Which IPhone control would be better? -

I have a situation in which a user can control a single control, which shows random images, peeking under it , Double tap, mark it, or drag it to the box, where it takes the photos in the box if there is more than one box inside its body. I was using UIbuttons (with background image) and single / double tap for them, How to drag and snap into the box based on the cross-section of the cover area from the box? What if I use uiimage? I know that it is possible to draw an uiimage object, is it possible to double / single tap for uiimage? Yes, it is possible with UIImageView - as soon as you include any UIView descendants, which include UIImageView Can easily apply different touch methods.

cocoa - How to make a keyboard shortcut to close dialog with Xcode/Interface Builder? -

It looks very basic but goes here if you are keyboard-oriented, then you can close windows in OS X all the time Is used to use Command-W for I want to add that ability to the interface builder for my program. I can see how to add the same keyboard as a button action but what if I do not have any buttons? Should I add an Invisible Button and Shortcut to it? Clanky looks definitely is just some method I can override, but what I have tried is not working yet. when you press command + w , Then this file - & gt; The choice is similar. Turn off from the menu bar Close sends a message to the first responder. In return, it will check whether the receiver or receiver representative is implemented, and if it returns yes the window will be closed (otherwise, this code will close the method Will call). So in reality, it depends on what type of communication you will get? If this is non-modal (essentially, if you are running, you can access the menu bar) and this is an e

ms access - How do I convert the fields in one row into columns? -

I have a table like column: repair cost rate 12 repair 223 wear 1000 Wear 666 Fuel 500 Repair 600 Fuel 450 Wear 400 And I want this data as column (Repair, Wear, Fuel): Repair Wear Fuel 825 2066 950 How can I use an MS Access query? However for this there is a traditional SQL solution Given that MS Access has a statement that you should probably see and use to use it. I can [objects] [objects] from [objects] [items] from [objects]. [Objects] [items] from [items] [Objects] [fix] cost] PIVOT format ([item]. [Cost]); And it can get fantasy compared to this. EG PIVOT format ([item]. [Month], "mm") ("jan", "fur", ..., "november", "December");

command - Julmar WPF helper parameters -

I am using Julmr Helper classes for WPF so I can call on a custom event, an event on MouseEnter Text Box like this: & lt; Text box text = "hmm" & gt; & Lt; Julmar: EventCommander.Mappings & gt; & Lt; Julmar: Kmmandavent Command = "{Binding Data Kontentekst. Inkresekyuuuutiik Command, relative Sors = {relative Ssandandstor, Anstrar type = {x: Type Oitskantrol}}}" event = "Mausantr" / & gt; & Lt; / Julmar: EventCommander.Mappings & gt; & Lt; / Text box & gt; It works and calls the command, the problem is that I need to pass an object as a parameter, do anyone know that this is possible? The documentation looks quite light. Earlier I was able to pass the object as a parameter in this way: < / Code> But obviously I do not need this because it does not fire on mouse events Any help will be useful, thanks You can solve it with behavior-patterns, in fact you have two dependencies with one Mak

linux - How can I parse the output of /proc/net/dev into key:value pairs per interface using Python? -

The output of Linux looks like this: inter- Find | Transmitted face | Bytes packet errs Drop FIFO frame compressed multicast | Bytes packets errs drop fifo colls carriers have narrowed: 18748525 129811 0 0 0 0 0 0 18748525 129811 0 0 0 0 0 0 eth0: 1699369069 226296437 0 0 0 0 0 3555 4118745424 194001149 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 How can I use Python to parse this output into the key : Add value to each interface? I got it to use open scripting and there, but I need to use the python. This is very streamlined input and you can easily get columns and data lists by splitting each line , And then make a word about it. There is a simple script without regex line = open ("/ proc / net / dev", "r"). Readline () column line = line [1] _, received call, transmitcales = columnline. ("|") Receive = Map (Lambda A: "Recovery_" + A, receiveCols.split ()) transmitCols = map (Lambda A: "trans_"

java - Having hard time to publish files to Tomcat from Eclipse -

Sorry if my question seems dumb. I have started using Eclipse Ganymede 3.4 this week and have given tough times in publishing my projects on the web app server. First of all, you need to know this problem: I have installed my 6.0.08 template 6.0 from Netbeans for PHP and J2SE project. Although I can start that server with Netbeans or Eclipse, but it can not start manually for a few reasons, even if I am pointing my JAVA_HOME correctly to jdk / bin which is saying this It's a JR, it's a bit awkward but I can use IDE to go. I did some research on the net and found out that Eclipse does not publish on Tomcat. In fact, I can always develop by making a local copy on other drives compared to C drive where XP is installed and installed on a server installed on C. So, where I need to find a way to publish a template under Tomcat. Is this an easy way to do this? Please share your experience Thanks for reading Ps: I know that I can use Netbeans, but I use Eclipse Thank y

.net - Managing internal dependencies -

I'm having trouble finding out how to manage internal dependency by developing SDKs for me, for some reason I try to make it difficult to work with everyone. Say I have these classes: class table {table (string name, IQueryProvider provider, IComObject comobject) {}} class TableFactory {table buildlet (name) & Lt; - Creates a table object} The problem I have for me is that the BuildTable () method must create an IQueryProvider and IComObject and pass the name down. The work I did (if I understand it correctly) has been applied to the service locator pattern, but if I use something like this: BuildTable (string name ) {IQueryProvider Provider = ServiceLocator.GetInstance & lt; IQueryProvider & gt; (); IComObject comobject = ServiceLocator.GetInstance & lt; IComObject & gt; (); Table tab = new table (name, provider, commbased); Return tab; } It now means that I should have both IQueryProvider and IComObject in the service provider that makes my d

c# - Open Word Document in Browser with Inline Editing -

संभव डुप्लिकेट: हाय सब, क्या कोई मुफ्त उपकरण उपलब्ध है जो ब्राउजर के अंदर शब्द दस्तावेजों को खोलने और संपादित करने की अनुमति देता है। मैं एएसपी.नेट 2008 एक्सप्रेस आईडीई का उपयोग कर रहा हूं। धन्यवाद इसका समाधान समस्या पहले से मौजूद है आप सहायक हो सकते हैं।

iphone - Strange SQLite behavior -

I am inserting data into a table and SQLite3_step returns SQLITE_DONE. But sometimes there is no new data in the table! I have been adding data immediately after the check, even if here is my code:. sqlite3_stmt * addTranslationStmt2 = zero; If (sqlite3_prepare_v2 (database "translation" (lang1_wordid, lang2_wordid) inserted in values ​​(?,)? ", -1, & amp; addTranslationStmt2, zero) = SQLITE_OK {NSLog (@" Prepare statement error "); AddTranslationStmt2 = NULL; Return -1; } Sqlite3_bind_int (addTranslationStmt2, 1, word_id); Sqlite3_bind_int (Additional translation STM2, 2, translation_ID); If {NSLog (@ "addTranslationStmt2 error: '% s'", sqlite3_errmsg (database)) (sqlite3_step (addTranslationStmt2) = SQLITE_DONE!); Sqlite3_reset (addTranslationStmt2); Return -1; } Sqlite3_reset (addTranslationStmt2); If ([self-wordHasTranslation: word_id translation_id: translation_id]!) NSLog (@ "! And after all SQLite3_step returns SQLITE_

.net - Finding Available Time Slot C# -

We are building a slot booking system but slots are dynamic, which make live updates from the manuscripts. I have found this forum where we have a booking screen. I know that I have a space between an avalible day and time, for example 8 AM and 10 AM when I book a slot, I have a table for the job 1 will have 2 records and 1 for travel time. For example slot 8 pm-10 o'clock Time to travel = 20 minutes (8:00 am to 8:20 am at 8am) Job time = 30 minutes (Closing 8:20 am at 8:20 pm) This is then a schedule, Gantt scene, blindly, when we visit our time of travel and job hours Will be able to see as 2 blocks. So if any other appointment has been booked then the first appointment will start at 8 AM and will end at 8:50 am Can I see that there are no recruitments booked in this slot and if he has the last time If not, I do not have to set the time for the next job to start. The other problem - this may be the case I have an appointment from 8 a.m. to 8 a.m. and from 9: 30h

javascript - Algorithms for positioning objects in a canvas -

Where can I find some algorithms for moving some objects in a clever way in the canvas? I am using Javascript (with Raphael SVG Library), but examples of other languages ​​(or pseudo-language) are welcome. Geometry is not my strong point =) For example, 600x800 canvas is, and I want to place the size n in the smart ways 60x60, for example: - One . Conditions with an algorithm for position meters concentric sections, but an alternate - algorithm for the location m condensed o offset with circles With the commodities frequency (the result may be like a chess) And similar examples .. I'm just looking at some examples of work to be suited to my case. In advance, thank you =) for circle: Input: CenterPt (possibly 300,400 ), RadiusLargestCircle (possibly 270 to ensure your objects are RadiusDelta on all screens) 60 assures the objects are circles) circles (calculate the number of RadiusLargestCircle -2 * RadiusDelta Overlapping objects) / RadiusDelta For each

java - Finding integers that are divisible by 6 or 7 but not both -

itemprop = "text"> I am trying to write a program that represents the integer between 1 and 100, which is 6 or 7 divided by but not both . Here's my code: Import acm.program *; Public class problem 4 console program {Public running zero () (for (ii = 1; i & lt; = 100; i ++) {boolean number = ((i% 6 == 0) · (i% 7 = = 0)); if (num == true) println (i + "is divisible");}}} The above code shows the following answers: 6,7,12,14 , 18,21,24,28,30,35,36, 42 , 48,49,54,56,60,63,66,70,72,77,78, 84 , 90,91 9 6,98 Now the bold 42 and 84 are both divisbile by 6 and 7. Now if I type in the above code || I change from & amp; amp; , results are only 42 and 84. What should I do to delete these 2 numbers from the results? You have to show your status : Boolean number = (i% 6 == 0 || i% 7 == 0) & amp;! (I% 6 == & amp; amp; i% 7 == 0); It is basically not converting " but both " into Java code):

jquery for xml parsing -

I am trying to use jquery for XML parsing. The snippet of my XML is as follows & lt; Ex & gt; Some text here & lt; It & gt; Some texts & lt; / It & gt; Some more text & lt; This & gt; Text more & lt; / It & gt; Text lesson & lt; This & gt; Some other italics & lt; / This & gt; Go & lt; / Ex & gt; I want to tag this text inside and want to display my content as follows some text here & lt; I & gt; Some texts & lt; / I & gt; Some more text & lt; I & gt; Text more & lt; / I & gt; Text lesson & lt; I & gt; Some other italics & lt; / I & gt; Thanks You have good samples to begin, complete with a code sample:

svn - How to fix subversion password config? -

I want every time a person wants to check this project from SVN, it will be prompted for credentials . This happens when someone tries to do something, but not at checkout. Here is the svnserve.conf section: [normal] anon-access = none auth-access = write password-db = passwd I thought that By setting up an access, this is a username and amp; Password, but it does not look like how do I fix it? Why do I need to change? You have to set Auth-access = rw No checkout is written, it reads only. If you want your users to enter their credentials at checkout, you will also need to read the certified.

encoding - how to control charset of directory listing via .htaccess? -

I added public_html by enabling the directory list of a folder: option + index .htaccess file in. However, some files are not listed correctly by default, because some filenames are in Chinese (UTF-8 encoded) if the file name is changed to Ubuntu-8 encoding browser charset, Can I see the name How do I tell the file names in UTF-8 by default to the browser? Is there a parameter to add in .htaccess? I tried to add: AddDefaultCharset utf-8 In the .htaccess file but it does not change anything. thanks index options charset = UTF-8 < / Div>

java - How do I communicate with HTTPS? (Basic Stuff) -

I'm not even aware of networking in Java but what I'm trying to do is basically some threads Prepares to "talk" each other using HTTPS for security reasons. I am not sure about the terminology, so what I see is pointing in the right direction. Hopefully, this should be very easy for experienced Java networking programmers. I have tried to research myself, but there are several ways to do this (HTPS URL connection ??) I can save research time multiple times. Thank you! Actually the main category, but for simple uses you can actually do this: InputStream = new URL ("https://example.com"). Openstream (); Keep in mind that you really want to use HTTP for your application. See it, other protocols, or use raw SSL, can understand more, and related classes. Java RMI () may also be relevant. This allows remote methods to call Java methods, and security options are created in it if you are interested in that route.

cocoa touch - iPhone: Masking an UIImage via touches -

Before rolling my sleeve and before starting your own solution: Is there a way for a masking to touch through the image? Touch is marked yellow in my example: If there is no existing solution, then I will try to inspect Apple's Drawing Sample App Image To get some selection on I think you want to roll your sleeve.

cannot delete rows from a remote access database -

I want to delete a table from the Access database on the Web database that works fine on the test locally but the one The same question gives an error. Please do help me .... Maybe your rights on the remote Related disk where the access database is stored.

Error creating MySQL table -

I get an error when creating the following table: create tab event (id VARCHAR (0), Location VARCHAR (2) No, zero primary, primary title (id), title VARCHAR (100), title start, date, zero, expiration date, description, text, url VARCHAR (200), website VARCHAR 200) Foreign key (location) reference location (ID)); The error I get is: # 1064 - There is an error in your SQL syntax; To use 'nearby' on line 9, check the manual related to your message SQL Server version for the correct syntax I know that this error does with incompatibilities with syntax and MySQL version. Running, but I have checked every line and the syntax is correct as per the documentation. Am I missing something? Thank you in advance for all your answers. Try changing semicolon on line: Location VARCHAR (32 ) Naul; with a comma

javascript - preventing JS running when the page is not loaded -

I have encountered a problem when I use jQuery to load a page with heavy javascript The page is freeze. I believe that this JS page runs before loading because my local site is not stable. However, $ (document) .ready (function () {}); Not working with dynamically loaded pages? is it true? Or anything I can do to solve this problem. Thanks a million! $ (document) .ready () works fine dynamic pages There should be an error in your code. The first thing is to see the source and try saving the HTML in a plain .html file, then load that file your browser. If it still fails, then you know that the problem is server-side ASP / PHP / whatever the code is with nothing else until the problem disappears, to remove HTML and JavaScript try. This will help you reduce the criminal line (s) if you can reduce your page in a small file that still shows the problem, then post here and we will try to help.

c# - To handle exception with every form or just at main -

I have a question about handling exceptions, I have a Winform that is available on every form for data retrieval and processing Uses a webservice proxy. Here's where I was really confused and there was a lot of time to decide which one is better. Try displaying error messages for each call in a web service and allow the user to redo the process by clicking on the button again. B Since an error occurred on the web service and the error could possibly be because the web service was unavailable, just try the generic efforts in the WinMain function in the programm and show an error message that the web service is not accessible before the application closes. The main argument in this is that A is more user-friendly, but many attempts to catch code are needed. B code is easy, but only the application ends. I am leaning on A but I am trying to do a pure search with the options to reduce the code needed to write it to try. Any ideas? Understand the website call and try / bl

asp.net mvc - What's the most elegant way of using a partial view to render a comma delimited set of items? -

I must present a list of individual items in a comma-delimited format using partial view in ASP.NET MVC. My problem is that when the following code is used: & lt;% foreach (different person in the model) {%> & Lt;% = HTML.ActionLink & lt; PersonController & gt; (C => c.Edit (person.PersonID), Html.Encode (person.Name))%>, & amp; Nbsp; & Lt;%}% & gt; I get a backwards comma after the last item Do not be in the order Use javascript to remove tracing commas on the client side Use code instead of markup in partial view Make a list manually None of these options appeals to me - any thoughts? Thank you! How about: & lt;% = string Select .join (",", Select Model (person => HTML.exeLink; Personal Controller & gt; (C => C.Edit (person.PCNID), HTMLN.Code (Person.Name ))) .Oir ())% & gt; (untested)

sql server - Opening a new query window in management studio with prepared "select * from" text -

To create a new query I create SQLFile.SQL as "select from * select" to create a new template Is edited. But it seems that I still have a blank window .... What's the problem? If you can not get it to work, you can try installing Are there. It adds many functionality to the management studio, which I have used in the past and it was useful.

jQuery REplace Fade Effect with slide up /Slide Down -

Does anyone help me rewrite the code given below which uses the flade effect, a sliding effect I want to slide up and fade ("slow", function () {$ ("# pnlCostMetrics"). FadeIn ("slow"); slide below ShowCostMetrics () {$ ("# pnlGraph").}); } Function () {$ ("# pnlCostMetrics"). Fade ("slow", function () {$ ("# pnlGraph"). FadeIn ("slow");}); } In advance thanks Instead of fadeIn / Out slide ShowCostMetrics () {$ ("# pnlGraph"). SlideUp ("Slow", Function () {/ $ ("# PnlCostMetrics"). SlideDown ("Slow");}); } Function () {$ ("# pnlCostMetrics"). SlideUp ("Slow", function () {$ ("# pnlGraph"). SlideDown ("Slow");}); }

.net - Bluetooth in C#, Which stack, Which SDK? -

We found an application that should be able to use Bluetooth for the following requirements: Display all bluetooth devices in the range Send files to Bluetooth devices Scan for Bluetooth device and transfer files at the same time We use Windows A Running on Spi. I have seen something and it seems that 3 main piles: BlueSoleil On the BlueSoleil website, in your SDK section , It mentions only supporting 1 connection, which is clearly not good. Windows Only supports a Bluetooth dongle, which means we can not meet all our requirements. Widcomm Is Expensive and Possible? More complex APIs? idea? In the case of CD for C #, Franson was watching BlueTool, anybody used this API? Thanks Firstly the disclaimer, I'm the 32feet.NET library maintainer I am : -) I have just checked, and with the Microsoft stack (using a dongle) on XP, I can get two Obex PUTs simultaneously and can search for devices. It is using 32feet.NET's ObexListener class and

makefile - Strange Build Message from Linux Kernel -

I was trying to recreate my kernel after modifying some source files and the following message in the build output Note: Second: new modules (you are busy, erase peep from your nose) What does this mean? Is any other awkward waiting for me in the kernel? This error is a module checking script which is part of that build process for the kernel Ubuntu is actually in. Checks the script whether there are any missing modules with this build compared to the previous build. It is used to capture configuration settings, which inadvertently does not create any module (). Your message is an informational and no error, it means that there are new modules compiled in this build and there is no need to take any action on your part. Incidentally, if you are interested in seeing other inappropriate language in the Linux kernel.

python - django - convert a list back to a queryset -

इस सवाल का पहले से ही एक उत्तर है: < / P> 3 जवाब मेरे पास बहुत सी रिकॉर्ड हैं कि मैं एक गणना मूल्य के आधार पर सॉर्ट करना चाहूंगा। उत्तर मिला ... ऐसा ही है: सॉर्ट किया गया (Profile.objects.all (), key = lambda p: p.reputation) पर इस तरह एक प्रोफ़ाइल वर्ग: वर्ग प्रोफ़ाइल (models.Model): ... @प्रॉपर्टी डीएफ़ रिफ़ाइन (स्वयं): ... दुर्भाग्य से जेनेरिक दृश्य एक क्वेरी ऑब्जेक्ट की अपेक्षा कर रहा है और अगर मैं इसे सूची प्रदान करता हूं तो त्रुटि फेंकता है क्या ऐसा करने का कोई तरीका है जो कि एक क्वेरी या ... मैं एक किसी भी तरह एक क्वेरी के लिए सूची? डीजेंगो डॉक्स में ऐसा कुछ भी नहीं मिल सका। मैं डेटा को denormalize नहीं होने की उम्मीद कर रहा हूं, लेकिन मुझे लगता है कि अगर मुझे करना होगा। अपडेट / उत्तर: ऐसा लगता है कि एक क्वेरी वापस प्राप्त करने का एकमात्र तरीका है यदि आप अपने सभी तर्क को एसक्यूएल क्वेरीज़ में प्राप्त कर सकते हैं। जब यह संभव नहीं है, (मुझे लगता है) आपको डेटा denormalize की आवश्यकता < P> कोई क्वेरी सूची में वापस डेटा सूची

ruby on rails - Allow users to remove their account -

I am developing a gallery that allows users to post, comment, vote, and more. Now I feel that if the user wishes to cancel and delete all of his data it is correct. However, it is difficult to allow such a thing because you run the risk of breaking your application (for example, what should I do if multiple comments are given a comment? What should I do with those pages in which different Have many revisions made by users?). Photos can be easily removed, but for other data (i.e. comments, revisions ...) I thought there are three possibilities: Specify this as a user named "deleted users" Promote existing organizations (i.e. User ID) and only rename the user's data (ex. Assign a new username to "Deleted users-24" and a non-existent e-mail like "not-sent-user-24 @ msat dot com" When we allow users to remove their accounts What are the best practices for following them? How can you apply them specifically (especially in rail)? Ideal

design - Reasons not to overdesign a solution to a current problem -

G'day, I started thinking about thinking about this question here. What can you provide to those people who insist on blowing out designs because "they want to use it somewhere else in the future"? Similarly, what do you do when people take the requirements and then come back with many extra "bells and whistles" with bloated design, which you have not asked? When you know that this makes sense, then I can understand the detail of a design for requirements or possible uses which are present either in the near future and I only need a list of requirements Accepting and advocating to apply it clearly, what you think you can remember. I am saying that when people insist on adding or external functionality, so that "we can use it somewhere else in the future?" There are many good reasons for Wikipedia. The time spent is taken from adding, testing, or improving the required functionality. New features should be debug, documented, a