Posts

Showing posts from August, 2014

svn with preexisting directory -

इसलिए मेरे पास एक पूर्ण पूर्व-मौजूद निर्देशिका है, चलो इसे c: / src / foo कहते हैं इसमें कुछ फ़ाइलों की एक झुंड के साथ, कुछ मैं एसवीएन संस्करण नियंत्रण में रखना चाहता हूं, कुछ नहीं। मैंने इसके लिए जाने के लिए अपने एसवीएन भंडार में एक खाली जगह बनाई, चलो इसे कॉल करें Http: // myserver / svn / tools / foo / trunk । मैं एसवीएन रिपॉजिटरी को c: / src / foo में चेकआउट कैसे कर सकता / सकती हूं ताकि मैं उन फ़ाइलों को जोड़ सकूं जो मुझे चाहिए? < / P> सी: \ src \ foo & gt; Svn सह http: // myserver / svn / tools / foo / trunk Svn: '।' पहले से मौजूद है और कोई डायरेक्टरी नहीं है c: \ src \ foo & gt; एसवीएन सह-फोक्स http: // myserver / svn / tools / foo / ट्रंक Svn: '।' पहले से मौजूद है और कोई डायरेक्टरी नहीं है c: \ src \ foo & gt; सीडी .. सी: \ src & gt; Svn co -force http: // myserver / svn / tools / foo / trunk foo svn: 'foo' पहले से मौजूद है और वह निर्देशिका नहीं है WTF? यकीन है, "फू" पहले से मौजूद है, लेकिन यह एक निर्देशिका ह

Does PHP proc_nice leave Apache threads at new priority setting? -

When executing proc_nice (), is it really doing the good of Apache thread? If this is the case, and if the current user (non-super user) can not make orange for their original priority, then Apache 2.0x Server is supposed to kill Apache thread (Apache_child-Terminet)? The problem is that I'm trying to limit the effect of the app that allows the user to run ad-hack queries. Queries can be overwhelming and require a lot of memory and CPU to result in data conversion. I have already re-written the process of being more stream based - helping to consume memory, but I would prefer the process to run lower priority even though I do not leave the Apache thread in less priority. Because we have very high priority web services on this single box. TIA To run an external PHP process, for example, something like - if you should work in synchronous mode (i.e., if you Work can not be executed after a few minutes) Press Task for a FIFA system, and instantly user "Your wor

Exceptions and Linq to Entities -

I have a hard question to ask, please take part with me. In this code given below, this works because the programmer was interested in presenting specific errors only from the physical data-layer to eventlog. The remaining stack is carried forward, this is especially because it is capable of catching OdbcException (). I am implementing my membership provider. I am using the links to the units, but I want to send only the low level / physical-level exceptions for the event. Is there any exception that I can catch while using Linq to Entities which will allow me to catch at that level? As you can see below, even those efforts that have been thrown in the blocked blocks will not be sent for eventlog. How can this Linq be done with institutions? code: public override string ResetPassword (string username, string reply) {if (! EnablePasswordReset) {new NotSupportedException ("password reset is not enabled.") ; } If (Answer == blank & amp;;; &;; required qu

python - Can SQLAlchemy's session.merge() update its result with newer data from the database? -

The SQLEEE documentation says, "The present state of an example and its related children were made in collaboration with existing data in the database is." Does the existing object update with the new data from the database? how? when? SQLLM has created a single object with each identity in the session. But sometimes you have to recreate something with a known identity, eg. When you get it from the network or when you apply offline lock to avoid long transactions. And when you make an object with known identities that may exist in the database, then there is a chance that the session already tracks an object with this identity. This is what is meant for the merge () method: it engages an object with the session, thus avoiding duplicate objects with the same identification in the session. Below is an example of what is going on: sqlalchemy.orm import * metadata = metadata () T = table ('t', metadata, column ('id', integer, primary_key = true), colu

Good application for automated testing of .Net GUIs written in C# -

background The company I work for is a .NET Graphical User Interface (GUI) Written in C # and we are almost ready to test it. Question Is there a list of standard approved programs that does the following? will be able to run the automatic test of the GUI Integrate with VS2008 (not required) Test or test session one Create log file Fixed X , y on GUI controls? If there is no need to free the program, I believe that Good choice. Our test team uses it for Winforms and WPF applications.

php - jquery validation plugin -

Has anyone used this jquery plugin for form validation? i cant use it Nothing says in the documentation how it gives the name of html form elements to work with the valet () method. And the question 2 NRR, which php class validation is for the server side? EDIT: Why does not this work: $ ("# register_box_form"). Validate ({Rule: {Name: {Required: Truth, Meanline: 3} Email: {Required: Truth, Meanline: 3, Email: True}}}); & lt; Input type = "text" id = "email" name = "email" class = "required email" /> , in this code, the value 'required' and 'email' work for the class attribute are the same, because the document defines a valid method in the finished work. It means class = "required email" is equal, email: {required: true, email: true} In the above example I'll tell you what steps are necessary for jQuery validation (you can already know every step) to use jquery valida

.net - ASP.NET C# Error: Object Event is undefined -

I'm getting an EVENT undefined rror in ASP.NET C # code. I am dynamically creating image buttons and clearly specifying them on a click event. After clicking on the user thumbnail, that page is directed to the page that contains the blurry image of that thumbnail. When the user presses the back button to go to the original page then it is a place where things are interesting, if the user tries to click on a thumbnail again, then click the image button with an error of browser fail to reconigze the event. Stays postback "" event is undefined. This error is random, it's always after a minimum of one ", but when this happens, the sequence is not consistent. Very interesting, it's only in IE. Google Chrome and Firefox worked fine and the event Recognized I have played around the ViewState property, but it has not worked. Any idea? Protected Zero ImageButton_Click (Object Sender, ImageClickEventArgs e) {ImageButton IB = (ImageButton) this; Server .Transfer

design - CSS make set minimum page height/width -

I never try to see the scrollbar in the page layout, for some reason, and rearrange the content . Is there a way to lock a fixed width and height for the entire page, so that the scrollbar shows when the window is scaled? Page: Specifically, if you Itemprop = "text"> If you want to make the layout more "fluid," especially slogan in the header, then .top_text .top_text {float: right; Font-family: "Lucida Grande", Verdana, Ariel, Non-Serif; Font size: 60px; Margin-right: 20px; Padding-top: 24px; } You will still need to set a minimum width for the page because IE 6 minimum-width does not support property, I often do this I get it by placing an empty div on the top of any container with the desired minimum width, otherwise I can start the min-width .

data structures - Why are Binary Trees Important? -

Why do we study binary trees in particular? As is not given in the form of the importance of binary trees in the drafts structure textbooks in the General M-Search Tree. Is the use of binary trees more than M-trees? Binary trees are the simplest forms of multi-dimensional trees, so they become easier to study in that sense. There are nodes in multi-vey trees, which include N key and N + 1 points: | + ----- + ----- + ----- + ----- + | KF | K 01 02 | K03 | + ----- + ----- + ----- + ----- + / | | | \ P00 p01 p00 p03 p04 To find out which indicators follow in the search, you compare the key that you are searching against the key in the node. The above example is an order -2 multi-way tree (I define the order n as the 2n key and 2n + 1 pointers I am doing) . When you make this structure "the slim node", you end with a key and two pointers, your classical binary tree: | + ----- + | KF | When I went to university (and I freely acknowledge that it wa

ruby - wxruby and rubymsn -

I am currently playing with wxRuby and RubyMSN to learn the programs of desktop programs. I know that instead of crushing Notepad etc. it is a difficult task, but I need a bigger job than Notepad. Now I manage to use them by myself, but I can not do them to work together. The problem is loop. wants to have an endless loop like RubyMsN while the correct sleeping end of or the main of the GUI Loop or something I currently place this code as a loop TheApp.new.main_loop () while the correct sleeping end I have my window, and main_loop is doing something but I can not enter, it seems that I do not have any loop, only get a debug line. But as soon as I Close the window and allow the endless loop, it does the job, it works like a magic Anyone? Worked for me to try it: wxruby copy from minimum sample copy Create and modify minimal.rb so that you start your MSN thread before the wx main loop: requires 'msn / msn' conn = MSNConnection.new ("rubyb

c++ - Typedef inside/outside anonymous namespace? -

In a .pip file, is there any difference / preference in any way? File scope outside any namespace using someClass; / / X ::; Type FIF: Buffer MyBuff; v / s namespace {// Anonym using X: some classes; Type FIF: Buffer MyBuff; } I would say that the second use is unusual, at least in the code that I just Have seen (and I have seen a lot of C ++ code) Can you explain what the logic behind the second technique is? You can generally use unknown namespaces in a C ++ implementation file so that 'static' can be in C (or C ++), but we 'will shine on it), that is, Limit the visibility of symbols to the current translation unit. Typeffe does not actually produce the symbols which are exported to the linker because they do not make concrete in the meaning of some concrete which can link against you. My recommendation? I had to go with the first marking, the second adds an unnecessary complexity and in my opinion, you do not buy anything.

How bad is it to simulate IDENTITY/AUTOINCREMENT columns using triggers in Oracle? -

I maintain the application that was originally written SQL Server-specific (using the identification field). Thus, we had to define several triggers for the primary key of automatic incremental salary. I have been told that it is considered to be a hackney work in the Oracle world, but it was told that "friend of friends" in the way. Instead of using the sequence, how big is the deal to use triggers to increase the primary key from the sequence? This is a very common practice in my experience, and not very bad though, if you have Inserts are controlled (for example if all the inclusions are done through a PL / SQL API) then this sequence is more efficient to use directly in the INSERT statement - because it avoids the overhead to run a trigger is. But if I trigger, I really do not worry about it unnecessarily!

mfmailcomposeviewcontroll - MFMailComposerController -

I am new to iPhone, I want to use the MFMailComposer Please direct me how Use the. I can not find a right way to do so, if so, please give code. Sample code will be very easy to try

sql - LEFT JOIN for current row in primary table -

This is a question about JDBC I have the next job I am running through rows through Table A and For some existing lines, I want to execute some queries in reference to existing row from AR to table B. For example, if I have some query like AID = B RFID select from joining at one B.Description then I get all the results Where BRIID = "A from the current line" .ID Please note, I can not modify the query to select the result from B. For example, let's do Table A like this: ID name 1 name 2 name B and Table B: < Pre> id details riffid 1 desc1 1 2 desc2 1 3 decs3 2 4 desc4 2 So if I for example table 2 with table 2 on the row and my query After that I only have to get "desc3" and "desc4". I suggest that this task can be resolved with the cursor but I am familiar with it. Based on the question Can anyone give me a hint? Otherwise, I don do not think we understand this question ...

arrays - Query to find most common names in content, from a defined list -

I am struggling to rank blog posts based on the popularity of those names that appear in them . What I'm trying to achieve here: I have a blog where celebrity names are commonly seen. I would like to count how many times these Khanna names appear in the title of the blog, and rank the output by the most popular celebrity (name is the most visible.) My thoughts are a query Which is to run, how many times appear in namespace names (table of celebrity names) from a table. This is where I am having trouble. The best query can not be ascertained for any help. Do I Need To Use Array? Maybe something like - adjust your bid for SQL. Select c.name, count (*) as events occurring from celebrities '%' + c.name + '%' group to c.name

linux - Create binary data using Ruby? -

I was peeling with Ruby sockets, so I ended up attempting to put an IP packet toggle, Try to make IP packet and make it a new one. Now my problem is: If the packet is: 45 00 00 54 00 00 40 00 40 01 06 EF 7 F 00 00 01 7 F 00 00 01 , and it is clear It is hexadecimal, so I changed it to a decimal, then using binary data in a pane method, and pass it to the method of sending it, then Wireshark is much more than what I have created Strange, I'm doing something wrong, I know, but it does not understand: Student, as I wrote @ data = "" @ data & lt; & Lt; @ Packet.to_s@socket. send (@ data.unpack (c *). To_s, @ address) And there is another way to solve the whole thing, for example I Write directly to the data I want to send directly to socket buffer Thanks in advance. Starting with a hex part is a new idea, although I have a good idea to exploit it immediately Can not think of the way. Anyway, on the problem .to_s , which will have th

ruby - Sinatra/Rack Sleep until Response Ready (like Exchange ActiveSync) -

I want to react to a light push-style HTTP response in my current Syntax web app, is there any mechanism that I need to get an HTTP request Does not answer and allows to keep the connection open until I open the connection in the future? You can make Macorroy's "rack app that can push" and Colin's

Strange characters appear when using strcat function in C++ -

I'm a newbie for C ++ and learning from the MSDN C ++ Beginner's Guide. This works but I get three funny characters in the beginning. This is my code #include & lt; Iostream & gt; # Include & lt; Cstdio & gt; # Include & lt; Cstring & gt; using namespace std; Int main () {char first_name [40], lastname [40], fullname [80], location [1]; Location [0] = ''; Cout & lt; & Lt; "enter your first name: "; Gets (first_name); Cout & lt; & Lt; "Enter your last name:"; Gets (last_name); Strcat (FULL_NAME, first_name); Strcat (FULL_NAME, space); Strcat (FULL_NAME, last_name); Cout & lt; & Lt; "Your name is:" & lt; & Lt; Full Name; Return 0; } And here is the output Enter your first name: Enter your last name: Above your name is: Y} @ Tehair Auzid < Code> I wonder why Y} @ appears before my name? The array that you are creating is filled with random data. C ++ will all

debugging - How do I pass console input to a running Java program instead of to jdb? -

Debugging my code with Java's JDB is stuck at a point where my program is expected to command-line input , But JDB marks it as jdb command. How do I tell jdb to go through text in the running program? Version: C: \ Documents and Settings \ * Harvesting * & gt; Java-Shower Java version "1.6.0_17" Java (TM) SE runtime environment (1.6.0_17-B4 build) Java HotSpot (TM) client VM (build 14.3-B01, mixed mode, sharing) compile: javac -g, LZWDecompress.java jdb.ini: Stop the LZWDecompress.decompress run monitor list This is what happens: Starting jdb ... *** commands from C Reading: \ Documents and Settings \ * Snip * \ jdb.ini Suspended Point LZWDecompress.decompress It will be set after the load. & Gt; Press LZWDepress to run java.lang.Throwable set set uncaught java.lang.Throwable & gt; & Gt; & Gt; VM started: Set deferred breakpoint File to be dezmodrod: At the above prompt, I enter "test", and receive this respons

Firebird constant value -

Is it possible to have a database comprehensive constraint? What I want to define is like a continuous: UPDATE_CONSTANT = 1 INSERT_CONSTANT = 2 DELETE_CONSTANT = 3 And then use a trigger like it in the example: create triggering PRJ_PROJECT for AD_PRJ_PROJECTS active Delete the 1st position 1 because the process SP_ADD_HISTORY starts executing 'PRJ_PROJECT', DELETE_CONSTANT; End; You can use a generator: after 3 from SET GENERATOR DELETE_CONSTANT; ... Execution process SP_ADD_HISTORY 'PRJ_PROJECT', GEN_ID (DELETE_CONSTANT, 0); Update : Yes, the use of a generator for this purpose is dangerous, as they can be changed. However, this risk can be terminated in FireBird 3.0 alpha 1 using Access rights:.

osx - Single user mode in mac -

I want to use Mac in a single user mode. I want to use ctags and cscope in that mode Can anyone help me with the necessary setup for this? Thank you. I just know how to go into a single user mode, so please tell me in a simple and easy-to-understand way. My Mac version is 10.6 (Snow Leopard) Actually you can use a full-screen mode ( As others have said, you really want to not run in single user mode). Reboot on your Mac and Lobby Screen instead of your username Type & gt; Leave the console and empty password it will take you to a full screen text mode. [Note that for this to work, you need to be able to type in the username - to get it from the list - this system preferences => Account => Login Options and select Name and password .]

javascript - Trying to use a Google Maps user interface to caputre Lat/Lon in Django -

I'm a Django novice, and I'm learning quickly but I can not understand how to get it As a result of the database, the latitude / loan can pass. Can anyone help? I'm not familiar with Django, but a client side from a Google Maps client for a server-side database The data is to be sent using the GDownloadUrl () call. Write a separate dedicated server that accepts data from the client, writes it in the database and does nothing. Alternatively, you can directly write the HTTP server with your server side script, during the data capture stage Google Maps is obviously a publicly accessible Google to comply with Google's rules. The geocode information must be displayed on the map.

mysql - add new session product - PHP -

When a user is buying a product (say they have 3 products) and they have typed their information, then The product goes automatically in the database with position = 0. If the user is moving away from the basket, then product overview (and buying an additional product, they now have 4 products in the basket) should be in. I have to find out instead of adding all the products, instead of adding new product, add new product, since 3 products have already been added. $ _ session ['inserted_ids'] = array (); $ Id = ''; If (in_array ($ id, $ _SESSION ['inserted_ids'])) {return; } Else {$ id = $ db- & gt; Insert ("INSERT command" SET name = '"$ _SESSION [' INFORMATION '] [' NAME '].' ', Address ='". $ _SESSION ['INFORMATION'] ['ADDRESS']. $ '_SESSION [' Notification '] [' Phone '],' Date ' ] ''. '', Email = ''. $ '' ['Notif

php - How to draw an 8x8 square on an image? -

I have an image: image.png (can be jpg or gif) How do I I can attract an 8x8 square on $ x, $ y and then on the image to $ file You are searching: // load the image $ img = imagecreatefrompng (" image.png "); // or imagecreatefromjpeg (), etc. // $ Colors = Set a color for the side of the image colourallocate ($ img, 255, 255, 255); // Make a 8x8 recurrence on coordinates ($ x, $ y) for a white rectangle / top left picture ($ IMG, $ x, $ y, $ x + 8, $ y + 8, $ color); // Or, if you want to fill it, then use imagefilledrectangle () with the same logic // Save image image image ($ img, "image.png"); // or imagejpeg (), etc.

jquery image not loading problem -

Do anyone know how to load an image properly I have a script that preload images And what I wanted to do, if the image does not exist, which does not end my script, then I will only create the attribute "src" for being a "default value" Image.load (function () {// this image is not present here if it never comes again}). Attr ('src', 'a non-existing image'); thanks var image = $ (' & Lt; img & gt; ') appendTo (.' Body '); Image.load (function () {// image found and loaded}). Error (function () {// Image not loaded image .attr ('src', 'default-image.jpg');}) Attr ('Src', 'a non-current image');

c# - Transforming AVI video in .NET -

I am doing a project in C #. I want to read the AVI video frames, edit them, and then write them in a new avi file (such as transformer filter) I have a process in which I am my own Can make a direct show transform filter, but it will be in C ++ and I wanted to avoid it. Is it anyway to complete in .net? Specifically was the development to create or edit video files in .NET, and this is mostly Has been completed. I believe one of the features listed is actually what you want: standard C # mage drawing code Modify individual video frames during encoding via

c++ - Qt, text on a black and white screen -

I am using QT (embedded) to create a GUI on a black and white screen. The problem Qt provides text with gray colors, so it is unreadable on black and white screens. Does anybody have any idea how to make the text only use 1 bit per pixel, or purely black and white? Thank you, Mark I believe what you want But I'm not very familiar with the embedded parts of QT.

api - Google Maps Mashup using C++ -

Is it possible to try to make Google Maps Mashup by using C ++ or is it appropriate? I would need to be able to display 150 places around the county and when people click on the push pin, the pin will need to pop up and possibly a brief description of the scenario. C ++ is the only language I know because I've read all this in school so far. This is not the work of homework, but I think I can do it for work and for fun. This is definitely possible (for example, as a standalone GUI application) But, what Is this advice? I will not say that unless you plan to do it as a learning project. C ++ is the only language I know because I have read all this in school so far. You want to select the language Javascript is a familiar syntax, but it has functional features, and objects work differently. So just as a precaution, when you learn it, do not think of it as a script language like CPP; It is not.

debugging - How do I skip a breakpoint a set number of times in Java's jdb? -

How do I leave a breakpoint number set multiple times in jdb? With the help of jdb this indicates: !! - Repeat last order & lt; N & gt; & Lt; Order & gt; - Repeat commands n times # & lt; Command & gt; When I try to quit the breakpoint several times, like this: 80cont Or like it: 80 runs jdb barfs: main [1] 80p & gt ; Nothing suspended & Gt; Nothing suspended & Gt; Nothing suspended & Gt; Nothing suspended & Gt; Nothing suspended & Gt; Nothing to hit breakpoint hit: Main [1] & gt; Nothing suspended & Gt; Nothing suspended & Gt; Nothing suspended & Gt; Nothing suspended & Gt; Nothing suspended & Gt; Nothing suspended. The event in the event "event-handler" on java.lang.NullPointerException com.sun.tools.example.debug.tty.TTY.printCurrentLocation (TTY.java:212) at com.sun.tools.example.debug. Tty.TTY.vmInterrupted (TTY.java:189) at com.sun.tools.example.debug.tty.EventHandler.run

xml - Java Inner Text (getTextContents()) Problem -

I am trying to parse something in Java and I am using the Cobra HTML Parser so that HIM can get a DOM I'm using XPath to get the nodes. I call node.gettextContents () when I get to the desired level, but it should "\ N \ n \ nValue \ n- \ nValue \ n \ n \ n" what to do to get rid of the line breaks Ta remains? I would like to do a RegEx such as (?: \ S * ([^ -] +) \ s * - \s * ([^ -] +) \ s *) happens on the inner text and in fact does not want to deal with possible white space symbols in the middle of the text. Example input: value - value thanks . The string has been trimed = original_string.values ​​("\ n", ""); The first argument is a regular expression: You can change the block with all forceps in the original string with replaceAll ("\\ s +", "") For example.

Alternative to STR_TO_DATE() in sqlite -

SQLite के रूप में STR_TO_DATE () funciton MySQL में एक वैकल्पिक क्या है? < / Div> मुझे पता है कि यह पोस्ट कुछ हद तक पुरानी है लेकिन मैं उन लोगों के लिए वैसे भी पोस्ट कर रहा हूं जिनके समान समस्या हो सकती है जैसा मैंने किया था। मुझे एक खुली एपीआई से "2013-01-010101 00: 00 + 0000" के रूप में एक तिथि मिल रही है और इसे स्क्लाईट में एक स्ट्रिंग के रूप में संग्रहीत किया जा रहा है। जब मुझे दिनांक सीमा के आधार पर रिकॉर्ड पूछताछ की कोई ज़रूरत हो, तो समस्या उत्पन्न हुई। चूंकि मैं STR_TO_DATE () का उपयोग करने में सक्षम नहीं था इसलिए मुझे पता चला कि मैं SQLite फ़ंक्शन strftime () का उपयोग कर सकता हूं। नीचे एक ऐसी कार्यशील क्वेरी का एक उदाहरण है जिसे मैं इस उदाहरण के लिए प्रयोग कर रहा हूं, उम्मीद है कि वह किसी और की मदद कर सकेगा: तिथि के रूप में स्ट्रॉफ्टएम (तारीख_कैटेड) का चयन करें tblFeeds से बनाया गया है जहां स्ट्रॉफ्ट (तारीख_कूट ) Strftime ('2013-01-01') और strftime ('2013-01-08') के बीच की तारीख द्वारा क्रमबद्ध; इसने मुझे 01-01-2013 और 01-08-2013

Can an assembly be executed or loaded within C#.NET COM component? -

I have COM (written in writing) which requires an appdomain and load / execution. NAT conferences in it That's because I can unload that app, later all loaded DLLs together. While working fine in general (eg WinForms) .NET app, I get security related exceptions, if this code runs within the COM context Assuming that the strong name of the COM Assembly has been given and kept in the GAC, there is a complete confidence policy in it. Can anyone explain that this is possible, and if not - why? Yes, this is possible. To be a CAS, you have to do this: [Assembly: System. Security. Allow] Abandoned Callers Attribute ()] Specialty Load Assemblies in the COM Assembly will need to add appropriate permissions to the new app domain in such a way to create objects and make assemblies: AppDomainSetup setup = New AppDomainSetup (); Setup.ApplicationBase = Path. GetDirectoryName (path); Permission trust trustPermissionSet = new permissions sheet (allowed content unrestricted); App

How to make is_dir($FoLdEr) case insensitive in php? -

I do not need is_dir () what folder or logic is up So if the folder is named "My Folder" and I run is_dir ("my FoLdEr") then the result is correct . It does not even have PHP, it depends on operating system and file system that is running PHP. Windows case is insensitive, but every version of Unix / Linux is case-sensitive. I must install it in another way: is_dir () is basically a wrapper for system calls or use the results of the system call on this file information. Whether the system call will return something or not, according to the rules of the operating system and file system, one file matches the name, the PHP can not change it, so that's why you are not just on is_dir () Can create case assassets. Check the list of files you can best to see the directory and the loop whether the insensitive comparison of any case compared to what you are looking for. Note: You will match many hits like "Home" and "Home" b

oracle10g - Encryption inside oracle -

In the dot net I can use the DLL file so that my code is safe from others. But there is no way anyone can see my processes and the trigger's code ... You can not wrap the trigger code to make it unreadable, but you can move the trigger code to an stored procedure so that there is no more than a call for the process wrapped in the trigger code.

encryption - 48-bit blowfish -

क्या एक ब्लॉफिश एल्गोरिदम का एक कार्यान्वयन (जावा / सी ++ / रूबी) है जो 48-बिट डेटा ब्लॉक का समर्थन करता है? मेरे पास एक एन्क्रिप्शन समस्या है जहां इनपुट और आउटपुट चैनल बिल्कुल 48 बिट्स हैं I नेट पर सभी कार्यान्वयन 64-बिट ब्लॉक के लिए हैं। ऐसा इसलिए है क्योंकि 64 का एक सेट ब्लॉक आकार -bits। आप अपने डेटा के अंत में दो यादृच्छिक बाइट पैड कर सकते हैं। 'rubygems' की आवश्यकता होती है 'crypt / blowfish' bluffish = crypt :: blowfish.new ("56 बाइट्स तक की कुंजी ") सादा =" 123456 "एन्क्रिप्टेड ब्लॉक्ॉक = ब्लॉफ़िश.एन्क्रिप्ट_ब्लॉक (सादा + (रैंड (250) +5) .सीआर + (रैंड (250) +5) .सीआर) या यदि आपका < कोड> सादा 6 बाइट्स / 48 बिट्स से कम हो सकता है एन्क्रिप्टेड ब्लाक = ब्लॉफ़िश.एन्क्र्रीप्ट_ब्लॉक (सादे.लॉज़ (8))

Linq to XML when data held in a list -

I have a list of strings that I need to use to create the following XML I items in the list "Line 1 "," Line 2 "etc. The hard bit is that the element name "L1" grows upwards, is it possible to use linux to do this or should I use a different approach? & lt; Srv & gt; & Lt; EnqRsp & gt; & Lt; L1 & gt; Line 1 & lt; / L1> & Lt; L2 & gt; Line 2 & lt; / L2 & gt; & Lt; L3 & gt; Line 3 & lt; / L3 & gt; & Lt; L4 & gt; Line 3 & lt; / L4 & gt; & Lt; / EnqRsp & gt; & Lt; / SRV & gt; This is entirely possible, with the help of which the index provides value as well Is: var document = new XDocument (new XElement ("srv", new XElement ("enqRsp", list.Select ((value, index) = & gt; new XElement ("l "+ (Index + 1), value))));

c# - will encrypting a comma seperated list of ID's make it smaller to fit into a cookie? -

Say that I want to store in ID's cookie: 123,1232,3443, 2343,2344422, 2342 If there is a 4kb limit (or whatever) in a cookie, can encryption anyway allow more storage? If so, which encryption would be best? (Not really worried about security, just want to store more with less footprint) With 4K bytes, you can store 819 four digit numbers. Do you definitely need to store more? Would not it be possible to store cookies in such a key, which would bring you more number of orders with simple DB queries?

.Net Remoting: Wrap user objects vs more remoting channels -

I am learning about remoting small remote-based projects and to avoid my behavior, I am trying to implement the habit of developing bad habits. is a service that uses plugins created by user. Each plugin is separated into its own appdomain. Additionally, there is a client application that connects and interacts with the service. Service-customer communications and service-plugins are channels for communication, but there is nothing to facilitate plug-in client communications such as service-defining an object created by a plug-in The object must be wrapped before it can reach the customer (otherwise there is an exception due to lack of channel sync). If it makes sense, my question is, should I continue this method or should I create a channel between the plugin and the client epideman so that plug-in instant objects to go to the client application Allow? Thanks for any education topic! I can not give a definitive answer without hearing more about your application, so t

c++ - Does defining a function inside a header always make the compiler treat it as inline? -

I have now learned that defining the C ++ function inside the class header file makes the function inline. But I know that putting inline keywords next to a function is just a suggestion and the compiler does not consider it necessary. Is this header defined for the c ++ function and is there a difference in the behavior between a standalone C ++ function and a C ++ function which is a part of the class? "defines a C ++ function inside the class header file inline functions" It is not true defining a function inside a definition of a class (which is to say, by providing only the function's body instead of just one declaration) inline. "It makes it inline", I mean it is similar to giving inline keywords, but class definitions are not in the header, and headers can include other things from classroom definitions. In this example, the function foo is interlinked inline. Function bar is not inline: struct foo {void foo () {} void bar (); }; Zero Fu

user interface - Blackberry - Issue with background image when scrolling down the screen -

I'm portraying the background image (320 * 480 size) for the home screen below I scroll the scrollbar in the screen There are many other controls, such as screens, labels, edited fields etc. in addition to many horizontal managers. My problem is, when I scroll down the screen, background image below it I'm looking at the white normal background. It does not look good, so I want to know why the screen scrolls down in the background. I'm still getting, how can I keep a background image? Public MyHomscreen () {super (); LabelField Epithelial = New Labelfield ("MyApp Title"); SetTitle (appTitle); Background = bitmap.gettimap processing ("homescreen.png"); _ Container = New Vertical Field Manager (Manager .VRTCL_SCRL) Manager. ORTCLA_SSCRLABR) {Protected Wide Paint (Graphics G) {Int y = MyHoScreenIceGetManager (). GetVerticalScroll (); G.clear (); G.drawBitmap (0, 0, background.getWidth (), background.getHeight (), background, 0, 0); Superparent (g);

reporting - It there a way to count unique users that download podcast from itunes? -

I have created a podcast, and set it in iTunes I am able to track the number of downloads for media files , And I would like to know how many different users are downloading the file. I tried to use cookies / sessions, but he does not seem to be working to ignore iTunes cookies, and thus a new session ID is created for each download. Is there another way to track the unique iTunes user of my podcast? Cookies will not work because if their cookies are cleared they can be counted as a new user The only "unique" thing about users is that in fact the IP addresses are actually because they are "downloading", if two people use the same computer then the requirements to download them are both thin , So the IP address will work properly. It is not idiot, but if you are using it to get the tracked goods for yourself, it can be quite good.

sql - FTS: Searching across multiple fields 'intelligently' -

I have an SP using FTS (full text search). I am searching for searches in many areas, 'wisely' ranking results based on the weight I handed. Search on the scene to fetch data from tables: book, author and style Now, I want to be able to do the finder: "Ludlem fiction", "Robert Ludlum Born "," Bourne Ludum ", etc. Unfortunately, the only way I am able to do this now is: This is very bad because I manually break the search string. I know I'm doing it completely wrong, but I do not understand the correct method to search in many areas in FTS. Can anyone help? on your example; How is your dictionary setup? You may want to add your authors to your dictionary, which will probably solve the issue of Al Pacino (also make sure that your authors are noisy words.) Using the search Deep search can get better results. We have pushed our users (which are the internal staff) to take them to Bullion searches, because Google will ask for

Programmatically determining the Bazaar plugin directory -

Is there a way to determine market directory programs? If there is a market order to determine the plugin directory, then this would be the best solution. See a market configuration: output bzr version . Also, see the bzrlib / version.py function in show_version . Use the configuration directory: to the bzrlib user plug-in path (see bzrlib / plugin.py ) < Pre> > bzrlib import plugin print plugin.

c# - Dynamically setting value on array of pointers to integers -

I have a multi-dimensional array of pointers for the integer (unknown rank) passing in my function: Public Unsecured Static Zero MyMethod (Array source, ...) {//}} Points are being constructed outside the multidimensional arrays method And has been passed. Here's an example: int * [,,,] testArray = new int * [10,10,5,5]; MyMethod (testArray); How can I set a value on an order-time-calculation index in the array? Array.SetValue (...) works perfectly fine for non-punter array, but refuses to work for my int * array using the reflector, I think SetValue is called InternalSetValue , Which takes an object for the value, but it has been marked as an Exxon and I can not see the implementation. I took a shot in the dark and tried to pass in the boxing indicator, but no luck. This works: Unsafe Static Zero MyMethod (int ** array) {array [10] = (int *) 0xdeadbeef; } Private static vulnerable Zero main () {int * [,,,] array = new int * [10, 10, 10, 10]; Fixed (int ** ptr

iphone - Is it normal for memory warnings to disappear? -

I have a lot of problems in working with a simple UIImagePicker (see my other posts), and I'm getting a memory Warning information after taking picture and before that even I also get the chance to dismiss UIImagePicker Now, though ... I have loaded my app in Xcode today and all are working fine Memory alert can not be found under the same build settings etc. My question is .. Is this normal? Perhaps it was approved by an iPhone restart, or XCode restart, or I should be worried that I still got a hidden memory warning, just now it is hidden from me? Thank you! Yes, very common memory is used by many background tasks on the phone, so It really depends what your email client is doing, whether you're installing apps in the background, and so much more.

user interface - BlackBerry - Fun with FieldManagers -

I am trying to create a view class which depends on how it is created to provide a horizontal or vertical layout Does. I am using a representative to get it. Expands the class view manager {personal manager mDelegate; Public View (Delegate in Manager) {mDelegate = in Delegate; // Representative "This" is the only child of the manager's super.add (mDelegate); } Adding the public null (field f) {// All other children go to the representative mDelegate.add (f); } // Other methods which also represent}} When I install a visible object, I pass in a horizontal or vertical field manager and then assign a call I am What happens in the blackberry on the screen Actually I'm looking at the Blackberry dos for the screen to tell which representative it is (so I can simulate it) and I have reported this type of call on the screen. .. Protected Boolean Keynaker (Four C, Integer Position, Int Time) Organizing Representative of Major Generation in Controlled Areas wit

Zend: How to nest different controllers into one big? -

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

version control - Can I create an ASP.NET MVC 2 project with multiple areas without referencing each Child in the parent area? -

This is the follow-up question for my original query: Now when I have to do this work There are still many projects but the original project does not refer to the area of ​​each child? Ideally, I would like to take several different and different projects that come together only on the production / testing machine. I should be able to build and test each "area". Not in MVC 2 beta. May be released in the future.

vb.net - What is the definition of ":=" in vb -

I've come across some sample code in VBnet, on which I have some experience and one Duh moment : = . NavigationImages (boolean, int) is this refresh navigation image Is a default value if zero? As "BI is something wrong"? Bing / Google tried, but they do not like to search operators, especially if there are only 2 characters. These are they assign values ​​to logic in function calls instead of order.

reflection - Detect Silverlight version required by an assembly -

How can I tell if Silverlight 2 is enough for an assembly or Silverlight 3? I have all the information available through reflection (Mono Cecil). The same question for SL 3 vs 4. Thanks in advance. You can not tell only with the class library and its metadata - it's only from the Silverlight application's embedded manifest file Can be determined reliably in .Xap only.

language agnostic - String Compare "Logic" -

Can anyone tell me why why string compare below distribute these results? & gt; "1040" & lt; = "12000" True & gt; & Gt; "1040" & lt; = "10000" false I have tried to compare the string in both c and python, the result is obviously correct, i just do not know how the results are calculated. . PS: I know that you should not do anything to compare the strings of different lengths, but I am still thinking about the logic behind the lines above ;-) "1" is equal to "1". "0" comes before "2" ("1040"> "12000"). "4" comes after "0" (so far "1040"> "10000").

asp.net mvc - How IIS requests are parallelized using COMET? -

I have an ASP.NET MVC 2 Beta application where I will receive incoming requests for a specific action I need to block I To accomplish this, I am using AutoResetEvent.WaitOne (30000); The big issue is that IIS does not accept any new requests, while the thread is blocked on the WaitOne instruction. I should be able to parallel the request while maintaining behavior wait . There are async handlers that you are looking for. If you are creating a comet solution, you can check out our .NET implementation of a comet server, it will save you some time. If you want to do your own roll, you will definitely need to use ASCIN handlers, as long as you get 60 or 70 previous users, but even with ancillary operators, you still have to Also do some fancy footwork In fact, you are still going to kill some upper boundaries in Threadpool until you leave the requests in a limited thread pool which is the original You can manage all incoming requests for you. Good luck!

How Do I Show images on Asp.Net Website with Linq Query? -

I can add images to my website without any problems. With my code below..I am using linq and asp.net c # .... ImageDatabaseDataContext imdb = New ImageDatabaseDataContext (); Doshiyalar DS; Katilymi Katie; Secure Zero btnEkle_Click (Object Sender, EventArgs E) {If (FileUpload1.FileContent! = Faucet) {String dosyaAdi = Guid.NewGuid (). ToString (); Byte [] icerik = FileUpload1.FileBytes; String dosyaTipi = FileUpload1.Posted file Content type; Try {ds = new dosyalar (); Katie = New Katichi (); Kt.AdSoyad = txtAdSoyad.Text; Kt.BolgeMudurlugu = txtBolgeMudurlugu.Text; Kt.Gorevi = txtGorev.Text; Kt.NoktaAd = txtNoktaAd.Text; Kt.NoktaTuru = txtNoktaTuru.Text; Imdb.Katilimcis.InsertOnSubmit (kt); Imdb.SubmitChanges (); Int idsi = kt.KID; Ds.DosyaAD = dosyaAdi; Ds.DosyaICERIK = icerik; Ds.DosyaTIP = dosyaTipi; Ds.KID = IDE; Imdb.Dosyalars.InsertOnSubmit (DS); Imdb.SubmitChanges (); } Catch (Exception pre) {lblHataci.Text = ex.Message; }}} This is my question..how do I show my image

c++ - Reading Superblock into a C Structure -

I have a disk image that has a standard image using fuses. The superblock has the following, and I have a function read_superblock (* buf) which gives the following raw data: byte 0-3: magic number (0xC0000112) 4-7: block size ( 1024) 8-11: Total file system size (in block) 12-15: FAT Length (in block) 16-19: Root directory (block number) 20-1023: Not used I am very new to C and am eager to start on this project that it is easy to read in a structure or some variable Rica, and can print them on the screen using printf for debugging. I was initially thinking that I could see raw data just as I was thinking of doing something, but I think this is not the case. There is also no structure and I am trying to read it as a string which is very wrong. Is there a way to specify the structure for me and to define the number of bytes in each variable to take out data for me? char * buf; Read_superblock (* buf); Printf ("% s", buf); Yes, I think it would be better to re

makefile - How to force an error in a gnumake file -

I want to find a condition in my makefile where an instrument is the wrong version and the correct version of pointing to an error message item is not. Can someone give an example of doing this? I tried the following, but this is not the correct syntax: ifeq "$ (shell svnversion --version | sed s / [^ 0-9.] *: //) "1.4" $ error ("Install bad svnversion v1.4, v1.6"), endiff thanks. From: $ (Error Bad svn version v1.4, please install v1.6) This will result in creating for a fatal error: $ makefile: 2: *** Bad svn version v1 Install .4, v1.6. Go back.

arrays - why a[n] is accepted in c during runtime? -

हम इसे सी में क्यों कर सकते हैं? int n; scanf ( "% d", & amp; n); Int एक [एन]; मैंने सोचा था कि सरणी लोड समय के दौरान स्मृति स्थित है, लेकिन लगता है कि उपर्युक्त उदाहरण रनटाइम के दौरान काम करता है। क्या मैं किसी भी चीज़ को गलत समझता हूं? आप लोग मदद कर सकते हैं? धन्यवाद, मैंने सोचा कि सरणी लोड समय के दौरान * अल * स्थित मेमोरी लेकिन जैसा दिखता है, उपर्युक्त उदाहरण रन-टाइम के दौरान काम करता है। हां, सामान्य कोड जैसे & lt; datatype & gt; & LT; Array_Name & gt; कोड> एक परिवर्तनीय लम्बाई सरणी या वीएलए सीएलए के लिए है। सीएलएएल में वीएलए को किसी भी अन्य सरणी की तरह परिभाषित किया जाता है, सिवाय इसके कि लंबाई को संकलन-समय स्थिर करने की आवश्यकता नहीं है। वीएलए की आवश्यकता यहां पायी जा सकती है::)

asp.net - is it possible to use MVP pattern with Codesmith Ntier or PLINQO Template -

Currently we are ASP. The Net is working on the application and I like to move forward with the MVP pattern (for the UI) provides this benefit for a variety of reasons, But the motive of moving forward from that perspective is a lot of hands Coding that will eat time. I have already identified that it is possible to generate DAL by using any template or SQL from LINQ, but the only problem is with the interface that is generated by usercontrol (see) and some boilerplate code ( Data binding should be implemented by) Now the question 1) Is it possible to use the coder template to get the MVP pattern (interface on the UI layer And generate properties 2) It is not advisable to proceed with MVP; Use simple approach provided by pattern and mass codeer template generator or any other device < P> Note: I have ASP Proceeding with Net MVC is also considered, but due to the lack of knowledge (the need to learn) and the project time line, we have to leave that idea. EDIT: In

streaming - getting a responseLength for a HttpWebRequest upload from another webfile to stream into the upload when the source doesn't implement ContentLength? -

पृष्ठभूमि - मैं एक मौजूदा वेबपेज को एक अलग वेब अनुप्रयोग में स्ट्रीम करने का प्रयास कर रहा हूं, एचटीटीपी वेबबेट / HttpWebResponse सी # में एक मुद्दा मैं हड़ताली हूं कि मैं फ़ाइल अपलोड की सामग्री-लंबाई फ़ाइल अपलोड की सामग्री-लंबाई का उपयोग करते समय फ़ाइल अपलोड सेट करने का प्रयास कर रहा हूं, लेकिन जब ऐसा लगता है कि स्रोत वेबपेज वेबसर्वर पर है, जिसके लिए एचटीटीपी वेब रिस्पांस नहीं करता है सामग्री लंबाई प्रदान करें HttpWebRequest downloadRequest = WebRequest.Create (नई URI ("डाउनलोड")) HttpWebRequest के रूप में; (HttpWebResponse downloadResponse = downloadRequest.GetResponse () के रूप में HttpWebResponse) (var uploadRequest = (HttpWebRequest) WebRequest.Create (नया उरी ("यूरिफाथ")) का उपयोग कर रहा है; UploadRequest.method = "पोस्ट"; UploadRequest.ContentLength = downloadResponse.ContentLength; // #### प्रश्न : इस मामले को पूरा करने के लिए मैं इस दृष्टिकोण को कैसे अपडेट कर सकता हूं (जब डाउनलोड प्रतिक्रिया में कोई सामग्री-लंबाई नहीं है सेट)। क्या यह

.net - A list of Entity Framework providers for various databases -

Which providers there and their experience using them I All possible native.NET frameworks are available to address the anti-framework providers that are present, as well as their limitations compared to the default LINQ2Entities (MS for MS SS). Tell me if there's even better for the same database and I'm updating this list with this list. Add additional providers directly to this post or provide an answer and others will add it to the list (including me). Linq 2 entities - Microsoft SQL Server Connector Entity Framework 1 SQL Server Standard / Enterprise / Express Microsoft SQL Server CE (compact version) Any provider? MySQL (since version 6.0) - I have no issues except about Read () , take () and sort () in the same expression tree - all to input your experience / knowledge about it Welcome to Note : MySQL Connector / Native Visual Studio Integration is not supported in Express editions of Visual Studio, which means that you can do t

c - What should I use instread of g_strncasecmp? -

It looks like g_strncasecmp dislikes, so I'm looking for another function to do the same thing. from docs "Therefore there are two replacement functions: g_ascii_strncasecmp (), which Only works on ASCII and locale-sensitive, and g_utf8_casefold (), which is good for UTF-8 case-insensitive sorting. "

silverlight - Changing the UI language dynamically -

I have a multi-language menopause application where resources are stored in RAZ files for different languages ​​and buttons Is bound to The contents of the label are within the XML properties. When you set the UI culture of the thread in the creator of Silverlight's page, everything works fine, but when it changes depending on the user's selection (via the combo box selection) Changes I need a page to rearrange the control files on the UI culture of the new thread and to reboot into the resource files. I'm not sure which mechanism to tie your approach to your localization repository I'm using, but I guess the problem is with notification. This view will update the data in only one binding, the possibility of being the most notified of a notification event, the object of the localization data that you are binding when the culture changes, is not sending the notification. You can consider by changing an introvert properties to an object that holds your loca

javascript - How to create input form with multiple options? -

I am trying to set up a form that allows you to enter a password that is up to a specific URL Provides access. For example, enter "Facebook", and it takes you to www.facebook.com, "Yahoo", it sends you to www.yahoo.com, "google",. ... you get this. If someone says anything in these words, then it gives an error. This is what I have done so far: However, this does not work! Can anyone help me set this up! I really want more than 3 options. Thank you! I do not know what works in this particular example (it works, submit buttons On clicking, ENTER is not killing). But if you want to create more than 3 sites, you can make it easier: & lt; Script & gt; // ... sites = {"google": "http://www.google.com", "facebook": "http://www.facebook.com", "yahoo": "http: // www .yahoo.com "}; Function passcode (form) {if (site [form.id.value]) {window.location = sites [form.id.value]

php - eclipse autocompletion from class file? -

When I use NetBeans and it contains a class in phpfile and then type $ class_name-> all this Function and properties will show "post-text" itemprop = "text"> > CTRL + space Should work, but I would recommend a recent eclipse and PDT. At the beginning of PDT, but now it has been fixed. Do you want to accept the PHP (eclipse 4? 5? See), and make sure that your project has been opened as a PHP (View)

c# - XNA game distribution questions -

I want to start on 2D games using C #, so I am checking my options. XANA looks good, but some points are not very clear to me. If I use XNA, can I just make my game and distribute my game as a standalone executable from my website? Or is there a catch? Do people need special libraries to run my game? Do I have to pay MS to be able to distribute my game? Normally I will write a program, make it, download and execute for Preeto, anyone can download, install it and use it. Will it work or when there is a restriction on using XNA? If you are a university / college you can provide free membership. But if you are only playing Windows, then there is no charge. Include just the necessary dependencies such as has already been discussed and you are good to go. Previously my university was not on the list of legitimate places, but it was resolved soon.

Java: Regex replacing -

मेरे पास यह स्ट्रिंग है: foo bar 567 baz अब मैं प्रत्येक संख्या स्ट्रिंग num: से पहले जोड़ना चाहता हूं।> तो परिणाम होना चाहिए: foo bar num: 567 baz यह भी काम करना है: foo 73761 barbazboom !! 87 परिणाम: foo num: 73761 बारबज़बूम !! संख्या: 87 नंबर खोज करने के लिए regex यह है: [0-9] + लेकिन मैं + [मिलान सबस्ट्रिंग] मैंने अब संख्याओं के साथ एक उदाहरण लिखा है, लेकिन एक अन्य उदाहरण हो सकता है: प्रत्येक ई-मेल पते से पहले जोड़ें ईमेल मिला: मुझे आशा है कि आप समझ सकते हैं कि मेरा क्या मतलब है। (बुरे अंग्रेजी के लिए खेद है, बेल्जियम में रहना, 14 वर्ष का) धन्यवाद समूहीकरण का उपयोग करें आप समूह को परिभाषित करने के लिए और $ n से परिणाम में समूह की पहचान करने के लिए कोष्ठक ( और ) का उपयोग कर सकते हैं, जहां n समूह अनुक्रमणिका है। स्ट्रिंग स्ट्रिंग = "फू बार 567 बाज़"; स्ट्रिंग को प्रतिस्थापित किया गया = स्ट्रिंग.रेवलसभी ("(\\ d +)", "num: $ 1");