Posts

Showing posts from January, 2015

wpf - How do I databind to the control's property rather than the datacontext? -

There is a sub control embedded in my main control, it allows the user to edit an address. Because it is used all over again (sometimes in one control at many places) I bind it very much & lt; Control: EditDeser User Controller DataContext = "{Binding Path = Home Order}" /> & Lt; Control: Edit User Controller DataContext = "{Binding Path = Task Address}" /> But EditAddressUserControl requires access to the list of main control country listings, so that they can choose which country is from the address. I have added a Country Dependency Property EditAddressUserControl and added country = "{binding country}" so far Everything is recovering, EditAddressUserControl.Countries has the right countries in the property, however, how will I tell my combibox? How do imsmsource in xaml? I still want everything to bind my Datacentext to my EditAddressUserControl, but ComboBoxCountries.ItemsSource needs to be bound with "this count...

google news - Unique url for a wordpress blog? -

I run a WordPress blog. And I'm considering blogging by Google News, now Google Every website says the page needs to have a unique URL with at least 3 numbers. How should I do this? Is there a special plugin that will do the job? Regards, . .

linux - Best way for PHP5 CLI to formulate Base Directory? -

OK, I have a code base that is in a folder / my program / and it has many folders like / myProgram / Lib /, / my program / docs / and so on ... How, in PHP, before I / my program can go to any folders to locate and create a base variable So that I need to be involved in my writing and the written relative does not need to work in the window, I Zhe is the original directory / my program / root, Suite Directors, / path / to / allowed to keep their programs in some of my programs / etc? Only one * nicke environment is from all command line parser or executable scripts. I suggest using the relative path from the current file: Include (Dynamics (__file__). '/ .. / include / something.inc.php'); It may be difficult to change a directory name that can be changed as a profit, it should work on any system. You can do anything like this: // For MyProgram / include / config.php example: And then you can use the following: code> included (BASE_DIR / ./cla...

sql server - SSRS report showing number of appointments per customer per week (layout) -

I would like to create a report that shows the number of meetings per customer per week in a calendar type layout. I am using SQL Server Reporting Services 2005. To say for simplicity means we have only these two tables: Customers ID Name What is the most effective way to prepare a report with this layout? | Week # Customer | 1 | 2 | 3 | 4 | 5 | 6 | ... | 52 | Total --------- + - + - + + + + + + + + + + + + + + + - + Result one | 0 | 2 | 0 | 1 | 0 | 0 | ... | 1 | 4th b. 0 | 1 | 0 | 1 | 1 | 0 | ... | 0 | 3 casts | 0 | 0 | 0 | 1 | 0 | 0 | ... | 0 | 1st Caste | 1 | 0 | 0 | 0 | 1 | 0 | ... | 0 | 2 Edit: Remember that some years may start from week # 53. I misled all 52 (53) weeks, and counted only those people Where I put the test data. Hope you get this idea. Announcement @ Customer Table ([ID] Zero primary primary key, [name] nerve (50) is not blank); DECLARE @Appointment TABLE ([ID] Zero primary primary key, [customer ID] int null, [anytime] dat...

c# - In which cases are IEnumerable<T>.Count optimized? -

After using "itemprop =" text "> I have seen that method is a prerequisite for this case to optimize it when IEnumerable & Lt; T & gt; passed a really iconging & lt; T & gt; . . T & gt; this I think is that IEnumerable Based on the & lt started the code> can be used as a readable view of the collection, without performance loss, which I originally had to do with IEnumerable & lt; T & gt; Could be used without requiring the API's base. Optimizes calculation still when IEnumerable & LT; T & gt; Select the result of a more than a statement ICollection , but this case is not optimized based on the reflected code, and walk through all the elements Necessary. Do you take the same conclusions from Reflection? What could be the reason behind the lack of this optimization? I feel that a lot of time has been spent in this common operation. "text"> In fact it does not matter that selec...

java - Bug Running Android Tutorial HelloTabWidget under SDK 1.5: "setCurrentTag(getIntent())" -

does not compile actually: 1.5 also, this API, getIntent (), is already listed as excluded is. Error message I'm getting that getIntent () does not return a string, but setCurrentTab () is expected of a string If I think the line to read and Change: "tabHost.setCurrentTab (1); // was set to getIntent ())", then it compile, creates but does not run Does. I get the "unexpectedly closed" error message from the emulator. I can not even get log d for output, so it seems that it stops 'unexpectedly' long ago. So the first and foremost question is "tabHost.setCurrentTab (getIntent)" in the last line of On-Crelet ()? The second and the simplest question is whether I have been guessed to replace 'mTabHost' with the tabhost at one place in the right place? There are problems and improvements here for this special tutorial: Step 2: When creating your activities, if you do not make them through the manifest, you have to man...

python - Deleting attributes when deleting instance -

वर्ग ए: def __get (स्व): वापस स्वयं ._x def __set ( आत्म, y): self._x = y def __delete_x (स्वयं): प्रिंट ('डिलिटिंग') del self._x x = गुण (__ जाओ, __ सेट, __ delete_x) b = A () # यहां, जब b को हटा दिया जाता है, तो मैं 'बी' को हटाए जाने के लिए, यानी __delete_x () # को बुलाया जाता है (और तत्काल परिणाम के लिए, "डिलिटिंग" मुद्रित किया जाता है) डेल बी डेल स्टेटमेंट की शब्दार्थ वास्तव में स्वयं को उधार नहीं देते जो आप यहां चाहते हैं। डेल बी सरल ए ऑब्जेक्ट के संदर्भ को हटाता है जिसे आप अभी स्थानीय स्कोप फ्रेम / डिक्शनरी से इन्स्टिट्यूट करते हैं; यह सीधे ऑब्जेक्ट पर किसी भी आपरेशन को निष्पादित नहीं करता है। यदि वह वस्तु का अंतिम संदर्भ था, तो शून्य को गिरने वाली संदर्भ संख्या, या एक चक्र एकत्र करने वाला कचरा कलेक्टर, वस्तु को deallocated हो सकता है। आप ऑब्जेक्ट को एक __ डेल __ विधि जोड़कर, या एक कॉलबैक जो वांछित कार्य करता है जोड़कर इसे देख सकते हैं। बाद के दो समाधानों में से कोई भी एक महान विचार की तरह नहीं लगता है, हालांकि; __ डेल __ विधि कच...

html - CSS display inline items briefly show up as list-items when loading page -

I have a jcarousel that displays item inline. On loading, the items appear first (list) and then go to the normal inline position. I have found this on many websites and have trouble with it. Is there anything like this that can be done about this? Thanks You can change the CSS in the parent div or whatever container Your carousel is: # jcDiv {visibility: hidden; Height: 200 pixels; / * Adjust what should be your * / overflow: hidden; } and onload (window, not document): $ (window) .load (function () {$ ("# jcDiv"). Css ({visibility: 'view'});});

Deploying a windows service in production - .NET -

I have created a setup project for a Windows project that was written in .NET. This service depends on many elements in App.config which is different in the environment of environment in Dev environment (eg: path in folder) Now I have an MSI file Can be run in the production to install. However, how can I change the value of config elements? I'm not sure what the best practice is. This is not a best practice, but what I do, if you find it interesting. I make copies of App.config, let's call App.config.debug and App.config.production, and I just open App.config and other files appropriate and then copy / paste in the app Yes, it is not as ideal as the .config, and if you had the goal of more than one generation deployment, then surely would have to suck, but I did not find anything that I liked more. If you are using source control then you can choose to leave App.config out of it, because with my conference it is a copy of one of the other files.

javascript - Jquery - how to use $() -

How do I change the following javascript to use JQuery? document.getElementById ("ASC") removeAttribute (. "Href"); Document.getElementById ("asc"). Onclick = ""; I think I am using the code below, but it does not work quite previous> $ ('# asc'). Attr ('href', '') .click (function () {return false}). CSS ('text-decoration', 'underline'); The only difference I can see is that href The attribute is not actually being removed This will remove the attribute instead: $ ('# acc'). RemoveAttr ('href'). CSS ('text-decoration', 'underline'); If there is already a onclick handler, try it out: $ ('# asc'). RemoveAttr ('Href'). Etr ('onclic', ''). CSS ('text-decoration', 'underlined');

xml rpc - Wordpress XML RPC - Latest posts within Category -

I am using the Jobbes nat wordpress wrapper by Alex James Brown. This essentially makes all XML RPC calls available on the net. I am using GetRecentPosts (5) calls, e.g. "Hold the 5 most recent posts", but it gives everything from the whole blog. Do I just want to get the latest posts within class X? I need Gaterent Posts ("My Category", 5); Is it possible with the existing XML RPC API? I do not really want to resort to pulling down 20 allRecentPosts and then sub-filtering by category, because it will be so disabled, because I will be a site on the blog site to bring this site. Many thanks. I do not think this is a default XML-RPC method that does this though, Hook in the xmlrpc_methods filter (see below), you can add new methods, though this probably means that you have to add some code to your .Net cover. add_filter ('xmlrpc_methods', 'add_xmlrpc_method'); Function add_xmlrpc_method ($ methods) {$ methods ['foo'] =...

visual studio - Grouping of break points -

I am working on C # Window based projects in Visual Studio 2005. I often debug various features in this huge project. Now the problem is that I have made some break points in some places which I have to debug only for that facility. I want to disable other break points. I think this can not be used for a large community. What do I want to know, is there no way for the group break point in VS 2005, so when I debug that particular feature, I disable them Can i There is no facility in Visual Studio, although some time ago I had to give macros for some grouped functionality Had a clever use of Showing how to do this. Just a note, I do not help it in your current situation anymore.

forum - Which communities are good creative outlets for software development discussions? -

Stack overflow Q & A style is great for questions, but it is generally great for anyone to discuss software engineering Not on the stage. When you are not looking for a forum that has been designed to help the people of the problem, but just talking about design and development? I have a real life user group (never before), though). I do not know whether this would be a good answer or not. PS I have searched a lot for a similar thread. We have many other Q & A and resource sites covered, but I do not know that this is only for discussion. I have also searched myself online, but it is difficult to filter through all dead communities, which waste the web. help me! No joke. we rock. The point is getting a specific local user group in something more specific.

html - CSS + Javascript caching properly; wanting to prevent global page elements from redrawing -

I apologize in advance if this is a newbie question, at the moment, my main frustration / oblivion is to fully discover my special problem The logic leads to a misguided nature. I am using these a variety of rules to make sure that my css, css images, and javascript files are caching based on the answer of the header I got in my firebug net panel Believe that this method is working. A successful way of caching, from navigating the page from one page to another, is a way to prevent global site elements (headers, menus, etc.) from drawing. This event is beautifully expressed through the following sites: jessicahisch - dot-com is also a prime example. Note that after clicking on the section from the section, posting to post, anywhere (with the same global layout), just a fraction of the fresh / redraw page for that goal page There are unique items. Usually I find it browser -specificity (for example, Safari parodies this phenomenon quite well, regardless of the developers...

Use regex to add {} to a guid -

I have an XML file with a list of items: & lt; Item ID = "1B884B58-0C47-451B-956E-44866A7F3F91" name = "Home" Template ID = "BD5B78E 1-107E-4572-9DD-3F11F8 A7534 E "MasterID =" 00000000-0000-0000-0000-000000000000 "ParentID =" 70 A77564-8 D3F-45 9E-850F-FFC79CC97B38 "Created =" 2009-07-1712-12: 18 : 57.247 "updated =" 2009-08-14T14: 08: 38.970 "/> I need to run a regex that is essentially visible on each GUID, and adds curly braces around the grid, like {B884B58- 0C47-451B-956E-44866A7F3F91} There are multiple acceptable formats for GUIDs, but only sticking are specified by you With one: / ([0-9A-F] {8} - [0- 9AF] {4} - [0- 9AF] {4} - [0- 9AF] {4} - [0- 9A-F] {12}) / {$ 1} / g

javascript - Remove first character from a string if it is a comma -

I need to set the function in javascript to remove the first letter of the string, but only if it is a comma , . I've found the substr function but anything will go away from it, even if it does. My current code is text.value = newvalue.substr (1); text.value = newvalue.replace (/ ^, /, ' '); Edit: Test and true. It's just the way to do one , though.

Couchdb-like http access from a relational database? -

New security capabilities of couchdb means that you can share with your middle class and use your data directly from your customer. You can if data fit into an important value store What happens if your data requires a relational database? Is there a relational DB with equal abilities? Should I just listen to my DB server at port 80? Oracle 10G and Oracle 11G come together in embedded HTTP server Edit There is a brief overview of embedded PL / SQL Gateway in Tim Hall, which is part of XML DB implementation in 10G, on its Oracle -Business site in another example. They discussed native PL / SQL Web services in 11G. .

asp.net mvc - Textbox validation in MVC2 -

I've added the required attribute for one of the properties of the model class - [required (error message = "user id should not be blank")] [DisplayName ("username")] public string username {get; Set; } Inside my view, which inherits the class of properties above, I have tried to apply validation in a text box as follows - & lt;% = Html.TextBoxFor (model = & gt; Model.UserName, new {@class = "login-input", @ name = "UserName"})%> & Lt;% = HTML.ValidationMessageFor (Model = & gt; Model.UserName)% & gt; But when I run this app, clicking on a button without clicking on the button; Do not I get the text box valid? Can anyone tell me what is the reason that the text box verification can be stopped? / Strong>. Model => User Name> for model User Name

Adding linked server - SQL Server 2005 - Changing the name later -

I am developing a web application in test environment with a SQL server and database I currently add a linked server I am using and using [server name] to access the database and tables in the linked server. [Database name] DBO [table name]. But it will change after motivating the production of DB server name. What is normal practice? Thank you. The name of the link should not be the same as the actual target server name. Easy solution is to use the same linked server name on both development and production servers, just link to different real servers A development server can actually link itself to, for example.

Ruby - Mechanize: Select link by classname and other questions -

I'm currently looking at a mechanical gadget. I am very new to Ruby, please be patient. I have written a small test: 'rubygems' is required 'mechanize' agent = WWW :: mechanize. New page = agent.get ('http://www.google.de') pp page.title google_form = page.form_with (: name = & gt; 'f') google_form.q = 'test' page = agent Submit (google_form) pp page.title page_links = Array.new page.links.each do | Ll Page_Link & lt; & Lt; Ll finally puts page_link. Size This works but not only the search results in Page_Link , including log in, pictures, Google links like ... result one The relation is with the stylus "1". Is it possible to select only links with class == 1? How do I get it? Is it possible to modify "Agentius"? If I'm the owner of a website, which includes Google Analytics or something, then on which site will I be able to see the GALActor with mechanized? Can I select elements instead of...

Can you set a asp.net web user control property using jQuery? -

You can set an ASP.NET Web User Control property using jQuery itemprop = "text"> I do not think it is possible, because the control properties are evaluated before the PreRender step. Each property created by JQuery occurs after the page, so it's useless.

c# - Add elements from IList to ObservableCollection -

I have an observation resolution, and I want to set an ILI content on it. Now I can just create a new instance of the collection ..: Public Supervision column & lt; Bars & gt; Obs = new inspectory collection & lt; Bars & gt; (); Public Zero Fu (IELIT & Lt; Bar & gt; List) {obs = New Observational Collection & lt; Bars & gt; (List); } But how can I actually take the contents of the IList and add it to my existing Observe Collection? Should I have a loop on all the elements, or is there any better way? public void Foo (IList & lt; times> list) {foreach (var alm in the list) obs.Add (elm); } you can public void Foo (IList & lt; Bar & gt; List) {List. ToList (). ForEach (obs.Add); } Or as an extension method, public static Zero AddRange & lt; T & gt; (This observation: collections & lt; T & gt; collections, IEnumerable & lt; T & gt; items) items.ToList () foreach (collection.Add). }

sql - Small Php and MySql problem -

I have an array of id: s, and id: s is in this format: Bmw_330ci_89492822 So this is a string! Now, I have this code which is in that array, in MySQL: ( $ solr_id_arr I have the above mentioned array, it has string id: s) ex: $ solr_id_arr [0] output BMWA 303066_89492822 $ Solr_id_arr_imploded = implode (",", $ solr_id_arr); $ Query = "SELECT * my_table from where ad_id IN ('$ solr_id_arr_imploded')"; $ Qry_result = mysql_query ($ query) or die (mysql_error ()); The problem does not work because (I think) that to find the match of MySQL, there should be quotation around each inherent element. Fields in MySQL I'm matching Varchar Here $ query is: SELECT * my_table to WHERE ad_id IN ('Bmw_m3_cool_565440282, BMV_M 5_839493889') Do you have any other solution for this, I only need to find matches in MySQL which is in this array! Thanks Do not cover the entire object in quotation marks Is where ad_id 'bmw_...

php - array_combine stuck when there is no value in first array -

I am using array_combine () , but this error displays when the first time There is no value in it. First Array distance_are array ([0] = & gt;) School_ID_air array ([0] = & Gt;) and $ coverage using $ array Array = array_combine ($ School_ID_Array, $ Distance_Array); The coverage_array array ([] = & gt;) I think in the first array, if a value is empty, coverage_orize key accepts any default key If you use these conditions: {class = "post-text "Itemprop =" text "// Some codes using $ some_var_or_array value (s)} UDATED here The function is ArrayCombine (), which receives three parameters: two arrays and third - Default parameter value will be set to the array values ​​before the empty or nulled: function ArrayCombine ($ array1, $ array2, $ default = 0) {foreach ($ array1 $ key = & Gt; $ value) {if (! Isset ($ value) || Empty ($ value) {$ array1 [$ key] = $ default; }} Return array_combin ($ array1, $ array2); } Here the exampl...

asp.net - Long running HttpWebRequests -

I have an asp.net web application running on IIS6 server. This application is making potential long-term calls to an XML service on a remote machine. Long-term solution calls for making asynchronous calls (sometimes up to 4 minutes) for some service calls on the remote machine, but as a short-term solution, we call the timeout and the overall httpRequest time Want to increase My fear is that with the long running, filling the call request queue and preventing the "normal" page request will stop. How can the server, IIS, and application settings be tuned to solve the problem? Currently there are about 200 page requests / minutes and result in 270 service requests / minutes. Current execution timeout 360 (6 minutes) The time for the current service call is 2 minutes This article on Microsoft's Knowledgebase has some of the information you may have: * I have done some research about some specific items in the article which I have done above. The info...

SQL Server: what can a stored procedure do that a user defined function cannot? -

Can you please tell me that when there is a UDF then what is the need for stored functionality? Closed above my head, a stored procedure can do the following tasks, which UDF can not do: 1) Modify data 2) Set the results to a client 3) Do non-deterministic activity

How can Ruby on Rails help to embed video to the pages? -

Is there a helper (perhaps, an interface for some other video embedding framework) which can be given the file name file) And then HTML / Flash / will show some other original video player? This should not be an interface for YouTube or something like this I am developing the video that must be hosted on that server. You can check this app to be a starting point to know what you want .

Using android gesture on top of menu buttons -

What I want is an option menu where the user can choose to navigate between the menus: To touch a button and then select it on trackball Attract predefined gestures from gesture builder As it stands now, I made my own Gesture with OnClickListener and the button with GestureOverlayView After this I select to start a new activity , depending on whether a pressed button was used or gesture, however, when I try to make a gesture , Then it is not raised. Only pressed buttons is recognized. The following is my code: Expands the public class menu activity OnClickListener, OnGesturePerformedListener {@Override Creates the bundle saved instenestate {super.onCreate (savedInstanceState) on Public Zero; SetContentView (R.layout.main); // TextToSpike Make myTTS = New TextAutoPike (this, this); MyTTS.setLanguage (Locale.US); // Create gestures mLibrary = Gesture Library. From RRR resources (this, R.O.G. If (! MLibrary.load ()) {finish (); } // Click set listeners for all buttons ...

moss - Sharepoint SPUserField -

Whether SPUserField can be bound to a field without the SPUserField in a custom aspx page (it always asks for the field name ). I basically have a custom page, which eventually creates a list item, I want the user to be able to pick another user from the shareware control standard ... Thx In this case, you control the Microsoft.SharePoint.WebControls namespace You can use. For example, in one of your pages: & lt; Wssawc: Allow PeopleEditor = empty "id" = "allreviewers" runat = "server" SelectionSet = "user" width = '500' />

c# - TreeNode Forms to WPF conversion -

I have been given the task of converting a form application to WPF. The application is from TreeNode which is from System.Windows.Forms.TreeView . I know that WPF has TreeView but I can not find TreeNode , for this there is a direct conversion to WPF from the form? This is

Visual Studio Macro to Indent C/C++ Braces -

We have an old project that we maintain which uses brace indentation every time I switch projects Instead, instead of changing my visual studio options, I want to be able to do it quickly and easily. I am trying to write a macro in Visual Studio to turn bras indenting on and off. The checkbox is in the text editor -> C / C ++ -> formatting Indentation: Indent braces This does not work: DTE.Properties ("TextEditor", "C / C ++"). Items ("IndentBraces"). Value = true I think "value does not come within the expected range." Any ideas? I can not find anything on this. I have found that this is the right macro code to perform this task DTE.Properties ("TextEditor", "C / C ++ Specific") Items ("IndentBraces"). See value = true : "" which is only lightweight in this situation, but I got enough clues to find it.

sifr3 - sIFR links lose focus in Firefox 3.6 after scrolling -

I have seen this issue in earlier versions of Firefox, after which the sIFR link becomes inactive after scrolling and clicks for it Required to be re-linked, the fix for this was quite straightforward and you just need to add 'fixfocus: true' in SIFR config. Unfortunately, when I had upgraded to Firefox 3.6, it was not fixed. I'm just thinking that someone else has come over it and knows if there is any sort of solution, we use the sIFR link in the load of our sites, so this is a very bad bug! Thanks in advance if anybody can help * Updates - It seems that in addition to using Wmode: 'Transparent' - if I fix it If I do, then fine focus works again. Still there is a problem because most of our contacts should be transparent Yes, this is a Browser Issue, and now is an old one. There is no better solution available in SIFR.

Top X-posts of the past week? SQL/PHP [figured it out] -

How do I get the top x posts of the past week? I have two tables: td_table - keeps information about the post; Vote_table - Keeps information about the votes made for posts. The following gives me the top three posts (for whom the most votes are), but it gives me three times at the top. $ query = 'SELECT t.id, t.content, T.userid, t.time fROM tb_table, (SELECT *, count (*) as voted_id ORDER by VoteTable group Is numbered by) u ou u.vote_id = t.id LIMIT 3 '; I tried to use something like this: SELECT * FROM vote_table WHERE t.time & gt; But whenever I add such a condition to the above query, it either dies (if I add it to choose from the VoteTotal label)) or this is an empty page load (If it is and where the situation is last) ... So ... how can I add those people? Call all information from the query, but only those voters who have been made for the last week? understand it! By using _time & gt; = (UNIX_TIMESTAMP () - ((60 * 60 * 24) * 7))

css - How can I create columns in Html/MVC? -

I want to create a column of links in an MVC2 view, such as: AmbbenciodeJack I can make a line row in the line, to make certain maths which item should be in the row, or I can create table per column, but I hope That's an easy way to do this there. What? P> There is no table to use CSS for this.

linq - Is it possible to construct a stringbuilder using a lambda function instead of foreach? -

संभव डुप्लिकेट: मेरे कार्यात्मक प्रोग्रामिंग नोनिजन को माफ़ कर दें, लेकिन क्या स्ट्रैन्बिलिल्डर ऑब्जेक्ट में प्रत्येक स्ट्रिंग को जोड़ने के लिए लंबा फ़ंक्शन का उपयोग करना संभव है? क्या यह कोड चालू करना संभव है: // स्ट्रिंग [] त्रुटियां = ... स्ट्रिंगबिल्ल्डर sb = नया स्ट्रिंगबिल्डर ("& lt; ul>"); विदेशी (त्रुटियों में त्रुटि) {sb.AppendFormat ("& lt; li> {0} & lt; / li>", त्रुटि); } Sb.AppendLine ("& lt; / ul"); वापसी sb.ToString (); इस तरह से कुछ में: // स्ट्रिंग [] त्रुटियां = ... स्ट्रिंगबइल्डर एस.बी. = नया स्ट्रिंगबिल्डर ("& lt; ul>"); // मुझे पता है यह सही नहीं है, मुझे कोई वापसी मूल्य त्रुटियों की परवाह नहीं है। सभी (s => sb.AppendFormat ("& lt; li> {0} & lt; / li>", s)); sb.AppendLine ( "& lt; / उल"); वापसी sb.ToString (); किसी भी सुधार के लिए धन्यवाद! मैंने परीक्षण नहीं किया है यह, लेकिन कुछ जैसे निम्नलिखित कार्य करना चाहिए ... वापसी ...

c# - Linq to SQL datacontext not updating for foreign key relationships -

I am writing a database test against a repository that uses L2S in my database with a manifest unit and a allocated tradespeople unit. The assigned transaction unit has a foreign key for the ID of the manifest: DDL looks like this: manifest : id - int - identifying allocateTransaction: id - int - identifying quantity - integer ManifestId - FK To appear, In my trial, I see whether allocated transactions are coming back with the manifest or not. The test looks like this: [New TransactionScope (using the new data.EZTracDataContext ()) using {{Data.EZTracDataContext] {Test} using the public Zero FindByIdTest () {} ) {Data. Manifest manifest = _testDataProvider.AddManifest (datacontax); Data Approved transaction Edit Allocated transactions = _testDataProvider.AddableabilityAllocated (dataContext, 5, manifest.Id); ManifestRepository Repository = Create Repository (Datacontax); Var real = repository FindbyID (Manifest.Id). Allocated Transaction; Var is expected = new [] {new doma...

Parse HTML in Android -

I'm trying to parse HTML in the HTML from the webpage, and since it is not a well-formed webpage, I get SAXException . Is there a way to analyze HTML in Android? I just had to face this problem. I tried some things but settled on using it. Jar is about 132, which is a bit bigger, but if you download the source and take some of the methods you will not use, then it is not big => Good thing about it That it will manage the badly created HTML Here is a good example of their site. file input = new file ("/tmp/input.html"); Document doc = jesop.fr (from input, "UTF-8", "http://example.com/"); //http://jsoup.org/cookbook/input/load-document-from-url/ Document Doc = Jsoup.connect ("http://example.com/") .get (); Element content = doc.getElementById ("content"); Element link = content.getElementsByTag ("a"); For (element link: links) {string linkHF = link.ttR ("href"); String link text = link.text ()...

c# - What variable type should I use to save an image? -

I am going to save images in a SQL database (do not know what kind of use there), and I what type of variable should I use to store this image? using the system; Using System.Collections.Generic; Using System.Linq; Using System.Text; Namespace Nana_s_Student_Gradebook {class student {The name of the public string {get; Set; } Public string lastName {get; Set; } Byte [] Picture {get; Set; } Public Date Time Offfall {Received; Set; }}} Any guidance please? :) On the SQL Server side, by all means, using a VARBINARY (MAX) Type - it's binary, it's size up to 2 GB, it's fast, this is perfect for the case, up to an average image size of approximately 1 MB, this is probably your best bet - SQL Server 2008 is even better than using the FILESTREAM attribute (which you have a really big image, bigger, bigger is 1 MB on a regular basis Here, the binary file itself is stored in the database of the server machine's file system in the database control.) In your....

jsp - Dev server for Java, like VS has for .NET? -

I am currently competing in learning a Java, but I normally have one. NET developer (so please forgive my novice questions.) In I, ASP can develop net pages without using IIS, because it is an underwater web server ( Cassini, I think it is called). Is something similar to Java or Java IDE, so I can write and test the JSP and Java servicelet without the need for a fully developed api server (tomek etc)? One addition, does it work on Windows? Actually there is not a full brown applicator; simply is a servlet container (I.e. only the implementation of the web component of Java EE API only) it is only around the large, and full can be called "full brown apersarver" as a Java EE API implementation. You may also consider there is a small mark in it (only download) and should be used as an embedded server May be even runnable. As an IDE, both tomatoes and jetties are supported in "" by default. You can easily integrate them into server and then ass...

web services - JIRA SOAP createIssue from C# -

Does anybody have trouble with the reaction of the Jicasa method? The problem is, the method returns an empty attachment name node: & lt; AttachmentNames soapenc: arrayType = "soapenc: string [0]" xsi: type = "soapenc: Array" /> Which is actually okay, but then the RemorteIssue object deserialization fails with it: Error in calling JiraService, create method Issue XML document (1 , 802) has an error. The specified type was not recognized: name = 'string', namespace = '', but RemoteISE's part looks like this: [System.xml.Serialization.SoapTypeAttribute ("RemoteIssue", "http: //beans.soap.rpc.jira .atlassian.com ")) Public class RemoteISE: Abbasereremontity {/// & LT; Comment / & gt; Public Remoteversion Affects; /// & lt; Comment / & gt; Public string command; /// & lt; Comment / & gt; Public string [] attachment name; /// & lt; Comment / & gt; Public Remote Component [] C...

sql server - Changing database version in Visual Web Developer 2008 -

Using Visual Web Developer 2008, which comes with SQL Server 2008 by default. Is there a way to convert SQL2008 database from Visual Web Developer into SQL2005 version? Cheers SSMS Edit: You do not have an SSMS (Why not?) You can also issue this command to set the compatibility of the database in SQL 2005. ALTER DATABASE [DATABASE_NAME] SET COMPATIBILITY_LEVEL = 90

SQL Server: table variable used in a inner join -

What is the problem with SQL Can not use table variable in JOIN clause ? error message "message 170, level 15, state1, line 8 line 8: 't1' has the wrong syntax." @t table (Please declare _SportName) Include Varchar (50), _ long varchar (3)) @t values ​​('basketball', 'England') - Update in English TblSport t1 SET t1.SportName = @ t._SportName Join INNER tblSport ON (t1.Lang = @ T._Lang) Thanks. For your last statement: update t1, temp SET T1.SportName = temp._SportName FROM TblSport Join AS T1 INNER @ AAS temporarily t1.Lang = temp._Lang (requires exact syntax check)

ajax - javascript restricting? -

Is it possible for Java's libraries to be able to manipulate domes? IM is trying to create a system in which there is a main system with API that will be capable of manipulating the dom and then I want to give the ability to create third party scripts, but only the API Function. I will suggest you to view the project. To allow Caja websites to be safely secure for a wide range of flexible security policies, use an "object-capacity security model" using widgets and third-party Also allows to embed web content.

vb.net - importing mysqlclient in visual basic.net -

How can I import "System.Data.MySqlClient" into Visual Basic .NET? When I type that code, it underlines the code and there is an error in the undefined namespace. How will i do Download and connect to the latest Net. . Add MySQL.Data to Visual Studio in your project reference (menu: project, property, context). Code!

.net - System.Exception vs System.SystemException -

सिस्टम। एक्सपेस्टमेंट बनाम सिस्टम। सिस्टम एक्सैशमेंट एक सिस्टमईक्सप्शन आमतौर पर उपयोग करने के लिए .NET रनटाइम / फ़्रेमवर्क के लिए आरक्षित है, और आपका एप्लिकेशन कोड नहीं। असल में, अपने खुद के कस्टम अपवाद वर्ग बनाते समय SystemException से प्राप्त न करें। यदि आप अपना अपवाद वर्ग बना रहे हैं, तो आप उन्हें अपवाद या ApplicationException से प्राप्त करना चाहिए। ApplicationException मूल रूप से गैर-फ्रेमवर्क अपवादों के लिए उपयोग करने के लिए अभिप्रेत था, लेकिन यह क्रमबद्ध तरीके से गिर गया है। मेरा मानना ​​है कि फ़्रेमवर्क लेखकों ने अब अपवाद अपवाद क्लास से अपनी कस्टम अपवाद प्राप्त करने की सलाह दी है।

c++ - Where is pointer metadata stored? -

Maybe I'm looking somewhat, but where is the indicator metadata stored? For example if I have 32-bit int pointer ptr and I execute ptr ++ , then it knows to advance 4 bytes in memory. However, if I have 64-bit int pointer, then it knows to advance 8 byte. So what type of pointer is ptr and where is it stored? You can limit it to C ++ for simplicity. It is not stored anywhere, per-to-compiler sees the type of PTR and + operation Converts the growth of the correct number of bytes to increments.

php basic array question -

I have a problem getting the value of the last entry ID from the theory. I did a few research and I came to know that the following works: Should: // save store store now = new store (); $ Store- & gt; Url = $ this- & gt; Form_validation- & gt; Set_ ('website'); $ Store & gt; Save (); $ Store_id = $ store- & gt; Identifier (); Echo print_r ($ store-> identifier ()); return array ([id] => 1000034) How can I just pull the value (1000034) Out of the array and set it in a variable which I can use elsewhere? Your $ store_id is an associative array with the same name as "id" Value is applied to: $ id = $ store_id ['id'];

How to remove directory window and add a cscope window in Emacs ECB? -

Yesterday I installed the ECB on my AMACS, and I find the method window and the history window are quite useful. But the Directory tree window and the source window are less useful, if I hide them, then I will save more space for the method window and history. Another problem is that I use cscope to search for definitions and callers through the project, the result of cscope is divided by dividing the main window into two. I would like to know that it is possible to set cscope results window in the window like CCB window like window and history window? Many thanks. ====== ========= Thank you for the synthetic and ACB documents, in the end I prepare a layout with a fixed cescope. . I'll post the code here because it will help other people. (requires ecb) (ecb-layout-define "my-cscope-layout" left nil (ecb-set-methods-buffer) (ecb-split-ver 0.5 t (Ecb-set-history-buffer) (ecb-split-ver 0.25t) (other window 1) (ecb-set-cscope-buffer)) (ATCB-window-DCTECT ECB-s...

swfupload - Other ways to check the file size before upload -

Is there any other way that I can check the size of the file before uploading? The requirement is that if the file exceeds the limit, do not submit the form. If it is not, then I will have to upload simple using the form and I do not need to upload the file at all using Flash. Is there any other way that I can check the size of the file before uploading Am I The size of the file, not in JavaScript.

Codebase of Eclipse using generic -

Do anyone know that when Eclipse is planning to move its codebase to 1.5> (i.e., general and annotation?) To use)? Latest plans for upcoming stills: Most Eclipse SDK is the "pure" Java code and there is no direct dependency on the underlying operating system. Therefore, the main dependency is on the Java platform itself. Components are targeted at specific classes of operating environments, their source code is required for reference references available in their special source libraries (like J2ME Foundation 1.1 ), J2SE 1.4 , Java 5 , etc.). In general, the eclipse project's 3.6 release has been developed based on a mix of Java 1.4> , Java 5 and Java 6 VMs .- As such, the entire eclipse SDK is targeted at all, the modern, desktop Java VM. Most functionality is available for 1.4 level development everywhere , and extended development capabilities are made available on those VMs that support them. So long as they want to support platforms...

How can I read PNG Metadata from PHP? -

यह है जो मैंने अभी तक किया है: & lt;? Php $ file = " 18201010338AM16390621000846.png "; $ Test = file_get_contents ($ फ़ाइल, FILE_BINARY); गूंज str_replace ("\ n", "& lt; br & gt;", $ परीक्षण); ? & Gt; आउटपुट मैं क्या चाहता हूँ, लेकिन मुझे वाकई केवल 3-7 लाइनों की आवश्यकता है। यह अब आउटपुट जैसा दिखता है: मैं "PunkBuster स्क्रीनशॉट (±) एएओ ब्रिज क्रॉसिंग" से परिणाम "से परिणाम प्राप्त करने की कोशिश कर रहा हूं: w = 394 x h = 1 9 6 नमूना = 2"। मुझे लगता है कि यह फाइल के माध्यम से पढ़ने के लिए काफी सीधा होगा, और प्रत्येक पंक्ति को किसी सरणी में संग्रहित करेगा, [0] को "पंकबस्टर स्क्रीनशॉट (एपा) एएओ ब्रिज क्रॉसिंग" होना चाहिए, और इसी तरह। ये सभी पंक्तियों को बदलने के अधीन हैं, इसलिए मैं कुछ परिमितों की खोज नहीं कर सकता। मैंने कुछ दिनों के लिए कोशिश की है, और यह बहुत मदद नहीं करता है कि मैं php । यह परिभाषित करता है कि एक PNG दस्तावेज़ को डेटा के एक से अधिक मात्रा में विभाजित किया गया है। आपको अपने इच्छ...

query string - querystring to a hyperlink in vb.net or maybe another solution -

I'm new to vb.net I have two ASPX pages I have with I already pre-populated with a SQL Server backend There is a table with the result. Firstly, "Firstname" keeps me hyperlinking, so when I click on it, it should get the second ASPX page and all the data for that "firstname" should be displayed in the SQL server. Data on the first name is on 3 other tables, which is phone, address and hobby. Then - First name Samuel - & gt; Redirect it to another page - Samuel - Phone Address Interests 3104445656 123 Main St. Climbing Please tell me whether I need a query string or a second solution (better solution). How can I capture a query string in another page? Which link (href) can you run secondpage.aspx in code for the second page? Firstname = Samuel and you can recover this value again by request. JQuerystring ("firstname"). But there are other ways to do this with webforms and postback after receiving the selected first name (primarily ...

php - Zend: How to fetch record from Database without considering case sensitive? -

I am using the Zend Framework I want to get a record from the database without considering the case sensor. This is my personal tab: id | Name | Gender | Business -------- --------------------------- 1 | Innovation | Men | Software Engineer ------------------------------------- 2 | Ely | Men | Software developer Now if I use the following string to record in that section using the 'Acquisition' in the above table, it is always Record Number 1 (the record of the Nawid) Should be withdrawn. Software Engineer Software Engineer Softewater Engineer Software Engineer I am using the following methods to get a record from database in jade. $ occupation = "software engineer"; $ Table = new Model_Person_DbTable (); $ Select = $ Table-> Choose (); $ Select- & gt; Where ('business =?', $ Business); $ Rows = $ table- & gt; Get All (select $); Now how do I change the Zend code above for my scenario? I can make an argument to ignore sensi...

language agnostic - XPath 2.0 : Open implementations -

I find it very difficult to find an XPath 2.0 implementation outside Suxan. XPath 2.0 options in other languages? Note: made an interesting summary of the situation in 2007. Li> This is something XQuery 1.0 and / or XPath 2.0 is a list of implementations, but do not necessarily open the sources.

winapi - Convert HDC to wxClientDC? -

Is there a way to convert HDC to WDDC object? I know wxdc is the essence. Is it possible to convert to wxClientDC? You can use semi-internal (and MSW-specific, explicitly)) WxDCTemp category, see include / wx / msw / dc.h .

silverlight - MediaElement: Element Binding to DownloadProgress -

मैं एक टेक्स्टब्लॉक के टेक्स्ट की निर्भरता संपत्ति को बाध्य करने का एक बहुत सरल परिदृश्य कोशिश कर रहा हूं । & lt; स्टैकपैनेल & gt; & Lt; MediaElement x: नाम = "मीडिया एलेमेंट 1" चौड़ाई = "500" ऊँचाई = "500" स्रोत = "http://ecn.channel9.msdn.com/o9/pdc09/wmv/CL20.wmv" ऑटोप्ले = "ट्रू" / & gt; & Lt; टेक्स्टब्लॉक टेक्स्ट = "{बाध्यकारी डाउनलोड प्रगति, एलिमेंटनाम = मीडिया एलेमेंट 1, मोड = वनवेज़}" / & gt; & Lt; / StackPanel & gt; दुर्भाग्य से, TextBlock इसके टेक्स्ट को कभी अपडेट नहीं करता है सबसे पहले, मैंने सोचा था कि संपत्ति एक निर्भरता प्रॉपर्टी नहीं थी, लेकिन यह है ... एमएसडीएन के अनुसार। एक कार्यप्रणाली डाउनलोडप्रदर्शन परिवर्तित होने की घटना के लिए सुनना है और कोड-पीछे का उपयोग करके मेरा टेक्स्टब्लॉक अपडेट करना है, लेकिन यह कुछ है मैं बचने की कोशिश कर रहा हूं। किसी भी टिप्पणी की अत्यधिक सराहना की जाएगी। सबसे अच्छा संबंध, किरिल मेरा मानना ​​है कि क्योंकि मीडियाएलेमेंट पर ...

c# - .NET DateTime to SqlDateTime Conversion -

When changing the .NET datetime (when it is default) in SqlDateTime, I should always check whether the .NET date Between SqlDateTime.MinValue and SqlDateTime.MaxValue [or] is a good way to do this. Is it possible that the date can actually be outside of that boundary? Did this come from user input? If the answer to both of these questions is yes, you should always check - otherwise you are passing your application in error. You can easily format your date to include in the SQL statement: var sqlFormattedDate = myDateTime.Date.ToString ("yyyy-MM-dd HH: mm: ss ");

Checksum to detect Duplicted files and Re-named files -

I have been given clarification about the checksum of the file. In my testing application, I sent a checksum value to the duplicate file of my original file Also, when my original file was renamed, the checksam was the same. So, can I use a checksum to cancel the processing of a duplicate file or re-named file. Relationships, Kings Yes, but you use such checksum algorithms What should your files Not all checksums are suitable for this.

php - How to Facebook like newsfeed? -

How can I apply a Facebook news feed as a feature in my PHP based community application? For example, "X user uploaded a new photo, participating in an event". Receiving this data from different tables consumes a lot of resources. Thank you. There you can do a couple of different ways, but I would like to suggest that this is the one . Place a single 'history' table in which details of action were taken with flags (or predefined keys) for all records, a timestamp, and what type of action took place for each user. This will allow you to query a single table for specific types of tasks and to select a set frame of time to display. However, this table will increase faster with so many users so that you can consider sticking to the old data that you know you will not use again later. Pay attention to the index to keep questions intensified, and consider using query caching as you probably will often produce the same results. As long as you are not planning to...

javascript - Is there a way to detect Flash blockers? -

I am thinking that there is a JavaScript method to install any type of flash blocking plugin to a user So that I can adjust it to these users properly For example, I use 'click to flash', but the site cipher that uses text to render is full of "click to flash" button , Which is getting very annoying. I do not use SIFR in my designs for this reason but if I can see the weather, a flash blocking plugin has been installed, then I will not call the simple function. Any thoughts? Take a look After the page loads you can call the following. var movie = window.document.movie; {// If the film is blocked then should be loaded per percent by one exception (movie.Parentaloded ()> 0) {// movie loading or loading}} Catch (E) {/ / Movie block is

.net - Is it possible to make a date datatype accept 13 as a month and 30 for all months? -

I am in Ethiopia and we have 13 months. With 5 or 6 days of 12 each and 13 months, I want to sort my data by date using the binding source sort method. But to do so, I need to set my date field date data type. When I set up the DataType to date, I can not enter some values ​​for the value of the month at 13 and on the second month in 30 days of value. What do I need to accept my application for all months as one day and one day as 30, so that I can sort my data by date. Is it possible to establish culture for my application or through any other medium? In theory, you can refer to the language / country related to Ethiopia CultureInfo It seems that the ISO 639 short code in the original language is "M" and the ISO 3166 country code for Ethiopia is "ET", thus it seems that the correct "AM-AT" for Ethiopia is Thus, try the following. CultureInfo Ethiopia = New CultureInfo ("AM-At"); Int Year = 2002; // Currently Ethiopia Intel is...

uitabbarcontroller - iPhone - size of uitabbar -

Can some children tell me what is the exact size of the tab bar in the UITBBARC roller on IIT programming? The interface builder says that its size is 320x49, the height of 49 is. However, you should not have to rely on hard coded sizes, so there are frames and border properties of ideas, so you can find size and positioning, etc.

c# - ASP.NET Routing - Adding a route only if numeric? -

I am trying to generate a path using ASPNT routing, but I only want to apply it if some values ​​are numeric. Route. Add ("Category 2 archive", new route ("{one class}} {{class}}} {{year} / {month}", new category and posthandler ()); Is it anyway to know whether there are numerical values ​​in {year} and {month} and opposing this routing with other routes. You can get the filter you want to use: For routes. Margaret ("Category 1 Erequave", new route ("{one class}" {{date}} {{date}}, {empty}, new {year = @ "^ \ d + $", month = @ "^ \ D + $" }, New category and posthandler ())); ("Category 2 archives", new route ("{classOne} / {class} two} / {year} / {month}", blank, new {year = @ "^ \ D + $", month = @ "^ \ D + $ "}, new category and posthandler ());

gwt - How to catch user leaving a page and cancelling it -

When a user leaves GWT app, I want to open a confirmation dialog and provide alternatives to them I want to confirm, i.e. confirm ("do you really want to leave this page", "yes", "no"). I know how to create dialblocks :) The question is, how can I catch a user leaving the page and cancel it? Daniel Call, and pass it to a callback that calls to the window Does. Closing Event (such as: Window.and Window HostingHandler (New Window ClosingHandler) {Public Wide On Wide Cloaking (Closing Event Closing Event) {closingEvent.setMessage ("Do you really want to leave the page? Are? ");}}); (I've added links to GWT 2.0 docs, to change GWT 1.6 / 1.7 docs to 2.0 to 1.6 in those URLs.) Note By doing this, you do not need to create the dialog box itself.

symfony1 - Automatically getting a query instead of a result set in Symfony -

In my schema, users are related to their queries. I want to show all the questions I asked about by a user. I also want this page to be endorsed using the sfDoctrinePager , for which the Doctrine_Query parameter is required. I know that to get all the questions from my_user, $ my_user-> Getquestions () can call, but is there any way to get queries to get all of these questions? $ my_user-> GetQuestionsQuery () for example. Or do I have to implement myself? It seems that you have to create an Doctrine_Query object manually: $ query = new Doctrine:: GetTable ('question') - & gt; CreateQuery ('q') - & gt; Where ('q.uid =?', $ My_user- & gt; getId ()); And then pass it on the pager: $ this-> Pager = new sfDoctrinePager ('question', $ max_per_page); $ This- & gt; Pager-> SetQuery ($ query); $ This- & gt; Pager-> SetPage ($ cur_page); $ This- & gt; Pager-> Init ();

winforms - Close PrintPreviewDialog when ESC is pressed -

I'm working on a WinForms application using System.Windows.Forms.PrintPreviewDialog when the Print Preview dialog for the user to turn the presses communicate ESS, so I communicate. Unfortunately, I can not understand how to do this. I have tried to set up a KeyDown / PreviewKeyDown event handler, but it is sometimes not even call I also tried setting the focus for dialogue (and to its PrintPreviewControl), it was the issue thinking , But that did not help either that Anyone have any idea how to work it? I ended up to overriding off customizing and his method is made when the user presses ESC. It seems like a clean solution Here's the code that I wrote: using System.Windows.Forms; Namespace MyProject.UI.Dialogs {square CustomPrintPreviewDialog: PrintPreviewDialog {protected override bool ProcessCmdKey (reference message, key keyData) {When the user presses the off ESC // dialog box, (keyData == Keys.Escape) {this. Close (); Back true; } Return Base Processcmdk (...

Facebook Share button encoding problem -

I am trying to create a Facebook share button on my site. Everything goes well except the non-Assiotic symbols obtained from the meta tag. For example: I am sharing the page with the URL. The page has the following meta tags inside its meta tag: ... & lt; Meta name = "title" content = "John Smith won £ 10000!" / & Gt; & Lt; Meta name = "description" content = "What next John Smith want to be?" / & Gt; & Lt; Link rel = "image_src" href = "http://example.com/img/logo.jpg" /> ... & lt; / Head & gt; The problem is that a pound (£) symbol is shown as a symbol in the Facebook share pop-in, which is not a desired behavior. I would be grateful for any ideas. I recommend changing the pound-science with equal unit, i.e. & amp; # 163; = £ You may also need to include a charset definition, e.g. & Lt; Meta http-equiv = "content-type" content = "text / html; charset =...

osx - MySQL InnoDB insertion is very slow -

We use the MySQL server 5.1.43 64-bit version. InnoDB is used as an engine. We have a SQL script, which we execute every time we create an application. With MySQL server and InnoDB engine, it takes about 55 seconds on the Ubuntu machine to complete the execution. If I run the same script on OSX, it takes about 3 minutes! Any ideas why OSX is so slow when executing this script? You start the server with my.ini changed You can try to use innodb_flush_log_at_trx_commit = 2 and innodb_flush_log_at_trx_commit = 1 to use the output Back to I doubt that FSINC API in OSX is slower than Linux?

c# - Cloning the WPF ComboBox control: Ideas or suggestions -

If there is a control that acts like a record selector from the database, for example, the customer says. Control must work in a fixed way Allows the user to type Name, surname or customer code, and control I have tried succession from the combo box , but there are some combo Box behavior that makes me difficult or impossible to make, so I better start with a text box and button I am starting from Ruwa. Have questions: Do you know some open source components, so I do not have to start with zero? Have you done something already and want to share ways or suggestions? Am I good with a text box, a button and a popup control? This allows you to specify a source list and a custom filter. In your custom filter, you can choose to show only those records whose names, aliases, or codes that fit in the text, and the user will be given a list of the filtered options they display.

c# - ASP.NET Hashed PW's + Salt Confusion -

I am following the MSDN article located here: My confusion is on the function: Private String String CreatePasswordHash (string pwd, string salt) {string salt and pw = string .concot (pwd, salt); String hashed PWD = form attestation. Hashpswordforstoring sign file (salt and pwd, "SHA1"); HashedPwd = String.Concat (hashed PWD, salt); Return Hashard Power; } My understanding is that: 1. Share the salt and plain text PWD 2. A hashed pass has been made using Sha1. 3. Repeat the salt with palm pHD which was originally salt in it ??? What is the logic behind Step 3? I've got a function similar to MSDN and where it leaves the last consulate. I do not understand why the last concocket operation in MSDN version is It is storing salt with a hacked password so that you can remove the whole thing from the configuration file (or wherever you store it), press the salt on the end, hover the password that comes with it and the configuration from the hashead password ...

batch file to copy files to another location? -

Do I log in to backup files from one folder to another, or when the folder is updated is done? It can be written in VB or Java shell if there is no easy solution. Any thoughts? Thanks Two approaches: When you login You are: You can access your All Programs & gt; You can create a copy_my_files.bat file in. Startup folder with this content (a plain text document): xcopy c: \ folder \ *. D: \ another_folder \. Use xcopy c: \ folder \ *. * D: \ another_folder \. / Y> Each folder changes: If you can use C #, you can do this by using to create a program . FileSystemWatcher

cocoa - Iphone Utility App Singleton Problem -

This is bothering me in my utility app: I have a singleton declared in a specific way: My firstton has 4 declared properties: 3 floats and one int now, in my view controller, I am setting signaling method in an update like this: [ [Singleton Shared Silington] Set Meyant: var1]; [[Singleton Shared Signalone] Setmeflat 1: var2]; [[Singleton shared siltington] Setmeflat 2: var3]; [[Singleton shared siltington] setmaphflot 3: var4]; DeedLoad method in my view gives me such property: int m = [[singleton shared siltington] myInt]; Float R = [[Singleton shared सिंहावलोकन] myFloat1]; Float g = [[singleton shared siltington] myFloat2]; Float B = [[singleton shared siltington] myFloat3]; Then I provide int values ​​for float values ​​for a UISegmentedControl and UISliders. So the problem is that whenever I launch my app, the float gets stored in a singleton until I set the int - if I set the float, then I set the int, float always with each call Resets to 0 for viewing deedload...

Infragistics license exceptions when MSBuild-ing -

When you run the MSBuild script for a project, I'm getting the following errors: properties \ Licensesklicx (L): error LC0004: exception occurred creating type 'Infragistics.Win.UltraWinEditors.UltraNumericEditor, Infragistics.Win.UltraWinEditors.v5.2, version = 5.2.20052.1028, Culture = neutral, PublicKeyToken = 7dd5c3163f2cd0cb' System.ComponentModel.LicenseException: license unable to locate the assembly properties \ licenses.licx (2): error LC0004: exception creating categories' Infragistics.Win.Misc.UltraGridBagLayoutManager, Infragistics.Win.Misc.v5.2, version = 5.2 .20052.1028, Nskriti = neutral, PublicKeyToken = 7dd5c3163f2cd0cb 'system .componentModel.LicenseException: License unable to locate the assembly Properties \ licenses.licx (3): error LC0004: Exception creating categories' Infragistics.Win.UltraWinEditors.UltraCheckEditor, Infragistics.Win. UltraWinEditors.v5.2, version = 5.2.20052.1028, Culture = neutral, PublicKeyToken = 7dd5c3163f2cd0...

What's my mistake in doing the following in django-mptt? -

I have a category tree that has item entries related to category. So this is my model file: import from import model mptt class category (models.Model): nombre = models.CharField (max_length = 70) padre = models.ForeignKey ('self' , Empty = true, zero = true) def __unicode __ (self): return self.nombre class meta: ordering = ['tree_ID', 'LFT'] # Make your model here class.model: class = Model Try MultilevelFile (category): mptt.AlreadyRegistered: mptt.register (range, command_digit_by = ['nombre'], parent_attr = 'padre') mptt.AlreadyRegistered: pass I have manyToManyField Because each item can be in more than one category. Now, after installing 'mptt' in my application, I am trying the following in shell: category. Tree.add_related_count (category.red.root_nodes ( ), Which tree should be returned, and the number of items related to the node on each node, loading the item, 'category', 'q_c', cumulative = true)...