Posts

Showing posts from September, 2015

security - iPhone - Send VPN traffic for a specific URL -

I am creating an iPhone web-based app for our fax to see sales data. The app goes to SSL with a normal login page that sets a cookie for the day. Since the information is sensitive and we have VPN at work, I was hoping that I can send all communications with double precaution on our VPN Any way Is that I can only route traffic to VPN for a specific URL? Do anyone have any more information on "Send All Traffic" in the VPN configuration thanks VPN has little control over the app. A well-configured HTTPS site (especially by employing bi-directional certificates) will give you the type of protection you are looking for in your application. He said, I strongly advise that business users send all data to VPN in all cases. It eliminates a wide variety of attacks and provides opportunities for additional monitoring and security. In this way, I usually recommend using the "Send All Traffic" VPN configuration. This will allow you to move the app completely in...

oracle - deploy application with OraOLEDB provider -

I have developed an application that uses Delphi 7, ADO and Oracle, the provider using the provider OraOLEDB (I need this provider because Blob Field support). Now I want to distribute this application with the provider. I search to download the web, but its size is 174 mb Do I need to install this file on all client machines? What is a small distribution of this file? UPDATE I am looking for a lightweight (small) distribution of Orauldibi. Thanks in advance. I allow it to supply the user's client library automatically. You avoid problems where I can have different objects for different Oracle OLD versions, different oracle versions, licensing issues, installation issues etc. As I know you need a package of 170 MB +.

asp.net - How do you avoid duplicate items when a databound control gets bound twice? -

How do you avoid duplicated byte items in this scenario: A database control on one page ( In this case a dropdown list, though I do not think it matters). It has an accessoryband, which is set to "true" elsewhere in the code, a datasource has been set and called databand. So this control is clearly bound. You have a bunch of other things to force on the page, so you call the page. Databand Your data-bound control has duplicate items in it. This (1) was clearly bound, then (2) the page Since AppendDataBoundItems was correct, the second tie adds the first time, and you repeat the items. Some limitations: Draft on clear call control is done through some centralized code, and will be painful to change. I need to force the rest of the page to be completely (through the page. Databind ()) because many different database elements allow different calls To be written without individually. I need a method like ... page.DatabandExceptionActiveBibleBoundDown () ...

asp.net - Umbraco, is it just me or is it really hard to use? -

Some of you are looking for feedback on people who have recently evaluated umbraco I am on a search for the 'best' cm which balances the extension of use / extension / optimization etc. to use as the basis of a new vertical product, I am in the planning stages on that, So in the last month or so I am downloading, reading the source code And I am making a test site in every ASPN.NET CMS, I can get my hands - and so far I have not been able to enjoy Graffit CMS, Mojoportal, Oxyte, Orchard, Kubu and some others who do not have me on top of my head. are missing. For each of them, except for Umbraco , I am running under a couple but after the Aquarius, after wrestling, some During the hours, writing scripts in widgets in C #, hours (especially Graffiti), templates for adding pages, customizing templates, and in some cases. It's been running for about 2 days, and now watching the video one more morning, and then creating pages etc., I'm still unable to operate a si...

sql - Is there an index on the primary key of a table? -

इस सवाल का पहले से ही एक उत्तर है: 10 उत्तर एक प्राथमिक कुंजी स्तंभ होने मतलब उस स्तंभ पर एक सूचकांक है? यदि हां, तो किस प्रकार का सूचकांक है? SQL सर्वर के लिए, जो मुझे पिछले प्रश्नों से विश्वास है आप जो उपयोग कर रहे हैं, जब आप प्राथमिक कुंजी को परिभाषित करते हैं, तो उस कॉलम पर स्वचालित रूप से एक सूचकांक होगा जो कि एक CLUSTERED सूचकांक होने के लिए डिफ़ॉल्ट होगा आप परिभाषित कर सकते हैं कि क्या आप बाधा पैदा करते हैं, यह एक गैर-क्लस्टर या CLUSTERED अनुक्रमणिका होना चाहिए।

java - Experiences with escape analysis enabled on the JVM -

I just tried to enable the -XX: + DoEscapeAnalysis option to jdk6 Is U-18 VM (on the Solar System) and a disappointing experience. I am running a Scala app that is a lot of actors (20,000 of them) is a recipe for this garbage-creation! The app can usually run with a stack of 256 MB, but generates a huge amount of garbage in a steady state : Spends 10% of GC generates 150 MB of garbage & lt; 30 which then becomes GC 'D' I think analysis of escape can be helpful, so I enabled the option and ran the app again. I came to know that this app was unable to remove that garbage, which it had gathered, until it finally seemed to be spending the whole time to GC and the app's full allocation "Flatlining" was. At this point I should say that the app did not throw out the OutofMemory error which I expected. Probably JConsole (which I was using to analyze) does not display GC figures correctly with this option (I'm not sure)? I then remove...

c# - WPF Expander IsExpanded binding -

I have limited the code with expander IsExpanded property Mvvm model In bool The binding works fine until the extension does not touch the extension, after clicking on the arrow in the expander, the binding stops working. To show incorrectly in the model, bool does not fall for the Explorer by setting ShowPreview. & lt; Expander Name = "pExpander" IsExpanded = "{Binding Path = Show Preview, Mode = Wanted}" Header = "Preview" & gt; & Lt; TextBlock Text = "{Binding Path = Message, Mode = Options}" & gt; & Lt; / TextBlock & gt; & Lt; / Expander & gt; If you remove mode = single problem? After reading your other CTIC (do not affect the change model in GUI), I have no good suggestions on how to limit the change seen by the underlying data. What's the difference between: myModel.MyProperty = true; // in the * and myModel.MyProperty = true; // is a compulsive

Swap attributes in tags using Visual Studio 2008 RegEx -

How to swap properties id and runat in all my tags Visual Studio 2008 solution? & asp: label id = "Label1" runat = "server" /> became & asp: label runat = "server" id = "Label1" /> In the Find and Replace, enable the use of regular expressions. Replace with: To tag sub-expressions in regular expressions, pre > Runat = "server" id = "\ 1" use {}. Part means: Find one or more of the characters that are not quotation marks after "id =" and tag the next quotation marks and tag it as sub-expression. By replacing, you first To denote sub expression, use 1 and tag ID. Edit: Add a single space character in front of the search and replace the expression: ContentPlaceHolderID = "MainContent "Runat =" server " .

c# - Aggregate regex replace -

So it's purely curiosity ... I have a set of tags : & lt; Tag & gt; & Lt; Sub & gt; & Lt; / Sub & gt; & Lt; Sub & gt; B & lt; / Sub & gt; & Lt; Sub & gt; C & lt; / Sub & gt; & Lt; / Tags & gt; & Lt; Tag & gt; & Lt; Sub & gt; 1 & lt; / Sub & gt; & Lt; Sub & gt; 2 & lt; / Sub & gt; & Lt; Sub & gt; 3 & lt; / Sub & gt; & Lt; / Tags & gt; In any single Regex.Replace command, all & lt; Sub & gt; the content of the tag & lt; Tag & gt; a & lt; Sub & gt; . Like: & lt; Tag & gt; & Lt; Sub & gt; ABC & lt; / Sub & gt; & Lt; / Tags & gt; & Lt; Tag & gt; & Lt; Sub & gt; 123 & lt; / Sub & gt; & Lt; / Tags & gt; My guess is not, but I thought I wanted to give it a shot. The theoretical tag is it always clear? If so, then & lt; / Sub & gt; \ S + ...

python - pygtk: find out focused element -

I am creating a dialog that shows what the element is centered what I wrote: import gtk import gobject class FocusedElementPath (gtk.Dialog): def __init __ (self, parent, title = none): gtk.Dialog .__ init __ (self, title or 'Show path', parents father) self.catch_within = parents self.catch_focus = true self.add_button (gtk.STOCK_OK, gtk.RESPONSE_OK) again_btn = gtk.Button ( ', gtk.STOCK_REFRESH) again_btn.connect (' active ', self .refresh_pressed) again_btn Kso () Self.akshn_ariakaed (Agen_btn) Selfkaed_btn (Gtkkstok_kansil, Gtkkrispans_kansil) Self.akshn_ariakset_leaut (Gtkkbuttonboks_i DGE) self.path = gtk.Label () self.path .show () self.vbox.add (self.path) def refresh_pressed (self, btn): self.catch_focus = True def do_focus_out_event (self, evt): nl = self.catch_within.get_focus () If nl: self.catch_within .activate_focus () self.path.set_text (repr (nl)) else: self.path.set_text ( 'no') gtk.Dialog.on_focus_event (self, Evt) gobject.type_regi...

templates - C++ Compiler error with CRTP -

मेरे पास निम्न श्रेणी के पदानुक्रम हैं: टेम्पलेट & lt; typename T & gt; वर्ग आधार {सार्वजनिक: शून्य एफ () {}}; कक्षा class_a: सार्वजनिक आधार & lt; class_a & gt; {}; कक्षा class_b: सार्वजनिक आधार & lt; class_b & gt ;, सार्वजनिक class_a {आधार & lt; class_b & gt; :: f; }; Int main () {class_b b; b.f (); वापसी 0; } कमु और इंटेल सी + + वी 11 का दावा सभी अच्छी तरह से है, हालांकि जीसीसी (4.4.1) और वीसी ++ 2008 शिकायत करते हैं (उदाहरण के लिए): G ++ -pedantic -Wall -o test test.cpp test.cpp: फ़ंक्शन 'int main ()': test.cpp: 5: त्रुटि: 'शून्य आधार & lt; T & gt; :: f () [T = class_b] के साथ' अपठनीय test.cpp: 14: त्रुटि: इस संदर्भ में मुझे विश्वास है कि यह कोड अच्छी तरह से बना है क्योंकि यह है, हालांकि मैं गलत हो सकता है, मैं किसी को SO C ++ से उम्मीद कर रहा हूं समुदाय इस मुद्दे पर कुछ अंतर्दृष्टि प्रदान कर सकता है। नोट: class_b में उपयोग किए जाने वाले डायरेक्टिव से पहले "सार्वजनिक" जोड़ना, जीसीसी और वीएस दोनों क...

php - Can I use subversion in such a way that "commit" automatically updates my server files? -

I would like to know if there is any way to do this, when I make changes using subversion automatically Reflect on the test folder on your server? Perhaps this idea is irrational. I am struggling to see a great picture here. If I keep the subdivision repository on the server, will it be appropriate? A post-cut hook should help you:

url - flash movie won't load? linking issue? -

artoferichu.com/figures/ लोड नहीं करता है Artoferichu.com/figures भार। फ्लैश फिल्म पहले लिंक और लोड में दूसरे लिंक में लोड नहीं होगा किसी भी विचार पर क्या हो रहा है ?? मैं .htaccess का उपयोग कर रहा हूँ आंकड़े को आंकड़ों को रीडायरेक्ट करने के लिए। Php ओह बीटीडब्ल्यू, मेरी .htacces इस तरह दिखता है: RewriteRule ^ आंकड़े /? $ Figures.php आप रिश्तेदार पथ का उपयोग कर फ़्लैश फ़ाइल लोड कर रहे हैं, जो कि रिश्तेदार यूआरएल में फ़ोल्डर। अनुगामी स्लैश के साथ, यूआरएल को / आंकड़े / नाम के एक फ़ोल्डर के रूप में व्याख्या की जाती है, बिना फ़ाइल नाम। इसलिए, यह लोड करने की कोशिश करता है http://artoferichu.com/figures/figures.swf से फ्लैश फ़ाइल लोड करें। अनुगामी स्लैश के बिना, यूआरएल को नाम की फाइल के रूप में व्याख्या की जाती है मूल फ़ोल्डर में इसलिए, यह http://artoferichu.com/figures.swf से फ्लैश फ़ाइल लोड लोड करने का प्रयास करता है। इसे ठीक करने के लिए, आप या तो पृष्ठ को लोड करने के लिए बदल सकते हैं एक पूर्ण पथ ( / Figures.swf ) से फ्लैश फ़ाइल या /figures/figures.swf के ल...

multithreading - How do you make QT threads in python for pyqt? -

I have discussions about Qt threads versus dragon threads, but how do you make QT threads in Python and how do they call? How can you give your work to another thread? Thank you! is a good, fully worked example.

performance - Comet vs Ajax for chatting -

My site needs a chat room, and I also look for a phashesh person to implement in person chat system I am here. What is the most value-efficient / executable for me (purely in the case of BW and server) What is the regular selection of 1 second Ajax chat or comet solution? Thank you. Generally lower bandwidth usage (less than 1 chat on average, assuming a chat message per second ) Due to this fact, it will only query the message sent per message only, this will usually result in more concurrent active connections from your server. This can help you visualize this better.

php - multidimensional array -

कृपया समझाएं कि foreach ($ toplist ['children'] का अर्थ क्या है $ उपकुंजी = & gt; $ उपनाम के रूप में) और जहां से बच्चे आए हैं मैं भ्रमित हूँ। असल में $ toplist मूल्यों की एक सरणी है उन मानों में से एक को 'बच्चों' कहा जाता है। इस स्थिति में, 'बच्चों' पर स्थित मान ही एक सरणी है। कोड की आपकी लाइन कंप्यूटर को 'बच्चों' सरणी के अंदर प्रत्येक मूल्य पर लूप के लिए कह रही है और कुंजी और मूल्य को निकालती है। $ उपकुंजी है कुंजी, $ उपनाम नाम है। दूसरे शब्दों में, $ toplist ['बच्चों'] [$ subkey] == $ subvalue

asp.net - please help me in creating a sort expressions for datatable in vb.net -

I have found a statistic that has several columns with three main ones: hotelid Hotel names Some hotels have only dshotelid, some are only picky and some have both datholide and hive. I should sort out so that the hotels should be topped for both the Doshotid and Hotel hotel and then those hotels will get only Dashotid and for the hotels that are near the hotel only. ... > Please help me make such an expression. I made it: dtmaintable.DefaultView.Sort = "dshotelid, hotelid" but it does not make me the desired output Is giving up. at the top of the sorted column (unless sort order is in descending order) Maybe looking at the rows below with hotel hotels and dashotids, instead of p? How is this data table populated? If it is coming from a database query, it is a simple matter to create an additional column (or column) that has the sorting of your needs - this is a mix of other columns or some other unique identifier. Edit: February 4, 2010 - I...

java - IntelliJIdea plugin for uml design? -

Does anyone have a plugin address for IntelliJ IDEA, which is also in hibernate / JPA annotations keeping in mind the Uber diagrams Will you think? I know that Ctrl + ShifAlt + U creates a data classified diagram but it does not show you many other relationships from ... Please note that I have units Classes are manually generated from 'Design' DB and not automatically generated. Thanks in advance.

javascript - How to hide the parent vertical scrollbar after an iframe is loaded? -

I've attached the sample code that shows the problem I'm seeing in Firefox 3.5.7. The problem is that the basic HTML has a scrollbar, and it loads an iframe which is fullscreen (height: 100%, width: 100%), I want the original scrollbar to be removed after the iFrame loading. 1) Is this possible? 2) When we height: 100%; Width: 100% why only capture the scene area? But are not the full parental occupied areas? This main.html & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" src = "client.js" & gt; & Lt; / Script & gt; & Lt; Title & gt; I'm a customer & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body bgcolor = "# 000000" & gt; You can see iframe below ... you can see iframe below ... you can see iframe below ... & lt; Br> & Lt; Br> & Lt; Br> Br> Br> Br> & Lt; & Lt; & lt & lt; Br> & Lt; Br> & L...

regex - Matching everything between html <body> tags using PHP -

I have a script that gives the following in variable named $ content & Lt; Body & gt; & Lt; P & gt; & Lt; Span class = \ "c-sc \" & gt; Dgdfgdf & lt; / Span & gt; & Lt; / P & gt; & Lt; / Body & gt; I have to match all the places in the middle of the byte tag by the name of the match I do the following to match the content between body tags preg_match ('/ / LT; ​​body & gt; (*). ; /', $ content matches $ $); But the $ mathces array is empty, how can I return it to everything inside the body tag You should not use regular expressions to parse HTML. In this case, you have to add your special problem so that the dot newline can be prepared. preg_match ('/ & lt; body & gt; (. *) & Lt; / body & gt; / s', $ content, $ matches); But seriously, use an HTML parser instead. There are several ways that can break the above mentioned regular expression.

ajax - Get HTTP headers with JavaScript -

Can I evaluate the status of the URL on a remote server with Javascript? Is this considered a cross-domain reference, even though I did not find the actual content of a document? If it is not possible with plain javascript, can I perhaps load the document in an iframe? What I would like to do is to check if the HTTP status code is 200 and if the content-type text is / xml, to ensure that the user entered the URL is valid. I am using UII Beat. Can I evaluate the status of the URL on the remote server with Javascript? Not in a standard browser security context (which I believe unless you say otherwise) because it covers almost all usage cases. Is it considered a cross-domain reference, even though I did not find the actual content of a document? Yes. If this is not possible plain JavaScript, maybe I could load the document in an iframe? No, and even if you can not access the Ldn't HTTP header.

MS Enterprise Library validation problem -

I have a problem with the Microsoft Enterprise Library recognition framework. Say we have datetime? Farm. When using NotNullValidator with another validator (we say, day-time validator) I always go into an exception. The scenario is: I pass a blank value NotNullValidator works fine (this determines the verification problem) but then another vendor throws a NullReferenceException, and trying to implement its rules is. I have tried that with a CompositeValidator and logic, if the first verifier has reported a problem, the following assumptions will be ignored (as should be with an argument) but my There is no luck at all. How could it be possible to co-create NotNullValidator with other validators, first of all to each other (obviously)? The above is not currently possible. Unfortunately, the composite validator does not do short circuits. If you need to do this then I will just write a custom verifier, quick and relatively painless.

Localhost 's subdomain with port numbers, how to? -

We know that to add a subdomain to the localhost, we open and edit the host file, such as adding lines : 127.0.0.1 localhost 127.0.0.1 abdulohohost 127.0.0.1 xyz.localhost My problem is that: if I abc.localhost : Browsing to 88 I get the following error: Bad request - Invalid hostname HTTP error 400. Request hostname is invalid. Why not url abc.localhost: 88 browse 127.0.0.1:88? Please help. Because you need an entry for abc .localhost your host In the file. If you already have it, make sure your webserver is listening on port 88. If you are using IIS, make sure you force the correct hostname (abc.localhost).

vb6 - Notes Sessions Vs Lotus Session COM API Issues -

I maintain a large application that talks with very few notes recently in the last few months, some Users are having trouble joining the Lotus Notes session, I use the following code to get the session Set Session = Create Object ("Notes.NotesSession") This error is only popping up for a certain number of users. I have created a sample app with the following line Set session = CreateObject ("Lotus.NotesSession") and for any reason the above line Works. The user says there was some problem installing notes, but after the installation it has been corrected. Why are two class names for the same object and why not work each other. Anything on this will be appreciated :) After installing 5.0.2b, you will see that the operating system registry is given a session name of Lotus names, as shown below. This is the root of domino com class. Notes are still present. Notes and Notes Notes UI workspace, which are OLE roots I do not know why the OLE clas...

networking - Refresh Internal Windows Network State -

I am working on a piece of software that effectively with the server socket on the other side of an XP Windows network bridge Have to talk. Now, it works fine, but if one is part of the bridge, then one of the connections fails (like the physical cable is removed), and then re-installed, the network connection viewer will not update the display. Now, this will not usually be a big deal, however, unless I do not right-click on a network connection, no socket connection can be established, and the 'refresh' reference Select menu entry. On that, all connections in the Network Connection window indicate a solid connection, and my software can install the socket across the bridge. I assume that the Windows software uses some internal Windows network state in the bridge order to decide whether to root the packet with different connections. So, my question is, what does the magic 'refresh' button do exactly? And, in particular, can I automate what I can do in my soft...

Looping over files matching wildcard in CMake -

I want to use CMake to run some tests. All files matching "fixtures / *. Ext" in one exam should be called on a valid script. How can convert the following pseudo-bounds into a real limit? i = 0 for file in fixtures / *. Ext; ADD_TEST (valid _ $ {i}, "validator", $ file) "i = i + 1" done like this: file (globe files "fixtures / * .ext") foreach (file $ {files}) ... $ {i} Get the test name add_test (valid _ $ {i}, "validator", $ {file}) endburn () but this will be for you i Does not count. Is it important that you have an integer suffix for the test? Otherwise you can use the file (...) to extract the filename (without the extension) to use.

How to secure my connection string? powershell + xml -

I store my connection string in the XML file. So I use it in script with powers, is there any way to encrypt it / encryption in any way? I have seen two methods to encrypt in parsers s Only the Windows ID should be noted that it encrypts the original string, can decrypt it (because it uses a Windows login as the key) with a pass phrase of the function Use The limitations of the first method, I use the second, then I am Oded connection string would be stored in a SQL table and will lock down permissions. To make connections I will retrieve the connection string from the SQL table and decrypt using the pass phrase.

c# - Connecting to Lotus Notes from ODBC -

Can anyone help me with the following code: using the system ; Using System.Data; Using System.Data.Odbc; Public class test {public static zero main (string [] ARGS) {ODBC connection iConnection = null; Try {myConnection = new OdbcConnection (); MyConnection.ConnectionString = "driver = {Lotus Notes SQL 3.01 (32-bit) ODBC driver (* .nsf)} Database = MyDB;"; MyConnection.Open (); Console.WriteLine ("success"); } Hold (exception e) {Console.WriteLine (e); } Finally {if (myConnection.State == ConnectionState.Open} {myConnection.Close (); } Console. Readline (); }}} Every time I run this code, I get the following error: System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft ] [ODBC] Driver Manager] The name of the data source is not found and no default driver is specified I have lotus notes with Domino Designer 6.5.5 installed. I have looked around but now I am not able to find any solutions to this problem, some help is really appreciated. Thanks G...

java - Using nameFilters for excluding a particular type of items -

In Eclipse plugin levels, we can pop up the applicable menu for special items depending on the type specified in the field field on the name Are there. But now I want to reverse it, that means I want this pop up menu to show that some types of items (depending on its extension) will not be shown. So it is possible to help badly, thanks I It has not tried, but ... & lt; Viewer ID = "IlexGuiConsole.viewerContribution2" targetID = "IlexGuiConsole.viewerContribution2" & gt; & Lt; Action class = "ilexguiconsole.Action2" id = "IlexGuiConsole.action2" label = "label" & gt; & Lt; Competence & gt; & Lt; & Gt; No; & Lt; Object class name = "ilexguiconsole.Object2" & gt; & Lt; / Class & gt; & Lt; Not / & gt; & Lt; / Competence & gt; & Lt; / Action & gt; & Lt; / ViewerContribution & gt;

Java netbeans binding. how to refresh bindings..? -

I have a jlabel and using Netbeen I have forced it to property on property. The problem is how do I refresh the binding values ​​when the label text is bound, then it has been changed in it.firePropertyChange works but stinks ... I I would like to do something like this. Refresh or. It is refreshing that the label will update the text For example jLabel.text is bound to create some form private someClass someThing; Some value to public string () {someThing.getSomeThing () back); } // When some methoflake is removed from the burn, then its text value should be publicly empty someMethod () {someThing = someThingElse; BindingGroup.refresh () ????? Unfortunately, if you want to use the Beans Binding API, then you firePropertyChange However, I do not know what the problem is? It's a fairly simple change to change your class to: Some private classes; Some value to public string () {someThing.getSomeThing () back); } // When some methof is removed, its text value must be ...

html - Fill window with iFrame and not show scrollbars? -

How can I fill the window to my iframe and not display any scrollbar? It works for IE6, if possible, I would like to do it for all browsers: & lt; Iframe name = iframe1 src = "theSiteToShow.html" width = "100%" height = "100%" frameborder = "0" margin-height = "10" marginwidth = "10" & gt; & Lt; / Iframe & gt; & Lt; Script type = "text / javascript" & gt; Function resizeIframe () {var height = Document.documentElement.clientHeight; Height - = document.getElementById ('frame'). OffsetTop; // Not sure how to get this height dynamically - = 20; / * Whatever you set the margin / padding under your body * / document.getElementById ('frame'). Style Height = height + "px"; }; Document.getElementById ('frame'). Onload = resizeIframe; Window.onresize = resizeIframe; & Lt; / Script & gt; You can use JavaScript only, without any need for JavaScript...

c++ - Modifying items of boost multi index container -

संरचना टैग Enumdef {}; Struct टैगनाम {}; Struct tagWidget {}; टेम्पलेट के & lt; वर्ग प्रकार & gt; कक्षा पैरामाटैग; टेम्पलेट के & lt; & gt; कक्षा पैरामाटैग & lt; int & gt; {सार्वजनिक: टाइप किए गए टैग टैग एएनएमएफ़एफ़ टैग; }; टेम्पलेट के & lt; & gt; वर्ग पैरामाट्स & lt; QString & gt; {सार्वजनिक: टाइप किया गया टैग टैग टैग; }; टेम्पलेट के & lt; & gt; वर्ग पैरामाटैग & lt; QWidget * & gt; {सार्वजनिक: टाइप किए गए टैग टैग विजेट; }; Typedef बढ़ावा :: multi_index :: mult_index_container & lt; पैराराइज़िस्ट्रेशनइन्टर्री, बढ़ावा :: बहु_इनडेक्स :: इंडेक्टेड_ बाय & lt; :: multi_index :: ordered_unique करें & lt को बढ़ावा देने; Boost :: multi_index :: टैग & lt; tagEnumdef & gt;, BOOST_MULTI_INDEX_CONST_MEM_FUN (पैरामाई पंजीकरण प्रविष्टि, इंट, एंम्डेफ़) & gt ;, boost :: mult_index :: ordered_unique & lt; Boost :: mult_index :: टैग & lt; tagName & gt;, BOOST_MULTI_INDEX_CONST_MEM_FUN (पैरामाई पंजीकरण प्रविष्...

Python thinks a 3000-line text file is one line long? -

I have a very long text file that I am trying to use Python. However, the following code: for the line in the open ('textbase.txt', 'r'): print 'hello world' outputs only the following: Hello World It seems as if Python thinks that the file is only one line It is long, though it is several thousand lines long, when it is seen that a text editor gives it by checking the file command on the command line: $ File textbase.txt Textbase.txt: Big-endian UTF-16 Unicode English Text, line terminator with CR Is there something wrong? Do I need to change line terminator? According to , you should add a y in mode: open ('textbase.txt', 'oo') Enables this "" which makes them normal \ n It gives you in the stars. However, doing the right thing is decoding UTF-16 BE in unicode objects in first translating newlines otherwise, a chance 0x0d byte mistake Can result in a 0x0a , resulting in Unicodecode er...

webservice client - Calling web service using javascript error -

I try to make a webservice call using JSSN, when I call the web service without limit parameters I work for it, but when I try to send the parameter, Ive got an error: This is my code: function GetSynchronousJSONResponse (url, postData ) {Var xmlhttp = null; If (window.XMLHttpRequest) xmlhttp = new XMLHttpRequest (); Otherwise if (window.ActiveXObject) {if (new ActiveXObject ("Microsoft.XMLHTTP")) xmlhttp = new ActiveXObject ("Microsoft.XMLHTTP"); Else xmlhttp = New ActiveXObject ("Msxml2.XMLHTTP"); } Url = url + "? Rnd =" + Math.random (); // ensure the non-cached version xmlhttp.open ("POST", url, false); Xmlhttp.setRequestHeader ("content-type", "app / jason; charset = utf-8"); Xmlhttp.send (POSTDATA); Var response text = xmlhttp.responseText; Return feedback lesson; } Function test () {var result = GetSynchronousJSONResponse ('http: // localhost: 1517 / Mysite / Myservice.asmx / myProc', '{...

algorithm - Construct a Tree -

How do I build a tree, so that the inside and the preder are transverse? I'm just searching for a skilled algorithm. A clear copy and paste: Question: p_1 , p_2 ... p_n poster should be transverse and i_1 , i_2 ... i_n Inverters can be traversal from postorder traversal They are the root of the tree, p_n find this element in Insider Traversal, i_1 , i_2 ... i_k-1 say p_n i_k + 1 ... i_n . From Inner Travelers we find all the elements in the left subsection, i.e. i_1 , i_2 ... i_k-1 and in the correct subtree, i.e. i_k + 1 ... i_n . element P_n (and element i_k == p_n ). Correct code in p_j in p_1 , p_2 ... p_j ... p_n-1 where p_j is an element in i_1 , i_2 . . i_k-1 . This is the root of the original tree's left subtitle. Split p_1 , p_2 ... p_j and p_j + 1 ... p_n-1 and i_1 , i_2 ... i_k-1 and i_k + 1 ... i_n . You now have two repeaters representing two sub-parts post ...

Selenium clicks not working with GWT -

I run the GWT OBF (this is not a problem), but when I tried both Selenium (IDE and RC) Use clicks are not registered. The component I am trying to click is a , but nothing happens. For example, in the IDE, I am sometimes able to register a click on different tabs (very limited in & lt; div & gt; ), but (very few, one in 50 clicks) Help is not able to run the exam again with any resulting click !!! This is a duplicate but here's my answer again. Unfortunately, there is a look on this matter, I have not been able to click with Selenium. I have seen many people complaining that they can not use Selenium with GWT, and one of the more famous teams is this issue. The Google Wave Development Team has started using WebDrive to test its code. Now the good thing is that there is currently a project to merge Selenium and WebDriver because they have their strengths and weaknesses and many of them are in different areas, so the final product will be amazing. I believe t...

ruby on rails - Does ActiveRecord::Base.connection.execute only execute a single statement at a time? -

I have a bunch of SQL statements to execute on a database (I'm doing things that are used by rail methods Does not provide, as far as I know: creating ideas, adding foreign keys etc. It is mostly for non-rail interaction with data.) In short, I have the following: Sql = "statement_1; statement_2; statement; ;;;;; ActiveRecord :: Base.connection.execute (sql) or with new lines, such as: sql = (Clearly, these statements were kept in holders only , But according to my tests, I do not accept their content.) In any case, only the first statement is executed and the other people are not given attention. What is happening? Even if I try more than one at a time, then I only see the effect of the first statement. Or do I need to execute each one separately? A set of statements is coming from a file, so it would be good to just load and execute the contents of the file. If I can adopt better strategies, then I will be interested in it. I expected that it would shed s...

performance - Why should recursion be preferred over iteration? -

The change is more demonstrative than recurring, right? Then some people believe that why is that recurring better called (more beautiful in their words) than recurrence? I do not really see why repetition is not allowed in some languages ​​like Haskell and recycling is not encouraged. Is it not absurd to encourage a bad performer (and even when the higher performing option is available for i.e. recursion)? Please put some light on this thanks. The change is more demonstrative than recurring, is not it? Not necessarily this concept comes from languages ​​like many, where a function is calling, recursive or not, there was a large overhead and a new stack frame was created for each call. This is not the case for many languages, and recursion equally or more demonstrators with a recurring version. These days, some compilers repeat some recursive constructions in the revised version, or reuse the stack frame for tail recursive calls.

localization - Alternatives to gettext? -

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

flash - as3 mouseChildren=true does not hold the name of the button created -

के लिए (var l: int = 0; l & lt; anXML.length (); l ++) {aButton = new btn_secondTier (); aLocation.addChild (aButton); // var aButtonDefaults: बटनडिफ़ॉल्ट्स = नया बटन डीफॉल्ट (एट्यूटन); aButton.y = एल * 24; aButton.name = anXML [l] .attribute ( "आईडी"); aButton.title_txt.text = anXML [l] .theTitle; aButton.addEventListener (MouseEvent.ROLL_OVER, onDropOver); aButton.addEventListener (MouseEvent.ROLL_OUT, onDropOut); aButton.addEventListener (MouseEvent.CLICK, onClick); aButton.mouseChildren = true के लिए (var k: int = 0; k & lt; anXML [l]। ThirdMenu.length (); के ++) {bButton = new btn_thirdTier (); aButton.thirdContainer_mc.addChild (bButton); bButton.addEventListener (MouseEvent.ROLL_OVER, onmouseover); bButton.addEventListener (MouseEvent.ROLL_OUT, onmouseout); BButton.buttonMode = सच; BButton.useHandCursor = सच; bButton.y = k * 24; bButton.name = anXML [l] .thirdMenu [k] .attribute ( "आईडी"); //bButton.addEventListener(MouseEvent.CLICK,onClick); aBu...

objective c - How can I store a UIImage in an NSDictionary? -

मैं एक NSDictionary में UIImage को कैसे संग्रहीत कर सकता / सकती हूं? हाँ आप कर सकते हैं: NSMutableDictionary * dict = [NSMutableDictionary DictionaryWith क्षमता: 1]; UIImage * img = ...; [डिक्ट सेट ओब्जेक्ट: आईएमजी फॉरके: @ "एके फॉर योरमेज"]; UIImage * imgAgain = [dict ऑब्जेक्टफोरकी: @ "एककीफ़ोरआइरेज़"];

sql - Using a Right Outer Join to Match Records from Two Different Databases -

SQL 2005: I'm trying to insert an external one that has two separate databases Can pull records from My purpose is to determine which records in database B are not recorded in database A. When I tried to run the query, then it is below the error that I can not believe how this error can be found: 'Tables or Function' Asset Comp Type-ApprovalProperty_LinkTable 'and' TA -Reporting debob.asset comp typeEqualementProperty_LinkTable 'The only highlighted names are I. Use to isolate correlation names. AssetCompType_EquipmentProperty_LinkTable includes the right external from [Database A]. Dbo.AssetCompType_EquipmentProperty_LinkTable [Database A] on. Dbo.AssetCompType_EquipmentProperty_LinkTable.AssetCompTypeID = [Select from AssetCompType_EquipmentProperty_LinkTable] [ Database B] .dbo.AssetCompType_EquipmentProperty_LinkTable.AssetCompTypeID It seems that you should distinguish between tables. Try it with: Select from AssetCompType_EquipmentPrope...

dialog - Add a button to the Dynamics AX About screen -

There is some sample code to add any one button (with one click method while popping up a dialog) About the screen in Dynamics X? Thanks About the Dynamics X screen is just a predefined form SysAbout . You can change that form.

c# - How to make a unit test mock of an object with non-virtual functions -

I have a C # class that is generated using the wsdl.exe tool that looks something like this: / P> Public partial class soap: System. Web. Services. Protocol. Soap HP Client Protocol {Public Soap Type Enam Asking Questions () {Object [] Results = Come back to it. ("AskServerQuestion Ask"); Return (SOAPTypeEnum) result [0]; }} There is some thin wrapper code around me which monitors the result etc. Is it possible to use any object to make fake sapphire squares and make fun of the frameworks? The result of each call for thin wrapper works? I can not make the AskServerQuestion () function virtual because it is automatically generated by the wsdl.exe tool. The way I completed it, instead of injecting an ISOAPAP, where the ISOAPAP interface is automatically The generated SOP imitates the API. For your case: Public Interface ISOPAP {SOAPTypeEnum AskServerQuestion (); } Then, take advantage of the fact that the generated Soappy class is partial, and add it ...

web services - Delphi-7 WSDL Importer Error "The following types, referred to in the WSDL document are not being represented..." -

डेल्फी -7 में त्रुटियों में NetSuite WSDL आयात करना: // निम्नलिखित प्रकार , डब्लूएसडीएल दस्तावेज़ में संदर्भित इस फ़ाइल में // का प्रतिनिधित्व नहीं किया जा रहा है। वे या तो अन्य प्रकार के उपनामों [@] का प्रतिनिधित्व करते हैं या दस्तावेज में घोषित [/ उत्तरार्द्ध श्रेणी से प्रकार // आमतौर पर पूर्वनिर्धारित / ज्ञात एक्सएमएल या बोर्लैंड प्रकार के मानचित्र; हालांकि, वे // अस्वीकृत डब्लूएसडीएल दस्तावेज़ों को भी संकेत दे सकते हैं जो स्कीमा प्रकार को घोषित करने या आयात करने में विफल रहे हैं। // ************************************************************* ************************************************** *** //!: Login - "कलश: संदेश_2009_2.platform.webservices.netsuite.com" //!: लॉगिनरेशन्स - "कलश: संदेश_2009_2.platform.webservices.netsuite.com" //!: ApplicationInfo - "कलश: संदेश_2009_2.platform.webservices.netsuite.com" WSDL है: या इसे सभी XSDs के साथ डाउनलोड किया जा सकता है से: मैंने यह धागा देखा, लेकिन मुझे नेटस्यूट प्रमाणपत्र के साथ कोई सम...

java - Does spring form taglib disabled attribute really have to resolve to a string? -

I have recently been playing with spring form taglib and came face to face with a very troubling incident. & lt; Form: Select path = "whatever" disabled = "$ {true}" & gt; will provide a selected element which is not disabled & lt; Form: Select Path = "Whatever" disabled = "$ {'true'}" & gt; will render a selected element which is disabled. This indicates to me that the tag expects a string in that attribute, and possibly the Boolean values ​​ have the effect that I which happens quite often in our system. Am I just missing part of the functionality of the form taglibs? Is this a legitimate design decision? a bug? OK, I dig some other around this one, because the work was also visible around Unattractive. The problem was that JSP was evaluating L, and using "true" is comparing it with the eyes of the result of that assessment. Par value Comparison Using a method, a string for a...

floating point - Check for equality on a MySQL Float field -

I have a Joomla system and I am trying to change the search so that it fixes the temporary point values ​​in the database properly Finds So, I have a query that was created on runtime that looks like this: Select 'column_8' from 'some_table' where 'some_float_field' & Lt; = & Gt; '2.18' This does not work, it does not match anything at all, even though I see records in DB with this value. Do this instead: Choose 'column1' from 'some_table' where 'some_float_field' & lt; = & Gt; 2.18 There is no luck, so I tried casting a decimal (float does not work for some reason), so I tried to do it: select 'Some_table' to 'column1' where 'some_float_field' & lt; = & Gt; CAST ('2.18' AS DECIMAL (20, 2)) There is no dice ... Keep in mind that> = or & lt; = Gives fair results, just & lt; => Gives me problems How do I get the similarities to work here...

ruby on rails - How can I display the correct created and modified times in my webapp? -

I am working on a rail application which is similar to a blog, creating user entries How do I set time storage and display I am trying to know what to handle. I have read about the time zone support of the train. It's great but it was not told what my app should do. It looks only on those cases where you want to store the stored time in the current user's time zone. On the contrary, I want to effect ... A user creates an entry in California at 10:00 After some years he will go to New York and then at some point his old entry will be seen. "Created" Date "should be called 10:00 AM" He does not care about time zone. He just wants to know what he felt about the time of the day when he wrote the entry. If he displays the "modified" date in New York, then again, his subject-matter of the day when he edited. (Suppose it went to "priority" and changed the setting of its time zone settings.) Also, for completeness, able to r...

twitter - User authentication with XMLHttpRequest works in IE, not in Chrome? -

The following functions work in IE, but not in Chrome: function doStuff ( ) {Var Requests = New XMLHttpRequest (); Request.open ("post", "http://twitter.com/statuses/update.json", true, "USERNAME-here", "password-here"); Request.send ("Status = Update Status"); } Chrome generates the following request Note: The authorization header is unavailable: Options /statuses/update.json HTTP / 1.1 Host: twitter.com Connection: Keep -Janda User-Agent: Mozilla / 5.0 (Windows; U; Windows NT 6.1; N-US) Apple WebKat / 532.5 (KHML, like GECO) Chrome / 4.0.249.78 Safari / 532.5 Access-Control-Request-Method: Post Origination : File: // Access-Control-Request-Header: Accept Content-Type: * / * Accept-En Oding: gzip, deflate, sdch acceptance-language: en-US, en; Q = 0.8 Accept-charset: ISO-885 9-1, UTF-8; Q = 0.7, *; Q = 0.3 I get the following response (http 401): HTTP / 1.1 401 Unauthorized date: Wednesday, 03 Feb 2010 00:39:33 GMT Serve...

vga - I need an ARM 9 Development Board -

Does an ARM 9 development board know Ethernet, USB and a VGA or TV? I will choose a hawkord () Open-RD is an interesting tool, but very large. Hawkboard offers ARM 9 and a TMS 320 DSP (OMAP L 138). It provides all the options you want and even SATA too.

php - Get the maximum value from an element in a multidimensional array? -

I am trying to select the maximum value for a particular key in a multi-dimensional array. I have a problem in the question "being" ... So, the array (which is more than I am posting here) [ 0] = & gt; StdClass object ([ID] => 70 [cust] => 4 [dnum] => 1 [top] => array ([0] => 66) [1] = & Gt; StdClass object ([ID] => 43 [cust] => 42 [dnum] => 2 [upper] => array ([0] => 77)) [2] = & Gt; 0 [upper] = & gt; Array ([0] => 99)) P> I am trying to find the maximum value of "dnum" in the entire array, so in this example, $ max = 2. I know that the maximum function allows me to do this, but I'm not sure how the reference dnum element without putting the whole thing in a foreach loop, and if I do this, then the maximum function to use Will not, will not it? So, I can not do this at all: $ max = max ($ myarray [] - gt; dnum); Is there any way to do this without rebuilding the entire array? $ max = ...

oracle - Please recommend a way to deploy into a Linux box in a LAN environment -

Have you struggled before Linux deployment? I use a dedicated Linux box without any network configuration as simple as possible, for different configurations (missing libraries and build tools) and better automatically let me know another The difficulty will be to consider that I have to connect to the Oracle database. What will be the best way to deploy? I can use Java I will need to install JDK, and most of this will solve it Another major problem is That's the code currently in Java is poorly written and slow. I'm not sure that I need to install installclicks to connect to Oracle under Linux I could use C Use DPKG to use more The Linux box is most likely a Ubuntu server, but I'm not sure which version Has been installed I can not use the apt-get , but I can copy all the packages I / Li> I know who I am I can use the dpkg -s to check the packages from, but I'm not sure I can remember the dependency. I think and use static linki...

Searching for the Right Pattern (iPhone/Objective C) -

Edit: I was suggested that I apply strategy pattern (), which I think I do this so that many Objects implementing a representative protocol in Objective-C, it fulfills the encapsulation required by me, while still allowing me to have a Generic View Controller in memory. I have a section called Expansion Discreet Controller that displays information about different types of data - waypoint, trails, maps, photos. Right now, this class is 1400 lines long and there are some dirty switch statements in it: For example: - (zero) ChangesTimeview {ID Sender {if (self. Track) {[Self-transformed Trinimaview: [Sender selected Segment index]]; } And if (self. Waypoint) {[Self-changePininiView: [Sender selected partition]] ;; } Else if (self.photo) {[Self Change PhotoMiniView: [Sender Selected SegeIndex]]; } And if (selfmap) {[Self changemaymewviewview: [sender selected Segment indies]]; }} If I create the sub-sections of the DetailViewController, but my puzzle is to keep the ViewCon...

iphone - How to disable the whole view while fetching a request? -

I am working with an iPhone app in which I am displaying images in a scroll view. The "gallery" feature is working well, but in an extraordinary situation, I want the scene to be locked, as long as I can not load images. So the question is how can I disable the view and it is being brought, images Thanks A great reusable example on the site of Matt Gallagher Is under a very generous, open license If this is not exactly what you want, it is probably very close, it documents well, and talks very well about the design in the post.

Is there a way to "link" facebook to your third-party website -

I was wondering if there is any way to link your Facebook account to another website, so you have to log in Not every time to post just one status update Clarification: Sorry, I'm typing this fast. I want to link the profile while signing up. Here's what I want to do .. Create an application where you sign up for that app .. You also have the option to link your Facebook profile to this account. If you decide to link it, you can post and update your Facebook profile. You will not need to connect to Facebook again after linking to the app. You only have to enter third party applications. Thanks, Matt Mueller Explanation requires you Can logging links to another website at What are you really trying to do?

android - Rotating an ImageView within a Layout... how? -

I have a layout with an image (embedded in an image view) I need to rotate the image (let's go Say) 90 degree CCW I've written the code to rotate the image ...: Expands the main activity activity of the public class {Private image view mImageView = null; Private Animation mRotateAnimation = null; Override public null on @reate (bundle saved instainstate) {super.naught (savedinstenstate); SetContentView (R.layout.main); MImageView = (ImageView) findViewById (R.id.my_image); MRotateAnimation = AnimationUtils.loadAnimation (this, R.anim.my_rotate_90); } @ Override Public Boolean On-Touch Event (Motion Event Event) {if (event.getAction () == MotionEvent.ACTION_DOWN} {mImageView.startAnimation (mRotateAnimation); Back true; } Return super. Tonentange (event); }} The image spins 90 degrees easily, but then comes back to its original state. This Android document says what will happen after the animation is over. Probably, on the notification ending on the animation, I want...

Whats the advantage of pre-compiling ASP.NET project using aspnet_compiler.exe? -

aspnet_compiler.exe का उपयोग कर एक asp.net प्रोजेक्ट को पूर्व संकलन का लाभ क्या है? इसके अलावा, क्या यह संभव है कि किसी रिमोट सर्वर पर तैनात होने के बाद संकलित प्रोजेक्ट में त्रुटियाँ होंगी? टीम द्वारा उठाए गए एक मुद्दा यह है कि शायद मशीन जहां परियोजना संकलित हो और जिस सर्वर पर परियोजना को तैनात किया जाएगा, उसके पास अलग-अलग सेटिंग होंगी, यह परियोजना गलती से चलने या गलत तरीके से नहीं चलाएगी क्या किसी ने इस स्थिति का सामना किया है? मुझे दो सिद्धांत कारण मिलते हैं: समय त्रुटि जांच संकलित करें। पहले पृष्ठ पर कम्पाइलिंग के ओवरहेड से बचें। इनमें से सबसे अधिक विकास की अवधि में अधिक त्रुटियों की पहचान करने की अनुमति मिलती है (जैसे टाइपो में संपत्ति नाम) की बजाय मौत के पीले स्क्रीन प्राप्त करने के लिए अगर सवाल में कोड एक त्रुटि पथ है, तो परीक्षण कवरेज को सुनिश्चित करना कठिन हो सकता है ताकि चीजें इनके माध्यम से निकल सकें। यह गारंटी नहीं दे सकता है कि उत्पादन में कोई त्रुटि नहीं होगी। स्पष्ट रूप से तर्क त्रुटियों को समय के संकलन में नहीं मिलेगा, और न ही त्रुटि से निपटने में (...

c++ - Iterator for custom container with derived classes -

I have a custom container that has been implemented in two different ways, but with one interface. Something like this square vector {virtual Iterator start () = 0; Virtual Iterator and () = 0; ... // some other functions}; Square vector impa: public vector {start of theater () {return m_data.begin (); } Iterator and () {return m_data.end (); } Private: SomeFloatContainer m_data; }; Square vector IMPL: public vector {starters (starters) {return m_data.end (); } Iterator and (); {Return m_data.end (); } Private: std :: vector & lt; Float & gt; M_data; }; I need an integrated interface for the Iterator, so that I can use it in the base class. Any ideas? I have already run this problem on my own. There are several ways to solve your problem, but you should leave the idea of ​​Venture Base Class. Copy about the way C + STL container is designed. STL contains concepts instead of base class std :: vector is a model of a container concept, but The container is ...

javascript - Cufon text z-index (IE6 and IE7 stylish select box bug) -

I am changing some text with cufon on my page and I'm a stylish selection box plugin (jquery stylish selection box plugin) I am selecting the boxes. The problem is that, in IE6 and IE7, the selection of the box goes under the cufonized text (the selected box is actually a and lt; ul & gt; ) is. Anyone before this issue? I had to face the same problem with a drop down menu, through which Cufon h1 IE 6 & amp; 7. The element that UL has been kept, fixes the problem! Cheers

database design - Allowing redundant data in the DB for the sake of performance -

Assume that you are preparing a DB schema for the next stack overflow, and especially the part of the schema that handles the question rating is . I think that you will use a table like this: Ratings (question_id, user_id, rating) ... which record both ratings and ensure that a user has the same Do not vote for the question. This table can handle rating statistics alone but it can be a slow question. In view of the performance, will you consider collecting the ratings for each question in question? The table, even if this data will be inaccurate because it is derived from the data in the rating table? i usually starts with a normalized model, the sum of the ratings in the query table Does not normalize Then, when the application is working very well, then I will do some performance testing to decide that the application loads a lot of load - than the load I expect to be in production. If this does not handle the load properly, then I will check the barriers - and t...

how to start building cooliris in openGL and C++? -

I've seen the post where someone has commented that coolries can be made using C ++ and OpenGL I have just started learning OpenGL. I wanted to ask how to know about creating it? First of all you should do the codec from your stream in the frame by frame stream in your text then each The frame in which quad becomes or renders with the next frame in the form of texture. While rendering, you can apply shaders to make something ridiculous. You can get some tips Good luck!

Beginning ASP.NET and C# -

I think the title gives away most of my questions, I have a university project in which I have to design and make a website Php or asp.net I have chosen asp.net path because i am very familiar with php and i prefer c # to php .. does anyone please visit something to refer to some better online places to learn , And recommend that some books Do not do it, thanks. Many questions from StackOverflow are:

parameters - XSLT: How to pass a node value to a custom xsl:function ? -

I have a simple task that I want to pass the value of the node. & lt; Xsl: function name = "f: getdatetimetype" such as "": "xs: string" & gt; & Lt; Xsl: as the ultimate name = "code" = "x: int" /> & Lt; XSL: Select & gt; & Lt; Xsl: when test = "$ code = 137" & gt; & Lt; XSL: Text & gt; DocumentMessageDateTime & lt; / XSL: text & gt; & Lt; / XSL: When & gt; & Lt; XSL: otherwise & gt; & Lt; XSL: Text & gt; Unspecified & lt; / XSL: text & gt; & Lt; / XSL: otherwise & gt; & Lt; / XSL: Select & gt; & Lt; / XSL: Function & gt; How can I do this? I do not think I can do this: & lt; Xsl: Select the value = "f: getdatetimetype (& lt; xsl: value-selection =" DTM01 / DTM0101 "/>)" /> you & lt; Should go with xsl: select the value = "f: getdatetimetype (DTM01 / DTM0101)...

c - Trouble with reversing the order -

I am trying to print the binary number in C, but I have the dilemma that its printing in the reverse order Its being done. I have defined a statement that tell me how many pieces are, in this way I can work back from the previous bit I get the nth bit of I can use (Price & gt; & gt; Cooler of bits) & amp; 1; In some loops, I call it totalNumberOfBits == 0; Such as while (totalNumberOfBits! = 0) {putchar (n> columnmer of bits) & amp; 1; TotalNumberOfBits--; } Any hints will be given - I think that I can stop the mood, I have an attitude that prints the number right behind it, but iam to avoid this Trying to find a way thanks while ( TotalNumberOfBits! = 0) {putchar (n & gt; total number of bits) & amp; 1; TotalNumberOfBits--; } OK, you were very close to code (and actually already printing bits in the correct order), however, there were 3 minor errors first, when the Visual Studio The compilation gives me the following warning: ...

visual studio 2010 - Cannot add actions to custom buttons on word "Text" popup menu -

I have a real hard time I have visual studio I am using 2010 Beta, a word template in Visual Basic.Net (.dotm) I'm trying to add my own buttons on the text's popup / context menu of the word. can not be found macro or been disabled in your macro security settings I: But if I use .OnAction property, I got an error in the words stating the following Get the message 'I'm assuming this sub is not receiving the error because I can not find the sub I'm trying to call (the name is correct and it stays in the same class). I have tried a different approach which is withEvents, although the last button associates the event with I add to the menu bar. A third approach I was attempted was AddHandler, so that no one else at a fire once. Here is the code I use: activeDoc.CommandBars then each myItem myItem.Type = Microsoft.Office.Core.MsoBarType.msoBarTypePopup and myItem. Name = officeMenuName then shortMenu = Me.activeDoc.CommandBars (myItem.Index) .Controls ...