Posts

Showing posts from February, 2013

mysql - PHP/SQL: Using only one query, SELECT rows from two tables if data is in both tables, or just SELECT from one table if not -

I have two rating / vote tables for user votes and figures and second for external votes. The table of external votes always contains data as it contains DEAFULT = 0, but the votes of users are only included in that data if any user has voted for that specific ID. Then I do something like this: $ sql = 'Selection ratings_state.wots, ratings_state_at_tai, rating_stats.view, ratings_state.fav, rating_state.technology, ratings_interest WAT, rating_credited_rate_RATINGS, ratings_like WHERE rating_stats.imdbid =? And rating_state.imdbid = ratings_form. Imdbidircr 1 '; When I'm available, I want to select data from both tables or not just the second (external vote) table. How can I do this without a new query? select ratings_state.wots, ratings_stats_atata_wua, ratings_stats.view, rating_stats rating, stats_stats.wish, Ratings_excess.votes, ratings_external_out_value Rating_Returns out of index_rights_stats_stats_state ImdbID = ratings_external.imdbID WHERE ra...

c# - wpf set sorting programmatically, so that the header is toggled as sorted -

मुझे एक wpf टूलकिट DataGrid के साथ एक समस्या है। मेरे पास है तीन स्तंभों के साथ एक आइटमसॉर्स : प्रथम नाम अंतिम नाम पता सी # कोड में मैं सेट सॉर्ट दिशा और किस कॉलम को इस तरह से सॉर्ट करना है: ICollectionView दृश्य = संग्रह ViewSource.GetDefaultView (dataGrid1.ItemsSource); view.SortDescriptions.Clear (); देखें। सेटल डिस्क्रिप्शन। जोड़ें (नया क्रमवार वर्णन ("अंतिम नाम", लिस्टस्र्टडायरेक्शन। अतिक्रमण)); view.Refresh (); वास्तविक सॉर्टिंग में कोई समस्या नहीं है, लेकिन हेडर दृश्य शैली में है अगर उपयोगकर्ता शीर्षक पर क्लिक करके किसी स्तंभ को बदलता है, तो दृश्य शैली बदल जाती है, लेकिन दृश्य शैली यह इंगित नहीं करता कि स्तंभ प्रकार का विवरण प्रोग्रामेटिक रूप से सेट किया गया है। यह क्यों है, और मैं कैसे हेडर टॉगल कर सकता हूँ ताकि यह क्रमबद्ध रूप में दिखाई देगा? मैंने इसे पहले नहीं करने की कोशिश की है, लेकिन मुझे लगता है कि आप कॉलम की सॉर्ट डायरेक्शन संपत्ति सेट कर सकते हैं। int columnIndex = 0; This.dataGrid1.ColumnFromDisplayIndex (columnIndex) .SortDi...

RegEx for parsing SQL query in C# -

I have to type the RegEx to parse the SQL join query that is given as a string. Can anyone help me because I'm new to this Thank you very much This is my problem: string query = "selection table 1.column1, table1.column2, table2.coulmn1, table2.column2 table 1 inner Table 1.column5 = table2.column5 "on Join Table 1; What do I need by inserting all the important data into different variables: class1 = table1 string class2 = table2 stringforeignkey1 = table1 .column5 string Join Oregiga 2 = Table 2.column5 list & lt; String & gt; Attributes1 = table1.column1, table1.column2 list & lt; String & gt; Attributes2 = table2.column1, table2.column2 // COMMENT I realized that I made a mistake in the SQL query so there would be a section. I can force a user to provide the right syntax, so that there is no problem. The thing I have not mentioned is that more than one can join > By dragging on the comments, because I think this is the corr...

java - Offical way to setup JAVA_HOME environment variable in Ubuntu server? -

Suppose I am compiling JDK to the download source from ORCL. Now to JDK / opt / oracle / jdk / I am exporting java_home and path environment variables in / etc / profile. Is this the suggested way? I am exporting path environment variables in JAVA_HOME and / etc / profile. There is a way to do this but assume that different users (or individual applications) on the machine may need to use different Java installations, so other options users To set environment variables in their personal shell profiles, and the applications that you want to set in the wrapper script, "init.d" script or whatever. Choose the "fit" method that best fits your needs best.

sql server - generate schemas for sql 2008 xml bulk load -

Hey guys, I have to import large size XML data files (some of them 500 MB size) in SQL 2008. I'm planning. To use sqlxml bulk load for the same Although I am only interested in some elements of the XML data file, not every element is my question that in the Schema file I need to mention every element in the XML data file or only those Elements that I'm interested in loading The second question is: Is there a tool by which

java hashmap key iteration -

Is there a way to print all the values ​​again and for each key through a Java Hashmap, which is a part of the Heshm with , for keys to run, to iterate values For added and key / value pairs. Note that all of these maps have been directly seen which were used to get them, so you do any of the three modifications or the map is all the other Will also reflect

Which .NET version is my PowerShell script using? -

I want to use .NET in some PowerShell scripts, I'm about to write - how do I know / announce / And it's possible that with which version does my script run .net? On PowerShell 2.0, just take a peek at the $ PSVersionTable variable: ps & gt; $ Value Adder Name Value --------- CLRVersion 2.0.50727.4927 Build Wars 6.1.7600.16385 PSWerson 2.0 WSMtech Version 2.0 PS Console Versus {1.0, 2.0} Serialization Version 1.1.0.1 PSR Remoting Prototol Variance 2.1 on PowerShell 1.0, use [System.Environment] :: version : PS & gt; [Environment] :: Version major minor construction revision ----- ----- ----- -------- 2 0 50727 4927

sharepoint - web applications not showing up during configuration of shared service provider -

When I tried to create a shared service on a shared service server 2007 does not appear during the web application's shared service configuration I had predefined my user name instead of network services at that time the web app was listed but this error page comes "Provisioning failed: Windows NT user or group 'DOMAIN \ adadmin' was not found. Check the name again." Do you use SharePoint server accounts on the same domain? Does the account exist? Is the account active? (I.e. disabled or unlocked)

version control - How do I use Mercurial to merge in changes made outside the repository? -

I joined the team with Greenfield Code. When I joined, they did not have a normal store, and they emailed me their latest tarball (yes, I know ...) I'm closing the torb, making changes and adding files I am Now there is a Mercurial repository (Hooray!) In the team, and it remains with the same code that includes the recent changes made by other people. In other words, I have the original Tarbald Code directory, my changes in my directory, and the third directory has an HG clone, where the original turbaded code is the common ancestor. What's the best way to merge my changes in the Mercurial repository? There is no history of seasonal general ancestor. I am a new brand for mercury. My VCS experience is with CVS, Prabal, and some SVN. Can I create two more local HG clones and rewrite one with the original code Can I do the other with my changed code, and to merge mercurial in any way? (And if so, how?) Or should I consider using a free merge tool and then copy the merged ve...

sql server 2008 - joining views with previous left joins and not multiplying rows -

मेरे पास प्रपत्र के 2 विचार हैं: - दृश्य 1 चुनें foo.id AS Id foo LEFT JOIN बार से foo.id = bar.id पर - परिणाम आईडी 1 1 2 2 ... --View2 SELECT foo.id के रूप में आईडी Foo LEFT JOIN MANCHU ON foo.id = MANCHU.ID - परिणाम आईडी 1 1 2 2 ... अब मैं दो दृश्यों में शामिल होना चाहता हूं ताकि व्यू 1 से पंक्ति # 1 व्यू 2 की # 1 पंक्ति में शामिल हो। यदि मैं View1.id = View2.id पर शामिल हूं, तो पंक्तियां एक-दूसरे से गुणा करेंगी, जो कि मैं क्या नहीं चाहता। क्या कोई तरीका है कि मैं प्रत्येक दृश्य में एक अनन्य संख्या के साथ एक कॉलम जोड़ सकता हूं जिसे मैं शामिल कर सकता हूं? या किसी अन्य समाधान? अग्रिम धन्यवाद। आप निम्न के रूप में जोड़ सकते हैं प्रत्येक दृश्य में एक कॉलम: ROW_NUMBER () से अधिक (आईडी के अनुसार क्रम) अनुक्रम के रूप में आपका दृश्य जोड़ने के बाद View1 होगा। = View2.sequence लेकिन, आपका इरादा अभी भी अस्पष्ट है ऐसा प्रतीत होता है कि आप प्रत्येक दृश्य में पंक्ति 1 में शामिल होना चाहते हैं, और प्रत्येक दृश्य में पंक्ति 2 में शामिल होना चाहते हैं, आदि। आप ने जो दिखाया...

xsl fo - XSL-FO: Table layout tweaking -

Here's my problem, I have such a table This is a column header (A). Another column header (B). Header (C) | Another column header (D) ------------------------------------------- - ------------------------------------------------- - ---- Value A | Man B Maan Si | Value D This thing is that the value in columns A and C can be very long, whereas values ​​in B and D can be very low. I have no problem wrapping the headers or values ​​- so ideally I would like to show a typical table like the following: This is a column header (A). One more Header (C) | One more Column | | Column | Header (B) | | Header (D) ---------------------------------------------- -------------------------------------------------- ---------- Value is very long and verbose is, bla bla | | Man B Mana C - It is quite long. Value De Blah Blah Blah - Wrap it. | Basically, I want to wrap the value in column header table data cells to priority . I can not apply the wrap-option = "no-wrap" attribut...

How do you convert 3 bytes into a 24 bit number in C#? -

I have an array of bytes, which I read from the header section of the message. These bytes contain the length of the message. Never exceed 3 bytes and they are ordered from LSB to MSB. So in the example below, there are 39 LSBs and 2 MSBs. var data = new byte [] {39, 213, 2}; In the above example, how can I take those bytes and convert to a number (int, short, etc.)? var num = data [0] + (data [1]

c# - Admins having to reload page to see admin features (question about cookie location) -

I am creating a custom cookie and overloaded the initial class and all the good stuff. My cookie works correctly and I have been able to successfully achieve users, but only after the administrator has signed in to see the administrator, the administrator needs to reload the default page. Once they see a new page on my site and return to the default page, the button is there. I have read somewhere that the cookie has finally been created and the answer to the HTTP is something to do with TBH, I'm new to this stuff and it did not understand how it works, but I See how this affects my program. I am currently making my cookie in the page load of my default page. Am I doing this somewhere else, perhaps in the log-in page? I tried, but this problem still exists. Am I missing something? Thanks for the help and I would be happy to clarify anything. You can try setting up and redirecting cookies. This is a somewhat standard practice during login, Redirect will cause a fresh ...

php - E-mail doesn't arrive! HELP -

I am having a problem with sending e-mails from Drupal (Eubercort). I do not think this issue is in Drupal, because the e-mail has been sent correctly to my e-mail address, but it is not coming to the company's e-mail address. Do I have to understand what is the problem so far: I received an e-mail from Drupal at my address (hence Dupl + server I have sent an e-mail to the company address (this works) I have another email Removed spam filter at address (Nospam filter disabled). I'm waiting for the end of the day, hoping for a server interval .. but I do not think so because I used to make 2 points and it arrived immediately ... Any tips? Thanks Update : Server log: 2010-07-27 17:48:02 1 odmnu-20005 ft-as If some email is happening, then maybe this is not a drupe or PHP problem. Check your mail server log.

c# - to sort a collection that I do not know what type does it have? -

Is there a way. I can sort my collection in .NET when I do not know how the objects in run-time I Any thoughts? You need to find some ways to compare elements: Generally ask for ICOMperbal: class MyCollection & lt; T & gt; Where T: Icom Parabal & lt; T & gt; {} or use IComparer, either for the sorting method or the constructor: class MyCollection & lt; T & gt; // where T: icomperbal & lt; T & gt; {Zero Sorted (ICMPear Comparator) {If (comparer.Compare (a, b)> 0) {...}}}

python - Set custom 'name' attribute for RadioSelect in Django -

I am trying to set a custom 'name' attribute in the digenfo form. I have been trying this kind of approach: class BaseQuestionForm (forms.Form): question_id = forms.CharField (widget = forms.HiddenInput) answer = Forms.ChoiceField (option = [...], widget = forms. Radios select) and then on answer : ' - setting : form.fields ['answer']. Widget.name = 'new_name' But this does not work, and the name is always set as the field name on 'Answer'. Is there any way to do this? First try: I believe the widget The name is not (well, I'm pretty sure; -)) What do you want to do, you have to: form.fields ['new_name'] = form .fields ['answer'] del form.fields ['answer'] If you simply use {{form}} in the template Anyway, the new_name will go to the bottom of the field (this dictionary is ordered). DJ ango creates form field names in the template named after names.

javascript error in jssh in firefox 4.0b1 -

This javascript is compiled via jssh and creates a strange message that is built for the new Firefox 4.0 Beta 1. Here's the code (sorry that it is a bit messy) In a nutshell, the code sees all the frames of a Firefox window, which is a test page for our unit tests for an entity, which has an octave in which a goodbye wanderfill instead of saying goodbye Unsuccessful response back we are finally receiving this odd nserror which we can not interpret. var firefoxWindow = getWindows () [0]; Var Browser = Firefox Window.getBrowser (); Var doc = browser.contentDocument; Var elem = null; Var elems = doc.getElementsByTagName ('TD'); For (A = 0; a & lt; elems.length; a ++) {If (((AIIMS [A]! == Null & amp; Ams [A] .has Properties () === True & amp; ; Ams [A] .getAttribute ('onclick')! == Null & amp; Ams [a] .getAttribute ('onclick') ToString (.) Match (/ doNothing / gim)! = Null & amp; amp; [A] .getAttribute ('onclick') ToString (.) ...

wordpress - Is 154 MySQL Queries in 0.543 seconds a horrible thing? -

I am writing a WordPress news topic. Because the subject uses many loops, many questions arise, and many options I have to make dynamic because the subject will be released to the public (hence I can not hardcod many things). On a front page with a specific setup (a top story area, five newsbox [[five WordPress loop], a main menu, a secondary menu and six sidebar from a footer menu) and with no plugins, The total query number is 154. I'm not sure that I have permission to post the link, but this is the page: How is the loading time for you? The query count for me is 154 in 0.54 seconds (you can see the query count in the footer). Sometimes the count is high, but after I refresh it, this number goes down. I know that this number is very high, but I do not know how to reduce it because my programming skills are not very much. I have seen those huge forums in which only 14 questions are my main question, do you think that this number is very high? Thanks for any advice I a...

winforms - Prevent taskbar activating non-modal forms when a modal dialog is active -

Whenever there is a dialog model, I want to stop activation in all my configuration applications. How does this happen? Outlook Work - Open two new mail messages, open an address book from a message and you can not activate the second mail message by clicking on the taskbar or the message window. How can I do this in a winforms application (note that setting ownership does not work)? Sample application below. using System.Drawing; Using System.Windows.Forms; Namespace ConsoleApplication 1 {Class Program {Static Zero Main (string [] Args) {Application.EnableVisualStyles (); Application.SetCompatibleTextRenderingDefault (wrong); application. Play (New Mainform ()); }} Public class MainForm: form {public MainForm () {text = "main form"; Var button = new button {text = "new look"}; button. Click + = (Sender, Args) = & gt; New Form 2 () Show (); //button.Click + = (Sender, Args) => {Var form = new form 2 (); AddOwnedForm (form); Form.Show (); }; Controls....

jquery - Is something wrong about $(window).load() and Google Chrome? -

Occasionally, this does not just do what I said to do it. It works perfectly in Firefox and IE, but Chrome just ignores the instructions as simple as anything else: $ (window) .load (function () { Alert ('hello world!');}); I think the problem occurs when I type 2 $ (window). Trying to use Load () , is facing this problem or is it just me? I mean, is this "bug" actually present or am I doing something wrong? Try inserting the script & lt; / Body & gt; At the bottom of the page before the tag. (Chrome Duos has a problem with this function)

iphone - Write SortDescriptor for a transforable attribute in core data? -

I have an entity header and it was declared to be changed in a characteristic NSDictionary model. Now I do not want to sort the array of headers in fetchedRequestController. And the zero or null object passes error. Please help with this. Let me reframe the last time: If I have a unit, which has headers with variable attributes, I change the ID type in the generated square to the NSDictionary. Now I need to use the key of the dictionary as entity.attribute name.key ... I do not have any error coding as this class key is not coding compliant for the key: (key) ... this Problem solving is a work done Create and configure a fetch request with the Book Entity. NSFetchRequest * fetchRequest = [[NSFetchRequest alloc] init]; NSEntityDescription * entity = [NSEntityDescription entityForName: @ "Header" inManagedObjectContext: self.tableCellGenericMoc]; [FetchRequest Set Entity: Entity]; // Sort descriptor Create array NSSortDescriptor * headersDescriptor = [[NSSortDescriptor...

Email notifications sent by Drupal have broken links sometimes -

I am using Drupal's membership module to send unsubscribed emails on regular basis and I have found that link email Embedded in will break if the link is too long, but only for a few users. The email client that the user is using is Entourage. The crazy thing is that I also use Entourage, but I do not have a problem with the links in my subscription email which is sent to me. Here's what's happening: http: samplelinkhere? Var = blahblah Blahbla The upper line of the link will be underlined and will be part of the link, but the bottom part should not be underlined (though this should be) and therefore, the link breaks Has anyone been aware to fix this problem? AFAIK, you can not do much about this unless the link sent by your server is in the original Until the line breaks in the mail, it depends on the recycled mail client, which is to add line breaks for readability, usually some user preference settings (which can understand your own difference Entourage Cli...

dom - Implementing a simple floating navigation in Javascript -

I am trying to implement a simple floating navigation using DOM and Javascript. The following script is triggered using the oncroll event, but nothing happens through firebug and debugging is not completely enlightened. function float_nav () {nav = document.getElementById ("nav_container"); Offset = window Pagewise offset + 'px;'; Nav.style.top = offset; } You do not have to add; At the end of px otherwise I do not see anything wrong. Extra: Why do not you use jQuery or something similar?

namespaces - get attribute from xml file -

मेरी XML फ़ाइल प्रविष्टि: & lt; ग्लोबलव्यू xmlns = "http: // स्कीमा .openxmlformats.org / पैकेज / 2006 / रिश्तों "& gt; & LT; rels & gt; & Lt; रिलेशनशिप आईडी = "आरआईडी 3" प्रकार = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" लक्ष्य = "docProps / app.xml" / & gt; & Lt; / rels & gt; संबंध तत्व के भीतर प्रश्न पूछना चाहते हैं .... मैं नीचे दी गई क्वेरी का उपयोग कर रहा हूं और यह तत्व के संबंध में काम करता है और मुझे आईडी विशेषता का महत्व नहीं देता है। रिटर्न $ file / GlobalView / child :: rels / child :: रिलेशनशिप प्रयास करें GlobalView / बच्चा :: rels / child :: रिश्ते / @ आईडी या संक्षिप्त रूप में ग्लोबलव्यू / रिले / रिलेशनशिप / @ आईडी

php - Clear session variable after use -

Is it possible to use a session variable, then unset it directly? Example: // ==== // Process form if ($ _POST ['submit']) {$ update = $ user settings & gt ; Update ($ _ POST); // If there are any form errors (if! $ Updates) {// load in an error $ errors = $ update [1]; } Else {// Set session $ $ _SESSION ['showUpdated'] = true; Redirect this page to // ("Location: http://www.mysite.com/settings"); }} // ================= If ($ _SESSION ['showUpdated'] After the form is submitted, if there is no error: Set up a session to set ($ _ session ['showUpdated' ];} Form submission was ok Reload the page (To prevent reposted POST data again) If the 'showUpdated' session variable Display the "updated" message Uninstall the session variable (so we do not see the message on the next reload) on The problem in the bottom is that if you set the effect directly after the session; Any solution? Is this the best w...

Can I run .NET 4.0 web applications on Windows Server 2003? -

क्या विंडोज़ सर्वर 2003 और आईआईएस 6 में .NET 4.0 काम करता है? हां, लेकिन आप कुछ समस्याओं में भाग ले सकते हैं देखें।

Clean URLs Using forward slash '/' in to_param with Rails (3) -

क्या यह संभव है? def to_param "# {id}% 2F # {slug } "एंड यह क्रोम और सफारी में काम करता है, लेकिन अगर फ़ायरफ़ॉक्स आपको एड्रेस बार में"% 2F "देखते हैं। क्या यह एक क्लीनर तरीका है? यह वास्तव में एक पुरानी पोस्ट है, लेकिन मैं थोड़ा सा निर्माण करना चाहता हूं यदि आप अपने पैरामीटर में एक स्लग चर को संभालना नहीं चाहते हैं, तो आपको वास्तव में अपने मॉडल में उस विधि को परिभाषित करना होगा def to_param "# {id} } / # {Title} "end और ऐसा मार्ग सेट करें: संसाधन: पोस्ट, आईडी => / [0-9] + \ /.+/ इस प्रकार आपकी लिंक की परिभाषा सामान्य की तरह दिखती है: link_to post.title, post_url (पोस्ट) बहुत सरल:

SQL Server Temporary Table from Complex Stored Procedure -

मुझे एक चर या संग्रहित प्रक्रिया से एक अस्थायी तालिका (#temp) बनाना होगा (अर्थात ) मेरी संग्रहीत कार्यप्रणाली में ...... सेट @ sql = 'चुनें ...' सेट @ sql = @ Sql + '.. जुड़ें ..' सेट @ sql = @ sql + '.... जुड़ें ..' जब मैं इसे निष्पादित करता हूँ (यानी) exec (@sql) यह कुछ पंक्तियों को देता है, मैं उस पंक्तियों को एक अस्थायी तालिका में संग्रहित करना चाहता हूं। इसे कैसे प्राप्त किया जाए? मैंने ऐसा कुछ करने की कोशिश की आईडी, नाम का चयन करें, Ward_no में, ........ #temp से (exec (@sql)) व्युत्पन्न अपडेट मुझे तर्क मिला (यानी) तालिका #temp (....) सम्मिलित करें #temp exec (@sql) चुनें #temp से * आप अपने प्रश्न में जो भी पूछे हैं, लेकिन यह वही करने का एक तरीका हो सकता है जो आप वैसे भी कर रहे हैं: बनाएँ तालिका #temp (आईडी इंटेगर) DECLARE @Sql NVARCHAR (100) SET @Sq एल = 'INSERT #temp VALUES (5)' EXEC (@SQL) SELECT * FROM #temp

C# - How to test at runtime which COM coclass was used to instantiate an interface? -

मान लें कि आपके पास एक COM इंटरफ़ेस ICOMInterface है जो कोकलेस Coclass1 और कोक्लास 2 । इन कॉकलेसों में से किसी भी अपने स्वयं के इंटरफेस नहीं हैं (सादगी के लिए और मेरी समस्या को स्पष्ट करने के लिए)। सी # में, आप एक कॉकैस से COM अंतरफलक का एक उदाहरण बना सकते हैं जैसे: ICOMInterface myComInterface = नया Coclass1 (); अब, आप यह कैसे निर्धारित कर सकते हैं कि myComInterface को Coclass1 या Coclass2 ? जैसे "है" कथन का प्रयोग करना हमेशा सही होता है, और इस प्रयोजन के लिए बेकार है। डीबग। विरাইটलाइन (मेरी कॉमइंटरफेस कोक्लस 1 है) // "सत्य" डीबग लिखता है .इटइटलाइन (मेरा कॉमइंटरफ़ाइड कोक्लस 2 है) / लिखता है "सच" यह काम करेगा अगर मैं इंटरफेस का परीक्षण कर रहा था, कोकलेस नहीं, लेकिन इन कोकलेसों में उनके दोनों के कार्यान्वयन के अलावा अन्य इंटरफेस नहीं हैं , ICOMInterface । मुझे उम्मीद है कि इस सामान्य परिदृश्य का एक सरल जवाब है जो मैं देख रहा हूं, अन्यथा मैं अधिक विशिष्ट विवरण पोस्ट कर सकता हूं यदि आवश्यक हो। आपकी मदद के लिए धन्यवाद! य...

.net - How can I use Castle's RemotingFacility to access two different endpoints from the client? -

I have a web application that communicates with multiple .NET remoting endpoints. I want to use the Castle Remoting utility to solve my remote dependence, but it seems that you can configure Yuri only one endpoint for convenience. Is this scenario possible with the existing remoting capability? if so, how? Thank you. Is this really the case? I think it means otherwise ...

How do I map collection for non primary key in Entity Frame 4.0 Code First CTP4? -

I am trying to map an existing heritage database in this example, there are several cities near a country. The problem is that the foreign key on the city table is not the primary key of the country table table definitions CREATE TABLE [dbo]. [CD_Country] ([ID] [int] identified (1,1) NOT NULL, [code] [four] (2) is not NULL, [name] [Nvarchar] (50) NULL, Knstrent [PK_CD_Country] primary key Clastr ( [ID] with ASC) (Pad_aiandiaks = off, Stetisiks_anoarisiompiuti = off, Aijianoarudiupi_kea = off, ALLOW_ROW_LOCKS = oN, ALLOW_PAGE_LOCKS = current) [primary]) [primary] CREATE TABLE at [dbo]. [CD_City] ([id] [int] identification (1,1) zero, [code] [four] (no) NULL, [name] [nvarchar] (50) No, not convert, [Contra QD] [ four] (2) taps, Contrastent [Pikeseedeediti] primary key Clastr ([ID] with ASC) (Piadi_aiandiaks = off, Stetisiks_anoarisiompiuti = off, Aijianoaraiudeepiukewai = off, ALLOW_ROW_LOCKS = oN, ALLOW_PAGE_LOCKS = oN) [primary]) on [ Primary] I am trying to do somethin...

flash - Converting a flex component w/images to bitmap -

I am trying to take images which I am putting in a bitmap of a flex canvas component. I was able to reach that point where I did not get any error, but then no image is visible and the image I save as JPG is empty I think I'm not setting up bitmap data properly I am not able to understand what I am doing. Here is the code where I am converting it to bitmap: var imageSnap: ImageSnapshot = ImageSnapshot.captureImage (_renderPop); Var imageByteArray: ByteArray = imageSnap.data byte form; Var bLoader: Loader = new loader (); BLoader.loadBytes (imageByteArray); Var BMD: Bitmapdata = new BitMapData (500,500); Bmd.draw (bLoader); Var imgTest: image = new image (); ImgTest.source = BMD; _renderPop.renderCanvas.addChild (imgTest); Var fileRef: file line = new file reference (); FileRef.save (bLoader, 'testImage.jpg'); _renderPop.renderCanvas is where I am putting images. Is anyone seeing anything wrong? In your code: var bLoader: loader = new loader (); BLoader.l...

c# 3.0 - Get the second highest salary of the employees using LINQ -

मेरे पास निम्न इकाई है सार्वजनिक वर्ग कर्मचारी {सार्वजनिक इंट एम्प्लियरआईडी {प्राप्त; सेट; } सार्वजनिक स्ट्रिंग कर्मचारी का नाम {get; सेट; } सार्वजनिक स्ट्रिंग विभाग {get; सेट; } सार्वजनिक लंबी वेतन {प्राप्त; सेट; }} मैं LINQ का उपयोग करते हुए हर व्यक्ति के विभाग के कर्मचारियों के लिए दूसरा सबसे बड़ा वेतन प्राप्त करने का प्रयास कर रहा हूं। अब तक यह मैंने किया है var query = (कर्मचारी द्वारा आदेश में emp.Salary में emp.Department द्वारा समूह emp। नए जीआई का चयन करें। आईडी = जी। चयन करें (i = & gt; i.EmployeeID), sal = g । चुनें (एस = & gt; s.Salary), नाम = जी। सेलेक्ट (n = & gt; n.EmployeeName), dept = g.Select (d = & gt; डी। डिपार्टमेंट)}) .छोड़ (1) .सूची (); लेकिन यह क्वेरी काम नहीं कर रही है। उदाहरण मान लें कि मेरे पास कर्मचारी = 1 , कर्मचारी नाम = "ए", विभाग = "विभाग 1", वेतन = 10000 कर्मचारी = 2, कर्मचारी नाम = "बी", विभाग = "विभाग 1", वेतन = 20000 कर्मचारी = 3, कर्मचारी का नाम = "सी" विभाग =...

Importing GeoPt data with the Google AppEngine BulkLoader YAML -

I am uploading data from a CSV file with a geographical column in it. I have GeoPt column data such as Quotation: SomeData, "54.321, -123.456", Moradata My bulkloader.yaml file has an entry like this: - Properties: location external_name: LOCATION # Type: GeoPt Figures: 1 type of this type of property. When I upload and go to the datastore viewer, I think the location has been uploaded as a string rather than GeoPt. I'm not sure what the right way to import will probably be an import_transform? Create a uploadutil.py file and add this method to: bulkloader.yaml Add Import to Uploadutil: - Any Import: uploadutil and add asset: - Properties: location external_name: LOCATION import_transform: uploadutil.geo_converter

properties - When does grails.config.locations get processed in Grails? -

I am using grails 1.2.1 and the external configuration file for the war file for my application I want to specify. I understand with documentation that the proper way to do this is to specify grails.config.locations list in the Config.groovy file. When I do this, however, the properties that should be set are not available for the program (for example, datasource groovy). When are these properties set? I would like to load external property files & amp; Then, before making them available for the rest of the program, check some parameters on them. I also want to use these parameter values ​​to set up my logging and data sources. When the above approach does not work, I also tried to manually load something by doing something like this: list location = [] def systemConfig = System.getenv (ENV_NAME) def cmdlineConfig = System.getProperty (ENV_NAME) if (systemConfig) {println "contains the configuration file specified in the environment:" + systemConfig; Plac...

java - How to insert current date and time in a database using SQL? -

I used the following code, but the date range is shown in SQL as: 2005-04-08 00:00:00 I should also have time what should I change? Here my code is given: // Get the system date and time Java.util.Date Usage date = new date (); // Change it to java.sql.Date. Java.sql.Date date = new java.sql.Date (useDate.getTime ()); ... ... ... created location stmt = connection.prepareStatement (SQL); Stmt.setDate (1, date); Use setTimestamp instead of setDate , because the timestamp is the preferred format for timing data and .

python - Automatically passing extra attributes to Widget -

I have a custom model field, which can contain the 'chain' argument. Chain from : chain = chainfield (object): df __int __ (self, * algs, ** quarj): chain = quartz ('Chain', false) if the chain: self. Chain = Chain Del Quad ['chain'] Super (self .__ class __.__ MRU __ [2], self) .__ init __ (* args, ** kwargs) class DateTimeField (ChainField, models.DateTimeField): pass And now the question: How can I automatically pass the 'series' argument of the model class to the widget class when launching ModelForm? I think this is the attribute of the 'class =' ​​chain xxx "'form field in html. Override __init __ of ModelForm like this: class MyClass (ModelForm): def __init __ (auto, * args, * * Kwargs): Super (MyClass, itself) .__ init __ (* Args, ** kwargs) chain_value = self.fields ['name_of_the_field']. Chain self.fields ['name_of_the_field']. Widget = custom widget (series = chain_ value )

c# - Show hidden window -

I am creating a child console application using the process. The start method process is created with ProcessWindowStyle.Hidden WindowStyle but then I need SendInput to this window and try to show it using ShowWindow method but ShowWindows has no effect. You generally need to change the property of hidden process style form. Show methods () To set the property is the same to set the property (hide) sets it to false.)

dns - How can I query Spamhaus's SBL with a domain name? -

I want to query using a domain name. I know that this is possible because it (searches the SBL listing of ISP domain name) and does it, but I can seem to work with this IP address only. I put a quick look at the spam assassin code, but it has become so generalized that maybe I can spend a few hours monitoring the code that actually does something I just like this for the IP address of SBL Can successfully query: # 127 127.0.0.2 layer, then 208.73.210.0 blacklist dig + short 0.210.73.208.sbl.spamhaus.org # returns nothing, so 72.14.225.72 Blacklist DIG + Short 72.225.14.72.sbl.spamhaus .org is not on the DNS TXT record to query domain names, but I do not know the correct hostname to look for. I have not received any useful information, but if you find that the associated with oversee.net 208.73.210.0 is spamming on 30-Jul-2009 21:17 GMT Was reported as. Domains are in "domain block list", not as dbl as SBL domain suffix. Use spamhaus.org . The specific sear...

.net - How do I implement a custom role provider which supports sub roles? -

How can a custom roll provider be applied, on which the parents and child have roles? According to the general role provider functionality, I need to get high level role permissions. However, I also need to allow further break in sub roles. I bumped into the idea of ​​sub-permissions and for example role, but I want to make a native solution that allows sub roles. For example: [IT] [IT]> [Admin] [extranet] [ADMINET]> [ADMINET] Ideally, there is no connection between 2 "Admin" roles as they are unique sub roles. [edit]: After Igor's comments, I think I should explain Aspnetdb is already hosting several applications and therefore it is not possible to use the application name to separate the sub-names As it is already being used to separate roles by applications. 1) Use the aggregation of permissions, why do you use inheritance? Just allocate YouTube to IT and Admin roles and their permissions will be collected. 2) Using different administra...

sql - SELECT query on multiple tables -

मेरे पास दो टेबल हैं, foo और बार : + ---- + ----- + + ---- + ----- + | आईडी | वैल | | आईडी | वैल | + ---- + ----- + +---- + ----- + | 1 | Qwe | | | 1 | एडी | | 2 | आरटीआई | | 3 | फग | + ---- + ----- + + ---- + ----- + आईडी यहां अद्वितीय नहीं है फ़ू में सभी आईडी नहीं है, इसके पास बार और इसके विपरीत में समानता है। मुझे दोनों तालिकाओं में विशिष्ट आईडी के साथ सभी पंक्तियों की गणना करने और उन्हें एक नई तालिका में प्रस्तुत करने की आवश्यकता है, उदाहरण के लिए: + ---- + ----------- + ----------- + | आईडी | Count_foo | Count_bar | + ---- + ----------- + ----------- + | 1 | 1 | 1 | | 2 | 1 | 0 | | 3 | 0 | 1 | + ---- + ----------- + ----------- + मैंने कोशिश की है यूनियन का चयन करें : SELECT id, COUNT (id) एएस count_foo, 0 as count_bar foo ग्रुप से आईडी यूनियन का चयन आईडी, 0, आईडी (आईडी) आईडी से बार ग्रुप से; लेकिन यह आउटपुट आईडी = 1 के साथ दो बार, जैसा + ---- + ----- ------ + ----------- + | आईडी | Count_foo | Count_bar | + ---- + ----------- + ----------- + |...

jQuery Dialog, closing when click outside -

I know that I can use the following to close the dialog box by clicking outside: $ ('.ui-widget-overlay'). Click (function () {$ ("# dialog"). Dialog ("off");}); But how do I change it, it works for every dialog box, that is, I want to close any dialog box because we have more than one on the page and one line You can assign a square to each dialog And then select it and run it on each and also it is trust, even if it is not open, it will work: $ ('.ui-widget-overlay'). Click (function () {$ ("dialog") .each (function () {$ (this) .dialog ("off");})});

c# - Show missing PartialView as a build error -

I am reconfiguring our ideas at work and taking them to more suitable places. We are currently arranging our ideas in our own folders within the view folder, we have to refer to our ideas using the full path in RenderView. Is there a way to throw a build build error, if I do not have the presence of a visual studio if the Anx file is present in the Rendereparty method? There is an error shown in run time, although I should be part of this process process. Thanks for any advice View locations are resolved only on runtime I can not really see how this can be done, as long as you write a few custom steps in MSBuild that will analyze the source code and check the existence of related footage files but it will be a daunting task.

Include a XML in XSLT and then apply a foreach -

I have a website with XML + XSLT which shows me a complete HTML website Now, to make the site more dynamic For, I want to divide the parts of the document: I was looking at Google headers, footers and sidebar and I found this solution: & Lt; Xsl: template match = "/" & gt; & Lt; Html & gt; & Lt; Head & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Xsl: each selection = "$ doc" & gt; & Lt; Xsl: apply-template / & gt; & Lt; / Xsl: each -G & gt; & Lt; / Body & gt; & Lt; / Html & gt; & Lt; / XSL: Templates & gt; I was trying to implement it and I can work on it. This is the way I am using: I have changed the path to "../menu.xml", because XLL is inside a folder, it works well. & lt ;? XML version = "1.0" encoding = "ISO-8859-1"? & Gt; & Lt; Xsl: stylesheet version = "1.0" xmlns: xsl = "http://www.w3.org/1999/XSL...

python - How to center a window on the screen in Tkinter? -

I am trying to focus a typewriter window. I know that I can get the window size and the size of the screen in terms of program and I can use it to set that geometry, but I am thinking that an easy way to center the window on the screen is. You can use the winfo_screenwidth and winfo_screenheight You can try to use, which come back respectively your Tk the width and height of the example (window) and in pixels (in pixels), and with some basic math you can focus your window: TK Diff Center (Toplevel) as imported connector: toplevel.update_idletasks () w = toplevel.winfo_screenwidth () h = toplevel.winfo_screenheight () size = tuple (int (_) toplevel .geometry (for)) Split ('+ ') [0]. Partition ('x') x = w / 2 - size [0] / 2 y = h / 2 - size [1] / 2 toplevel.geometry ("% dx% d +% d +% d"% (size) + (X, y))) If __name__ == '__main__': root = tk.Tk () root.title ("not centered") win = tk.Toplevel (root) win.title ("centered!...

How can i have a Toolbar like this ? (Delphi) -

मुझे यह टूलबार पसंद है। मैं इसे कहाँ पा सकता हूँ ? धन्यवाद आप कुछ हासिल कर सकते हैं (कम से कम बहुत) उस के समान मानक डेल्फी घटकों के साथ: अपने फॉर्म में एक टीसीओन्ट्रोलबार जोड़ें अपने ड्राइंगस्टाइल को डीएसजीडायंट में सेट करें इसकी बेवेलकिंड को बीकेएन को सेट करें उस कंट्रोलबार पर एक टीटीबलबार जोड़ें अपने ड्राइंगस्टाइल को डीएसजीडिएन्ट पर सेट करें उस टूलबार पर एक टीटीबलबटन जोड़ें अपनी शैली को टीबीएस डॉपडाउन में सेट करें

Using PHP 5.3 namespaces (Doctrine2) with Zend Framework classes -

itemprop = "text"> I have a situation where my theory model, posted , is being in the name space applications \ organizations \ / code> and I want to try implementing Zend_Acl_Resource_Interface . I get an error Fatal error: Interfaces 'applications \ units \ Zend_Acl_Resource_Interface' was not found in D: \ Projects \ Websites \ php \ ZendFram ework \ LearningZF \ library \ Application \ Entities \ Post. Php on line 8 namespace application \ body; Use the proposed extension \ NestedSet \ Node; / ** * @Entity @Table (name = "post") * Applying / class post node, Zend_Acl_Resource_Interface { update If I try Whether you're using or stable one, eg 1.10? ZF is your autoloader setup to load classes with naming scheme You can use the conversion tool ZF Devs namespace to use to convert ZF :?

python - PyQt4 Custom dialog not showing -

I am working with PyQt4 to create a simple Python GUI app. The situation is low: I have a QMainWindow displaying a custom widget and it displays a curved content with custom widgets: List> Tag: Category: ListTagWidget (QWidget): def __init __ (self, original = none): super (listguagwd, self) .__ init (__) addButton = "QPushButton" ("add more tags ...") EditButton = QPushButton ("and edit the tag ...") removeButton = QPushButton ("and delete the tag") self.taglist = QListWidget () layout = QGridLayout (self) layout.addWidget (self.taglist, 1, 1, 1 , 1) layout.addWidget (addButton, 2, 1) layout.addWidget (editButton, 3, 1) layout.addWidget (Remove button, 4, 1) Self. Settleouts (layout) self.adjustSize () # Connect the connection automatically (add button, signal ("clicked"), Self.addTag def AddTag (self): dialog = AddTagDlg (self) dialog.show () I want to display this custom dialog class basically when addButton is clic...

objective c - ObjC: Moving the displayed area of a UIView -

मेरे पास एक बड़ा UIView ( .frame == CGRectMake (0, 0, 905, 320) ) वर्तमान में बाईं ओर दिखाया गया है (जो कि (0,0,480,320) है) और मैं क्लिक पर सही पक्ष दिखाने में सक्षम होना चाहता हूं। मैंने UIView की फ़्रेम को (480,0,905,320) में बदलने की कोशिश की लेकिन यह काम करने के लिए प्रतीत नहीं होता। क्या किसी को भी यह कैसे करना है पता है? यह एक विंडो में .frame == (0, 0, 480, 320) के साथ एम्बेडेड है । सब कुछ परिदृश्य मोड में है। आप अपनी सीमा सेट करना चाहते हैं देखें, फ़्रेम नहीं अधिक विशेष रूप से, इसकी सीमा की उत्पत्ति निर्धारित करता है कि जहां की दृश्य की सामग्री प्रदर्शित करना शुरू कर देना चाहिए। इस तरह से दृश्य बिल्कुल भी आगे नहीं बढ़ता है, केवल इसकी सामग्री का एक अलग हिस्सा दिखाता है। दस्तावेज़ीकरण यह बहुत स्पष्ट रूप से दिखाता है: देखें "फ़्रेम का संबंध, बाउंड्स , और केंद्र "

php - get that rows, WHERE `DAYOFMONTH(<date>)` is devidable on 3? -

मेरे पास MYSQL DB में दिनांक फ़ील्ड में YYYY-mm-dd है प्रारूप। मुझे उस पंक्तियों, DAYOFMONTH (& lt; तिथि & gt;) को 3 पर विधायक होना चाहिए। क्या यह mysql के साथ करना संभव है कार्य, या मुझे कई या शर्तों को लिखना है? धन्यवाद मॉड्यूलस का उपयोग करें। कुछ जैसे, वही डेफोफोन (& lt; तिथि & gt;)% 3 = 0

c# - StructLayout only for struct? -

I have seen that we have some such places that we have something: [StructLayout (LayoutKind.Sequential, Pack = 1)] Category classification with public class E2H_LANEFIND_DATA_T {....} StructLayout . Is it OK or Structured Layout for struct It is clearly stated: You can apply this attribute to sections or structures. Generally, the Common Language Runtime controls the physical layout. However, if you want to arrange a class or structure in a certain way in the managed memory, if you want to arrange the class or structure in a certain way, then you can use StructLayoutAttribute You can use. The clear control of the class layout is important if the class is to pass with unmanaged code which expects a particular layout. The emphasis was mine. The main idea to make this situation is that do you want your examples to be passed by value or context, in which case you will use a structure or class respectively.

xml - Help Arranging TextView objects on screen in Android -

I am using textview objects to capture labels like scores, level etc. on my game screen, but they It does not appear to be where I want them to understand the visual hierarchy (parent, child) and using the gravitational tag in the XML layout file, but it does not seem to have any effect. Has anyone provided a guide quickly on the screen of a text view object on the screen, and it has also been added to the code so that its contents can be controlled (I believe Will this be done via FindViewById (r.id.resourcename) = (TextView)? Many thanks XML: & lt; FrameLayout xmlns: android = "http: // Schemas.android.com/apk/res/android" android: layout_width = "match_parent" Android: layout_height = "match_parent" & gt; & Lt; Android.gesture.GestureOverlayView xmlns: android = "http://schemas.android.com/apk/res/android" Android: Android: Android: id = "@ + ID / gestures": layout_width = "match_perrent" Android: l...

dns - control one domain from other domain -

I have been asked to create a marketing site. The concept has been provided - Become an original site named Www.game.com.It would be an administrator. My client will make www.baseball.com, www.football.com, www.golf.com and so on. All these websites will be their own administrators. Now suppose that a golfer named Jack comes to the administrator of www.game.com and asks him to register himself. My client is saying that www.game.com admin is able to register that player under www.golf.com because he is a golfer and Jack is going to www.golf.com/Jack Like subdomain www.game.com/admin www.baseball.com/admin www.football.com/admin www.golf.com/admin How is this possible? How do I approach? What you're doing is called rewriting the URL. Check out this article for the basics of how it works. You will also find links to various methods for specific languages ​​and platforms.

How can I count in a different number base in C++? -

My 15-year-old little brother is starting programming, and he has written a small program that outputs all the combinations of letters and numbers. Those six digits or less, their code was a sextuple-nested for loop, which used to update elements of a six-level four array. It sounded bad, but definitely was fast! I showed him how to do a simple calculation, and convert those numbers into base 36. The biggest problem is that my division was too slow because the division was doing me. Is there any way that I can just assume a base 36 and can output to one output from 1 to 36 ^ 6? Ideally, I'm trying to do something like for [base 36] (int i = 0; i Try it out: four buffers [1024 ]; For (Int i = 0; I here it is not without IOA (if you do not have one) cout & lt; & Lt; Setbase (36); For (Int i = 0; I

iphone - Getting started with Core Data -

I have a problem understanding how the core data works and the code is in context. I get a coordinator and a reference. I also get that state management how do they work together? I do not understand how I can store as an object, I can say, an image and some strings. Suppose I want to retrieve the image and string what should I do next? Where can I save my state? how? How does my code look like? I really appreciate the code sample of a bare bone, because I'm really confused. These are some of the best tutorials I've found: For your questions: I think a coordinator and The context is. I also get the state management how do they work together? The constant store coordinator is the place that your data is actually stored, which is a SQLlite DB or XML file or whatever the coordinator is an intangible, so you need to worry What kind of storage is there in the backend? The managed object context is that you continuously interact with the Store Co...

jquery - colorbox plugin, I need to submit form via ajax -

If I am using, how do I submit a form via AJAX and then I will create a new model from the response ? For example, a user clicks on a link and pops up a modal. They fill out the form and click submit and then the model should be changed in the next form. Then they fill the next one etc. ... You should be able to load & Lt; Div id = "cbox loaded content" & gt; with the result of your AJAX call with the first color box invocation: $ ('# cbox loaded content'). Load ('Form- Process.php', formData); If the new form you are loading is a different size, then you should call the color box size () method to adjust the size of the model: $ Colorbox.resize ();

vb.net - convert local time to utc -

I have functions to get the UTC time I Dtuniversal I have the SQL server data type near the stroed proc of time. It works well for 6 AM Eastern (which is 23 UTC) values, it fails at 7 AM Eastern (which is 24 UTC), I get an error "Invalid value for this metadata". Personal Function GETTactTime (TimeTime as Time-Time) TimeTime as a timely DT (timetix) DT = DT. Universal Time () return as DIT Universal New Taimspen (Dititik) DT Universal following function: The following test code states that variable time (aTimeSpan) should be seen on. Private Sub Button1_Click (ByVal as the System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click as dim ts new time period (DateTime.Now.Ticks ) make a test period 'dim ts new time period (0,0,0) as "as a trial period oneHr dim new timeSpan (1, 0, 0)' int x GetUTCTime Debug.WriteLine 24 ' An hour increment for call to 25 = 0 ("& Amp; Getutctime (ts) .tostring) ts = ts.Add (oneHr) 'add an ho...

iphone - Dynamic Button Problem: unrecognized selector sent to instance -

I am creating buttons on the dynamic iPhone app UIButton * btn = [Sathprkar the UI button: UIButtonTypeRoundedRect]; [BTN SETTITAL: AITAL FORESTAT: UICOntolStateAnimal]; [BTN at Target: SP Action: @Selector (Buttoned) Control events: UICTroEventTouchUpInside]; Touch the touch [button addObject: btn]; ---------- - (minus) buttonTouched: The {} ---------- - [NSCFString buttonTouched:]: unrecognized selector sent to instance 0x592ef70 2010-07-28 08:59: 43.551 DataManager [1707: 207] *** neither came exception 'NSInvalidArgumentException', due to the end because of the application: '- [NSCFString buttonTouched:]: unrecognized selector example sent to 0x592ef70': (0 CoreFoundation *** call in the first place stack 0x02398919 __exceptionPreprocess + 185 1 libobjc.A.dylib 0x024e65de objc_exception_throw + 47 2 CoreFoundation 0x0239a42b - [NSObject (NSObject) doesNotRecognizeSelector:] 187 3 CoreFoundation 0x0230a116 ___forwarding___ + 966 4 CoreFoundation 0x02309cd2 _C...

javascript - Need cursor at beginning of text in textarea -

मेरे पास यह मेरे शरीर में है और यह काम करता है onLoad = 'document.forms। Post.message.focus () ' लेकिन मुझे अंत में नहीं, किसी भी मौजूदा पाठ की शुरुआत में टेक्स्टरिए में रखा जाने वाला कर्सर चाहिए यह अंत में रखता है। ध्यान दें कि मुझे जावास्क्रिप्ट के बारे में कुछ भी नहीं पता है, इसलिए कोमल हो। धन्यवाद फ़ंक्शन चालन करेंटॉस्टर्ट (एल) {if (el.selectionStart ==" number ") (el.selectionStart ==" number ") {el.selectionStart = el.selectionEnd = 0; } और अगर (टाइपओ एल.क्रेडिटटेक्स्टरेन्ज! = "अपरिभाषित") {el.focus (); Var श्रेणी = el.createTextRange (); range.collapse (सही); range.select (); }} MoveCaretToStart (document.forms ["post"]। तत्व ["संदेश"]);

mysql create procedure syntax issue line 1 -

मुझे निम्न कार्यविधि की पंक्ति 1 पर एक वाक्यविन्यास त्रुटि मिलती है: DELIMITER | कार्यप्रणाली बनाने के लिए sp_autocallFillCallQueue प्रारंभ करें उच्चतम कॉल TINININT (1); `ऑप्शन 'LIMIT 0,1 से अधिकतम कॉल्स में autocall_max का चयन करें; 'कॉलक्यूयूई' (`फोन नंबर ',' प्रतीक्षा ') में पुनः आरंभ करें' फोन नंबर 'से' फ़ोन नंबर 'का चयन करें जहां पहुंच का उपयोग करें! =' ब्लैकलिस्ट '& amp; amp; `फ्लैग ऑटोकॉल` = 1; SET अधिकतमकॉल = अधिकतम कॉल - 1; अधिकतम कॉल्स = 0 अंत बार फिर से; समाप्त; | मैं इस से पहले और उसके बाद डिलीमीटर को सेट कर रहा हूं। मुझे लग रहा है कि यह कुछ मूर्खतापूर्ण है (जैसा कि यह मेरी पहली माइस्कील संग्रहीत प्रक्रिया है)। मैं एटीएम पूरी तरह से स्टम्प्ड हूं हालांकि FYI, यह त्रुटि है: त्रुटि 1064 (42000): आपके SQL सिंटैक्स में एक त्रुटि है; निकटतम 'PROCEDURE sp_autocallFillCallQueue BEGIN DECLARE @maxCalls TINYINT (1); का उपयोग करने के लिए सही सिंटैक्स के लिए आपके MySQL सर्वर संस्करण से संबंधित मैन्युअल की जांच करें;...

.net - Question about events in vb.net -

When it comes to events in vb.net, I was thinking about my options what I would like to do Tracking events that have been removed in any application, without explicitly declaring them with 'handle' everything. Here's a pseudo code: Private sub-handles handle all events (as the system's sub-sender, object, and system in the form of aventure). Select Event Case Sender Episode 1 Button If Event = Click Then Do Something () End if Finish Select Finish Sub Yes I know it is not quite working, but what Is there any way to implement something like this in vb.net? My end game really has to be able to monitor events that have been removed from other objects in many objects, is not one more worthwhile way to do this, then to add a special sub to each object that I want to catch Are you I need to remove an object in other objects without any particular object, addHandler runs a long way, but I can not really use it dynamically: Public Sub AddEvent (event as event.erg...

ruby on rails - ActiveRecord association model -

I'm new to the rail and read all the information so far to get it. I have a simple scenario and to make sure that my institutions work well. Scenario: Login to user -> Many sets groups -> There are many employees in each group User Model: class user & lt; ActiveRecord :: Base is has_many: group end group model: class group Employee Model: Class Employees & lt; ActiveRecord :: Base has has_many: group is_to: group end question Have I worked for this scenario ? I'm confused about how to get all employees under a user . What will be the code for this? If I need a specific CRUDE for all these models, will my action be? Index / create / update / delete? Can someone tell me a verb in a good guide? I also like - class Users & lt; ActiveRecord :: Base has has_many: Groups have has_many: Employees: By: = By & gt ;: Group End Then you can go: User = user.find (23) user.employees.do_something Otherwi...

cocoa touch - Simplest way to loop between two NSDates on iPhone? -

What is the easiest way to loop from one date to another? What do I need from concept: for (NSDT * date = [[initial copy] Autoreques] [compare date: enddate] & lt; 0 ; Date = [day deteriorating day: 1]) {// do stuff here} This does not work, of course: any is not dateAddingDays: . And even if that happens, it will leave a broad path of autoreled objects waiting for their destruction. Here's what I thought: I just can not add a NSTimeInterval , the number of seconds in a day is different May be. I can split it into NSDateComponents and add one day to the components, then add it again. But this is a long and ugly code. So I hope someone has tried some options for this, and found a good one. Any ideas? Set the date component of a day continuously and add it frequently: NSCalendar * Calendar = [NSCalendar currentCalendar]; NSDateComponents * oneDay = [[NSDateComponents alloc] init]; [Single set day: 1]; (Date of Date = [[Initial Copy] Autoreques] [...

PHP -> XML output is different on IE -

I am trying to output XML with PHP but faced with a weird (!) Error in Internet Explorer . The expected XML output is: (Simplified) & lt; Root & gt; & Lt; Match_id & gt; 12 & lt; / Match_id & gt; & Lt; Stadium_id & gt; 43 & lt; / Stadium_id & gt; & Lt; Tribune_id & gt; 2 & lt; / Tribune_id & gt; & Lt; Fan_id & gt; 453 & lt; / Fan_id & gt; & Lt; / Root & gt; I am producing this output with the following PHP code: echo " GetId (); Echo " 43 & lt; / stadium_id & lt; tribune_id & gt; 2 & lt; / tribune_id & gt; & lt; fan_id & gt; . $ _ Session ['user_id'] ". & Lt; / fan_id & gt; & lt; / root & gt;"; In Firefox, the output is similar to expected, however, in IE, the output is: This is a very annoying error. I have set the PHP header for the XML output, and lots of other things change but this can not work $ match-...

php - CodeIgniter: How to 'highlight' the link of the page the user is currently on? -

New to codeigner is still dependent on the MVC approach. I'm just wondering what's the best way to resolve it: I've got my navigation bar to highlight the currently active link like this: & lt; A href = "index .hml" id = "active" & gt; Index & lt; / A & gt; & Lt; A href = "blog.hml" & gt; Blogs & lt; / A & gt; Now, when I go to blog.html, I want to change according to id = "active" accordingly. Normally I provide a variable in each link and then set it the value of 'id =' active '. Somehow I do not think this is the best way. any idea? Update (12 Sept 2012) Since I have asked this, I have gone on Kohana and have expanded a module fully prepared for this purpose. Now, what I have to do, specifies my menu items in a config array and the highlighting is automatically module. First of all, you should not use id for this type of thing, id is on each page To give a unique iden...

Excel Export Blank Sheet Problem -

I had some code that worked for years to export the HTML table for Excel, it went like this - Private Zero ExcelExport (String Core_Number) {// set the response for Excel export reply. Clear (); reaction. Buffer = true; Response.ContentType = "app / vnd.ms-excel"; Response.AddHeader ("content-type", "attachment; file name = TEST.xls"); .. loops by generating a simple HTML table ... feedback. Type ("& lt; / table & gt;"); Response.Flush (); Response.End (); } I saw that Firefox now shows the file as an XML document instead of an XML document, and when I open the generated document it will fail the pars. In addition some users report export problems in some older versions of IE, although there is no problem at my end on IE (shows as an Excel document and opens properly). First? Thanks for your time. No answer was found, but now it has worked around it.

javascript - Triggering a file download without any server request -

Greetings, I'm working on a JS-based application that does some complex work and Logs & lt; Div & gt; Some information on (in fact, up to hundreds of rows). My goal is "Save Log" button that triggers the browser's download dialog The file has complete control over S / She should be able to store / store it for future reference; To get help in addressing some issues, by mailing it to the Support Department, Load it back into the app etc. HTML5's Web Store API does not help here (data is saved in a browser-defined location and it can not be easily retrieved except from JS). The application should be able to work offline (at least in some circumstances), and the efficiency is that I think of posting the data to bring it back with the "content-nature" header to sacrifice. The file is correctly text / plain , therefore the browser might suggest normal actions (such as "Open on Notepad") as if with normal file downloads...