Posts

Showing posts from March, 2011

php - using mysql_real_escape_string to cleans my queries -

Is this the best way to do this? Should I do it in every query in every value? addlashes (mysql_real_escape_string ()) overkill? text"> If you are using mysql_query () then yes, Mysql_real_escape_string () is the best way. And of course, you have to implement it in each parameter that you mix in your SQL statement. E.g. $ query = "Select from x, y, z foo Where A = '". Mysql_real_escape_string ($ _ POST ['A'], $ mysql) "'And B ='" Mysql_real_escape_string ($ _ POST ['B'], $ mysql) "'"; But you can also use the statement made, e.g. With the module, the parameters are transferred in addition to the SQL statement and therefore they do not need to be avoided. It is more secure (because you can not forget to avoid or incorrectly misrepresented it), it is often faster and easier to compare than to mixing parameters in the statement. $ pdo = new PDO ('mysql: host = localhost; dbname = test', ...

Maintain WHERE Order In SQL Select -

Is it possible to maintain the order of the WHERE clause while SELECT for specific records? For example, the following selection statements were given: SELECT [RecSeq] FROM [MyData] WHERE [RecSeq] = 3 or [RecSeq] = 2 or [RecSeq ] = 1 or [Rick Siec] = 21 or [Riccik] = 20 or [Rick Siec] = 1 9 or [Rick Cec] = 110 or [RECSE] = 109 or [RECSSE] = 108 or [RECEc] = 53 or [RECEAAC] = 52 or [RECSE] = 51; I want to return the result: 3 2 1 21 20 19 110 109 108 53 53 51 However, whatever I am getting back to is not in any particular order. Currently I have a loop that calls the selection statement for each record required. It can range from 1 to 700,000 times anywhere, saying that performance is the best. Any solution or am I stuck in the loop? You need ORDER BY FIELD . Select RECeq from MyData where the RECeq IN (3, 2, 1, 21, 20, 19, 110, 109, 108, 53, 52, 51) Order of Field (Rick) Sack, 3, 2, 1, 21, 20, 19, 110, 109, 108, 53, 52, 51); You do not say that which dat...

language agnostic - Unit Testing: Logging and Dependency Injection -

So logging on the Internet from SO and other sites is the best answer: Zero DoSomething () {Logger.Log ("Do something!"); // code ...} Now you generally avoid static methods, but in the case of logging (a special case) this is the easiest and obvious way. Inside the stable class, you can easily inject an example through a config file / framework to give the same effect as the DI. My problem comes from a unit test perspective. On the example above, assuming the point of DoSomething () was to add two numbers simultaneously, I will write my unit tests for this right about what is the logging about? Will I write a unit test for logging (still use fake examples for logger)? I know that if this was the case then I would have to write an integration test to make sure that the logger was actually written in a log file, but I'm not sure. The following test driven development (which I do) unit any advice? Personally, I practice TDD / BDD in a very religious way an...

flex - Fit TitleWindow to contents -

If I do not specify the width and height value for TitleWindow , then its size will change PopUpManager . But there are moments when some components will change shape, like combo box which is loaded with asynchronous datapuvers , or the other component which was not visible and I used it from included inlineout to true Want to set. In those moments, I would like to tell the title windows that they resize themselves to fit window content. Is there any way to do this? / div> both of these Try calling the methods: titleWindow.invalidateSize (); TitleWindow.validateNow (); // or Title Window.validateSize ()

Sending E-Mail via DatabaseMail with C# -

How can I send e-mails in C # (which is integrated into SQL Server)? I did not find a helpful article or anything that could help me out well. I have no experience with database mail, so it is only visible, but It seems that whatever you are sending, as well as ADO Net SQL queries can parameters, and the ADO to execute the SQL stored procedure to send mail. Can use the net.

assemblies - Maven 2 Assembly plugin - how to split main artifacts and dependencies into separate folders -

I am using maven's assembly plugin to create an installation package. For the sake of my packaging, I need to split the artifacts generated in different folders during the construction and all dependencies. My current assembly is as follows: & lt; ModulSat & gt; & Lt; ModuleSet & gt; & Lt; Included & gt; & Lt; Included & gt; Test: test & lt; / Include & gt; & Lt; / Include & gt; & Lt; Binary & gt; & Lt; IncludeDependencies & gt; False & lt; / IncludeDependencies & gt; & Lt; OutputDirectory & gt; Lib / custom / $ {artifactId} & lt; / OutputDirectory & gt; & Lt; Open & gt; False & lt; / Shell> & Lt; / Binary & gt; & Lt; / ModuleSet & gt; & Lt; ModuleSet & gt; & Lt; Included & gt; & Lt; Included & gt; Test: test & lt; / Include & gt; & Lt; / Include & gt; & Lt; Binary & gt; & Lt; IncludeDependencies & ...

ruby on rails - Deploying Thinking Sphinx through Capistrano yields 'Column number 6 has no name' -

I'm not sure where I'm going to be having problems. When I run the deployment task, thinking_sphinx: configure works fine, but then when this tries to index, this error occurs: Error: index 'board_core': any of column 6 Name is not there. Error: Index 'Board_Dista': column 6 has no name. ... and likewise for all of my indexed and delta index, I first thought that this was a problem with Capistrano because I have a Windows machine and a Mac project setup, and hat scaffolding Deployments deployed to a ubuntu setup. SQL for the query looks like the error is going to be: SELECT boards `` `ID`, CAST (` board ' AS 'name') AS 'NAME`, CAST (`boards`.`display_name` as CHAR) as` display_name`, cast (`boards`.`description` as CHAR ) As `description`, in the form of` `boards````````````` sphinx_internal_id`, 2576811075 as' class_crc`, '2576811075' subclass_crcs`,` sphinx_deleted` as 0, UNIX_TIMESTAMP (`boards`. `Created_at`)` create...

c# - Show ContextMenuStrip at location of StatusBar item -

I want to show a context menu strip instead of ToolStripStatusLabel in a statistrip. Normal controls have pointoscrins / point clients / etc, but as the toolstrapstatus label is derived from the component. Any help would be appreciated. There is a very, very late answer, just because I struggled with the same issue and This question has been lifted up. The best solution I have found so far has been a good turn in the answer. Here it is: Zero toolstriptitlemeasubject (Object sender, mouse EventArgues E) {if (e.button == mousebutton.write) {var label = (toolstripteam) sender; this.contextMenuStrip1.Show (this.mainStatus Strip, label.Bounds.X + eX, label.Bounds.Y + eY);}} Mouse against control for coordinates (E.X., E.I.) Adding coordinates appears exactly on the right position, it is removed from the menu and shown in the upper left corner of the ToolStripteam for record.

python - Adding Values From Tuples of Same Length -

itemprop = "text"> In a graphical program, I am writing pygame, I use Tupal that represents a coordinate like this: (50 , 50). Occasionally, I call a function that gives another tube such as (3, -5), which represents the change in coordination. What is the best way to add change value? It would be good for coordinating value if I can do something like coordination + = change, but it appears that just two topleps (50, 50) , 3, -5) will add something like that. The first value was to add 1 value and 2 got the second and a result of the tuple. So far I am using this very tedious method: coord = (coord [0] + change [0], coordination [1] + change [1]) What is a better and more precise method for connecting the values ​​of two tuples of the same length, it is particularly important how to do it, if Tuples is an arbitrary length or especially long length The previous method makes it even more tiring. If you are doing a lot of math, you may want to test using, ...

delphi in vista -

I have a problem when I run an error message in my program in Delphi 7 "Unknown table type - permission denied - file: c: \ PDOXURS.NET directory C: \" I do not know how to create for an answer On Vista, normal users do not have write access to c: \\, so you're not allowed to use the paradox. Two good options: Change the Net Dir in the path to the BDE admin on which user's use To allow user access, adjust access rights to the required files at c: \ and a bad choice: as administrator Program

c# - EnforceConstraints Problem -

dsrm_usersTableAdapters.rm_usersIPTableAdapter _tuser = नए dsrm_usersTableAdapters.rm_usersIPTableAdapter (); dsrm_users _dsuser = नई dsrm_users (); _dsuser.EnforceConstraints = false; Dsrm_users.rm_usersIPDataTable _muser = _dsuser.rm_usersIP; _tuser.FillBy (_muser, _IP); यह बहुत अच्छा काम करता है है, हालांकि, जब मैं ObjectDataSource का उपयोग करें और GetData () विधि का उपयोग कर ग्रिड दृश्य से कनेक्ट, यह एक त्रुटि देता है; बाधाओं को सक्षम करने में विफल एक या अधिक पंक्तियों में गैर-अशक्त, अनूठी, या विदेशी-प्रमुख बाधाओं का उल्लंघन करने वाले मान शामिल हैं त्रुटि; मैं डेटासेट पर जाता हूं और मैं संपत्ति विंडो में EnforceConstrains = false सेट करता हूं, erorr। तो EnforceConstraints = false GetData () के साथ काम नहीं करता है; तो अब मैं क्या कर सकता है? मैं इस त्रुटि के बिना GetData () का उपयोग कर ObjectDataSource का उपयोग कैसे कर सकता हूं। मैं पहले कोशिश करूँगा और यह निर्धारित करेंगे कि आपका । की कमी असफल रहे हैं आप इस द्वारा निर्धारित कर सकते हैं _dsuser.EnforceCo...

c# - ALT+<shortcut> precedes KeyPress events on custom textbox winform control -

I am having a very difficult problem, I will try to explain as equally as possible. Control is a text box made from scratch. It comes from the system. Window.form. Control. Now, on the form, I have some other controls & amp; Shortcut (ALT +) When a non-input control is centered in winforms, you can exclude ALT in these shortcuts and press only this is my exact same behavior that is experiencing from my textbox. The result is that the focus takes the other control before the event is removed and the keyboards are never removed. The event of the keydown has been removed. I think my control has not been identified as the input control. Another point of interest is that if I press the key event, the focus remains on my control, but certainly the keypress event is not even removed. You should be overridden under your control. Apart from this, you can see more methods for better understanding of internal Winform keyboard processing.

winapi - How to get the plugged/unplugged cable state -

I know about the IsNetworkAlive function from the Windows API but IsNetworkAlive false until any network activity does not That is, if you start your computer and check connectivity it will be wrong. If you ping any other computer (or receive a ping or any network activity from a computer), then this will start to return true. Is there any alternative or do anyone have to get an alternative solution for this? Whatever I have tried to do: Ping to the local host (none, because there really is no network activity) Ping local Note: I know that there is another question similar to this one, but here is my problem with IsNetworkAlive behavior WinInet functions must satisfy your needs InternetGet ConnectedState function of particular interest Shan is there.

performance - Most efficient php if structure -

What runs fast? Setting a default value and changing it - $ Foo = ""; If ($ bar) {$ foo = "someValue"; } or - if ($ bar) {$ foo = "someValue"; } And {$ foo = ""; } You should not be disturbed by the performance of a single if statement. Also, consider: $ foo = $ bar? "": "Some value"

classloader - Number of classes loaded in java -

I have a program that the number of loaded sections is constantly increasing. How can this really be? Or is there some misunderstanding in Java about loading the cloud? Here is a snippet from jConsole overnight: Can anyone tell me that such a continuous classification is for development? Or is it normal? Thanks What types of features are your application that relates to class shipments Are you normal For example: Are you continuously loading classes from remote sources (like RMI )? Do you have your own ClassLoader ? Are you using the Java proxy mechanism to create a square on the fly?

How can I update my SQL Server database schema? -

I will often deploy in the development of a project, only to ensure that I have no problem in production is. In addition, throughout development, I change my database schema. How can I update the database easily in production? I'm leaving the old database to the new one. Is there a faster way to update the deployment database? Thanks Edit What are some free tools for this? Maintain a list of all the changes applied to your dev database and whenever the database is deployed, But apply them. Alternatively, use a third-party tool that can compare two schemas and provides a change script which you can run.

python - How to increase connection pool size for Twisted? -

I am using twisted 8.1.0 as a socket server engine. Reactor - Apol database server is MySQL 5.0.67. OS - Ubuntu Linux 8.10 32-bit In the /etc/mysql/my.cnf : max_connections = 1000 In source code: adbapi.ConnectionPool ("MySQLdb", ..., use_unicode = true, charset = 'utf8', cp_min = 3, cp_max = 700, Cp_noisy = false] But in reality, I can only see 200 (or less) open connections ( show processist ) when applications are under heavy load This is not enough for my app: ( As I have seen that this is the limit of thread pools. Any ideas? As you suspect, this is probably a threading problem. Thread pool determines an upper limit for the number of threads in the thread, however, your process is likely to run from this limit Out of less memory, around 200 threads in your case, because each thread has its own stack, the total memory used by your process hits the system limit and no thread is created. can. Before you run your program, you can check it...

java - struts2 fileupload maximum file size -

I am using file upload interceptor for uploading file :) I have the maximum file size as an interceptor parameter Is set up: & lt; Interceptor-ref name = "defaultStack" & gt; & Lt; Param name = "fileUpload.maximumize" & gt; 20000 & lt; / Param & gt; & Lt; / Interceptor-referee & gt; Now, I want to get this value in my input / form jsp. For example, to get a message, "upload config file (maximum size 20kb)". How do I get this value? I can see that the frequency variable is FileUpload.maximumSize, but then how can I get instances of the installers in the stack? tnx One solution to read your configuration file using XML APIs And get the value you are looking for.

javascript - jCarousel issue - Hover images opacity settings -

After So far I've got jCarousel to display, and loaded images via a txt file, Do I want to show 4 images at a time, then when the user takes 1 image of the mouse to 30% of the other 3 images to fade the ambiguity. Then if they move the mouse in front of the image then I want this image to be 100% opacity and 30% opacity of the other 3 images. The image with the mouse on it is always 100% opacity, and 30% others, so it stands out. When the user moves the mouse out of the jCarousel box, I want all the images to show 100% ambiguity. I am using a code like this Thanks. Edit Sorry, I must have added the code before, here it is: this is what I have done so far nickrance.co .uk / jcarousel / dynamic_ajax.html This works, it enters passive images, but I think that when mouse jcarousel exits from the div, it requires mouseout event to restore the opacity of all images. it occurs. In addition, it works only for the first 4 images, and I have 10 images in the carousel, othe...

How do I set a Guid using Microsoft Unity -

I do not get this. I can not find any documents on this seemingly innocuous problem. I've tried 4 different formats: 1) Brace + lower & Lt; / Property & gt; 2) brace + top & Lt; / Property & gt; 3) nobrace + upper & lt; Property Name = "DefaultImpactID" propertyType = "System.Guid" & gt; & Lt; Value value = "67A5 AC 6-AB4D-47DD-AFC 7-EE44FC2D6FF" /> & Lt; / Property & gt; 4) nobrace + lower & lt; Property Name = "DefaultImpactID" propertyType = "System.Guid" & gt; & Lt; Value value = "fbfa75c0-a0a0-40e2-a239-c5c6b7435fa6" /> & Lt; / Property & gt; Always get the same error: System.InvalidOperationException: The value for the "DefaultImpactID" property can not be resolved. ---> System.InvalidCastException: The specified cast is not valid .. Never give value to Imagine typing on elements such as: & lt; Prope...

iphone - Scrolling UITextView programmatically -

I am implementing some simple text chat capabilities in my app and give me the UITextView programmatic form I have created a UITextView in the interface builder that adds a new line and some text to the already existing text. When the new text is added, it should scroll down to the bottom. Before creating my app I had created a test application to dismiss the concept. Text in the UITextView update with text from UITextFiew , however there is no scrolling. - (IBAction) entered text {CGPoint currentPosition = [TextWindow content offset]; [TextWindow Set Text: [NSString stringWithFormat: @ "% @ \ n% @", Text Window.text, textInput.text]]; [Text window offset offset content: animated current status]; [Text Window Scroll Range Visibility: NSMKrange ([TextWindows Text Length], 0)]; [Text input set text: @ ""]; [Become TextInput First Responder]; } I remember that implementing a similar feature in another application which I had developed some time ago ...

python - django - circular import problem when executing a command -

I am developing a dynamic application. The modules for the importance of my problem are given below: globals.py -> contains constants that are used throughout the application. SITE_NAME and SITE_DOMAIN are two of them and some are used to fill the string. Here's how I define them: Import django.contrib.sites.models from the site ... SITE_DOMAIN = Site.objects.get_current (). Domain SITE_NAME = Site.objects.get_current () .name models.py -> Models remain inside this module. Globals imports certain constants by some_command.py -> A command that imports certain constants from global. When executed, the order imports from globals.py and a circular import problem arise: globals.py , Sites app and Sites app are called import models.py in exchange with get_current () Strong> globals.py . Edit: Without facing the issue of this circular import, this application runs continuously at no charge. There is no problem importing globals.py fr...

c# - Silverlight - How do I make each item in a list box be the same height? -

How can I create a Silverlight list box in which all the items are of the same size and take 100% of the listbox height To wit. 1 item will be the height of the list item, 2 items will be 50% of the height of each list box ... Edit - Here is the code Public Class Uniform Panel: Panel {Safe Override Size Major Override (Size Available Size) {Size Panel Speed ​​Size = New Size (); For (int i = 0; i & lt; kids.Count; i ++) {UIElement child = children [i]; Child.Measure (availableSize); Var childDesiredSize = child.DesiredSize; Panel design size. HEIGHT = = Child size. Light; If (panelDesiredSize.Width I see, only you need Get the total hat / items in the item. Correct Points ... In that case you can create columns with the Uniform Grid (which already exists as part of the platform) and 1 = You can use the following XAML & Lt; List Box Vertical Contentelment = "Statchch" Horizontal Content Elementment = "Stretch" & gt; & Lt; ListBox.I...

database - unique value field based on another field in django -

Introduction: I'm new to django and db design. SUPEREDIT: I made some significant changes, so before my changes the answers can not be described here. I'm sorry. I will inherit the code: models.py: class player (models.model): name = models.CharField () class team (Models.Model) : Name = models.CharField () member = models.ManyToManyField (player, = 'membership') class word (models.Model): word = models.CharField (unique = true) definition = models.CharField (). .. class ownership (models.Model): owner = model. Exotic (player) team = model. Foreign key (team) word = model. Foreign Key (Word) class membership (models.Model): team = models.ForeignKey (Team) Player = Model. Forwardkey (player) The word table has populated. I make a player in the admin. Then I join the members by creating a team. I have added ownership to the administrator. I create a new proprietorship and I have to choose from players, teams, and words. I want to put an obstacle where a play...

windows - Can an app use the clipboard for its own purposes? (read: who owns the clipboard?) -

In PowerBuilder's IDE, the code uses the autocomplete feature code to clipboard the entire text dialog. By doing so, what was stored on the clipboard before it was overridden. So, if you had the winning number of the next lottery stored on your clipboard, and you used to complete m_goodfor to m_goodfornothing , then you have The only chance lost is ever getting rich, and you are left with nothing on your clipboard. It seems that it was implemented by some trainee, no one was watching. However, there is also a chance I have worked for everything, and thus using the clipboard is absolutely legal, can an application use the clipboard for its own purposes? Who is considered the owner of the clipboard? (Whoever adds to the feature of the feature's programmer, and provides the argument for the purpose, assuming that the user can actually be benefited from) You probably are on internal logic to communicate information other than pure laziness There is no reason why...

.net - How do I resolve a InvalidOperationException when reading MSMQ using ActiveXMessageFormatter? -

How do you avoid the InvalidOperationException created by MSMQ sender and receiver? Any help you can get will be appreciated! I think it may be related to the sender's body type feature, but I do not know the proper domain of the attribute values. > Sender code: using the system; Using System.Collections.Generic; Using System.Linq; Using System.Text; System Using messaging; Namespace MSMQTester {class program {static zero main (string [] ARG) {messageQQ = new message query (@ "lab exam"); Q.Formatter = new ActiveXMessageFormatter (); Message message = new message (); message. Priority = message priority High; Msg.Body = "& lt; hello_world / & gt;"; Msg.Label = "test1"; Q.Send (MSG); }}} recipient code: using the system; Using System.Collections.Generic; Using System.Linq; Using System.Text; System Using messaging; Namespace MSMQViewer {class program {static void main (string [] args) {MessageQueue q = new MessageQueue (@ ...

Other than the work by Watts Humphrey, what are good resources for the Personal Software Process? -

I am interested in following PSP, even if it is not the first time for the whole process. And I do not like it because of its tough structure, as I learned. I think that this will make me a better engineer, or at least get more information about my strengths and weaknesses so that I can develop good habits, though, besides Whatsapp Humpers books, and, I have other good resources I'm not familiar with (primarily free - website, blog, payment processing is also accepted). What are the best resources there is a beginner? Carnegie Mellon is a degree program in software engineering that uses PSP. The page has many links to news, notes and practice which are free and very useful for self study.

c++ - Timer Interrupt Service Routine on a host computer running at a rate of 10 microseconds or faster -

I am trying to run the following pseudocode at the rate of 10 microsports or on the host computer (512 MB RAM, Intel 2.5 GigHartz Pentium 4 processor, etc.) is running on a Windows XP operating system: int main (zero) {while (1) {}; } Interrupt Service Routine: Every 10 microsounds, printf ("Hello World"); I know that MFCs are timers, but they are not working if the timer needs to be faster than 1 ms. What would be the easiest way to accomplish the goals of my pseudocode? thank you in advanced. I'm not sure that you can get that type of display from Windows XP, at least Not dependable from the user. You may be able to run your code in the form of a kernel driver, or instead of using a real-time OS like Xenomai, you may have to do better.

validation - What's a good language for validating CSV files? -

What is a good language to validate CSV files? Edit : Yes I'm excusing myself to learn a new language, often files have extra blank rows or fields, or fields are too long. Currently I am using VBA script in Excel, but I want to try some other languages. One you already know, unless you look for excuses to learn a new language In this situation, I will suggest a dragon. Python has an built-in CSV module, which can be useful if you are validating data and not just formatting.

asp.net mvc - AutoMapper flattens Domain Models but does it do the opposite? If not, what does? -

I'm studying on automaker due to one of my first questions. It says that automaker separates the complex domain model, but I need something for the opposite that I need to wire my visual model (stepped domain model) into a complex domain model so that I Quickly convert a visual model into a domain model. Is there anything like an automaker that takes a view model and makes it into a complex domain model? Not really, as it would be extremely traditional to be useful. When the patterns are flat, but on the other hand 'round ... it is very easy custom logic.

url - Should I store the connection scheme for an OpenID? -

When someone logs in to my web site, should I store a connection scheme, http or https for openID? Or just what comes later: or pupeno.com? In OpenID, the person entering is claiming the URI. In this way, you should store the entire claimed URI, plan and everyone. (For example, there may be a completely different page.) Edit: Every question in the comment: How to handle partial URLs; For partial URLs, instead of example.com, example.com is the one that must be done before (all) user input before authentication. It is based on equality with other systems. There are some examples.

php - "No completions available" on var_ -

I have a problem with perfection. Now I can not find any suggestions that I can type var_dump, but it is more comfortable with autocomplete. I am using Eclipse PHP IE 3.5 with PDT 2.1. Add "core API" to "PHP Language Library" in the Eclipse PHP Project. Solution : Right click on your Eclipse PHP project -> Properties -> PHP Build Path. Click "Add Folder ..." and select the source folder to use (Applications, Library, Public, ...), and then click "OK." Click "OK" to save changes Close Eclipse. Go to project path. Open ".buildpath" with the text editor (gedit, vim, notepad, etc.). Add the next line after the BuildPrintry type = "Conn" path = "org.eclipse.php .core.LANGUAGE "/> Example : Earlier : & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Buildpath & gt; & Lt; Buildpathentry kind = "...

actionscript 3 - Text input fields in flex when full screened does not work -

Hi all I have a problem where my application is full screen I can not click on any text input component and I can not do any input This is due to security restrictions, one can create an SDF which betrays some action on your machine ... For example, a copying desktop displays a dialog that has a dialog that allows users to Your Live ID and Password There is probably the burden of other frightening uses that Adobe wants to avoid by disabling the keyboard input and there is no way to fear it. J

jvm - Java nonblocking memory allocation -

I have read somewhere that Java can allocate memory for objects in almost 12 machine instructions. This is very effective for me as far as I understand that using any move using JVM is undoing memory in memory. This help in reducing the number of requests for operating system, which is quite expensive, I think but even CAS operations can be spent up to 150 cycles on modern processors. So, can the real cost of memory allocation be realized in Java and what moves to accelerate the allocation of JVM using allocation? JVM already allocates memory area for each thread (TLA or thread local area) . When a thread needs to allocate memory, then it will use "collision with allocation allocation" in that area. (If "Free Pointer" points to 10, and the object size to be allotted is 50, then we only confront the free pointer in 60, and tell the thread that it is 10 and 10 59 can use the memory).

drawing - How to draw hypergraphs? -

I've discovered a program for a long time that can attract hypergraphs, Anyone who can draw a graph on Linux knows any equivalent to the hypergraph? There's a great job there.

Information about SCO Unix Com ports -

I am trying to talk to a SCO Unix box via a serial port, where there is an existing application. I need to figure out what application sets the serial port as it is the old non-GUI version of UNIX, so I should be able to do this from the command line. I know that to use / dev / tty * in it, but I am having difficulty finding a particular document. Configuring the serial port can be done from: / Usr / lib / uucp / devices The 'cu' command for testing is appropriate

c++ - What are the rules for choosing from overloaded template functions? -

Looking at the code given below, why the foo (T *) function is selected? If I delete it (code foo (T *) ) still works and works correctly, but G ++ v4.4.0 (and maybe other Compiler too) Two Fu () functions: four for one [four] and four for one [7] #include & lt; Iostream & gt; using namespace std; The template's & lt; Tinnamam T & GT; Void foo (CONST T & amp; Cout & lt; & Lt; "Foo (Constant & amp; amp)" & lt; & Lt; Endl; } Template & lt; Tinnamam T & GT; Zero Fu (T *) {cout & lt; & Lt; "Foo (t *)" & lt; & Lt; Endl; } Int main () {foo ("bar"); Fu ("Furar"); Return 0; Formally, when comparing conversion sequences, lvalue changes are ignored. The Eligibility Adjustment ( T * -> T const * ), changes to the ( int [n] -> int * , zero () -> zero (*) () ), and the other. The only difference between your two candidates is a renormal change. String l...

How to handle KeyDown in VB.NET -

Ok here's my dilemma here I have this code: Cacode = key A then text box 1. Updated text ("C,") PictureBox2 Visual = True My computer. Audio. If I enter it under Play Form (Mine Processing C., Audioplaymoda.background), if IF form 1_keydown, Visual Basic thinks: '' AA member is not a keycode system '' EventArgs' Now I've seen this code work before, but it's not here. Any help? Here's the full code: Private sub form 1_keydown (as the object-by-sender, as the system, the Wi-Fi and the system. Windows.Forms. KeyEventArgs) If E. Cacode = Keys.A then text box 1 .Appendext ("A,") PictureBox2.Visible = True My.Computer.Audio.Play (My.Resources.C, AudioPlayMode.Background) End if E. Cacode = keys s. Then text box 1. AppendText ("C,") PictureBox14.Visible = True My.Computer.Audio.Play (My.Rosources.D, AudioPlayMode.Background) End End Ensure that you have defined the methodology why e is declared EventAr...

compiler construction - C++ programs, compiling with g++ -

I have a lot of information about compiling the C ++ program with g ++ in the Linux environment but, maybe That's something I'm missing, I'm getting this strange output / behavior. I have the source file in test.cpp. To compile it, I did (1) g ++ -a test.cpp g ++ -o test test.o ./test everything works fine But when I had complained and linked the same step, like (2) g ++ test.cpp -o test ./test => works fine (3) G ++ - Test.cpp -o test => does not work In my last case, test is generated but is no longer executable; But in my estimation it should work fine. So, what is wrong or do I need to change some settings / configurations ?? I'm using G ++ 4.3.3 Thanks. when you say: g ++ -c test .cpp -o test -C prevents flag linking, is therefore not executable - you are renaming the .o file Actually , Do not do this.

Creating a custom SOAP adapter for BizTalk ESB Toolkit 2.0 -

Using BizTalk ESB Toolkit 2.0 We are working on a project where we will call proxy Is required for a web service which is a DLL, we have no problem doing so through an orchestration because you can use a static port and use the Web service setting to use the soap adapter, To indicate in the Task Admin Interface Assembly Onfigr can. Although there is no clear way to do this in the travel program, dynamic ports do not have the option of using the SOAP adapter. This is a good reason why we want to do this, do not worry. Since then, we have implemented a custom adapter provider but it is having trouble working. We followed an example (old) shown: The law removes the name, type name, and method name of the assembly, which is the Resolver dictionary and then written in the context of the pipeline: pipelineContext.Write ("TypeName", "http://schemas.microsoft.com/BizTalk/2003/soap-properties", type name); PipelineContext.Write ("legal name", ...

Does XCode have a cursor navigation stack like Visual Studio? -

The Visual Studio cursor tracks the positions and lets you move forward and backward through these conditions, for example, you Ctrl + - to navigate backward and type Ctrl + Shift-to forward. I think XCode tracks the history of the files you've seen, but does it even allow me to go through the cursor to move forward and backward? The reason I ask because I think by using the double left click command, I go to function definitions (often in a single file), and then I want to quickly get the first one The file itself was in the file because I am in the same file file history navigation is not useful Currently I have to find out through the code to find out where I was, which was tedious. Thanks In EXOD4, [Control + Command + & lt; -] Previous, go to [Control + Command + ->], go to the next one.

sql server - SQL Efficiency: WHERE IN Subquery vs. JOIN then GROUP -

As an example, I want to get a list of all the items that have some tags applied to them. I can do any of the following: Select item. Id, items. Item items from item where item items in item (id) select item items from item TIGID = 57 or item tag. TIGID = 55) or select item. Id, item. Skip Item ItemTag.ItemID = Item.ID on itemTag WHERE ItemTag.TagID = 57 or item tag. TIGID = 55 Group item item. Id, item. Name Or something completely different In general (assuming that there is a general rule), what is a more efficient approach? select Item.ID, ItemName Item with WHERE Item ID IN (item tags from item tag tag = 57 or item tag. TIGID = 55) or SELECT Item.ID, Item Item Item Description Item item.ItemID = Item.ID, item tag, item tag, item item, tag.agid = 57, or ItemTag.TagID = 55 group item .id The second D query will not compile, because it gives reference to Item.Name without any group or group. If we remove GROUP BY from the query: select item...

string - Is there a JavaScript strcmp()? -

Can someone verify this for me? There is no version of strcmp () in javascript, so you have to type it: (str1 str2? 1: 0); about str1.localeCompare ( Str2)

Update SQL in Oracle conversion from SQL Server -

I am trying to create an update statement in Oracle, here it is the version in SQL Server: evDATE ev SET (ev.station_type = t.st_type, ev.adt = t.adt) source EVA from databat te on ev.counterID = t .counterID two table The source table contains the counterID primary key data is the TTL table was the counterID foreign key I am tring the data from the TBL to get into the souce table. I appreciate that someone helps in creating an oracle version of the update. Thanks, Greener You want to use this technique: UPDATE (selection ev.station_type, t.st_type, ev.adt ev_adt, t.adt t_adt to source eva add data on CTB on ev.counterID = t.counterID) SET station_type = st_type, ev_adt = t_adt; This subkey generates your results, on which you want you to use the SET section to update the column.

.net - How does Google Talk get current Music track? -

How is the current song played to Google Talk? Do I diagnose it? EDIT: It seems that each player has his own SDK for use Winamp : here is a good thread to use iTunes : Windows Media Player : I'm not sure that there is a coherent way of doing this, but I think both the iTunes and Windows Media Player have COM interfaces which you can do this way For the thing Use the.

c# - Performance creating multiple small files -

I need a test app that will generate as large a fast as possible on the disk. Will Assenpace Ops file help or just write them? Is there a way to speed up the whole process (writing on a file is not possible) desire physical Drive IO hindered here? If you write 10,000 alarm rpm drives versus 4200rpm drives against an alarm SSD, then you might get different results.

ruby on rails - Why does DataMapper use mixins vs inheritance? -

That's why I'm only curious about: Using a mixin for your model on the datamap class class Lt; Does anyone know why the datamapper chose to do this (or why not chose AR)? I think that ActiveRecord is a database supported aspect of the main feature of a model class Because it attains that behavior, the datamaker looks like the database is supported to become an aspect of a class that can be added to the class. It is my guess that Yehuda Cats can tell you definitely.

Tomcat Server/Client Self-Signed SSL Certificate -

I have an Apache Tomcat 6.x server, which is running with a self-signed SSL certificate. I want to present my certificate to the server on the server so that I can prove it on the basis of users' database. I have to work all this on an example that I found online, but with example the canned certification and the creation of JSC datastore. I want to make my own datastore but there is no luck. How do I create a datastore for Tomcat? How do I create a self-signed certificate for Tomcat? How do I create a self-signed certificate for the client? How can I force Tomcat to believe in the customer's signature? I am playing with Java key toll several hours now Finally, my problem has been solved, so I will post the result here if P> Thanks for Michael Martin I came to know that: By default the keytool uses the DSA algorithm when it produces self-signed certificates. These keys are accepted without any issues prior to the version of Firefox. Firefox 3 does not use ...

Strange Exception thrown using Dynamic Linq Entity Framework Query -

I have the Gallery Entity Framework Class, and I'm trying to use the dynamic link library posted on Scottgue's blog The unit set reads the failure of the code: return reference. Gallery. Orderbie (SDX + +). Exclude (page * rows). (Rows) move List (); sidx == "name", and sord == "desc". The gallery object has a property called "name", however, when executed, I get the following exception: '' title '' resolved in the current scope or reference Can not be done. Make sure all the referenced variables are in the field, the required schemas are loaded, and this namespace is properly referenced. Near ordinary identifier, line 6, column 1 Does anyone know what this means? "This" was the nickname problem so that the following code could work: Filter field name as Title it.Title Answer me here met.

Underlying constructs of "streams" -

What are the underlying principles of the concept known as "section"? How does a file stream work? edit - I guess by the answers that each type of stream is implemented separately, but the main concept is controlled by a class or a set of tasks and There is a sequence. Is it true? How about this definition

My IP is showing up wrong in PHP home server -

ओके सरल पर्याप्त & lt; PHP प्रतिध्वनि $ _SERVER [REMOTE_ADDR]; ? & Gt; ठीक है ना, मेरा आईपी वर्तमान में 72.184.212.85 है, परन्तु जो कोड मैं एक स्क्रिप्ट के लिए आईपी अवरोधक सिस्टम पर उपयोग कर रहा हूं I आईपी को दिखाता है 127.0.0.1 का मेरा घर सर्वर आईपी जब मैं अपनी स्क्रिप्ट पर जाता हूं तो मेरा आईपी 127.0.0.1 के रूप में दिखाया गया है, लेकिन जब मैं अन्य पर जाता हूं वेबसाइटों को 72.184.212.85 के रूप में दिखाया गया है मैं अपने परीक्षण सर्वर पर दिखाने के लिए पहला मान कैसे प्राप्त करूं? $ _ सर्वर ['REMOTE_ADDR'] हमेशा वह आईपी पता दिखाएगा जिसमें से अनुरोध आया था यदि आप अपने स्वयं के कंप्यूटर पर अपने स्वयं के स्क्रिप्ट पर अपने नेटवर्क के भीतर प्रवेश करते हैं, तो आपका बाहरी आईपी पता कभी भी नाटक में नहीं आता है। अनुरोध करने के लिए अपने स्थानीय नेटवर्क को छोड़ना होगा और फिर बाहरी पता दिखाने के लिए वापस आना होगा, लेकिन अगर यह सब स्थानीय है, तो ऐसा कभी नहीं होगा।

asp.net - Autopostback=True for a Textbox and RequiredFieldValidator next to it. But when submitting form after Posting back by TextChanged event to the Textbox, RequiredFieldValidator doesn't work? -

मेरे। एस्पेक्स फॉर्म में मेरे पास एक टेक्स्टबॉक्स है (टेक्स्टबॉक्स 1) Autopostback = True के साथ मैंने इसके आगे एक आवश्यक फ़ाइल्डवैलिडेट (आवश्यक फ़ील्डवैद्येटर 1) सेट किया है। लेकिन जब पाठ बॉक्स 1 की टेक्स्ट-चंचल घटना से पोस्ट करना आवश्यक है, तो आवश्यक फ़ील्ड वैलिडेटेटर 1 प्रकट होता है, लेकिन फिर भी मैं टेक्स्टफ़ॉक्स 1 में अपना कुछ भी नहीं जमा कर सकता हूँ! "पोस्ट-टेक्स्ट" आइटमप्रॉप = "टेक्स्ट"> आपको टेक्स्ट बॉक्स के कारण वैधता संपत्ति को सही पर सेट करना होगा (यह पाठ बॉक्स के लिए डिफ़ॉल्ट रूप से गलत पर सेट है)।

Is it possible to install/access SSL for my Google App Engine app? -

Because the App Engine is such a lockout, I think there is no way to set up an SSL certificate to allow credit card payments. In the absence of this, how is it possible to handle payment in app engine app? say & lt; SSL-enabled & gt; True & lt; / Ssl-enabled & gt; can be set with * .appspot.com subdommains in your apppin-web.xml file. Google had typo in its initial tag on that page, just FYI. You can not use HTTPS at all for Google Apps, but you can do it for apppets. As far as using your own proof, you can not! For the applet, Google's certificate is not signed to the specific domain of your web-app, but if it is accepted, the page will load.

css - Screen Resolution & Web Page Problems? -

When I change the resolution of my screen to 800x600, 640x480, then half is cut off on my web page. To see the page, I use the scroll bar, percentages as well as CSS. Need help in fixing? All browsers are affected here's a sample. #top {background: # 424ee0; Margin: 0 px; Padding: 0 pixels; Width: 100%; Hidden flurry; } # Center-top {margin: 0 pixels; Padding: 5px 0px 5px 0px; Width: 1200px; Margin: 0 auto; Text align: center; Hidden flurry; Orange color; You have: overflow: hidden ; The header at the top also has this: width: 100% This means that it If the container is set to 100% if the center-top is at the top, then its width may possibly exceed 100% of the container. Overflow: Hidden then overrides the scrollbar and hides all overflow. If you want to show it: Remove "Overflow: Hidden". Change it to "Overflow: Auto." Something else: You clearly set the width to 1200px which means anyone whose horizontal resolution Le...

auto generate in LINQ to SQL -

I have a table that has 2 columns, IDs and names set to 'yes' identity for the I id column. I want to insert the data in the table, LINQ. I want to get only the name column from the user in my application, and then I want to fill the id column database automatically and I can not give the data that fills the column and I fill it in the whistle. What should I do? I write in C # and I work for LINQ. Then your database field already has an INT identity - okay? Next, from your LINQ to SQL designer, you need to make sure that your column is set to: Auto-generated value = TRUE Auto-sync = INSERT Now if you add your entry database, please update the ID automatically with the value assigned by the database Will be given: YourClass instance = new YourClass (); Examples. Name = "some name"; YourDataContext.InsertOnSubmit (example); YourDataContext.SubmitChanges (); After the submit changelog call, your instance.ID should now have an ID from th...

MongoDB and visual C++ 2008 linker errors -

I am trying to get a c ++ client for mongodb working in Visual Studio 2008. I can reference it included, but whenever I get to the Mongodb .lib file linker I get the following error: "Fatal Error LNK1257: Code Generation Failed". If the visual studio .lib can not be found, then I get a group of unresolved underlying errors. I have actually lost to this point to a great extent. Have you tried the latest? Have you installed the 2008 2008 SP1?

.net - XmlSerializer: How to capture file/line/column information for each deserialized element? -

I am using XML serialization to read a larger user input file. If there is a semantic error in the input that is not discovered during reading, then I can tell the user where (file, line, column) they can get ridiculous elements, is it possible with XML serialization? Clarification: The code in question is an IOC container for compact framework; Many of the possible meaning errors are related to things like reflection failures when starting the last object graph. These are effective timing errors, but there are no errors in reading-time or compilation-time, however, I would like to tell them that there was no failure of the property because the property in the class room is not Fred but the fixed asset objects in the question xx Is on line 1337 Errors are not result in deserialization exceptions The input is valid for deserialization purposes and does not include any syntax or data type errors. Errors can not be detected by enabling schema verification. Input is schematica...

How do I set the date to be displayed in a sharepoint calendar -

I have a teammate, built around an event that is in a certain week, one on this site The calendar is included that week. I want to showcase calendar performance that week, instead of the current week, what can be done out of the box? The view can not be modified to a default in the date, but you want the desired string You can use query string parameters to create and view direct links. For example, you can add quick links directly to / list / calendars / calendarias / aspx / calendars / dates / 08/24/2009 & CalendarPeriod = week. You can specify at

c++ - Graduation Project -

I need to do a project as a part of its final year of engineering graduate study. Can you suggest that distributed systems and artificial intelligence and for programming Python, C or C ++ are required? Note: - Please suggest a project which is available for a group of 2 students. Maybe computer opponents to improve?

in function - MySQL IN problem -

I am trying to use the value of any other field in IN SELECT type.ID, type of title, auth_users.types type auth_users at auth_users.id IN (8 9) WHERE types.id IN (1,2,3) GROUP BY types Skip the type from .id works SELECT types.id, title, auth_users.types, visit auth_users at auth_users.id (8 9) WHERE types.id IN (auth_users.types) GROUP BY auth_users.types = 1,2,3 / code> You need to use the FIND_IN_SET - see this question:

com - Problem in hosting ActiveX on Vista (in a Visual Studio 6 C++ application) -

I just installed Visual Studio 6 (SP5) on the Vista Enterprise machine had some problems but I think it's okay Is set in the way. The problem is that my VC ++ 6 application fails when trying to host an ActiveX. I was able to fix it, though RC from Vista A warning message was received from XEE ("This program has known issues of compatibility"). When I debug it, I saw that my class CAxDialogImpl fails on its () method some technical information: I have noticed that CAxDialogImpl :: Create () I have a tap here here) calls atlxcriticology, which in turn calls, CreateDialogIndirectParamA which throws a common exception. Thanks a lot, Eric PS - I'm an administrator on my machine. The OS is 32 bit. I wonder if this could be due to the DEP of Vista and the fact that it is tough ATL Thambing code to recognize, but only new versions ...? For example, see. I know that it works.

How do I start a session in a Python web application? -

Based on this question. I want to use a dictionary such as $ _ session / code in PHP for Python session_start () which is available after running the command it happens. I have a few things that may be related to your question ... it is not relevant to you But I think that others can come here with the exact question and can benefit from my (limited) experience .. because I had this question at one time too. Speaking as someone who has a dragon (and never looked back) from PHP, I think it is useful to understand how the session works under the hood, it may not be not It is a good idea to implement your session structure unless you want to understand more about session management or (b) something that does not offer the existing structure. A good place to start always is the following line: Session data is stored elsewhere on the server and is indexed by a unique identifier (some kind of hash). This identifier goes back and forth between the customer and the server,...

cocoa - Passing a native pointer to performSelectorOnMainThread's withObject argument? -

I want to pass a point to the C ++ object, the selector using selectSelectorOnMainThread. The pointer's casting does not seem to work just in 'id' (objc_object *). I can always write my own self-envelopment class, but there must be a very standard way of doing this. What is the best way to do this? What do I want to do here: ... Foo * foo = new Foo (); // fu a C ++ class MyObject * myObj = [[MyObject alloc] init]; // Obj-C Class [myObj performSelectorOnMainThread: @selector (some method) withObject: foo waitUntilDone: NO]; ... Thanks! No need for your wrapper class; [NSValue valueWithPointer:] Designed for Boxing Points. Just take any method to NSValue instead of a raw indicator, and then remove the pointer from the pointer value. (I believe that performSelector * methods retain their argument so that the object is guaranteed to be final through call, this is the reason that in that logic, the ID is a random value Can not be inserted.)

c# - Visual Studio 2008 would not debug -

im trying to debug the following code system access; Public class guardian {string parentString; Public parent () {Console.WriteLine ("parent manufacturer."); } Public parent (string mystring) {parentString = myString; Console.WriteLine (parentString); } Public Zero Print () {Console.WriteLine ("I am an original class."); }} Public Class Children: Parent {Public Child (): Base ("From Derivative") {Console.WriteLine ("Child Creator."); } Public New Zero Print () {base.print (); Console.lightline ("i am a child class"); } Public static vacant (main) (child) = new child (); Child.print (); (Parent) child) .print (); }} But the console only shines on the screen, the output window has the following message ... Generates 'ConsoleApplication1.vshost.exe' (Managed) : loaded 'C: \ Windows \ assembly \ GAC_32 \ mscorlib \ 2.0.0.0__b77a5c561934e089 \ mscorlib.dll' 'ConsoleApplication1.vshost.exe' (managed): loa...

Objective-C Delegate Pointers -

यदि हम निम्न कोड लिखते हैं: ExplorerAppDelegate * appDelegate = (ExplorerAppDelegate *) [ [UIApplication साझा आवेदक] प्रतिनिधि]; यह मूल प्रतिनिधि सूचक का एक संदर्भ बनाता है, लेकिन: क्या यह संदर्भ संख्या में वृद्धि करता है? क्या हमें स्पष्ट रूप से [ExplorerAppDelegate retain] के रूप में कॉल करना है, या बिल्कुल नहीं? क्या हो रहा है, बिल्कुल? इसके प्रयोग करने के बाद, हमें डेलोक पद्धति में एक [ExplorerAppDelegate release] भी करना चाहिए , सही? नहीं, यह बनाए रखने की संख्या में वृद्धि नहीं करता है। उद्देश्य-सी में सम्मेलन यह है कि जो ऑब्जेक्ट आपको दिए गए हैं, उन्हें आपके द्वारा प्रबंधित मेमोरी होना चाहिए - लेकिन एप प्रतिनिधि की तरह साझा साझा संसाधन प्राप्त करने के मामले में, मेमोरी कहीं और निश्चित रूप से बनाए रखी जाती है (इस एप्लिकेशन डिलीट होने के साथ) आप पता है कि यह हमेशा "जीवित" होगा जब तक आपकी कक्षा नहीं होगी ... तो संदर्भ को बनाए रखने की कोई आवश्यकता नहीं है। प्रतिनिधि का अधिक उपयोग में, एक प्रतिनिधि को लाने के बजाय आपको एक दिया जाता है , और यह...

html - How would one make it so that divs do not stack upon one another based on browser window size or screen resolution when divs are floated to the left? -

Sorry if my language is ... ambiguous I did not really know how to properly explain my dilemma . But if I can do it better, lets see it ... I am creating a blog in which the posts will be displayed and scroll horizontally instead of standing. Each blog post is displayed in a separate Div, and divas is shown floating on the left. But depending on the solution of someone's computer or on the basis of window size, in the page, the divs will be stacked on one side of each other as I wanted, of course, if the screen is Every division was big enough to display, so it would work brilliantly, but it is not. I appreciate any help, tips and pointers. Thanks a lot. Edit And as far as the code goes, it's using the basic HTML structure and CSS I: Have you tried putting your div in the overflow inside the container divas: scroll? For example: & lt; Div id = "container" style = "overflow: scroll; height: 100px; width: 500px;" & Gt; & Lt;...

Duplex Postscript - Force new page -

क्या कोई रिक्त पृष्ठ सम्मिलित किए बिना एक नया भौतिक पृष्ठ पर एक पोस्टस्क्रिप्ट पेज को लागू करने का एक आसान तरीका है? उदाहरण के लिए कहते हैं कि मेरे पास एक 10 दस्तावेज पन्नों के साथ एक पीएस दस्तावेज़ है, जिसे अलग-अलग बंडल में प्रिंट करना होगा: 1 - भौतिक पृष्ठ 1 फ्रंट साइड 2 - भौतिक पृष्ठ 1 रियर साइड P> 3 - भौतिक पृष्ठ 2 4 - भौतिक पृष्ठ 3 सामने की ओर 5 - भौतिक पृष्ठ 3 रियर साइड 6 - भौतिक पृष्ठ 4 फ्रंट साइड 7 - भौतिक पृष्ठ 5 8 - भौतिक पृष्ठ 6 फ्रंट साइड 9 - भौतिक पृष्ठ 7 फ्रंट साइड 10 - भौतिक पृष्ठ 7 रियर साइड मैं पूरी फाइल को डुप्लेक्स के रूप में सेट कर सकता हूं, और पृष्ठ 3,6,7 और 8 के बाद डमी पेजों को सम्मिलित कर सकता हूं, लेकिन मैं इसे से बचाना चाहूंगा क्योंकि हमारे प्रिंटर मूल्य प्रति इंप्रेशन, प्रति पृष्ठ नहीं। मुझे उम्मीद है कि एक सरल पीएस वाक्यविन्यास है जो "फोर्स टू फ्रंट पेज" से मेल खाती है। डुप्लेक्स को बंद करने की कोशिश करें और तुरंत वापस जाएं जहां पर आप एक रिक्त पृष्ठ डालें। & lt; & lt; / डुप्लेक्स झूठे & gt; & ...

mysql - php codeigniter assembling query results -

मेरा सेटअप इस प्रकार है: तालिका 'डेटा': 'शीर्षक', ' शरीर ', ...,' user_id ', ... तालिका' उपयोगकर्ता ':' user_id ',' some_val '... असल में मैं किसी तरह तालिकाओं के डेटा में शामिल होना चाहता हूं 'और' प्रयोक्ता 'user_id फ़ील्ड पर है ताकि मैं' users_table 'से' some_val 'खींच सकता हूं। मेरी समस्या यह है कि 'डेटा' तालिका में हर user_id को 'उपयोगकर्ता' तालिका में संबंधित प्रविष्टि नहीं है। codeigniter / php के साथ मैं अंततः सभी 'some_vals वाले मानों के एक परिणाम सरणी को इकट्ठा करना चाहता हूं 'उपयोगकर्ता' तालिका से data.user_id = users.user_id में शामिल हो सकते हैं। लेकिन जब डेटा तालिका में एक user_id मौजूद होता है, लेकिन उपयोगकर्ता तालिका में नहीं, तो मैं अपने परिणाम सरणी में कुछ डिफ़ॉल्ट मान डालना चाहता हूँ (और उम्मीद है कि यह ऑरेंज उसी क्रम में हो सकता है, जैसा कि डेटा तालिका में user_id है)। उम्मीद है कि यह बहुत अस्पष्ट नहीं था। किसी भी विचार? आप क्या करना चा...

c# - What to use instead of OnActionExecuting? ASP.NET MVC -

I have a few things that I do in the OnActionExecuting method in a base controller, that all my other controllers are closed. I am doing a few simple things like adding a variable in the ViewData, which will "almost" need all my ideas, and some properties that use my controllers have to be reduced. The thing is that I have bugs, this work is being done on those tasks which are not required. Is this a better place to work better? If I need something "heavy" now than what I have to do (i.e. DB access, etc ...) Update: I'm more specifically referred to for a specific admin scenario where there are several actions that show only one view and some that take a form submission , Do some work, and redirect to any other action. In this case, I want those actions that show ideas for using the work done on the onion extraction method. But those who accept form submissions, the work that is being done on the on-one acquisition, is not being used and adds unnec...