Posts

Showing posts from September, 2013

sql server - Update SQL with consecutive numbering -

I want to update a table with constant numbering starting at 1. There is a section in the update, so only the result will be re-named the clause. Can I complete it efficiently without using a temporary table? This probably depends on your database, but this is a solution for MySQL 5 which includes a variable Use of: SET @a: = 0; UPDATE table SET field = @ a: = @ a + 1 WHERE whatever = 'whatever' ORDER BY field2, field3 You should probably edit your question and this indicates What database are you using? Editing: I used T-SQL for SQL Server This is similar to the MySQL method: DECLARE @ myVar int SET @ myVar = 0 update myTable SET @ myvar = myField = @myVar + 1

silverlight 3.0 - Silverlight3: DataGrid vertical scrollbar missing when binding to PagedCollectionView -

I have a Silverlight datagrid and I have set the itemsSource as an example of the PageEdeclayViewViewView (I have my data page I want to paginate with DataPagers). I have noticed that while using PagedCollectionView the vertical scrollbar disappears - which is a problem for me because I have a nested datagroup inside a grid in which RowDefinition.Height is set to Auto (I have my own The bigger the DataGrid I want to grow). Now the DataGrid extends beyond the window. Whenever I set the vertical scrollburbity = "visible" to my datagrid, I do not even see the scrollbar - just a gray strip where it should be. Does anyone know how I can use PagedCollectionView without clearly specifying the height of the datagrid? Edit: Whoops - It was my mistake, I do not remember what I did wrong (I did my problem a week or two days ago), but I had something that I Was not paying attention to the surrounding layout Thank you, instead of the grid it is related to the grid's contain...

sql server - SQL 2008 Encryption Scan -

We have recently upgraded the database server for SQL 2008 64bit from SQL 2005. CPU usage is running 100% on all four processors (it never works on SQL 2005 server). When I run sp_lock, I think there are several processes waiting for a resource called [ENCRYPTION_SCAN]. I am not using any SQL 2008 encryption features Do anyone know that I wait on this resource Why should I have to work? It appears that whenever I have four processes on this resource, the CPU kills 100% on all four processors. I see this same question crop in some different places. It has not been proven yet, but it seems that long-running bulk INSERT or SORT can be frustrating to hold an ENCRYPTION_SCAN lock to prevent encryption scans from starting operation. In the near future, search for a blog from CSS on this, I will link it back here / when it comes out.

regex - Python Unicode Regular Expression -

I am using Python 2.4 and I am facing some problems with Unicode regular expressions. Have tried to collect a very clear and concise example. It seems as if there is some problem with Python different character encoding, or I understand a problem in my understanding. Thank you very much for taking a look! This is a simple dragon program, which displays my problems with Python in regular expression and character encoding. # Brian J. Thank you for the # thank you written by Steiner. Help! Import urllib # off Internet import chardet # files from the charactor encoding again to get #import ponyguruma # dragon Onyguruma regular expression # Python regular expressions to import identity - this is uncommented be if you feel like messing with it , But I am not the only issue which I am using rawdata = urlib.urlopen ('http://www.cs.unm.edu/~brian.stinar/legal.html') of RE .read ( ) Print (chardet.detect (rawdata)) # print (rawdata) as ISO_8859_2_encoded = rawdata.decode ('ISO-...

rollover effect - Any alternatives for the JQuery Hilight plugin? -

Image
When I found out I almost fell down my chair, what exactly do I need :) Now Sadly, it does not seem to work in IE8. Are there any fixes or options? I debug through the maphilight source code and found that for the newly created stylesheet while scanning IE8 Adding Rule When I searched on Google for this particular problem, I got one. There was a patch in the bug report and I used this patch on the maphilight plugin to fix it. What you need to do here is open jquery.maphilight.js (uncompressed source) and go to line 63, you will see something like the following: document.createStyleSheet (). AddRule ("v \\: *", "behavior: URL (# default # VML); antilles: true;"); // IE8 chokes on this line Document.namespaces.add ("v", "vase: schema-microsoft-com: vml"); Replace the above with: document.namespaces.add ("v", "vase: schema-microsoft-com: vml"); Var style = document.createStyleSheet (); Var shapes = ['si...

c# - Bitwise operations -

ए) (Int32) एक्स | (इंट 32) वाई & lt; & lt; 16) ; बी) (Int32) एक्स + (Int32) वाई * (Int32) Int16.MaxValue ; दोनों बराबर नहीं होना चाहिए? मैं यह परीक्षण करने से जानता हूं कि उम्मीद की जाती है कि पहले काम करता है, लेकिन किसी कारण से दूसरा नहीं है दोनों एक्स और वाई शॉर्ट्स ( Int16 ) हैं, और वापसी का प्रकार एक पूर्णांक है ( Int32 )। Y & lt नहीं चाहिए ; & lt; 16 & lt; => वाई * Int16.MaxValue ? इच्छित व्यवहार प्राप्त करने के लिए, आपको 0x10000 (यानी UInt16.MaxValue + 1 ) के साथ गुणा करना होगा। Int16.MaxValue है 0x7fff । 5 & lt; & lt; 16 327680 5 * 0x10000 327680 दशमलव प्रणाली से तुलना करें: यदि आप संख्या 5 से 500 "बदलाव" करना चाहते हैं, तो आपको 99 के साथ गुणा करने की आवश्यकता नहीं है, 99: -)

sql - Correctly Modeling Sports Statistics in a Relational Database -

I am trying to model football figures in postgresql and do something like that, but it feels right does not do. Here's the problem: I have team, sports and statistics. There are two teams for each game. There is an aggressive figure line in each team that can run, run, and so on. However, this aggressive situation is based on the defensive statistics of the other team, e.g. If the offensive team has a distance of 100 yards in the game against the defense team, then the rescue team has run away running 100 yards and it is important to track both these offensive and defensive statistics. FootballTam, FootballGam, FootballStat and FootballTamstate, as a linking table between football and football, is a foreign key to footballgam in FootballStat. FootballTamstats have two foreign keys, one for FootballTam and one FootballStat. It also has a StatTypeId, which is a flag for any offensive or defensive. By doing so, I can avoid a lot of flaws in Footballstate, where I will have two...

Waiting for the command to complete in C# -

text>> I'm new to C # and trying to develop a small application that internally opens a command prompt And here executes some commands. I have done so far: m_command = new process (); M_command.StartInfo.FileName = @ "cmd.exe"; M_command.StartInfo.UseShellExecute = false; M_command.StartInfo.WindowStyle = Process WindowStyle.Hidden; M_command.StartInfo.CreateNoWindow = True; M_command.StartInfo.RedirectStandardInput = True; M_command.StartInfo.RedirectStandardOutput = True; M_command.Start (); M_reader = m_command.StandardOutput; M_writer = m_command.StandardInput; M_writer.WriteLine ("Somecommand"); // Execute some commands As you can see, I've redirected the input and output. My question is how do I synchronize "some command", that is, I want to read the result of my instruction through the redirect output. For this, give me the complete order till I have used the command to complete the WriteLine. How can I do this? It reall...

vb.net - Or versus OrElse -

या और OrElse के बीच अंतर क्या है? यदि temp dbnull.value या temp = 0 त्रुटि उत्पन्न करता है: ऑपरेटर '=' प्रकार के लिए परिभाषित नहीं है 'डीबीब्लूल' और टाइप 'इंटीजर'। जबकि यह एक आकर्षण की तरह काम करता है !? अगर temp dbnull.value OrElse temp = 0 ओरेस एक शॉर्ट सर्किट ऑपरेटर, या नहीं है। बुलियन 'या' ऑपरेटर की परिभाषा के अनुसार, अगर पहला शब्द सच है तो पूरे निश्चित रूप से सच है - दूसरे शब्द का मूल्यांकन करने की आवश्यकता नहीं है। OrElse यह जानता है, इसलिए temp = 0 का प्रयास और मूल्यांकन नहीं करता है एक बार इसे स्थापित किया गया है कि Temp है DBNull.Value या यह नहीं जानता, और हमेशा दोनों शब्दों का मूल्यांकन करने का प्रयास करेगा जब अस्थायी है DBNull.Value , यह शून्य से तुलना नहीं की जा सकती है, इसलिए यह खत्म हो गया है। आपको उपयोग करना चाहिए ... ठीक है, जो भी एक समझ में आता है।

iphone - CLLocationDistance NaN -

I am trying to calculate the distance between the two sets of coordinating points in the iPhone application on the fly - (CLLocationDistance) getDistanceFrom: (const CLLocation *) Location I have noticed that I started receiving NaN in strange places, thus investigating this matter Near, hard code value with the following CLLocationDistance testDistance; Location Location = [[CLLocation alloc] initWithLatitude: 12.236533 Longitude: 11.011419]; UserLocation = [[CLLocation alloc] initWithLatitude: 12.236533 Longitude: 11.011419]; TestDistance = [get user location special place location]; If (Adnan (Test Distance)) NSLog (@ "ISNN!"); [Place space]; [User space release]; Many times the above is called, and in some situations testDistance is NaN. I am afraid that I am missing something very easily here. Anyone have any ideas? Update 1: OK, so I took the above code into a new project (put everything in the app representative), It stopped for 100 times and al...

c - How do I feed OpenSSL random data for use in ECDSA signing? -

I use OpenSSL feeding specific data to use as a random seed during signature of data with an EC key Want to I am comparing my application with another reference (closed source). This utility takes a file with a private key, files with data to sign and files with random data as parameters. I have found a generation of keys, and data has been signed, but can not be compared, since two applications I have no common ground OpenSSL random data signing data (Possibly from / dev / random) and thus gives me a different signature of every run. I have tried RAND_clar () in combination with RAND_add () , but keep changing the signature. Either I can not understand the entire ECDSA concept, or I am doing something wrong. To compare applications, my second option is to import the public key and confirm signature prepared by the reference program. This is a better option, but I am unable to import the given public key (83 characters hex string). EC_POINT_oct2point () gives me unusable...

c++ - Annotatable Control Flow Graph with Boost? -

मेरे पास एक नियंत्रण प्रवाह ग्राफ है जो कि मेरी मध्यवर्ती भाषा कोड की एक प्रक्रिया का प्रतिनिधित्व करता है। नोड्स और किनारों को शीर्ष / किनारों के गुणों के माध्यम से एनोटेट किया गया है और इसमें निर्देश शाखा जानकारी शामिल है। अब मैं इस ग्राफ़ पर डेटा प्रवाह विश्लेषण करना चाहता हूं और ग्राफ़ को प्रत्येक डेटा प्रवाह विश्लेषण मॉड्यूल में फ़ीड करना चाहता हूं। प्रत्येक मॉड्यूल अपने डेटा के साथ सीएफ़जी टिप्पणी में सक्षम होना चाहिए। समस्याओं को हल करने की आवश्यकता है: मुझे पहले से नहीं पता कैसे कई एनोटेशन डेटा प्रवाह विश्लेषण मॉड्यूल द्वारा पेश किए गए हैं (क्योंकि मैं भविष्य में अतिरिक्त विश्लेषण मॉड्यूल लागू करेगा) मुझे टिप्पणी के प्रकार विशिष्ट डेटा प्रवाह विश्लेषण मॉड्यूल द्वारा पेश किया गया प्रत्येक डेटा प्रवाह विश्लेषण मॉड्यूल अन्य मॉड्यूल से स्वतंत्र रूप से मौजूद होना चाहिए, अर्थात मॉड्यूल ए को मॉड्यूल द्वारा प्रस्तुत एनोटेशन के बारे में चिंतित नहीं होना चाहिए बी क्या आप ऊपर की सभी आवश्यकताओं को पूरा करने का कोई मौका देखते हैं? किसी भी टिप्पणी या सलाह की अत्य...

In MS Access is there a way to allow forms to update while maintaning Read Only -

I have several forms of linking tables through questions by selecting a product from the main form combo box And draws data such as data. I still have problems: 1- I would prefer the combo box for a free entry at the end; However, entering the box and entering the entry (there is no button called "insert on a screen", which will initiate the recess, only the normal will be recorded), while it brings new information to the sub-form, Also changes the table. If I read the table only then it does not allow me to work by saying that the table is for reading only. 2- The same problem reads only when another user tries to use the database only to read I understand I am only working for the purpose of preparing, although I am thinking that some functions are a way of working while allowing updating. I am learning on a journey unfortunately, so go easy plz thank you You need to link your combo box to the underlying data, but after the data has changed, set / r...

Joining Tables from multiple SQL Server databases located on separate severs -

What is the recommended way to join the SQL Server database tables located on different servers on the server? All the databases will be on the same network. You can set the server as a linked server: Then you will be able to run the query that references different databases.

sharepoint - Problem with final branch in a parallel activity -

It may sound like a silly thing, in the parallel activity, the last branch I will clarify it is a There is parallel activity in which each one is made easy by changing the work, changing work and on full work. In which work the final task is completed, it starts breaking the branch. Therefore, every work does the right thing in itself, but for the last time it encounters any problem. Say the user clicks on the final input link and opens the attached profile form and submits it. The event handler for the execution is synced to that on-task, where an actioned variable is set to the right which exits the loop. I have successfully hit a breakpoint on this line, so I know that this happens. Although the final activity in that branch is not completed, the entire task hit. Submit when clicked in the final form, the operation screen in the ProgeeScreen tells for a while before returning to the workflow status page. The work that was opened and accumulated, he says, "did not start...

css - layout falls apart on ie8 on some machines -

I have released a strange behavior from IE8. We uploaded asp.net application on IS6. Everything is fine and the layout is in place but on my collaborative machine, with the same browser (IE8), the layout falls on one part and on some other machines too (! ??) it is weird because it is: the same server , The same operating system and the same browser P> My favorite piece to handle IE8 issues is as follows: & lt; Meta http-equiv = "X-UA-Compatible" content = "IE = EmulateIE7" & gt; Just in the header of that document and at the top of the folder that works and behaves correctly in IE8, then the updated rendering engine with the browser and Your code is not. Give it a whirl.

namespaces - Sudden changes to Visual Studio -

I am using Visual Studio 2005, as well as asp.net web-app ready in VP in Visionary Web Developer 2008 to do. I recently installed Visual Studio 2008 along with Env SSVN - and noticed some changes that are causing problems! Most noteworthy that in my solution Explorer (I am creating asp.net apps Vb) I no longer extend an .aspx page to display .vp equivalent - I have to right click and see the code. In addition, when adding a new file to the solution - the whole interface has changed, I have not found the master page checkbox option (I have to choose a different file type) nor do I have to code like it or not. Is this the only change in Visual Studio? Confusingly it has also affected my VWD2008! Finally, when I create a new page - I get errors directly .. i.e. "Type 'XXXXXX.yyyyyy' could not be loaded." - Where XXXXXX is the name of the project, and yyyyyy is the code-defined square in the rear. I'm also certain that earlier, XXXXXX (name of the project)...

.net - Adding 'new' in front of the return type of C# method definition? -

So I recently participated in this C # statement on the job: public New string Some functions (Int i) {return base.SomeFunction (i); } I searched the web but I think I can get a better answer here. Now, I feel that it does everything a new string returns from the same value because the call returned by base.SomeFunction (i) ... is this correct? In addition, is this feature present in other languages ​​(especially Java)? Edit: In my specific case, base. Some functions are protected and not virtual Does this make a difference? Thanks No, that means it hidden some functions If there was no method in the base class with the same signature in the base class instead of you will get a compile-time error (because you will not hide anything there) !) See for more information. (I do not think this is a duplicate question, because instead of talking about the warning only when it is absent, what is "new".) Duplicate Example with my answer on...

c++ - Boost unit test failure detected in wrong test suite -

How do I use the Boost Test Library at this time, and I can not seem to get the exam suite right Work the way the following code fails correctly in 'test_case_1' but it has been reported in the Master Test suite instead of 'test_suite_1'. Anyone know what I'm doing Am I #define BOOST_AUTO_TEST_MAIN #include & lt; Boost / test / auto_unit_test.hpp & gt; BOOST_AUTO_TEST_SUITE (test_suite_1); BOOST_AUTO_TEST_CASE (test_case_1) {BOOST_REQUIRE_EQUAL (1, 2); } BOOST_AUTO_TEST_SUITE_END (); Edit: Edit: The answer to the ovens has prompted me to understand the suite hierarchy better - in this case the test_suite_1 sub-suite of the root suite is the default form The name 'Master Test Suite' shows the default logging only the root suite, which is what I do not expect from it. I) It can be settled by: You define the BOOST_TEST_MODULE You can set the original suite name Express an alternate version of the example which required error message: #...

c# - How can Replace infinite loop? -

I am working on nothing but incompetent C # code which wants to remove the spaces, it does this: = 0) b = b.Replace ("\ n \ n", "\ n"); Input from one place (for example) \ n \ n \ nThe input does not conflict, therefore a loop is required. I think this should work, and it usually does but sometimes it manages to join an infinite loop, and I do not know how Any ideas? Will this work: string c = Regex Replace (b, "\ n \ n +", "\ n");

asp.net mvc - MVC UpdateModel when the names don't match up -

Assume that you have a model that looks like this: Public class MyClass {public string name {get; Set; } Public Datetime Mediate (Receive); Set; }} Visual Studio gives you the default editing template is MyDate is a plain text box for the property is all well and good, but says That you need to split up in this month / day / year components, and look like your appearance: When it is submitted, call will not work on UpdateModel , because there is no definition for MyDate-Month . Is there a way to connect a custom binder to tackle the situation in this way, or HTML inputs are different names (for whatever reasons)? inject a hidden input uses JavaScript for a workaround I found a form before submitting the fields combined and named properly, but it seems wrong . After the I will suggest a custom model binder to you: System Use; Using System.Globalization; Using System.Web.Mvc; Override public square MyClassBinder: DefaultModelBinder {protected object CreateMode...

language agnostic - Concise description of all common software licenses for the average programmer? -

I'm reviewing some jQuery plugins for distributing closed sources (on the server, anyway) with commercial applications . One thing I see is that there is no standard license in which all plugins are included After reading the legal BS of some licenses, I am very happy that I got a law degree Did not go through to do so. I have a strong list of all common software licenses and what they are required to use code in a software project . By using "Software License" I mean the code applicable for the license that is released on the public domain. Imagine a comparison of licensing grid (MS-PL, GNU 3.0, etc.) and restriction (Include disclaimer, modify source, not for profit, etc.), where you have access to license Before slipping, you can tell about the license. It seems that the GNU project maintains a list of common software licenses I also tried to compare several licenses in a table format.

web applications - AJAX or a server side framework? -

I am working with a friend to build a web site, in general this web site is a custom web app Very custom social network type Currently I have a fake up site which uses simple PHP with AJAX and JSON and JQUERY and I love how it works, I love the way it all fits together. But for a fake up, I did not apply any social network design patterns like login, rating, group etc. It brought me to a higher level of need for decision-making, I need to decide whether I want to develop everyone, this functionality uses either hand or any type of structure. I researched all day, and it appears that using the Drupal and such frameworks will make the social network easier (considering the need for optimization for now ..) but the client Side web app development has to be reduced so much. I found some other frameworks that are more suitable for developers (customizable) like Zend and Symphony etc. But They allocate power to the customer and apply it on the server side, I think it is a trash (an...

java - Can eclipse prevent you from using particular classes? -

उदाहरण के लिए, मैं org.testng का उपयोग नहीं करना चाहता । V6. मैप्स , (मुझे com.google.common.collect.maps चाहिए) मैं org.hibernate का उपयोग नहीं करना चाहता हूँ मानचित्रण.सूची , (मुझे java.util.list हर किसी की तरह ही चाहिए!) क्या ईलेप्से को यह बताकर कोई तरीका नहीं है कि ये स्वत: पूर्ण बॉक्स में? हाँ - मेरे पास कुछ क्लास के लिए काम करने में बिल्कुल समस्या है। वरीयताएँ -> जावा -> प्रकटन -> प्रकार फिल्टर।

c# - BindingList and column flexibility -

Everyone knows about the binding list instead of DataTable You people have the problem of column flexibility How to remove it? I need to define and implement T objects for the binding list. If a new column is required to be added, then I have to add new properties for T objects .... while in datatale it is very easy. Binding List T & gt; Samples = new binding list & lt; T & gt; (); Is there something that you live with or what is a relatively easy way to overcome it? Using C # 2.0, Compact Structure There are still (sometimes) advantages to using DataTable - and column flexibility is one of them. It is being said that there are also inconsistencies with it. A small comparison of the advantages and disadvantages for each. My personal rule of thumb Baiding list Pairing in the collection of business objects In this case, the problem of the column is solved (you know that columns are already useful), and it seems more natural than Datagram still usef...

Generating an html report from an sql query -

I have a SQL query that returns a lot of results for which I want to generate an HTML table to display them I am The problem is that I do not want to display them all on one page, I want to hold 10 at a time and flip through pages of results. I want to return 100 results for every query, but I do not understand how to get the next 100 on the next question. - return to the first 100 rows SELECT * from table LIMIT 0, 100 - return next Select 100 rows * 100, 100 from table * - and next selection * FROM table LIMIT 200, 100 What you need to do is pass a variable to your script every page Make the proper SQL LIMIT statement for

iphone - Images and Caching - same image after name change -

I have a mysterious problem with images and caching. In my project I have 20 photos, which are beautiful with a random function Fades and exits, which changes the order a bit. I found that I do not particularly like an image, image_1.png and wanted to push it back into rotation (each time the image begins, the image starts with image.png ). Therefore, I changed the name of image_1 with image_16.png. When I look at the image in project folders and resources, the images are actually as it should be, but when I run the old image of the app that starts things up. I reset the SIM from my iPhone the app removed the images from the project and re-imported them and still the same image. Even odder .. I have an image that is no longer in this project file .. It is not even on my hard drive .... but it also shows. Is there a ghost in my mac or is it a continuously cache? Sounds like a continuous cache. Let me guess: do you have your images in a directory that you project as a ...

php - How to incorporate information from one site to another? -

Let me know if I have two sites at www.a.com and www.b.com site www.a.com The newsletter is a subscription form and I must include that submitted information on the site www.b.com and the information will be the name, address, newsletter format and customer email id. What is the way to do this? I'm using PHP Thank you in advance You can use SOAP, AJAX, XMLRPC and other protocols can be used to pass data between two sites.

NANT Build Scripts If Condition, -

I have a question about nanat build scripts, I am quite new to Nant Bild, if I run a style basis then on a certain condition in an XML file count ($ {skinFolder} / screens Temp.xml // ActionCollection / Item)> 0 Is there a way to get this? project node script node: & lt; Script language = "c #" prefix = "custom" & gt; & Lt; Code & gt; & Lt ;; [CDATA [[Function ("evaluation-xpath")] Public static string EvaluateXPath (string xpath, string information) {System.Xml.XPath.XPathDocument xml = new System.Xml.XPath.XPathDocument (info); Return xml.CreateNavigator (). Evaluation (xpath). Ostring (); }] & Gt; & Lt; / Code & gt; & Lt; / Script & gt; Then you can use the following expression to get what you want: if = "$ {int :: parse (custom :: Evaluation- xpath ('Count (Action Action / Item)', Path :: Alliance (Skin Fledder 'screens.temp.xml'))) Just note that if your XML file con...

Java Open source helpdesk +workflow project -

Any recommendation on which Java open source helpdesk system should be used? I need these criteria - come with some dynamic approval level support for some requests (workflow) Some Java bases are open source helpdesk systems Java based open source help desk application with emphasis on modularity also provides i18n support A Java based open source issue tracking system If you have your own help de If you want to make hundred management system you can see the work of JBoss frame I have worked for it and have a simple work flow management system using Jebeepim Hope this helps!

mysql - Optimizing php command line scripts to process large flat files -

For the downvoyee fairies .. I know that php is the wrong language for this ... but I I am working. Given that: I have a large flat file that I need to process in PHP. I convert flat files to mysql in a normalized database. There are several million lines in the flat file. I originally tried to use an ORM system while importing the flat file, with a great php memory leak problem with the design, with the design being carefully cured. Even if I make sure that there was enough memory, it could take around 25 days for the script to run on my desktop. I stripped the overhead and created mysql commands directly to write the script again. I removed the auto information from my design because after that I was essentially recorded as a MyScall, which was the last ID entered to create a connection between the data points. I use a global counter for the database ID instead, and I never do any lookup, just inspect it. I use the Unix Split command to create a lot of smaller files inste...

cakephp - Reading Session value in beforeFilter() cake php -

I am using an ep_rr script to deal with broken links on my site, and in error 404 () action I write a session like this: $ this-> controller-> session-> Write ("visitor", $ visitorId); All this works because I can successfully read the session when I reload the app_rar. Once I've written the value of this session, then I redirect to an administrator : $ this-> controller-> Redirect ($ redirectURL, 301); What I'm trying to do, this session value is to be checked in the app_controller in the Filter () callback beforehand, but it is not able to detect this value. Ive tried $ this-> Session-> Read ("visitor"); And it does not retrieve anything, I have also tried the check method. Can anyone see anything here clearly? I have Debug Set 0 (Production) so it uses error 404 () by default. Has your entire session being lost or are you unable to read that index? ? I am assuming that your entire session is being destroye...

javascript - How to use YQL to retrieve web results? -

I have difficulty setting a simple HTML file using Javascript to display the results of the YQL query. I understand how to set selection statements in the YQL console (example: search title, abstract, url, search.web where query = "pizza"). But I do not know how it can be displayed on the html file? Can anyone explain how to display the results of that statement? The code snippet will be appreciated! BTW, I've read YQL docs but they are a bit complicated. The only way to get YQL results through client-side JavaScript is JSON-P (or additional proxy ) Is a cover for this YQL service: function YQLQuery (query, callback) {this.query = query; This.callback = Callback || Function () {}; This.fetch = function (if (! This.query ||! This.callback) {new error ('YQLQuery.fetch (): parameters can be undefined');} Var scriptEl = document.createElement ('script '), UID =' Wyk '+ new date (), EncodedConnecti = encodercompany (this. Some.); Examp...

c# - How can I find the Harddisk Device Serial Number without using the WMI in .NET? -

I want to get hardwired serial number from hard disk but do not use WMI I try to use WMI code And to make sure it does not work on my machine, is there any alternative to .net to get the serial number of the physical hard disk? This should help you get started: WMI is not returning data about your problem; How do you know exactly the right privileges to get data from WMI? You can use it to check / correct.

sql - Reporting services in Sqlserver -

I know crystal reports very well and I have been working on it for the last 3 years. I wanted to learn the reporting services of sqlserver, which is the best source for quickly learning about reporting services? "post-text" itemprop = "text"> I am using this one to know the reporting services: To learn and practice a good book.

What regex will match this? -

How do I write a regular expression to match the following: CONTEXT_84 = or CONTEXT_5 = Try: CONTEXT_ \ d {1,2} = This means: CONTEXT_ " really> CONTEXT_ »one Match single digits 0..9 « \ d {1,2} » Return the number of times (greedy) between times and two times as often as possible {1,2} » RegEx built with Buddy

c++ - Best way to find a whitespace-delimited word in a CString -

उदाहरण: " कहीं से * चुनें जहां x = 1 " मुझे " कहीं " के भीतर " जहां " नहीं है, लेकिन " जहां " सफेद स्थान-सीमांकित खोजने के लिए चाहते हैं। उदाहरण में "जहां" को रिक्त स्थान से सीमांकित किया गया है, लेकिन यह गाड़ी का रिटर्न, टैब आदि हो सकता है। नोट: मुझे पता है कि regex करना आसान होगा (regex समकक्ष " \" Bwhere \ b "), लेकिन मैं सिर्फ यह करने के लिए अपने प्रोजेक्ट में एक regex लाइब्रेरी नहीं जोड़ना चाहता। यदि आप स्ट्रिंग हेरफेर की शुद्ध एमएफसी पद्धति का उपयोग करना चाहते हैं, तो यह काम करना चाहिए: सीएसटीिंग strSql = _T ("कहीं से * चयन करें जहां x = 1 "); Int nTokenPos = 0; सीएसटीइंग स्ट्रटोकन = स्ट्र्सकिल। टोकनइज़ (_T ("\ r \ n \ t"), एनटीकेनपोस); जबकि (! Strotoken.IsEmpty ()) {if (strToken.Trim ()। तुलना करें नोज़ (_T ("where")) == 0) वापसी सही; // मिला strToken = strSql.Tokenize (_T ("\ r \ n \ t"), nTokenPos); } विवरण झूठा है; // नहीं मिला

java - Spring Framework Connecting JVM with each other -

I have 4 servers and JVM is installed on them. I have written a Java service that quartz tells these services every 10 minutes. But in 4 servers, 4 calls are done every 10 minutes. The situation of this sitting race makes me want only one service on 4 JVM How can I do this with Spring Framework? It does not really help much easier quartz spring you even more to install in Because it is unaware of the ongoing JVM. On the other hand, the concept of scheduler compiled in quartz is Actually you need to set up a single database that can share all 4 JVMs. It will be used as a scheduler for all 4 instances. When set for a job, it is run using only one cluster scheduler from the examples. For clustering (quartz) taken from the website wiki, it is an example configuration on how to set up the scheduler scheduler. If you are configuring your scheduler in this way, you can also set these properties directly from spring. # ======================================= =================...

visual studio 2008 - How to add an ISAPI extension to a ASP.Net development iis server? -

itemprop = "text"> I'm using a CMS software to add "ISAPI extension" to my IIS (point to ". Requires Aspnet_isapi.dll). What I would like to do is also the ability to add IISI extension to my VSIS server, so that I can test my webpage locally instead of its deployments at all times. Is it possible to get in the VS embedded IIS server (I am using VS 2008)? No, this is not possible, but all requests are defaulted to ASPL. , So it should work out of the box.

.net - Log WCF Service Calls with Parameter information -

I am using the Service Trace Viewer to analyze WCF service calls that are done in our application but I In fact it is necessary to see parameter values ​​which have been passed to the service methods? Is this possible? I tried to convert logging to maximum output but still can not see anything: ( if you enable message tracing, you should get all the answers (including sent out his message of XML representation) both call details with this question: & lt; system.diagnostics & gt; & lt; sources & gt; & lt; source name = "System.ServiceModel.MessageLogging" switchValue = "Information, ActivityTracing" & gt; & lt; listeners & gt; & lt; add name = "yourTrace" type = "System .Diagnostics.XmlWriterTr aceListener "initializeData =" C: \ Logs \ YourMessageLog.svclog "& gt; & lt; filter type =" "/ & gt; & lt; / link & gt; & lt; / listeners & gt; & lt; / Sour...

Python: encryption as means to prevent data tampering -

Many of my company's customers use our data acquisition software on a research basis. In general, due to the nature of research, some customers ask that data is encrypted to avoid tampering - if their data has been proved incorrect, then there may be serious impact. Encrypts output files with a password stored in some of our binary software sources, which looks like random characters. At the software level, we are able to open encrypted files only for read-only. If someone wanted to know the password actually so that they could change the data, it would be possible, but this would be a lot of work I got another piece of software for faster development I'm looking at using Python. To duplicate the functionality of encryption to lose / disappoint the data tampering, the best thing I have ever done with it, is to just write ctypes to read / write files to DLL , So that the method is "sufficient" obfuscated for encryption and decryption. We are well aware ...

Java Generics: Warning needs a unchecked cast to conform to <InterfaceName> -

मेरे पास एक इंटरफ़ेस है इंटरफ़ेस एक्स {एक getValue (); } और कार्यान्वयन वर्ग y लागू करता है x {public B getValue () {new b ();}} B ए के उपवर्ग है। यह संप्रभु ओवरराइडिंग के कारण काम करता है, मुझे लगता है। लेकिन अगर मैं इंटरफ़ेस को interface x {& lt ; टी ए & gt; टी मिलेव्यू (); } मुझे क्रियान्वयन में एक चेतावनी मिलती है चेतावनी को एक अनियंत्रित कलाकार की जरूरत है जो ए.ए.टी.ए.ए.वेट () इंटरफेस के 2 संस्करणों के बीच क्या अंतर है? मैं सोच रहा था कि वे समान हैं। अंतरफलक का दूसरा संस्करण गलत है। यह कहते हैं कि getValue आप के लिए पूछने वाला कोई उपवर्ग वापस करेगा - वापसी का प्रकार आपके बाएं हाथ पर अभिव्यक्ति के आधार पर अनुमान लगाया जाएगा। इसलिए, यदि आप कोई संदर्भ प्राप्त करते हैं एक x (चलो इसे obj कहते हैं), आप कानूनी रूप से बिना संकलक चेतावनियों के निम्नलिखित कॉल कर सकते हैं: x obj = ... ; बी बी = ओबज.गेट वैल्यू (); जो आपके उदाहरण में संभवतः गलत है, क्योंकि यदि आप एक और वर्ग C जोड़ते हैं जो A को भी बढ़ाता है, तो आप कानूनी तौर पर भी कर...

ado.net - Which is locale-aware: OleDb.Currency or OleDb.Decimal? -

It is two times that I have an access database and a table with the MS Access Currency field. In the United States, my clients use decimal values ​​like 1.23 and in Ecuador my clients use the number of decimal as 1,23. I have some ADO legacy codes and I have tried to make ADODB parameters with type addecal type, either in the case adCurrency, access to data after reaching the ADODB command 1.23 (US) Expected) and comes in the form of 123.00 (not expected) for Ecuador. In my .NET code, I have tried OleDb.Currency and OleDb parameter with OleDb.Decimal It seems that OleDb.Currency is locale-aware but not OleDb.Decimal. My head is spinning. Does anyone know the correct way to use the correct ADO and NDT parameters for the international currency for my heritage code because our codebase goes ahead? Thank you! OK, after some extra digging, it appears that "currency" type "decimals "Prefer more than the types. In other words, using ADCurrency for ADO or ...

Can I set my iPhone app to run when a user opens an e-mail attachment? -

Is there a way to run my app when the user taps on the e-mail attachment, so I access the attachment file I have to implement any type of backup / restoration for app data that I have to do: The user has an embedded data file With a special extension (I'm using the new iPhone 3.0 messaging composer) If the user loses their data, they will be able to open the last sent email by visiting their e-mail box with the app data file then they only tap on the attached file , Causing my app to run and restore from that file Is it technically possible the final step? Thank you itemprop = "text"> There is a great tutorial in mobile orchard, which is described in a serialized SQL Lite Restore your application database through the custom URL handlers of the database: (pseudo-directive from the article) Convert your database or application data to NSDTA Base 64 in your e-mail message, and include it in the URL, for example : [NSString stringWithFo...

Blend 3 - Canvas Resize -

I am using Blend 3 for a silverlight app. To automatically resize and optimize the browser How can I use the canvas (100% width and height) .. I think it can be done using C # because I want to move objects easily around the browser, but do not know how. .. help would be appreciated! Snippet XML: & lt; Grid X: Name = "This Most Baconvas" & gt; & Lt; Grid X: Name = "Resize This Shield" Minhite = "768" Minewuth = "1024" Background = "# FF 8AFF 26" /> When I use a canvas, then there is a trap within me ... Thanks in advance, > David Vera If you remove the width and height and alignment parameters, then the Silverlight app Become fit for your container, combine with good use of grid, stack panels, and dock panels, and you should be able to create a good fluid design. For this to work your HTML needs to see something like this .. & lt; Style & gt; Html, body {width: 100%; Height: 100%; } #...

ruby - rails layout not showing -

I upgraded one of my apps to Rail 2.0.2 in 2.3.2. Start searching However, once I start running any page, the page will be displayed but it does not present any layout code. Provide any standard tags such as head, body that is in the layout. It seems that the layout is closed in any way. I checked the error log and there was no complaint on the layout. Has anyone seen this? It may be that you override the start () in your controller so that the layout is ignored has gone. See:

mysql - Python error: int argument required -

मैं यहाँ क्या गलत कर रहा हूं? i = 0 कर्सर.एक्सिक्यूट ("डालें त्रुटि: अनिवार्य तर्क आवश्यक डेटाबेस फ़ील्ड एक इंट (11) है, लेकिन मुझे लगता है कि% i त्रुटि उत्पन्न कर रहा है। अपडेट: यहां है एक अधिक संपूर्ण उदाहरण: समय = datetime.datetime.now () floor = 0 i = 0 प्रयास करें: booster_cursor.execute ('डालें मूल्य (% s,% s,% s,% s,% s,% s) '(पंक्ति [0], पंक्ति [0], मैं, मंजिल (एक्सटर्न_आईड, नाम, ऑर्डर, यूनिट_आईडी, बनाई गई, अपडेटेड) मान (% s,% s,% s,% s)' , समय, समय,)) अपवाद को छोड़कर, ई: प्रिंट ई त्रुटि: (1064, "आपके एसक्यूएल वाक्यविन्यास में एक त्रुटि है; ('99', '99', '235', '12', '2009-07-24 1' लाइन के पास उपयोग करने के लिए सही सिंटैक्स के लिए आपके MySQL सर्वर संस्करण से मेल खाती है) 1 ") दो चीजें सबसे पहले, % s का उपयोग करें और % i का उपयोग करें। दूसरा, मापदंडों को ट्यूपल में होना चाहिए - ताकि आपको (i,) ( i के बाद कॉमा के साथ) की आवश्यकता हो। इसके अलावा, ORDER एक कीवर्ड है, और...

cocoa - How do I turn an NSMutableData into an image in a view? -

I downloaded a .jpg file from the Internet with this code: NSURLRequest * TheRequest = [NSRR request request with url: [NSUr URL youththring: @ "http://cvcl.mit.edu/hybrid/cat2.jpg"]] ;; NSURLConnection * theConnection = [[NSURLConnection alloc] initWithRequest: theRequest Representative: Self]; ReceivedData = [[NSMutableData data] is maintained); // etc etc Everything works fine I do not know how to handle the data say that I have created an image view in the IB, I am about to display the image How would I go? Here's the last bit: - (zero) connectionDifffish: Loading: (NSURLConnection *) Connection {*** ******} Do something with data ***** **** .. but how NSLog (@ "succeeded! Get% d bytes of data", [received data length]); // release connection, and data object [connection release]; [Received Data Release]; } Assume that your NSImageView a IBotlet is called imageView , you should be able to initialize the image using the received data and...

ruby - Rails, searchlogic choose categories with checkboxes -

I want to find some paintings. Each image is related to a single category. What do I want to do that adds multiple checkboxes to my search form, so that users can mark multiple categories. (With or join) Is it possible with search? The query that I am looking for is something like this: Select from the pictures where the category "white" or "red" like category ... f.check_box: Category (white) F. "post-text" itemprop = "text"> Super Dopter is the easiest way to do this (your search object is to assume @search): f.check_box: category_equals_any, {: name = & gt; "Search [category_equals_any] []"}, "white" f.check_box: category_equals_any, {: name = & gt; "Search [category_equals_any] []"}, "black" f.check_box: category_equals_any, {: name = & gt; "Search [category_equals_any] []"}, "red" f.check_box: category_equals_any, {: name = & gt; "Search [categor...

java - Mutable seqs in clojure -

I have a list in the closure, and the list (due to the built-in java library) needs to be modified (delete the iterator Using the method). (MAP FN CEC) is a much better way to stop this effect than writing the destructive equivalent? Closer lists are invariant so if you need a temporary list, then it is possible to use one such Which provides Java. For example: user = & gt; (Import java.util.LinkedList) java.util.LinkedList user = & gt; (Def a (list 3 6 1 3)) # 'user / one user = & gt; (Def B (java.util.LinkedList.A)) # 'User / B user = & gt; B # & lt; Linkedist [3, 6, 1, 3] & gt; User = & gt; (.remove b 6) Real User = & gt; B # & lt; Linkedist [3, 1, 3] & gt;

objective c - How to (programatically) change slides in a running Keynote presentation? -

I am working on a Cocoa app that I want to use remotely (on the same machine, a different process From)) control which is currently displayed in a running Apple iWork '09 main presentation. How should I contact this? Keyword is a preorder in the AppScriptcript dictionary: Tell the App "Main Note" Advance Advance It looks like you can use scripting bridges or NSAPilescript to run this script from within the Cocoa application.

objective c - Why am I getting this error, when it cannot be true? -

This is the error that I get in Xcode debugger but see here: How is this possible and How can I fix this? Edit: I have this condition because "group" is a reserved word Try a different name for your unit.

mod rewrite - .htaccess to hide CSS/JS version -

I was wondering if it is possible to run a revised rule, which will hide a CSS version in a link tag. former link href = "css / global.css? V = 1.2.3" rel = "stylesheet" type = "text / css" link href = "css / global.css" rel = "stylesheet" type = "text / css" I do not have anything on this topic to show in the past You may have received a 500 error: ( Thanks! well I see no problem on the URL version but it might help you. RewriteCong% RewriteCond% {REQUEST_FILENAME}! -f Released on Cash% {REQUEST_FILENAME}! - D RewriteRule ^ CSS / (. *) / (. *) \. Css $ / css / $ 2.css? V = $ 1 [QSA] Allows you to: & lt; link href = "/ css / 1.2.3 / global.css" rel = "stylesheet" type = "text / css" /> ;

security - How do I securely store passwords in a configuration file in a Ruby/Rails web server environment? -

I need to store payment gateway processor username / password credentials on the production web server, but do not want to specify it --text . What is the best way to store these credentials? Are they the best practices for encrypting and decrypting this information? This classic chicken-egg problem is if you can not protect the keys, then encryption will not help you. And you can not clearly do it What would I suggest that other services / users have to try to make / use the user for your authentication code, and instead of saving those hashs In such a way, you will lose the best way, but it The Kil could be (depending on the rest of the setup) can actually do them salt properly conscious to use malicious manner. If you can not use hash, then another possibility will be using the external authentication store. It does not really solve the problem, but you can control the attack vector and secure it by allowing only very specific contacts with the actual source with import...

<extend> dependency in UML -

Image
Except the context of UML, if AB extends, then there is a subset of BA. But in UML, this is the opposite, say, if ABC extends, there is a subset of A, Why is it strange? & lt; & Lt; Expansion & gt; & Gt; Dependency is only used for usage cases, it means that the use of a case is spread to other under certain circumstances. In the following: Customer accounts look at account details Under some circumstances, the client may also be "see open order" as part of "View account details". It is also possible that customers will see "see history" as part of "view account". Nothing is done with its generalization / expertise. & lt; & Lt; Expansion & gt; & Gt; The use case is confused in the figure. The smallest part of the illusion is that case diagrams are not used for cases! The use case is a document, not the diagram. For example, the image shown above may be from the case text using the follow...

mariadb - Want to join an open-source project but would like suggestions that fit my particular skill set -

I know that this may be a duplicate question but this question is very specific for my skill set. I want to be involved in an open source software project. I am a professional software developer and graduate student (Master of Science in Software Engineering) and professional (in my day job), I work with ASP.Net, ASP / VBSSP and SQL Server. I recently took my first graduate course and presented the course, and it opened my eyes for the power and greatness of open source software. I always respect Firefox and Subversion - big name - But he gave me more insights. I want to be involved in a project that I can be productive but I can still learn. As the project is developing in the beginning, but showing promise (if it fails or stops, I will get a new one). I like the project in the Linux community but hopefully it will work on Windows, Mac OS X and Linux. The following technologies are known to me. SQL 2.0 SQL MySQL Mercurial Subversion Cygwin MinGW GCC / G...

c# - VS2003 Web Reference for a WCF Service has Extra "IdSpecified" Parameter -

I am developing a WCF service using VSTS 2008 + .NET 3.5 + C # and whenever I use VSTS 2008 Use the Client Developer (Automatically use the add-on service reference function for the generated client web service) I am using WCF Basic HttpBinding. The issue I found is that when I use Visual Studio .Net (Visual Studio 2003) to generate the client web service proxy code, an additional input parameter operation contract method Which is called ID Explanation I have tested that when IDs are specified on the right, the value of the ID parameter will be passed correctly to the WCF server, but when I id on the wrong Then specifies whether the values ​​that I have ID specifies parameters, WCF server side, the ID is always 0. I have no additional input parameter that tried input parameter types like string, the client-side. My question is why is there an extra parameter? What does it mean and is it possible to avoid generating such additional parameters? Visual Studio.Net automatically g...

Do you perform any validation on the OpenID URI? -

When you are logging in to a user while using OpenID, do you have an OpenID URI (or identifier) Also do verification? Or do you handle it (eg) to the library. DotNet openAuth manages all verification Validity Web sites need to put some open-ids to waste (For example, when XRI support was added, they do not look like URLs, and a web site that tried to break XRI as URL).

Get number days in a specified month using JavaScript? -

संभव डुप्लिकेट: कहें कि मेरा महीना एक नंबर और एक वर्ष है। माह 1 है आधारित कार्य दिवसों महीने (वर्ष, वर्ष) {वापस नई तिथि (वर्ष, महीने, 0) .getDate (); } // जुलाई दिन इनमॉन्थ (7, 200 9); // 31 // फरवरी दिन इनमथ (2,2009); // 28 दिन इनमॉनथ (2,2008); // 29

linux - How do I configure/make/install against an older version of a library? -

I'm trying to install a piece of software () dependent on "Imagemagick 6.3.9+" - I installed Trying to get the latest version of ImageMagick (6.5.4-5) but when I tried to "create" moddims, then found the following error: mod_dims_ops.c: function 'dims_smart_crop_operation' In: mod_dims_ops.c: 34: Error: There are fewer logic to perform the work of 'Parsegravity Gemetry'. Probably the function signature image has changed somewhere between Magic 6.3.9 and the current version. I like to try installing moddims against the older version of ImageMagick - but I want to install ImageMagick 6.3.9 without interfering with previously installed 6.5.4-5 version . .configure incantations I can use a) Install the old version of ImageMagic in a way that it does not write more or otherwise interfere with my modern version and b) use that older version To compile moddims I'm on OSX but I hope to have the same problem for later when I need to insta...

iis - ASP.NET MVC, Url Routing: Maximum Path (URL) Length -

scenario I have an application where we have received a good old query string URL structure: ? X = 1 & amp; Y = 2 & amp; Z = 3 & amp; A = 4 and b = 5 & amp; C = 6 and turned it into a path structure: / x / 1 / y / 2 / z / 3 / a / 4 / B / 5 / c / 6 We are using ASP.NET MVC and (naturally) ASP.NET routing. The problem The problem is that our parameters are dynamic, and there is no limit to the amount of (theoretically) the parameters that we need to adjust for this. It is fine unless we are not affected by the following train: HTTP Error 400.0 - Bad Request ASP.NET detected illegal characters in the URL . IIS will throw this error when our URL becomes a prolonged exponent. Nitai Kirkira Here we found out: This is not an IIS problem The maximum path length in IIS is the limit , But the above error is not it. Learn how to use dot IIS dot net request filtering section "Filter by request limit" If path was too long for IIS, i...

uploading - iPhone Upload Sounds -

Hey, I am new to this site. I think it is great! Okay, that's the deal I just downloaded Smule Ocarina I was wondering how they made it so that you could upload a song to the cloud. I might have an app idea, which could include it. How would I do this? What do I need? OK You have to define a format to play a song, for example MIDI, so that You can upload a media file (like MySQL) (not too heavy), and then you can download it and play it with a synthesizer or something similar. There are some open source mobile synities which I think may be able to play MIDI, but you have to look outside. I hope this will help you a bit, your question is very broad, so there are several ways to meet your goal.