Posts

Showing posts from June, 2013

php - advance click counter mysql or flat file -

Thank you for the first time. What is the best way to create an advance click counter (example idea [today] | [tomorrow] [this week] [last week] [this month] [last month] [all time]) . Is it better to use this flat file or ID (type: int (11)) link_id (type: int (11)) date (type: date)) counter (Type: int (11)) Please advise me what is the most effective way to do this. SQL data used with proper index is essentially stored on disk, which is more FACT Index Finds the fastest index of specific records / data. Your plan should look like this: link (Id: int, href: string) clicks (link_id: int, time: int, counter: int)

javascript - How to reset input field in the iframe? -

is a search input field at the top of my next page and then displayed in an iframe when discovered, whatever Search input box on iframe The problem is how do I go about reseting the input value in the iframe search input field? It remembers the old search with the title, so when you do a search again in IfFrame, it displays the last search instead of the new search keyword. You have to refresh the search again or to refine the search correctly. Thank you in advance I have made a sample here. Hope helps with this. : D

assembly - How to move value from the stack to ST(0)? -

I believe the following code is the most efficient way to move the value of ST (0) from the stack: .data var dd 4.2 tmp dd? .code MOV eX, pushing ERAD; Above the stack is a value; Move it to ST (0) Pop EAX mov tmp, EAX fld tmp Is Temporary Variable Really Needed? Also, is there an easy way to get the value of ST (0) from stack? Update: In the above example, I do not have integers around the moving-point . fld dword ptr [esp]; D 9 04 24

JAVA: storing input into array -

I have to write a program where the program will create random characters and I will need to store this random character in the array four [] arrayRandom = new character [10]; {RandomNumLet = (generator.extant (20) + 1) for (int i = 0; i & lt; 8; i ++); System.out.print (array emimilarator [random name] + ""); ArrayRampatty Letter [Random Mile] = ArrayRemand [i]; } Is there anything wrong with my code? Because when I run it and print the array, then I get the boxes for all the values ​​in the array and there are some letters that can not print this line of code System.out. Print (arrayRandomLetter [randomNumLet] + ""); Thanks You are specifying an element of ArrayRandomLetter from a value arrayRandom . As you never start arrayRandom , its values ​​are all 0. 0 is not a printable character value, so boxes are An easy way to choose a random character is: string characters = "ABCDEFGHJJLMNOPQRTUVX"; Four random squares = chee

c++ - Can I assign a object to a integer variable? -

Assume that I have an object I am specifying an integer MyClass obj1 = 100; // Not valid Let me assume that I have a parametric constructor that accepts the integer. MyClass (Int Num) {// .. whatever ..} MyClass obj1 = 100; // Now, its valid In any case similarly, the sub-reverse becomes valid?! for example) int number = obj 1; // Whether it is valid or something can be validated by TEEEX EDIT : I use the conversion functions It is possible to do The conversion function is often called the "cast operator" because they (with the constructor) are saying that when For example, many people have explained it Yes, provided the object A int , either directly or through an intermediate object. For example, if your class has a conversion operator int it will work: MyClass {public: operator int () const {Return 200}; }};

jquery validate check at least one checkbox -

मेरे पास ऐसा कुछ है: & lt; form & gt; & Lt; इनपुट नाम = 'भूमिकाएं' प्रकार = 'चेकबॉक्स' मान = '1' / & gt; & Lt; इनपुट नाम = 'भूमिकाएं' प्रकार = 'चेकबॉक्स' मान = '2' / & gt; & Lt; इनपुट नाम = 'भूमिकाएं' प्रकार = 'चेकबॉक्स' मान = '3' / & gt; & Lt; इनपुट नाम = 'भूमिकाएं' प्रकार = 'चेकबॉक्स' मान = '4' / & gt; & Lt; इनपुट नाम = 'भूमिकाएं' प्रकार = 'चेकबॉक्स' मान = '5' / & gt; & Lt; इनपुट प्रकार = 'submit' मान = 'सबमिट करें' / & gt; & LT; प्रपत्र & gt; मैं मान्य करना चाहूंगा कि कम से कम एक चेकबॉक्स (रोल्स) की जांच होनी चाहिए, क्या यह jquery.validate के साथ संभव है? मान्य प्लगइन केवल वर्तमान / केंद्रित तत्व को मान्य करेगा। इसलिए आपको सभी चेकबॉक्स मान्य करने के लिए वैधीकरण के लिए एक कस्टम नियम जोड़ना होगा। ऊपर दिए गए उत्तर के समान। $। Validator.addMethod ("भूमिकाएं", फ़ं

In Birt Reports - Displaying the most common string value in group -

For the data of this example: index, state, meal 1, ca, Hamburger 2, NE, lettuce 3, ca, cheese 4, ny, lettuce 5, ny, paneer 6, ar, paneer I will show the most common food for the group of the state and for each state. So the result should be for example: state, popular food ca, hamburger ny, lettuce ar, cheese The problem is I can not Find an aggregation that will return the most common string. 'Mode' function but it only works on integer, am I forgetting something? Thanks! should do the following: Set up two groups - Arrange the food sub-group by counting aggregation li> Output state and food in the foothills of the state group

c# - Query filter design for string field -

In my table, a field can have unchecked strings on the UI, All, Value1, Value2 have drop down and the results were filtered by the selected option values. So far it is easy and adding new filters to the UI is not a problem. No changes are required in my stored procedure. Now I have to create an "other" option, which does not hold values ​​as value 1 or value 2. Apparently this will require a "not in" operator in my query, and will make maintenance difficult, because the list of prices is likely to change Any suggestions, Design Tips? If your option table can contain a different column called IsOther, then your query will Instead of using one no, WHOEOOther = 1 may be.

How to make custom join query with Django? -

मेरे पास ये 2 मॉडल हैं: genre = (('D', 'Dramatic '' 'टी', 'थ्रिलर'), ('एल', 'लव'),) क्लास बुक (मॉडल.मॉडेल): शीर्षक = मॉडल.छर्फफिल्ड (अधिकतम_लांबी = 100) शैली = मॉडल.कारफिल्ड (अधिकतम_लांबी = 1, विकल्प = शैली) वर्ग के लेखक (models.Model): उपयोगकर्ता = मॉडल। विदेशी (उपयोगकर्ता, अनोखा = सत्य) जन्म = मॉडल.डेटाइमफिल्ड ('जन्म') किताब = मॉडल। फ़ॉरवर्डकी (बुक) मुझे नाटक के पुस्तकों के सभी लेखकों के first_name और last_name को पुनर्प्राप्त करने की आवश्यकता है। मैं डीजेंगो में यह कैसे कर सकता हूं? जैसा कि कहते हैं ... लेखक.ओबैजेस.फिल्टर (किताब gen =" डी ") < / div>

ssis - Problem with the row count transform -

I currently present an SSIS package (developed on 2005 version) (developed on my local server) in a pre-production environment Is deployed to test I used the crying number to get a good / bad record count. This works fine on my local system, even though when I put it on the pre-production server, the row count does not work! (As it does not recognize Vairabils, which I have assigned to the corresponding transform - no drop down can be done in the Variables specialty section. No new luck is removed. Strangely it is not Any suggestions? Work for any other packages available on the same server for any other suggestions (RC on any existing package) To tramsform If you have a line If there is a problem with the calculation, the other option that we use here is building a script component in my company and increasing one line in one line. The performance is just as good - just add this code: / P> Public override all post excuse () MyBase PostExecute () Me.Variables.rowcn

java - Passing information between test methods in a junit testcase -

Currently I am creating a TestCase for a workflow and the workflow has different steps. The results are important, because the second step is required to know the value of the execution of stage 1. TestCaseWorkFlow1 Expands TestCase {Private Static String Results OfStep1 = Null; Public Zero Test Phase 1 () {if (failed) {resultOfStep1 = "failed"; }} Public Zero Test Phase 2 () (If (resultOfStep1! = Null) {// First test failed} Else {}} } Currently We are using static variables to pass information between testmethods. What is the best solution for this? Scenario? Please help. Thanks J This is not like a unit test for me, it's okay, but JUnit The best tool can not be you Pass the state through a fixed variable Use it to validate that step. One does the job .

c++ - sprintf an LPCWSTR variable -

I'm trying to debug a LPCWSTR string, but I'm trying to sprintf < / Code> is pushing in buffer, because it only recovers the first character from the string Here is the code:. handle WINAPI hookedCreateFileW (LPCWSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes handleHTemplateFile) {four buffer [1024] LPSECURITY_ATTRIBUTES; Sprintf_s (buffer, 1024, "create file w:% s", lpFileName); OutputDebugString (buffer); Return trueCreateFileW (lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwFlagsAndAttributes, dwCreationDisposition, hTemplateFile); } For example, I have to push CreateFileW: c or CreateFileW: \ Is it in buffer? Thank you. The version of which is sprintf_s which is designed for wide character strings. You will also need an array of four of wchar_t and to use OutputDebugStringW () In addition, you should note that sw

https - Using java class HttpsURLConnection -

I have a small code that basically makes an HTTP-client, that means it posts a request and Works with replies. As long as the HTTP is doing something well-timed for some reason, for some reason I still have to support HTTPS, what I'm doing to open a brief connection: url = New URL (server address); HTTPSURL connection httpsConn = (HttpsURLConnection) url.openConnection (); It fails, stating: sun.net .www.protocol.https.HttpsURLConnectionImpl com.sun.net.ssl I can not put it in HttpsURLConnection I think it's a bit trivial, but I can not find that I'm doing wrong in this ... it went away, and the code Looks OK - no? Appreciate any thoughts! Just place it or put it instead. Both provide ways to do the desired work as good. Any side related to technical problem Comment: You should ever not explicitly import / use Sun Java SE specific class in your code they are undocumented classes and They are subject to the changes, which may be the reason for you

wpf - Targetting DataTemplate for only on certain views -

I have a datatapplette inside a global / shared resource tool that targets a datatype: & lt; Datamapplet datatype = "{x: type foo: times}" & gt; & Lt ;! - My Datatapple Visual Tree goes here ... - & gt; & Lt; / DataTemplate & gt; This datatyploplet replaces all my fuses: Bar Types (UserControls / Windows) on all my views What do I want to do This template only applies certain ideas, other data. Is not being affected by this datatyhelplet. I can copy this datatapplet to the resources section of each of these scenes, but I would not want to copy / paste the content of the Datamapplet which will result in maintenance headaches. What you're using here is called it. And you are asking for a clear one, you can use the clear resource key to complete it: DataTemplate x: key = "MyStyle" datatype = "{x: type Foo: times} "& gt; & Lt ;! - My Datatapple Visual Tree goes here ... - & gt; & Lt; / DataTemplate &am

flex - save downloaded file automatically in directory using AIR -

I'm a newbie, so please help me ... package com.func {Public Class Downloader {import.net; FILEReference; Import flash.net.URLRequest; Private var req: URLRequest = new URLRequest (); Private var fr: FileReference = new FileReference (); Public Function Downloader () {} Public Function Download (): Zero {req.url = "http://www.yourdomain.com/example.txt"; Fr.download (request); }}} I have an FW question: 1. How to save the downloaded file automatically in the file system directory (ex: application directory as default), < Strong> File to save without an open browse dialog. 2. How to open the file system after downloading a file without saving the file without saving it Thaks .... The data can be downloaded from the URL one by one. You can get a string from this in the whole event handler. The string can again be set as TextArea's text property. You can write a file without the user, using the air orbit of conversation. The same class can also

embedded - core at which function is running -

karyaleta function to define and implement a kernel karyaleta to consider. Is there a way to find out is a core work is going on? I mean, is that a function / variable on which to find that the core architecture of the hand is running taskaleta. Thank you! A tasklet always the same run on the processor core, which it determined the kernel inside, you are currently in for the detection of processor running smp_processor_id () can call on. The number of processors for mapping the physical ID check in / proc / cpuinfo and Core 2 logical processor ID for each core HyperThreading make.

Django model manager use_for_related_fields and ModelAdmin relationships -

I am having trouble managing my model manager properly while using the admin interface. Basically, I have two models Are: class employee (model. Model): objects = model. EmployeeManager () username = models.CharField (max_length = 45, primary_key = true). . Category Eotm (models.Model): Month date # Model = Model. Datafield () employee = model Faircy (employee). . . And I have a employee manager class which overrides the get () method, something like this: Class Employee Manager (models.Manager): use_for_related_fields = True def (self, * logic, ** keywords): Try: return super (employee manager, self). Except self * model (* logic, ** keyword) .DoesNotExist: # If there is no employee matching query, try a LDAP look and create # example model for the result, if any. In fact, the idea is that they have been created with information in the employee objects in Active Directory, if they are not present in the database, it is better than my application code But when I trie

iphone - How to Get Search Bar in Tableview to Appear When User Taps Search Icon at the top of sectionIndex scroll bar? -

I have a table view on the right with an indexed scrollbar that shows the characters AZ and a magnifying glass icon Is ({search}). All the letters in the scrollbar appropriately move the user to the relevant section except the magnifying glass, which takes the user "A" and keeps the hidden searchbar I just go to the top of the table I want the search bar to appear when users will tap the magnifying glass icon in the scroll bar. I am totally looking for ways to do this, but I can not find the shame to add a table for the first time to search. There is a cell and its own section, which I do not like to do unless it is the only way. / P> Thanks a lot! Try it - I wanted the same type of thing, but first, hope it helps is. In short, I put the search bar in the header view of the table view, then adjust the content offset to show it to {search} when it is touched. Actually I was able to copy the behavior of Apple Apps, so when the search bar appears again hidden

java - Android - Persist file when app closes -

I am creating a file in my Android application, as follows: HEADINGSTRING = New string ("Android debugging" + "\ n" "XML Test debugging"); } Public Zero Setup Logging (Reference Reference) {Log D. ("Logging", "setting logging ..."); Try {// fileOutputStream fOut = context.openFileOutput (FILE_NAME, Context.MODE_APPEND), below IOException; OutputStream Water OSV = New OutputStream Water (FOUT); // Write a string in the file osw.write (HEADINGSTRING); / * Make sure everything * is actually written and close * / osw.flush (); Osw.close (); } Hold (FileNotFoundException e) {e.printStackTrace (); } Hold (IOException e) {e.printStackTrace (); } Finally {Log D. ("Logging", "Preparing setup ..."); }} And I write the file while running this app: public zero addToLog (file file, string text ) IOException throws {BufferedWriter bw = new BufferedWriter (new FileWriter (file, true)); Bw.write ("\ n" + text)

json - iPhone: variable type returned by yajl -

I'm quite new to programming and I want to do the following: JSON Get data from REST web server Parser data obtained using YAJL Draw a graph with those data using core-plot. So, 1 th item, I use Asaiacteepiaryuist that I, who expects the third almost exactly (I still have to learn how the core-Terrain). I have a problem with the other thing I use YAJL because it looks like a fast parser, so do not try it :) Here is the part of the code that Receives data from the server and parses them: // Get server data response_data = [request response data]; // Pars JSON has received itself. SarfotData = [response_data yajl_JSON]; NSLog (@ "Data from Array:% @", self .nightfamadata); Parsing really works very well, NSLog output is something like this: 2010-06-14 17: 56: 35.375 TEST_APP [3733: 207] ] From the array data: {data = ({val = 1317; date = "2010-06-10 to 15: 50: 01 + 02: 00";}, {val = 1573} ; Date = "2010-06-10 16: 20: 01 + 02: 00&quo

file upload - ASP.NET FileUpload -

Greetings! I am using ASP.NET fileUpload control so that users can upload text files to our web server but we seem to have caught the guard by a simple warning Gone: The original timestamp's original timestamp, which we wanted all to do great work in the case of saving the file. The uploaded file was lost, such as the last date and date was created. The revised date and actual date and time on the last date were created when the file was saved on the server. My question is, is there any way to maintain the original timestamp by setting some features, which I do not know yet or to get the original time stamp to read the file's metadata possible? Any in-sight and suggestions are highly appreciated. John Unless the file is being uploaded in the format This data is not there, then not. When a file is uploaded to a web server, the binary data is sent to the file for the file, not the "file" as it is displayed in the file system. For example, you do not

Live streaming using iPhone and saving the video -

What technology is used for live streaming of the video from a iPhone cam to a remote server? I want The way this is being done right now Frame has been captured in the form (it is currently being done through a screenshot private API, but now with 4.0 you can better take the frame of the video, do not discuss it yet), Then take some number of frames, sign them using FFPAP or some ohter encoding libraries. Switch between them, send video fission on their servers, and stream them live using the live streaming stream ... See how it is being done, see a birdie ... it helps < / Html>

android - How much is too much memory allocation in NDK? -

NDK download page notes, "The best good candidates for NDK are self-contained, CPU-intensive campaigns that don 'A' allocate a lot of memory, such as signal processing, physics simulation, and so on." I came from C background and used to use NDK was excited to work most of my OpenGL ES functions physics, animation of the meridian, etc. Related native functions ... I know I'm up a little running that I have the original code and I am wondering whether I could make the mistake. I have not had any problem in testing at this point, but I am curious if I have problems in the future. For example, I have defined the game structure (as seen in San-Anjelus example). I'm dynamically loading vertical information for objects (just what is needed for an active game area), so vertical, normal, textured coordinates, index and texture are a bit of memory allocation for graphic data ... just the name needed I take precautions about the allocation between the areas of the gam

java - Swing invokeLater never shows up, invokeAndWait throws error. What can I do? -

मैं इस कोड है: try {SwingUtilities.invokeAndWait (नई Runnable () { सार्वजनिक शून्य चला () {try {dialog.handle डाउनलोड करें};} पकड़ (IOException io) {io.printStackTrace ();}}}); } पकड़ (अपवाद io) {io.printStackTrace (); } में हैंडल डाउनलोड करें मैं एक इनपुटस्ट्रीम पढ़ रहा हूं, एक प्रगति पट्टी के मान की गणना कर रहा हूं, और उसे उस पर सेट कर रहा हूं। तो, जब मैं एक बटन क्लिक करें, एक नया JFrame खुल जाता है और सब सामान मैंने ऊपर लिखा है। अगर मैं ( dialog.handleDownload अपने आप में है कोई SwingUtilities विधि में ), ऑपरेशन समाप्त होने तक यह फ्रीज हो जाता है। अगर मैं इसे invokeLater में जोड़ देता हूं तो यह बहुत तेजी से बंद हो जाता है (मैं कुछ भी नहीं देख सकता, और ऑपरेशन समाप्त नहीं हुआ है)। अगर मैं इसे invokeAndWait में जोड़ता हूं तो मुझे invokeAndWait प्राप्त होता है, जिसे इवेंट डिस्पैचर थ्रेड त्रुटि से नहीं कहा जा सकता। मुझे क्या करना चाहिए? ऐसा लगता है कि आप इसका उपयोग कर सकते हैं यह आपको एक पृष्ठभूमि के थैले के लिए महंगी ऑपरेशन को स्थगित करने की अनुमति देता है (अप

javascript - JSLint reports "Unexpected dangling" character in an underscore prefixed variable name -

I know that some people consider the presence of a leading underscore that a variable is "private" That is such a secret, which is such a myth, and this is the reason that JSLIInd has reported such names with an error message. I am using Google Analytics on a web site which I am building in terms of GA variable, like "_gaq." I am trying to clean my JS code 100% JSLIN (I am not religious about my coding style, and so I have to go to Mr. Crockford's lawyer), I said, Variables can not do anything about names ... So, I think I can not "clean up" 100%. If I misunderstand the message, and can do something to follow JSLIt practices, then I post here. Ah, I have handled this ... I wrap the statement which underscores with JSLI command Use to disable prefix variables, then re-enable this class error: / * jslint name: true * / ... with statement (s) with _var .. . / * Jslint name: false * /

javascript - Uncaught TypeError: Cannot read property 'length' of undefined -

I have a plugin that accesses length property on many elements. However, Javascript console points 12 points of jquery.min.js. How can I backtrack to find out the offensive line in my plugin? is how can I backtrack to find out the offensive line in my plugin? Great way to debug those errors

c++ - Is it possible to generate constant value during compilation? -

I want to identify my classes to identify each type with a unique hash code. But I do not want it to produce a method all the time, like it. int GetHashCode () is applied during the runtime. I want to use the constraint already generated and I was hoping that the compiler comes with some computing and set these constants. Can this be done using templates? If you could possibly give me some examples Update: Thanks for the comment '' I realized that my question should be: Kiss with minimum runtime cost Is it possible to check type? I want to check an object against the pointer against class type. Just the classes that apply to my libs, I was thinking about some custom hashing, thus the original question. I had considered using the typeid , but I am unaware of the runtime price to run it. I have made a assumption because Typid produces a type_info class Which will consume more than the simple comparison of the unique difference values. You can do it togethe

CSS three column layout, liquid center, no left-margin! -

I am in favor of CSS based layouts, but this is the one I can not understand. With a table it's oh-so-easy: & Lt; Td style = "border: 1px solid blue, width: 200px;" Rowspan = "2" & gt; Rights & lt; / TD & gt; & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td style = "border: 1 px solid fuscia;" & Gt; Additional content & lt; / Td> & Lt; / TR & gt; & Lt; Tr & gt; & Lt; Td style = "border: 1 px solid green;" Callspan = "3" & gt; Footer & lt; / TD & gt; & Lt; / TR & gt; & Lt; / Body & gt; & Lt; Html & gt; Left default is Correct default width Content is liquid Additional stuff sits below Now this important part is: "left" does not exist Again it is easy with tables. Delete the columns and expand the "content". beautiful. I have seen through many examples (and "holy grails") through liquid and

java - Which technology should I choose for 3d globe web application -

I want to ask you for one advice. I am currently developing applications in Spring SpringMCC application as backend, Spring MVC application as a tool for management and in third part, where my problem is, as I provide 3D Globe Is an application that is fed by the data from the backend of the user's chosen data set (the user can switch over them). This should be a web application (although I prefer not to apply it to Flash / Flex), is composed of two main parts - the main part is the classic web GUI where the user makes his choice and the second part is the 3D globe. Presents visible data to the world with selected. My question is, do you think it is the best option to implement it? Can the SpringMVC framework be used for such an application? I am grateful for any clues or directions, thanks. Honestly, browser for 3D, Java is a very bad option. It was a sun project before but now open source, he said, it does not play well with all the browsers (for example, it does not

oop - How to create a c# class that gives you usage like: ClassName.Property.Subproperty -

I want to create a square so that I can use it like this: Website Urls.User.Edit Website.Urls.User.Add website.Urls.Content.List How can I do this in C #? (They return the string) public class UserClass {edit public string {get; Set; } Add a public string {get; Set;}} public class UrlsClass {public user class user {get; Set;}} Public Square Website {Public UrlsClass Urls {get; Set;}} What do you need for it?

cocoa touch - iPad: Split view Controller -

I'm making partition visual based applications for iPad. I have 1) A Route View Controller 2) An Expansion View Controller This is like Menu and Submenu. Here I am planning to do I would like to navigate in the root view controller It is used for use or if it is recommended how it is possible. To display, the extension view controller has a function or popover button is not showing potentially Can you optimize for full extension view controller in app deliite? Just go through the source code given by the apple. It's all well commented.

Trigger a build in Hudson from Visual SVN -

Is there a way to trigger Hudson to perform one when someone uses VisualSVN for the server? What is one way to set visual SVN to send a build trigger for Hudson? Hudson monitors a subversion store, so I'm not sure why you want to trigger Hudson But, in any case, create an SWN trigger script which uses WGet to make the Hudson server an HTTP request to start a build. Reasons to create a Hudson using WGet: / bin / wget -o / dev / null "

Git to SVN trouble -

मेरे मालिक के पास एक प्रबर्स रिपॉजिटरी है जिसके लिए वह सोर्सफोर्ज पर उपक्रम के माध्यम से केवल पढ़ने के लिए उपलब्ध प्रतिलिपि बनाना चाहते हैं। उसके पास एक पर्ल स्क्रिप्ट थी जो यह कर सकता था, लेकिन यह अब काम नहीं कर रहा है (हम इसे अभी तक डीबग करने की कोशिश नहीं करना चाहते हैं) और यह वाकई महान नहीं है। तो एक वैकल्पिक समाधान है कि जीआईटी में एक रेफरी रेफरी के रूप में रेपो, जिसे मैंने पहले से सफलतापूर्वक पूरा कर लिया है (सभी उचित प्रतिबद्ध विवरण और लेखकों सहित), अब मुझे जो परेशानी हो रही है वह इसे एक अलग एसवीएन रिपॉजिटरी तक ले जा रही है। मैं इसे "git svn dcommit - add-author-from" के साथ प्रतिबद्ध प्रक्रिया शुरू कर सकता हूं, लेकिन समस्या यह है कि यद्यपि सही लेखक को प्रतिबद्ध संदेश के अंत में दिखाई देता है "वास्तविक" लेखक मेरे मशीन का उपयोगकर्ता है। मैं प्रतिबद्ध के साथ वास्तविक लेखक को संरक्षित करना चाहता हूं, और मैं भी मूल टाइमस्टैम्प को भी संरक्षित करना चाहूंगा। क्या किसी को भी यह पता चला है कि मैं इसे कैसे पूरा कर सकता हूं? क्यों इसे केवल एक के रूप में प्र

.htaccess - one page has more than one url. search engines give penalty please help me out -

I am using Prestashop as a cart for my site. I have a problem; Website is used in dynamic url. I enabled friendly URL writing. The problem is that one page has more than one URL, you can access the same URL from the dynamic url and static url. Actually there are 9 different URLs in one page. It clearly creates problems for SEO because search engines impose a penalty on my website for this. What can I do to solve this problem? I have no knowledge of programming Here is the HTAC for the website. . RewriteEngine RewriteRule ^ ([One-Z0-9] +) + - ([[A-Z0-9] +) - Replaced module activation on URL # Rewriting rules # One-z0- 9] +) (\ - [_ a-zA-Z0-9-] *) / ([_ a-zA-Z0-9-] *). Jpg $ /img/p/$1-$2$3.jpg [L, E] revised rules ^ ([0- 9] +) \ - ([0- 9] +) / ([_ a-zA-Z0-9 -] *). Jpg $ / img / p / $ 1- $ 2 Jpg [L, E] revised rules ^ ([0- 9] +) (\ - [_ a-zA-Z0-9-] *) / ([_ -zA-Z0-9 -] *). Jpg $ / img / c / $ 1 $ 2.jpg [L, E] revised rules ^ lang - ([AG] {2}) / ([a-zA-Z0-9 -] *) / ([0- 9] +) \ -

Android: Content goes off screen -

He is an example of my TextView, which is the right side of the screen. I tried padding and stuff, but no idea what was not working to do anything? Here's my hierarchy, ScrollView, TableLayout & lt; TableRow & gt; & Lt; TextView android: layout_column = "1" android: id = "@ + id / text_price" Android: layout_width = "fill_parent" Android: layout_height = "wrap_content" Android: inputType = "textCapCharacters" android: padding = "2dip" Android: Text = "@ String / game_price" /> & Lt; EditText android: id = "@ + id / gameprice" Android: inputType = "textCapCharacters" android: gravity = "right" Android: minWidth = "120dip" / & gt; & Lt; / TableRow & gt; TextView try to set width to wrap_content, remove layout_column = 1 (not required , afaik), and the height of edittext and set the width wrap_content as it strange that at a Tekstw

Access/update Telerik RadGrid item values in code-behind before ODS event handler -

I need to update some values ​​of the code I modified in my code-behind custom code Can I use the item (and update some values) from one of the event handlers of the grid, form on our rad grid? Currently I am accumulating values ​​in the temporary variable and then I am injecting new values ​​in the embedding / updating event handlers of the ObjectDatissors, but if I can do it in one place, then it would be great. (I can not do all this in ObjectDataSource event handlers because I can not access the controls within the edit form of my grid.) I play with grid editable object object with extract value and update value method I am, but I have no luck. Any suggestion would be appreciated :) Grid's UpdateCommand event handler Try to use The incident logic that is coming in it contains a reference to the editing format item. From there you can remove the newly-entered values ​​and pass them to the Object data source: hashtable new value = new hashtable (); ((Grid Academic

asp.net - changing validation group of button with javascript on client side -

In one form, I have several group controls grouped by valid group group. I want to assign a validation group to asp.button dynamically on the client side using javascript based on the selected item in the drop down list. Here I am using javascript, but it is not working. This verification group shows the undefined, but is actually a default group defined. Please give me advice & lt; Script type = "text / javascript" & gt; Function nextlight () {var_ddlStatus = document.getElementById ("& lt;% = ddl.ClientID%>"); Var _selectedIndex = _ddlStatus.selectedIndex; Var _btn = document.getElementById ("& lt;% = btnNext.ClientID%>"); Warning (_btn.ValidationGroup); // This undefiend shows in the message here, even though I default defiend a group in the button. If (_selectedIndex == 1) {_btn.ValidationGroup = "G1"; } And if (_selectedIndex == 2) {_btn.ValidationGroup = "G2"; }} function changeValidationGrop

iphone - Can't remove Default.png? -

I was stupid with an initial splash screen but did not decide to use it. But now, though I have removed the default.png from the resources, but when I start the app, the splash screen still appears in the simulator. Default.png The project is not in the folder, I close the xode and open it again, the splash screen is still there, close the simulator and open again, the splash screen is still there. I remove the app from the simulator, create it, and the splash screen is still there. Any thoughts? Try "clear all targets" before rebuilding

WPF Binding issues -

I have a WPF window that binds my dependence on the property of a local user, so now I think that the window will let me The value given in the usercontrol I get it by setting the window's DataContext in Window Now the window is full. I set the user's datacentax in a view model class, and some time On (based on user action) rules Change in control control value All right till now But now the change value is not reflected in the Windows dependency asset. How can I resolve this issue? Why do you need a DP in your window? Just database the property of user control in your WM for the same property. If the user should be able to update the property in VM, then you need to use the bond in two ways and the property in VM requires a public set property. Here's an example:

tabs - CSS class not being used on list item with styling -

I have a list item that is based on the inside of the Divine Container Style. I want to add a "selected" category to it, but this style is not changing. Firebug does not look in any styles from that CSS style. You will see that I'm adding class = "column tab selected" to the first tab, but it is not changing anything. To show that the style is not being added to the element, here is a screenshot from firebug What am I missing? My HTML & lt; Div id = "columnNewsTabs" & gt; & Lt; Ul & gt; & Lt; Li id = "recent radial link" onclic = "column news ('recenthandline')" class = "column tab selected" & gt; Recent & lt; / Li & gt; & Lt; Li id = "Recent Conference Linked" onclick = "columnNews ('Recent Comments')" & gt; Comments & lt; / Li & gt; & Lt; Li id = "popular headline link" onclic = "column news ('popular

testing - null object reference with automation enabled flex-application at preloader -

We are trying to automate your Flex application after adding automation libraries to our project, we have the following exceptions: Writing Error: Error # 1009: Can not access a property or a null object reference method mx.automation :: AutomationManager $ / addDelegates () on mx.automation :: AutomationManager $ / addDelegates (mx) on mx.automation :: AutomationManager $ / addDelegates () on mx.automation :: On AutomationManager $ / addDelegates () .automation :: AutomationManager $ / addDelegates () mx.automation on mx.automation :: AutomationManager $ / addDelegates () on mx.automation :: AutomationManager $ / addDelegates () on mx.automation :: on AutomationManager $ / addDelegates () :: AutomationManager $ / addDelegates () on mx.automation :: AutomationManager $ / addDelegates (mx.automation) on mx.automation :: on mx.automation AutomationManager $ / addDelegates () :: the AutomationManager $ / addDelegates () :: AutomationManager $ / addDelegates () on mx.automation :: A

algorithm - A function where small changes in input always result in large changes in output -

I need an algorithm for a function that takes n integer and returns an integer. For small changes in the input, the resulting integer must be very different. Although I have taken many mathematical courses, I have not used that knowledge much and now I need some help ... An important property of this function should be that if It is used as input, with a combination of coordinates and the result on an image (for example, as a grayscale value) is plotted, any repeating patterns can only be seen TE If the image is too large. I have experimented with several algorithms with a small number of pseudo random numbers and in the end it killed me that the MD5 almost meets my criteria, except that it is not for numbers (less Less than I do not know). As a result, for some (like n = 2, it can easily be changed easily to get the list of integers) like the Python prototype: import helib DRF uniconum (X, Y): returns Intel (HSHLMMD5 (str (x) + ',' + str (wi)). HexDogest () [- 6:],

database design - How best can I extract a logical model from a physical DB model -

We have made significant changes to our physical DB, because now this project is the end, I want a logical summary of this model From, to allow me to create schemas for both Oracle and SQL Server Can anyone tell me the best way to achieve this? I used to hope that Todd Data Moderator would help, but I guess I can not seem to see any option to do that? If you are looking to normalize your physical database, then get help on this Wikipedia article. May be. As far as you should use the tool, many companies use this. I use the device coming up with mysql community server to model my data, although you can create an Oracle and SQL Server schema To manually create SQL

delphi - Using ZLib unit to compress files vs using ZipForge -

There are many questions about zipping in Delphi, however it is not a duplicate. I'm using 1) ZIP and unzip (!) 2) To protect passwords: Archives Now I am removing the password from all archives so that I only need to zip and unzip the files. I zip them to minimize bandwidth while uploading / downloading files from the server. So my idea is to unzip all the files for one time (with password) and to process them once again without a password. I have nothing against Zipfarz, anyway it is an additional component, every time I have a latest Delphi version I will have to wait for new IDE support and additionally more components during installation More problems (I do not mention the cost because it is very low, and while changing the component with the cost of another, it is not a cost issue). So since I do it is very easy, I want to change ZipForce with a simple function using 2 ZLib unit. I found work (and trial). What do you think about using the Zlib unit? Do you

java - Grails + Struts Tiles -

Does anyone have an experience in integrating (instead of SiteMap)? I found some articles like this: And as I had understood at least a year ago there was no way to use tiles inside Grails. Maybe something has changed the last time? Did anyone try to do this? ps or perhaps there exists another plugin for grails, which allows me to use it? Never tried but django templates awsome DjangoTemplates plugin can see

Debugging with Visual Studio 2010 and VB.NET: Immediate fails due to protection level -

This is very often, more often per day, with Visual Studio 2010 During debugging, when I used the Instant command as follows: ? Named Variables I get the following error: 'Nemavyel' has not been declared. This can be inaccessible due to its security level. In this case, other debug features have gone, but I can set breakpoints, steps, steps, etc. The solution is to stop, stop and rebuild the debugging, and try again. I am developing a VB.NET Windows Forms application, but this is VB.NET WPF projects also 2008 VS. I never had this behavior with 2008. Is this a known bug or may my environment / installation problem? Do you have any idea how to solve this small, but annoying issue? This happens to me many times, too. And the only solution I have come to know so far is: The solution is to stop debugging, clean up and rebuild the project and stop trying again. The Suo file will not help and it can be anywhere in the code and does not seem to b

image - jquery animating different img widths -

I'm not taking any benefits for a long time, so it's time to ask I .animate () < Trying to use / code> so that the image can be clicked on. The first state of the image will be a thumbnail size, again in the original size of the image, then on a thumbnail. Edit: Pictures are loaded with a width of 150px by default. The problem is that not all images have "basic" sizes, so I need to tell a normal function to switch to the original size of the current image. This is my current code that loads $ (window). Load: $ ('img [class = resize]'). Value ({width: '150px'}, 400);} and {$ (this). Value ( {Width: ''}, 400);}}); Now clearly the way I want it does not work, because .animate () thinks when I say Width: '' I want to make width = 0. Any suggestions on how I should go about this? Here's an idea: When you write an image on the page, add a class or some other attribute , Which is the original width of the im

entity framework join -

I have 2 tables (user, user_profile) without a clear relationship in SQL DB. And I can not add it to DB Therefore, I can not do this: db.user.include ("user_profile") to join The feature is user_id Is such a thing possible? db.user.join ("user_profile user.id = user_profile.user_id") How can I do this? Thanks Try it out: Is equivalent to joining db.user_profile at URL in db.user in UP. Select new user.id {u, above};

solr schema for article->paragraph structure -

I want to list some articles and show paragraph numbers in search results. So I think the SLR schema should look like this: article_id, paragraph_number, paragraph_content Therefore, I need the article to first remove the paragraphs and one by one . I am concerned about this demonstration because one article can contain 100 paragraphs. Any suggestions? It is better to get heavy loads on index time instead of searching time instead of parsing paragraphs of documents You probably go on the right track index. How many articles do you have? There should be no problem bringing the paragraph in the strip (we pre-process more complex than this).

php - How to save a the content into the file with neat alignment? -

I have a textbox in which I have loaded an XML file. After editing and saving the XML content in the XML file, the content is not in the correct form. While reloading, its not in XML format - How to accumulate content in a file - How can save files with streamlined alignment? Please help me For example, I have to save like the following but & lt; Section & gt; & Lt; Value & gt; A & lt; / Value & gt; & Lt; Value & gt; B & lt; / Value & gt; & Lt; ; / Section & gt; Thank you, Praveen Jay As Gordon Say your question does not have any meaning - XML ​​piece is still "well made" (but completely away from it), therefore it is in in the correct form. Do you want you to preserve the format presented to it? In which case it & lt; Pre & gt; ... & lt; / Pre & gt; Tag OTOH is the standard device that formats XML according to specific standards - e.g. C

c++ - Same socket getting created -

This piece of code is 5005 where I have created a server socket and is set to listen on a special port number. To say socket function is accepted, the socket is created that is copied into the m_Socket variable and once the end I gave a closed server socket named SocServer which was created locally. Now, to my question, is it possible that SocServer (initially created) and m_Socket (copy on acceptance of copy) adds the same number to 1500. struct sockaddr_in ServerSock; // Socket Address Structure to bind port numbers to char * localIP; Socket socketer; // sockaddr structure to set up ServerSock.sin_family = AF_INET; ServerSock.sin_addr.s_addr = INADDR_ANY ServerSock.sin_port = htons (portnumber); To create a socket for the 5005 // port number // portnumber if ((SocServer = socket (AF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET) {Description is false; } // wPortNumber to bind the socket (bund (SocServer, (sockaddr *) & ServerSock, sizeof (ServerSock)) = 0) {return false; } /

Set of Tools to optimize the performance in general of SQL Server -

I know there are a few things to help in optimizing the questions ... but there is something else, Is there any such complete package that can scanned your database and expose all display problems, naming conventions, tables are not normalized, etc.? I know that this is DBA's work and if DBA is good, you need a tool like T, but sometimes you start a new job, you are in charge of an existing database And DB is a disturbance, so you do not know where to start ... thanks < P> In my opinion, a normalized database does not guarantee good performance. Normality is mainly concerned with data consummation. It is not really practical for an automated tool to handle what you are proposing because any case fits all the implementation for best practice, after which all treated as This is more due to a guideline that businesses like me hire people to see a purpose on their unique SQL Server environment (shameless plug) May include. The display aspect can be addressed by the

encryption - AES acceleration for Java -

I want to encrypt / decrypt many small (2-10 KB) data for now, the display is OK: Core On 2 Duo, I get around 90 Mbit / s AES 256 (when using 2 threads). But I may need to improve it in the future - or at least reduce the effect on the CPU. Is it possible to use dedicated AES encryption hardware with Java (using JCE, or maybe a separate API)? Does Java want to take advantage of better CPU features (SSE 5 ?!), if I get a better CPU? Or are there a fast JCE provider? (I tried Suns and Bouncy Castell - there is no big difference.) Other possiblilities? JVM will take advantage of special CPU features while executing code to be AVS encryption: AES Identifying some code as the implementation of JIT is beyond the compiler's capabilities. To use special hardware (such as "locking" on VIA processors, or using the instructions given on the new Intel processor), you should go to some point, through the "basic code". Perhaps, a JCE provider can do this for

eclipse - manifest.mf is overwritten by ecplise during jar export -

I want to store executable jar with eclipse. So in my project I created File src / META-INF / MANIFEST.MF: Manifest-version: 1.0 main-orbit: Main class class-path: But when I export my Java Eclipse Project Eclipse, I warned with the following message: "Jar expired with export warnings. Additional information See the details for. Myproject / src / META -INF / MANIFEST.MF was replaced by MANIFEST.MF and is no longer in the jar. " Anyone know that How do I avoid it when I export my project in Eclipse? Can I While exporting the jar, choose to use the existing manifest and browse your project's manifest files. Now it will be the manifest file in the derived jar.

actionscript 3 - How to count retweets -

I am trying to create a flash retett button, and I want to know how to calculate the rackets for a particular situation To do. Can anyone help me? Thanks in advance, Alex . Here's an example: http://api.twitter.com/1/statuses/retweets/16208928355.json < End with P> simply id.format .

sql - Table choosing algorithm -

Below I am using simple examples, real tables are large, I can not store devices in a table, I can not merge the device 1 and the device table 2. I have three tables: ID is the same sequence in device 1, device 2, computer (device 3), device 1 and device 2, device 3 is computer table device 3 device 1 and device 2 (Multiple-to-many), so I have two tables with relationships: rel1with3 and rel2with3. sequence device device or two; Make SEQUENCE device_3; Create table device 1 (d_id number, d_data VARCHAR2 (20), contract device 1_pk primary key (d_id)); Create Table Device 2 (d_id number, d_data VARCHAR2 (20), contract device 2_pk primary key (d_id)); Create a table computer (d_id number, d_data VARCHAR2 (20), contract device 3_pk primary key (d_id)); Tablet Relay 1 with 3 (d_id_1 NUMBER, d_id_3 NUMBER, Contract Relay 13_fk_1 Foreign Key (d_id_1) Reference Device 1 (DIID), Contract Relay 13_ Key of the Foxy Force (D_ID3) reference computer (DIID)); Create Relay 1 with 3 (d_id_1,

sql - insert a time-stamp value in my db by php -

I am using Oracle Express and in my application, I will include a time-stamp value in my table: $ marca = date ('ymd H: i: s'); $ IN = $ ID = $ ID = $ ID = $ id = $ $ $ $ $ $ $ $ $ $ ($ Conn, $ query); oci_execute ($ stid); But after executing it back: Warning: oci_execute () [function.oci-execute ]: ORA-01843: Mass is illegal ... and say Current_timestamp should work for you. If MARCA is not already field TIMESTAMP, then I I suggest that you make it one. $ query = "IN_SECTION IN_SECTION IN_IDC (), testo, pharma, mdico) value ('$ id', current_temestamp, '$ testo' '$ Ferma', '$ medico') ";

php - Magento order status change events -

I want to change a remote list through the web service, I know that through the Event Observer method, my code Triger, but I do not know which event is useful for completing my work, such as ______ complete, there is an updated list of events or more documents? If you want to transmit an event, when an order changes in any situation or situation , You have to include your own event listener. It is not as difficult as it sounds. If you override the _setStatus function Mage_Sales_Model_Order is the same ... / ** * Order Model * * @ Category WMG * @ Packet WMG_Sales * @Author Lee Bolding & lt; Lee.bolding@wmg.com> * Supported events: * Sales_order_status_before * Sales_order_status_after * Note: Unfortunately, we * functions can not override is done by * function registerCancellation (as _setState protected setState () ()) and _checkState () * / Square WMG_Sales_Model_Order extends Mage_Sales_Model_Order {/ ** * Order State Protected Setter * Allows to set an

activerecord - Rails find_or_create by more than one attribute? -

सक्रिय-रिकार्ड में एक आसान गतिशील विशेषता है जिसे find_or_create_by कहा जाता है: Model.find_or_create_by_ & lt ; विशेषता & gt; (: & lt; attribute & gt; = & gt; "") लेकिन अगर मुझे एक से अधिक विशेषता के आधार को खोजने या बनाने की आवश्यकता हो तो? मॉडल: समूह और सदस्य के बीच एक एम: एम रिश्ते को संभालने के लिए समूहमैंबर। मैं कई उदाहरण हो सकता है जहां सदस्य_आईडी = 4, लेकिन मैं कभी एक से अधिक बार उदाहरण नहीं चाहता हूं जहां सदस्य_आईडी = 4 और group_id = 7. मैं यह पता लगाने की कोशिश कर रहा हूं कि क्या ऐसा कुछ करना संभव है: GroupMember.find_or_create (: member_id = & gt; 4,: group_id = & gt; 7) मुझे पता है कि इसे संभालने के लिए बेहतर तरीके हो सकते हैं, लेकिन मुझे यह पसंद है Find_or_create के विचार की सुविधा। एकाधिक विशेषताओं को और : GroupMember.find_or_create_by_member_id_and_group_id (4, 7) ( find_or_initialize_by का उपयोग करें अगर आप को सहेजना नहीं चाहते हैं संपादित करें: उपरोक्त विधि रेल 4 में पदावनत है। यह करने का नया तरी

c++ - How will the Windows C/Sleep() function operate during clock drift? -

If I run something like sleep (10000), and during that time the system clock changes, the thread for 10 seconds Will the sleeping wall clock time, or less or more? To wit. Converts milliseconds into hardware tics at sleep () function? sleep () wall-clock time It is based on the same timer used for thread scheduling. Due to the frequency of system hours and actually the timeout is passed.

Sharepoint 2010 search won't index custom fields -

I am trying to create a managed metadata field, but this is not showing in my crawled column. It's a custom field, I'm not sure what's wrong, but when I search, my only result sees all items related to the list page. It looks like the inventory items themselves are not searching. I do not know whether he is relevant or not. I added this column to my idea, it is just necessary, but it does not work. Depending on when you add new columns, it may not be crawled by the search service yet. . If this has been a while and you know that the crawler should have taken it up, then you can try to remove the search index and run a new full crawl to take it correctly. It can be as simple as some form of an incremental crawl list, and it is not the item itself.

c++ - How to use a "vector of vector"? -

I have already searched the web for this but I have not found satisfactory results. I want to create something like vector & lt; Of vector & lt; Integer * & gt; & Gt; Test_vector; How do I fill this vector vector? How to use it? Maybe somebody know some good tutorials on the web? Merciful Mikey Just remember that test_vector vector & lt; Int * & gt; . You will fill the test_vector by filling each element vector. You can access it as any multi-dimensional array. See: int * p = test_vector [0] [0]; or: int * p = test_vector.at (0) .at (0);

c# - How To Add Reference a Webservice public Struct in App -

Posted originally at: I have solutions to two projects : A webservice project and a web app project in which the webservice project is a web context (web app project is only a test case). My website project contains a class file that contains multiple public strings I can use just right within the webservice project, however, I do not see or refer to structs from within the web app project. I am able to do Is not it true that when you add a web context to the web service, then you essentially have the "Object" version of the webservice? In that case I hope to reach any public member of the webservice. I have already created such services that refer to related projects, and when I use the service, then I have access to the referenced projects and they are members. Why can not a class file be used in the same project as a service? The namespace and class file (CS) for webservice (asmx) are identical. In the web app, I have an experiment statement for web referenc

sql server - Getting filtered results with subquery -

I have something similar to the following: ID name color --- - ------- 1 Bob Blue 2 John Yellow 1 Bob Green 3 Sarah Red 3 Sarah Green What I would like to do, return a filtered list of results returned the following data Gone: ID name color ------------ 1 Bob Blue 2 John Yellow 3 All red i.e. I would like to return 1 line per user (I do not have any particular thing that special Which line has been returned for the AUS user - I need that [ID] is unique.) I already have some work but actually slow, where I created a floating table by adding all the IDs and then To select the top 1 from the same table, include the "external application" i.e. create table # btb ([id] [int]) #db select [id] from iTable T Select 1. [Id], t2 [Name], Apply T2.Color from #TB TO Outer (SELECT TOP 1 * from MyTable T2 WHERE T2. [ID] = T. [ID]) AS V2 Drop Table # TB Can someone suggest how I can improve it? Try thanks Try: as CTE (selection number ROW_NUMBER) ( Select the ID,

design patterns - What would you like to correct and/or improve in this java implementation of Chain Of Responsibility? -

पैकेज डिज़ाइन patttern.behavioral; आयात डिज़ाइन.पेटर्न.बायवीरियल। चाइनाओफ़रसपोजीबिलिटी। *; पब्लिक क्लास चेनऑफ रिस्पॉन्सिबिलिटी {सार्वजनिक स्टेटिक क्लास चेन (निजी अनुरोध [] अनुरोध = शून्य; निजी हैंडलर [] हैंडलर = नल; सार्वजनिक चेन (हैंडलर [] हैंडलर, अनुरोध [] अनुरोध) {this.handlers = handlers; यह। अनुरोध = अनुरोध; } सार्वजनिक शून्य प्रारंभ () (के लिए (अनुरोध r: अनुरोध) के लिए (हैंडलर एच: हैंडलर) यदि (एच। ओन्डले (आर)) तोड़; }} सार्वजनिक स्थिर वर्ग अनुरोध {निजी आईएनटी मूल्य; सार्वजनिक अनुरोध सेट वैल्यू (इंट वैल्यू) {this.value = value; इस वापसी; } सार्वजनिक int getValue () {वापसी मूल्य; }} सार्वजनिक स्थिर वर्ग हैंडलर & lt; T & gt; {निजी कमांड & lt; T & gt; कमांड = नल; सार्वजनिक हैंडलर (कमांड & lt; T & gt; कमांड) {this.command = command; } सार्वजनिक बूलियन संभाल (टी अनुरोध) {वापसी command.execute (अनुरोध); }} सार्वजनिक स्थैतिक सार वर्ग कमांड & lt; T & gt; {सार्वजनिक सार बूलीयन निष्पादन (टी अनुरोध); }} वर्ग टेस्ट चाइनाओफ़रीस्पॉन्सिबिलिटी {सार्वजनिक स्थिर

mysql - Find groups with both validated, unvalidated users -

(Not my real Micek schema, but it indicates what is needed.) Many people can belong to groups, and groups have many users. User: ID INT Verified TINYINT (1) Group: ID INT Name VARCHAR (20) Groups_utter: Group Iid INT user_id INT Need to find a valid and unauthorized user (respectively valid being 1 or 0 , respectively), in order to Typical manual maintenance jobs are thousands of users, all are from at least one group, but usually only 2-5 users in a group. This is a live production server, so I can probably prepare myself a query, but for the last time I tried, it took a few minutes before I killed it. (I'm not one of those superb SQL wizards.) I think I can take the server down for maintenance, but if possible, the question that is done in a second case would be great. For each user, select all those users with whom Is in the same group. Then select only those users who are valid. Select users to leave the UIA groups of groups which include g1 ON = User_

c# - 'System.Windows.Data.MultiBinding' is not a valid value for property 'Text' -

I am trying to write a custom markup extension that defines me as my own The mechanism of using a binding, but when I try to return my markup extension to multibimbing , I get the exception exception above. I have: > & lt; TextBlock Text = "{my: CustomMarkup ...}" /> custom markup a multi-binding , but apparently on text to Does not like to set> MultiBinding . How does this work when I say: & lt; TextBlock & gt; & Lt; TextBlock.Text & gt; & Lt; Multibinding ... /> & Lt; /TextBlock.Text> & Lt; / TextBlock & gt; But the way I am doing does not work? Do not return yourself to multibind instead, multibinding Return results Provider pricing . BTW, what are you doing in your markup extension? If you do not need to override the ProvideValue , then you may be hereditary with the multibide (which is sealed). You can achieve almost anything by setting the appropriate converter and other proper